diff --git a/Jenkinsfile b/Jenkinsfile index 666ab27916..6c359ec96e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ env.label = "jakartaee-tck-pod-${UUID.randomUUID().toString()}" default_suites=[ "samples", "signaturetest/javaee" ] -default_tcks=["caj", "concurrency", "connector", "el", "jacc", "jaspic", "jaxws", "jms", "jpa", "jsf", "jsp", "jstl", "jta", "saaj", "securityapi", "servlet", "websocket"] +default_tcks=["caj", "concurrency", "connector", "el", "jacc", "jaspic", "jaxws", "jms", "jpa", "jsp", "jstl", "jta", "saaj", "securityapi", "servlet", "websocket"] def cts_suites = params.test_suites != null ? params.test_suites.split() : default_suites def tcks = params.standalone_tcks != null ? params.standalone_tcks.split() : default_tcks @@ -188,9 +188,9 @@ spec: description: 'Database to be used for running CTS. Currently only JavaDB is supported.' ) choice(name: 'BUILD_TYPE', choices: 'CTS\nSTANDALONE-TCK', description: 'Run the full EE compliance testsuite or a standalone tck' ) - string(name: 'test_suites', defaultValue: 'concurrency connector ejb ejb30/bb ejb30/lite/appexception ejb30/lite/async ejb30/lite/basic ejb30/lite/ejbcontext ejb30/lite/enventry ejb30/lite/interceptor ejb30/lite/lookup ejb30/lite/naming ejb30/lite/nointerface ejb30/lite/packaging ejb30/lite/singleton ejb30/lite/stateful ejb30/lite/tx ejb30/lite/view ejb30/lite/xmloverride ejb30/assembly ejb30/timer ejb30/webservice ejb30/zombie ejb30/misc ejb30/sec ejb32 el integration jacc jaspic javaee javamail jaxrs jdbc_appclient jdbc_ejb jdbc_jsp jdbc_servlet jms_appclient jms_ejb jms_jsp jms_servlet jpa_appmanaged jpa_appmanagedNoTx jpa_pmservlet jpa_puservlet jpa_stateful3 jpa_stateless3 jsf jsonb jsonp jsp jstl jta jws samples securityapi servlet signaturetest/javaee webservices12 webservices13 websocket xa', + string(name: 'test_suites', defaultValue: 'concurrency connector ejb ejb30/bb ejb30/lite/appexception ejb30/lite/async ejb30/lite/basic ejb30/lite/ejbcontext ejb30/lite/enventry ejb30/lite/interceptor ejb30/lite/lookup ejb30/lite/naming ejb30/lite/nointerface ejb30/lite/packaging ejb30/lite/singleton ejb30/lite/stateful ejb30/lite/tx ejb30/lite/view ejb30/lite/xmloverride ejb30/assembly ejb30/timer ejb30/webservice ejb30/zombie ejb30/misc ejb30/sec ejb32 el integration jacc jaspic javaee javamail jaxrs jdbc_appclient jdbc_ejb jdbc_jsp jdbc_servlet jms_appclient jms_ejb jms_jsp jms_servlet jpa_appmanaged jpa_appmanagedNoTx jpa_pmservlet jpa_puservlet jpa_stateful3 jpa_stateless3 jsonb jsonp jsp jstl jta jws samples securityapi servlet signaturetest/javaee webservices12 webservices13 websocket xa', description: 'Space separated list of Test suites to run') - string(name: 'standalone_tcks', defaultValue: 'caj concurrency connector el jacc jaspic jaxws jms jpa jsf jsp jstl jta saaj securityapi servlet websocket', + string(name: 'standalone_tcks', defaultValue: 'caj concurrency connector el jacc jaspic jaxws jms jpa jsp jstl jta saaj securityapi servlet websocket', description: 'Space separated list of standalone TCKs to build and run') string(name: 'USER_KEYWORDS', defaultValue: '', diff --git a/docker/build_standalone-tcks.sh b/docker/build_standalone-tcks.sh index 904cc9463f..c6feb25d44 100755 --- a/docker/build_standalone-tcks.sh +++ b/docker/build_standalone-tcks.sh @@ -68,7 +68,7 @@ fi echo "The option selected to build is $TCK_NAME TCK" if [ "All" == "$TCK_NAME" ];then - TCK_LIST=( websocket el concurrency connector jacc jaspic caj jms jsp jstl jaxws saaj servlet jsf securityapi jpa jta ) + TCK_LIST=( websocket el concurrency connector jacc jaspic caj jms jsp jstl jaxws saaj servlet securityapi jpa jta ) else TCK_LIST=( ${TCK_NAME} ) fi @@ -121,11 +121,6 @@ for tck in ${TCK_LIST[@]}; do TCK_SPECIFIC_PROPS="-Djta.classes=$JAKARTA_JARS/modules/jakarta.transaction-api.jar:$JAKARTA_JARS/modules/jakarta.servlet-api.jar:$JAKARTA_JARS/modules/glassfish-corba-omgapi.jar" DOC_SPECIFIC_PROPS="" JAXWS_SPECIFIC_PROPS="" - elif [ "jsf" == "$tck" ] - then - TCK_SPECIFIC_PROPS="-Djsf.classes=$JAKARTA_JARS/modules/jakarta.enterprise.cdi-api.jar:$JAKARTA_JARS/modules/jakarta.servlet.jsp.jstl-api.jar:$JAKARTA_JARS/modules/jakarta.inject-api.jar:$JAKARTA_JARS/modules/jakarta.faces-api.jar:$JAKARTA_JARS/modules/jakarta.servlet.jsp-api.jar:$JAKARTA_JARS/modules/jakarta.servlet-api.jar:$JAKARTA_JARS/modules/jakarta.el-api.jar:$JAKARTA_JARS/modules/jakarta.annotation-api.jar:$JAKARTA_JARS/modules/glassfish-corba-omgapi.jar" - DOC_SPECIFIC_PROPS="" - JAXWS_SPECIFIC_PROPS="" elif [ "websocket" == "$tck" ] then TCK_SPECIFIC_PROPS="-Dwebsocket.classes=$JAKARTA_JARS/modules/jakarta.websocket-client-api.jar:$JAKARTA_JARS/modules/jakarta.websocket-api.jar:$JAKARTA_JARS/modules/jakarta.servlet-api.jar:$JAKARTA_JARS/modules/jakarta.inject-api.jar:$JAKARTA_JARS/modules/jakarta.enterprise.cdi-api.jar:$JAKARTA_JARS/modules/jakarta.activation-api.jar:$JAKARTA_JARS/modules/glassfish-corba-omgapi.jar:$JAKARTA_JARS/modules/jakarta.xml.bind-api.jar" diff --git a/docker/jsftck.sh b/docker/jsftck.sh deleted file mode 100644 index 4f7f390831..0000000000 --- a/docker/jsftck.sh +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/bash -xe - -# Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - -export TCK_HOME=${WORKSPACE} -echo "TCK_HOME in jsftck.sh $TCK_HOME" -echo "ANT_HOME in jsftck.sh $ANT_HOME" -echo "PATH in jsftck.sh $PATH" -echo "ANT_OPTS in jsftck.sh $ANT_OPTS" - -cd $TCK_HOME - -if ls ${WORKSPACE}/standalone-bundles/*jsftck*.zip 1> /dev/null 2>&1; then - echo "Using stashed bundle for jsftck created during the build phase" - unzip -q ${WORKSPACE}/standalone-bundles/*jsftck*.zip -d ${TCK_HOME} - TCK_NAME=jsftck -elif ls ${WORKSPACE}/standalone-bundles/*faces-tck*.zip 1> /dev/null 2>&1; then - echo "Using stashed bundle for faces-tck created during the build phase" - unzip -q ${WORKSPACE}/standalone-bundles/*faces-tck*.zip -d ${TCK_HOME} - TCK_NAME=faces-tck -else - echo "[ERROR] TCK bundle not found" - exit 1 -fi - -if [ -z "$GF_TOPLEVEL_DIR" ]; then - export GF_TOPLEVEL_DIR=glassfish7 -fi - -##### installRI.sh starts here ##### -echo "Download and install GlassFish 7.0.0 ..." -if [ -z "${GF_BUNDLE_URL}" ]; then - echo "[ERROR] GF_BUNDLE_URL not set" - exit 1 -fi -wget --progress=bar:force --no-cache $GF_BUNDLE_URL -O latest-glassfish.zip -unzip -q ${TCK_HOME}/latest-glassfish.zip -d ${TCK_HOME} - -TS_HOME=$TCK_HOME/$TCK_NAME -echo "TS_HOME $TS_HOME" - -cd $TS_HOME/bin - -if [[ "$JDK" == "JDK17" || "$JDK" == "jdk17" ]];then - export JAVA_HOME=${JDK17_HOME} -fi -export PATH=$JAVA_HOME/bin:$PATH - -which java -java -version - -# to avoid OOM error while deployment -sed -i.bak 's/-Xmx512m/-Xmx1024m/g' $TCK_HOME/$GF_TOPLEVEL_DIR/glassfish/domains/domain1/config/domain.xml - -cd $TCK_HOME/$GF_TOPLEVEL_DIR/bin -./asadmin start-domain - -cd $TS_HOME/bin - -webServerHome=$TCK_HOME/$GF_TOPLEVEL_DIR/glassfish - -sed -i "s#webServerHome=.*#webServerHome=$TCK_HOME/$GF_TOPLEVEL_DIR/glassfish#g" ts.jte -sed -i "s#^webServerHost=.*#webServerHost=localhost#g" ts.jte -sed -i "s#^webServerPort=.*#webServerPort=8080#g" ts.jte -sed -i "s#^impl.vi=.*#impl.vi=glassfish#g" ts.jte -sed -i "s#^impl.vi.deploy.dir=.*#impl.vi.deploy.dir=$TCK_HOME/$GF_TOPLEVEL_DIR/glassfish/domains/domain1/autodeploy#g" ts.jte -sed -i "s#^jsf.classes=.*#jsf.classes=${webServerHome}/modules/jakarta.enterprise.cdi-api.jar;${webServerHome}/modules/jakarta.servlet.jsp.jstl-api.jar;${webServerHome}/modules/jakarta.inject-api.jar;${webServerHome}/modules/jakarta.faces.jar;${webServerHome}/modules/jakarta.servlet.jsp-api.jar;${webServerHome}/modules/jakarta.servlet-api.jar;${webServerHome}/modules/jakarta.el.jar#g" ts.jte -sed -i 's/^impl\.deploy\.timeout\.multiplier=.*/impl\.deploy\.timeout\.multiplier=960/g' ts.jte - -sed -i "s#^report.dir=.*#report.dir=$TCK_HOME/${TCK_NAME}report/${TCK_NAME}#g" ts.jte -sed -i "s#^work.dir=.*#work.dir=$TCK_HOME/${TCK_NAME}work/${TCK_NAME}#g" ts.jte - -if [[ "$PROFILE" == "web" || "$PROFILE" == "WEB" ]]; then - echo "javaee.level=web" >> ts.jte -fi - -mkdir -p $TCK_HOME/${TCK_NAME}report/${TCK_NAME}/ -mkdir -p $TCK_HOME/${TCK_NAME}work/${TCK_NAME}/ - -cd $TS_HOME/src/com/sun/ts/tests/jsf -ant -Dutil.dir=$TS_HOME deploy.all -ant -Dutil.dir=$TS_HOME runclient -echo "Test run complete" - - -JT_REPORT_DIR=$TCK_HOME/${TCK_NAME}report -export HOST=`hostname -f` -echo "1 ${TCK_NAME} ${HOST}" > ${WORKSPACE}/args.txt -mkdir -p ${WORKSPACE}/results/junitreports/ -${JAVA_HOME}/bin/java -Djunit.embed.sysout=true -jar ${WORKSPACE}/docker/JTReportParser/JTReportParser.jar ${WORKSPACE}/args.txt ${JT_REPORT_DIR} ${WORKSPACE}/results/junitreports/ - -tar zcvf ${WORKSPACE}/${TCK_NAME}-results.tar.gz ${TCK_HOME}/${TCK_NAME}report ${TCK_HOME}/${TCK_NAME}work ${WORKSPACE}/results/junitreports/ ${TCK_HOME}/$GF_TOPLEVEL_DIR/glassfish/domains/domain1 $TCK_HOME/$TCK_NAME/bin/ts.* diff --git a/install/jsf/LICENSE.md b/install/jsf/LICENSE.md deleted file mode 100644 index 5de3d1b40c..0000000000 --- a/install/jsf/LICENSE.md +++ /dev/null @@ -1,637 +0,0 @@ -# Eclipse Public License - v 2.0 - - THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE - PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION - OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. - - 1. DEFINITIONS - - "Contribution" means: - - a) in the case of the initial Contributor, the initial content - Distributed under this Agreement, and - - b) in the case of each subsequent Contributor: - i) changes to the Program, and - ii) additions to the Program; - where such changes and/or additions to the Program originate from - and are Distributed by that particular Contributor. A Contribution - "originates" from a Contributor if it was added to the Program by - such Contributor itself or anyone acting on such Contributor's behalf. - Contributions do not include changes or additions to the Program that - are not Modified Works. - - "Contributor" means any person or entity that Distributes the Program. - - "Licensed Patents" mean patent claims licensable by a Contributor which - are necessarily infringed by the use or sale of its Contribution alone - or when combined with the Program. - - "Program" means the Contributions Distributed in accordance with this - Agreement. - - "Recipient" means anyone who receives the Program under this Agreement - or any Secondary License (as applicable), including Contributors. - - "Derivative Works" shall mean any work, whether in Source Code or other - form, that is based on (or derived from) the Program and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. - - "Modified Works" shall mean any work in Source Code or other form that - results from an addition to, deletion from, or modification of the - contents of the Program, including, for purposes of clarity any new file - in Source Code form that contains any contents of the Program. Modified - Works shall not include works that contain only declarations, - interfaces, types, classes, structures, or files of the Program solely - in each case in order to link to, bind by name, or subclass the Program - or Modified Works thereof. - - "Distribute" means the acts of a) distributing or b) making available - in any manner that enables the transfer of a copy. - - "Source Code" means the form of a Program preferred for making - modifications, including but not limited to software source code, - documentation source, and configuration files. - - "Secondary License" means either the GNU General Public License, - Version 2.0, or any later versions of that license, including any - exceptions or additional permissions as identified by the initial - Contributor. - - 2. GRANT OF RIGHTS - - a) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free copyright - license to reproduce, prepare Derivative Works of, publicly display, - publicly perform, Distribute and sublicense the Contribution of such - Contributor, if any, and such Derivative Works. - - b) Subject to the terms of this Agreement, each Contributor hereby - grants Recipient a non-exclusive, worldwide, royalty-free patent - license under Licensed Patents to make, use, sell, offer to sell, - import and otherwise transfer the Contribution of such Contributor, - if any, in Source Code or other form. This patent license shall - apply to the combination of the Contribution and the Program if, at - the time the Contribution is added by the Contributor, such addition - of the Contribution causes such combination to be covered by the - Licensed Patents. The patent license shall not apply to any other - combinations which include the Contribution. No hardware per se is - licensed hereunder. - - c) Recipient understands that although each Contributor grants the - licenses to its Contributions set forth herein, no assurances are - provided by any Contributor that the Program does not infringe the - patent or other intellectual property rights of any other entity. - Each Contributor disclaims any liability to Recipient for claims - brought by any other entity based on infringement of intellectual - property rights or otherwise. As a condition to exercising the - rights and licenses granted hereunder, each Recipient hereby - assumes sole responsibility to secure any other intellectual - property rights needed, if any. For example, if a third party - patent license is required to allow Recipient to Distribute the - Program, it is Recipient's responsibility to acquire that license - before distributing the Program. - - d) Each Contributor represents that to its knowledge it has - sufficient copyright rights in its Contribution, if any, to grant - the copyright license set forth in this Agreement. - - e) Notwithstanding the terms of any Secondary License, no - Contributor makes additional grants to any Recipient (other than - those set forth in this Agreement) as a result of such Recipient's - receipt of the Program under the terms of a Secondary License - (if permitted under the terms of Section 3). - - 3. REQUIREMENTS - - 3.1 If a Contributor Distributes the Program in any form, then: - - a) the Program must also be made available as Source Code, in - accordance with section 3.2, and the Contributor must accompany - the Program with a statement that the Source Code for the Program - is available under this Agreement, and informs Recipients how to - obtain it in a reasonable manner on or through a medium customarily - used for software exchange; and - - b) the Contributor may Distribute the Program under a license - different than this Agreement, provided that such license: - i) effectively disclaims on behalf of all other Contributors all - warranties and conditions, express and implied, including - warranties or conditions of title and non-infringement, and - implied warranties or conditions of merchantability and fitness - for a particular purpose; - - ii) effectively excludes on behalf of all other Contributors all - liability for damages, including direct, indirect, special, - incidental and consequential damages, such as lost profits; - - iii) does not attempt to limit or alter the recipients' rights - in the Source Code under section 3.2; and - - iv) requires any subsequent distribution of the Program by any - party to be under a license that satisfies the requirements - of this section 3. - - 3.2 When the Program is Distributed as Source Code: - - a) it must be made available under this Agreement, or if the - Program (i) is combined with other material in a separate file or - files made available under a Secondary License, and (ii) the initial - Contributor attached to the Source Code the notice described in - Exhibit A of this Agreement, then the Program may be made available - under the terms of such Secondary Licenses, and - - b) a copy of this Agreement must be included with each copy of - the Program. - - 3.3 Contributors may not remove or alter any copyright, patent, - trademark, attribution notices, disclaimers of warranty, or limitations - of liability ("notices") contained within the Program from any copy of - the Program which they Distribute, provided that Contributors may add - their own appropriate notices. - - 4. COMMERCIAL DISTRIBUTION - - Commercial distributors of software may accept certain responsibilities - with respect to end users, business partners and the like. While this - license is intended to facilitate the commercial use of the Program, - the Contributor who includes the Program in a commercial product - offering should do so in a manner which does not create potential - liability for other Contributors. Therefore, if a Contributor includes - the Program in a commercial product offering, such Contributor - ("Commercial Contributor") hereby agrees to defend and indemnify every - other Contributor ("Indemnified Contributor") against any losses, - damages and costs (collectively "Losses") arising from claims, lawsuits - and other legal actions brought by a third party against the Indemnified - Contributor to the extent caused by the acts or omissions of such - Commercial Contributor in connection with its distribution of the Program - in a commercial product offering. The obligations in this section do not - apply to any claims or Losses relating to any actual or alleged - intellectual property infringement. In order to qualify, an Indemnified - Contributor must: a) promptly notify the Commercial Contributor in - writing of such claim, and b) allow the Commercial Contributor to control, - and cooperate with the Commercial Contributor in, the defense and any - related settlement negotiations. The Indemnified Contributor may - participate in any such claim at its own expense. - - For example, a Contributor might include the Program in a commercial - product offering, Product X. That Contributor is then a Commercial - Contributor. If that Commercial Contributor then makes performance - claims, or offers warranties related to Product X, those performance - claims and warranties are such Commercial Contributor's responsibility - alone. Under this section, the Commercial Contributor would have to - defend claims against the other Contributors related to those performance - claims and warranties, and if a court requires any other Contributor to - pay any damages as a result, the Commercial Contributor must pay - those damages. - - 5. NO WARRANTY - - EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT - PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS" - BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR - IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF - TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR - PURPOSE. Each Recipient is solely responsible for determining the - appropriateness of using and distributing the Program and assumes all - risks associated with its exercise of rights under this Agreement, - including but not limited to the risks and costs of program errors, - compliance with applicable laws, damage to or loss of data, programs - or equipment, and unavailability or interruption of operations. - - 6. DISCLAIMER OF LIABILITY - - EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT - PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS - SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST - PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE - EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGES. - - 7. GENERAL - - If any provision of this Agreement is invalid or unenforceable under - applicable law, it shall not affect the validity or enforceability of - the remainder of the terms of this Agreement, and without further - action by the parties hereto, such provision shall be reformed to the - minimum extent necessary to make such provision valid and enforceable. - - If Recipient institutes patent litigation against any entity - (including a cross-claim or counterclaim in a lawsuit) alleging that the - Program itself (excluding combinations of the Program with other software - or hardware) infringes such Recipient's patent(s), then such Recipient's - rights granted under Section 2(b) shall terminate as of the date such - litigation is filed. - - All Recipient's rights under this Agreement shall terminate if it - fails to comply with any of the material terms or conditions of this - Agreement and does not cure such failure in a reasonable period of - time after becoming aware of such noncompliance. If all Recipient's - rights under this Agreement terminate, Recipient agrees to cease use - and distribution of the Program as soon as reasonably practicable. - However, Recipient's obligations under this Agreement and any licenses - granted by Recipient relating to the Program shall continue and survive. - - Everyone is permitted to copy and distribute copies of this Agreement, - but in order to avoid inconsistency the Agreement is copyrighted and - may only be modified in the following manner. The Agreement Steward - reserves the right to publish new versions (including revisions) of - this Agreement from time to time. No one other than the Agreement - Steward has the right to modify this Agreement. The Eclipse Foundation - is the initial Agreement Steward. The Eclipse Foundation may assign the - responsibility to serve as the Agreement Steward to a suitable separate - entity. Each new version of the Agreement will be given a distinguishing - version number. The Program (including Contributions) may always be - Distributed subject to the version of the Agreement under which it was - received. In addition, after a new version of the Agreement is published, - Contributor may elect to Distribute the Program (including its - Contributions) under the new version. - - Except as expressly stated in Sections 2(a) and 2(b) above, Recipient - receives no rights or licenses to the intellectual property of any - Contributor under this Agreement, whether expressly, by implication, - estoppel or otherwise. All rights in the Program not expressly granted - under this Agreement are reserved. Nothing in this Agreement is intended - to be enforceable by any entity that is not a Contributor or Recipient. - No third-party beneficiary rights are created under this Agreement. - - Exhibit A - Form of Secondary Licenses Notice - - "This Source Code may also be made available under the following - Secondary Licenses when the conditions for such availability set forth - in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), - version(s), and exceptions or additional permissions here}." - - Simply including a copy of this Agreement, including this Exhibit A - is not sufficient to license the Source Code under Secondary Licenses. - - If it is not possible or desirable to put the notice in a particular - file, then You may include the notice in a location (such as a LICENSE - file in a relevant directory) where a recipient would be likely to - look for such a notice. - - You may add additional accurate notices of copyright ownership. - ---- - -## The GNU General Public License (GPL) Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor - Boston, MA 02110-1335 - USA - - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your freedom to - share and change it. By contrast, the GNU General Public License is - intended to guarantee your freedom to share and change free software--to - make sure the software is free for all its users. This General Public - License applies to most of the Free Software Foundation's software and - to any other program whose authors commit to using it. (Some other Free - Software Foundation software is covered by the GNU Library General - Public License instead.) You can apply it to your programs, too. - - When we speak of free software, we are referring to freedom, not price. - Our General Public Licenses are designed to make sure that you have the - freedom to distribute copies of free software (and charge for this - service if you wish), that you receive source code or can get it if you - want it, that you can change the software or use pieces of it in new - free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid anyone - to deny you these rights or to ask you to surrender the rights. These - restrictions translate to certain responsibilities for you if you - distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether gratis - or for a fee, you must give the recipients all the rights that you have. - You must make sure that they, too, receive or can get the source code. - And you must show them these terms so they know their rights. - - We protect your rights with two steps: (1) copyright the software, and - (2) offer you this license which gives you legal permission to copy, - distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain - that everyone understands that there is no warranty for this free - software. If the software is modified by someone else and passed on, we - want its recipients to know that what they have is not the original, so - that any problems introduced by others will not reflect on the original - authors' reputations. - - Finally, any free program is threatened constantly by software patents. - We wish to avoid the danger that redistributors of a free program will - individually obtain patent licenses, in effect making the program - proprietary. To prevent this, we have made it clear that any patent must - be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and - modification follow. - - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains a - notice placed by the copyright holder saying it may be distributed under - the terms of this General Public License. The "Program", below, refers - to any such program or work, and a "work based on the Program" means - either the Program or any derivative work under copyright law: that is - to say, a work containing the Program or a portion of it, either - verbatim or with modifications and/or translated into another language. - (Hereinafter, translation is included without limitation in the term - "modification".) Each licensee is addressed as "you". - - Activities other than copying, distribution and modification are not - covered by this License; they are outside its scope. The act of running - the Program is not restricted, and the output from the Program is - covered only if its contents constitute a work based on the Program - (independent of having been made by running the Program). Whether that - is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's source - code as you receive it, in any medium, provided that you conspicuously - and appropriately publish on each copy an appropriate copyright notice - and disclaimer of warranty; keep intact all the notices that refer to - this License and to the absence of any warranty; and give any other - recipients of the Program a copy of this License along with the Program. - - You may charge a fee for the physical act of transferring a copy, and - you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion of - it, thus forming a work based on the Program, and copy and distribute - such modifications or work under the terms of Section 1 above, provided - that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any part - thereof, to be licensed as a whole at no charge to all third parties - under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a notice - that there is no warranty (or else, saying that you provide a - warranty) and that users may redistribute the program under these - conditions, and telling the user how to view a copy of this License. - (Exception: if the Program itself is interactive but does not - normally print such an announcement, your work based on the Program - is not required to print an announcement.) - - These requirements apply to the modified work as a whole. If - identifiable sections of that work are not derived from the Program, and - can be reasonably considered independent and separate works in - themselves, then this License, and its terms, do not apply to those - sections when you distribute them as separate works. But when you - distribute the same sections as part of a whole which is a work based on - the Program, the distribution of the whole must be on the terms of this - License, whose permissions for other licensees extend to the entire - whole, and thus to each and every part regardless of who wrote it. - - Thus, it is not the intent of this section to claim rights or contest - your rights to work written entirely by you; rather, the intent is to - exercise the right to control the distribution of derivative or - collective works based on the Program. - - In addition, mere aggregation of another work not based on the Program - with the Program (or with a work based on the Program) on a volume of a - storage or distribution medium does not bring the other work under the - scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, - under Section 2) in object code or executable form under the terms of - Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections 1 - and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your cost - of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer to - distribute corresponding source code. (This alternative is allowed - only for noncommercial distribution and only if you received the - program in object code or executable form with such an offer, in - accord with Subsection b above.) - - The source code for a work means the preferred form of the work for - making modifications to it. For an executable work, complete source code - means all the source code for all modules it contains, plus any - associated interface definition files, plus the scripts used to control - compilation and installation of the executable. However, as a special - exception, the source code distributed need not include anything that is - normally distributed (in either source or binary form) with the major - components (compiler, kernel, and so on) of the operating system on - which the executable runs, unless that component itself accompanies the - executable. - - If distribution of executable or object code is made by offering access - to copy from a designated place, then offering equivalent access to copy - the source code from the same place counts as distribution of the source - code, even though third parties are not compelled to copy the source - along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program - except as expressly provided under this License. Any attempt otherwise - to copy, modify, sublicense or distribute the Program is void, and will - automatically terminate your rights under this License. However, parties - who have received copies, or rights, from you under this License will - not have their licenses terminated so long as such parties remain in - full compliance. - - 5. You are not required to accept this License, since you have not - signed it. However, nothing else grants you permission to modify or - distribute the Program or its derivative works. These actions are - prohibited by law if you do not accept this License. Therefore, by - modifying or distributing the Program (or any work based on the - Program), you indicate your acceptance of this License to do so, and all - its terms and conditions for copying, distributing or modifying the - Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the - Program), the recipient automatically receives a license from the - original licensor to copy, distribute or modify the Program subject to - these terms and conditions. You may not impose any further restrictions - on the recipients' exercise of the rights granted herein. You are not - responsible for enforcing compliance by third parties to this License. - - 7. If, as a consequence of a court judgment or allegation of patent - infringement or for any other reason (not limited to patent issues), - conditions are imposed on you (whether by court order, agreement or - otherwise) that contradict the conditions of this License, they do not - excuse you from the conditions of this License. If you cannot distribute - so as to satisfy simultaneously your obligations under this License and - any other pertinent obligations, then as a consequence you may not - distribute the Program at all. For example, if a patent license would - not permit royalty-free redistribution of the Program by all those who - receive copies directly or indirectly through you, then the only way you - could satisfy both it and this License would be to refrain entirely from - distribution of the Program. - - If any portion of this section is held invalid or unenforceable under - any particular circumstance, the balance of the section is intended to - apply and the section as a whole is intended to apply in other - circumstances. - - It is not the purpose of this section to induce you to infringe any - patents or other property right claims or to contest validity of any - such claims; this section has the sole purpose of protecting the - integrity of the free software distribution system, which is implemented - by public license practices. Many people have made generous - contributions to the wide range of software distributed through that - system in reliance on consistent application of that system; it is up to - the author/donor to decide if he or she is willing to distribute - software through any other system and a licensee cannot impose that choice. - - This section is intended to make thoroughly clear what is believed to be - a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in - certain countries either by patents or by copyrighted interfaces, the - original copyright holder who places the Program under this License may - add an explicit geographical distribution limitation excluding those - countries, so that distribution is permitted only in or among countries - not thus excluded. In such case, this License incorporates the - limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new - versions of the General Public License from time to time. Such new - versions will be similar in spirit to the present version, but may - differ in detail to address new problems or concerns. - - Each version is given a distinguishing version number. If the Program - specifies a version number of this License which applies to it and "any - later version", you have the option of following the terms and - conditions either of that version or of any later version published by - the Free Software Foundation. If the Program does not specify a version - number of this License, you may choose any version ever published by the - Free Software Foundation. - - 10. If you wish to incorporate parts of the Program into other free - programs whose distribution conditions are different, write to the - author to ask for permission. For software which is copyrighted by the - Free Software Foundation, write to the Free Software Foundation; we - sometimes make exceptions for this. Our decision will be guided by the - two goals of preserving the free status of all derivatives of our free - software and of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO - WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. - EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR - OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, - EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE - ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH - YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL - NECESSARY SERVICING, REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN - WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY - AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR - DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL - DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM - (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED - INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF - THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR - OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest - possible use to the public, the best way to achieve this is to make it - free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to - attach them to the start of each source file to most effectively convey - the exclusion of warranty; and each file should have at least the - "copyright" line and a pointer to where the full notice is found. - - One line to give the program's name and a brief idea of what it does. - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA - - Also add information on how to contact you by electronic and paper mail. - - If the program is interactive, make it output a short notice like this - when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type - `show w'. This is free software, and you are welcome to redistribute - it under certain conditions; type `show c' for details. - - The hypothetical commands `show w' and `show c' should show the - appropriate parts of the General Public License. Of course, the commands - you use may be called something other than `show w' and `show c'; they - could even be mouse-clicks or menu items--whatever suits your program. - - You should also get your employer (if you work as a programmer) or your - school, if any, to sign a "copyright disclaimer" for the program, if - necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - program `Gnomovision' (which makes passes at compilers) written by - James Hacker. - - signature of Ty Coon, 1 April 1989 - Ty Coon, President of Vice - - This General Public License does not permit incorporating your program - into proprietary programs. If your program is a subroutine library, you - may consider it more useful to permit linking proprietary applications - with the library. If this is what you want to do, use the GNU Library - General Public License instead of this License. - ---- - -## CLASSPATH EXCEPTION - - Linking this library statically or dynamically with other modules is - making a combined work based on this library. Thus, the terms and - conditions of the GNU General Public License version 2 cover the whole - combination. - - As a special exception, the copyright holders of this library give you - permission to link this library with independent modules to produce an - executable, regardless of the license terms of these independent - modules, and to copy and distribute the resulting executable under - terms of your choice, provided that you also meet, for each linked - independent module, the terms and conditions of the license of that - module. An independent module is a module which is not derived from or - based on this library. If you modify this library, you may extend this - exception to your version of the library, but you are not obligated to - do so. If you do not wish to do so, delete this exception statement - from your version. diff --git a/install/jsf/bin/build.xml b/install/jsf/bin/build.xml deleted file mode 100644 index 8feb7afbbf..0000000000 --- a/install/jsf/bin/build.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/install/jsf/bin/harness.policy b/install/jsf/bin/harness.policy deleted file mode 100644 index 16a8bfabdd..0000000000 --- a/install/jsf/bin/harness.policy +++ /dev/null @@ -1,4 +0,0 @@ -grant { - // "standard" properies that can be read by anyone - permission java.security.AllPermission ; -}; diff --git a/install/jsf/bin/java.policy b/install/jsf/bin/java.policy deleted file mode 100644 index 35733e010f..0000000000 --- a/install/jsf/bin/java.policy +++ /dev/null @@ -1,5 +0,0 @@ -grant { - // "standard" properies that can be read by anyone - permission java.security.AllPermission ; -}; - diff --git a/install/jsf/bin/sig-test-pkg-list.txt b/install/jsf/bin/sig-test-pkg-list.txt deleted file mode 100644 index 4cecd466f3..0000000000 --- a/install/jsf/bin/sig-test-pkg-list.txt +++ /dev/null @@ -1,58 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -## -# This file contains a list of all the packages -# contained in the signature files for this -# deliverable. This file is used to exclude valid -# sub-packages from being verified when their -# parent package's signature is checked. -## - -java.io -java.lang -java.lang.Enum<{java.lang -java.lang.annotation -java.util -jakarta.el -jakarta.enterprise.context -jakarta.faces -jakarta.faces.annotation -jakarta.faces.application -jakarta.faces.bean -jakarta.faces.component -jakarta.faces.component.behavior -jakarta.faces.component.html -jakarta.faces.component.search -jakarta.faces.component.visit -jakarta.faces.context -jakarta.faces.convert -jakarta.faces.el -jakarta.faces.event -jakarta.faces.flow -jakarta.faces.flow.builder -jakarta.faces.lifecycle -jakarta.faces.model -jakarta.faces.push -jakarta.faces.render -jakarta.faces.validator -jakarta.faces.view -jakarta.faces.view.facelets -jakarta.faces.webapp -jakarta.inject -jakarta.servlet -jakarta.servlet.annotation -jakarta.servlet.jsp.tagext diff --git a/install/jsf/bin/sig-test.map b/install/jsf/bin/sig-test.map deleted file mode 100644 index 6c17463f90..0000000000 --- a/install/jsf/bin/sig-test.map +++ /dev/null @@ -1,24 +0,0 @@ -# -# Copyright (c) 2018, 2021 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -############################################################### -# The signature test mapping file for the JSF TCK. This file -# should be formatted as a standard java properties file. The -# name is the package name and the value is the version of the -# package that should be tested by the signature tests. -############################################################### - -jakarta.faces=4.0 diff --git a/install/jsf/bin/ts.jte b/install/jsf/bin/ts.jte deleted file mode 100644 index 6e6a41b74f..0000000000 --- a/install/jsf/bin/ts.jte +++ /dev/null @@ -1,267 +0,0 @@ -# -# Copyright (c) 2006, 2021 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -######################################################################### -# -# JavaTest Environment file for JSF Compatibility Test Suite -# -# Environment specific properties in this file will likely -# have to be modified prior to running the JSF TCK. Instructions -# for modifying these properties are contained in this file. -# -######################################################################### - -######################################################################### -## @jte.version This version denotes the bundle this JTE was -## originally included with. The version matches the ID -## in the bundle name. It can be used to identify a -## mismatched JTE file. This value is filled in during -## the build process as part of sanitizing the jte file. -######################################################################### -jte.version=@JTE_VERSION@ - -######################################################################### -# The following properties MUST be set prior to running the -# TCK for JavaServer Faces. -# --------------------------------- -# webServerHost - Specifies the host of the target container -# webServerPort - Specifies the port the container is bound -# webServerHome - Specifies the installation directory of the container -# -# The web.deployment.handler property must refer to an ANT file containing -# at least a single target named 'deploy'. When 'ant deploy' is invoked, -# this target will be invoked to handle the deployment of the web -# applications to the target server. -# -# If using a custom handler, copy the handler to TS_HOME/bin/deploy and -# provide only the filename as the property value. -# -# The JSF TCK includes 3 handlers: -# - none (no deployment occurs) -# - glassfish (deployment to SJSAS/Glassfish) -# - tomcat (Tomcat) -# -# jsf.classes - Specifies the JSF API and implementation classes that -# are under test -# -# jspservlet.classes - Specifies the path to the Servlet & JSP API classes. -# -# -# Here are some example configurations. -# -# Glassfish V4 Example: -# webServerHost=localhost -# webServerPort=8080 -# webServerHome=/sun/glassfish3/glassfish -# impl.vi=glassfish -# impl.vi.deploy.dir=${webServerHome}/domains/domain1/autodeploy -# impl.deploy.timeout.multiplier=20 -# jsf.classes=${webServerHome}/modules/jakarta.faces.jar${pathsep} \ -# ${webServerHome}/modules/weld-osgi-bundle.jar -# jspservlet.classes=${webServerHome}/modules/jakarta.servlet.jsp.jar${pathsep} \ -# ${webServerHome}/modules/jakarta.servlet.jsp.jstl-api.jar${pathsep} \ -# ${webServerHome}/modules/jakarta.servlet.jsp.jstl.jar${pathsep} \ -# ${webServerHome}/modules/jakarta.servlet-api.jar${pathsep} \ -# ${webServerHome}/modules/jakarta.el.jar${pathsep} \ -# ${webServerHome}/modules/jakarta.servlet.jsp-api.jar -# -######################################################################### -webServerHost=localhost -webServerPort=8080 -webServerHome=/ri/glassfish3/glassfish -impl.vi=glassfish -impl.vi.deploy.dir=${webServerHome}/domains/domain1/autodeploy -impl.deploy.timeout.multiplier=20 -jsf.classes=${webServerHome}/modules/jakarta.faces.jar${pathsep}${webServerHome}/modules/weld-osgi-bundle.jar -jspservlet.classes=${webServerHome}/modules/jakarta.servlet.jsp.jar${pathsep}${webServerHome}/modules/jakarta.servlet.jsp.jstl.jar${pathsep}${webServerHome}/modules/jakarta.servlet.jsp.jstl-api.jar${pathsep}${webServerHome}/modules/jakarta.servlet-api.jar${pathsep}${webServerHome}/modules/jakarta.el.jar${pathsep}${webServerHome}/modules/jakarta.servlet.jsp-api.jar - -######################################################################## -# @javatest.timeout.factor This property specifies the scale factor used by -# Javatest to adjust the time JavaTest will wait for a given test to -# complete before returning failure. For instance if the default test timeout -# is 5 minutes, this value will be multiplied by 5 minutes to determine -# the total timeout delay. Note: this value only works with Javatest's -# batch mode (runclient). When using the Javatest GUI users must change -# this timeout factor in the GUI. Configure -> Edit Configuration -> View -# -> choose Standard Values -> select tab Execution -> set Time Factor. -######################################################################## -javatest.timeout.factor=2.0 - -######################################################################## -# -# @jimage.dir: This property specifies the directory where Java 11+ -# modules will be expanded by the jimage tool for use -# in sigTestClasspath -# -# @sigTestClasspath: This property must be set when running signature -# tests. This property should be set to a list of -# jar files and/or directories which contain your -# Java EE and Java SE classes. Paths must be -# separated by the appropriate path separator -# (';' windows, ':' Unixes). -# -######################################################################## -jimage.dir=${ts.home}/tmp/jdk-bundles - -sigTestClasspath=${jsf.classes}${pathsep}${jspservlet.classes}${pathsep}${jimage.dir}/java.base${pathsep}${jimage.dir}/java.rmi${pathsep}${jimage.dir}/java.sql${pathsep}${jimage.dir}/java.naming - -######################################################################## -#These properties must be set to tell the Javatest harness the -#class names of your porting class implementations. By default -#the property settings below point to Sun RI specific classes. -######################################################################## -porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL - - -######################################################################## -# Javatest batch mode work directory and report directory, and policy for -# handling existing work and report directories. These properties affects -# runclient and report targets, but not gui target. -# To disable generating test report, unset report.dir, or set it to "none" -# either here or from command line, as in the following command: -# ant runclient -Dreport.dir="none" -# -# if.existing.work.report.dirs specifies how existing work.dir and -# report.dir will be handled, and it must be one of the following values: -# overwrite overwrites all content in work.dir and report.dir -# backup moves all content in work.dir and report.dir to -# work.dir_time_day_bak and report.dir_time_day_bak, -# respectively -# append reuses and preserves the existing work.dir and report.dir -######################################################################## -work.dir=/tmp/JTwork -report.dir=/tmp/JTreport -if.existing.work.report.dirs=overwrite - -######################################################################## -## Common environment for both ts_unix and ts_win32 -# -# @command.testExecute - This command is used to execute any test -# clients which are not run inside an -# application client container. For example, -# any URL clients or standalone java clients -# would be executed with this command. Some -# test directories which make use of this command -# are servlet and jsp. -######################################################################## -command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \ - CLASSPATH=${JAVA_HOME}/lib/rt.jar${pathsep}\ - ${LOCAL_CLASSES} \ - HOME="${user.home}" \ - windir=${windir} \ - SYSTEMROOT=${SYSTEMROOT} \ - ${JAVA_HOME}/bin/java \ - ${JAVA_OPTIONS} $testExecuteClass $testExecuteArgs - -######################################################################## -# Environment ts_unix -######################################################################## -env.ts_unix.menu=true - -######################################################################## -# Environment ts_win32 -######################################################################## -env.ts_win32.menu=true - -########################################################################## -# Include the TS harness libs - tsharness.jar, -# javatest.jar - the test classes and any tck specific jars. -# DO NOT EDIT -########################################################################## -local.classes=${ts.home}/lib/tsharness.jar${pathsep}\ -${ts.home}/lib/jsftck.jar${pathsep}\ -${ts.home}/lib/sigtest.jar${pathsep}\ -${ts.home}/lib/javatest.jar${pathsep}\ -${ts.home}/classes${pathsep}\ -${jsf.classes}${pathsep}\ -${jspservlet.classes}${pathsep}\ -${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}\ -${ts.home}/lib/commons-io-2.4.jar${pathsep}\ -${ts.home}/lib/commons-lang3-3.3.2.jar${pathsep}\ -${ts.home}/lib/commons-codec-1.9.jar${pathsep}\ -${ts.home}/lib/commons-collections-3.2.1.jar${pathsep}\ -${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}\ -${ts.home}/lib/cssparser-0.9.25.jar${pathsep}\ -${ts.home}/lib/htmlunit-2.15.jar${pathsep}\ -${ts.home}/lib/htmlunit-core-js-2.15.jar${pathsep}\ -${ts.home}/lib/httpcore-4.4.9.jar${pathsep}\ -${ts.home}/lib/httpclient-4.5.5.jar${pathsep}\ -${ts.home}/lib/httpmime-4.5.5.jar${pathsep}\ -${ts.home}/lib/nekohtml-1.9.21.jar${pathsep}\ -${ts.home}/lib/sac-1.3.jar${pathsep}\ -${ts.home}/lib/saxpath.jar${pathsep}\ -${ts.home}/lib/jaxen-1.1.6.jar${pathsep}\ -${ts.home}/lib/jaxen-core-1.0.jar${pathsep}\ -${ts.home}/lib/jdom-1.1.3.jar${pathsep}\ -${ts.home}/lib/xercesImpl-2.11.0.jar${pathsep}\ -${ts.home}/lib/xalan-2.7.2.jar${pathsep}\ -${ts.home}/lib/serializer-2.7.2.jar${pathsep}\ -${ts.home}/lib/xml-apis-1.4.01.jar${pathsep}\ - -########################################################################## -# Final classpath -# DO NOT EDIT -########################################################################## -ts.classpath=${local.classes}${pathsep}${ant.home}/lib/ant.jar -ts.harness.classpath=${ts.classpath} - -######################################################################## -#These properties are used by the harness. "harness.log.port" -#specifies the port that server components use to send logging -#output back to JavaTest. If the default port # is not available -#on the machine running JavaTest, then you can set it here. -# -#"harness.log.traceflag" is used to turn on/off verbose debugging output -#for the tests. -# -# "harness.executeMode" is used to run the harness in the following modes -# of execution (DO NOT EDIT): -# 2 - run only -######################################################################## -harness.temp.directory=${ts.home}/tmp -harness.log.port=2000 -harness.log.mode=silent -harness.log.traceflag=true -harness.executeMode=2 -harness.log.delayseconds=1 -harness.socket.retry.count=10 -ts_home=${TS_HOME} - -########################################################################## -# Set your local timezone. For valid values, consult your Operating System -# documentation. -########################################################################## -tz=US/Eastern - -######################################################################## -# This property specifies the type of archive that is generated. -# DO NOT EDIT -######################################################################## -build.level=2 - -########################################################################## -# The alt.schema.dir and alt.dtd.dir properties specifu the location of -# the Schemas used to package the TCK tests (web, Java EE, etc). These -# properties need not be set if only running the tests. -# DO NOT EDIT -########################################################################## -alt.dtd.dir=${ts.home}/lib/dtds -alt.schema.dir=${ts.home}/lib/schemas - -########################################################################## -# Needed for building/packaging -########################################################################## -deliverable.class=com.sun.ts.lib.deliverable.tck.TCKDeliverable diff --git a/install/jsf/bin/ts.jtx b/install/jsf/bin/ts.jtx deleted file mode 100644 index dd61c47088..0000000000 --- a/install/jsf/bin/ts.jtx +++ /dev/null @@ -1,16 +0,0 @@ -# -# Copyright (c) 2006, 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - diff --git a/install/jsf/docs/README.txt b/install/jsf/docs/README.txt deleted file mode 100644 index e0ecaa2f27..0000000000 --- a/install/jsf/docs/README.txt +++ /dev/null @@ -1,20 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# -The Java Server Faces Technology Compatibility Kit 3.0 User's Guide provides -the information you need to install, configure, and run the Server Faces -TCK. The User's Guide also contains the rules you need to pass for -certification. The guide is available in PDF format at -pdf-usersguide/Jakarta-Server-Faces-TCK-Users-Guide.pdf relative to this README file. diff --git a/install/jsf/docs/ReleaseNotes.html b/install/jsf/docs/ReleaseNotes.html deleted file mode 100644 index 787ad68b1b..0000000000 --- a/install/jsf/docs/ReleaseNotes.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - Jakarta EE Server Faces TCK Release Notes - - - - -
-

Jakarta EE Server Faces Technology Compatibility Kit, Version 3.0

-

Release Notes, May 2021

-
-
- - - - - - - -
-

Note

-
-

These notes are for the 3.0 release of the - Jakarta EE Server Faces TCK 3.0 product.

-
-
-

Kit Contents

-

The Jakarta EE Server Faces Version 3.0, Technology Compatibility Kit - (TCK) includes the following items:

- -
-

Platform Notes

-

The Jakarta EE Server Faces TCK tests have been built with JDK 8 (1.8) - and tested with a Jakarta EE Compatible Implementation (Eclipse GlassFish - 6.0 or 6.1) , running on the JavaTM Standard - Edition (Java SE) version 8 and 11. If you are using a different web - server, you will need to make adjustments to the procedures outlined in - this document.

-

Refer to the Jakarta EE Server Faces TCK 3.0 User's Guide (HMTL, - PDF) - for platform compatibility requirements and notes.

-
-

Compatible Implementation

-

A compatible implementation for this release is Eclipse Mojarra which - includes Jakarta EE Server Faces 3.0. To run the TCK, you will need to use - a Web container or a Jakarta EE 9.1 compatible server that has integrated - Mojarra 3.0. For the current Jakarta EE 9.1 server, you will need to perform - the integration manually. Download Mojarra 3.0 from maven using the - following GAV:

-
<dependency>
-  <groupId>org.glassfish</groupId>
-  <artifactId>jakarta.faces</artifactId>
-  <version>3.0.0</version>
-</dependency>
-
-

and replace the existing jakarta.faces.jar with the - downloaded jar. This step will not be necessary for Jakarta EE 8 - compatible server releases if they will come with Mojarra 3.0 - preintegrated.

-
-

Installing, Setting Up, and Running the - Jakarta EE Server Faces TCK

-

Refer to the Jakarta EE Server Faces TCK 3.0 User's Guide (HMTL, - PDF), - for complete instructions on installing, setting up, and running the - Jakarta EE Server Faces TCK. The online version of the JT Harness version - 5.0 documentation is available here.

-
-

Attributions

-

The Jakarta EE Server Faces TCK 3.0 includes software developed by the - Apache Software Foundation (http://www.apache.org/), - the dom4j Project (http://www.dom4j.org/), - and the JDOMTM Project (http://www.jdom.org/). - The Apache Ant Contrib project is located at http://ant-contrib.sourceforge.net/. -

-
-

-
Copyright 2017, 2021 Oracle and/or its affiliates. All - rights reserved.
- - -

- - diff --git a/install/jsf/docs/assertions/JakartaFacesJavadocAssertions.html b/install/jsf/docs/assertions/JakartaFacesJavadocAssertions.html deleted file mode 100644 index 357b71c07c..0000000000 --- a/install/jsf/docs/assertions/JakartaFacesJavadocAssertions.html +++ /dev/null @@ -1,125688 +0,0 @@ - - - - - JavaDoc Assertion Detail - - - -
-
-

- Jakarta Server Faces - 4.0.0 -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Totals - - Total - - Active - - Deprecated - - Removed -
- - # of Assertions - - - 6129 - - 4040 - - 45 - - 2044 -
- - # of Required Assertions - - - 6129 - - 4040 - - 45 - - 2044 -
- - # of Optional Assertions - - - 0 - - 0 - - 0 - - 0 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ID - - Return - - Method/Field - - Description - - Required - - Deprecated - - Testable -
- JSF:JAVADOC:1 - - FacesException - - jakarta.faces.FacesException.FacesException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2 - - FacesException - - jakarta.faces.FacesException.FacesException -
- ( - String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:3 - - FacesException - - jakarta.faces.FacesException.FacesException -
- ( - Throwable - ) -
-
- Construct a new exception with the specified root cause. The detail message will be set - to (cause == null ? null : cause.toString() - - true - - -
-
-
- true -
- JSF:JAVADOC:4 - - FacesException - - jakarta.faces.FacesException.FacesException -
- ( - String - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5 - - Throwable - - jakarta.faces.FacesException.getCause -
-
-
- Return the cause of this exception, or null if the cause is nonexistent or unknown. - - - true - - -
-
-
- true -
- JSF:JAVADOC:7 - - Object - - jakarta.faces.FactoryFinder.getFactory -
- ( - String - ) - -
- throws - FacesException -
-
-
- if the web application class loader cannot be identified - - true - - -
-
-
- true -
- JSF:JAVADOC:12 - - void - - jakarta.faces.FactoryFinder.releaseFactories -
-
- throws - FacesException -
-
-
- if the web application class loader cannot be identified - - true - - -
-
-
- true -
- JSF:JAVADOC:15 - - Application - - jakarta.faces.application.Application.Application -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:33 - - Application - - jakarta.faces.application.ApplicationFactory.getApplication -
-
-
- Create (if needed) and return an Application instance for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:34 - - void - - jakarta.faces.application.ApplicationFactory.setApplication -
- ( - Application - ) -
-
- Replace the Application instance that will be returned for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:37 - - NavigationHandler - - jakarta.faces.application.NavigationHandler.NavigationHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:91 - - UICommand - - jakarta.faces.component.UICommand.UICommand -
-
-
- Create a new UICommand instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:207 - - void - - jakarta.faces.component.UIComponent.encodeBegin -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:210 - - void - - jakarta.faces.component.UIComponent.encodeChildren -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:213 - - void - - jakarta.faces.component.UIComponent.encodeEnd -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:234 - - String - - jakarta.faces.component.UIComponent.getRendererType -
-
-
- Return the Renderer type for this UIComponent (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:238 - - boolean - - jakarta.faces.component.UIComponent.isRendered -
-
-
- Return true if this component (and its children) should be rendered during the Render - Response phase of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:270 - - void - - jakarta.faces.component.UIComponent.setRendered -
- ( - boolean - ) -
-
- Set the rendered property of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:271 - - void - - jakarta.faces.component.UIComponent.setRendererType -
- ( - String - ) -
-
- Set the Renderer type for this UIComponent, or null for components that render - themselves. - - true - - -
-
-
- true -
- JSF:JAVADOC:302 - - void - - jakarta.faces.component.UIComponentBase.encodeBegin -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:305 - - void - - jakarta.faces.component.UIComponentBase.encodeChildren -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:308 - - void - - jakarta.faces.component.UIComponentBase.encodeEnd -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:329 - - String - - jakarta.faces.component.UIComponentBase.getRendererType -
-
-
- Return the Renderer type for this UIComponent (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:333 - - boolean - - jakarta.faces.component.UIComponentBase.isRendered -
-
-
- Return true if this component (and its children) should be rendered during the Render - Response phase of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:365 - - void - - jakarta.faces.component.UIComponentBase.setRendered -
- ( - boolean - ) -
-
- Set the rendered property of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:366 - - void - - jakarta.faces.component.UIComponentBase.setRendererType -
- ( - String - ) -
-
- Set the Renderer type for this UIComponent, or null for components that render - themselves. - - true - - -
-
-
- true -
- JSF:JAVADOC:376 - - UIForm - - jakarta.faces.component.UIForm.UIForm -
-
-
- Create a new UIForm instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:474 - - UIGraphic - - jakarta.faces.component.UIGraphic.UIGraphic -
-
-
- Create a new UIGraphic instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:589 - - UIInput - - jakarta.faces.component.UIInput.UIInput -
-
-
- Create a new UIInput instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:803 - - UIOutput - - jakarta.faces.component.UIOutput.UIOutput -
-
-
- Create a new UIOutput instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:900 - - UIPanel - - jakarta.faces.component.UIPanel.UIPanel -
-
-
- Create a new UIPanel instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1003 - - String - - jakarta.faces.component.UIParameter.getName -
-
-
- Return the optional parameter name for this parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:1005 - - void - - jakarta.faces.component.UIParameter.setName -
- ( - String - ) -
-
- Set the optional parameter name for this parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:1006 - - UIParameter - - jakarta.faces.component.UIParameter.UIParameter -
-
-
- Create a new UIParameter instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1111 - - UISelectBoolean - - jakarta.faces.component.UISelectBoolean.UISelectBoolean -
-
-
- Create a new UISelectBoolean instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1222 - - String - - jakarta.faces.component.UISelectItem.getItemDescription -
-
-
- Return the description for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:1223 - - String - - jakarta.faces.component.UISelectItem.getItemLabel -
-
-
- Return the localized label for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:1226 - - void - - jakarta.faces.component.UISelectItem.setItemDescription -
- ( - String - ) -
-
- Set the description for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:1227 - - void - - jakarta.faces.component.UISelectItem.setItemLabel -
- ( - String - ) -
-
- Set the localized label for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:1438 - - UISelectMany - - jakarta.faces.component.UISelectMany.UISelectMany -
-
-
- Create a new UISelectMany instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1562 - - UISelectOne - - jakarta.faces.component.UISelectOne.UISelectOne -
-
-
- Create a new UISelectOne instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1695 - - ResponseStream - - jakarta.faces.context.FacesContext.getResponseStream -
-
-
- Return the ResponseStream to which components should direct their binary output. Within - a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - - - true - - -
-
-
- true -
- JSF:JAVADOC:1696 - - ResponseWriter - - jakarta.faces.context.FacesContext.getResponseWriter -
-
-
- Return the ResponseWriter to which components should direct their character-based - output. Within a given response, components can use either the ResponseStream or the ResponseWriter, - but not both. - - true - - -
-
-
- true -
- JSF:JAVADOC:1705 - - void - - jakarta.faces.context.FacesContext.setResponseStream -
- ( - ResponseStream - ) -
-
- Set the ResponseStream to which components should direct their binary output. - - true - - -
-
-
- true -
- JSF:JAVADOC:1707 - - void - - jakarta.faces.context.FacesContext.setResponseWriter -
- ( - ResponseWriter - ) -
-
- Set the ResponseWriter to which components should direct their character-based output. - - - true - - -
-
-
- true -
- JSF:JAVADOC:1749 - - ResponseStream - - jakarta.faces.context.ResponseStream.ResponseStream -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1760 - - void - - jakarta.faces.context.ResponseWriter.endDocument -
-
-
- Write whatever text should end a response. If there is an open element that has been - created by a call to startElement(), that element will be closed first. - - true - - -
-
-
- true -
- JSF:JAVADOC:1761 - - void - - jakarta.faces.context.ResponseWriter.endDocument -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:1763 - - void - - jakarta.faces.context.ResponseWriter.endElement -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:1765 - - ResponseWriter - - jakarta.faces.context.ResponseWriter.ResponseWriter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1766 - - void - - jakarta.faces.context.ResponseWriter.startDocument -
-
-
- Write whatever text should begin a response. - - true - - -
-
-
- true -
- JSF:JAVADOC:1767 - - void - - jakarta.faces.context.ResponseWriter.startDocument -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:1776 - - void - - jakarta.faces.context.ResponseWriter.writeComment -
- ( - Object - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:1787 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - char[] - , -
- int - , -
- int - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:1811 - - String - - jakarta.faces.convert.Converter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Convert the specified model object value, which is associated with the specified - UIComponent, into a String that is suitable for being included in the response generated during the - Render Response phase of the request processing lifeycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:1814 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:1815 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
- ( - String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:1816 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
- ( - Throwable - ) -
-
- Construct a new exception with the specified root cause. The detail message will be set - to (cause == null ? null : cause.toString() - - true - - -
-
-
- true -
- JSF:JAVADOC:1817 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
- ( - String - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:1896 - - void - - jakarta.faces.event.ActionListener.processAction -
- ( - ActionEvent - ) -
-
- Invoked when the action described by the specified ActionEvent occurs. - - true - - -
-
-
- true -
- JSF:JAVADOC:1899 - - FacesEvent - - jakarta.faces.event.FacesEvent.FacesEvent -
- ( - UIComponent - ) -
-
- Construct a new event object from the specified source component. - - true - - -
-
-
- true -
- JSF:JAVADOC:1900 - - UIComponent - - jakarta.faces.event.FacesEvent.getComponent -
-
-
- Return the source UIComponent that sent this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:1902 - - int - - jakarta.faces.event.PhaseId.compareTo -
- ( - Object - ) -
-
- Compare this PhaseId instance to the specified one. Returns a negative integer, zero, - or a positive integer if this object is less than, equal to, or greater than the specified object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:1903 - - int - - jakarta.faces.event.PhaseId.getOrdinal -
-
-
- Return the ordinal value of this PhaseId instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:1904 - - String - - jakarta.faces.event.PhaseId.toString -
-
-
- Return a String representation of this PhaseId instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:1913 - - void - - jakarta.faces.lifecycle.Lifecycle.execute -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- if thrown during the execution of the request processing lifecycle - - true - - -
-
-
- true -
- JSF:JAVADOC:1916 - - Lifecycle - - jakarta.faces.lifecycle.Lifecycle.Lifecycle -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1920 - - void - - jakarta.faces.lifecycle.LifecycleFactory.addLifecycle -
- ( - String - , -
- Lifecycle - ) -
-
- Register a new Lifecycle instance, associated with the specified lifecycleId, to be - supported by this LifecycleFactory. This method may be called at any time, and makes the - corresponding Lifecycle instance available throughout the remaining lifetime of this web - application. - - true - - -
-
-
- true -
- JSF:JAVADOC:1923 - - Lifecycle - - jakarta.faces.lifecycle.LifecycleFactory.getLifecycle -
- ( - String - ) -
-
- Create (if needed) and return a Lifecycle instance for the specified lifecycle - identifier. The set of available lifecycle identifiers is available via the getLifecycleIds() - method. Each call to getLifecycle() for the same lifecycleId, from within the same web application, - must return the same Lifecycle instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:1926 - - Iterator - - jakarta.faces.lifecycle.LifecycleFactory.getLifecycleIds -
-
-
- Return an Iterator over the set of lifecycle identifiers supported by this factory. - This set must include the value specified by LifecycleFactory.DEFAULT_LIFECYCLE. - - true - - -
-
-
- true -
- JSF:JAVADOC:1936 - - void - - jakarta.faces.render.Renderer.encodeBegin -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:1938 - - void - - jakarta.faces.render.Renderer.encodeChildren -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the child components of this UIComponent, following the rules described for - encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if - the rendersChildren property of this component is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:1939 - - void - - jakarta.faces.render.Renderer.encodeChildren -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:1941 - - void - - jakarta.faces.render.Renderer.encodeEnd -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the ending of the current state of the specified UIComponent, following the - rules described for encodeBegin() to acquire the appropriate value to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:1942 - - void - - jakarta.faces.render.Renderer.encodeEnd -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:1960 - - Renderer - - jakarta.faces.render.Renderer.Renderer -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1980 - - RenderKit - - jakarta.faces.render.RenderKit.RenderKit -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2001 - - DoubleRangeValidator - - jakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator -
-
-
- Construct a Validator with no preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2002 - - DoubleRangeValidator - - jakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator -
- ( - double - ) -
-
- Construct a Validator with the specified preconfigured limit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2003 - - DoubleRangeValidator - - jakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator -
- ( - double - , -
- double - ) -
-
- Construct a Validator with the specified preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2008 - - void - - jakarta.faces.validator.DoubleRangeValidator.setMaximum -
- ( - double - ) -
-
- Set the maximum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2010 - - void - - jakarta.faces.validator.DoubleRangeValidator.setMinimum -
- ( - double - ) -
-
- Set the minimum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2018 - - LengthValidator - - jakarta.faces.validator.LengthValidator.LengthValidator -
-
-
- Construct a Validator with no preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2019 - - LengthValidator - - jakarta.faces.validator.LengthValidator.LengthValidator -
- ( - int - ) -
-
- Construct a Validator with the specified preconfigured limit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2020 - - LengthValidator - - jakarta.faces.validator.LengthValidator.LengthValidator -
- ( - int - , -
- int - ) -
-
- Construct a Validator with the specified preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2021 - - void - - jakarta.faces.validator.LengthValidator.setMaximum -
- ( - int - ) -
-
- Set the maximum length to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2023 - - void - - jakarta.faces.validator.LengthValidator.setMinimum -
- ( - int - ) -
-
- Set the minimum length to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2031 - - LongRangeValidator - - jakarta.faces.validator.LongRangeValidator.LongRangeValidator -
-
-
- Construct a Validator with no preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2032 - - LongRangeValidator - - jakarta.faces.validator.LongRangeValidator.LongRangeValidator -
- ( - long - ) -
-
- Construct a Validator with the specified preconfigured limit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2033 - - LongRangeValidator - - jakarta.faces.validator.LongRangeValidator.LongRangeValidator -
- ( - long - , -
- long - ) -
-
- Construct a Validator with the specified preconfigured limits. - - true - - -
-
-
- true -
- JSF:JAVADOC:2034 - - void - - jakarta.faces.validator.LongRangeValidator.setMaximum -
- ( - long - ) -
-
- Set the maximum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2036 - - void - - jakarta.faces.validator.LongRangeValidator.setMinimum -
- ( - long - ) -
-
- Set the minimum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2040 - - RequiredValidator - - jakarta.faces.validator.RequiredValidator.RequiredValidator -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2087 - - void - - jakarta.faces.webapp.FacesServlet.destroy -
-
-
- Release all resources acquired at startup time. - - true - - -
-
-
- true -
- JSF:JAVADOC:2088 - - FacesServlet - - jakarta.faces.webapp.FacesServlet.FacesServlet -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2090 - - String - - jakarta.faces.webapp.FacesServlet.getServletInfo -
-
-
- Return information about this Servlet. - - true - - -
-
-
- true -
- JSF:JAVADOC:32 - - ApplicationFactory - - jakarta.faces.application.ApplicationFactory.ApplicationFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:1712 - - FacesContextFactory - - jakarta.faces.context.FacesContextFactory.FacesContextFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:1927 - - LifecycleFactory - - jakarta.faces.lifecycle.LifecycleFactory.LifecycleFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:1991 - - RenderKitFactory - - jakarta.faces.render.RenderKitFactory.RenderKitFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:6__OLD - - Object - - jakarta.faces.FactoryFinder.getFactory -
- ( - String - ) -
-
- Create (if necessary) and return a per-web-application instance of the appropriate - implementation class for the specified JavaServer Faces factory class, based on the discovery - algorithm described in the class description. - - true - - -
-
-
- true -
- JSF:JAVADOC:6 - - Object - - jakarta.faces.FactoryFinder.getFactory -
- ( - String - ) -
-
- Create (if necessary) and return a per-web-application instance of the appropriate - implementation class for the specified Jakarta Faces factory class, based on the discovery algorithm - described in the class description. The standard injectionProvider and wrappers in Jakarta Faces all - implement the interface FacesWrapper. If the returned Object is an implementation of one of the - standard injectionProvider, it must be legal to cast it to an instance of FacesWrapper and call - FacesWrapper#getWrapped on the instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:11__OLD - - void - - jakarta.faces.FactoryFinder.releaseFactories -
-
-
- Release any references to factory instances associated with the class loader for the - calling web application. This method should be called as apart of web application shutdown in a - container where the JavaServer Faces API classes are part of the container itself, rather than being - included inside the web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:11 - - void - - jakarta.faces.FactoryFinder.releaseFactories -
-
-
- Release any references to factory instances associated with the class loader for the - calling web application. This method must be called during of web application shutdown. - - true - - -
-
-
- true -
- JSF:JAVADOC:16__OLD - - ActionListener - - jakarta.faces.application.Application.getActionListener -
-
-
- Return the ActionListener that will be the default ActionListener to be registered with - relevant components during the Reconstitute Component Tree phase of the request processing - lifecycle. The default implementation will perform the following functions: The getPhaseId() method - of this listener instance must return PhaseId.INVOKE_APPLICATION. If the source component has a - non-null action property, return that value. If the source component has a non-null actionRef - property, evaluate this value reference to retrieve the corresponding object. If there is no such - corresponding object, or if this object does not implement Action, throw an - IllegalArgumentException. Call the invoke() method of the returned object, and return the return - value from that method call. - - true - - -
-
-
- true -
- JSF:JAVADOC:16 - - ActionListener - - jakarta.faces.application.Application.getActionListener -
-
-
- Return the default ActionListener to be registered for all - jakarta.faces.component.ActionSource components in this application. If not explicitly set, a - default implementation must be provided that performs the functions as specified in the section - 7.1.1 "ActionListener Property" in the chapter 7 "Application Integration" of the Jakarta Faces - Specification Document. Note that the specification for the default ActionListener contiues to call - for the use of a deprecated property (action) and class (MethodBinding). Unfortunately, this is - necessary because the default ActionListener must continue to work with components that do not - implement jakarta.faces.component.ActionSource2, and only implement - jakarta.faces.component.ActionSource. - - true - - -
-
-
- true -
- JSF:JAVADOC:17__OLD - - NavigationHandler - - jakarta.faces.application.Application.getNavigationHandler -
-
-
- Return the NavigationHandler instance that will be passed the outcome returned by any - invoked Action for this web application. The default implementation must provide the behavior - described in the NavigationHandler class description. - - true - - -
-
-
- true -
- JSF:JAVADOC:17 - - NavigationHandler - - jakarta.faces.application.Application.getNavigationHandler -
-
-
- Return the NavigationHandler instance that will be passed the outcome returned by any - invoked application action for this web application. If not explicitly set, a default implementation - must be provided that performs the functions described in the NavigationHandler class description. - The NavigationHandler implementation is declared in the application configuration resources by - giving the fully qualified class name as the value of the element within the element. The runtime - must employ the decorator pattern as for every other pluggable artifact in Jakarta Faces. - - true - - -
-
-
- true -
- JSF:JAVADOC:23__OLD - - void - - jakarta.faces.application.Application.setActionListener -
- ( - ActionListener - ) -
-
- Replace the default ActionListener that will be registered with relevant components - during the Reconstitute Component Tree phase of the requset processing lifecycle. This listener must - return PhaseId.INVOKE_APPLICATION from its getPhaseId() method. - - true - - -
-
-
- true -
- JSF:JAVADOC:23 - - void - - jakarta.faces.application.Application.setActionListener -
- ( - ActionListener - ) -
-
- Set the default ActionListener to be registered for all - jakarta.faces.component.ActionSource components. - - true - - -
-
-
- true -
- JSF:JAVADOC:26__OLD - - void - - jakarta.faces.application.Application.setNavigationHandler -
- ( - NavigationHandler - ) -
-
- Set the NavigationHandler instance that will be passed the outcome returned by any - invoked Action for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:26 - - void - - jakarta.faces.application.Application.setNavigationHandler -
- ( - NavigationHandler - ) -
-
- Set the NavigationHandler instance that will be passed the outcome returned by any - invoked application action for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:74__OLD - - void - - jakarta.faces.component.UICommand.addActionListener -
- ( - ActionListener - ) -
-
- Add a new ActionListener to the set of listeners interested in being notified when - ActionEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:74 - - void - - jakarta.faces.component.UICommand.addActionListener -
- ( - ActionListener - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:86__OLD - - void - - jakarta.faces.component.UICommand.removeActionListener -
- ( - ActionListener - ) -
-
- Remove an existing ActionListener (if any) from the set of listeners interested in - being notified when ActionEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:86 - - void - - jakarta.faces.component.UICommand.removeActionListener -
- ( - ActionListener - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:203__OLD - - void - - jakarta.faces.component.UIComponent.decode -
- ( - FacesContext - ) -
-
- Decode the current state of this UIComponent from the request contained in the - specified FacesContext, and attempt to convert this state information into an object of the required - type for this component (optionally using the registered jakarta.faces.convert.Converter for this - component, if there is one. If conversion is successful: Save the new local value of this component - by calling setValue() and passing the new value. Set the valid property of this component to true. - If conversion is not successful: Save state information in such a way that encoding can reproduce - the previous input (even though it was syntactically or semantically incorrect) Add an appropriate - conversion failure error message by calling context.addMessage(). Set the valid property of this - comonent to false. During decoding, events may be enqueued for later processing (by event listeners - who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - - true - - -
-
-
- true -
- JSF:JAVADOC:203 - - void - - jakarta.faces.component.UIComponent.decode -
- ( - FacesContext - ) -
-
- Decode any new state of this UIComponent from the request contained in the specified - FacesContext, and store this state as needed. During decoding, events may be enqueued for later - processing (by event listeners who have registered an interest), by calling queueEvent(). - - true - - -
-
-
- true -
- JSF:JAVADOC:206__OLD - - void - - jakarta.faces.component.UIComponent.encodeBegin -
- ( - FacesContext - ) -
-
- Render the beginning of the current state of this UIComponent to the response contained - in the specified FacesContext. If the conversion attempted in a previous call to decode() for this - component failed, the state information saved during execution of decode() should be utilized to - reproduce the incorrect input. If the conversion was successful, or if there was no previous call to - decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the - value as appropriate. - - true - - -
-
-
- true -
- JSF:JAVADOC:206 - - void - - jakarta.faces.component.UIComponent.encodeBegin -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the beginning of the current state of this - UIComponent to the response contained in the specified FacesContext. Call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call - jakarta.faces.application.Application#publishEvent, passing - jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance - to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual - encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered - property is false, call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and - return immediately. - - true - - -
-
-
- true -
- JSF:JAVADOC:209__OLD - - void - - jakarta.faces.component.UIComponent.encodeChildren -
- ( - FacesContext - ) -
-
- Render the child UIComponents of this UIComponent, following the rules described for - encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if - the rendersChildren property is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:209 - - void - - jakarta.faces.component.UIComponent.encodeChildren -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the child UIComponents of this UIComponent. - This method will only be called if the rendersChildren property is true. If a Renderer is associated - with this UIComponent, the actual encoding will be delegated to - Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this - UIComponent, iterate over each of the children of this component and call - #encodeAll(jakarta.faces.context.FacesContext). - - true - - -
-
-
- true -
- JSF:JAVADOC:212__OLD - - void - - jakarta.faces.component.UIComponent.encodeEnd -
- ( - FacesContext - ) -
-
- Render the ending of the current state of this UIComponent, following the rules - described for encodeBegin() to acquire the appropriate value to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:212 - - void - - jakarta.faces.component.UIComponent.encodeEnd -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the ending of the current state of this - UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be - delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. - before returning regardless of the value of the rendered property. - - true - - -
-
-
- true -
- JSF:JAVADOC:215__OLD - - UIComponent - - jakarta.faces.component.UIComponent.findComponent -
- ( - String - ) -
-
- Find the UIComponent named by the specified expression, if any is found. This is done - by locating the closest parent UIComponent that is a NamingContainer, and calling its - findComponentInNamespace() method. The specified expr may contain either a component identifier, or - a set of component identifiers separated by SEPARATOR_CHAR characters. - - true - - -
-
-
- true -
- JSF:JAVADOC:215 - - UIComponent - - jakarta.faces.component.UIComponent.findComponent -
- ( - String - ) -
-
- Search for and return the UIComponent with an id that matches the specified search - expression (if any), according to the algorithm described below. WARNING: The found UIComponent - instance, if any, is returned without regard for its tree traversal context. Retrieving an Jakarta - Expression Language-bound attribute from the component is not safe. Jakarta Expression Language - expressions can contain implicit objects, such as #{component}, which assume they are being - evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of - implicit objects outside of a tree traversal context produces undefined results. See - #invokeOnComponent for a method that does correctly account for the tree traversal context when - operating on the found UIComponent instance. #invokeOnComponent is also useful to find components - given a simple clientId. Component identifiers are required to be unique within the scope of the - closest ancestor NamingContainer that encloses this component (which might be this component - itself). If there are no NamingContainer components in the ancestry of this component, the root - component in the tree is treated as if it were a NamingContainer, whether or not its class actually - implements the NamingContainer interface. A search expression consists of either an identifier - (which is matched exactly against the id property of a UIComponent, or a series of such identifiers - linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should - operates as follows, though alternate alogrithms may be used as long as the end result is the same: - Identify the UIComponent that will be the base for searching, by stopping as soon as one of the - following conditions is met: If the search expression begins with the the separator character - (called an "absolute" search expression), the base will be the root UIComponent of the component - tree. The leading separator character will be stripped off, and the remainder of the search - expression will be treated as a "relative" search expression as described below. Otherwise, if this - UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of - this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no - NamingContainer is encountered) the root UIComponent will be the base. The search expression - (possibly modified in the previous step) is now a "relative" search expression that will be used to - locate the component (if any) that has an id that matches, within the scope of the base component. - The match is performed as follows: If the search expression is a simple identifier, this value is - compared to the id property, and then recursively through the facets and children of the base - UIComponent (except that if a descendant NamingContainer is found, its own facets and children are - not searched). If the search expression includes more than one identifier separated by the separator - character, the first identifier is used to locate a NamingContainer by the rules in the previous - bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the - remainder of the search expression. - - true - - -
-
-
- true -
- JSF:JAVADOC:222__OLD - - int - - jakarta.faces.component.UIComponent.getChildCount -
-
-
- Return the number of UIComponents on the child list for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:222 - - int - - jakarta.faces.component.UIComponent.getChildCount -
-
-
- Return the number of child UIComponents that are associated with this UIComponent. If - there are no children, this method must return 0. The method must not cause the creation of a child - component list. - - true - - -
-
-
- true -
- JSF:JAVADOC:224__OLD - - String - - jakarta.faces.component.UIComponent.getClientId -
- ( - FacesContext - ) -
-
- Return a client-side identifier for this component, generating one if necessary. - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - - - true - - -
-
-
- true -
- JSF:JAVADOC:224 - - String - - jakarta.faces.component.UIComponent.getClientId -
- ( - FacesContext - ) -
-
- Return a client-side identifier for this component, generating one if necessary. The - associated Renderer, if any, will be asked to convert the clientId to a form suitable for - transmission to the client. The return from this method must be the same value throughout the - lifetime of the instance, unless the id property of the component is changed, or the component is - placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these - cases, consecutive calls to this method must always return the same value. The implementation must - follow these steps in determining the clientId: Find the closest ancestor to this component in the - view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the - result as the parentId local variable. Call #getId on this component and save the result as the myId - local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result - to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + - myId. Call Renderer#convertClientId, passing myId, and return the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:229__OLD - - UIComponent - - jakarta.faces.component.UIComponent.getFacet -
- ( - String - ) -
-
- Return the facet UIComponent associated with the specified name, if any. Otherwise, - return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:229 - - UIComponent - - jakarta.faces.component.UIComponent.getFacet -
- ( - String - ) -
-
- Convenience method to return the named facet, if it exists, or null otherwise. If the - requested facet does not exist, the facets Map must not be created. - - true - - -
-
-
- true -
- JSF:JAVADOC:232__OLD - - Iterator - - jakarta.faces.component.UIComponent.getFacetsAndChildren -
-
-
- Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored - in the child list. If this component has no facets or children, an empty Iterator is returned. - - - true - - -
-
-
- true -
- JSF:JAVADOC:232 - - Iterator - - jakarta.faces.component.UIComponent.getFacetsAndChildren -
-
-
- Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored - in the child list. If this component has no facets or children, an empty Iterator is returned. The - returned Iterator must not support the remove() operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:233__OLD - - UIComponent - - jakarta.faces.component.UIComponent.getParent -
-
-
- Return the parent UIComponent of this UIComponent, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:233 - - UIComponent - - jakarta.faces.component.UIComponent.getParent -
-
-
- Return the parent UIComponent of this UIComponent, if any. A component must allow child - components to be added to and removed from the list of children of this component, even though the - child component returns null from getParent( ). - - true - - -
-
-
- true -
- JSF:JAVADOC:235__OLD - - boolean - - jakarta.faces.component.UIComponent.getRendersChildren -
-
-
- Return a flag indicating whether this component is responsible for rendering its child - components. - - true - - -
-
-
- true -
- JSF:JAVADOC:235 - - boolean - - jakarta.faces.component.UIComponent.getRendersChildren -
-
-
- Return a flag indicating whether this component is responsible for rendering its child - components. The default implementation in UIComponentBase#getRendersChildren tries to find the - renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the - result. If it doesn't, it returns false. As of version 1.2 of the Jakarta Faces Specification, - component authors are encouraged to return true from this method and rely on - UIComponentBase#encodeChildren. - - true - - -
-
-
- true -
- JSF:JAVADOC:240__OLD - - void - - jakarta.faces.component.UIComponent.processDecodes -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Apply Request Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processDecodes() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() - method of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:240 - - void - - jakarta.faces.component.UIComponent.processDecodes -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Apply Request Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the - decode() method of this component. Call #popComponentFromEL from inside of a finally block, just - before returning. If a RuntimeException is thrown during decode processing, call - FacesContext#renderResponse and re-throw the exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:246__OLD - - void - - jakarta.faces.component.UIComponent.processUpdates -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Update Model Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processUpdates() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the - updateModel() method of this component. If the valid property of this UIComponent is now false, call - FacesContext.renderResponse() to transfer control at the end of the current phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:246 - - void - - jakarta.faces.component.UIComponent.processUpdates -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Update Model Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After - returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - - - true - - -
-
-
- true -
- JSF:JAVADOC:248__OLD - - void - - jakarta.faces.component.UIComponent.processValidators -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Process Validations phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processValidators() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property - of this component is currently true: Call the validate() method of each Validator registered for - this UIComponent. Call the validate() method of this component. Set the valid property of this - component to the result returned from the validate() method. If the valid property of this - UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the - current phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:248 - - void - - jakarta.faces.component.UIComponent.processValidators -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Process Validations phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After - returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - - true - - -
-
-
- true -
- JSF:JAVADOC:269__OLD - - void - - jakarta.faces.component.UIComponent.setParent -
- ( - UIComponent - ) -
-
- Set the parent UIComponent of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:269 - - void - - jakarta.faces.component.UIComponent.setParent -
- ( - UIComponent - ) -
-
- Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, - calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, - for this node, and then the children of this node. Then, once the re-parenting has occurred, a - jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for - the node's children, but only if any of the following conditions are true. - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. - jakarta.faces.context.FacesContext#isPostback returns false and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than - jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a - UIComponent's internal implementation will call it as components are added to or removed from a - parent's child List or facet Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:298__OLD - - void - - jakarta.faces.component.UIComponentBase.decode -
- ( - FacesContext - ) -
-
- Decode the current state of this UIComponent from the request contained in the - specified FacesContext, and attempt to convert this state information into an object of the required - type for this component (optionally using the registered jakarta.faces.convert.Converter for this - component, if there is one. If conversion is successful: Save the new local value of this component - by calling setValue() and passing the new value. Set the valid property of this component to true. - If conversion is not successful: Save state information in such a way that encoding can reproduce - the previous input (even though it was syntactically or semantically incorrect) Add an appropriate - conversion failure error message by calling context.addMessage(). Set the valid property of this - comonent to false. During decoding, events may be enqueued for later processing (by event listeners - who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - - true - - -
-
-
- true -
- JSF:JAVADOC:298 - - void - - jakarta.faces.component.UIComponentBase.decode -
- ( - FacesContext - ) -
-
- Decode any new state of this UIComponent from the request contained in the specified - FacesContext, and store this state as needed. During decoding, events may be enqueued for later - processing (by event listeners who have registered an interest), by calling queueEvent(). - - true - - -
-
-
- true -
- JSF:JAVADOC:301__OLD - - void - - jakarta.faces.component.UIComponentBase.encodeBegin -
- ( - FacesContext - ) -
-
- Render the beginning of the current state of this UIComponent to the response contained - in the specified FacesContext. If the conversion attempted in a previous call to decode() for this - component failed, the state information saved during execution of decode() should be utilized to - reproduce the incorrect input. If the conversion was successful, or if there was no previous call to - decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the - value as appropriate. - - true - - -
-
-
- true -
- JSF:JAVADOC:301 - - void - - jakarta.faces.component.UIComponentBase.encodeBegin -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the beginning of the current state of this - UIComponent to the response contained in the specified FacesContext. Call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call - jakarta.faces.application.Application#publishEvent, passing - jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance - to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual - encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered - property is false, call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and - return immediately. - - true - - -
-
-
- true -
- JSF:JAVADOC:304__OLD - - void - - jakarta.faces.component.UIComponentBase.encodeChildren -
- ( - FacesContext - ) -
-
- Render the child UIComponents of this UIComponent, following the rules described for - encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if - the rendersChildren property is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:304 - - void - - jakarta.faces.component.UIComponentBase.encodeChildren -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the child UIComponents of this UIComponent. - This method will only be called if the rendersChildren property is true. If a Renderer is associated - with this UIComponent, the actual encoding will be delegated to - Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this - UIComponent, iterate over each of the children of this component and call - #encodeAll(jakarta.faces.context.FacesContext). - - true - - -
-
-
- true -
- JSF:JAVADOC:307__OLD - - void - - jakarta.faces.component.UIComponentBase.encodeEnd -
- ( - FacesContext - ) -
-
- Render the ending of the current state of this UIComponent, following the rules - described for encodeBegin() to acquire the appropriate value to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:307 - - void - - jakarta.faces.component.UIComponentBase.encodeEnd -
- ( - FacesContext - ) -
-
- If our rendered property is true, render the ending of the current state of this - UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be - delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. - before returning regardless of the value of the rendered property. - - true - - -
-
-
- true -
- JSF:JAVADOC:310__OLD - - UIComponent - - jakarta.faces.component.UIComponentBase.findComponent -
- ( - String - ) -
-
- Find the UIComponent named by the specified expression, if any is found. This is done - by locating the closest parent UIComponent that is a NamingContainer, and calling its - findComponentInNamespace() method. The specified expr may contain either a component identifier, or - a set of component identifiers separated by SEPARATOR_CHAR characters. - - true - - -
-
-
- true -
- JSF:JAVADOC:310 - - UIComponent - - jakarta.faces.component.UIComponentBase.findComponent -
- ( - String - ) -
-
- Search for and return the UIComponent with an id that matches the specified search - expression (if any), according to the algorithm described below. WARNING: The found UIComponent - instance, if any, is returned without regard for its tree traversal context. Retrieving an Jakarta - Expression Language-bound attribute from the component is not safe. Jakarta Expression Language - expressions can contain implicit objects, such as #{component}, which assume they are being - evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of - implicit objects outside of a tree traversal context produces undefined results. See - #invokeOnComponent for a method that does correctly account for the tree traversal context when - operating on the found UIComponent instance. #invokeOnComponent is also useful to find components - given a simple clientId. Component identifiers are required to be unique within the scope of the - closest ancestor NamingContainer that encloses this component (which might be this component - itself). If there are no NamingContainer components in the ancestry of this component, the root - component in the tree is treated as if it were a NamingContainer, whether or not its class actually - implements the NamingContainer interface. A search expression consists of either an identifier - (which is matched exactly against the id property of a UIComponent, or a series of such identifiers - linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should - operates as follows, though alternate alogrithms may be used as long as the end result is the same: - Identify the UIComponent that will be the base for searching, by stopping as soon as one of the - following conditions is met: If the search expression begins with the the separator character - (called an "absolute" search expression), the base will be the root UIComponent of the component - tree. The leading separator character will be stripped off, and the remainder of the search - expression will be treated as a "relative" search expression as described below. Otherwise, if this - UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of - this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no - NamingContainer is encountered) the root UIComponent will be the base. The search expression - (possibly modified in the previous step) is now a "relative" search expression that will be used to - locate the component (if any) that has an id that matches, within the scope of the base component. - The match is performed as follows: If the search expression is a simple identifier, this value is - compared to the id property, and then recursively through the facets and children of the base - UIComponent (except that if a descendant NamingContainer is found, its own facets and children are - not searched). If the search expression includes more than one identifier separated by the separator - character, the first identifier is used to locate a NamingContainer by the rules in the previous - bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the - remainder of the search expression. - - true - - -
-
-
- true -
- JSF:JAVADOC:317__OLD - - int - - jakarta.faces.component.UIComponentBase.getChildCount -
-
-
- Return the number of UIComponents on the child list for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:317 - - int - - jakarta.faces.component.UIComponentBase.getChildCount -
-
-
- Return the number of child UIComponents that are associated with this UIComponent. If - there are no children, this method must return 0. The method must not cause the creation of a child - component list. - - true - - -
-
-
- true -
- JSF:JAVADOC:319__OLD - - String - - jakarta.faces.component.UIComponentBase.getClientId -
- ( - FacesContext - ) -
-
- Return a client-side identifier for this component, generating one if necessary. - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - - - true - - -
-
-
- true -
- JSF:JAVADOC:319 - - String - - jakarta.faces.component.UIComponentBase.getClientId -
- ( - FacesContext - ) -
-
- Return a client-side identifier for this component, generating one if necessary. The - associated Renderer, if any, will be asked to convert the clientId to a form suitable for - transmission to the client. The return from this method must be the same value throughout the - lifetime of the instance, unless the id property of the component is changed, or the component is - placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these - cases, consecutive calls to this method must always return the same value. The implementation must - follow these steps in determining the clientId: Find the closest ancestor to this component in the - view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the - result as the parentId local variable. Call #getId on this component and save the result as the myId - local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result - to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + - myId. Call Renderer#convertClientId, passing myId, and return the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:324__OLD - - UIComponent - - jakarta.faces.component.UIComponentBase.getFacet -
- ( - String - ) -
-
- Return the facet UIComponent associated with the specified name, if any. Otherwise, - return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:324 - - UIComponent - - jakarta.faces.component.UIComponentBase.getFacet -
- ( - String - ) -
-
- Convenience method to return the named facet, if it exists, or null otherwise. If the - requested facet does not exist, the facets Map must not be created. - - true - - -
-
-
- true -
- JSF:JAVADOC:327__OLD - - Iterator - - jakarta.faces.component.UIComponentBase.getFacetsAndChildren -
-
-
- Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored - in the child list. If this component has no facets or children, an empty Iterator is returned. - - - true - - -
-
-
- true -
- JSF:JAVADOC:327 - - Iterator - - jakarta.faces.component.UIComponentBase.getFacetsAndChildren -
-
-
- Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored - in the child list. If this component has no facets or children, an empty Iterator is returned. The - returned Iterator must not support the remove() operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:328__OLD - - UIComponent - - jakarta.faces.component.UIComponentBase.getParent -
-
-
- Return the parent UIComponent of this UIComponent, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:328 - - UIComponent - - jakarta.faces.component.UIComponentBase.getParent -
-
-
- Return the parent UIComponent of this UIComponent, if any. A component must allow child - components to be added to and removed from the list of children of this component, even though the - child component returns null from getParent( ). - - true - - -
-
-
- true -
- JSF:JAVADOC:330__OLD - - boolean - - jakarta.faces.component.UIComponentBase.getRendersChildren -
-
-
- Return a flag indicating whether this component is responsible for rendering its child - components. - - true - - -
-
-
- true -
- JSF:JAVADOC:330 - - boolean - - jakarta.faces.component.UIComponentBase.getRendersChildren -
-
-
- Return a flag indicating whether this component is responsible for rendering its child - components. The default implementation in UIComponentBase#getRendersChildren tries to find the - renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the - result. If it doesn't, it returns false. As of version 1.2 of the Jakarta Faces Specification, - component authors are encouraged to return true from this method and rely on - UIComponentBase#encodeChildren. - - true - - -
-
-
- true -
- JSF:JAVADOC:335__OLD - - void - - jakarta.faces.component.UIComponentBase.processDecodes -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Apply Request Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processDecodes() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() - method of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:335 - - void - - jakarta.faces.component.UIComponentBase.processDecodes -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Apply Request Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the - decode() method of this component. Call #popComponentFromEL from inside of a finally block, just - before returning. If a RuntimeException is thrown during decode processing, call - FacesContext#renderResponse and re-throw the exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:341__OLD - - void - - jakarta.faces.component.UIComponentBase.processUpdates -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Update Model Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processUpdates() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the - updateModel() method of this component. If the valid property of this UIComponent is now false, call - FacesContext.renderResponse() to transfer control at the end of the current phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:341 - - void - - jakarta.faces.component.UIComponentBase.processUpdates -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Update Model Values phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After - returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - - - true - - -
-
-
- true -
- JSF:JAVADOC:343__OLD - - void - - jakarta.faces.component.UIComponentBase.processValidators -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Process Validations phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. Call the processValidators() method of all facets and children of - this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property - of this component is currently true: Call the validate() method of each Validator registered for - this UIComponent. Call the validate() method of this component. Set the valid property of this - component to the result returned from the validate() method. If the valid property of this - UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the - current phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:343 - - void - - jakarta.faces.component.UIComponentBase.processValidators -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the Process Validations phase of the - request processing lifecycle for all facets of this component, all children of this component, and - this component itself, as follows. If the rendered property of this UIComponent is false, skip - further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and - children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After - returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - - true - - -
-
-
- true -
- JSF:JAVADOC:364__OLD - - void - - jakarta.faces.component.UIComponentBase.setParent -
- ( - UIComponent - ) -
-
- Set the parent UIComponent of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:364 - - void - - jakarta.faces.component.UIComponentBase.setParent -
- ( - UIComponent - ) -
-
- Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, - calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, - for this node, and then the children of this node. Then, once the re-parenting has occurred, a - jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for - the node's children, but only if any of the following conditions are true. - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. - jakarta.faces.context.FacesContext#isPostback returns false and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than - jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a - UIComponent's internal implementation will call it as components are added to or removed from a - parent's child List or facet Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:368__OLD - - UIComponentBase - - jakarta.faces.component.UIComponentBase.UIComponentBase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:368 - - UIComponentBase - - jakarta.faces.component.UIComponentBase.UIComponentBase -
-
-
- Default constructor, populates the descriptor map. - - true - - -
-
-
- true -
- JSF:JAVADOC:590__OLD - - void - - jakarta.faces.component.UIInput.updateModel -
- ( - FacesContext - ) -
-
- Perform the following algorithm to update the model data associated with this UIInput, - if any, as appropriate. If the valid property of this component is false, take no further action. If - the valueRef property of this component is null, take no further action. Retrieve the Application - instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the - valueRef expression. Use the setValue() method of the ValueBinding to update the value that the - value reference expression points at. If the setValue() method returns successfully: Clear the local - value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call - fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set - the valid property of this UIInput to false. - - true - - -
-
-
- true -
- JSF:JAVADOC:590 - - void - - jakarta.faces.component.UIInput.updateModel -
- ( - FacesContext - ) -
-
- Perform the following algorithm to update the model data associated with this UIInput, - if any, as appropriate. If the valid property of this component is false, take no further action. If - the localValueSet property of this component is false, take no further action. If no ValueExpression - for value exists, take no further action. Call setValue() method of the ValueExpression to update - the value that the ValueExpression points at. If the setValue() method returns successfully: Clear - the local value of this UIInput. Set the localValueSet property of this UIInput to false. If the - setValue() method throws an Exception: Enqueue an error message. Create a FacesMessage with the id - #UPDATE_MESSAGE_ID. Create a UpdateModelException, passing the FacesMessage and the caught exception - to the constructor. Create an ExceptionQueuedEventContext, passing the FacesContext, the - UpdateModelException, this component instance, and PhaseId#UPDATE_MODEL_VALUES to its constructor. - Call FacesContext#getExceptionHandler and then call ExceptionHandler#processEvent, passing the - ExceptionQueuedEventContext. Set the valid property of this UIInput to false. The exception must not - be re-thrown. This enables tree traversal to continue for this lifecycle phase, as in all the other - lifecycle phases. - - true - - -
-
-
- true -
- JSF:JAVADOC:593__OLD - - void - - jakarta.faces.component.UIInput.validate -
- ( - FacesContext - ) -
-
- Perform validations and, if validation is successful, and the local value is different - from the previous value, queue a ValueChangedEvent to be processed later. - - true - - -
-
-
- true -
- JSF:JAVADOC:593 - - void - - jakarta.faces.component.UIInput.validate -
- ( - FacesContext - ) -
-
- Perform the following algorithm to validate the local value of this UIInput. Retrieve - the submitted value with #getSubmittedValue. If this returns null, and the value of the - #ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE context-param is true (ignoring case), examine the - value of the "required" property. If the value of "required" is true, continue as below. If the - value of "required" is false or the required attribute is not set, exit without further processing. - If the context-param is not set, or is set to false (ignoring case), exit without further - processing. (This indicates that no value was submitted for this component.) If the - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context parameter value is true - (ignoring case), and getSubmittedValue() returns a zero-length String call #setSubmittedValue, - passing null as the argument and continue processing using null as the current submitted value. - Convert the submitted value into a "local value" of the appropriate data type by calling - #getConvertedValue. If conversion fails: Enqueue an appropriate error message by calling the - addMessage() method on the FacesContext. Set the valid property on this component to false Validate - the property by calling #validateValue. If the valid property of this component is still true, - retrieve the previous value of the component (with getValue()), store the new local value using - setValue(), and reset the submitted value to null with a call to #setSubmittedValue passing null as - the argument. If the local value is different from the previous value of this component, as - determined by a call to #compareValues, fire a ValueChangeEvent to be broadcast to all interested - listeners. Application components implementing UIInput that wish to perform validation with logic - embedded in the component should perform their own correctness checks, and then call the - super.validate() method to perform the standard processing described above. - - true - - -
-
-
- true -
- JSF:JAVADOC:700__OLD - - UINamingContainer - - jakarta.faces.component.UINamingContainer.UINamingContainer -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:700 - - UINamingContainer - - jakarta.faces.component.UINamingContainer.UINamingContainer -
-
-
- Create a new UINamingContainer instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:799__OLD - - Object - - jakarta.faces.component.UIOutput.getValue -
-
-
- Return the local value of this UIInput component. - - true - - -
-
-
- true -
- JSF:JAVADOC:799 - - Object - - jakarta.faces.component.UIOutput.getValue -
-
-
- Return the value property. - - true - - -
-
-
- true -
- JSF:JAVADOC:801__OLD - - void - - jakarta.faces.component.UIOutput.setValue -
- ( - Object - ) -
-
- Set the local value of this UIInput component. - - true - - -
-
-
- true -
- JSF:JAVADOC:801 - - void - - jakarta.faces.component.UIOutput.setValue -
- ( - Object - ) -
-
- Set the value of this UIComponent (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:1109__OLD - - boolean - - jakarta.faces.component.UISelectBoolean.isSelected -
-
-
- Return the local value of the selected state of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:1109 - - boolean - - jakarta.faces.component.UISelectBoolean.isSelected -
-
-
- Return the local value of the selected state of this component. This method is a - typesafe alias for getValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:1110__OLD - - void - - jakarta.faces.component.UISelectBoolean.setSelected -
- ( - boolean - ) -
-
- Set the local value of the selected state of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:1110 - - void - - jakarta.faces.component.UISelectBoolean.setSelected -
- ( - boolean - ) -
-
- Set the local value of the selected state of this component. This method is a typesafe - alias for setValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:1229__OLD - - UISelectItem - - jakarta.faces.component.UISelectItem.UISelectItem -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1229 - - UISelectItem - - jakarta.faces.component.UISelectItem.UISelectItem -
-
-
- Create a new UISelectItem instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1333__OLD - - UISelectItems - - jakarta.faces.component.UISelectItems.UISelectItems -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1333 - - UISelectItems - - jakarta.faces.component.UISelectItems.UISelectItems -
-
-
- Create a new UISelectItems instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:1436__OLD - - Object[] - - jakarta.faces.component.UISelectMany.getSelectedValues -
-
-
- Return the currently selected items, or null if there are no currently selected items. - - - true - - -
-
-
- true -
- JSF:JAVADOC:1436 - - Object[] - - jakarta.faces.component.UISelectMany.getSelectedValues -
-
-
- Return the currently selected values, or null if there are no currently selected - values. This is a typesafe alias for getValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:1437__OLD - - void - - jakarta.faces.component.UISelectMany.setSelectedValues -
- ( - Object[] - ) -
-
- Set the currently selected items, or null to indicate that there are no currently - selected items. - - true - - -
-
-
- true -
- JSF:JAVADOC:1437 - - void - - jakarta.faces.component.UISelectMany.setSelectedValues -
- ( - Object[] - ) -
-
- Set the currently selected values, or null to indicate that there are no currently - selected values. This is a typesafe alias for setValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:1687__OLD - - FacesContext - - jakarta.faces.context.FacesContext.FacesContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1687 - - FacesContext - - jakarta.faces.context.FacesContext.FacesContext -
-
-
- Default constructor. This looks at the callstack to see if we're created from a - factory. - - true - - -
-
-
- true -
- JSF:JAVADOC:1688__OLD - - FacesContext - - jakarta.faces.context.FacesContext.getCurrentInstance -
-
-
- Return the FacesContext instance for the request that is being processed by the current - thread. - - true - - -
-
-
- true -
- JSF:JAVADOC:1688 - - FacesContext - - jakarta.faces.context.FacesContext.getCurrentInstance -
-
-
- Return the FacesContext instance for the request that is being processed by the current - thread. If called during application initialization or shutdown, any method documented as "valid to - call this method during application startup or shutdown" must be supported during application - startup or shutdown time. The result of calling a method during application startup or shutdown time - that does not have this designation is undefined. - - true - - -
-
-
- true -
- JSF:JAVADOC:1693__OLD - - Iterator - - jakarta.faces.context.FacesContext.getMessages -
-
-
- Return an Iterator over the Messages that have been queued, whether or not they are - associated with any specific UIComponent. If no such messages have been queued, return an empty - Iterator. - - true - - -
-
-
- true -
- JSF:JAVADOC:1693 - - Iterator - - jakarta.faces.context.FacesContext.getMessages -
-
-
- Return an Iterator over the jakarta.faces.application.FacesMessages that have been - queued, whether or not they are associated with any specific client identifier. If no such messages - have been queued, return an empty Iterator. The elements of the Iterator must be returned in the - order in which they were added with calls to #addMessage. - - true - - -
-
-
- true -
- JSF:JAVADOC:1701__OLD - - void - - jakarta.faces.context.FacesContext.release -
-
-
- Release any resources associated with this FacesContext instance. Faces implementations - may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation - and garbage collection. - - true - - -
-
-
- true -
- JSF:JAVADOC:1701 - - void - - jakarta.faces.context.FacesContext.release -
-
-
- Release any resources associated with this FacesContext instance. Faces implementations - may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation - and garbage collection. After release() is called on a FacesContext instance (until the FacesContext - instance has been recycled by the implementation for re-use), calling any other methods will cause - an IllegalStateException to be thrown. If a call was made to #getAttributes during the processing - for this request, the implementation must call clear() on the Map returned from getAttributes(), and - then de-allocate the data-structure behind that Map. The implementation must call - #setCurrentInstance passing null to remove the association between this thread and this dead - FacesContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:1702__OLD - - void - - jakarta.faces.context.FacesContext.renderResponse -
-
-
- Signal the JavaSerer faces implementation that, as soon as the current phase of the - request processing lifecycle has been completed, control should be passed to the Render Response - phase, bypassing any phases that have not been executed yet. - - true - - -
-
-
- true -
- JSF:JAVADOC:1702 - - void - - jakarta.faces.context.FacesContext.renderResponse -
-
-
- Signal the Jakarta Faces implementation that, as soon as the current phase of the - request processing lifecycle has been completed, control should be passed to the Render Response - phase, bypassing any phases that have not been executed yet. - - true - - -
-
-
- true -
- JSF:JAVADOC:1703__OLD - - void - - jakarta.faces.context.FacesContext.responseComplete -
-
-
- Signal the JavaServer Faces implementation that the HTTP response for this request has - already been generated (such as an HTTP redirect), and that the request processing lifecycle should - be terminated as soon as the current phase is completed. - - true - - -
-
-
- true -
- JSF:JAVADOC:1703 - - void - - jakarta.faces.context.FacesContext.responseComplete -
-
-
- Signal the Jakarta Faces implementation that the HTTP response for this request has - already been generated (such as an HTTP redirect), and that the request processing lifecycle should - be terminated as soon as the current phase is completed. - - true - - -
-
-
- true -
- JSF:JAVADOC:1762__OLD - - void - - jakarta.faces.context.ResponseWriter.endElement -
- ( - String - ) -
-
- Write the end of an element, after closing any open element created by a call to - startElement(). - - true - - -
-
-
- true -
- JSF:JAVADOC:1762 - - void - - jakarta.faces.context.ResponseWriter.endElement -
- ( - String - ) -
-
- Write the end of an element, after closing any open element created by a call to - startElement(). Elements must be closed in the inverse order from which they were opened; it is an - error to do otherwise. If the argument component's pass through attributes includes an attribute of - the name given by the value of the symbolic constant - jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, - instead of the value passed as the first parameter to this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:1775__OLD - - void - - jakarta.faces.context.ResponseWriter.writeComment -
- ( - Object - ) -
-
- Write a comment containing the specified text, after converting that text to a String - if necessary. If there is an open element that has been created by a call to startElement(), that - element will be closed first. - - true - - -
-
-
- true -
- JSF:JAVADOC:1775 - - void - - jakarta.faces.context.ResponseWriter.writeComment -
- ( - Object - ) -
-
- Write a comment containing the specified text, after converting that text to a String - (if necessary), and after performing any escaping appropriate for the markup language being - rendered. If there is an open element that has been created by a call to startElement(), that - element will be closed first. - - true - - -
-
-
- true -
- JSF:JAVADOC:1786__OLD - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - char[] - , -
- int - , -
- int - ) -
-
- Write text from a character array, after escaping it properly for this method. If there - is an open element that has been created by a call to startElement(), that element will be closed - first. - - true - - -
-
-
- true -
- JSF:JAVADOC:1786 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - char[] - , -
- int - , -
- int - ) -
-
- Write text from a character array, after any performing any escaping appropriate for - the markup language being rendered. If there is an open element that has been created by a call to - startElement(), that element will be closed first. - - true - - -
-
-
- true -
- JSF:JAVADOC:1808__OLD - - Object - - jakarta.faces.convert.Converter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Apply Request Values phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:1808 - - Object - - jakarta.faces.convert.Converter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:1891__OLD - - AbortProcessingException - - jakarta.faces.event.AbortProcessingException.AbortProcessingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:1891 - - AbortProcessingException - - jakarta.faces.event.AbortProcessingException.AbortProcessingException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:1897__OLD - - void - - jakarta.faces.event.ActionListener.processAction -
- ( - ActionEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the JavaServer Faces implementation that no further processing on the current - event should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:1897 - - void - - jakarta.faces.event.ActionListener.processAction -
- ( - ActionEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:1912__OLD - - void - - jakarta.faces.lifecycle.Lifecycle.execute -
- ( - FacesContext - ) -
-
- Execute all of the phases of the request processing lifecycle, as described in the - JavaServer Faces Specification, in the specified order. The processing flow can be affected (by the - application, by components, or by event listeners) by calls to the renderResponse() or - responseComplete() methods of the FacesContext instance associated with the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:1912 - - void - - jakarta.faces.lifecycle.Lifecycle.execute -
- ( - FacesContext - ) -
-
- Execute all of the phases of the request processing lifecycle, up to but not including - the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta - Faces Specification Document, in the specified order. The processing flow can be affected (by the - application, by components, or by event listeners) by calls to the renderResponse() or - responseComplete() methods of the FacesContext instance associated with the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:1932__OLD - - void - - jakarta.faces.render.Renderer.decode -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Decode the current state of the specified UIComponent from the request contained in the - specified FacesContext, and attempt to convert this state information into an object of the type - required for this component (optionally using the registered jakarta.faces.convert.Converter for - this component, if there is one). If conversion is successful: Save the new local value of this - component by calling setValue() and passing the new value. Set the value property of this component - to true. If conversion is not successful: Save the state information (inside the component) in such - a way that encoding can reproduce the previous input (even though it was syntactically or - semantically incorrect). Add an appropriate conversion failure error message by calling addMessage() - on the specified FacesContext. Set the valid property of this component to false. During decoding, - events may be enqueued for later processing (by event listeners that have registered an interest), - by calling addFacesEvent() on the associated FacesContext. - - true - - -
-
-
- true -
- JSF:JAVADOC:1932 - - void - - jakarta.faces.render.Renderer.decode -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Decode any new state of the specified UIComponent from the request contained in the - specified FacesContext, and store that state on the UIComponent. During decoding, events may be - enqueued for later processing (by event listeners that have registered an interest), by calling - queueEvent() on the associated UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:1935__OLD - - void - - jakarta.faces.render.Renderer.encodeBegin -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the beginning specified UIComponent to the output stream or writer associated - with the response we are creating. If the conversion attempted in a previous call to decode for this - component failed, the state information saved during execution of decode() should be utilized to - reproduce the incorrect input. If the conversion was successful, or if there was no previous call to - decode(), the value to be displayed should be acquired by calling component.currentValue(), and - rendering the value as appropriate. - - true - - -
-
-
- true -
- JSF:JAVADOC:1935 - - void - - jakarta.faces.render.Renderer.encodeBegin -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the beginning specified UIComponent to the output stream or writer associated - with the response we are creating. If the conversion attempted in a previous call to - getConvertedValue() for this component failed, the state information saved during execution of - decode() should be used to reproduce the incorrect input. - - true - - -
-
-
- true -
- JSF:JAVADOC:1976__OLD - - Iterator - - jakarta.faces.render.RenderKit.getRendererTypes -
- ( - String - ) -
-
- Return an Iterator of the renderer types of all Renderer instances registered with this - RenderKit that support components of the specified component type. If no Renderers support this - component type, an empty Iterator is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:1976 - - Iterator - - jakarta.faces.render.RenderKit.getRendererTypes -
- ( - String - ) -
-
- Return an Iterator over the renderer-type entries for the given component-family. If - the specified componentFamily is not known to this RenderKit implementation, return an empty - Iterator The default implementation of this method returns an empty Iterator - - true - - -
-
-
- true -
- JSF:JAVADOC:1981__OLD - - void - - jakarta.faces.render.RenderKitFactory.addRenderKit -
- ( - String - , -
- RenderKit - ) -
-
- Register a new RenderKit instance, associated with the specified renderKitId, to be - supported by this RenderKitFactory. This method may be called at any time, and makes the - corresponding RenderKit instance available throughout the remaining lifetime of this web - application. - - true - - -
-
-
- true -
- JSF:JAVADOC:1981 - - void - - jakarta.faces.render.RenderKitFactory.addRenderKit -
- ( - String - , -
- RenderKit - ) -
-
- Register the specified RenderKit instance, associated with the specified renderKitId, - to be supported by this RenderKitFactory, replacing any previously registered RenderKit for this - identifier. - - true - - -
-
-
- true -
- JSF:JAVADOC:1990__OLD - - Iterator - - jakarta.faces.render.RenderKitFactory.getRenderKitIds -
-
-
- Return an Iterator over the set of render kit identifiers supported by this factory. - This set must include the value specified by RenderKitFactory.DEFAULT_RENDER_KIT. - - true - - -
-
-
- true -
- JSF:JAVADOC:1990 - - Iterator - - jakarta.faces.render.RenderKitFactory.getRenderKitIds -
-
-
- Return an Iterator over the set of render kit identifiers registered with this factory. - This set must include the value specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - - true - - -
-
-
- true -
- JSF:JAVADOC:2004__OLD - - double - - jakarta.faces.validator.DoubleRangeValidator.getMaximum -
-
-
- Return the maximum value to be enforced by this Validator, if isMaximumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2004 - - double - - jakarta.faces.validator.DoubleRangeValidator.getMaximum -
-
-
- Return the maximum value to be enforced by this Validator or Double.MAX_VALUE if it has - not been set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2005__OLD - - double - - jakarta.faces.validator.DoubleRangeValidator.getMinimum -
-
-
- Return the minimum value to be enforced by this Validator, if isMinimumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2005 - - double - - jakarta.faces.validator.DoubleRangeValidator.getMinimum -
-
-
- Return the minimum value to be enforced by this Validator, or Double.MIN_VALUE if it - has not been set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2014__OLD - - int - - jakarta.faces.validator.LengthValidator.getMaximum -
-
-
- Return the maximum length to be enforced by this Validator, if isMaximumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2014 - - int - - jakarta.faces.validator.LengthValidator.getMaximum -
-
-
- Return the maximum length to be enforced by this Validator, or 0 if the maximum has not - been set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2015__OLD - - int - - jakarta.faces.validator.LengthValidator.getMinimum -
-
-
- Return the minimum length to be enforced by this Validator, if isMinimumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2015 - - int - - jakarta.faces.validator.LengthValidator.getMinimum -
-
-
- Return the minimum length to be enforced by this Validator, or 0 if the minimum has not - been set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2027__OLD - - long - - jakarta.faces.validator.LongRangeValidator.getMaximum -
-
-
- Return the maximum value to be enforced by this Validator, if isMaximumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2027 - - long - - jakarta.faces.validator.LongRangeValidator.getMaximum -
-
-
- Return the maximum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2028__OLD - - long - - jakarta.faces.validator.LongRangeValidator.getMinimum -
-
-
- Return the minimum value to be enforced by this Validator, if isMinimumSet() returns - true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2028 - - long - - jakarta.faces.validator.LongRangeValidator.getMinimum -
-
-
- Return the minimum value to be enforced by this Validator. - - true - - -
-
-
- true -
- JSF:JAVADOC:2219 - - Object - - jakarta.faces.FacesWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2220 - - void - - jakarta.faces.FactoryFinder.setFactory -
- ( - String - , -
- String - ) -
-
- This method will store the argument factoryName/implName mapping in such a way that - #getFactory will find this mapping when searching for a match. This method has no effect if - getFactory() has already been called looking for a factory for this factoryName. This method can be - used by implementations to store a factory mapping while parsing the Faces configuration file - - true - - -
-
-
- true -
- JSF:JAVADOC:2221 - - Literal - - jakarta.faces.annotation.ApplicationMap.Literal.ApplicationMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2222 - - Version - - jakarta.faces.annotation.FacesConfig.version -
-
-
- The value of this attribute indicates that features corresponding to this version must - be enabled for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2223 - - Literal - - jakarta.faces.annotation.FacesConfig.Literal.FacesConfig.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2224 - - Version - - jakarta.faces.annotation.FacesConfig.Literal.version -
-
-
- The value of this attribute indicates that features corresponding to this version must - be enabled for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2225 - - Version - - jakarta.faces.annotation.FacesConfig.Version.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2226 - - Version[] - - jakarta.faces.annotation.FacesConfig.Version.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2227 - - Literal - - jakarta.faces.annotation.FlowMap.Literal.FlowMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2228 - - Literal - - jakarta.faces.annotation.HeaderMap.Literal.HeaderMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2229 - - Literal - - jakarta.faces.annotation.HeaderValuesMap.Literal.HeaderValuesMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2230 - - Literal - - jakarta.faces.annotation.InitParameterMap.Literal.InitParameterMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2231 - - String - - jakarta.faces.annotation.ManagedProperty.value -
-
-
- Taken to be the value that is injected into the field. - - true - - -
-
-
- true -
- JSF:JAVADOC:2232 - - Literal - - jakarta.faces.annotation.ManagedProperty.Literal.of -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2233 - - String - - jakarta.faces.annotation.ManagedProperty.Literal.value -
-
-
- Taken to be the value that is injected into the field. - - true - - -
-
-
- true -
- JSF:JAVADOC:2234 - - Literal - - jakarta.faces.annotation.RequestCookieMap.Literal.RequestCookieMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2235 - - Literal - - jakarta.faces.annotation.RequestMap.Literal.RequestMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2236 - - Literal - - jakarta.faces.annotation.RequestParameterMap.Literal.RequestParameterMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2237 - - Literal - - - jakarta.faces.annotation.RequestParameterValuesMap.Literal.RequestParameterValuesMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2238 - - Literal - - jakarta.faces.annotation.SessionMap.Literal.SessionMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2239 - - String - - jakarta.faces.annotation.View.value -
-
-
- Set the Faces View Id pattern. The Faces View Id pattern can represent a single view, - such as "/index.xhtml", or a pattern like "/foo/bar/*". Though the exact interpretation of the Faces - View Id for a single view is ultimately defined by the annotated element, in general it should align - with the return value from an action expression (see - ActionSource2#setActionExpression(jakarta.el.MethodExpression) - - true - - -
-
-
- true -
- JSF:JAVADOC:2240 - - Literal - - jakarta.faces.annotation.View.Literal.of -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2241 - - String - - jakarta.faces.annotation.View.Literal.value -
-
-
- Set the Faces View Id pattern. The Faces View Id pattern can represent a single view, - such as "/index.xhtml", or a pattern like "/foo/bar/*". Though the exact interpretation of the Faces - View Id for a single view is ultimately defined by the annotated element, in general it should align - with the return value from an action expression (see - ActionSource2#setActionExpression(jakarta.el.MethodExpression) - - true - - -
-
-
- true -
- JSF:JAVADOC:2242 - - Literal - - jakarta.faces.annotation.ViewMap.Literal.ViewMap.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2243 - - void - - jakarta.faces.application.Application.addBehavior -
- ( - String - , -
- String - ) -
-
- Register a new mapping of behavior id to the name of the corresponding Behavior class. - This allows subsequent calls to createBehavior() to serve as a factory for Behavior instances. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2244 - - void - - jakarta.faces.application.Application.addComponent -
- ( - String - , -
- String - ) -
-
- Register a new mapping of component type to the name of the corresponding UIComponent - class. This allows subsequent calls to createComponent() to serve as a factory for UIComponent - instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:2245 - - void - - jakarta.faces.application.Application.addConverter -
- ( - String - , -
- String - ) -
-
- Register a new mapping of converter id to the name of the corresponding Converter - class. This allows subsequent calls to createConverter() to serve as a factory for Converter - instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:2246 - - void - - jakarta.faces.application.Application.addConverter -
- ( - Class - , -
- String - ) -
-
- Register a new converter class that is capable of performing conversions for the - specified target class. - - true - - -
-
-
- true -
- JSF:JAVADOC:2247 - - void - - jakarta.faces.application.Application.addDefaultValidatorId -
- ( - String - ) -
-
- Register a validator by its id that is applied to all UIInput components in a view. The - validator to most often serve this role is the BeanValidator. The usage contract for this method - assumes that the validator has been registered using the normal #8220;by-id #8221; registration - mechanism. An implementation is provided that takes no action so that users that decorate the - Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2248 - - void - - jakarta.faces.application.Application.addELContextListener -
- ( - ELContextListener - ) -
-
- Provide a way for Faces applications to register an ELContextListener that will be - notified on creation of ELContext instances. This listener will be called once per request. An - implementation is provided that throws UnsupportedOperationException so that users that decorate the - Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2249 - - void - - jakarta.faces.application.Application.addELResolver -
- ( - ELResolver - ) -
-
- Cause an the argument resolver to be added to the resolver chain as specified in - section 5.3.2 "ELResolver" of the Jakarta Faces Specification Document. It is not possible to remove - an ELResolver registered with this method, once it has been registered. It is illegal to register an - ELResolver after the application has received any requests from the client. If an attempt is made to - register a listener after that time, an IllegalStateException must be thrown. This restriction is in - place to allow the Jakarta Server Pages container to optimize for the common case where no - additional ELResolvers are in the chain, aside from the standard ones. It is permissible to add - ELResolvers before or after initialization to a CompositeELResolver that is already in the chain. - The default implementation throws UnsupportedOperationException and is provided for the sole purpose - of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2250 - - void - - jakarta.faces.application.Application.addSearchKeywordResolver -
- ( - SearchKeywordResolver - ) -
-
- Cause the argument resolver to be added to the head of the resolver chain. It is not - possible to remove a SearchKeywordResolver registered with this method, once it has been registered. - The default implementation throws UnsupportedOperationException and is provided for the sole purpose - of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2251 - - void - - jakarta.faces.application.Application.addValidator -
- ( - String - , -
- String - ) -
-
- Register a new mapping of validator id to the name of the corresponding Validator - class. This allows subsequent calls to createValidator() to serve as a factory for Validator - instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:2252 - - Behavior - - jakarta.faces.application.Application.createBehavior -
- ( - String - ) -
-
- Instantiate and return a new Behavior instance of the class specified by a previous - call to addBehavior() for the specified behavior id. - - true - - -
-
-
- true -
- JSF:JAVADOC:2253 - - Behavior - - jakarta.faces.application.Application.createBehavior -
- ( - String - ) - -
- throws - FacesException -
-
-
- if the Behavior cannot be created - - true - - -
-
-
- true -
- JSF:JAVADOC:2254 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - String - ) -
-
- Instantiate and return a new UIComponent instance of the class specified by a previous - call to addComponent() for the specified component type. Before the component instance is returned, - it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or - jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any - of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or - ResourceDependency must be taken on the component, before it is returned from this method. This - variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to - be returned for any of the afore mentioned annotations. Such inspection is the province of - #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, - String, String). - - true - - -
-
-
- true -
- JSF:JAVADOC:2255 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - String - ) - -
- throws - FacesException -
-
-
- if a UIComponent of the specified type cannot be created - - true - - -
-
-
- true -
- JSF:JAVADOC:2256 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - ) -
-
- Call the getValue() method on the specified ValueExpression. If it returns a - UIComponent instance, return it as the value of this method. If it does not, instantiate a new - UIComponent instance of the specified component type, pass the new component to the setValue() - method of the specified ValueExpression, and return it. Before the component instance is returned, - it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or - jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any - of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or - ResourceDependency must be taken on the component, before it is returned from this method. This - variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to - be returned for any of the afore mentioned annotations. Such inspection is the province of - #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, - String, String). A default implementation is provided that throws UnsupportedOperationException so - that users that decorate Application can continue to function. - - true - - -
-
-
- true -
- JSF:JAVADOC:2257 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - ) - -
- throws - FacesException -
-
-
- if a UIComponent cannot be created - - true - - -
-
-
- true -
- JSF:JAVADOC:2258 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - , -
- String - ) -
-
- Like #createComponent(ValueExpression, FacesContext, String) except the Renderer for - the component to be returned must be inspected for the annotations mentioned in - #createComponent(ValueExpression, FacesContext, String) as specified in the documentation for that - method. The Renderer instance to inspect must be obtained by calling FacesContext#getRenderKit and - calling jakarta.faces.render.RenderKit#getRenderer on the result, passing the argument componentType - as the first argument and the result of calling UIComponent#getFamily on the newly created component - as the second argument. If no such Renderer can be found, a message must be logged with a helpful - error message. Otherwise, UIComponent#setRendererType must be called on the newly created - UIComponent instance, passing the argument rendererType as the argument. A default implementation is - provided that throws UnsupportedOperationException so that users that decorate Application can - continue to function. - - true - - -
-
-
- true -
- JSF:JAVADOC:2259 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Like #createComponent(String) except the Renderer for the component to be returned must - be inspected for the annotations mentioned in #createComponent(ValueExpression, FacesContext, - String) as specified in the documentation for that method. The Renderer instance to inspect must be - obtained by calling FacesContext#getRenderKit and calling jakarta.faces.render.RenderKit#getRenderer - on the result, passing the argument componentType as the first argument and the result of calling - UIComponent#getFamily on the newly created component as the second argument. If no such Renderer can - be found, a message must be logged with a helpful error message. Otherwise, - UIComponent#setRendererType must be called on the newly created UIComponent instance, passing the - argument rendererType as the argument. A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application can continue to function . - - - true - - -
-
-
- true -
- JSF:JAVADOC:2260 - - UIComponent - - jakarta.faces.application.Application.createComponent -
- ( - FacesContext - , -
- Resource - ) -
-
- Instantiate and return a new UIComponent instance from the argument Resource. An - algorithm semantically equivalent to the following must be followed to instantiate the UIComponent - to return. Obtain a reference to the ViewDeclarationLanguage for this Application instance by - calling ViewHandler#getViewDeclarationLanguage, passing the viewId found by calling - jakarta.faces.component.UIViewRoot#getViewId on the jakarta.faces.component.UIViewRoot in the - argument FacesContext. Obtain a reference to the composite component metadata for this composite - component by calling ViewDeclarationLanguage#getComponentMetadata, passing the facesContext and - componentResource arguments to this method. This version of the Jakarta Faces Specification uses - JavaBeans as the API to the component metadata. Determine if the component author declared a - componentType for this component instance by obtaining the BeanDescriptor from the component - metadata and calling its getValue() method, passing UIComponent#COMPOSITE_COMPONENT_TYPE_KEY as the - argument. If non-null, the result must be a ValueExpression whose value is the component-type of the - UIComponent to be created for this Resource component. Call through to - #createComponent(java.lang.String) to create the component. Otherwise, determine if a script based - component for this Resource can be found by calling - ViewDeclarationLanguage#getScriptComponentResource. If the result is non-null, and is a script - written in a language satisfying the content type text/javascript, create a UIComponent instance - from the script resource. Otherwise, let library-name be the return from calling - Resource#getLibraryName on the argument componentResource and resource-name be the return from - calling Resource#getResourceName on the argument componentResource. Create a fully qualified Java - class name by removing any file extension from resource-name and let fqcn be library-name + "." + - resource-name. If a class with the name of fqcn cannot be found, take no action and continue to the - next step. If any of InstantiationException, IllegalAccessException, or ClassCastException are - thrown, wrap the exception in a FacesException and re-throw it. If any other exception is thrown, - log the exception and continue to the next step. If none of the previous steps have yielded a - UIComponent instance, call #createComponent(java.lang.String) passing - "jakarta.faces.NamingContainer" as the argument. Call UIComponent#setRendererType on the UIComponent - instance, passing "jakarta.faces.Composite" as the argument. Store the argument Resource in the - attributes Map of the UIComponent under the key, Resource#COMPONENT_RESOURCE_KEY. Store composite - component metadata in the attributes Map of the UIComponent under the key, UIComponent#BEANINFO_KEY. - Before the component instance is returned, it must be inspected for the presence of a - jakarta.faces.event.ListenerFor annotation. If this annotation is present, the action listed in - jakarta.faces.event.ListenerFor must be taken on the component, before it is returned from this - method. A default implementation is provided that throws UnsupportedOperationException so that users - that decorate Application can continue to function. - - true - - -
-
-
- true -
- JSF:JAVADOC:2261 - - Converter - - jakarta.faces.application.Application.createConverter -
- ( - String - ) -
-
- Instantiate and return a new Converter instance of the class specified by a previous - call to addConverter() for the specified converter id. If the toLowerCase() of the String - represenation of the value of the - "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration - parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of - jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be - called, passing the return from TimeZone.getDefault(). The argument converter must be inspected for - the presence of the jakarta.faces.application.ResourceDependency annotation. If the - ResourceDependency annotation is present, the action described in ResourceDependency must be taken. - If the ResourceDependency annotation is not present, the argument converter must be inspected for - the presence of the jakarta.faces.application.ResourceDependencies annotation. If the - ResourceDependencies annotation is present, the action described in ResourceDependencies must be - taken. - - true - - -
-
-
- true -
- JSF:JAVADOC:2262 - - Converter - - jakarta.faces.application.Application.createConverter -
- ( - Class - ) -
-
- Instantiate and return a new Converter instance of the class that has registered itself - as capable of performing conversions for objects of the specified type. If no such Converter class - can be identified, return null. To locate an appropriate Converter class, the following algorithm is - performed, stopping as soon as an appropriate Converter class is found: Locate a Converter - registered for the target class itself. Locate a Converter registered for interfaces that are - implemented by the target class (directly or indirectly). Locate a Converter registered for the - superclass (if any) of the target class, recursively working up the inheritance hierarchy. If the - Converter has a single argument constructor that accepts a Class, instantiate the Converter using - that constructor, passing the argument targetClass as the sole argument. Otherwise, simply use the - zero-argument constructor. If the toLowerCase() of the String represenation of the value of the - "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration - parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of - jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be - called, passing the return from TimeZone.getDefault(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2263 - - Validator - - jakarta.faces.application.Application.createValidator -
- ( - String - ) -
-
- Instantiate and return a new Validator instance of the class specified by a previous - call to addValidator() for the specified validator id. The argument validator must be inspected for - the presence of the jakarta.faces.application.ResourceDependency annotation. If the - ResourceDependency annotation is present, the action described in ResourceDependency must be taken. - If the ResourceDependency annotation is not present, the argument validator must be inspected for - the presence of the jakarta.faces.application.ResourceDependencies annotation. If the - ResourceDependencies annotation is present, the action described in ResourceDependencies must be - taken. - - true - - -
-
-
- true -
- JSF:JAVADOC:2264 - - Validator - - jakarta.faces.application.Application.createValidator -
- ( - String - ) - -
- throws - FacesException -
-
-
- if a Validator of the specified id cannot be created - - true - - -
-
-
- true -
- JSF:JAVADOC:2265 - - Object - - jakarta.faces.application.Application.evaluateExpressionGet -
- ( - FacesContext - , -
- String - , -
- Class - ) -
-
- Get a value by evaluating an expression. Call #getExpressionFactory then call - ExpressionFactory#createValueExpression passing the argument expression and expectedType. Call - FacesContext#getELContext and pass it to ValueExpression#getValue, returning the result. An - implementation is provided that throws UnsupportedOperationException so that users that decorate the - Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2266 - - Object - - jakarta.faces.application.Application.evaluateExpressionGet -
- ( - FacesContext - , -
- String - , -
- Class - ) - -
- throws - ELException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2267 - - Iterator - - jakarta.faces.application.Application.getBehaviorIds -
-
-
- Return an Iterator over the set of currently registered behavior ids for this - Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2268 - - Iterator - - jakarta.faces.application.Application.getComponentTypes -
-
-
- Return an Iterator over the set of currently defined component types for this - Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2269 - - Iterator - - jakarta.faces.application.Application.getConverterIds -
-
-
- Return an Iterator over the set of currently registered converter ids for this - Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2270 - - Iterator - - jakarta.faces.application.Application.getConverterTypes -
-
-
- Return an Iterator over the set of Class instances for which Converter classes have - been explicitly registered. - - true - - -
-
-
- true -
- JSF:JAVADOC:2271 - - Locale - - jakarta.faces.application.Application.getDefaultLocale -
-
-
- Return the default Locale for this application. If not explicitly set, null is - returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2272 - - String - - jakarta.faces.application.Application.getDefaultRenderKitId -
-
-
- Return the renderKitId to be used for rendering this application. If not explicitly - set, null is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2273 - - Map - - jakarta.faces.application.Application.getDefaultValidatorInfo -
-
-
- Return an immutable Map over the set of currently registered default validator IDs and - their class name for this Application. An implementation is provided that returns - Collections.emptyMap so that users that decorate the Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2274 - - ELContextListener[] - - jakarta.faces.application.Application.getELContextListeners -
-
-
- If no calls have been made to #addELContextListener, this method must return an empty - array. Otherwise, return an array representing the list of listeners added by calls to - #addELContextListener. An implementation is provided that throws UnsupportedOperationException so - that users that decorate the Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2275 - - ELResolver - - jakarta.faces.application.Application.getELResolver -
-
-
- Return the singleton ELResolver instance to be used for all Jakarta Expression Language - resolution. This is actually an instance of jakarta.el.CompositeELResolver that must contain the - following ELResolver instances in the following order: ELResolver instances declared using the - element in the application configuration resources. An implementation that wraps the head of the - legacy VariableResolver chain, as per section VariableResolver ChainWrapper in Chapter 5 in the spec - document. An implementation that wraps the head of the legacy PropertyResolver chain, as per section - PropertyResolver ChainWrapper in Chapter 5 in the spec document. Any ELResolver instances added by - calls to #addELResolver. The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2276 - - ExpressionFactory - - jakarta.faces.application.Application.getExpressionFactory -
-
-
- Return the ExpressionFactory instance for this application. This instance is used by - the convenience method #evaluateExpressionGet. The implementation must return the ExpressionFactory - from the Expression Language container by calling jakarta.el.ELManager.getExpressionFactory(). An - implementation is provided that throws UnsupportedOperationException so that users that decorate the - Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2277 - - FlowHandler - - jakarta.faces.application.Application.getFlowHandler -
-
-
- Return the thread-safe singleton FlowHandler for this application. For implementations - declaring compliance with version 2.2 of the specification, this method must never return null, even - if the application has no flows. This is necessary to enable dynamic flow creation during the - application's lifetime. All implementations that declare compliance with version 2.2 of the - specification must implement this method. For the purpose of backward compatibility with - environments that extend Application but do not override this method, an implementation is provided - that returns null. Due to the decoratable nature of Application, code calling this method should - always check for a null return. - - true - - -
-
-
- true -
- JSF:JAVADOC:2278 - - String - - jakarta.faces.application.Application.getMessageBundle -
-
-
- Return the fully qualified class name of the ResourceBundle to be used for Jakarta - Faces messages for this application. If not explicitly set, null is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2279 - - ProjectStage - - jakarta.faces.application.Application.getProjectStage -
-
-
- Return the project stage for the currently running application instance. The default - value is ProjectStage#Production The implementation of this method must perform the following - algorithm or an equivalent with the same end result to determine the value to return. If the value - has already been determined by a previous call to this method, simply return that value. Look for a - JNDI environment entry under the key given by the value of ProjectStage#PROJECT_STAGE_JNDI_NAME - (return type of java.lang.String). If found, continue with the algorithm below, otherwise, look for - an entry in the initParamMap of the ExternalContext from the current FacesContext with the key given - by the value of ProjectStage#PROJECT_STAGE_PARAM_NAME If a value is found, see if an enum constant - can be obtained by calling ProjectStage.valueOf(), passing the value from the initParamMap. If this - succeeds without exception, save the value and return it. If not found, or any of the previous - attempts to discover the enum constant value have failed, log a descriptive error message, assign - the value as ProjectStage.Production and return it. A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application can continue to function . - - - true - - -
-
-
- true -
- JSF:JAVADOC:2280 - - ResourceBundle - - jakarta.faces.application.Application.getResourceBundle -
- ( - FacesContext - , -
- String - ) -
-
- Find a ResourceBundle as defined in the application configuration resources under the - specified name. If a ResourceBundle was defined for the name, return an instance that uses the - locale of the current jakarta.faces.component.UIViewRoot. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:2281 - - ResourceHandler - - jakarta.faces.application.Application.getResourceHandler -
-
-
- Return the singleton, stateless, thread-safe ResourceHandler for this application. The - Jakarta Faces implementation must support the following techniques for declaring an alternate - implementation of ResourceHandler. The ResourceHandler implementation is declared in the application - configuration resources by giving the fully qualified class name as the value of the element within - the element. In all of the above cases, the runtime must employ the decorator pattern as for every - other pluggable artifact in Jakarta Faces. A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application can continue to function . - - - true - - -
-
-
- true -
- JSF:JAVADOC:2282 - - SearchExpressionHandler - - jakarta.faces.application.Application.getSearchExpressionHandler -
-
-
- Return the thread-safe singleton SearchExpressionHandler for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2283 - - SearchKeywordResolver - - jakarta.faces.application.Application.getSearchKeywordResolver -
-
-
- Return the singleton SearchKeywordResolver instance to be used for all search keyword - resolution. This is actually an instance of a composite SearchKeywordResolver that must contain the - following SearchKeywordResolver instances in the following order: SearchKeywordResolver instances - declared using the element in the application configuration resources. Any SearchKeywordResolver - instances added by calls to #addSearchKeywordResolver. The SearchKeywordResolver implementations for - @all, @child(n), @form, @id(...), @namingcontainer, @next, @none, @parent, @previous, @root and - @this. The default implementation throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2284 - - StateManager - - jakarta.faces.application.Application.getStateManager -
-
-
- Return the StateManager instance that will be utilized during the Restore View and - Render Response phases of the request processing lifecycle. If not explicitly set, a default - implementation must be provided that performs the functions described in the StateManager - description in the Jakarta Faces Specification. - - true - - -
-
-
- true -
- JSF:JAVADOC:2285 - - Iterator - - jakarta.faces.application.Application.getSupportedLocales -
-
-
- Return an Iterator over the supported Locales for this appication. - - true - - -
-
-
- true -
- JSF:JAVADOC:2286 - - Iterator - - jakarta.faces.application.Application.getValidatorIds -
-
-
- Return an Iterator over the set of currently registered validator ids for this - Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2287 - - ViewHandler - - jakarta.faces.application.Application.getViewHandler -
-
-
- Return the ViewHandler instance that will be utilized during the Restore View and - Render Response phases of the request processing lifecycle. If not explicitly set, a default - implementation must be provided that performs the functions described in the ViewHandler description - in the Jakarta Faces Specification. - - true - - -
-
-
- true -
- JSF:JAVADOC:2288 - - void - - jakarta.faces.application.Application.publishEvent -
- ( - FacesContext - , -
- Class - , -
- Object - ) -
-
- If jakarta.faces.context.FacesContext#isProcessingEvents() is true and there are one or - more listeners for events of the type represented by systemEventClass, call those listeners, passing - source as the source of the event. The implementation should be as fast as possible in determining - whether or not a listener for the given systemEventClass and source has been installed, and should - return immediately once such a determination has been made. The implementation of publishEvent must - honor the requirements stated in #subscribeToEvent regarding the storage and retrieval of listener - instances. Specifically, if #subscribeToEvent(Class,Class,SystemEventListener) was called, the - sourceClass argument must match exactly the Class of the source argument in the call to - publishEvent(). The implementation must not do any inheritance hierarachy inspection when looking - for a match between the sourceClass passed to #subscribeToEvent(Class,Class,SystemEventListener) and - the sourceClass passed to publishEvent() in order to find any listeners to which the event should be - published. In the case where the Class of the source argument does not match the Class of the - sourceClass used when the listener was subscribed using subscribeToEvent(), - #publishEvent(FacesContext,Class,Class,Object) can be used to provide the Class used to perform the - listener lookup and match. The default implementation must implement an algorithm semantically - equivalent to the following to locate listener instances and to invoke them. If the source argument - implements jakarta.faces.event.SystemEventListenerHolder, call - jakarta.faces.event.SystemEventListenerHolder#getListenersForEventClass on it, passing the - systemEventClass argument. If the list is not empty, perform algorithm traverseListenerList on the - list. If any view level listeners have been installed by previous calls to #subscribeToEvent(Class, - Class, jakarta.faces.event.SystemEventListener) on the jakarta.faces.component.UIViewRoot, perform - algorithm traverseListenerList on the list of listeners for that event installed on the UIViewRoot. - If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, - Class, jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. - If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, - jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. If the - act of invoking the processListener method causes an jakarta.faces.event.AbortProcessingException to - be thrown, processing of the listeners must be aborted, no further processing of the listeners for - this event must take place, and the exception must be logged with Level.SEVERE. Algorithm - traverseListenerList: For each listener in the list, Call - jakarta.faces.event.SystemEventListener#isListenerForSource, passing the source argument. If this - returns false, take no action on the listener. Otherwise, if the event to be passed to the listener - instances has not yet been constructed, construct the event, passing source as the argument to the - one-argument constructor that takes an Object. This same event instance must be passed to all - listener instances. Call jakarta.faces.event.SystemEvent#isAppropriateListener, passing the listener - instance as the argument. If this returns false, take no action on the listener. Call - jakarta.faces.event.SystemEvent#processListener, passing the listener instance. A default - implementation is provided that throws UnsupportedOperationException so that users that decorate - Application can continue to function . - - true - - -
-
-
- true -
- JSF:JAVADOC:2289 - - void - - jakarta.faces.application.Application.publishEvent -
- ( - FacesContext - , -
- Class - , -
- Class - , -
- Object - ) -
-
- This method functions exactly like #publishEvent(FacesContext,Class,Object), except the - run-time must use the argument sourceBaseType to find the matching listener instead of using the - Class of the source argument. A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application can continue to function . - - - true - - -
-
-
- true -
- JSF:JAVADOC:2290 - - void - - jakarta.faces.application.Application.removeELContextListener -
- ( - ELContextListener - ) -
-
- Remove the argument listener from the list of ELContextListeners. If listener is null, - no exception is thrown and no action is performed. If listener is not in the list, no exception is - thrown and no action is performed. An implementation is provided that throws - UnsupportedOperationException so that users that decorate the Application continue to work. - - true - - -
-
-
- true -
- JSF:JAVADOC:2291 - - void - - jakarta.faces.application.Application.setDefaultLocale -
- ( - Locale - ) -
-
- Set the default Locale for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2292 - - void - - jakarta.faces.application.Application.setDefaultRenderKitId -
- ( - String - ) -
-
- Set the renderKitId to be used to render this application. Unless the client has - provided a custom ViewHandler that supports the use of multiple jakarta.faces.render.RenderKit - instances in the same application, this method must only be called at application startup, before - any Faces requests have been processed. This is a limitation of the current Specification, and may - be lifted in a future release. - - true - - -
-
-
- true -
- JSF:JAVADOC:2293 - - void - - jakarta.faces.application.Application.setFlowHandler -
- ( - FlowHandler - ) -
-
- Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements - of the faces flows feature. - - true - - -
-
-
- true -
- JSF:JAVADOC:2294 - - void - - jakarta.faces.application.Application.setMessageBundle -
- ( - String - ) -
-
- Set the fully qualified class name of the ResourceBundle to be used for Jakarta Faces - messages for this application. See the JavaDocs for the java.util.ResourceBundle class for more - information about the syntax for resource bundle names. - - true - - -
-
-
- true -
- JSF:JAVADOC:2295 - - void - - jakarta.faces.application.Application.setResourceHandler -
- ( - ResourceHandler - ) -
-
- Set the ResourceHandler instance that will be utilized for rendering the markup for - resources, and for satisfying client requests to serve up resources. - - true - - -
-
-
- true -
- JSF:JAVADOC:2296 - - void - - jakarta.faces.application.Application.setSearchExpressionHandler -
- ( - SearchExpressionHandler - ) -
-
- Set the SearchExpressionHandler instance used by the application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2297 - - void - - jakarta.faces.application.Application.setStateManager -
- ( - StateManager - ) -
-
- Set the StateManager instance that will be utilized during the Restore View and Render - Response phases of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:2298 - - void - - jakarta.faces.application.Application.setSupportedLocales -
- ( - Collection - ) -
-
- Set the Locale instances representing the supported Locales for this application. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2299 - - void - - jakarta.faces.application.Application.setViewHandler -
- ( - ViewHandler - ) -
-
- Set the ViewHandler instance that will be utilized during the Restore View and Render - Response phases of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:2300 - - void - - jakarta.faces.application.Application.subscribeToEvent -
- ( - Class - , -
- Class - , -
- SystemEventListener - ) -
-
- Install the listener instance referenced by argument listener into the application as a - listener for events of type systemEventClass that originate from objects of type sourceClass. If - argument sourceClass is non-null, sourceClass and systemEventClass must be used to store the - argument listener in the application in such a way that the listener can be quickly looked up by the - implementation of #publishEvent given systemEventClass and an instance of the Class referenced by - sourceClass. If argument sourceClass is null, the listener must be discoverable by the - implementation of #publishEvent given only systemEventClass. It is valid to call this method during - the processing of an event which was subscribed to by a previous call to this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2301 - - void - - jakarta.faces.application.Application.subscribeToEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- Install the listener instance referenced by argument listener into application as a - listener for events of type systemEventClass. The default implementation simply calls through to - #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) passing null as the - sourceClass argument A default implementation is provided that throws UnsupportedOperationException - so that users that decorate Application can continue to function . - - true - - -
-
-
- true -
- JSF:JAVADOC:2302 - - void - - jakarta.faces.application.Application.unsubscribeFromEvent -
- ( - Class - , -
- Class - , -
- SystemEventListener - ) -
-
- Remove the listener instance referenced by argument listener from the application as a - listener for events of type systemEventClass that originate from objects of type sourceClass. See - #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) for the specification of - how the listener is stored, and therefore, how it must be removed. See - #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an - additional requirement regarding when it is valid to call this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2303 - - void - - jakarta.faces.application.Application.unsubscribeFromEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- Remove the listener instance referenced by argument listener from the application as a - listener for events of type systemEventClass. The default implementation simply calls through to - #unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) passing null as the - sourceClass argument See - #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an - additional requirement regarding when it is valid to call this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2304 - - ApplicationConfigurationPopulator - - - jakarta.faces.application.ApplicationConfigurationPopulator.ApplicationConfigurationPopulator -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2305 - - void - - - jakarta.faces.application.ApplicationConfigurationPopulator.populateApplicationConfiguration -
- ( - Document - ) -
-
- Service providers that implement this service must be called by the Jakarta Faces - runtime exactly once for each implementation, at startup, before any requests have been serviced. - Before calling the #populateApplicationConfiguration method, the runtime must ensure that the - Document argument is empty aside from being pre-configured to be in the proper namespace for an - Application Configuration Resources file: https://jakarta.ee/xml/ns/jakartaee. Implementations of - this service must ensure that any changes made to the argument Document conform to that schema as - defined in the specification. The Jakarta Faces runtime is not required to validate the Document - after control returns from the service implementation, though it may do so. Ordering of Artifacts If - the document is made to contain an element, as specified in the section 11.3.8 "Ordering of - Artifacts" in the Jakarta Faces Specification Document, the document will be prioritized - accordingly. Otherwise, the runtime must place the document in the list of other Application - Configuration Resources documents at the "lowest" priority, meaning any conflicts that may arise - between the argument document and any other Application Configuration Resources are resolved in - favor of the other document. - - true - - -
-
-
- true -
- JSF:JAVADOC:2306 - - ApplicationFactory - - jakarta.faces.application.ApplicationFactory.ApplicationFactory -
- ( - ApplicationFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2307 - - ApplicationFactory - - jakarta.faces.application.ApplicationFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2308 - - void - - jakarta.faces.application.ApplicationWrapper.addBehavior -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call Application#addBehavior(String, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2309 - - void - - jakarta.faces.application.ApplicationWrapper.addComponent -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call Application#addComponent(String, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2310 - - void - - jakarta.faces.application.ApplicationWrapper.addConverter -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call Application#addConverter(String, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2311 - - void - - jakarta.faces.application.ApplicationWrapper.addConverter -
- ( - Class - , -
- String - ) -
-
- The default behavior of this method is to call Application#addConverter(Class, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2312 - - void - - jakarta.faces.application.ApplicationWrapper.addDefaultValidatorId -
- ( - String - ) -
-
- The default behavior of this method is to call - Application#addDefaultValidatorId(String) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2313 - - void - - jakarta.faces.application.ApplicationWrapper.addELContextListener -
- ( - ELContextListener - ) -
-
- The default behavior of this method is to call - Application#addELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2314 - - void - - jakarta.faces.application.ApplicationWrapper.addELResolver -
- ( - ELResolver - ) -
-
- The default behavior of this method is to call - Application#addELResolver(jakarta.el.ELResolver) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2315 - - void - - jakarta.faces.application.ApplicationWrapper.addSearchKeywordResolver -
- ( - SearchKeywordResolver - ) -
-
- Cause the argument resolver to be added to the head of the resolver chain. It is not - possible to remove a SearchKeywordResolver registered with this method, once it has been registered. - The default implementation throws UnsupportedOperationException and is provided for the sole purpose - of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2316 - - void - - jakarta.faces.application.ApplicationWrapper.addValidator -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call Application#addValidator(String, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2317 - - ApplicationWrapper - - jakarta.faces.application.ApplicationWrapper.ApplicationWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2318 - - ApplicationWrapper - - jakarta.faces.application.ApplicationWrapper.ApplicationWrapper -
- ( - Application - ) -
-
- If this application has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2319 - - Behavior - - jakarta.faces.application.ApplicationWrapper.createBehavior -
- ( - String - ) -
-
- The default behavior of this method is to call Application#createBehavior(String) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2320 - - Behavior - - jakarta.faces.application.ApplicationWrapper.createBehavior -
- ( - String - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2321 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - String - ) -
-
- The default behavior of this method is to call Application#createComponent(String) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2322 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - String - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2323 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2324 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2325 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - ValueExpression - , -
- FacesContext - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call - Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String, - String) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2326 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call - Application#createComponent(jakarta.faces.context.FacesContext, String, String) on the wrapped - Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2327 - - UIComponent - - jakarta.faces.application.ApplicationWrapper.createComponent -
- ( - FacesContext - , -
- Resource - ) -
-
- The default behavior of this method is to call - Application#createComponent(jakarta.faces.context.FacesContext, Resource) on the wrapped Application - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2328 - - Converter - - jakarta.faces.application.ApplicationWrapper.createConverter -
- ( - String - ) -
-
- The default behavior of this method is to call Application#createConverter(String) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2329 - - Converter - - jakarta.faces.application.ApplicationWrapper.createConverter -
- ( - Class - ) -
-
- The default behavior of this method is to call Application#createConverter(Class) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2330 - - Validator - - jakarta.faces.application.ApplicationWrapper.createValidator -
- ( - String - ) -
-
- The default behavior of this method is to call Application#createValidator(String) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2331 - - Validator - - jakarta.faces.application.ApplicationWrapper.createValidator -
- ( - String - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2332 - - Object - - jakarta.faces.application.ApplicationWrapper.evaluateExpressionGet -
- ( - FacesContext - , -
- String - , -
- Class - ) -
-
- The default behavior of this method is to call - Application#evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class) on the wrapped - Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2333 - - Object - - jakarta.faces.application.ApplicationWrapper.evaluateExpressionGet -
- ( - FacesContext - , -
- String - , -
- Class - ) - -
- throws - ELException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2334 - - ActionListener - - jakarta.faces.application.ApplicationWrapper.getActionListener -
-
-
- The default behavior of this method is to call Application#getActionListener on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2335 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getBehaviorIds -
-
-
- The default behavior of this method is to call Application#getBehaviorIds on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2336 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getComponentTypes -
-
-
- The default behavior of this method is to call Application#getComponentTypes on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2337 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getConverterIds -
-
-
- The default behavior of this method is to call Application#getConverterIds on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2338 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getConverterTypes -
-
-
- The default behavior of this method is to call Application#getConverterTypes on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2339 - - Locale - - jakarta.faces.application.ApplicationWrapper.getDefaultLocale -
-
-
- The default behavior of this method is to call Application#getDefaultLocale on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2340 - - String - - jakarta.faces.application.ApplicationWrapper.getDefaultRenderKitId -
-
-
- The default behavior of this method is to call Application#getDefaultRenderKitId on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2341 - - Map - - jakarta.faces.application.ApplicationWrapper.getDefaultValidatorInfo -
-
-
- The default behavior of this method is to call Application#getDefaultValidatorInfo on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2342 - - ELContextListener[] - - jakarta.faces.application.ApplicationWrapper.getELContextListeners -
-
-
- The default behavior of this method is to call Application#getELContextListeners on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2343 - - ELResolver - - jakarta.faces.application.ApplicationWrapper.getELResolver -
-
-
- The default behavior of this method is to call Application#getELResolver on the wrapped - Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2344 - - ExpressionFactory - - jakarta.faces.application.ApplicationWrapper.getExpressionFactory -
-
-
- The default behavior of this method is to call Application#getExpressionFactory on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2345 - - FlowHandler - - jakarta.faces.application.ApplicationWrapper.getFlowHandler -
-
-
- Return the thread-safe singleton FlowHandler for this application. For implementations - declaring compliance with version 2.2 of the specification, this method must never return null, even - if the application has no flows. This is necessary to enable dynamic flow creation during the - application's lifetime. All implementations that declare compliance with version 2.2 of the - specification must implement this method. For the purpose of backward compatibility with - environments that extend Application but do not override this method, an implementation is provided - that returns null. Due to the decoratable nature of Application, code calling this method should - always check for a null return. - - true - - -
-
-
- true -
- JSF:JAVADOC:2346 - - String - - jakarta.faces.application.ApplicationWrapper.getMessageBundle -
-
-
- The default behavior of this method is to call Application#getMessageBundle on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2347 - - NavigationHandler - - jakarta.faces.application.ApplicationWrapper.getNavigationHandler -
-
-
- The default behavior of this method is to call Application#getNavigationHandler on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2348 - - ProjectStage - - jakarta.faces.application.ApplicationWrapper.getProjectStage -
-
-
- The default behavior of this method is to call Application#getProjectStage on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2349 - - ResourceBundle - - jakarta.faces.application.ApplicationWrapper.getResourceBundle -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - Application#getResourceBundle(jakarta.faces.context.FacesContext, String) on the wrapped Application - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2350 - - ResourceHandler - - jakarta.faces.application.ApplicationWrapper.getResourceHandler -
-
-
- The default behavior of this method is to call Application#getResourceHandler on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2351 - - SearchExpressionHandler - - jakarta.faces.application.ApplicationWrapper.getSearchExpressionHandler -
-
-
- Return the thread-safe singleton SearchExpressionHandler for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2352 - - SearchKeywordResolver - - jakarta.faces.application.ApplicationWrapper.getSearchKeywordResolver -
-
-
- Return the singleton SearchKeywordResolver instance to be used for all search keyword - resolution. This is actually an instance of a composite SearchKeywordResolver that must contain the - following SearchKeywordResolver instances in the following order: SearchKeywordResolver instances - declared using the element in the application configuration resources. Any SearchKeywordResolver - instances added by calls to #addSearchKeywordResolver. The SearchKeywordResolver implementations for - @all, @child(n), @form, @id(...), @namingcontainer, @next, @none, @parent, @previous, @root and - @this. The default implementation throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2353 - - StateManager - - jakarta.faces.application.ApplicationWrapper.getStateManager -
-
-
- The default behavior of this method is to call Application#getStateManager on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2354 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getSupportedLocales -
-
-
- The default behavior of this method is to call Application#getSupportedLocales on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2355 - - Iterator - - jakarta.faces.application.ApplicationWrapper.getValidatorIds -
-
-
- The default behavior of this method is to call Application#getValidatorIds on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2356 - - ViewHandler - - jakarta.faces.application.ApplicationWrapper.getViewHandler -
-
-
- The default behavior of this method is to call Application#getViewHandler on the - wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2357 - - Application - - jakarta.faces.application.ApplicationWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2358 - - void - - jakarta.faces.application.ApplicationWrapper.publishEvent -
- ( - FacesContext - , -
- Class - , -
- Object - ) -
-
- The default behavior of this method is to call - Application#publishEvent(jakarta.faces.context.FacesContext, Class, Object) on the wrapped - Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2359 - - void - - jakarta.faces.application.ApplicationWrapper.publishEvent -
- ( - FacesContext - , -
- Class - , -
- Class - , -
- Object - ) -
-
- The default behavior of this method is to call - Application#publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object) on the wrapped - Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2360 - - void - - jakarta.faces.application.ApplicationWrapper.removeELContextListener -
- ( - ELContextListener - ) -
-
- The default behavior of this method is to call - Application#removeELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2361 - - void - - jakarta.faces.application.ApplicationWrapper.setActionListener -
- ( - ActionListener - ) -
-
- The default behavior of this method is to call - Application#setActionListener(jakarta.faces.event.ActionListener) on the wrapped Application object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2362 - - void - - jakarta.faces.application.ApplicationWrapper.setDefaultLocale -
- ( - Locale - ) -
-
- The default behavior of this method is to call - Application#setDefaultLocale(java.util.Locale) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2363 - - void - - jakarta.faces.application.ApplicationWrapper.setDefaultRenderKitId -
- ( - String - ) -
-
- The default behavior of this method is to call - Application#setDefaultRenderKitId(String) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2364 - - void - - jakarta.faces.application.ApplicationWrapper.setFlowHandler -
- ( - FlowHandler - ) -
-
- Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements - of the faces flows feature. - - true - - -
-
-
- true -
- JSF:JAVADOC:2365 - - void - - jakarta.faces.application.ApplicationWrapper.setMessageBundle -
- ( - String - ) -
-
- The default behavior of this method is to call Application#setMessageBundle(String) on - the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2366 - - void - - jakarta.faces.application.ApplicationWrapper.setNavigationHandler -
- ( - NavigationHandler - ) -
-
- The default behavior of this method is to call - Application#setNavigationHandler(NavigationHandler) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2367 - - void - - jakarta.faces.application.ApplicationWrapper.setResourceHandler -
- ( - ResourceHandler - ) -
-
- The default behavior of this method is to call - Application#setResourceHandler(ResourceHandler) on the wrapped Application object. This method can - throw IllegalStateException and NullPointerException. - - true - - -
-
-
- true -
- JSF:JAVADOC:2368 - - void - - jakarta.faces.application.ApplicationWrapper.setSearchExpressionHandler -
- ( - SearchExpressionHandler - ) -
-
- Set the SearchExpressionHandler instance used by the application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2369 - - void - - jakarta.faces.application.ApplicationWrapper.setStateManager -
- ( - StateManager - ) -
-
- The default behavior of this method is to call - Application#setStateManager(StateManager) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2370 - - void - - jakarta.faces.application.ApplicationWrapper.setSupportedLocales -
- ( - Collection - ) -
-
- The default behavior of this method is to call - Application#setSupportedLocales(java.util.Collection) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2371 - - void - - jakarta.faces.application.ApplicationWrapper.setViewHandler -
- ( - ViewHandler - ) -
-
- The default behavior of this method is to call Application#setViewHandler(ViewHandler) - on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2372 - - void - - jakarta.faces.application.ApplicationWrapper.subscribeToEvent -
- ( - Class - , -
- Class - , -
- SystemEventListener - ) -
-
- The default behavior of this method is to call Application#subscribeToEvent(Class, - Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2373 - - void - - jakarta.faces.application.ApplicationWrapper.subscribeToEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- The default behavior of this method is to call Application#subscribeToEvent(Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2374 - - void - - jakarta.faces.application.ApplicationWrapper.unsubscribeFromEvent -
- ( - Class - , -
- Class - , -
- SystemEventListener - ) -
-
- The default behavior of this method is to call Application#unsubscribeFromEvent(Class, - Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2375 - - void - - jakarta.faces.application.ApplicationWrapper.unsubscribeFromEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- The default behavior of this method is to call Application#unsubscribeFromEvent(Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2376 - - ConfigurableNavigationHandler - - jakarta.faces.application.ConfigurableNavigationHandler.ConfigurableNavigationHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2377 - - NavigationCase - - jakarta.faces.application.ConfigurableNavigationHandler.getNavigationCase -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Return the NavigationCase representing the navigation that would be taken had - NavigationHandler#handleNavigation been called with the same arguments or null if there is no such - case. - - true - - -
-
-
- true -
- JSF:JAVADOC:2378 - - NavigationCase - - jakarta.faces.application.ConfigurableNavigationHandler.getNavigationCase -
- ( - FacesContext - , -
- String - , -
- String - , -
- String - ) -
-
- Return the NavigationCase representing the navigation that would be taken had - NavigationHandler#handleNavigation been called with the same arguments or null if there is no such - case. Implementations that comply the version of the specification in which this method was - introduced must override this method. For compatibility with decorated implementations that comply - with an earlier version of the specification, an implementation is provided that simply calls - through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, - java.lang.String), ignoring the toFlowDocumentId parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2379 - - Map - - jakarta.faces.application.ConfigurableNavigationHandler.getNavigationCases -
-
-
- Return a Map where the keys are values and the values are Set where each element in the - Set is a NavigationCase that applies to that . The implementation must support live modifications to - this Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:2380 - - void - - jakarta.faces.application.ConfigurableNavigationHandler.inspectFlow -
- ( - FacesContext - , -
- Flow - ) -
-
- Called by the flow system to cause the flow to be inspected for navigation rules. For - backward compatibility with earlier implementations, an empty method is provided. - - true - - -
-
-
- true -
- JSF:JAVADOC:2381 - - void - - jakarta.faces.application.ConfigurableNavigationHandler.performNavigation -
- ( - String - ) -
-
- A convenience method to signal the Jakarta Faces implementation to perform navigation - with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as - the "from viewId" and the "from action" is null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2382 - - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.ConfigurableNavigationHandlerWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2383 - - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.ConfigurableNavigationHandlerWrapper -
- ( - ConfigurableNavigationHandler - ) -
-
- If this configurable navigation handler has been decorated, the implementation doing - the decorating should push the implementation being wrapped to this constructor. The #getWrapped() - will then return the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2384 - - NavigationCase - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.getNavigationCase -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Return the NavigationCase representing the navigation that would be taken had - NavigationHandler#handleNavigation been called with the same arguments or null if there is no such - case. - - true - - -
-
-
- true -
- JSF:JAVADOC:2385 - - NavigationCase - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.getNavigationCase -
- ( - FacesContext - , -
- String - , -
- String - , -
- String - ) -
-
- Return the NavigationCase representing the navigation that would be taken had - NavigationHandler#handleNavigation been called with the same arguments or null if there is no such - case. Implementations that comply the version of the specification in which this method was - introduced must override this method. For compatibility with decorated implementations that comply - with an earlier version of the specification, an implementation is provided that simply calls - through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, - java.lang.String), ignoring the toFlowDocumentId parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2386 - - Map - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.getNavigationCases -
-
-
- Return a Map where the keys are values and the values are Set where each element in the - Set is a NavigationCase that applies to that . The implementation must support live modifications to - this Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:2387 - - ConfigurableNavigationHandler - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2388 - - void - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.handleNavigation -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Perform navigation processing based on the state information in the specified - FacesContext, plus the outcome string returned by an executed application action. If the - implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee - that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this - method to determine the correct navigation. This method must set the render targets (used in partial - rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view - identifier has changed as the result of an application action (to take into account Ajax requests). - - - true - - -
-
-
- true -
- JSF:JAVADOC:2389 - - void - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.inspectFlow -
- ( - FacesContext - , -
- Flow - ) -
-
- Called by the flow system to cause the flow to be inspected for navigation rules. For - backward compatibility with earlier implementations, an empty method is provided. - - true - - -
-
-
- true -
- JSF:JAVADOC:2390 - - void - - jakarta.faces.application.ConfigurableNavigationHandlerWrapper.performNavigation -
- ( - String - ) -
-
- A convenience method to signal the Jakarta Faces implementation to perform navigation - with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as - the "from viewId" and the "from action" is null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2391 - - FacesMessage - - jakarta.faces.application.FacesMessage.FacesMessage -
-
-
- Construct a new jakarta.faces.application.FacesMessage with no initial values. The - severity is set to Severity.INFO. - - true - - -
-
-
- true -
- JSF:JAVADOC:2392 - - FacesMessage - - jakarta.faces.application.FacesMessage.FacesMessage -
- ( - String - ) -
-
- Construct a new jakarta.faces.application.FacesMessage with just a summary. The detail - is null, the severity is set to Severity.INFO. - - true - - -
-
-
- true -
- JSF:JAVADOC:2393 - - FacesMessage - - jakarta.faces.application.FacesMessage.FacesMessage -
- ( - String - , -
- String - ) -
-
- Construct a new jakarta.faces.application.FacesMessage with the specified initial - values. The severity is set to Severity.INFO. - - true - - -
-
-
- true -
- JSF:JAVADOC:2394 - - FacesMessage - - jakarta.faces.application.FacesMessage.FacesMessage -
- ( - Severity - , -
- String - , -
- String - ) -
-
- Construct a new FacesMessage with the specified initial values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2395 - - String - - jakarta.faces.application.FacesMessage.getDetail -
-
-
- Return the localized detail text. If no localized detail text has been defined for this - message, return the localized summary text instead. - - true - - -
-
-
- true -
- JSF:JAVADOC:2396 - - Severity - - jakarta.faces.application.FacesMessage.getSeverity -
-
-
- Return the severity level. - - true - - -
-
-
- true -
- JSF:JAVADOC:2397 - - String - - jakarta.faces.application.FacesMessage.getSummary -
-
-
- Return the localized summary text. - - true - - -
-
-
- true -
- JSF:JAVADOC:2398 - - boolean - - jakarta.faces.application.FacesMessage.isRendered -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2399 - - void - - jakarta.faces.application.FacesMessage.rendered -
-
-
- Marks this message as having been rendered to the client. - - true - - -
-
-
- true -
- JSF:JAVADOC:2400 - - void - - jakarta.faces.application.FacesMessage.setDetail -
- ( - String - ) -
-
- Set the localized detail text. - - true - - -
-
-
- true -
- JSF:JAVADOC:2401 - - void - - jakarta.faces.application.FacesMessage.setSeverity -
- ( - Severity - ) -
-
- Set the severity level. - - true - - -
-
-
- true -
- JSF:JAVADOC:2402 - - void - - jakarta.faces.application.FacesMessage.setSummary -
- ( - String - ) -
-
- Set the localized summary text. - - true - - -
-
-
- true -
- JSF:JAVADOC:2403 - - int - - jakarta.faces.application.FacesMessage.Severity.compareTo -
- ( - Object - ) -
-
- Compare this jakarta.faces.application.FacesMessage.Severity instance to the specified - one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, - or greater than the specified object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2404 - - int - - jakarta.faces.application.FacesMessage.Severity.getOrdinal -
-
-
- Return the ordinal value of this FacesMessage.Severity instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2405 - - String - - jakarta.faces.application.FacesMessage.Severity.toString -
-
-
- Return a String representation of this FacesMessage.Severity instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2406 - - boolean - - jakarta.faces.application.NavigationCase.equals -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2407 - - URL - - jakarta.faces.application.NavigationCase.getActionURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2408 - - URL - - jakarta.faces.application.NavigationCase.getActionURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2409 - - URL - - jakarta.faces.application.NavigationCase.getBookmarkableURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL suitable for a bookmarkable link to this NavigationCase - instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the - url. This URL may include view parameters specified as metadata within the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2410 - - URL - - jakarta.faces.application.NavigationCase.getBookmarkableURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2411 - - Boolean - - jakarta.faces.application.NavigationCase.getCondition -
- ( - FacesContext - ) -
-
- Evaluates the for this , if any. The expression to be evaluated is passed into the - constructor as a string. When the expression is evaluated, its value must be coerced into a boolean - per the normal Jakarta Expression Language coercion rules. Note throws any exceptions encountered - during the process of evaluating the expression or obtaining its value. - - true - - -
-
-
- true -
- JSF:JAVADOC:2412 - - String - - jakarta.faces.application.NavigationCase.getFromAction -
-
-
- Return the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2413 - - String - - jakarta.faces.application.NavigationCase.getFromOutcome -
-
-
- Return the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2414 - - String - - jakarta.faces.application.NavigationCase.getFromViewId -
-
-
- Return the of the inside which this is nested. - - true - - -
-
-
- true -
- JSF:JAVADOC:2415 - - Map - - jakarta.faces.application.NavigationCase.getParameters -
-
-
- Return the parameters to be included for navigation cases requiring a redirect. If no - parameters are defined, null will be returned. The keys in the Map are parameter names. For each - key, the corresponding value is a List of unconverted values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2416 - - URL - - jakarta.faces.application.NavigationCase.getRedirectURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL suitable for a "redirect" to this NavigationCase instance - using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2417 - - URL - - jakarta.faces.application.NavigationCase.getRedirectURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2418 - - URL - - jakarta.faces.application.NavigationCase.getResourceURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2419 - - URL - - jakarta.faces.application.NavigationCase.getResourceURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2420 - - String - - jakarta.faces.application.NavigationCase.getToFlowDocumentId -
-
-
- If this navigation case represents a flow invocation, this property is the documentId - in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations - must override this method to return the value defined in the corresponding application configuration - resources element. The base implementation returns the empty string. - - true - - -
-
-
- true -
- JSF:JAVADOC:2421 - - String - - jakarta.faces.application.NavigationCase.getToViewId -
- ( - FacesContext - ) -
-
- Evaluates the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2422 - - boolean - - jakarta.faces.application.NavigationCase.hasCondition -
-
-
- Test if this navigation case has an associated element. - - true - - -
-
-
- true -
- JSF:JAVADOC:2423 - - int - - jakarta.faces.application.NavigationCase.hashCode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2424 - - boolean - - jakarta.faces.application.NavigationCase.isIncludeViewParams -
-
-
- Return the value for this . This will be true if the view parametets should be encoded - into the redirect URL (only applies to redirect case) - - true - - -
-
-
- true -
- JSF:JAVADOC:2425 - - boolean - - jakarta.faces.application.NavigationCase.isRedirect -
-
-
- Return the value for this . This will be true if the new view should be navigated to - via a jakarta.faces.context.ExternalContext#redirect(String) - - true - - -
-
-
- true -
- JSF:JAVADOC:2426 - - NavigationCase - - jakarta.faces.application.NavigationCase.NavigationCase -
- ( - String - , -
- String - , -
- String - , -
- String - , -
- String - , -
- Map - , -
- boolean - , -
- boolean - ) -
-
- Construct a new NavigationCase based on the provided arguments. See section 7.4.2 - "Default NavigationHandler Algorithm" of the Jakarta Faces Specification Document for how a - NavigationCase is used by the standard ConfigurableNavigationHandler - - true - - -
-
-
- true -
- JSF:JAVADOC:2427 - - NavigationCase - - jakarta.faces.application.NavigationCase.NavigationCase -
- ( - String - , -
- String - , -
- String - , -
- String - , -
- String - , -
- String - , -
- Map - , -
- boolean - , -
- boolean - ) -
-
- Construct a new NavigationCase based on the provided arguments. See section 7.4.2 - "Default NavigationHandler Algorithm" of the Jakarta Faces Specification Document for how a - NavigationCase is used by the standard ConfigurableNavigationHandler - - true - - -
-
-
- true -
- JSF:JAVADOC:2428 - - String - - jakarta.faces.application.NavigationCase.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2429 - - boolean - - jakarta.faces.application.NavigationCaseWrapper.equals -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2430 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getActionURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2431 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getActionURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2432 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getBookmarkableURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL suitable for a bookmarkable link to this NavigationCase - instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the - url. This URL may include view parameters specified as metadata within the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2433 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getBookmarkableURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2434 - - Boolean - - jakarta.faces.application.NavigationCaseWrapper.getCondition -
- ( - FacesContext - ) -
-
- Evaluates the for this , if any. The expression to be evaluated is passed into the - constructor as a string. When the expression is evaluated, its value must be coerced into a boolean - per the normal Jakarta Expression Language coercion rules. Note throws any exceptions encountered - during the process of evaluating the expression or obtaining its value. - - true - - -
-
-
- true -
- JSF:JAVADOC:2435 - - String - - jakarta.faces.application.NavigationCaseWrapper.getFromAction -
-
-
- Return the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2436 - - String - - jakarta.faces.application.NavigationCaseWrapper.getFromOutcome -
-
-
- Return the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2437 - - String - - jakarta.faces.application.NavigationCaseWrapper.getFromViewId -
-
-
- Return the of the inside which this is nested. - - true - - -
-
-
- true -
- JSF:JAVADOC:2438 - - Map - - jakarta.faces.application.NavigationCaseWrapper.getParameters -
-
-
- Return the parameters to be included for navigation cases requiring a redirect. If no - parameters are defined, null will be returned. The keys in the Map are parameter names. For each - key, the corresponding value is a List of unconverted values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2439 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getRedirectURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL suitable for a "redirect" to this NavigationCase instance - using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2440 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getRedirectURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2441 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getResourceURL -
- ( - FacesContext - ) -
-
- Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2442 - - URL - - jakarta.faces.application.NavigationCaseWrapper.getResourceURL -
- ( - FacesContext - ) - -
- throws - MalformedURLException -
-
-
- if the process of constructing the URL causes this exception to be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2443 - - String - - jakarta.faces.application.NavigationCaseWrapper.getToFlowDocumentId -
-
-
- If this navigation case represents a flow invocation, this property is the documentId - in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations - must override this method to return the value defined in the corresponding application configuration - resources element. The base implementation returns the empty string. - - true - - -
-
-
- true -
- JSF:JAVADOC:2444 - - String - - jakarta.faces.application.NavigationCaseWrapper.getToViewId -
- ( - FacesContext - ) -
-
- Evaluates the for this - - true - - -
-
-
- true -
- JSF:JAVADOC:2445 - - NavigationCase - - jakarta.faces.application.NavigationCaseWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2446 - - boolean - - jakarta.faces.application.NavigationCaseWrapper.hasCondition -
-
-
- Test if this navigation case has an associated element. - - true - - -
-
-
- true -
- JSF:JAVADOC:2447 - - int - - jakarta.faces.application.NavigationCaseWrapper.hashCode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2448 - - boolean - - jakarta.faces.application.NavigationCaseWrapper.isIncludeViewParams -
-
-
- Return the value for this . This will be true if the view parametets should be encoded - into the redirect URL (only applies to redirect case) - - true - - -
-
-
- true -
- JSF:JAVADOC:2449 - - boolean - - jakarta.faces.application.NavigationCaseWrapper.isRedirect -
-
-
- Return the value for this . This will be true if the new view should be navigated to - via a jakarta.faces.context.ExternalContext#redirect(String) - - true - - -
-
-
- true -
- JSF:JAVADOC:2450 - - NavigationCaseWrapper - - jakarta.faces.application.NavigationCaseWrapper.NavigationCaseWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2451 - - NavigationCaseWrapper - - jakarta.faces.application.NavigationCaseWrapper.NavigationCaseWrapper -
- ( - NavigationCase - ) -
-
- If this navigation case has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2452 - - String - - jakarta.faces.application.NavigationCaseWrapper.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2453 - - void - - jakarta.faces.application.NavigationHandler.handleNavigation -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Perform navigation processing based on the state information in the specified - FacesContext, plus the outcome string returned by an executed application action. If the - implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee - that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this - method to determine the correct navigation. This method must set the render targets (used in partial - rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view - identifier has changed as the result of an application action (to take into account Ajax requests). - - - true - - -
-
-
- true -
- JSF:JAVADOC:2454 - - void - - jakarta.faces.application.NavigationHandler.handleNavigation -
- ( - FacesContext - , -
- String - , -
- String - , -
- String - ) -
-
- Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, - java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a - flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler - implementations that conform to an earlier version of the specification, an implementation is - provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, - java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2455 - - NavigationHandler - - jakarta.faces.application.NavigationHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2456 - - void - - jakarta.faces.application.NavigationHandlerWrapper.handleNavigation -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Perform navigation processing based on the state information in the specified - FacesContext, plus the outcome string returned by an executed application action. If the - implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee - that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this - method to determine the correct navigation. This method must set the render targets (used in partial - rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view - identifier has changed as the result of an application action (to take into account Ajax requests). - - - true - - -
-
-
- true -
- JSF:JAVADOC:2457 - - void - - jakarta.faces.application.NavigationHandlerWrapper.handleNavigation -
- ( - FacesContext - , -
- String - , -
- String - , -
- String - ) -
-
- Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, - java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a - flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler - implementations that conform to an earlier version of the specification, an implementation is - provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, - java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2458 - - NavigationHandlerWrapper - - jakarta.faces.application.NavigationHandlerWrapper.NavigationHandlerWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2459 - - NavigationHandlerWrapper - - jakarta.faces.application.NavigationHandlerWrapper.NavigationHandlerWrapper -
- ( - NavigationHandler - ) -
-
- If this navigation handler has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2460 - - ProjectStage - - jakarta.faces.application.ProjectStage.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2461 - - ProjectStage[] - - jakarta.faces.application.ProjectStage.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2462 - - ProtectedViewException - - jakarta.faces.application.ProtectedViewException.ProtectedViewException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2463 - - ProtectedViewException - - jakarta.faces.application.ProtectedViewException.ProtectedViewException -
- ( - String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2464 - - ProtectedViewException - - jakarta.faces.application.ProtectedViewException.ProtectedViewException -
- ( - Throwable - ) -
-
- Construct a new exception with the specified root cause. The detail message will be set - to (cause == null ? null : cause.toString() - - true - - -
-
-
- true -
- JSF:JAVADOC:2465 - - ProtectedViewException - - jakarta.faces.application.ProtectedViewException.ProtectedViewException -
- ( - String - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2466 - - String - - jakarta.faces.application.Resource.getContentType -
-
-
- Return the MIME content-type for this resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:2467 - - InputStream - - jakarta.faces.application.Resource.getInputStream -
-
-
- If the current request is a resource request, (that is, - ResourceHandler#isResourceRequest returns true), return an InputStream containing the bytes of the - resource. Otherwise, throw an IOException. - - true - - -
-
-
- true -
- JSF:JAVADOC:2468 - - InputStream - - jakarta.faces.application.Resource.getInputStream -
-
- throws - IOException -
-
-
- if the current request is not a resource request. - - true - - -
-
-
- true -
- JSF:JAVADOC:2469 - - String - - jakarta.faces.application.Resource.getLibraryName -
-
-
- Return the libraryName for this resource. May be null. The libraryName for a resource - is an optional String that indicates membership in a "resource library". All resources with the same - libraryName belong to the same "resource library". The "resource library" concept allows - disambiguating resources that have the same resourceName. See ResourceHandler for more information. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2470 - - String - - jakarta.faces.application.Resource.getRequestPath -
-
-
- Return a path to this resource such that, when the browser resolves it against the base - URI for the view that includes the resource, and issues a GET request to the resultant fully - qualified URL, the bytes of the resource are returned in response. The default implementation must - implement the following algorithm. For discussion, the return result from this method will be called - result. Get the context-root for this web application, not ending in slash. For discussion this will - be called contextRoot. Discover if the FacesServlet is prefix (path) mapped, extension mapped, or - exact mapped (as defined by Servlet.12.2.) and the value of the mapping (including the leading '.' - in the case of extension mapping). For discussion, this will be facesServletMapping. If exact - mapped, result must be the following if and only if the FacesServlet is mapped to the exact URL - pattern ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName result = contextRoot + - ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName If exact mapped, and the FacesServlet is not - mapped to the exact URL pattern ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName do the - following: Retrieve the existing mappings of the FacesServlet, e.g. using - ServletRegistration#getMappings(), and from those pick any prefix mapping or extension mapping. If - no such mapping is found, throw an IllegalStateException. If such mapping is found remove the * - character from that mapping, take that as the new facesServletMapping and continue with evaluating - this mapping as specified below for if prefix mapped and for if extension mapped If prefix mapped, - result must be result = contextRoot + '/' + facesServletMapping + - ResourceHandler#RESOURCE_IDENTIFIER + '/' + #getResourceName If extension mapped, result must be - result = contextRoot + ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName + facesServletMapping - Build up a string, called resourceMetaData which is an amp; separated string of name=value pairs - suitable for inclusion in a URL query string. If #getLibraryName returns non-null, resourceMetaData - must include "ln=" + the return from #getLibraryName If there is a localePrefix for this - application, as defined in ResourceHandler#LOCALE_PREFIX, resourceMetaData must include "loc=" + the - localePrefix. If this resource is contained in a resource library contract, resourceMetaData must - include "con=" + the name of the resource library contract. Append "?" + resourceMetaData to result. - Make it portlet safe by passing the result through ViewHandler#getResourceURL. - - true - - -
-
-
- true -
- JSF:JAVADOC:2471 - - String - - jakarta.faces.application.Resource.getResourceName -
-
-
- Return the resourceName for this resource. Will never be null. All Resource instances - must have a resourceName. - - true - - -
-
-
- true -
- JSF:JAVADOC:2472 - - Map - - jakarta.faces.application.Resource.getResponseHeaders -
-
-
- Returns a mutable Map whose entries will be sent as response headers during - ResourceHandler#handleResourceRequest. The entries in this map must not persist beyond the scope of - a single request. Any modifications made to the map after the resource has been served will be - ignored by the run-time. - - true - - -
-
-
- true -
- JSF:JAVADOC:2473 - - URL - - jakarta.faces.application.Resource.getURL -
-
-
- Return an actual URL instance that refers to this resource instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2474 - - Resource - - jakarta.faces.application.Resource.Resource -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2475 - - void - - jakarta.faces.application.Resource.setContentType -
- ( - String - ) -
-
- Set the MIME content-type for this resource. The default implementation performs no - validation on the argument. - - true - - -
-
-
- true -
- JSF:JAVADOC:2476 - - void - - jakarta.faces.application.Resource.setLibraryName -
- ( - String - ) -
-
- Set the libraryName for this resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:2477 - - void - - jakarta.faces.application.Resource.setResourceName -
- ( - String - ) -
-
- Set the resourceName for this resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:2478 - - String - - jakarta.faces.application.Resource.toString -
-
-
- Call through to #getRequestPath and return the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:2479 - - boolean - - jakarta.faces.application.Resource.userAgentNeedsUpdate -
- ( - FacesContext - ) -
-
- Return true if the user-agent requesting this resource needs an update. If the - If-Modified-Since HTTP header is available for this request, its value must be consulted, as - specified in Section 14.25 of IETF RFC 2616, to determine the result. Returns false if the - user-agent does not need an update for this resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:2480 - - ResourceDependency[] - - jakarta.faces.application.ResourceDependencies.value -
-
-
- The individual resource dependencies - - true - - -
-
-
- true -
- JSF:JAVADOC:2481 - - String - - jakarta.faces.application.ResourceDependency.library -
-
-
- The libraryName in which the resource pointed to by this ResourceDependency resides. If - not specified, defaults to the empty string. It is valid to have Jakarta Expression Language - Expressions in the value of this attribute, as long as the expression resolves to an instance of the - expected type. - - true - - -
-
-
- true -
- JSF:JAVADOC:2482 - - String - - jakarta.faces.application.ResourceDependency.name -
-
-
- The resourceName of the resource pointed to by this ResourceDependency. It is valid to - have Jakarta Expression Language Expressions in the value of this attribute, as long as the - expression resolves to an instance of the expected type. - - true - - -
-
-
- true -
- JSF:JAVADOC:2483 - - String - - jakarta.faces.application.ResourceDependency.target -
-
-
- The value given for this attribute will be passed as the "target" argument to - jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext, - jakarta.faces.component.UIComponent, java.lang.String). If this attribute is specified, - jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) - must be called instead, as described above. It is valid to have Jakarta Expression Language - Expressions in the value of this attribute, as long as the expression resolves to an instance of the - expected type. - - true - - -
-
-
- true -
- JSF:JAVADOC:2484 - - Resource - - jakarta.faces.application.ResourceHandler.createResource -
- ( - String - ) -
-
- Create an instance of ViewResource given the argument resourceName. The content-type of - the resource is derived by passing the resourceName to - jakarta.faces.context.ExternalContext#getMimeType The algorithm specified in section 2.6.1.4 - "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be - executed to create the Resource. New requirements were introduced in version 2.2 of the - specification. For historical reasons, this method operate correctly when the argument resourceName - is of the form libraryName/resourceName, even when resourceName contains '/' characters. - - true - - -
-
-
- true -
- JSF:JAVADOC:2485 - - Resource - - jakarta.faces.application.ResourceHandler.createResource -
- ( - String - , -
- String - ) -
-
- Create an instance of Resource with a resourceName given by the value of the argument - resourceName that is a member of the library named by the argument libraryName. The content-type of - the resource is derived by passing the resourceName to - jakarta.faces.context.ExternalContext#getMimeType. The algorithm specified in section 2.6.1.4 - "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be - executed to create the Resource. New requirements were introduced in version 2.2 of the - specification. - - true - - -
-
-
- true -
- JSF:JAVADOC:2486 - - Resource - - jakarta.faces.application.ResourceHandler.createResource -
- ( - String - , -
- String - , -
- String - ) -
-
- Create an instance of Resource with a resourceName given by the value of the argument - resourceName that is a member of the library named by the argument libraryName that claims to have - the content-type given by the argument content-type. The algorithm specified in section 2.6.1.4 - "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be - executed to create the Resource. New requirements were introduced in version 2.2 of the - specification. - - true - - -
-
-
- true -
- JSF:JAVADOC:2487 - - Resource - - jakarta.faces.application.ResourceHandler.createResourceFromId -
- ( - String - ) -
-
- Create an instance of Resource given the argument resourceId. The content-type of the - resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType - The resource must be identified according to the specification in section 2.6.1.3 "Resource - Identifiers" of the Jakarta Faces Specification Document. New requirements were introduced in - version 2.2 of the specification. - - true - - -
-
-
- true -
- JSF:JAVADOC:2488 - - ViewResource - - jakarta.faces.application.ResourceHandler.createViewResource -
- ( - FacesContext - , -
- String - ) -
-
- Create an instance of Resource given the argument resourceName, which may contain "/" - characters. The jakarta.faces.view.ViewDeclarationLanguage calls this method when it needs to load a - view from a persistent store, such as a filesystem. This method is functionality equivalent to - #createResource(java.lang.String), but all callsites that need to load VDL views must use this - method so that classes that want to decorate the ResourceHandler in order to only affect the loading - of views may do so without affecting the processing of other kinds of resources, such as scripts and - stylesheets. A jakarta.faces.context.FacesContext must be present before calling this method. To - preserve compatibility with prior revisions of the specification, a default implementation must be - provided that calls #createResource(java.lang.String). The default implementation must look for the - resource in the following places, in this order. Considering resource library contracts (at the - locations specified in the Jakarta Faces Specification Document section 2.7 "Resource Library - Contracts"). Considering the web app root. Considering faces flows (at the locations specified in - the Jakarta Faces Specification Document section 11.3.3 "Faces Flows"). Call - FacesContext#getResourceLibraryContracts. If the result is non-null and not empty, for each value in - the list, treat the value as the name of a resource library contract. If the argument resoureName - exists as a resource in the resource library contract, return it. Otherwise, return the resource - (not in the resource library contract), if found. Otherwise, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2489 - - String - - jakarta.faces.application.ResourceHandler.getRendererTypeForResourceName -
- ( - String - ) -
-
- Return the renderer-type for a jakarta.faces.render.Renderer that is capable of - rendering this resource. The default implementation must return values according to the following - table. If no renderer-type can be determined, null must be returned. resource name to renderer-type - mapping example resource name renderer-type mycomponent.js jakarta.faces.resource.Script mystyle.css - jakarta.faces.resource.Stylesheet - - true - - -
-
-
- true -
- JSF:JAVADOC:2490 - - Stream - - jakarta.faces.application.ResourceHandler.getViewResources -
- ( - FacesContext - , -
- String - , -
- int - , -
- ResourceVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the resource tree rooted at a - given initial path. The resource tree is traversed breadth-first, the elements in the stream are - view resource names that would yield a ViewResource when passed into - ResourceHandler#createViewResource as the resourceName parameter. The maxDepth parameter is the - maximum depth of directory levels to visit beyond the initial path, which is always visited. The - value is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and - initial path /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth - 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only - the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all - levels should be visited. - - true - - -
-
-
- true -
- JSF:JAVADOC:2491 - - Stream - - jakarta.faces.application.ResourceHandler.getViewResources -
- ( - FacesContext - , -
- String - , -
- ResourceVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the resource tree rooted at a - given initial path. The resource tree is traversed breadth-first, the elements in the stream are - view resource names that would yield a ViewResource when passed into - ResourceHandler#createViewResource as the resourceName parameter. This method works as if invoking - it were equivalent to evaluating the expression: getViewResources(facesContext, start, - Integer.MAX_VALUE, options) Put differently, it visits all levels of the resource tree. - - true - - -
-
-
- true -
- JSF:JAVADOC:2492 - - void - - jakarta.faces.application.ResourceHandler.handleResourceRequest -
- ( - FacesContext - ) -
-
- This method specifies the contract for satisfying resource requests. This method is - called from jakarta.faces.webapp.FacesServlet#service after that method determines the current - request is a resource request by calling #isResourceRequest. Thus, handleResourceRequest may assume - that the current request is a resource request. The default implementation must implement an - algorithm semantically identical to the following algorithm. For discussion, in all cases when a - status code is to be set, this spec talks only using the Jakarta Servlet API, but it is understood - that in a portlet environment the appropriate equivalent API must be used. If the resourceIdentifier - ends with any of the extensions listed in the value of the #RESOURCE_EXCLUDES_PARAM_NAME init - parameter, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then - handleResourceRequest must immediately return. Extract the resourceName from the resourceIdentifier - by taking the substring of resourceIdentifier that starts at #RESOURCE_IDENTIFIER.length() + 1 and - goes to the end of resourceIdentifier. If no resourceName can be extracted, - HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then - handleResourceRequest must immediately return. Extract the libraryName from the request by looking - in the request parameter map for an entry under the key "ln", without the quotes. If found, use its - value as the libraryName. If resourceName and libraryName are present, call #createResource(String, - String) to create the Resource. If only resourceName is present, call #createResource(String) to - create the Resource. If the Resource cannot be successfully created, HttpServletRequest.SC_NOT_FOUND - must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately - return. Call Resource#userAgentNeedsUpdate. If this method returns false, - HttpServletRequest.SC_NOT_MODIFIED must be passed to HttpServletResponse.setStatus(), then - handleResourceRequest must immediately return. Pass the result of Resource#getContentType to - HttpServletResponse.setContentType. Call Resource#getResponseHeaders. For each entry in this Map, - call HttpServletResponse.setHeader(), passing the key as the first argument and the value as the - second argument. Call Resource#getInputStream and serve up the bytes of the resource to the - response. Call HttpServletResponse.setContentLength() passing the byte count of the resource. If an - IOException is thrown during any of the previous steps, log a descriptive, localized message, - including the resourceName and libraryName (if present). Then, HttpServletRequest.SC_NOT_FOUND must - be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. In - all cases in this method, any streams, channels, sockets, or any other IO resources must be closed - before this method returns. - - true - - -
-
-
- true -
- JSF:JAVADOC:2493 - - void - - jakarta.faces.application.ResourceHandler.handleResourceRequest -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- when an I/O error occurs. - - true - - -
-
-
- true -
- JSF:JAVADOC:2494 - - boolean - - jakarta.faces.application.ResourceHandler.isResourceRendered -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Returns whether the resource as identified by given resource and library name has been - rendered. The default implementation must during the render response phase of the current view - return true when the resource has been marked as rendered via #markResourceRendered(FacesContext, - String, String). - - true - - -
-
-
- true -
- JSF:JAVADOC:2495 - - boolean - - jakarta.faces.application.ResourceHandler.isResourceRequest -
- ( - FacesContext - ) -
-
- Return true if the current request is a resource request. This method is called by - jakarta.faces.webapp.FacesServlet#service to determine if this request is a view request or a - resource request. - - true - - -
-
-
- true -
- JSF:JAVADOC:2496 - - boolean - - jakarta.faces.application.ResourceHandler.isResourceURL -
- ( - String - ) -
-
- Return true if the argument url contains the string given by the value of the constant - ResourceHandler#RESOURCE_IDENTIFIER, false otherwise. - - true - - -
-
-
- true -
- JSF:JAVADOC:2497 - - boolean - - jakarta.faces.application.ResourceHandler.libraryExists -
- ( - String - ) -
-
- Return true if the resource library named by the argument libraryName can be found. If - there is a localePrefix for this application, as defined in #LOCALE_PREFIX, first look for the - library with the prefix. If no such library is found, look for the library without the prefix. This - allows developers to avoid duplication of files. For example, consider the case where the developer - wants to have a resource library containing a localized image resource and a non-localized script - resource. By checking both locations for the existence of the library, along with other spec changes - in section 2.6.1.4 "Libraries of Localized and Versioned Resources" of the Jakarta Faces - Specification Document, this scenario is enabled. - - true - - -
-
-
- true -
- JSF:JAVADOC:2498 - - void - - jakarta.faces.application.ResourceHandler.markResourceRendered -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Mark the resource as identified by given resource and library name as rendered. The - default implementation must ensure that #isResourceRendered(FacesContext, String, String) will - return true when the resource has already been rendered during the render response phase of the - current view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2499 - - ResourceHandler - - jakarta.faces.application.ResourceHandler.ResourceHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2500 - - Resource - - jakarta.faces.application.ResourceHandlerWrapper.createResource -
- ( - String - ) -
-
- The default behavior of this method is to call ResourceHandler#createResource(String) - on the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2501 - - Resource - - jakarta.faces.application.ResourceHandlerWrapper.createResource -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call ResourceHandler#createResource(String, - String) on the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2502 - - Resource - - jakarta.faces.application.ResourceHandlerWrapper.createResource -
- ( - String - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call ResourceHandler#createResource(String, - String, String) on the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2503 - - Resource - - jakarta.faces.application.ResourceHandlerWrapper.createResourceFromId -
- ( - String - ) -
-
- The default behavior of this method is to call - ResourceHandler#createResourceFromId(String) on the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2504 - - ViewResource - - jakarta.faces.application.ResourceHandlerWrapper.createViewResource -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call ResourceHandler#createViewResource on - the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2505 - - String - - jakarta.faces.application.ResourceHandlerWrapper.getRendererTypeForResourceName -
- ( - String - ) -
-
- The default behavior of this method is to call - ResourceHandler#getRendererTypeForResourceName(String) on the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2506 - - Stream - - jakarta.faces.application.ResourceHandlerWrapper.getViewResources -
- ( - FacesContext - , -
- String - , -
- int - , -
- ResourceVisitOption[] - ) -
-
- The default behavior of this method is to call - ResourceHandler#getViewResources(FacesContext, String, int, ResourceVisitOption...) on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2507 - - Stream - - jakarta.faces.application.ResourceHandlerWrapper.getViewResources -
- ( - FacesContext - , -
- String - , -
- ResourceVisitOption[] - ) -
-
- The default behavior of this method is to call - ResourceHandler#getViewResources(FacesContext, String, ResourceVisitOption...) on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2508 - - ResourceHandler - - jakarta.faces.application.ResourceHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2509 - - void - - jakarta.faces.application.ResourceHandlerWrapper.handleResourceRequest -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ResourceHandler#handleResourceRequest(jakarta.faces.context.FacesContext) on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2510 - - void - - jakarta.faces.application.ResourceHandlerWrapper.handleResourceRequest -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2511 - - boolean - - jakarta.faces.application.ResourceHandlerWrapper.isResourceRendered -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call - ResourceHandler#isResourceRendered(FacesContext, String, String) on the wrapped ResourceHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2512 - - boolean - - jakarta.faces.application.ResourceHandlerWrapper.isResourceRequest -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ResourceHandler#isResourceRequest(jakarta.faces.context.FacesContext) on the wrapped ResourceHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2513 - - boolean - - jakarta.faces.application.ResourceHandlerWrapper.isResourceURL -
- ( - String - ) -
-
- The default behavior of this method is to call ResourceHandler#isResourceURL on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2514 - - boolean - - jakarta.faces.application.ResourceHandlerWrapper.libraryExists -
- ( - String - ) -
-
- The default behavior of this method is to call ResourceHandler#libraryExists(String) on - the wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2515 - - void - - jakarta.faces.application.ResourceHandlerWrapper.markResourceRendered -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call - ResourceHandler#markResourceRendered(FacesContext, String, String) on the wrapped ResourceHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2516 - - ResourceHandlerWrapper - - jakarta.faces.application.ResourceHandlerWrapper.ResourceHandlerWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2517 - - ResourceHandlerWrapper - - jakarta.faces.application.ResourceHandlerWrapper.ResourceHandlerWrapper -
- ( - ResourceHandler - ) -
-
- If this resource handler has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2518 - - ResourceVisitOption - - jakarta.faces.application.ResourceVisitOption.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2519 - - ResourceVisitOption[] - - jakarta.faces.application.ResourceVisitOption.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2520 - - String - - jakarta.faces.application.ResourceWrapper.getContentType -
-
-
- The default behavior of this method is to call Resource#getContentType() on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2521 - - InputStream - - jakarta.faces.application.ResourceWrapper.getInputStream -
-
-
- The default behavior of this method is to call Resource#getInputStream on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2522 - - InputStream - - jakarta.faces.application.ResourceWrapper.getInputStream -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2523 - - String - - jakarta.faces.application.ResourceWrapper.getLibraryName -
-
-
- The default behavior of this method is to call Resource#getLibraryName() on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2524 - - String - - jakarta.faces.application.ResourceWrapper.getRequestPath -
-
-
- The default behavior of this method is to call Resource#getRequestPath on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2525 - - String - - jakarta.faces.application.ResourceWrapper.getResourceName -
-
-
- The default behavior of this method is to call Resource#getResourceName() on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2526 - - Map - - jakarta.faces.application.ResourceWrapper.getResponseHeaders -
-
-
- The default behavior of this method is to call Resource#getResponseHeaders on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2527 - - URL - - jakarta.faces.application.ResourceWrapper.getURL -
-
-
- The default behavior of this method is to call Resource#getURL on the wrapped - ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2528 - - Resource - - jakarta.faces.application.ResourceWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2529 - - ResourceWrapper - - jakarta.faces.application.ResourceWrapper.ResourceWrapper -
- ( - Resource - ) -
-
- If this resource has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2530 - - ResourceWrapper - - jakarta.faces.application.ResourceWrapper.ResourceWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2531 - - void - - jakarta.faces.application.ResourceWrapper.setContentType -
- ( - String - ) -
-
- The default behavior of this method is to call Resource#setContentType(String) on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2532 - - void - - jakarta.faces.application.ResourceWrapper.setLibraryName -
- ( - String - ) -
-
- The default behavior of this method is to call Resource#setLibraryName(String) on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2533 - - void - - jakarta.faces.application.ResourceWrapper.setResourceName -
- ( - String - ) -
-
- The default behavior of this method is to call Resource#setResourceName(String) on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2534 - - boolean - - jakarta.faces.application.ResourceWrapper.userAgentNeedsUpdate -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call Resource#userAgentNeedsUpdate on the - wrapped ResourceHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2535 - - String - - jakarta.faces.application.StateManager.getViewState -
- ( - FacesContext - ) -
-
- Convenience method to return the view state as a String with no RenderKit specific - markup. This default implementation of this method will call - StateManagementStrategy#saveView(FacesContext) and passing the result to and returning the resulting - value from ResponseStateManager#getViewState(jakarta.faces.context.FacesContext, Object). - - true - - -
-
-
- true -
- JSF:JAVADOC:2536 - - boolean - - jakarta.faces.application.StateManager.isSavingStateInClient -
- ( - FacesContext - ) -
-
- Method to determine if the state is saved on the client. - - true - - -
-
-
- true -
- JSF:JAVADOC:2537 - - StateManager - - jakarta.faces.application.StateManager.StateManager -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2538 - - void - - jakarta.faces.application.StateManager.writeState -
- ( - FacesContext - , -
- Object - ) -
-
- Save the state represented in the specified state Object instance, in an implementation - dependent manner. This method will typically simply delegate the actual writing to the writeState() - method of the ResponseStateManager instance provided by the RenderKit being used to render this - view. This method assumes that the caller has positioned the ResponseWriter at the correct position - for the saved state to be written. - - true - - -
-
-
- true -
- JSF:JAVADOC:2539 - - void - - jakarta.faces.application.StateManager.writeState -
- ( - FacesContext - , -
- Object - ) - -
- throws - IOException -
-
-
- when an I/O error occurs. - - true - - -
-
-
- true -
- JSF:JAVADOC:2540 - - String - - jakarta.faces.application.StateManagerWrapper.getViewState -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - StateManager#getViewState(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2541 - - StateManager - - jakarta.faces.application.StateManagerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2542 - - boolean - - jakarta.faces.application.StateManagerWrapper.isSavingStateInClient -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - StateManager#isSavingStateInClient(jakarta.faces.context.FacesContext) on the wrapped StateManager - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2543 - - StateManagerWrapper - - jakarta.faces.application.StateManagerWrapper.StateManagerWrapper -
- ( - StateManager - ) -
-
- If this state manager has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2544 - - void - - jakarta.faces.application.StateManagerWrapper.writeState -
- ( - FacesContext - , -
- Object - ) -
-
- The default behavior of this method is to call - StateManager#writeState(jakarta.faces.context.FacesContext, java.lang.Object) on the wrapped - StateManager object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2545 - - void - - jakarta.faces.application.StateManagerWrapper.writeState -
- ( - FacesContext - , -
- Object - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2546 - - String - - jakarta.faces.application.ViewExpiredException.getMessage -
-
-
- Return the message for this exception prepended with the view identifier if the view - identifier is not null, otherwise, return the message. - - true - - -
-
-
- true -
- JSF:JAVADOC:2547 - - String - - jakarta.faces.application.ViewExpiredException.getViewId -
-
-
- Return the view identifier of this exception, or null if the view identifier is - nonexistent or unknown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2548 - - ViewExpiredException - - jakarta.faces.application.ViewExpiredException.ViewExpiredException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2549 - - ViewExpiredException - - jakarta.faces.application.ViewExpiredException.ViewExpiredException -
- ( - String - ) -
-
- Construct a new exception with the specified view identifier. - - true - - -
-
-
- true -
- JSF:JAVADOC:2550 - - ViewExpiredException - - jakarta.faces.application.ViewExpiredException.ViewExpiredException -
- ( - String - , -
- String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2551 - - ViewExpiredException - - jakarta.faces.application.ViewExpiredException.ViewExpiredException -
- ( - Throwable - , -
- String - ) -
-
- Construct a new exception with the specified root cause. The detail message will be set - to (cause == null ? null : cause.toString() - - true - - -
-
-
- true -
- JSF:JAVADOC:2552 - - ViewExpiredException - - jakarta.faces.application.ViewExpiredException.ViewExpiredException -
- ( - String - , -
- Throwable - , -
- String - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:2553 - - void - - jakarta.faces.application.ViewHandler.addProtectedView -
- ( - String - ) -
-
- Add the argument urlPattern to the thread safe Set of protected views for this - application. Compliant implementations make it so a subsequent call to - #getProtectedViewsUnmodifiable contains the argument. The runtime must support calling this method - at any time after application startup. The default implementation takes no action. - - true - - -
-
-
- true -
- JSF:JAVADOC:2554 - - String - - jakarta.faces.application.ViewHandler.calculateCharacterEncoding -
- ( - FacesContext - ) -
-
- Returns the correct character encoding to be used for this request. The following - algorithm is employed. Examine the Content-Type request header. If it has a charset parameter, - extract it and return that as the encoding. If no charset parameter was found, check for the - existence of a session by calling ExternalContext#getSession(boolean) passing false as the argument. - If that method returns true, get the session Map by calling ExternalContext#getSessionMap and look - for a value under the key given by the value of the symbolic constant - ViewHandler#CHARACTER_ENCODING_KEY. If present, return the value, converted to String. Otherwise, - return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2555 - - Locale - - jakarta.faces.application.ViewHandler.calculateLocale -
- ( - FacesContext - ) -
-
- Returns an appropriate Locale to use for this and subsequent requests for the current - client. - - true - - -
-
-
- true -
- JSF:JAVADOC:2556 - - String - - jakarta.faces.application.ViewHandler.calculateRenderKitId -
- ( - FacesContext - ) -
-
- Return an appropriate renderKitId for this and subsequent requests from the current - client. It is an error for this method to return null. The default return value is - jakarta.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT. - - true - - -
-
-
- true -
- JSF:JAVADOC:2557 - - UIViewRoot - - jakarta.faces.application.ViewHandler.createView -
- ( - FacesContext - , -
- String - ) -
-
- Create and return a new UIViewRoot instance initialized with information from the - argument FacesContext and viewId. Locate the ViewDeclarationLanguage implementation for the VDL used - in the view. The argument viewId must be converted to a physical viewId that can refer to an actual - resource suitable for use by the ViewDeclarationLanguage ViewDeclarationLanguage#createView, which - must be called by this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2558 - - String - - jakarta.faces.application.ViewHandler.deriveLogicalViewId -
- ( - FacesContext - , -
- String - ) -
-
- Derive and return the viewId from the current request, or the argument input by - following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta - Faces Specification Document. Note that unlike deriveViewId(), this method does not require that a - physical view be present. This method should work correctly when the FacesServlet is invoked via - either a path mapping, extension mapping or an exact match (mapping) as defined by Servlet.12.2. - Note that path mapping is also commonly known as prefix mapping (e.g. "/faces/*") and extension - mapping as suffix mapping (e.g. "*.xhtml"). An exact match is possible where there's a servlet - mapping with an exact URL pattern such as "/foo". The default implementation of this method simply - returns requestViewId unchanged. - - true - - -
-
-
- true -
- JSF:JAVADOC:2559 - - String - - jakarta.faces.application.ViewHandler.deriveViewId -
- ( - FacesContext - , -
- String - ) -
-
- Derive and return the viewId from the current request, or the argument input by - following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta - Faces Specification Document. This method should work correctly when the FacesServlet is invoked via - either a path mapping, extension mapping or an exact match (mapping) as defined by Servlet.12.2. - Note that path mapping is also commonly known as prefix mapping (e.g. "/faces/*") and extension - mapping as suffix mapping (e.g. "*.xhtml"). An exact match is possible where there's a servlet - mapping with an exact URL pattern such as "/foo". The default implementation of this method simply - returns requestViewId unchanged. - - true - - -
-
-
- true -
- JSF:JAVADOC:2560 - - String - - jakarta.faces.application.ViewHandler.getActionURL -
- ( - FacesContext - , -
- String - ) -
-
- If the value returned from this method is used as the file argument to the - four-argument constructor for java.net.URL (assuming appropriate values are used for the first three - arguments), then a client making a request to the toExternalForm() of that URL will select the - argument viewId for traversing the Jakarta Faces lifecycle. Please see section 7.6.2 "Default - ViewHandler Implementation" of the Jakarta Faces Specification Document for the complete - specification, especially for details related to view protection using the - jakarta.faces.render.ResponseStateManager#NON_POSTBACK_VIEW_TOKEN_PARAM and the behavior when the - current request is to a URL for which the FacesServlet has an exact mapping as defined by - Servlet.12.2. - - true - - -
-
-
- true -
- JSF:JAVADOC:2561 - - String - - jakarta.faces.application.ViewHandler.getBookmarkableURL -
- ( - FacesContext - , -
- String - , -
- Map - , -
- boolean - ) -
-
- Return a Jakarta Faces action URL derived from the viewId argument that is suitable to - be used as the target of a link in a Jakarta Faces response. Compliant implementations must - implement this method as specified in section 7.6.2 "Default ViewHandler Implementation" of the - Jakarta Faces Specification Document. The default implementation simply calls through to - #getActionURL, passing the arguments context and viewId. - - true - - -
-
-
- true -
- JSF:JAVADOC:2562 - - Set - - jakarta.faces.application.ViewHandler.getProtectedViewsUnmodifiable -
-
-
- Return an unmodifiable Set of the protected views currently known to this ViewHandler - instance. Compliant implementations must return a Set that is the concatenation of the contents of - all the elements within all the in all of the application configuration resources in the current - application. The runtime must support calling this method at any time after application startup. The - default implementation returns an unmodifiable empty Set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2563 - - String - - jakarta.faces.application.ViewHandler.getRedirectURL -
- ( - FacesContext - , -
- String - , -
- Map - , -
- boolean - ) -
-
- Return a Jakarta Faces action URL derived from the viewId argument that is suitable to - be used by the NavigationHandler to issue a redirect request to the URL using a NonFaces request. - Compliant implementations must implement this method as specified in section 7.6.2 "Default - ViewHandler Implementation" of the Jakarta Faces Specification Document. The default implementation - simply calls through to #getActionURL, passing the arguments context and viewId. - - true - - -
-
-
- true -
- JSF:JAVADOC:2564 - - String - - jakarta.faces.application.ViewHandler.getResourceURL -
- ( - FacesContext - , -
- String - ) -
-
- If the value returned from this method is used as the file argument to the - four-argument constructor for java.net.URL (assuming appropriate values are used for the first three - arguments), then a client making a request to the toExternalForm() of that URL will select the - argument path for direct rendering. If the specified path starts with a slash, it must be treated as - context relative; otherwise, it must be treated as relative to the action URL of the current view. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2565 - - ViewDeclarationLanguage - - jakarta.faces.application.ViewHandler.getViewDeclarationLanguage -
- ( - FacesContext - , -
- String - ) -
-
- Return the ViewDeclarationLanguage instance used for this ViewHandler instance. The - default implementation must use - jakarta.faces.view.ViewDeclarationLanguageFactory#getViewDeclarationLanguage to obtain the - appropriate ViewDeclarationLanguage implementation for the argument viewId. Any exceptions thrown as - a result of invoking that method must not be swallowed. The default implementation of this method - returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2566 - - Stream - - jakarta.faces.application.ViewHandler.getViews -
- ( - FacesContext - , -
- String - , -
- int - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view trees of every active - ViewDeclarationLanguage rooted at a given initial path. The view tree of every - ViewDeclarationLanguage is individually traversed breadth-first as per the contract of - ViewDeclarationLanguage#getViews(FacesContext, String, int, ViewVisitOption...). The elements in the - stream are logical view ids. The maxDepth parameter is the maximum depth of directory levels to - visit for each ViewDeclarationLanguage beyond the initial path, which is always visited. The value - is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and initial path - /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth 2 and - /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only the - initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all - levels should be visited. In case more than one active ViewDeclarationLanguage is present, the order - in which view ids from each ViewDeclarationLanguage appear in the stream is undetermined, except for - the guarantee that every individual ViewDeclarationLanguage is traversed breadth-first. - - true - - -
-
-
- true -
- JSF:JAVADOC:2567 - - Stream - - jakarta.faces.application.ViewHandler.getViews -
- ( - FacesContext - , -
- String - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view trees of every active - ViewDeclarationLanguage rooted at a given initial path. The view tree of every - ViewDeclarationLanguage is individually traversed breadth-first as per the contract of - ViewDeclarationLanguage#getViews(FacesContext, String, int, ViewVisitOption...). The elements in the - stream are logical view ids. This method works as if invoking it were equivalent to evaluating the - expression: getViews(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all - levels of the view tree. In case more than one active ViewDeclarationLanguage is present, the order - in which view ids from each ViewDeclarationLanguage appear in the stream is undetermined, except for - the guarantee that every individual ViewDeclarationLanguage is traversed breadth-first. - - true - - -
-
-
- true -
- JSF:JAVADOC:2568 - - String - - jakarta.faces.application.ViewHandler.getWebsocketURL -
- ( - FacesContext - , -
- String - ) -
-
- If the value returned from this method is used as the file argument to the - four-argument constructor for java.net.URL (assuming appropriate values are used for the first three - arguments), then a client making a push handshake request to the toExternalForm() of that URL will - select the argument channel for connecting the websocket push channel in the current view. It must - match the PushContext#URI_PREFIX of the endpoint. - - true - - -
-
-
- true -
- JSF:JAVADOC:2569 - - void - - jakarta.faces.application.ViewHandler.initView -
- ( - FacesContext - ) -
-
- Initialize the view for the request processing lifecycle. This method must be called at - the beginning of the Restore View Phase of the Request Processing Lifecycle. It is responsible for - performing any per-request initialization necessary to the operation of the lifycecle. The default - implementation must perform the following actions. If ExternalContext#getRequestCharacterEncoding - returns null, call #calculateCharacterEncoding and pass the result, if non-null, into the - ExternalContext#setRequestCharacterEncoding method. If ExternalContext#getRequestCharacterEncoding - returns non-null take no action. - - true - - -
-
-
- true -
- JSF:JAVADOC:2570 - - void - - jakarta.faces.application.ViewHandler.initView -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- if a problem occurs setting the encoding, such as the UnsupportedEncodingException - thrown by the underlying Jakarta Servlet or Portlet technology when the encoding is not supported. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2571 - - boolean - - jakarta.faces.application.ViewHandler.removeProtectedView -
- ( - String - ) -
-
- Remove the argument urlPattern from the thread safe Set of protected views for this - application, if present in the Set. If the argument urlPattern is not present in the Set, this - method has no effect. Compliant implementations must make it so a subsequent call to - #getProtectedViewsUnmodifiable does not contain the argument. The runtime must support calling this - method at any time after application startup. Returns true if this Set contained the argument. The - default implementation takes no action and returns false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2572 - - void - - jakarta.faces.application.ViewHandler.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Perform whatever actions are required to render the response view to the response - object associated with the current FacesContext. Otherwise, the default implementation must obtain a - reference to the ViewDeclarationLanguage for the viewId of the argument viewToRender and call its - ViewDeclarationLanguage#renderView method, returning the result and not swallowing any exceptions - thrown by that method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2573 - - void - - jakarta.faces.application.ViewHandler.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:2574 - - void - - jakarta.faces.application.ViewHandler.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - FacesException -
-
-
- if a Jakarta Servlet error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:2575 - - UIViewRoot - - jakarta.faces.application.ViewHandler.restoreView -
- ( - FacesContext - , -
- String - ) -
-
- Perform whatever actions are required to restore the view associated with the specified - FacesContext and viewId. It may delegate to the restoreView of the associated StateManager to do the - actual work of restoring the view. If there is no available state for the specified viewId, return - null. Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage - for this viewId and call its ViewDeclarationLanguage#restoreView method, returning the result and - not swallowing any exceptions thrown by that method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2576 - - ViewHandler - - jakarta.faces.application.ViewHandler.ViewHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2577 - - void - - jakarta.faces.application.ViewHandler.writeState -
- ( - FacesContext - ) -
-
- Take any appropriate action to either immediately write out the current state - information (by calling StateManager#writeState, or noting where state information should later be - written. This method must do nothing if the current request is an Ajax request. When responding to - Ajax requests, the state is obtained by calling StateManager#getViewState and then written into the - Ajax response during final encoding - (jakarta.faces.context.PartialViewContext#processPartial(jakarta.faces.event.PhaseId)) . - - true - - -
-
-
- true -
- JSF:JAVADOC:2578 - - void - - jakarta.faces.application.ViewHandler.writeState -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:2579 - - void - - jakarta.faces.application.ViewHandlerWrapper.addProtectedView -
- ( - String - ) -
-
- The default behavior of this method is to call ViewHandler#addProtectedView on the - wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2580 - - String - - jakarta.faces.application.ViewHandlerWrapper.calculateCharacterEncoding -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext) on the wrapped - ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2581 - - Locale - - jakarta.faces.application.ViewHandlerWrapper.calculateLocale -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2582 - - String - - jakarta.faces.application.ViewHandlerWrapper.calculateRenderKitId -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2583 - - UIViewRoot - - jakarta.faces.application.ViewHandlerWrapper.createView -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#createView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2584 - - String - - jakarta.faces.application.ViewHandlerWrapper.deriveLogicalViewId -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String) on the wrapped - ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2585 - - String - - jakarta.faces.application.ViewHandlerWrapper.deriveViewId -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2586 - - String - - jakarta.faces.application.ViewHandlerWrapper.getActionURL -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2587 - - String - - jakarta.faces.application.ViewHandlerWrapper.getBookmarkableURL -
- ( - FacesContext - , -
- String - , -
- Map - , -
- boolean - ) -
-
- The default behavior of this method is to call - ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) - on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2588 - - Set - - jakarta.faces.application.ViewHandlerWrapper.getProtectedViewsUnmodifiable -
-
-
- The default behavior of this method is to call - ViewHandler#getProtectedViewsUnmodifiable on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2589 - - String - - jakarta.faces.application.ViewHandlerWrapper.getRedirectURL -
- ( - FacesContext - , -
- String - , -
- Map - , -
- boolean - ) -
-
- The default behavior of this method is to call - ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on - the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2590 - - String - - jakarta.faces.application.ViewHandlerWrapper.getResourceURL -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2591 - - ViewDeclarationLanguage - - jakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call ViewHandler#getViewDeclarationLanguage - on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2592 - - Stream - - jakarta.faces.application.ViewHandlerWrapper.getViews -
- ( - FacesContext - , -
- String - , -
- ViewVisitOption[] - ) -
-
- The default behavior of this method is to call ViewHandler#getViews(FacesContext, - String, ViewVisitOption...) on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2593 - - Stream - - jakarta.faces.application.ViewHandlerWrapper.getViews -
- ( - FacesContext - , -
- String - , -
- int - , -
- ViewVisitOption[] - ) -
-
- The default behavior of this method is to call ViewHandler#getViews(FacesContext, - String, int, ViewVisitOption...) on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2594 - - String - - jakarta.faces.application.ViewHandlerWrapper.getWebsocketURL -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#getWebsocketURL(FacesContext, String) on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2595 - - ViewHandler - - jakarta.faces.application.ViewHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2596 - - void - - jakarta.faces.application.ViewHandlerWrapper.initView -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call ViewHandler#initView on the wrapped - ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2597 - - void - - jakarta.faces.application.ViewHandlerWrapper.initView -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2598 - - boolean - - jakarta.faces.application.ViewHandlerWrapper.removeProtectedView -
- ( - String - ) -
-
- The default behavior of this method is to call ViewHandler#removeProtectedView on the - wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2599 - - void - - jakarta.faces.application.ViewHandlerWrapper.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- The default behavior of this method is to call - ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot) on - the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2600 - - void - - jakarta.faces.application.ViewHandlerWrapper.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2601 - - void - - jakarta.faces.application.ViewHandlerWrapper.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2602 - - UIViewRoot - - jakarta.faces.application.ViewHandlerWrapper.restoreView -
- ( - FacesContext - , -
- String - ) -
-
- The default behavior of this method is to call - ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2603 - - ViewHandlerWrapper - - jakarta.faces.application.ViewHandlerWrapper.ViewHandlerWrapper -
- ( - ViewHandler - ) -
-
- If this view handler has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:2604 - - ViewHandlerWrapper - - jakarta.faces.application.ViewHandlerWrapper.ViewHandlerWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:2605 - - void - - jakarta.faces.application.ViewHandlerWrapper.writeState -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call - ViewHandler#writeState(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2606 - - void - - jakarta.faces.application.ViewHandlerWrapper.writeState -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2607 - - URL - - jakarta.faces.application.ViewResource.getURL -
-
-
- Return an actual URL instance that refers to this resource instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2608 - - ViewResource - - jakarta.faces.application.ViewResource.ViewResource -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2609 - - ViewVisitOption - - jakarta.faces.application.ViewVisitOption.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2610 - - ViewVisitOption[] - - jakarta.faces.application.ViewVisitOption.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2611 - - void - - jakarta.faces.component.ActionSource.addActionListener -
- ( - ActionListener - ) -
-
- Add a new ActionListener to the set of listeners interested in being notified when - ActionEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2612 - - ActionListener[] - - jakarta.faces.component.ActionSource.getActionListeners -
-
-
- Return the set of registered ActionListeners for this ActionSource instance. If there - are no registered listeners, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2613 - - boolean - - jakarta.faces.component.ActionSource.isImmediate -
-
-
- Return a flag indicating that the default ActionListener provided by the Jakarta Faces - implementation should be executed immediately (that is, during Apply Request Values phase of the - request processing lifecycle), rather than waiting until the Invoke Application phase. The default - value for this property must be false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2614 - - void - - jakarta.faces.component.ActionSource.removeActionListener -
- ( - ActionListener - ) -
-
- Remove an existing ActionListener (if any) from the set of listeners interested in - being notified when ActionEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2615 - - void - - jakarta.faces.component.ActionSource.setImmediate -
- ( - boolean - ) -
-
- Set the "immediate execution" flag for this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2616 - - MethodExpression - - jakarta.faces.component.ActionSource2.getActionExpression -
-
-
- Return the MethodExpression pointing at the application action to be invoked, if this - UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of - the request processing lifecycle, depending on the value of the immediate property. - - true - - -
-
-
- true -
- JSF:JAVADOC:2617 - - void - - jakarta.faces.component.ActionSource2.setActionExpression -
- ( - MethodExpression - ) -
-
- Set the MethodExpression pointing at the appication action to be invoked, if this - UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of - the request processing lifecycle, depending on the value of the immediate property. Any method - referenced by such an expression must be public, with a return type of String, and accept no - parameters. - - true - - -
-
-
- true -
- JSF:JAVADOC:2618 - - void - - jakarta.faces.component.ContextCallback.invokeContextCallback -
- ( - FacesContext - , -
- UIComponent - ) -
-
- This method will be called by an implementation of UIComponent#invokeOnComponent and - must be passed the component with the clientId given as an argument to invokeOnComponent. At the - point in time when this method is called, the argument target is guaranteed to be in the proper - state with respect to its ancestors in the View. - - true - - -
-
-
- true -
- JSF:JAVADOC:2619 - - String - - jakarta.faces.component.Doctype.getPublic -
-
-
- Returns the public identifier of the document, or null if there is none. For example, - "-//W3C//DTD XHTML 1.1//EN". - - true - - -
-
-
- true -
- JSF:JAVADOC:2620 - - String - - jakarta.faces.component.Doctype.getRootElement -
-
-
- Returns the name of the first element in the document, never null. For example, "html". - - - true - - -
-
-
- true -
- JSF:JAVADOC:2621 - - String - - jakarta.faces.component.Doctype.getSystem -
-
-
- Returns the system identifier of the document, or null if there is none. For example, - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd". - - true - - -
-
-
- true -
- JSF:JAVADOC:2622 - - void - - jakarta.faces.component.EditableValueHolder.addValidator -
- ( - Validator - ) -
-
- Add a Validator instance to the set associated with this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2623 - - void - - jakarta.faces.component.EditableValueHolder.addValueChangeListener -
- ( - ValueChangeListener - ) -
-
- Add a new ValueChangeListener to the set of listeners interested in being notified when - ValueChangeEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2624 - - Object - - jakarta.faces.component.EditableValueHolder.getSubmittedValue -
-
-
- Return the submittedValue value of this component. This method should only be used by - the encodeBegin() and/or encodeEnd() methods of this component, or its corresponding Renderer. The - action taken based on whether the value is null, empty, or non-null is determined based on the value - of the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - - true - - -
-
-
- true -
- JSF:JAVADOC:2625 - - Validator[] - - jakarta.faces.component.EditableValueHolder.getValidators -
-
-
- Return the set of registered Validators for this component instance. If there are no - registered validators, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2626 - - ValueChangeListener[] - - jakarta.faces.component.EditableValueHolder.getValueChangeListeners -
-
-
- Return the set of registered ValueChangeListeners for this component instance. If there - are no registered listeners, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2627 - - boolean - - jakarta.faces.component.EditableValueHolder.isImmediate -
-
-
- Return the "immediate" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2628 - - boolean - - jakarta.faces.component.EditableValueHolder.isLocalValueSet -
-
-
- Return the "local value set" state for this component. Calls to setValue() - automatically reset this property to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2629 - - boolean - - jakarta.faces.component.EditableValueHolder.isRequired -
-
-
- Return the "required field" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2630 - - boolean - - jakarta.faces.component.EditableValueHolder.isValid -
-
-
- Return a flag indicating whether the local value of this component is valid (no - conversion error has occurred). - - true - - -
-
-
- true -
- JSF:JAVADOC:2631 - - void - - jakarta.faces.component.EditableValueHolder.removeValidator -
- ( - Validator - ) -
-
- Remove a Validator instance from the set associated with this component, if it was - previously associated. Otherwise, do nothing. - - true - - -
-
-
- true -
- JSF:JAVADOC:2632 - - void - - jakarta.faces.component.EditableValueHolder.removeValueChangeListener -
- ( - ValueChangeListener - ) -
-
- Remove an existing ValueChangeListener (if any) from the set of listeners interested in - being notified when ValueChangeEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2633 - - void - - jakarta.faces.component.EditableValueHolder.resetValue -
-
-
- Convenience method to reset this component's value to the un-initialized state. - - true - - -
-
-
- true -
- JSF:JAVADOC:2634 - - void - - jakarta.faces.component.EditableValueHolder.setImmediate -
- ( - boolean - ) -
-
- Set the "immediate" state for this component. When set to true, the component's value - will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents - will be delivered in that phase as well. The default value for this property must be false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2635 - - void - - jakarta.faces.component.EditableValueHolder.setLocalValueSet -
- ( - boolean - ) -
-
- Sets the "local value set" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2636 - - void - - jakarta.faces.component.EditableValueHolder.setRequired -
- ( - boolean - ) -
-
- Set the "required field" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2637 - - void - - jakarta.faces.component.EditableValueHolder.setSubmittedValue -
- ( - Object - ) -
-
- Set the submittedValue value of this component. This method should only be used by the - decode() and validate() method of this component, or its corresponding Renderer. The action taken - based on whether the value is null, empty, or non-null is determined based on the value of the - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - - true - - -
-
-
- true -
- JSF:JAVADOC:2638 - - void - - jakarta.faces.component.EditableValueHolder.setValid -
- ( - boolean - ) -
-
- Set a flag indicating whether the local value of this component is valid (no conversion - error has occurred). - - true - - -
-
-
- true -
- JSF:JAVADOC:2639 - - boolean - - jakarta.faces.component.FacesComponent.createTag -
-
-
- If the value of this attribute is true, the runtime must create a Facelet tag handler, - that extends from jakarta.faces.view.facelets.ComponentHandler, suitable for use in pages under the - tag library with namespace given by the value of the #namespace attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:2640 - - String - - jakarta.faces.component.FacesComponent.namespace -
-
-
- If the value of the #createTag attribute is true, the value of this attribute is taken - to be the tag library namespace into which this component is placed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2641 - - String - - jakarta.faces.component.FacesComponent.tagName -
-
-
- If the value of the #createTag attribute is true, the runtime must use this value as - the tag name for including an instance of the component annotated with this annotation in a view. If - this attribute is not specified on a usage of this annotation, the simple name of the class on which - this annotation is declared, with the first character lowercased, is taken to be the value. - - true - - -
-
-
- true -
- JSF:JAVADOC:2642 - - String - - jakarta.faces.component.FacesComponent.value -
-
-
- The value of this annotation attribute is taken to be the component-type with which - instances of this class of component can be instantiated by calling - jakarta.faces.application.Application#createComponent(java.lang.String). If no value is specified, - or the value is null, the value is taken to be the return of calling getSimpleName on the class to - which this annotation is attached and lowercasing the first character. If more than one component - with this derived name is found, the results are undefined. - - true - - -
-
-
- true -
- JSF:JAVADOC:2643 - - void - - jakarta.faces.component.PartialStateHolder.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:2644 - - boolean - - jakarta.faces.component.PartialStateHolder.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:2645 - - void - - jakarta.faces.component.PartialStateHolder.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:2646 - - void - - jakarta.faces.component.StateHelper.add -
- ( - Serializable - , -
- Object - ) -
-
- Store the specified value in a List that is internal to the StateHelper. It's important - to note for delta tracking that any modifications to the internal List be made through this method - or StateHelper#remove(java.io.Serializable, Object). - - true - - -
-
-
- true -
- JSF:JAVADOC:2647 - - Object - - jakarta.faces.component.StateHelper.eval -
- ( - Serializable - ) -
-
- Attempts to find a value associated with the specified key, using the value expression - collection from the component if no such value is found. - - true - - -
-
-
- true -
- JSF:JAVADOC:2648 - - Object - - jakarta.faces.component.StateHelper.eval -
- ( - Serializable - , -
- Object - ) -
-
- Performs the same logic as #eval(java.io.Serializable) } but if no value is found, this - will return the specified defaultValue - - true - - -
-
-
- true -
- JSF:JAVADOC:2649 - - Object - - jakarta.faces.component.StateHelper.eval -
- ( - Serializable - , -
- Supplier - ) -
-
- Performs the same logic as #eval(java.io.Serializable) } but if no value is found, this - will return the return-value of the defaultValueSupplier - - true - - -
-
-
- true -
- JSF:JAVADOC:2650 - - Object - - jakarta.faces.component.StateHelper.get -
- ( - Serializable - ) -
-
- Return the value currently associated with the specified key if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:2651 - - Object - - jakarta.faces.component.StateHelper.put -
- ( - Serializable - , -
- Object - ) -
-
- Return the previously stored value and store the specified key/value pair. This is - intended to store data that would otherwise reside in an instance variable on the component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2652 - - Object - - jakarta.faces.component.StateHelper.put -
- ( - Serializable - , -
- String - , -
- Object - ) -
-
- Store the specified mapKey/value in a Map that is internal to the helper, and return - the previously stored value. The Map will then be associated with key. It's important to note for - delta tracking that any modifications to the internal Map be made through this method or - StateHelper#remove(java.io.Serializable, Object). - - true - - -
-
-
- true -
- JSF:JAVADOC:2653 - - Object - - jakarta.faces.component.StateHelper.remove -
- ( - Serializable - ) -
-
- Remove the key/value pair from the helper, returning the value previously stored under - this key. - - true - - -
-
-
- true -
- JSF:JAVADOC:2654 - - Object - - jakarta.faces.component.StateHelper.remove -
- ( - Serializable - , -
- Object - ) -
-
- Remove a value from the inner data structure. Look in the inner data structure for the - value at the given key. If the value is a Map, remove and return the value under the key given by - the valueOrKey argument. If the value is a Collection, simply remove the value given by the argument - valueOrKey and return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2655 - - boolean - - jakarta.faces.component.StateHolder.isTransient -
-
-
- If true, the Object implementing this interface must not participate in state saving or - restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:2656 - - void - - jakarta.faces.component.StateHolder.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Perform any processing required to restore the state from the entries in the state - Object. If the class that implements this interface has references to instances that also implement - StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the - #restoreState method on all those instances as well. If the state argument is null, take no action - and return. - - true - - -
-
-
- true -
- JSF:JAVADOC:2657 - - Object - - jakarta.faces.component.StateHolder.saveState -
- ( - FacesContext - ) -
-
- Gets the state of the instance as a Serializable Object. If the class that implements - this interface has references to instances that implement StateHolder (such as a UIComponent with - event handlers, validators, etc.) this method must call the #saveState method on all those instances - as well. This method must not save the state of children and facets. That is done via the - jakarta.faces.application.StateManager This method must not alter the state of the implementing - object. In other words, after executing this code: Object state = component.saveState(facesContext); - component should be the same as before executing it. The return from this method must be - Serializable - - true - - -
-
-
- true -
- JSF:JAVADOC:2658 - - void - - jakarta.faces.component.StateHolder.setTransient -
- ( - boolean - ) -
-
- Denotes whether or not the Object implementing this interface must or must not - participate in state saving or restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:2659 - - Object - - jakarta.faces.component.TransientStateHelper.getTransient -
- ( - Object - ) -
-
- Return the value currently associated with the specified key if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:2660 - - Object - - jakarta.faces.component.TransientStateHelper.getTransient -
- ( - Object - , -
- Object - ) -
-
- Performs the same logic as #getTransient } but if no value is found, this will return - the specified defaultValue - - true - - -
-
-
- true -
- JSF:JAVADOC:2661 - - Object - - jakarta.faces.component.TransientStateHelper.putTransient -
- ( - Object - , -
- Object - ) -
-
- Return the previously stored value and store the specified key/value pair. This is - intended to store data that would otherwise reside in an instance variable on the component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2662 - - void - - jakarta.faces.component.TransientStateHolder.restoreTransientState -
- ( - FacesContext - , -
- Object - ) -
-
- Restore the "transient state" using the object passed as state. If the state argument - is null clear any previous transient state if any and return. - - true - - -
-
-
- true -
- JSF:JAVADOC:2663 - - Object - - jakarta.faces.component.TransientStateHolder.saveTransientState -
- ( - FacesContext - ) -
-
- Return the object containing related "transient states". that could be used later to - restore the "transient state". - - true - - -
-
-
- true -
- JSF:JAVADOC:2664 - - String - - jakarta.faces.component.UIColumn.getFamily -
-
-
- Get the component family. - - true - - -
-
-
- true -
- JSF:JAVADOC:2665 - - UIComponent - - jakarta.faces.component.UIColumn.getFooter -
-
-
- Return the footer facet of the column (if any). A convenience method for - getFacet("footer"). - - true - - -
-
-
- true -
- JSF:JAVADOC:2666 - - UIComponent - - jakarta.faces.component.UIColumn.getHeader -
-
-
- Return the header facet of the column (if any). A convenience method for - getFacet("header"). - - true - - -
-
-
- true -
- JSF:JAVADOC:2667 - - void - - jakarta.faces.component.UIColumn.setFooter -
- ( - UIComponent - ) -
-
- Set the footer facet of the column. A convenience method for getFacets().put("footer", - footer). - - true - - -
-
-
- true -
- JSF:JAVADOC:2668 - - void - - jakarta.faces.component.UIColumn.setHeader -
- ( - UIComponent - ) -
-
- Set the header facet of the column. A convenience method for getFacets().put("header", - header). - - true - - -
-
-
- true -
- JSF:JAVADOC:2669 - - UIColumn - - jakarta.faces.component.UIColumn.UIColumn -
-
-
- Create a new UIColumn instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2670 - - void - - jakarta.faces.component.UICommand.broadcast -
- ( - FacesEvent - ) -
-
- In addition to to the default UIComponent#broadcast processing, pass the ActionEvent - being broadcast to the method referenced by actionListener (if any), and to the default - ActionListener registered on the jakarta.faces.application.Application. - - true - - -
-
-
- true -
- JSF:JAVADOC:2671 - - void - - jakarta.faces.component.UICommand.broadcast -
- ( - FacesEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:2672 - - MethodExpression - - jakarta.faces.component.UICommand.getActionExpression -
-
-
- Return the MethodExpression pointing at the application action to be invoked, if this - UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of - the request processing lifecycle, depending on the value of the immediate property. - - true - - -
-
-
- true -
- JSF:JAVADOC:2673 - - ActionListener[] - - jakarta.faces.component.UICommand.getActionListeners -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2674 - - String - - jakarta.faces.component.UICommand.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2675 - - Object - - jakarta.faces.component.UICommand.getValue -
-
-
- Returns the value property of the UICommand. This is most often rendered as a label. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2676 - - boolean - - jakarta.faces.component.UICommand.isImmediate -
-
-
- The immediate flag. - - true - - -
-
-
- true -
- JSF:JAVADOC:2677 - - void - - jakarta.faces.component.UICommand.queueEvent -
- ( - FacesEvent - ) -
-
- Intercept queueEvent and take the following action. If the event is an ActionEvent, - obtain the UIComponent instance from the event. If the component is an ActionSource obtain the value - of its "immediate" property. If it is true, mark the phaseId for the event to be - PhaseId.APPLY_REQUEST_VALUES otherwise, mark the phaseId to be PhaseId.INVOKE_APPLICATION. The event - must be passed on to super.queueEvent() before returning from this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2678 - - void - - jakarta.faces.component.UICommand.setActionExpression -
- ( - MethodExpression - ) -
-
- Set the MethodExpression pointing at the appication action to be invoked, if this - UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of - the request processing lifecycle, depending on the value of the immediate property. Any method - referenced by such an expression must be public, with a return type of String, and accept no - parameters. - - true - - -
-
-
- true -
- JSF:JAVADOC:2679 - - void - - jakarta.faces.component.UICommand.setImmediate -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2680 - - void - - jakarta.faces.component.UICommand.setValue -
- ( - Object - ) -
-
- Sets the value property of the UICommand. This is most often rendered as a label. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2681 - - void - - jakarta.faces.component.UIComponent.broadcast -
- ( - FacesEvent - ) -
-
- Broadcast the specified FacesEvent to all registered event listeners who have expressed - an interest in events of this type. Listeners are called in the order in which they were added. If - the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the - source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the - jakarta.faces.component.behavior.Behavior for the event. Call - jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the - Behavior instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2682 - - void - - jakarta.faces.component.UIComponent.broadcast -
- ( - FacesEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:2683 - - void - - jakarta.faces.component.UIComponent.clearInitialState -
-
-
- An implementation of PartialStateHolder#clearInitialState, this method is called by the - runtime to tell the instance to stop tracking state changes. - - true - - -
-
-
- true -
- JSF:JAVADOC:2684 - - void - - jakarta.faces.component.UIComponent.encodeAll -
- ( - FacesContext - ) -
-
- If this component returns true from #isRendered, take the following action. Render this - component and all its children that return true from isRendered(), regardless of the value of the - #getRendersChildren flag. - - true - - -
-
-
- true -
- JSF:JAVADOC:2685 - - void - - jakarta.faces.component.UIComponent.encodeAll -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:2686 - - Map - - jakarta.faces.component.UIComponent.getAttributes -
-
-
- Return a mutable Map representing the attributes (and properties, see below) associated - wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation - must support all of the standard and optional Map methods, plus support the following additional - requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt - to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a - String must throw a ClassCastException. If the attribute name specified as a key matches a property - of this UIComponent's implementation class, the following methods will have special behavior: - containsKey - Return false. get() - If the property is readable, call the getter method and return - the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise - throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set - the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the - property is not writeable, or an attempt is made to set a property of primitive type to null, throw - IllegalArgumentException. remove - Throw IllegalArgumentException. - - true - - -
-
-
- true -
- JSF:JAVADOC:2687 - - List - - jakarta.faces.component.UIComponent.getChildren -
-
-
- Return a mutable List representing the child UIComponents associated with this - component. The returned implementation must support all of the standard and optional List methods, - plus support the following additional requirements: The List implementation must implement the - java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any - attempt to add an object that does not implement UIComponent must throw a ClassCastException. - Whenever a new child component is added, the parent property of the child must be set to this - component instance. If the parent property of the child was already non-null, the child must first - be removed from its previous parent (where it may have been either a child or a facet). Whenever an - existing child component is removed, the parent property of the child must be set to null. After the - child component has been added to the view, jakarta.faces.application.Application#publishEvent must - be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly - added component as the second argument if any the following cases are true. - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. - jakarta.faces.context.FacesContext#isPostback returns false and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than - jakarta.faces.event.PhaseId#RESTORE_VIEW - - true - - -
-
-
- true -
- JSF:JAVADOC:2688 - - String - - jakarta.faces.component.UIComponent.getClientId -
-
-
- Enable Jakarta Expression Language to access the clientId of a component. This is - particularly useful in combination with the component and cc implicit objects. A default - implementation is provided that simply calls FacesContext#getCurrentInstance and then calls through - to #getClientId(FacesContext). - - true - - -
-
-
- true -
- JSF:JAVADOC:2689 - - UIComponent - - jakarta.faces.component.UIComponent.getCompositeComponentParent -
- ( - UIComponent - ) -
-
- Finds the nearest composite component parent of the specified component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2690 - - String - - jakarta.faces.component.UIComponent.getContainerClientId -
- ( - FacesContext - ) -
-
- Allow components that implement NamingContainer to selectively disable prepending their - clientId to their descendent's clientIds by breaking the prepending logic into a separately callable - method. See #getClientId for usage. By default, this method will call through to #getClientId and - return the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:2691 - - UIComponent - - jakarta.faces.component.UIComponent.getCurrentComponent -
- ( - FacesContext - ) -
-
- Return the UIComponent instance that is currently processing. This is equivalent to - evaluating the Jakarta Expression Language expression "#{component}" and doing a getValue operation - on the resultant ValueExpression. This method must return null if there is no currently processing - UIComponent - - true - - -
-
-
- true -
- JSF:JAVADOC:2692 - - UIComponent - - jakarta.faces.component.UIComponent.getCurrentCompositeComponent -
- ( - FacesContext - ) -
-
- Return the closest ancestor component, relative to the component returned from - #getCurrentComponent, that is a composite component, or null if no such component exists. - - true - - -
-
-
- true -
- JSF:JAVADOC:2693 - - int - - jakarta.faces.component.UIComponent.getFacetCount -
-
-
- Return the number of facet UIComponents that are associated with this UIComponent. If - there are no facets, this method must return 0. The method must not cause the creation of a facet - component map. For backwards compatability with classes that extend UIComponent directly, a default - implementation is provided that simply calls #getFacets and then calls the size() method on the - returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2694 - - Map - - jakarta.faces.component.UIComponent.getFacets -
-
-
- Return a mutable Map representing the facet UIComponents associated with this - UIComponent, keyed by facet name (which must be a String). The returned implementation must support - all of the standard and optional Map methods, plus support the following additional requirements: - The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null - key or value must throw a NullPointerException. Any attempt to add a key that is not a String must - throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a - ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component - must be set to this component instance. If the parent property of the component was already - non-null, the component must first be removed from its previous parent (where it may have been - either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property - of the facet must be set to null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2695 - - String - - jakarta.faces.component.UIComponent.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2696 - - String - - jakarta.faces.component.UIComponent.getId -
-
-
- Return the component identifier of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2697 - - List - - jakarta.faces.component.UIComponent.getListenersForEventClass -
- ( - Class - ) -
-
- This implementation throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend this class. UIComponentBase provides the - implementation of this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2698 - - UIComponent - - jakarta.faces.component.UIComponent.getNamingContainer -
-
-
- Starting with "this", return the closest component in the ancestry that is a - NamingContainer or null if none can be found. - - true - - -
-
-
- true -
- JSF:JAVADOC:2699 - - Map - - jakarta.faces.component.UIComponent.getPassThroughAttributes -
-
-
- This is a convenience method that simply calls #getPassThroughAttributes(boolean), - passing true as the argument. This method must never return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2700 - - Map - - jakarta.faces.component.UIComponent.getPassThroughAttributes -
- ( - boolean - ) -
-
- This method has the same specification as #getPassThroughAttributes() except that it is - allowed to return null if and only if the argument create is false and no pass through attribute - data structure exists for this instance. The returned Map implementation must support all of the - standard and optional Map methods, plus support the following additional requirements. The map must - be stored in using #getStateHelper. The Map implementation must implement java.io.Serializable. Any - attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that - is not a String must throw an IllegalArgumentException. For backward compatibility with components - that extend directly from this class, a default implementation is provided that returns the empty - map. - - true - - -
-
-
- true -
- JSF:JAVADOC:2701 - - Map - - jakarta.faces.component.UIComponent.getResourceBundleMap -
-
-
- Return a Map of the ResourceBundle for this component. A component may have a - ResourceBundle associated with it. This bundle may contain localized properties relating to - instances of this component. The default implementation first looks for a ResourceBundle with a base - name equal to the fully qualified class name of the current UIComponent this and Locale equal to the - Locale of the current UIViewRoot. If no such bundle is found, and the component is a composite - component, let resourceName be the resourceName of the Resource for this composite component, - replacing the file extension with ".properties". Let libraryName be the libraryName of the the - Resource for this composite component. Call - jakarta.faces.application.ResourceHandler#createResource(java.lang.String,java.lang.String), passing - the derived resourceName and libraryName. Note that this will automatically allow for the - localization of the ResourceBundle due to the localization facility implemented in createResource, - which is specified in section 2.6.1.3 "Resource Identifiers" of the Jakarta Faces Specification - Document. If the resultant Resource exists and can be found, the InputStream for the resource is - used to create a ResourceBundle. If either of the two previous steps for obtaining the - ResourceBundle for this component is successful, the ResourceBundle is wrapped in a Map and - returned. Otherwise Collections.EMPTY_MAP is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2702 - - TransientStateHelper - - jakarta.faces.component.UIComponent.getTransientStateHelper -
-
-
- Return the TransientStateHelper instance for this UIComponent instance. The default - implementation simply calls through to #getTransientStateHelper(boolean) passing true as the - argument. - - true - - -
-
-
- true -
- JSF:JAVADOC:2703 - - TransientStateHelper - - jakarta.faces.component.UIComponent.getTransientStateHelper -
- ( - boolean - ) -
-
- Return the TransientStateHelper instance for this UIComponent instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2704 - - ValueExpression - - jakarta.faces.component.UIComponent.getValueExpression -
- ( - String - ) -
-
- Return the ValueExpression used to calculate the value for the specified attribute or - property name, if any. This method must be overridden and implemented for components that comply - with Jakarta Faces 1.2 and later. - - true - - -
-
-
- true -
- JSF:JAVADOC:2705 - - boolean - - jakarta.faces.component.UIComponent.initialStateMarked -
-
-
- An implementation of PartialStateHolder#initialStateMarked, this method is called by - the runtime to test if the PartialStateHolder#markInitialState method was called. - - true - - -
-
-
- true -
- JSF:JAVADOC:2706 - - boolean - - jakarta.faces.component.UIComponent.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) -
-
- Starting at this component in the View hierarchy, search for a component with a - clientId equal to the argument clientId and, if found, call the - ContextCallback#invokeContextCallback method on the argument callback, passing the current - FacesContext and the found component as arguments. This method is similar to #findComponent but it - does not support the leading UINamingContainer#getSeparatorChar syntax for searching from the root - of the View. The default implementation will first check if this.getClientId() is equal to the - argument clientId. If so, first call #pushComponentToEL, then call the - ContextCallback#invokeContextCallback method on the argument callback, passing through the - FacesContext argument and passing this as the component argument. Then call #popComponentFromEL. If - an Exception is thrown by the callback, wrap it in a FacesException and re-throw it. Otherwise, - return true. Otherwise, for each component returned by #getFacetsAndChildren, call - invokeOnComponent() passing the arguments to this method, in order. The first time - invokeOnComponent() returns true, abort traversing the rest of the Iterator and return true. When - calling ContextCallback#invokeContextCallback the implementation of this method must guarantee that - the state of the component passed to the callback correctly reflects the component's position in the - View hierarchy with respect to any state found in the argument clientId. For example, an iterating - component such as UIData will need to set its row index to correctly reflect the argument clientId - before finding the appropriate child component backed by the correct row. When the callback returns, - either normally or by throwing an Exception the implementation of this method must restore the state - of the view to the way it was before invoking the callback. If none of the elements from - #getFacetsAndChildren returned true from invokeOnComponent(), return false. Simple usage example to - find a component by clientId. private UIComponent found = null; private void doFind(FacesContext - context, String clientId) { context.getViewRoot().invokeOnComponent(context, clientId, new - ContextCallback() { public void invokeContextCallback(FacesContext context, UIComponent component) { - found = component; } }); } - - true - - -
-
-
- true -
- JSF:JAVADOC:2707 - - boolean - - jakarta.faces.component.UIComponent.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) - -
- throws - FacesException -
-
-
- if the argument Callback throws an Exception, it is wrapped in a FacesException and - re-thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2708 - - boolean - - jakarta.faces.component.UIComponent.isCompositeComponent -
- ( - UIComponent - ) -
-
- Return true if component is a composite component, otherwise false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2709 - - boolean - - jakarta.faces.component.UIComponent.isInView -
-
-
- Return true if this component is within the view hierarchy otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:2710 - - void - - jakarta.faces.component.UIComponent.markInitialState -
-
-
- An implementation of PartialStateHolder#markInitialState, this method is called by the - runtime to indicate that the instance should start tracking changes to its state. - - true - - -
-
-
- true -
- JSF:JAVADOC:2711 - - void - - jakarta.faces.component.UIComponent.popComponentFromEL -
- ( - FacesContext - ) -
-
- Pop the current UIComponent from the FacesContext attributes map so that the previous - UIComponent, if any, becomes the current component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2712 - - void - - jakarta.faces.component.UIComponent.processEvent -
- ( - ComponentSystemEvent - ) -
-
- The default implementation performs the following action. If the argument event is an - instance of PostRestoreStateEvent, call this.#getValueExpression passing the literal string - #8220;binding #8221;, without the quotes, as the argument. If the result is non-null, set the value - of the ValueExpression to be this. - - true - - -
-
-
- true -
- JSF:JAVADOC:2713 - - void - - jakarta.faces.component.UIComponent.processEvent -
- ( - ComponentSystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2714 - - void - - jakarta.faces.component.UIComponent.processRestoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Perform the component tree processing required by the Restore View phase of the request - processing lifecycle for all facets of this component, all children of this component, and this - component itself, as follows. Call the restoreState() method of this component. Call - UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of - this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from - the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This - method may not be called if the state saving method is set to server. - - true - - -
-
-
- true -
- JSF:JAVADOC:2715 - - Object - - jakarta.faces.component.UIComponent.processSaveState -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the state saving portion of the - Render Response phase of the request processing lifecycle for all facets of this component, all - children of this component, and this component itself, as follows. consult the transient property of - this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() - method of all facets and children of this UIComponent in the order determined by a call to - getFacetsAndChildren(), skipping children and facets that are transient. Ensure that - #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of - this component. Encapsulate the child state and your state into a Serializable Object and return it. - This method may not be called if the state saving method is set to server. - - true - - -
-
-
- true -
- JSF:JAVADOC:2716 - - void - - jakarta.faces.component.UIComponent.pushComponentToEL -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Push the current UIComponent this to the FacesContext attribute map saving the previous - UIComponent for a subsequent call to #popComponentFromEL. This method and popComponentFromEL() form - the basis for the contract that enables the Jakarta Expression Language Expression "#{component}" to - resolve to the "current" component that is being processed in the lifecycle. The requirements for - when pushComponentToEL() and popComponentFromEL() must be called are specified as needed in the - javadoc for this class. After pushComponentToEL() returns, a call to #getCurrentComponent must - return this UIComponent instance until popComponentFromEL() is called, after which point the - previous UIComponent instance will be returned from getCurrentComponent() - - true - - -
-
-
- true -
- JSF:JAVADOC:2717 - - void - - jakarta.faces.component.UIComponent.queueEvent -
- ( - FacesEvent - ) -
-
- Queue an event for broadcast at the end of the current request processing lifecycle - phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() - method of the parent UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2718 - - void - - jakarta.faces.component.UIComponent.restoreTransientState -
- ( - FacesContext - , -
- Object - ) -
-
- For components that need to support the concept of transient state, this method will - restore any state saved on a prior call to #saveTransientState. - - true - - -
-
-
- true -
- JSF:JAVADOC:2719 - - Object - - jakarta.faces.component.UIComponent.saveTransientState -
- ( - FacesContext - ) -
-
- For components that need to support the concept of transient state, this method will - save any state that is known to be transient in nature. - - true - - -
-
-
- true -
- JSF:JAVADOC:2720 - - void - - jakarta.faces.component.UIComponent.setId -
- ( - String - ) -
-
- Set the component identifier of this UIComponent (if any). Component identifiers must - obey the following syntax restrictions: Must not be a zero-length String. First character must be a - letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), - or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that - this restriction is NOT enforced by the setId() implementation): The specified identifier must be - unique among all the components (including facets) that are descendents of the nearest ancestor - UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is - no such ancestor that is a NamingContainer. - - true - - -
-
-
- true -
- JSF:JAVADOC:2721 - - void - - jakarta.faces.component.UIComponent.setInView -
- ( - boolean - ) -
-
- Updates the status as to whether or not this component is currently within the view - hierarchy. This method must never be called by developers; a UIComponent's internal implementation - will call it as components are added to or removed from a parent's child List or facet Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:2722 - - void - - jakarta.faces.component.UIComponent.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Set the ValueExpression used to calculate the value for the specified attribute or - property name, if any. The implementation must call ValueExpression#isLiteralText on the argument - expression. If isLiteralText() returns true, invoke ValueExpression#getValue on the argument - expression and pass the result as the value parameter in a call to this.#getAttributes().put(name, - value) where name is the argument name. If an exception is thrown as a result of calling - ValueExpression#getValue, wrap it in a jakarta.faces.FacesException and re-throw it. If - isLiteralText() returns false, simply store the un-evaluated expression argument in the collection - of ValueExpressions under the key given by the argument name. This method must be overridden and - implemented for components that comply with Jakarta Faces 1.2 and later. - - true - - -
-
-
- true -
- JSF:JAVADOC:2723 - - void - - jakarta.faces.component.UIComponent.subscribeToEvent -
- ( - Class - , -
- ComponentSystemEventListener - ) -
-
- This implementation throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend this class. UIComponentBase provides the - implementation of this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2724 - - UIComponent - - jakarta.faces.component.UIComponent.UIComponent -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2725 - - void - - jakarta.faces.component.UIComponent.unsubscribeFromEvent -
- ( - Class - , -
- ComponentSystemEventListener - ) -
-
- This implementation throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend this class. UIComponentBase provides the - implementation of this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2726 - - boolean - - jakarta.faces.component.UIComponent.visitTree -
- ( - VisitContext - , -
- VisitCallback - ) -
-
- Perform a tree visit starting at this node in the tree. UIComponent.visitTree() - implementations do not invoke the VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to - provide optimized tree traversals, for example by only calling the VisitCallback for a subset of - components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the visit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2727 - - void - - jakarta.faces.component.UIComponentBase.addClientBehavior -
- ( - String - , -
- ClientBehavior - ) -
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:2728 - - void - - jakarta.faces.component.UIComponentBase.broadcast -
- ( - FacesEvent - ) -
-
- Broadcast the specified FacesEvent to all registered event listeners who have expressed - an interest in events of this type. Listeners are called in the order in which they were added. If - the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the - source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the - jakarta.faces.component.behavior.Behavior for the event. Call - jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the - Behavior instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2729 - - void - - jakarta.faces.component.UIComponentBase.broadcast -
- ( - FacesEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:2730 - - void - - jakarta.faces.component.UIComponentBase.clearInitialState -
-
-
- For each of the attached objects on this instance that implement PartialStateHolder, - call PartialStateHolder#clearInitialState on the attached object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2731 - - Map - - jakarta.faces.component.UIComponentBase.getAttributes -
-
-
- Return a mutable Map representing the attributes (and properties, see below) associated - wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation - must support all of the standard and optional Map methods, plus support the following additional - requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt - to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a - String must throw a ClassCastException. If the attribute name specified as a key matches a property - of this UIComponent's implementation class, the following methods will have special behavior: - containsKey - Return false. get() - If the property is readable, call the getter method and return - the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise - throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set - the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the - property is not writeable, or an attempt is made to set a property of primitive type to null, throw - IllegalArgumentException. remove - Throw IllegalArgumentException. - - true - - -
-
-
- true -
- JSF:JAVADOC:2732 - - List - - jakarta.faces.component.UIComponentBase.getChildren -
-
-
- Return a mutable List representing the child UIComponents associated with this - component. The returned implementation must support all of the standard and optional List methods, - plus support the following additional requirements: The List implementation must implement the - java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any - attempt to add an object that does not implement UIComponent must throw a ClassCastException. - Whenever a new child component is added, the parent property of the child must be set to this - component instance. If the parent property of the child was already non-null, the child must first - be removed from its previous parent (where it may have been either a child or a facet). Whenever an - existing child component is removed, the parent property of the child must be set to null. After the - child component has been added to the view, jakarta.faces.application.Application#publishEvent must - be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly - added component as the second argument if any the following cases are true. - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. - jakarta.faces.context.FacesContext#isPostback returns false and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than - jakarta.faces.event.PhaseId#RESTORE_VIEW - - true - - -
-
-
- true -
- JSF:JAVADOC:2733 - - Map - - jakarta.faces.component.UIComponentBase.getClientBehaviors -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getClientBehaviors. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must add an implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:2734 - - String - - jakarta.faces.component.UIComponentBase.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:2735 - - Collection - - jakarta.faces.component.UIComponentBase.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:2736 - - int - - jakarta.faces.component.UIComponentBase.getFacetCount -
-
-
- Return the number of facet UIComponents that are associated with this UIComponent. If - there are no facets, this method must return 0. The method must not cause the creation of a facet - component map. For backwards compatability with classes that extend UIComponent directly, a default - implementation is provided that simply calls #getFacets and then calls the size() method on the - returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2737 - - Map - - jakarta.faces.component.UIComponentBase.getFacets -
-
-
- Return a mutable Map representing the facet UIComponents associated with this - UIComponent, keyed by facet name (which must be a String). The returned implementation must support - all of the standard and optional Map methods, plus support the following additional requirements: - The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null - key or value must throw a NullPointerException. Any attempt to add a key that is not a String must - throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a - ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component - must be set to this component instance. If the parent property of the component was already - non-null, the component must first be removed from its previous parent (where it may have been - either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property - of the facet must be set to null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2738 - - String - - jakarta.faces.component.UIComponentBase.getId -
-
-
- Return the component identifier of this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2739 - - List - - jakarta.faces.component.UIComponentBase.getListenersForEventClass -
- ( - Class - ) -
-
- Return the SystemEventListener instances registered on this UIComponent instance that - are interested in events of type eventClass. - - true - - -
-
-
- true -
- JSF:JAVADOC:2740 - - Map - - jakarta.faces.component.UIComponentBase.getPassThroughAttributes -
- ( - boolean - ) -
-
- This method has the same specification as #getPassThroughAttributes() except that it is - allowed to return null if and only if the argument create is false and no pass through attribute - data structure exists for this instance. The returned Map implementation must support all of the - standard and optional Map methods, plus support the following additional requirements. The map must - be stored in using #getStateHelper. The Map implementation must implement java.io.Serializable. Any - attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that - is not a String must throw an IllegalArgumentException. For backward compatibility with components - that extend directly from this class, a default implementation is provided that returns the empty - map. - - true - - -
-
-
- true -
- JSF:JAVADOC:2741 - - boolean - - jakarta.faces.component.UIComponentBase.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2742 - - boolean - - jakarta.faces.component.UIComponentBase.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) - -
- throws - FacesException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:2743 - - boolean - - jakarta.faces.component.UIComponentBase.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2744 - - void - - jakarta.faces.component.UIComponentBase.markInitialState -
-
-
- For each of the attached objects on this instance that implement PartialStateHolder, - call PartialStateHolder#markInitialState on the attached object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2745 - - void - - jakarta.faces.component.UIComponentBase.processRestoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Perform the component tree processing required by the Restore View phase of the request - processing lifecycle for all facets of this component, all children of this component, and this - component itself, as follows. Call the restoreState() method of this component. Call - UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of - this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from - the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This - method may not be called if the state saving method is set to server. - - true - - -
-
-
- true -
- JSF:JAVADOC:2746 - - Object - - jakarta.faces.component.UIComponentBase.processSaveState -
- ( - FacesContext - ) -
-
- Perform the component tree processing required by the state saving portion of the - Render Response phase of the request processing lifecycle for all facets of this component, all - children of this component, and this component itself, as follows. consult the transient property of - this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() - method of all facets and children of this UIComponent in the order determined by a call to - getFacetsAndChildren(), skipping children and facets that are transient. Ensure that - #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of - this component. Encapsulate the child state and your state into a Serializable Object and return it. - This method may not be called if the state saving method is set to server. - - true - - -
-
-
- true -
- JSF:JAVADOC:2747 - - void - - jakarta.faces.component.UIComponentBase.queueEvent -
- ( - FacesEvent - ) -
-
- Queue an event for broadcast at the end of the current request processing lifecycle - phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() - method of the parent UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2748 - - Object - - jakarta.faces.component.UIComponentBase.restoreAttachedState -
- ( - FacesContext - , -
- Object - ) -
-
- This method is called by UIComponent subclasses that need to restore the objects they - saved using #saveAttachedState. This method is tightly coupled with #saveAttachedState. This method - supports restoring all attached objects types supported by #saveAttachedState. - - true - - -
-
-
- true -
- JSF:JAVADOC:2749 - - Object - - jakarta.faces.component.UIComponentBase.restoreAttachedState -
- ( - FacesContext - , -
- Object - ) - -
- throws - IllegalStateException -
-
-
- if the object is not previously returned by #saveAttachedState. - - true - - -
-
-
- true -
- JSF:JAVADOC:2750 - - void - - jakarta.faces.component.UIComponentBase.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2751 - - Object - - jakarta.faces.component.UIComponentBase.saveAttachedState -
- ( - FacesContext - , -
- Object - ) -
-
- This method is called by UIComponent subclasses that want to save one or more attached - objects. It is a convenience method that does the work of saving attached objects that may or may - not implement the StateHolder interface. Using this method implies the use of #restoreAttachedState - to restore the attached objects. This method supports saving attached objects of the following type: - Objects, null values, and Collections of these objects. If any contained objects are not Collections - and do not implement StateHolder, they must have zero-argument public constructors. The exact - structure of the returned object is undefined and opaque, but will be serializable. - - true - - -
-
-
- true -
- JSF:JAVADOC:2752 - - Object - - jakarta.faces.component.UIComponentBase.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2753 - - void - - jakarta.faces.component.UIComponentBase.setId -
- ( - String - ) -
-
- Set the component identifier of this UIComponent (if any). Component identifiers must - obey the following syntax restrictions: Must not be a zero-length String. First character must be a - letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), - or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that - this restriction is NOT enforced by the setId() implementation): The specified identifier must be - unique among all the components (including facets) that are descendents of the nearest ancestor - UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is - no such ancestor that is a NamingContainer. - - true - - -
-
-
- true -
- JSF:JAVADOC:2754 - - void - - jakarta.faces.component.UIComponentBase.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2755 - - void - - jakarta.faces.component.UIComponentBase.subscribeToEvent -
- ( - Class - , -
- ComponentSystemEventListener - ) -
-
- Install the listener instance referenced by argument componentListener as a listener - for events of type eventClass originating from this specific instance of UIComponent. The default - implementation creates an inner SystemEventListener instance that wraps argument componentListener - as the listener argument. This inner class must call through to the argument componentListener in - its implementation of SystemEventListener#processEvent and its implementation of - SystemEventListener#isListenerForSource must return true if the instance class of this UIComponent - is assignable from the argument to isListenerForSource. The listener instance referenced by argument - componentListener may not already be installed as a listener for events of type eventClass - originating from this specific instance of UIComponent. When doing the comparison to determine if an - existing listener is equal to the argument componentListener, the equals() method on the existing - listener must be invoked, passing the argument componentListener, rather than the other way around. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2756 - - void - - jakarta.faces.component.UIComponentBase.unsubscribeFromEvent -
- ( - Class - , -
- ComponentSystemEventListener - ) -
-
- Remove the listener instance referenced by argument componentListener as a listener for - events of type eventClass originating from this specific instance of UIComponent. When doing the - comparison to determine if an existing listener is equal to the argument componentListener (and thus - must be removed), the equals() method on the existing listener must be invoked, passing the argument - componentListener, rather than the other way around. - - true - - -
-
-
- true -
- JSF:JAVADOC:2757 - - void - - jakarta.faces.component.UIData.broadcast -
- ( - FacesEvent - ) -
-
- Override the default UIComponentBase#broadcast processing to unwrap any wrapped - FacesEvent and reset the current row index, before the event is actually broadcast. For events that - we did not wrap (in queueEvent()), default processing will occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2758 - - void - - jakarta.faces.component.UIData.broadcast -
- ( - FacesEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:2759 - - String - - jakarta.faces.component.UIData.createUniqueId -
- ( - FacesContext - , -
- String - ) -
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed - value can be supplied by component creators which should be included in the generated unique id. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2760 - - void - - jakarta.faces.component.UIData.encodeBegin -
- ( - FacesContext - ) -
-
- In addition to the default behavior, ensure that any saved per-row state for our child - input components is discarded unless it is needed to rerender the current page with errors. - - true - - -
-
-
- true -
- JSF:JAVADOC:2761 - - void - - jakarta.faces.component.UIData.encodeBegin -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:2762 - - String - - jakarta.faces.component.UIData.getClientId -
- ( - FacesContext - ) -
-
- Return a client identifier for this component that includes the current value of the - rowIndex property, if it is not set to -1. This implies that multiple calls to getClientId() may - return different results, but ensures that child components can themselves generate row-specific - client identifiers (since UIData is a NamingContainer). - - true - - -
-
-
- true -
- JSF:JAVADOC:2763 - - String - - jakarta.faces.component.UIData.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2764 - - int - - jakarta.faces.component.UIData.getFirst -
-
-
- Return the zero-relative row number of the first row to be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2765 - - UIComponent - - jakarta.faces.component.UIData.getFooter -
-
-
- Return the footer facet of this component (if any). A convenience method for - getFacet("footer"). - - true - - -
-
-
- true -
- JSF:JAVADOC:2766 - - UIComponent - - jakarta.faces.component.UIData.getHeader -
-
-
- Return the header facet of this component (if any). A convenience method for - getFacet("header"). - - true - - -
-
-
- true -
- JSF:JAVADOC:2767 - - int - - jakarta.faces.component.UIData.getRowCount -
-
-
- Return the number of rows in the underlying data model. If the number of available rows - is unknown, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:2768 - - Object - - jakarta.faces.component.UIData.getRowData -
-
-
- Return the data object representing the data for the currently selected row index, if - any. - - true - - -
-
-
- true -
- JSF:JAVADOC:2769 - - int - - jakarta.faces.component.UIData.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, return -1. This property is not enabled for value binding expressions. - - true - - -
-
-
- true -
- JSF:JAVADOC:2770 - - int - - jakarta.faces.component.UIData.getRows -
-
-
- Return the number of rows to be displayed, or zero for all remaining rows in the table. - The default value of this property is zero. - - true - - -
-
-
- true -
- JSF:JAVADOC:2771 - - Object - - jakarta.faces.component.UIData.getValue -
-
-
- Return the value of the UIData. This value must either be be of type DataModel, or a - type that can be adapted into a DataModel. UIData will automatically adapt the following types: - Arrays java.util.List java.sql.ResultSet java.util.Collection All other types will be adapted using - the ScalarDataModel class, which will treat the object as a single row of data. - - true - - -
-
-
- true -
- JSF:JAVADOC:2772 - - String - - jakarta.faces.component.UIData.getVar -
-
-
- Return the request-scope attribute under which the data object for the current row will - be exposed when iterating. This property is not enabled for value binding expressions. - - true - - -
-
-
- true -
- JSF:JAVADOC:2773 - - boolean - - jakarta.faces.component.UIData.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) -
-
- Override behavior from UIComponentBase#invokeOnComponent to provide special care for - positioning the data properly before finding the component and invoking the callback on it. If the - argument clientId is equal to this.getClientId() simply invoke the contextCallback, passing the - context argument and this as arguments, and return true. If the argument clientId is not equal to - this.getClientId(), inspect each of the facet children of this UIData instance and for each one, - compare its clientId with the argument clientId. If there is a match, invoke the contextCallback, - passing the context argument and this as arguments, and return true. Otherwise, attempt to extract a - rowIndex from the clientId. For example, if the argument clientId was form:data:3:customerHeader the - rowIndex would be 3. Let this value be called newIndex. The current rowIndex of this instance must - be saved aside and restored before returning in all cases, regardless of the outcome of the search - or if any exceptions are thrown in the process. The implementation of this method must never return - true if setting the rowIndex of this instance to be equal to newIndex causes this instance to return - false from #isRowAvailable. - - true - - -
-
-
- true -
- JSF:JAVADOC:2774 - - boolean - - jakarta.faces.component.UIData.invokeOnComponent -
- ( - FacesContext - , -
- String - , -
- ContextCallback - ) - -
- throws - FacesException -
-
-
- {@inheritDoc} Also throws FacesException if any exception is thrown when deriving the - rowIndex from the argument clientId. - - true - - -
-
-
- true -
- JSF:JAVADOC:2775 - - boolean - - jakarta.faces.component.UIData.isRowAvailable -
-
-
- Return a flag indicating whether there is rowData available at the current rowIndex. If - no wrappedData is available, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2776 - - boolean - - jakarta.faces.component.UIData.isRowStatePreserved -
-
-
- Return the value of the rowStatePreserved JavaBeans property. See - #setRowStatePreserved. - - true - - -
-
-
- true -
- JSF:JAVADOC:2777 - - void - - jakarta.faces.component.UIData.markInitialState -
-
-
- Override the base class method to take special action if the method is being invoked - when StateManager#IS_BUILDING_INITIAL_STATE is true and the rowStatePreserved JavaBeans property for - this instance is true. The additional action taken is to traverse the descendents and save their - state without regard to any particular row value. - - true - - -
-
-
- true -
- JSF:JAVADOC:2778 - - void - - jakarta.faces.component.UIData.processDecodes -
- ( - FacesContext - ) -
-
- Override the default UIComponentBase#processDecodes processing to perform the following - steps. If the rendered property of this UIComponent is false, skip further processing. Set the - current rowIndex to -1. Call the processDecodes() method of all facets of this UIData, in the order - determined by a call to getFacets().keySet().iterator(). Call the processDecodes() method of all - facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when - this component was rendered (i.e. those defined by the first and rows properties), performing the - following processing for each row: Set the current rowIndex to the appropriate value for this row. - If isRowAvailable() returns true, iterate over the children components of each UIColumn child of - this UIData component, calling the processDecodes() method for each such child. Set the current - rowIndex to -1. Call the decode() method of this component. If a RuntimeException is thrown during - decode processing, call FacesContext#renderResponse and re-throw the exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2779 - - void - - jakarta.faces.component.UIData.processUpdates -
- ( - FacesContext - ) -
-
- Override the default UIComponentBase#processUpdates processing to perform the following - steps. If the rendered property of this UIComponent is false, skip further processing. Set the - current rowIndex to -1. Call the processUpdates() method of all facets of this UIData, in the order - determined by a call to getFacets().keySet().iterator(). Call the processUpdates() method of all - facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when - this component was rendered (i.e. those defined by the first and rows properties), performing the - following processing for each row: Set the current rowIndex to the appropriate value for this row. - If isRowAvailable() returns true, iterate over the children components of each UIColumn child of - this UIData component, calling the processUpdates() method for each such child. Set the current - rowIndex to -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:2780 - - void - - jakarta.faces.component.UIData.processValidators -
- ( - FacesContext - ) -
-
- Override the default UIComponentBase#processValidators processing to perform the - following steps. If the rendered property of this UIComponent is false, skip further processing. Set - the current rowIndex to -1. Call the processValidators() method of all facets of this UIData, in the - order determined by a call to getFacets().keySet().iterator(). Call the processValidators() method - of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were - included when this component was rendered (i.e. those defined by the first and rows properties), - performing the following processing for each row: Set the current rowIndex to the appropriate value - for this row. If isRowAvailable() returns true, iterate over the children components of each - UIColumn child of this UIData component, calling the processValidators() method for each such child. - Set the current rowIndex to -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:2781 - - void - - jakarta.faces.component.UIData.queueEvent -
- ( - FacesEvent - ) -
-
- Override the default UIComponentBase#queueEvent processing to wrap any queued events in - a wrapper so that we can reset the current row index in broadcast(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2782 - - void - - jakarta.faces.component.UIData.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2783 - - Object - - jakarta.faces.component.UIData.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2784 - - void - - jakarta.faces.component.UIData.setFirst -
- ( - int - ) -
-
- Set the zero-relative row number of the first row to be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2785 - - void - - jakarta.faces.component.UIData.setFooter -
- ( - UIComponent - ) -
-
- Set the footer facet of this component. A convenience method for - getFacets().put("footer", footer). - - true - - -
-
-
- true -
- JSF:JAVADOC:2786 - - void - - jakarta.faces.component.UIData.setHeader -
- ( - UIComponent - ) -
-
- Set the header facet of this component. A convenience method for - getFacets().put("header", header). - - true - - -
-
-
- true -
- JSF:JAVADOC:2787 - - void - - jakarta.faces.component.UIData.setRowIndex -
- ( - int - ) -
-
- Set the zero relative index of the current row, or -1 to indicate that no row is - currently selected, by implementing the following algorithm. It is possible to set the row index at - a value for which the underlying data collection does not contain any row data. Therefore, callers - may use the isRowAvailable() method to detect whether row data will be available for use by the - getRowData() method. To support transient state among descendents, please consult the specification - for #setRowStatePreserved, which details the requirements for setRowIndex() when the - rowStatePreserved JavaBeans property is set to true. Save current state information for all - descendant components (as described below). Store the new row index, and pass it on to the DataModel - associated with this UIData instance. If the new rowIndex value is -1: If the var property is not - null, remove the corresponding request scope attribute (if any). Reset the state information for all - descendant components (as described below). If the new rowIndex value is not -1: If the var property - is not null, call getRowData() and expose the resulting data object as a request scope attribute - whose key is the var property value. Reset the state information for all descendant components (as - described below). To save current state information for all descendant components, UIData must - maintain per-row information for each descendant as follows: If the descendant is an instance of - EditableValueHolder, save the state of its localValue property. If the descendant is an instance of - EditableValueHolder, save the state of the localValueSet property. If the descendant is an instance - of EditableValueHolder, save the state of the valid property. If the descendant is an instance of - EditableValueHolder, save the state of the submittedValue property. To restore current state - information for all descendant components, UIData must reference its previously stored information - for the current rowIndex and call setters for each descendant as follows: If the descendant is an - instance of EditableValueHolder, restore the value property. If the descendant is an instance of - EditableValueHolder, restore the state of the localValueSet property. If the descendant is an - instance of EditableValueHolder, restore the state of the valid property. If the descendant is an - instance of EditableValueHolder, restore the state of the submittedValue property. - - true - - -
-
-
- true -
- JSF:JAVADOC:2788 - - void - - jakarta.faces.component.UIData.setRows -
- ( - int - ) -
-
- Set the number of rows to be displayed, or zero for all remaining rows in the table. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2789 - - void - - jakarta.faces.component.UIData.setRowStatePreserved -
- ( - boolean - ) -
-
- If this property is set to true, the UIData must take steps to ensure that - modifications to its iterated children will be preserved on a per-row basis. This allows - applications to modify component properties, such as the style-class, for a specific row, rather - than having such modifications apply to all rows. To accomplish this, UIData must call - StateHolder#saveState and TransientStateHolder#saveTransientState on its children to capture their - state on exiting each row. When re-entering the row, StateHolder#restoreState and - TransientStateHolder#restoreTransientState must be called in order to reinitialize the children to - the correct state for the new row. All of this action must take place during the processing of - #setRowIndex. Users should consider enabling this feature for cases where it is necessary to modify - properties of UIData's children in a row-specific way. Note, however, that row-level state - saving/restoring does add overhead. As such, this feature should be used judiciously. - - true - - -
-
-
- true -
- JSF:JAVADOC:2790 - - void - - jakarta.faces.component.UIData.setValue -
- ( - Object - ) -
-
- Set the value of the UIData. This value must either be be of type DataModel, or a type - that can be adapted into a DataModel. - - true - - -
-
-
- true -
- JSF:JAVADOC:2791 - - void - - jakarta.faces.component.UIData.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Set the ValueExpression used to calculate the value for the specified attribute or - property name, if any. In addition, if a ValueExpression is set for the value property, remove any - synthesized DataModel for the data previously bound to this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2792 - - void - - jakarta.faces.component.UIData.setVar -
- ( - String - ) -
-
- Set the request-scope attribute under which the data object for the current row wil be - exposed when iterating. - - true - - -
-
-
- true -
- JSF:JAVADOC:2793 - - UIData - - jakarta.faces.component.UIData.UIData -
-
-
- Create a new UIData instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2794 - - boolean - - jakarta.faces.component.UIData.visitTree -
- ( - VisitContext - , -
- VisitCallback - ) -
-
- Override the behavior in UIComponent#visitTree to handle iteration correctly. If the - UIComponent#isVisitable method of this instance returns false, take no action and return. Call - UIComponent#pushComponentToEL and invoke the visit callback on this UIData instance as described in - UIComponent#visitTree. Let the result of the invoctaion be visitResult. If visitResult is - VisitResult#COMPLETE, take no further action and return true. Otherwise, determine if we need to - visit our children. The default implementation calls VisitContext#getSubtreeIdsToVisit passing this - as the argument. If the result of that call is non-empty, let doVisitChildren be true. If - doVisitChildren is true and visitResult is VisitResult#ACCEPT, take the following action. If this - component has facets, call UIComponent#getFacets on this instance and invoke the values() method. - For each UIComponent in the returned Map, call UIComponent#visitTree. If this component has - children, for each UIColumn child: Call VisitContext#invokeVisitCallback on that UIColumn instance. - If such a call returns true, terminate visiting and return true from this method. If the child - UIColumn has facets, call UIComponent#visitTree on each one. Take no action on non-UIColumn - children. Save aside the result of a call to #getRowIndex. For each child component of this UIData - that is also an instance of UIColumn, Iterate over the rows. Let rowsToProcess be the return from - #getRows. Let rowIndex be the return from #getFirst - 1. While the number of rows processed is less - than rowsToProcess, take the following actions. Call #setRowIndex, passing the current row index. If - #isRowAvailable returns false, take no further action and return false. Call UIComponent#visitTree - on each of the children of this UIColumn instance. Call #popComponentFromEL and restore the saved - row index with a call to #setRowIndex. Return false to allow the visiting to continue. - - true - - -
-
-
- true -
- JSF:JAVADOC:2795 - - String - - jakarta.faces.component.UIForm.createUniqueId -
- ( - FacesContext - , -
- String - ) -
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed - value can be supplied by component creators which should be included in the generated unique id. If - the prependId property has the value false, this method must call createUniqueId on the next - ancestor UniqueIdVendor. - - true - - -
-
-
- true -
- JSF:JAVADOC:2796 - - String - - jakarta.faces.component.UIForm.getContainerClientId -
- ( - FacesContext - ) -
-
- Override the UIComponent#getContainerClientId to allow users to disable this form from - prepending its clientId to its descendent's clientIds depending on the value of this form's - #isPrependId property. - - true - - -
-
-
- true -
- JSF:JAVADOC:2797 - - String - - jakarta.faces.component.UIForm.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2798 - - boolean - - jakarta.faces.component.UIForm.isPrependId -
-
-
- Is the id prepended. - - true - - -
-
-
- true -
- JSF:JAVADOC:2799 - - boolean - - jakarta.faces.component.UIForm.isSubmitted -
-
-
- Returns the current value of the submitted property. The default value is false. See - #setSubmitted for details. This property must be kept as a transient property using the - UIComponent#getTransientStateHelper. - - true - - -
-
-
- true -
- JSF:JAVADOC:2800 - - void - - jakarta.faces.component.UIForm.processDecodes -
- ( - FacesContext - ) -
-
- Override UIComponent#processDecodes to ensure that the form is decoded before its - children. This is necessary to allow the submitted property to be correctly set. - - true - - -
-
-
- true -
- JSF:JAVADOC:2801 - - void - - jakarta.faces.component.UIForm.processUpdates -
- ( - FacesContext - ) -
-
- Override UIComponent#processUpdates to ensure that the children of this UIForm instance - are only processed if #isSubmitted returns true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2802 - - void - - jakarta.faces.component.UIForm.processValidators -
- ( - FacesContext - ) -
-
- Override UIComponent#processValidators to ensure that the children of this UIForm - instance are only processed if #isSubmitted returns true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2803 - - void - - jakarta.faces.component.UIForm.setPrependId -
- ( - boolean - ) -
-
- Set whether the id should be prepended. - - true - - -
-
-
- true -
- JSF:JAVADOC:2804 - - void - - jakarta.faces.component.UIForm.setSubmitted -
- ( - boolean - ) -
-
- If this UIForm instance (as opposed to other forms in the page) is experiencing a - submit during this request processing lifecycle, this method must be called, with true as the - argument, during the UIComponent#decode for this UIForm instance. If this UIForm instance is not - experiencing a submit, this method must be called, with false as the argument, during the - UIComponent#decode for this UIForm instance. The value of a UIForm's submitted property must not be - saved as part of its state. This property must be kept as a transient property using the - UIComponent#getTransientStateHelper. - - true - - -
-
-
- true -
- JSF:JAVADOC:2805 - - boolean - - jakarta.faces.component.UIForm.visitTree -
- ( - VisitContext - , -
- VisitCallback - ) -
-
- Perform a tree visit starting at this node in the tree. UIComponent.visitTree() - implementations do not invoke the VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to - provide optimized tree traversals, for example by only calling the VisitCallback for a subset of - components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the visit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2806 - - String - - jakarta.faces.component.UIGraphic.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2807 - - String - - jakarta.faces.component.UIGraphic.getUrl -
-
-
- Return the image URL for this UIGraphic. This method is a typesafe alias for - getValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2808 - - Object - - jakarta.faces.component.UIGraphic.getValue -
-
-
- Returns the value property of the UIGraphic. This will typically be rendered as an URL. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2809 - - ValueExpression - - jakarta.faces.component.UIGraphic.getValueExpression -
- ( - String - ) -
-
- Return any ValueExpression set for value if a ValueExpression for url is requested; - otherwise, perform the default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2810 - - void - - jakarta.faces.component.UIGraphic.setUrl -
- ( - String - ) -
-
- Set the image URL for this UIGraphic. This method is a typesafe alias for setValue(). - - - true - - -
-
-
- true -
- JSF:JAVADOC:2811 - - void - - jakarta.faces.component.UIGraphic.setValue -
- ( - Object - ) -
-
- Sets the value property of the UIGraphic. This will typically be rendered as an URL. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2812 - - void - - jakarta.faces.component.UIGraphic.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Store any ValueExpression specified for url under value instead; otherwise, perform the - default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2813 - - String - - jakarta.faces.component.UIImportConstants.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2814 - - String - - jakarta.faces.component.UIImportConstants.getType -
-
-
- Returns the fully qualified name of the type to import the constant field values for. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2815 - - String - - jakarta.faces.component.UIImportConstants.getVar -
-
-
- Returns name of request scope attribute under which constants will be exposed as a Map. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2816 - - void - - jakarta.faces.component.UIImportConstants.setType -
- ( - String - ) -
-
- Sets the fully qualified name of the type to import the constant field values for. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2817 - - void - - jakarta.faces.component.UIImportConstants.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Set the ValueExpression used to calculate the value for the specified attribute or - property name, if any. If a ValueExpression is set for the var property, throw an illegal argument - exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2818 - - void - - jakarta.faces.component.UIImportConstants.setVar -
- ( - String - ) -
-
- Sets name of request scope attribute under which constants will be exposed as a Map. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2819 - - UIImportConstants - - jakarta.faces.component.UIImportConstants.UIImportConstants -
-
-
- Create a new UIImportConstants instance with renderer type set to null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2820 - - void - - jakarta.faces.component.UIInput.addValidator -
- ( - Validator - ) -
-
- Add a Validator instance to the set associated with this UIInput. - - true - - -
-
-
- true -
- JSF:JAVADOC:2821 - - void - - jakarta.faces.component.UIInput.addValueChangeListener -
- ( - ValueChangeListener - ) -
-
- Add a new ValueChangeListener to the set of listeners interested in being notified when - ValueChangeEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2822 - - void - - jakarta.faces.component.UIInput.clearInitialState -
-
-
- For each of the attached objects on this instance that implement PartialStateHolder, - call PartialStateHolder#clearInitialState on the attached object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2823 - - void - - jakarta.faces.component.UIInput.decode -
- ( - FacesContext - ) -
-
- Decode any new state of this UIComponent from the request contained in the specified - FacesContext, and store this state as needed. During decoding, events may be enqueued for later - processing (by event listeners who have registered an interest), by calling queueEvent(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2824 - - String - - jakarta.faces.component.UIInput.getConverterMessage -
-
-
- If there has been a call to #setConverterMessage on this instance, return the message. - Otherwise, call #getValueExpression passing the key "converterMessage", get the result of the - expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in - a FacesException and rethrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2825 - - String - - jakarta.faces.component.UIInput.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2826 - - String - - jakarta.faces.component.UIInput.getRequiredMessage -
-
-
- If there has been a call to #setRequiredMessage on this instance, return the message. - Otherwise, call #getValueExpression passing the key "requiredMessage", get the result of the - expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in - a FacesException and rethrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2827 - - Object - - jakarta.faces.component.UIInput.getSubmittedValue -
-
-
- Return the submittedValue value of this UIInput component. This method should only be - used by the decode() and validate() method of this component, or its corresponding Renderer. - - true - - -
-
-
- true -
- JSF:JAVADOC:2828 - - String - - jakarta.faces.component.UIInput.getValidatorMessage -
-
-
- If there has been a call to #setValidatorMessage on this instance, return the message. - Otherwise, call #getValueExpression passing the key "validatorMessage", get the result of the - expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in - a FacesException and rethrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:2829 - - Validator[] - - jakarta.faces.component.UIInput.getValidators -
-
-
- Return the set of registered Validators for this UIInput instance. If there are no - registered validators, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2830 - - Object - - jakarta.faces.component.UIInput.getValue -
-
-
- If there is a local value, return it, otherwise return the result of calling - super.getVaue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2831 - - ValueChangeListener[] - - jakarta.faces.component.UIInput.getValueChangeListeners -
-
-
- Return the set of registered ValueChangeListeners for this UIInput instance. If there - are no registered listeners, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2832 - - boolean - - jakarta.faces.component.UIInput.isEmpty -
- ( - Object - ) -
-
- Is the value denoting an empty value. If the value is null, return true. If the value - is a String and it is the empty string, return true. If the value is an array and the array length - is 0, return true. If the value is a List and the List is empty, return true. If the value is a - Collection and the Collection is empty, return true. If the value is a Map and the Map is empty, - return true. In all other cases, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2833 - - boolean - - jakarta.faces.component.UIInput.isImmediate -
-
-
- Return the "immediate" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2834 - - boolean - - jakarta.faces.component.UIInput.isLocalValueSet -
-
-
- Return the "local value set" state for this component. Calls to setValue() - automatically reset this property to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2835 - - boolean - - jakarta.faces.component.UIInput.isRequired -
-
-
- Return the "required field" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2836 - - boolean - - jakarta.faces.component.UIInput.isValid -
-
-
- Return a flag indicating whether the local value of this component is valid (no - conversion error has occurred). - - true - - -
-
-
- true -
- JSF:JAVADOC:2837 - - void - - jakarta.faces.component.UIInput.markInitialState -
-
-
- In addition to the actions taken in UIOutput when PartialStateHolder#markInitialState() - is called, check if any of the installed Validators are PartialStateHolders and if so, call - jakarta.faces.component.PartialStateHolder#markInitialState() as appropriate. - - true - - -
-
-
- true -
- JSF:JAVADOC:2838 - - void - - jakarta.faces.component.UIInput.processDecodes -
- ( - FacesContext - ) -
-
- Specialized decode behavior on top of that provided by the superclass. In addition to - the standard processDecodes behavior inherited from UIComponentBase, calls validate() if the the - immediate property is true; if the component is invalid afterwards or a RuntimeException is thrown, - calls FacesContext#renderResponse. - - true - - -
-
-
- true -
- JSF:JAVADOC:2839 - - void - - jakarta.faces.component.UIInput.processUpdates -
- ( - FacesContext - ) -
-
- In addition to the standard processUpdates behavior inherited from UIComponentBase, - calls updateModel(). If the component is invalid afterwards, calls FacesContext#renderResponse. If a - RuntimeException is thrown during update processing, calls FacesContext#renderResponse and re-throw - the exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2840 - - void - - jakarta.faces.component.UIInput.processValidators -
- ( - FacesContext - ) -
-
- In addition to the standard processValidators behavior inherited from UIComponentBase, - calls validate() if the immediate property is false (which is the default); if the component is - invalid afterwards, calls FacesContext#renderResponse. To ensure the PostValidateEvent is published - at the proper time, this component must be validated first, followed by the component's children and - facets. If a RuntimeException is thrown during validation processing, calls - FacesContext#renderResponse and re-throw the exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2841 - - void - - jakarta.faces.component.UIInput.removeValidator -
- ( - Validator - ) -
-
- Remove a Validator instance from the set associated with this UIInput, if it was - previously associated. Otherwise, do nothing. - - true - - -
-
-
- true -
- JSF:JAVADOC:2842 - - void - - jakarta.faces.component.UIInput.removeValueChangeListener -
- ( - ValueChangeListener - ) -
-
- Remove an existing ValueChangeListener (if any) from the set of listeners interested in - being notified when ValueChangeEvents occur. - - true - - -
-
-
- true -
- JSF:JAVADOC:2843 - - void - - jakarta.faces.component.UIInput.resetValue -
-
-
- Convenience method to reset this component's value to the un-initialized state. This - method does the following: Call UIOutput#setValue. Call #setSubmittedValue passing null. Clear state - for property localValueSet. Clear state for property valid. Upon return from this call if the - instance had a ValueBinding associated with it for the "value" property, this binding is evaluated - when UIOutput#getValue is called. Otherwise, null is returned from getValue(). - - true - - -
-
-
- true -
- JSF:JAVADOC:2844 - - void - - jakarta.faces.component.UIInput.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2845 - - Object - - jakarta.faces.component.UIInput.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2846 - - void - - jakarta.faces.component.UIInput.setConverterMessage -
- ( - String - ) -
-
- Override any ValueExpression set for the "converterMessage" with the literal argument - provided to this method. Subsequent calls to #getConverterMessage will return this value; - - true - - -
-
-
- true -
- JSF:JAVADOC:2847 - - void - - jakarta.faces.component.UIInput.setImmediate -
- ( - boolean - ) -
-
- Set the "immediate" state for this component. When set to true, the component's value - will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents - will be delivered in that phase as well. The default value for this property must be false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2848 - - void - - jakarta.faces.component.UIInput.setLocalValueSet -
- ( - boolean - ) -
-
- Sets the "local value set" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2849 - - void - - jakarta.faces.component.UIInput.setRequired -
- ( - boolean - ) -
-
- Set the "required field" state for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2850 - - void - - jakarta.faces.component.UIInput.setRequiredMessage -
- ( - String - ) -
-
- Override any ValueExpression set for the "requiredMessage" with the literal argument - provided to this method. Subsequent calls to #getRequiredMessage will return this value; - - true - - -
-
-
- true -
- JSF:JAVADOC:2851 - - void - - jakarta.faces.component.UIInput.setSubmittedValue -
- ( - Object - ) -
-
- Set the submittedValue value of this UIInput component. This method should only be used - by the decode() and validate() method of this component, or its corresponding Renderer. - - true - - -
-
-
- true -
- JSF:JAVADOC:2852 - - void - - jakarta.faces.component.UIInput.setValid -
- ( - boolean - ) -
-
- Set a flag indicating whether the local value of this component is valid (no conversion - error has occurred). - - true - - -
-
-
- true -
- JSF:JAVADOC:2853 - - void - - jakarta.faces.component.UIInput.setValidatorMessage -
- ( - String - ) -
-
- Override any ValueExpression set for the "validatorMessage" with the literal argument - provided to this method. Subsequent calls to #getValidatorMessage will return this value; - - true - - -
-
-
- true -
- JSF:JAVADOC:2854 - - void - - jakarta.faces.component.UIInput.setValue -
- ( - Object - ) -
-
- Set the value of this UIComponent (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:2855 - - String - - jakarta.faces.component.UIMessage.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2856 - - String - - jakarta.faces.component.UIMessage.getFor -
-
-
- Return the Identifier of the component for which to render error messages. If this - component is within the same NamingContainer as the target component, this must be the component - identifier. Otherwise, it must be an absolute component identifier (starting with ":"). See the - UIComponent#findComponent for more information. - - true - - -
-
-
- true -
- JSF:JAVADOC:2857 - - boolean - - jakarta.faces.component.UIMessage.isRedisplay -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2858 - - boolean - - jakarta.faces.component.UIMessage.isShowDetail -
-
-
- Return the flag indicating whether the detail property of the associated message(s) - should be displayed. Defaults to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2859 - - boolean - - jakarta.faces.component.UIMessage.isShowSummary -
-
-
- Return the flag indicating whether the summary property of the associated message(s) - should be displayed. Defaults to false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2860 - - void - - jakarta.faces.component.UIMessage.setFor -
- ( - String - ) -
-
- Set the identifier of the component for which this component represents associated - message(s) (if any). This property must be set before the message is displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2861 - - void - - jakarta.faces.component.UIMessage.setRedisplay -
- ( - boolean - ) -
-
- Set the flag indicating whether the detail property of the associated message(s) should - be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2862 - - void - - jakarta.faces.component.UIMessage.setShowDetail -
- ( - boolean - ) -
-
- Set the flag indicating whether the detail property of the associated message(s) should - be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2863 - - void - - jakarta.faces.component.UIMessage.setShowSummary -
- ( - boolean - ) -
-
- Set the flag indicating whether the summary property of the associated message(s) - should be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2864 - - UIMessage - - jakarta.faces.component.UIMessage.UIMessage -
-
-
- Create a new UIMessage instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2865 - - String - - jakarta.faces.component.UIMessages.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2866 - - String - - jakarta.faces.component.UIMessages.getFor -
-
-
- Return the client identifier of the component for which this component represents - associated message(s) (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:2867 - - boolean - - jakarta.faces.component.UIMessages.isGlobalOnly -
-
-
- Return the flag indicating whether only global messages (that is, messages with no - associated client identifier) should be rendered. Mutually exclusive with the "for" property which - takes precedence. Defaults to false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2868 - - boolean - - jakarta.faces.component.UIMessages.isRedisplay -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2869 - - boolean - - jakarta.faces.component.UIMessages.isShowDetail -
-
-
- Return the flag indicating whether the detail property of the associated message(s) - should be displayed. Defaults to false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2870 - - boolean - - jakarta.faces.component.UIMessages.isShowSummary -
-
-
- Return the flag indicating whether the summary property of the associated message(s) - should be displayed. Defaults to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:2871 - - void - - jakarta.faces.component.UIMessages.setFor -
- ( - String - ) -
-
- Set the client identifier of the component for which this component represents - associated message(s) (if any). This property must be set before the message is displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2872 - - void - - jakarta.faces.component.UIMessages.setGlobalOnly -
- ( - boolean - ) -
-
- Set the flag indicating whether only global messages (that is, messages with no - associated client identifier) should be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:2873 - - void - - jakarta.faces.component.UIMessages.setRedisplay -
- ( - boolean - ) -
-
- Set the flag indicating whether the detail property of the associated message(s) should - be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2874 - - void - - jakarta.faces.component.UIMessages.setShowDetail -
- ( - boolean - ) -
-
- Set the flag indicating whether the detail property of the associated message(s) should - be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2875 - - void - - jakarta.faces.component.UIMessages.setShowSummary -
- ( - boolean - ) -
-
- Set the flag indicating whether the summary property of the associated message(s) - should be displayed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2876 - - UIMessages - - jakarta.faces.component.UIMessages.UIMessages -
-
-
- Create a new UIMessages instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2877 - - String - - jakarta.faces.component.UINamingContainer.createUniqueId -
- ( - FacesContext - , -
- String - ) -
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed - value can be supplied by component creators which should be included in the generated unique id. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2878 - - String - - jakarta.faces.component.UINamingContainer.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2879 - - char - - jakarta.faces.component.UINamingContainer.getSeparatorChar -
- ( - FacesContext - ) -
-
- Return the character used to separate segments of a clientId. The implementation must - determine if there is a with the value given by the value of the symbolic constant - #SEPARATOR_CHAR_PARAM_NAME. If there is a value for this param, the first character of the value - must be returned from this method. Otherwise, the value of the symbolic constant - NamingContainer#SEPARATOR_CHAR must be returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:2880 - - boolean - - jakarta.faces.component.UINamingContainer.visitTree -
- ( - VisitContext - , -
- VisitCallback - ) -
-
- Perform a tree visit starting at this node in the tree. UIComponent.visitTree() - implementations do not invoke the VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to - provide optimized tree traversals, for example by only calling the VisitCallback for a subset of - components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the visit. - - true - - -
-
-
- true -
- JSF:JAVADOC:2881 - - String - - jakarta.faces.component.UIOutcomeTarget.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2882 - - String - - jakarta.faces.component.UIOutcomeTarget.getOutcome -
-
-
- Returns the outcome property of the UIOutcomeTarget. This value is passed to the - jakarta.faces.application.NavigationHandler when resolving the target url of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2883 - - boolean - - jakarta.faces.component.UIOutcomeTarget.isDisableClientWindow -
-
-
- Return whether or not the client window should be encoded into the target url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2884 - - boolean - - jakarta.faces.component.UIOutcomeTarget.isIncludeViewParams -
-
-
- Return whether or not the view parameters should be encoded into the target url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2885 - - void - - jakarta.faces.component.UIOutcomeTarget.setDisableClientWindow -
- ( - boolean - ) -
-
- Set whether or not the client window should be encoded into the target url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2886 - - void - - jakarta.faces.component.UIOutcomeTarget.setIncludeViewParams -
- ( - boolean - ) -
-
- Set whether or not the page parameters should be encoded into the target url. - - true - - -
-
-
- true -
- JSF:JAVADOC:2887 - - void - - jakarta.faces.component.UIOutcomeTarget.setOutcome -
- ( - String - ) -
-
- Sets the outcome property of the UIOutcomeTarget. This value is passed to the - NavigationHandler when resolving the target url of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2888 - - UIOutcomeTarget - - jakarta.faces.component.UIOutcomeTarget.UIOutcomeTarget -
-
-
- Create a new UIOutcomeTarget instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2889 - - void - - jakarta.faces.component.UIOutput.clearInitialState -
-
-
- For each of the attached objects on this instance that implement PartialStateHolder, - call PartialStateHolder#clearInitialState on the attached object. - - true - - -
-
-
- true -
- JSF:JAVADOC:2890 - - Converter - - jakarta.faces.component.UIOutput.getConverter -
-
-
- Return the Converter (if any) that is registered for this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2891 - - String - - jakarta.faces.component.UIOutput.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2892 - - Object - - jakarta.faces.component.UIOutput.getLocalValue -
-
-
- Return the local value of this UIComponent (if any), without evaluating any associated - ValueExpression. - - true - - -
-
-
- true -
- JSF:JAVADOC:2893 - - void - - jakarta.faces.component.UIOutput.markInitialState -
-
-
- In addition to the actions taken in UIComponentBase when - PartialStateHolder#markInitialState() is called, check if the installed Converter is a - PartialStateHolder and if it is, call jakarta.faces.component.PartialStateHolder#markInitialState() - on it. - - true - - -
-
-
- true -
- JSF:JAVADOC:2894 - - void - - jakarta.faces.component.UIOutput.resetValue -
-
-
- Convenience method to reset this component's value to the un-initialized state. - - true - - -
-
-
- true -
- JSF:JAVADOC:2895 - - void - - jakarta.faces.component.UIOutput.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2896 - - Object - - jakarta.faces.component.UIOutput.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2897 - - void - - jakarta.faces.component.UIOutput.setConverter -
- ( - Converter - ) -
-
- Set the Converter (if any) that is registered for this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:2898 - - String - - jakarta.faces.component.UIPanel.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2899 - - String - - jakarta.faces.component.UIParameter.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2900 - - Object - - jakarta.faces.component.UIParameter.getValue -
-
-
- Returns the value property of the UIParameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2901 - - boolean - - jakarta.faces.component.UIParameter.isDisable -
-
-
- Return the value of the disable directive for this component. This directive determines - whether the parameter value should be disabled by assigning it a null value. If true, the value set - on this component is ignored. - - true - - -
-
-
- true -
- JSF:JAVADOC:2902 - - void - - jakarta.faces.component.UIParameter.setDisable -
- ( - boolean - ) -
-
- Sets the disable property of the UIParameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2903 - - void - - jakarta.faces.component.UIParameter.setValue -
- ( - Object - ) -
-
- Sets the value property of the\ UIParameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2904 - - String - - jakarta.faces.component.UISelectBoolean.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2905 - - ValueExpression - - jakarta.faces.component.UISelectBoolean.getValueExpression -
- ( - String - ) -
-
- Return any ValueExpression set for value if a ValueExpression for selected is - requested; otherwise, perform the default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2906 - - void - - jakarta.faces.component.UISelectBoolean.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Store any ValueExpression specified for selected under value instead; otherwise, - perform the default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2907 - - String - - jakarta.faces.component.UISelectItem.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2908 - - Object - - jakarta.faces.component.UISelectItem.getItemValue -
-
-
- Return the server value for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2909 - - Object - - jakarta.faces.component.UISelectItem.getValue -
-
-
- Returns the value property of the UISelectItem. - - true - - -
-
-
- true -
- JSF:JAVADOC:2910 - - boolean - - jakarta.faces.component.UISelectItem.isItemDisabled -
-
-
- Return the disabled setting for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2911 - - boolean - - jakarta.faces.component.UISelectItem.isItemEscaped -
-
-
- Return the escape setting for the label of this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2912 - - boolean - - jakarta.faces.component.UISelectItem.isNoSelectionOption -
-
-
- Return the value of the noSelectionOption property. If the value of this property is - true, the system interprets the option represented by this UISelectItem instance as representing a - "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2913 - - void - - jakarta.faces.component.UISelectItem.setItemDisabled -
- ( - boolean - ) -
-
- Set the disabled value for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2914 - - void - - jakarta.faces.component.UISelectItem.setItemEscaped -
- ( - boolean - ) -
-
- Set the escape value for the label of this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2915 - - void - - jakarta.faces.component.UISelectItem.setItemValue -
- ( - Object - ) -
-
- Set the server value for this selection item. - - true - - -
-
-
- true -
- JSF:JAVADOC:2916 - - void - - jakarta.faces.component.UISelectItem.setNoSelectionOption -
- ( - boolean - ) -
-
- Set the value of the noSelectionOption property. - - true - - -
-
-
- true -
- JSF:JAVADOC:2917 - - void - - jakarta.faces.component.UISelectItem.setValue -
- ( - Object - ) -
-
- Sets the value property of the UISelectItem. - - true - - -
-
-
- true -
- JSF:JAVADOC:2918 - - Object - - jakarta.faces.component.UISelectItemGroup.getValue -
-
-
- Return a new SelectItemGroup instance containing one or more SelectItem instances - represented by any nested UISelectItems or UISelectItem components. - - true - - -
-
-
- true -
- JSF:JAVADOC:2919 - - UISelectItemGroup - - jakarta.faces.component.UISelectItemGroup.UISelectItemGroup -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2920 - - Object - - jakarta.faces.component.UISelectItemGroups.getValue -
-
-
- Iterate over the value attribute and wrap each item in a new SelectItemGroup instance - whereby the item is exposed as a request attribute under the key specified by the var property. This - must allow any nested UISelectItems or UISelectItem component to access the item via their - attributes. Finally return these SelectItemGroup instances as an ordered collection. - - true - - -
-
-
- true -
- JSF:JAVADOC:2921 - - UISelectItemGroups - - jakarta.faces.component.UISelectItemGroups.UISelectItemGroups -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2922 - - String - - jakarta.faces.component.UISelectItems.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2923 - - Object - - jakarta.faces.component.UISelectItems.getValue -
-
-
- Returns the value property of the UISelectItems. - - true - - -
-
-
- true -
- JSF:JAVADOC:2924 - - void - - jakarta.faces.component.UISelectItems.setValue -
- ( - Object - ) -
-
- Sets the value property of the UISelectItems. - - true - - -
-
-
- true -
- JSF:JAVADOC:2925 - - void - - jakarta.faces.component.UISelectItems.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Set the ValueExpression used to calculate the value for the specified attribute or - property name, if any. In addition, if a ValueExpression is set for the var property, regardless of - the value, throw an illegal argument exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2926 - - String - - jakarta.faces.component.UISelectMany.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2927 - - ValueExpression - - jakarta.faces.component.UISelectMany.getValueExpression -
- ( - String - ) -
-
- Return any ValueExpression set for value if a ValueExpression for selectedValues is - requested; otherwise, perform the default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2928 - - void - - jakarta.faces.component.UISelectMany.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Store any ValueExpression specified for selectedValues under value instead; otherwise, - perform the default superclass processing for this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:2929 - - String - - jakarta.faces.component.UISelectOne.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2930 - - String - - jakarta.faces.component.UISelectOne.getGroup -
-
-
- Returns the name of the radio button group. Radio button components having the same - group within a UIForm parent will uncheck all others when being checked. If the value attribute is - absent then the one from first component of the group will be used. If the UISelectItem child is - absent then the one from first component of the group will be used. - - true - - -
-
-
- true -
- JSF:JAVADOC:2931 - - void - - jakarta.faces.component.UISelectOne.processValidators -
- ( - FacesContext - ) -
-
- If #getGroup() is set, and #getSubmittedValue() is empty, and at least one other - component having the same group within a UIForm parent has a non-empty #getSubmittedValue() or - returns true on #isLocalValueSet() or returns false on #isValid(), then skip validation for current - component, else perform standard superclass processing by super.processValidators(context). - - true - - -
-
-
- true -
- JSF:JAVADOC:2932 - - void - - jakarta.faces.component.UISelectOne.setGroup -
- ( - String - ) -
-
- Sets the name of the radio button group. - - true - - -
-
-
- true -
- JSF:JAVADOC:2933 - - void - - jakarta.faces.component.UIViewAction.addActionListener -
- ( - ActionListener - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2934 - - void - - jakarta.faces.component.UIViewAction.broadcast -
- ( - FacesEvent - ) -
-
- Enable the method invocation specified by this component instance to return a value - that performs navigation, similar in spirit to UICommand#broadcast. Take no action and return - immediately if any of the following conditions are true. The response has already been marked as - complete. The current UIViewRoot is different from the event's source's UIViewRoot. Save a local - reference to the viewId of the current UIViewRoot. For discussion, let this reference be - viewIdBeforeAction. Obtain the ActionListener from the jakarta.faces.application.Application. Wrap - the current FacesContext in an implementation of jakarta.faces.context.FacesContextWrapper that - overrides the FacesContext#renderResponse method such that it takes no action. Set the current - FacesContext to be the FacesContextWrapper instance. Make it so a call to #isProcessingBroadcast on - the current FacesContext will return true. This is necessary because the - jakarta.faces.application.NavigationHandler will call this method to determine if the navigation is - happening as the result of a UIViewAction. Invoke ActionListener#processAction. In a finally block, - restore the original FacesContext, make it so a call to #isProcessingBroadcast on the current - context will return false and discard the wrapper. If the response has been marked as complete - during the invocation of processAction(), take no further action and return. Otherwise, compare - viewIdBeforeAction with the viewId of the UIViewRoot on the FacesContext after the invocation of - processAction(). If the two viewIds are the same and no more UIViewAction events have been queued by - a call to #decode, call FacesContext#renderResponse and return. It is possible to detect the case - where no more UIViewAction events have been queued because the number of such events queued has been - noted in the specification for #decode. Otherwise, execute the lifecycle on the new UIViewRoot. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2935 - - void - - jakarta.faces.component.UIViewAction.broadcast -
- ( - FacesEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:2936 - - void - - jakarta.faces.component.UIViewAction.decode -
- ( - FacesContext - ) -
-
- Override behavior from the superclass to queue an ActionEvent that may result in the - invocation of the action or any actionListeners that may be associated with this instance. Take no - action if any of the following conditions are true: The current request is a postback and the - instance has been configured to not operate on postback. See #isOnPostback. The condition stated in - the if property evaluates to false. See #isRendered . Instantiate an ActionEvent, passing this - component instance as the source. Set the phaseId property of the ActionEvent as follows. If this - component instance has been configured with a specific lifecycle phase with a call to #setPhase use - that as the phaseId If the value of the immediate property is true, use - PhaseId#APPLY_REQUEST_VALUES. Otherwise, use PhaseId#INVOKE_APPLICATION. Queue the event with a call - to #queueEvent. Keep track of the number of events that are queued in this way on this run through - the lifecycle. This information is necessary during processing in #broadcast. - - true - - -
-
-
- true -
- JSF:JAVADOC:2937 - - MethodExpression - - jakarta.faces.component.UIViewAction.getActionExpression -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2938 - - ActionListener[] - - jakarta.faces.component.UIViewAction.getActionListeners -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2939 - - String - - jakarta.faces.component.UIViewAction.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2940 - - String - - jakarta.faces.component.UIViewAction.getPhase -
-
-
- Returns the name of the lifecycle phase in which the action is to be queued. - - true - - -
-
-
- true -
- JSF:JAVADOC:2941 - - boolean - - jakarta.faces.component.UIViewAction.isImmediate -
-
-
- If the value of the component's immediate attribute is true, the action will be invoked - during the Apply Request Values Jakarta Faces lifecycle phase. Otherwise, the action will be invoked - during the Invoke Application phase, the default behavior. The phase can be set explicitly in the - phase attribute, which takes precedence over the immediate attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:2942 - - boolean - - jakarta.faces.component.UIViewAction.isOnPostback -
-
-
- If true this component will operate on postback. - - true - - -
-
-
- true -
- JSF:JAVADOC:2943 - - boolean - - jakarta.faces.component.UIViewAction.isProcessingBroadcast -
- ( - FacesContext - ) -
-
- Returns true if the current request processing lifecycle is in the midst of processing - the broadcast of an event queued during a call to #decode. The implementation of #broadcast is - responsible for ensuring that calls to this method accurately reflect this fact. - - true - - -
-
-
- true -
- JSF:JAVADOC:2944 - - boolean - - jakarta.faces.component.UIViewAction.isRendered -
-
-
- Return true if this component should take the actions specified in the #decode method. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2945 - - void - - jakarta.faces.component.UIViewAction.removeActionListener -
- ( - ActionListener - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2946 - - void - - jakarta.faces.component.UIViewAction.setActionExpression -
- ( - MethodExpression - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2947 - - void - - jakarta.faces.component.UIViewAction.setImmediate -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2948 - - void - - jakarta.faces.component.UIViewAction.setOnPostback -
- ( - boolean - ) -
-
- Controls whether or not this component operates on postback. - - true - - -
-
-
- true -
- JSF:JAVADOC:2949 - - void - - jakarta.faces.component.UIViewAction.setPhase -
- ( - String - ) -
-
- Attempt to set the lifecycle phase in which this instance will queue its ActionEvent. - Pass the argument phase to PhaseId#phaseIdValueOf. If the result is not one of the following values, - FacesException must be thrown. - PhaseId#APPLY_REQUEST_VALUESPhaseId#PROCESS_VALIDATIONSPhaseId#UPDATE_MODEL_VALUESPhaseId#INVOKE_APPLICATION - If set, this value takes precedence over the immediate flag. - - true - - -
-
-
- true -
- JSF:JAVADOC:2950 - - void - - jakarta.faces.component.UIViewAction.setRendered -
- ( - boolean - ) -
-
- Sets the if property of this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:2951 - - UIViewAction - - jakarta.faces.component.UIViewAction.UIViewAction -
-
-
- Create a new UIViewAction instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2952 - - void - - jakarta.faces.component.UIViewParameter.decode -
- ( - FacesContext - ) -
-
- Override behavior from superclass to pull a value from the incoming request parameter - map under the name given by #getName and store it with a call to UIInput#setSubmittedValue. - - true - - -
-
-
- true -
- JSF:JAVADOC:2953 - - void - - jakarta.faces.component.UIViewParameter.encodeAll -
- ( - FacesContext - ) -
-
- Called specially by UIViewRoot#encodeEnd, this method simply sets the submitted value - to be the return from #getStringValue. - - true - - -
-
-
- true -
- JSF:JAVADOC:2954 - - void - - jakarta.faces.component.UIViewParameter.encodeAll -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- when an I/O error occurs. - - true - - -
-
-
- true -
- JSF:JAVADOC:2955 - - String - - jakarta.faces.component.UIViewParameter.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2956 - - String - - jakarta.faces.component.UIViewParameter.getName -
-
-
- Return the request parameter name from which the value is retrieved. - - true - - -
-
-
- true -
- JSF:JAVADOC:2957 - - String - - jakarta.faces.component.UIViewParameter.getStringValue -
- ( - FacesContext - ) -
-
- If the value of this parameter comes from a ValueExpression return the value of the - expression, otherwise, return the local value. - - true - - -
-
-
- true -
- JSF:JAVADOC:2958 - - String - - jakarta.faces.component.UIViewParameter.getStringValueFromModel -
- ( - FacesContext - ) -
-
- Manually perform standard conversion steps to get a string value from the value - expression. - - true - - -
-
-
- true -
- JSF:JAVADOC:2959 - - String - - jakarta.faces.component.UIViewParameter.getStringValueFromModel -
- ( - FacesContext - ) - -
- throws - ConverterException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2960 - - Object - - jakarta.faces.component.UIViewParameter.getSubmittedValue -
-
-
- Assume that the submitted value is always a string, but the return type from this - method is Object.. - - true - - -
-
-
- true -
- JSF:JAVADOC:2961 - - boolean - - jakarta.faces.component.UIViewParameter.isImmediate -
-
-
- Return false. The immediate setting is not relevant for view parameters and must be - assumed to be false. - - true - - -
-
-
- true -
- JSF:JAVADOC:2962 - - void - - jakarta.faces.component.UIViewParameter.processValidators -
- ( - FacesContext - ) -
-
- Specialize superclass behavior to treat null differently. In this class, a null value - along with the "required" flag being set to true will cause a validation failure. Otherwise, If the - UIInput#EMPTY_STRING_AS_NULL_PARAM_NAME context parameter is true and the value is null, call - UIInput#setSubmittedValue passing the empty string as the argument. This will cause the normal - validation processing to happen, including bean validation. - - true - - -
-
-
- true -
- JSF:JAVADOC:2963 - - void - - jakarta.faces.component.UIViewParameter.setName -
- ( - String - ) -
-
- Set the request parameter name from which the value is retrieved. - - true - - -
-
-
- true -
- JSF:JAVADOC:2964 - - void - - jakarta.faces.component.UIViewParameter.setSubmittedValue -
- ( - Object - ) -
-
- PENDING (docs) Interesting that submitted value isn't saved by the parent - - true - - -
-
-
- true -
- JSF:JAVADOC:2965 - - UIViewParameter - - jakarta.faces.component.UIViewParameter.UIViewParameter -
-
-
- Create a new UIViewParameter instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:2966 - - void - - jakarta.faces.component.UIViewParameter.updateModel -
- ( - FacesContext - ) -
-
- Call through to superclass UIInput#updateModel then take the additional action of - pushing the value into request scope if and only if the value is not a value expression, is valid, - and the local value was set on this lifecycle execution. - - true - - -
-
-
- true -
- JSF:JAVADOC:2967 - - UIViewParameter - - jakarta.faces.component.UIViewParameter.Reference.getUIViewParameter -
- ( - FacesContext - ) -
-
- Return the UIViewParameter to which this instance refers. If the current viewId is the - same as the viewId passed to our constructor, use the index passed to the constructor to find the - actual UIViewParameter instance and return it. Otherwise, call StateHolder#restoreState on the saved - state and return the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:2968 - - Reference - - jakarta.faces.component.UIViewParameter.Reference.UIViewParameter.Reference -
- ( - FacesContext - , -
- UIViewParameter - , -
- int - , -
- String - ) -
-
- Construct a reference to a UIViewParameter. This constructor cause the - StateHolder#saveState method to be called on argument UIViewParameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:2969 - - void - - jakarta.faces.component.UIViewRoot.addComponentResource -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Add argument component, which is assumed to represent a resource instance, as a - resource to this view. A resource instance is rendered by a resource Renderer, as described in the - Standard HTML RenderKit. The default implementation must call through to - #addComponentResource(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, - java.lang.String). - - true - - -
-
-
- true -
- JSF:JAVADOC:2970 - - void - - jakarta.faces.component.UIViewRoot.addComponentResource -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Add argument component, which is assumed to represent a resource instance, as a - resource to this view. A resource instance is rendered by a resource Renderer, as described in the - Standard HTML RenderKit. The component must be added using the following algorithm: If the target - argument is null, look for a target attribute on the component. If there is no target attribute, set - target to be the default value head Call #getComponentResources to obtain the child list for the - given target. If the component ID of componentResource matches the the ID of a resource that has - allready been added, remove the old resource. Add the component resource to the list. The resource - Renderer must ensure of the following: Do not render when - ResourceHandler#isResourceRendered(FacesContext, String, String) returns true. After rendering, call - ResourceHandler#markResourceRendered(FacesContext, String, String). - - true - - -
-
-
- true -
- JSF:JAVADOC:2971 - - void - - jakarta.faces.component.UIViewRoot.addPhaseListener -
- ( - PhaseListener - ) -
-
- Add the argument newPhaseListener to the list of PhaseListeners on this UIViewRoot. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2972 - - void - - jakarta.faces.component.UIViewRoot.broadcastEvents -
- ( - FacesContext - , -
- PhaseId - ) -
-
- Broadcast any events that have been queued. First broadcast events that have been - queued for PhaseId#ANY_PHASE. Then broadcast ane events that have been queued for the current phase. - In both cases, UIComponent#pushComponentToEL must be called before the event is broadcast, and - UIComponent#popComponentFromEL must be called after the return from the broadcast, even in the case - of an exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:2973 - - String - - jakarta.faces.component.UIViewRoot.createUniqueId -
-
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within the non-NamingContainer child sub-trees of this - UIViewRoot. - - true - - -
-
-
- true -
- JSF:JAVADOC:2974 - - String - - jakarta.faces.component.UIViewRoot.createUniqueId -
- ( - FacesContext - , -
- String - ) -
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within this UIViewRoot. Optionally, a unique seed value can be - supplied by component creators which should be included in the generated unique id. - - true - - -
-
-
- true -
- JSF:JAVADOC:2975 - - void - - jakarta.faces.component.UIViewRoot.encodeBegin -
- ( - FacesContext - ) -
-
- Override the default UIComponentBase#encodeBegin behavior. If #getBeforePhaseListener - returns non-null, invoke it, passing a PhaseEvent for the PhaseId#RENDER_RESPONSE phase. If the - internal list populated by calls to #addPhaseListener is non-empty, any listeners in that list must - have their PhaseListener#beforePhase method called, passing the PhaseEvent. Any Exceptions that - occur during invocation of any of the beforePhase listeners must be logged and swallowed, unless the - #VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME parameter is set. In that case, the Exception - must be passed to the jakarta.faces.context.ExceptionHandler as well. - - true - - -
-
-
- true -
- JSF:JAVADOC:2976 - - void - - jakarta.faces.component.UIViewRoot.encodeBegin -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2977 - - void - - jakarta.faces.component.UIViewRoot.encodeChildren -
- ( - FacesContext - ) -
-
- If jakarta.faces.context.PartialViewContext#isAjaxRequest returns true, perform partial - rendering by calling jakarta.faces.context.PartialViewContext#processPartial with - PhaseId#RENDER_RESPONSE. If jakarta.faces.context.PartialViewContext#isAjaxRequest returns false, - delegate to the parent jakarta.faces.component.UIComponentBase#encodeChildren method. If this - UIViewRoot is an instance of NamingContainer, then the Jakarta Faces implementation must ensure that - all encoded POST request parameter names are prefixed with - UIViewRoot#getContainerClientId(FacesContext) as per rules of UIComponent#getClientId(FacesContext). - This also covers all predefined POST request parameters which are listed below: - ResponseStateManager#VIEW_STATE_PARAMResponseStateManager#CLIENT_WINDOW_PARAMResponseStateManager#RENDER_KIT_ID_PARAMClientBehaviorContext#BEHAVIOR_SOURCE_PARAM_NAMEClientBehaviorContext#BEHAVIOR_EVENT_PARAM_NAMEPartialViewContext#PARTIAL_EVENT_PARAM_NAMEPartialViewContext#PARTIAL_EXECUTE_PARAM_NAMEPartialViewContext#PARTIAL_RENDER_PARAM_NAMEPartialViewContext#RESET_VALUES_PARAM_NAME - - - true - - -
-
-
- true -
- JSF:JAVADOC:2978 - - void - - jakarta.faces.component.UIViewRoot.encodeChildren -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2979 - - void - - jakarta.faces.component.UIViewRoot.encodeEnd -
- ( - FacesContext - ) -
-
- If #getAfterPhaseListener returns non-null, invoke it, passing a PhaseEvent for the - PhaseId#RENDER_RESPONSE phase. Any Exceptions that occur during invocation of the afterPhase - listener must be logged and swallowed, unless the - #VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME parameter is set. In that case, the Exception - must be passed to the jakarta.faces.context.ExceptionHandler as well.. If the current view has view - parameters, as indicated by a non-empty and non-UnsupportedOperationException throwing return from - jakarta.faces.view.ViewDeclarationLanguage#getViewMetadata(jakarta.faces.context.FacesContext, - String), call UIViewParameter#encodeAll on each parameter. If calling getViewParameters() causes - UnsupportedOperationException to be thrown, the exception must be silently swallowed. - - true - - -
-
-
- true -
- JSF:JAVADOC:2980 - - void - - jakarta.faces.component.UIViewRoot.encodeEnd -
- ( - FacesContext - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:2981 - - MethodExpression - - jakarta.faces.component.UIViewRoot.getAfterPhaseListener -
-
-
- Return the MethodExpression that will be invoked after this view is rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:2982 - - MethodExpression - - jakarta.faces.component.UIViewRoot.getBeforePhaseListener -
-
-
- Return the MethodExpression that will be invoked before this view is rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:2983 - - List - - jakarta.faces.component.UIViewRoot.getComponentResources -
- ( - FacesContext - , -
- String - ) -
-
- Return an unmodifiable List of UIComponents for the provided target agrument. Each - component in the List is assumed to represent a resource instance. The default implementation must - use an algorithm equivalent to the the following. Locate the facet for the component by calling - getFacet() using target as the argument. If the facet is not found, create the facet by calling - context.getApplication().createComponent(). The argument to this method must refer to a component - that extends UIPanel and overrides the encodeAll() method to take no action. This is necessary to - prevent component resources from being inadvertently rendered. Set the id of the facet to be a - string created by prepending the literal string #8220;jakarta_faces_location_ #8221; (without the - quotes) to the value of the target argument Add the facet to the facets Map using target as the key - return the children of the facet - - true - - -
-
-
- true -
- JSF:JAVADOC:2984 - - List - - jakarta.faces.component.UIViewRoot.getComponentResources -
- ( - FacesContext - ) -
-
- Return an unmodifiable ordered List of all UIComponent resources of all supported - targets. Each component in the List is assumed to represent a resource instance. The ordering is the - same as the resources would appear in the component tree. - - true - - -
-
-
- true -
- JSF:JAVADOC:2985 - - Doctype - - jakarta.faces.component.UIViewRoot.getDoctype -
-
-
- Return the doctype of this view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2986 - - String - - jakarta.faces.component.UIViewRoot.getFamily -
-
-
- Return the identifier of the component family to which this component belongs. This - identifier, in conjunction with the value of the rendererType property, may be used to select the - appropriate Renderer for this component instance. Note this method should NOT return null - - true - - -
-
-
- true -
- JSF:JAVADOC:2987 - - Locale - - jakarta.faces.component.UIViewRoot.getLocale -
-
-
- Return the Locale to be used in localizing the response being created for this view. - Algorithm: If we have a locale ivar, return it. If we have a value expression for "locale", get its - value. If the value is null, return the result of calling - jakarta.faces.application.ViewHandler#calculateLocale. If the value is an instance of - java.util.Locale return it. If the value is a String, convert it to a java.util.Locale and return - it. If there is no value expression for "locale", return the result of calling - jakarta.faces.application.ViewHandler#calculateLocale. - - true - - -
-
-
- true -
- JSF:JAVADOC:2988 - - List - - jakarta.faces.component.UIViewRoot.getPhaseListeners -
-
-
- Return an unmodifiable list of the PhaseListener instances attached to this UIViewRoot - instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:2989 - - String - - jakarta.faces.component.UIViewRoot.getRenderKitId -
-
-
- Return the render kit identifier of the jakarta.faces.render.RenderKit associated with - this view. Unless explicitly set, as in jakarta.faces.application.ViewHandler#createView, the - returned value will be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:2990 - - boolean - - jakarta.faces.component.UIViewRoot.getRendersChildren -
-
-
- Call UIComponentBase#getRendersChildren If - jakarta.faces.context.PartialViewContext#isAjaxRequest returns true this method must return true. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2991 - - String - - jakarta.faces.component.UIViewRoot.getViewId -
-
-
- Return the view identifier for this view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2992 - - List - - jakarta.faces.component.UIViewRoot.getViewListenersForEventClass -
- ( - Class - ) -
-
- Return the SystemEventListener instances registered on this UIComponent instance that - are interested in events of type eventClass. - - true - - -
-
-
- true -
- JSF:JAVADOC:2993 - - Map - - jakarta.faces.component.UIViewRoot.getViewMap -
-
-
- This implementation simply calls through to #getViewMap(boolean), passing true as the - argument, and returns the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:2994 - - Map - - jakarta.faces.component.UIViewRoot.getViewMap -
- ( - boolean - ) -
-
- Returns a Map that acts as the interface to the data store that is the "view scope", - or, if this instance does not have such a Map and the create argument is true, creates one and - returns it. This map must be instantiated lazily and cached for return from subsequent calls to this - method on this UIViewRoot instance. jakarta.faces.application.Application#publishEvent must be - called, passing the current FacesContext as the first argument, PostConstructViewMapEvent.class as - the second argument, UIViewRoot.class as the third argument and this UIViewRoot instance as the - fourth argument. It is necessary to pass the UIViewRoot.class argument to account for cases when the - UIViewRoot has been extended with a custom class. The returned Map must be implemented such that - calling clear() on the Map causes jakarta.faces.application.Application#publishEvent to be called, - passing PreDestroyViewMapEvent.class as the first argument and this UIViewRoot instance as the - second argument. Depending upon application configuration, objects stored in the view map may need - to be Serializable. In general, it is a good idea to ensure that any objects stored in the view map - are Serializable. For reasons made clear in jakarta.faces.view.ViewScoped, this map must ultimately - be stored in the session. For this reason, a true value for the create argument will force the - session to be created with a call to jakarta.faces.context.ExternalContext#getSession(boolean). See - FacesContext#setViewRoot for the specification of when the clear() method must be called. - - true - - -
-
-
- true -
- JSF:JAVADOC:2995 - - boolean - - jakarta.faces.component.UIViewRoot.isInView -
-
-
- Override superclass method to always return true because a UIViewRoot is defined to - always be in a view. - - true - - -
-
-
- true -
- JSF:JAVADOC:2996 - - void - - jakarta.faces.component.UIViewRoot.processApplication -
- ( - FacesContext - ) -
-
- Broadcast any events that have been queued for the Invoke Application phase of the - request processing lifecycle and to clear out any events for later phases if the event processing - for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - - - true - - -
-
-
- true -
- JSF:JAVADOC:2997 - - void - - jakarta.faces.component.UIViewRoot.processDecodes -
- ( - FacesContext - ) -
-
- Perform partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with PhaseId#APPLY_REQUEST_VALUES if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request - to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns - false) Perform full processing by calling UIComponentBase#processDecodes if one of the following - conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we - have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default - UIComponentBase#processDecodes behavior to broadcast any queued events after the default processing - or partial processing has been completed and to clear out any events for later phases if the event - processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be - called. - - true - - -
-
-
- true -
- JSF:JAVADOC:2998 - - void - - jakarta.faces.component.UIViewRoot.processEvent -
- ( - ComponentSystemEvent - ) -
-
- If the argument event is an instance of PostRestoreStateEvent and - PartialViewContext#isPartialRequest() returns true, then loop over all component resources and call - ResourceHandler#markResourceRendered(FacesContext, String, String) for each of them. Finally, - delegate to super. - - true - - -
-
-
- true -
- JSF:JAVADOC:2999 - - void - - jakarta.faces.component.UIViewRoot.processEvent -
- ( - ComponentSystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3000 - - void - - jakarta.faces.component.UIViewRoot.processRestoreState -
- ( - FacesContext - , -
- Object - ) -
-
- The default implementation must call UIComponentBase#processRestoreState from within a - try block. The try block must have a finally block that ensures that no FacesEvents remain in the - event queue. - - true - - -
-
-
- true -
- JSF:JAVADOC:3001 - - void - - jakarta.faces.component.UIViewRoot.processUpdates -
- ( - FacesContext - ) -
-
- Perform partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with PhaseId#UPDATE_MODEL_VALUES if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request - to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns - false) Perform full processing by calling UIComponentBase#processUpdates if one of the following - conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we - have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default - UIComponentBase behavior to broadcast any queued events after the default processing or partial - processing has been completed and to clear out any events for later phases if the event processing - for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3002 - - void - - jakarta.faces.component.UIViewRoot.processValidators -
- ( - FacesContext - ) -
-
- Perform partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with PhaseId#PROCESS_VALIDATIONS if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request - to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns - false) Perform full processing by calling UIComponentBase#processValidators if one of the following - conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we - have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default - UIComponentBase#processValidators behavior to broadcast any queued events after the default - processing or partial processing has been completed and to clear out any events for later phases if - the event processing for this phase caused FacesContext#renderResponse or - FacesContext#responseComplete to be called. - - true - - -
-
-
- true -
- JSF:JAVADOC:3003 - - void - - jakarta.faces.component.UIViewRoot.queueEvent -
- ( - FacesEvent - ) -
-
- Override the default UIComponentBase#queueEvent behavior to accumulate the queued - events for later broadcasting. - - true - - -
-
-
- true -
- JSF:JAVADOC:3004 - - void - - jakarta.faces.component.UIViewRoot.removeComponentResource -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Remove argument component, which is assumed to represent a resource instance, as a - resource to this view. - - true - - -
-
-
- true -
- JSF:JAVADOC:3005 - - void - - jakarta.faces.component.UIViewRoot.removeComponentResource -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Remove argument component, which is assumed to represent a resource instance, as a - resource to this view. A resource instance is rendered by a resource Renderer, as described in the - Standard HTML RenderKit. The component must be removed using the following algorithm: If the target - argument is null, look for a target attribute on the component. If there is no target attribute, set - target to be the default value head Call #getComponentResources to obtain the child list for the - given target. Remove the component resource from the child list. - - true - - -
-
-
- true -
- JSF:JAVADOC:3006 - - void - - jakarta.faces.component.UIViewRoot.removePhaseListener -
- ( - PhaseListener - ) -
-
- If the argument toRemove is in the list of PhaseListeners for this instance, it must be - removed. - - true - - -
-
-
- true -
- JSF:JAVADOC:3007 - - void - - jakarta.faces.component.UIViewRoot.resetValues -
- ( - FacesContext - , -
- Collection - ) -
-
- Visit the clientIds and, if the component is an instance of EditableValueHolder, call - its EditableValueHolder#resetValue method. Use #visitTree to do the visiting. - - true - - -
-
-
- true -
- JSF:JAVADOC:3008 - - void - - jakarta.faces.component.UIViewRoot.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3009 - - void - - jakarta.faces.component.UIViewRoot.restoreViewScopeState -
- ( - FacesContext - , -
- Object - ) -
-
- Restore ViewScope state. This is needed to allow the use of view scoped beans for - EL-expressions in the template from which the component tree is built. For example: . - - true - - -
-
-
- true -
- JSF:JAVADOC:3010 - - Object - - jakarta.faces.component.UIViewRoot.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3011 - - void - - jakarta.faces.component.UIViewRoot.setAfterPhaseListener -
- ( - MethodExpression - ) -
-
- Allow an arbitrary method to be called for the "afterPhase" event as the UIViewRoot - runs through its lifecycle. This method will be called for all phases including - PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, this approach doesn't allow for only receiving - PhaseEvents for a given phase. The method must conform to the signature of PhaseListener#afterPhase. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3012 - - void - - jakarta.faces.component.UIViewRoot.setBeforePhaseListener -
- ( - MethodExpression - ) -
-
- Allow an arbitrary method to be called for the "beforePhase" event as the UIViewRoot - runs through its lifecycle. This method will be called for all phases except PhaseId#RESTORE_VIEW. - Unlike a true PhaseListener, this approach doesn't allow for only receiving PhaseEvents for a given - phase. The method must conform to the signature of PhaseListener#beforePhase. - - true - - -
-
-
- true -
- JSF:JAVADOC:3013 - - void - - jakarta.faces.component.UIViewRoot.setDoctype -
- ( - Doctype - ) -
-
- Set the doctype of this view. - - true - - -
-
-
- true -
- JSF:JAVADOC:3014 - - void - - jakarta.faces.component.UIViewRoot.setInView -
- ( - boolean - ) -
-
- Overridden to take no action. - - true - - -
-
-
- true -
- JSF:JAVADOC:3015 - - void - - jakarta.faces.component.UIViewRoot.setLocale -
- ( - Locale - ) -
-
- Set the Locale to be used in localizing the response being created for this view. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3016 - - void - - jakarta.faces.component.UIViewRoot.setRenderKitId -
- ( - String - ) -
-
- Set the render kit identifier of the jakarta.faces.render.RenderKit associated with - this view. This method may be called at any time between the end of Apply Request Values phase of - the request processing lifecycle (i.e. when events are being broadcast) and the beginning of the - Render Response phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:3017 - - void - - jakarta.faces.component.UIViewRoot.setViewId -
- ( - String - ) -
-
- Set the view identifier for this view. - - true - - -
-
-
- true -
- JSF:JAVADOC:3018 - - void - - jakarta.faces.component.UIViewRoot.subscribeToViewEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- Install the listener instance referenced by argument listener into the UIViewRoot as a - listener for events of type systemEventClass. Note that installed listeners are not maintained as - part of the UIViewRoot's state. - - true - - -
-
-
- true -
- JSF:JAVADOC:3019 - - UIViewRoot - - jakarta.faces.component.UIViewRoot.UIViewRoot -
-
-
- Create a new UIViewRoot instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:3020 - - void - - jakarta.faces.component.UIViewRoot.unsubscribeFromViewEvent -
- ( - Class - , -
- SystemEventListener - ) -
-
- Remove the listener instance referenced by argument listener from the UIViewRoot as a - listener for events of type systemEventClass. - - true - - -
-
-
- true -
- JSF:JAVADOC:3021 - - String - - jakarta.faces.component.UIWebsocket.getChannel -
-
-
- Returns the name of the websocket channel. - - true - - -
-
-
- true -
- JSF:JAVADOC:3022 - - Collection - - jakarta.faces.component.UIWebsocket.getEventNames -
-
-
- Returns a non-null, empty, unmodifiable Collection which returns true on any - Collection#contains() invocation, indicating that all client behavior event names are acceptable. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3023 - - String - - jakarta.faces.component.UIWebsocket.getFamily -
-
-
- Returns UIWebsocket#COMPONENT_FAMILY. - - true - - -
-
-
- true -
- JSF:JAVADOC:3024 - - String - - jakarta.faces.component.UIWebsocket.getOnclose -
-
-
- Returns the JavaScript event handler function that is invoked when the websocket is - closed and will not anymore attempt to reconnect. - - true - - -
-
-
- true -
- JSF:JAVADOC:3025 - - String - - jakarta.faces.component.UIWebsocket.getOnerror -
-
-
- Returns the JavaScript event handler function that is invoked when a connection error - has occurred and the websocket will attempt to reconnect. - - true - - -
-
-
- true -
- JSF:JAVADOC:3026 - - String - - jakarta.faces.component.UIWebsocket.getOnmessage -
-
-
- Returns the JavaScript event handler function that is invoked when a push message is - received from the server. - - true - - -
-
-
- true -
- JSF:JAVADOC:3027 - - String - - jakarta.faces.component.UIWebsocket.getOnopen -
-
-
- Returns the JavaScript event handler function that is invoked when the websocket is - opened. - - true - - -
-
-
- true -
- JSF:JAVADOC:3028 - - String - - jakarta.faces.component.UIWebsocket.getScope -
-
-
- Returns the scope of the websocket channel. - - true - - -
-
-
- true -
- JSF:JAVADOC:3029 - - Serializable - - jakarta.faces.component.UIWebsocket.getUser -
-
-
- Returns the user identifier of the websocket channel. - - true - - -
-
-
- true -
- JSF:JAVADOC:3030 - - boolean - - jakarta.faces.component.UIWebsocket.isConnected -
-
-
- Returns whether to (auto)connect the websocket or not. - - true - - -
-
-
- true -
- JSF:JAVADOC:3031 - - void - - jakarta.faces.component.UIWebsocket.setChannel -
- ( - String - ) -
-
- Sets the name of the websocket channel. It may not be an Jakarta Expression Language - expression and it may only contain alphanumeric characters, hyphens, underscores and periods. All - open websockets on the same channel will receive the same push message from the server. - - true - - -
-
-
- true -
- JSF:JAVADOC:3032 - - void - - jakarta.faces.component.UIWebsocket.setConnected -
- ( - boolean - ) -
-
- Sets whether to (auto)connect the websocket or not. Defaults to true. It's interpreted - as a JavaScript instruction whether to open or close the websocket push connection. Note that this - attribute is re-evaluated on every ajax request. You can also explicitly set it to false and then - manually control in JavaScript by faces.push.open("channelName") and - faces.push.close("channelName"). - - true - - -
-
-
- true -
- JSF:JAVADOC:3033 - - void - - jakarta.faces.component.UIWebsocket.setOnclose -
- ( - String - ) -
-
- Sets the JavaScript event handler function that is invoked when the websocket is closed - and will not anymore attempt to reconnect. The function will be invoked with three arguments: the - close reason code, the channel name and the raw CloseEvent itself. Note that this will also be - invoked when the close is caused by an error and that you can inspect the close reason code if an - actual connection error occurred and which one (i.e. when the code is not 1000 or 1008). See also - RFC 6455 section 7.4.1 and CloseCodes API for an elaborate list of all close codes. - - true - - -
-
-
- true -
- JSF:JAVADOC:3034 - - void - - jakarta.faces.component.UIWebsocket.setOnerror -
- ( - String - ) -
-
- Sets the JavaScript event handler function that is invoked when a connection error has - occurred and the websocket will attempt to reconnect. The function will be invoked with three - arguments: the error reason code, the channel name and the raw CloseEvent itself. Note that this - will not be invoked on final close of the websocket, even when the final close is caused by an - error. See also RFC 6455 section 7.4.1 and CloseCodes API for an elaborate list of all close codes. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3035 - - void - - jakarta.faces.component.UIWebsocket.setOnmessage -
- ( - String - ) -
-
- Sets the JavaScript event handler function that is invoked when a push message is - received from the server. The function will be invoked with three arguments: the push message, the - channel name and the raw MessageEvent itself. - - true - - -
-
-
- true -
- JSF:JAVADOC:3036 - - void - - jakarta.faces.component.UIWebsocket.setOnopen -
- ( - String - ) -
-
- Sets the JavaScript event handler function that is invoked when the websocket is - opened. The function will be invoked with one argument: the channel name. - - true - - -
-
-
- true -
- JSF:JAVADOC:3037 - - void - - jakarta.faces.component.UIWebsocket.setScope -
- ( - String - ) -
-
- Sets the scope of the websocket channel. It may not be an Jakarta Expression Language - expression and allowed values are application, session and view, case insensitive. When the value is - application, then all channels with the same name throughout the application will receive the same - push message. When the value is session, then only the channels with the same name in the current - user session will receive the same push message. When the value is view, then only the channel in - the current view will receive the push message. The default scope is application. When the user - attribute is specified, then the default scope is session. - - true - - -
-
-
- true -
- JSF:JAVADOC:3038 - - void - - jakarta.faces.component.UIWebsocket.setUser -
- ( - Serializable - ) -
-
- Sets the user identifier of the websocket channel, so that user-targeted push messages - can be sent. All open websockets on the same channel and user will receive the same push message - from the server. It must implement Serializable and preferably have low memory footprint. - Suggestion: use #{request.remoteUser} or #{someLoggedInUser.id}. - - true - - -
-
-
- true -
- JSF:JAVADOC:3039 - - void - - jakarta.faces.component.UIWebsocket.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Set the ValueExpression used to calculate the value for the specified attribute or - property name, if any. If a ValueExpression is set for the channel or scope property, regardless of - the value, throw an illegal argument exception. If a ValueExpression is set for the user property, - and the non-null value is not an instance of Serializable, throw an illegal argument exception. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3040 - - UIWebsocket - - jakarta.faces.component.UIWebsocket.UIWebsocket -
-
-
- Create a new UIWebsocket instance with default property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:3041 - - String - - jakarta.faces.component.UniqueIdVendor.createUniqueId -
- ( - FacesContext - , -
- String - ) -
-
- Generate an identifier for a component. The identifier will be prefixed with - UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed - value can be supplied by component creators which should be included in the generated unique id. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3042 - - FacesMessage - - jakarta.faces.component.UpdateModelException.getFacesMessage -
-
-
- Return the FacesMessage passed to the constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:3043 - - UpdateModelException - - jakarta.faces.component.UpdateModelException.UpdateModelException -
- ( - FacesMessage - , -
- Throwable - ) -
-
- Store the argument facesMessage so it may be returned from #getFacesMessage and pass - the argument cause to the super constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:3044 - - Converter - - jakarta.faces.component.ValueHolder.getConverter -
-
-
- Return the Converter (if any) that is registered for this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:3045 - - Object - - jakarta.faces.component.ValueHolder.getLocalValue -
-
-
- Return the local value of this UIComponent (if any), without evaluating any associated - ValueExpression. - - true - - -
-
-
- true -
- JSF:JAVADOC:3046 - - Object - - jakarta.faces.component.ValueHolder.getValue -
-
-
- Gets the value of this UIComponent. If validation failed, as indicated by - jakarta.faces.context.FacesContext#isValidationFailed returning true, always return the local value. - Otherwise, first, consult the local value property of this component. If non-null return it. If - null, see if we have a ValueExpression for the value property. If so, return the result of - evaluating the property, otherwise return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:3047 - - void - - jakarta.faces.component.ValueHolder.setConverter -
- ( - Converter - ) -
-
- Set the Converter (if any) that is registered for this UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:3048 - - void - - jakarta.faces.component.ValueHolder.setValue -
- ( - Object - ) -
-
- Set the value of this UIComponent (if any). - - true - - -
-
-
- true -
- JSF:JAVADOC:3049 - - void - - jakarta.faces.component.behavior.AjaxBehavior.addAjaxBehaviorListener -
- ( - AjaxBehaviorListener - ) -
-
- Add the specified AjaxBehaviorListener to the set of listeners registered to receive - event notifications from this AjaxBehavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3050 - - AjaxBehavior - - jakarta.faces.component.behavior.AjaxBehavior.AjaxBehavior -
-
-
- Default constructor that just creates this instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:3051 - - String - - jakarta.faces.component.behavior.AjaxBehavior.getDelay -
-
-
- Returns the delay value, or null if no value was set. - - true - - -
-
-
- true -
- JSF:JAVADOC:3052 - - Collection - - jakarta.faces.component.behavior.AjaxBehavior.getExecute -
-
-
- Return a non-empty Collection of component identifiers that will be used to identify - components that should be processed during the execute phase of the request processing lifecycle. - Note that the returned collection may be unmodifiable. Modifications should be performed by calling - #setExecute. - - true - - -
-
-
- true -
- JSF:JAVADOC:3053 - - Set - - jakarta.faces.component.behavior.AjaxBehavior.getHints -
-
-
- This method returns an unmodifiable Set containing the ClientBehaviorHint SUBMITTING. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3054 - - String - - jakarta.faces.component.behavior.AjaxBehavior.getOnerror -
-
-
- Return the String of JavaScript function name that will be used to identify the client - callback function that should be run in the event of an error. - - true - - -
-
-
- true -
- JSF:JAVADOC:3055 - - String - - jakarta.faces.component.behavior.AjaxBehavior.getOnevent -
-
-
- Return the String of JavaScript function name that will be used to identify the client - callback function that should be run on the occurance of a client-side event. - - true - - -
-
-
- true -
- JSF:JAVADOC:3056 - - Collection - - jakarta.faces.component.behavior.AjaxBehavior.getRender -
-
-
- Return a non-empty Collection of component identifiers that will be used to identify - components that should be processed during the render phase of the request processing lifecycle. - Note that the returned collection may be unmodifiable. Modifications should be performed by calling - #setRender. - - true - - -
-
-
- true -
- JSF:JAVADOC:3057 - - String - - jakarta.faces.component.behavior.AjaxBehavior.getRendererType -
-
-
- Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The - default implementation returns null. Subclasses should either override this method to return a - string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and - perform script rendering locally in the ClientBehavior implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:3058 - - ValueExpression - - jakarta.faces.component.behavior.AjaxBehavior.getValueExpression -
- ( - String - ) -
-
- Returns the ValueExpression used to calculate the value for the specified property - name, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:3059 - - boolean - - jakarta.faces.component.behavior.AjaxBehavior.isDisabled -
-
-
- Return the disabled status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3060 - - boolean - - jakarta.faces.component.behavior.AjaxBehavior.isImmediate -
-
-
- Return the immediate status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3061 - - boolean - - jakarta.faces.component.behavior.AjaxBehavior.isImmediateSet -
-
-
- Tests whether the immediate attribute is specified. Returns true if the immediate - attribute is specified, either as a locally set property or as a value expression. This information - allows an associated client behavior renderer to fall back on the parent component's immediate - status when immediate is not explicitly specified on the AjaxBehavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3062 - - boolean - - jakarta.faces.component.behavior.AjaxBehavior.isResetValues -
-
-
- Return the resetValues status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3063 - - boolean - - jakarta.faces.component.behavior.AjaxBehavior.isResetValuesSet -
-
-
- Tests whether the resetValues attribute is specified. Returns true if the resetValues - attribute is specified, either as a locally set property or as a value expression. - - true - - -
-
-
- true -
- JSF:JAVADOC:3064 - - void - - jakarta.faces.component.behavior.AjaxBehavior.removeAjaxBehaviorListener -
- ( - AjaxBehaviorListener - ) -
-
- Remove the specified AjaxBehaviorListener from the set of listeners registered to - receive event notifications from this AjaxBehavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3065 - - void - - jakarta.faces.component.behavior.AjaxBehavior.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Implementation of jakarta.faces.component.StateHolder#restoreState. - - true - - -
-
-
- true -
- JSF:JAVADOC:3066 - - Object - - jakarta.faces.component.behavior.AjaxBehavior.saveState -
- ( - FacesContext - ) -
-
- Implementation of jakarta.faces.component.StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:3067 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setDelay -
- ( - String - ) -
-
- If less than delay milliseconds elapses between calls to request() only the most recent - one is sent and all other requests are discarded. The default value of this option is 300. If the - value of delay is the literal string 'none' without the quotes, no delay is used. - - true - - -
-
-
- true -
- JSF:JAVADOC:3068 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setDisabled -
- ( - boolean - ) -
-
- Sets the disabled status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3069 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setExecute -
- ( - Collection - ) -
-
- Sets the component identifiers that will be used to identify components that should be - processed during the execute phase of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:3070 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setImmediate -
- ( - boolean - ) -
-
- Sets the immediate status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3071 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setOnerror -
- ( - String - ) -
-
- Sets the JavaScript function name that will be used to identify the client callback - function that should be run in the event of an error. - - true - - -
-
-
- true -
- JSF:JAVADOC:3072 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setOnevent -
- ( - String - ) -
-
- Sets the JavaScript function name that will be used to identify the client callback - function that should be run in response to event activity. - - true - - -
-
-
- true -
- JSF:JAVADOC:3073 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setRender -
- ( - Collection - ) -
-
- Sets the component identifiers that will be used to identify components that should be - processed during the render phase of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:3074 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setResetValues -
- ( - boolean - ) -
-
- Set the resetValues status of this behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:3075 - - void - - jakarta.faces.component.behavior.AjaxBehavior.setValueExpression -
- ( - String - , -
- ValueExpression - ) -
-
- Sets the ValueExpression used to calculate the value for the specified property name. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3076 - - void - - jakarta.faces.component.behavior.Behavior.broadcast -
- ( - BehaviorEvent - ) -
-
- Broadcast the specified BehaviorEvent to all registered event listeners who have - expressed an interest in events of this type. Listeners are called in the order in which they were - added. - - true - - -
-
-
- true -
- JSF:JAVADOC:3077 - - BehaviorBase - - jakarta.faces.component.behavior.BehaviorBase.BehaviorBase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3078 - - void - - jakarta.faces.component.behavior.BehaviorBase.broadcast -
- ( - BehaviorEvent - ) -
-
- Default implementation of Behavior#broadcast. Delivers the specified BehaviorEvent to - all registered BehaviorListener event listeners who have expressed an interest in events of this - type. Listeners are called in the order in which they were registered (added). - - true - - -
-
-
- true -
- JSF:JAVADOC:3079 - - void - - jakarta.faces.component.behavior.BehaviorBase.broadcast -
- ( - BehaviorEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:3080 - - void - - jakarta.faces.component.behavior.BehaviorBase.clearInitialState -
-
-
- Clears the initial state flag, causing the behavior to revert from partial to full - state saving. - - true - - -
-
-
- true -
- JSF:JAVADOC:3081 - - boolean - - jakarta.faces.component.behavior.BehaviorBase.initialStateMarked -
-
-
- Implementation of jakarta.faces.component.PartialStateHolder#initialStateMarked. - - true - - -
-
-
- true -
- JSF:JAVADOC:3082 - - boolean - - jakarta.faces.component.behavior.BehaviorBase.isTransient -
-
-
- Implementation of jakarta.faces.component.StateHolder#isTransient. - - true - - -
-
-
- true -
- JSF:JAVADOC:3083 - - void - - jakarta.faces.component.behavior.BehaviorBase.markInitialState -
-
-
- Implementation of jakarta.faces.component.PartialStateHolder#markInitialState. - - true - - -
-
-
- true -
- JSF:JAVADOC:3084 - - void - - jakarta.faces.component.behavior.BehaviorBase.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Implementation of jakarta.faces.component.StateHolder#restoreState. - - true - - -
-
-
- true -
- JSF:JAVADOC:3085 - - Object - - jakarta.faces.component.behavior.BehaviorBase.saveState -
- ( - FacesContext - ) -
-
- Implementation of jakarta.faces.component.StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:3086 - - void - - jakarta.faces.component.behavior.BehaviorBase.setTransient -
- ( - boolean - ) -
-
- Implementation of jakarta.faces.component.StateHolder#setTransient. - - true - - -
-
-
- true -
- JSF:JAVADOC:3087 - - void - - jakarta.faces.component.behavior.ClientBehavior.decode -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Decode any new state of this ClientBehavior from the request contained in the specified - FacesContext. During decoding, events may be enqueued for later processing (by event listeners who - have registered an interest), by calling queueEvent(). Default implementation delegates decoding to - jakarta.faces.render.ClientBehaviorRenderer#decode(FacesContext, UIComponent, ClientBehavior) - - true - - -
-
-
- true -
- JSF:JAVADOC:3088 - - Set - - jakarta.faces.component.behavior.ClientBehavior.getHints -
-
-
- Returns hints that describe the behavior of the ClientBehavior implementation. The - hints may impact how Renderers behave in the presence of Behaviors. For example, when a Behavior - that specifies ClientBehaviorHint.SUBMITTING is present, the Renderer may choose to alternate the - scripts that it generates itself. - - true - - -
-
-
- true -
- JSF:JAVADOC:3089 - - String - - jakarta.faces.component.behavior.ClientBehavior.getScript -
- ( - ClientBehaviorContext - ) -
-
- Return the script that implements this ClientBehavior's client-side logic. - ClientBehavior.getScript() implementations are allowed to return null to indicate that no script is - required for this particular getScript() call. For example, a ClientBehavior implementation may - return null if the Behavior is disabled. - - true - - -
-
-
- true -
- JSF:JAVADOC:3090 - - ClientBehaviorBase - - jakarta.faces.component.behavior.ClientBehaviorBase.ClientBehaviorBase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3091 - - void - - jakarta.faces.component.behavior.ClientBehaviorBase.decode -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Default implementation of of ClientBehavior#decode. If a ClientBehaviorRenderer is - available for the specified behavior renderer type, this method delegates to the - ClientBehaviorRenderer's decode() method. Otherwise, no decoding is performed. - - true - - -
-
-
- true -
- JSF:JAVADOC:3092 - - Set - - jakarta.faces.component.behavior.ClientBehaviorBase.getHints -
-
-
- Default implementation of ClientBehavior#getHints(). By default, no hints are - specified, and this method returns an empty, umodifiable set. - - true - - -
-
-
- true -
- JSF:JAVADOC:3093 - - String - - jakarta.faces.component.behavior.ClientBehaviorBase.getRendererType -
-
-
- Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The - default implementation returns null. Subclasses should either override this method to return a - string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and - perform script rendering locally in the ClientBehavior implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:3094 - - String - - jakarta.faces.component.behavior.ClientBehaviorBase.getScript -
- ( - ClientBehaviorContext - ) -
-
- Default implementation of of ClientBehavior#getScript. If a ClientBehaviorRenderer is - available for the specified behavior renderer type, this method delegates to the - ClientBehaviorRenderer#getScript method. Otherwise, this method returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:3095 - - ClientBehaviorContext - - jakarta.faces.component.behavior.ClientBehaviorContext.ClientBehaviorContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3096 - - ClientBehaviorContext - - jakarta.faces.component.behavior.ClientBehaviorContext.createClientBehaviorContext -
- ( - FacesContext - , -
- UIComponent - , -
- String - , -
- String - , -
- Collection - ) -
-
- Creates a ClientBehaviorContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:3097 - - UIComponent - - jakarta.faces.component.behavior.ClientBehaviorContext.getComponent -
-
-
- Returns the UIComponent that is requesting the ClientBehavior script. - - true - - -
-
-
- true -
- JSF:JAVADOC:3098 - - String - - jakarta.faces.component.behavior.ClientBehaviorContext.getEventName -
-
-
- Returns the name of the behavior event for which the ClientBehavior script is being - requested. - - true - - -
-
-
- true -
- JSF:JAVADOC:3099 - - FacesContext - - jakarta.faces.component.behavior.ClientBehaviorContext.getFacesContext -
-
-
- Returns the FacesContext for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:3100 - - Collection - - jakarta.faces.component.behavior.ClientBehaviorContext.getParameters -
-
-
- Returns parameters that "submitting" ClientBehavior implementations should include when - posting back data into the Faces lifecycle. If no parameters are specified, this method returns an - empty (non-null) collection. - - true - - -
-
-
- true -
- JSF:JAVADOC:3101 - - String - - jakarta.faces.component.behavior.ClientBehaviorContext.getSourceId -
-
-
- Returns an id for use as the ClientBehavior source. ClientBehavior implementations that - submit back to the Faces lifecycle are required to identify which component triggered the - ClientBehavior-initiated request via the jakarta.faces.source request parameter. In most cases, th - source id can be trivially derived from the element to which the behavior's client-side script is - attached - ie. the source id is typically the id of this element. However, in components which - produce more complex content, the behavior script may not be able to determine the correct id to use - for the jakarta.faces.source value. The ClientBehaviorContext#getSourceId method allows the - component to pass this information into the ClientBehavior#getScript implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:3102 - - Parameter - - - jakarta.faces.component.behavior.ClientBehaviorContext.Parameter.ClientBehaviorContext.Parameter -
- ( - String - , -
- Object - ) -
-
- Creates a Parameter instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:3103 - - String - - jakarta.faces.component.behavior.ClientBehaviorContext.Parameter.getName -
-
-
- Returns the Parameter's name. - - true - - -
-
-
- true -
- JSF:JAVADOC:3104 - - Object - - jakarta.faces.component.behavior.ClientBehaviorContext.Parameter.getValue -
-
-
- Returns the Parameter's value. - - true - - -
-
-
- true -
- JSF:JAVADOC:3105 - - ClientBehaviorHint - - jakarta.faces.component.behavior.ClientBehaviorHint.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3106 - - ClientBehaviorHint[] - - jakarta.faces.component.behavior.ClientBehaviorHint.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3107 - - void - - jakarta.faces.component.behavior.ClientBehaviorHolder.addClientBehavior -
- ( - String - , -
- ClientBehavior - ) -
-
- Attaches a ClientBehavior to the component implementing this interface for the - specified event. Valid event names for a UIComponent implementation are defined by - ClientBehaviorHolder.getEventNames(). - - true - - -
-
-
- true -
- JSF:JAVADOC:3108 - - Map - - jakarta.faces.component.behavior.ClientBehaviorHolder.getClientBehaviors -
-
-
- Returns a non-null, unmodifiable Map that contains the the ClientBehaviors that have - been attached to the component implementing this interface. The keys in this Map are event names - defined by #getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3109 - - String - - jakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName -
-
-
- Returns the default event name for this ClientBehaviorHolder implementation. This must - be one of the event names returned by #getEventNames or null if the component does not have a - default event. - - true - - -
-
-
- true -
- JSF:JAVADOC:3110 - - Collection - - jakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames -
-
-
- Returns a non-null, unmodifiable Collection containing the names of the logical events - supported by the component implementing this interface. - - true - - -
-
-
- true -
- JSF:JAVADOC:3111 - - boolean - - jakarta.faces.component.behavior.FacesBehavior.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:3112 - - String - - jakarta.faces.component.behavior.FacesBehavior.value -
-
-
- The value of this annotation attribute is taken to be the behavior-id with which - instances of this class of behavior can be instantiated. - - true - - -
-
-
- true -
- JSF:JAVADOC:3113 - - boolean - - jakarta.faces.component.behavior.FacesBehavior.Literal.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:3114 - - Literal - - jakarta.faces.component.behavior.FacesBehavior.Literal.of -
- ( - String - , -
- boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3115 - - String - - jakarta.faces.component.behavior.FacesBehavior.Literal.value -
-
-
- The value of this annotation attribute is taken to be the behavior-id with which - instances of this class of behavior can be instantiated. - - true - - -
-
-
- true -
- JSF:JAVADOC:3116 - - String - - jakarta.faces.component.html.HtmlBody.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3117 - - String - - jakarta.faces.component.html.HtmlBody.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3118 - - Collection - - jakarta.faces.component.html.HtmlBody.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3119 - - String - - jakarta.faces.component.html.HtmlBody.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3120 - - String - - jakarta.faces.component.html.HtmlBody.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3121 - - String - - jakarta.faces.component.html.HtmlBody.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3122 - - String - - jakarta.faces.component.html.HtmlBody.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3123 - - String - - jakarta.faces.component.html.HtmlBody.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3124 - - String - - jakarta.faces.component.html.HtmlBody.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3125 - - String - - jakarta.faces.component.html.HtmlBody.getOnload -
-
-
- Return the value of the onload property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3126 - - String - - jakarta.faces.component.html.HtmlBody.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3127 - - String - - jakarta.faces.component.html.HtmlBody.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3128 - - String - - jakarta.faces.component.html.HtmlBody.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3129 - - String - - jakarta.faces.component.html.HtmlBody.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3130 - - String - - jakarta.faces.component.html.HtmlBody.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3131 - - String - - jakarta.faces.component.html.HtmlBody.getOnunload -
-
-
- Return the value of the onunload property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3132 - - String - - jakarta.faces.component.html.HtmlBody.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3133 - - String - - jakarta.faces.component.html.HtmlBody.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3134 - - String - - jakarta.faces.component.html.HtmlBody.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3135 - - String - - jakarta.faces.component.html.HtmlBody.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3136 - - String - - jakarta.faces.component.html.HtmlBody.getXmlns -
-
-
- Return the value of the xmlns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3137 - - HtmlBody - - jakarta.faces.component.html.HtmlBody.HtmlBody -
-
-
- Default constructor setting the renderer type. - - true - - -
-
-
- true -
- JSF:JAVADOC:3138 - - void - - jakarta.faces.component.html.HtmlBody.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3139 - - void - - jakarta.faces.component.html.HtmlBody.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3140 - - void - - jakarta.faces.component.html.HtmlBody.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3141 - - void - - jakarta.faces.component.html.HtmlBody.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3142 - - void - - jakarta.faces.component.html.HtmlBody.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3143 - - void - - jakarta.faces.component.html.HtmlBody.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3144 - - void - - jakarta.faces.component.html.HtmlBody.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3145 - - void - - jakarta.faces.component.html.HtmlBody.setOnload -
- ( - String - ) -
-
- Set the value of the onload property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3146 - - void - - jakarta.faces.component.html.HtmlBody.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3147 - - void - - jakarta.faces.component.html.HtmlBody.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3148 - - void - - jakarta.faces.component.html.HtmlBody.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3149 - - void - - jakarta.faces.component.html.HtmlBody.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3150 - - void - - jakarta.faces.component.html.HtmlBody.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3151 - - void - - jakarta.faces.component.html.HtmlBody.setOnunload -
- ( - String - ) -
-
- Set the value of the onunload property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3152 - - void - - jakarta.faces.component.html.HtmlBody.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3153 - - void - - jakarta.faces.component.html.HtmlBody.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3154 - - void - - jakarta.faces.component.html.HtmlBody.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3155 - - void - - jakarta.faces.component.html.HtmlBody.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3156 - - void - - jakarta.faces.component.html.HtmlBody.setXmlns -
- ( - String - ) -
-
- Set the value of the xmlns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3157 - - String - - jakarta.faces.component.html.HtmlBody.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3158 - - PropertyKeys - - jakarta.faces.component.html.HtmlBody.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3159 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlBody.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3160 - - String - - jakarta.faces.component.html.HtmlColumn.getFooterClass -
-
-
- Return the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3161 - - String - - jakarta.faces.component.html.HtmlColumn.getHeaderClass -
-
-
- Return the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3162 - - String - - jakarta.faces.component.html.HtmlColumn.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3163 - - HtmlColumn - - jakarta.faces.component.html.HtmlColumn.HtmlColumn -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3164 - - boolean - - jakarta.faces.component.html.HtmlColumn.isRowHeader -
-
-
- Return the value of the rowHeader property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3165 - - void - - jakarta.faces.component.html.HtmlColumn.setFooterClass -
- ( - String - ) -
-
- Set the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3166 - - void - - jakarta.faces.component.html.HtmlColumn.setHeaderClass -
- ( - String - ) -
-
- Set the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3167 - - void - - jakarta.faces.component.html.HtmlColumn.setRowHeader -
- ( - boolean - ) -
-
- Set the value of the rowHeader property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3168 - - void - - jakarta.faces.component.html.HtmlColumn.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3169 - - String - - jakarta.faces.component.html.HtmlColumn.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3170 - - PropertyKeys - - jakarta.faces.component.html.HtmlColumn.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3171 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlColumn.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3172 - - String - - jakarta.faces.component.html.HtmlCommandButton.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3173 - - String - - jakarta.faces.component.html.HtmlCommandButton.getAlt -
-
-
- Return the value of the alt property. This attribute is ignored when the image - attribute is not specified. - - true - - -
-
-
- true -
- JSF:JAVADOC:3174 - - String - - jakarta.faces.component.html.HtmlCommandButton.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3175 - - String - - jakarta.faces.component.html.HtmlCommandButton.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3176 - - Collection - - jakarta.faces.component.html.HtmlCommandButton.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3177 - - String - - jakarta.faces.component.html.HtmlCommandButton.getImage -
-
-
- Return the value of the image property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3178 - - String - - jakarta.faces.component.html.HtmlCommandButton.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3179 - - String - - jakarta.faces.component.html.HtmlCommandButton.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3180 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3181 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3182 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3183 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3184 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3185 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3186 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3187 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3188 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3189 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3190 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3191 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3192 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3193 - - String - - jakarta.faces.component.html.HtmlCommandButton.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3194 - - String - - jakarta.faces.component.html.HtmlCommandButton.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3195 - - String - - jakarta.faces.component.html.HtmlCommandButton.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3196 - - String - - jakarta.faces.component.html.HtmlCommandButton.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3197 - - String - - jakarta.faces.component.html.HtmlCommandButton.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3198 - - String - - jakarta.faces.component.html.HtmlCommandButton.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3199 - - String - - jakarta.faces.component.html.HtmlCommandButton.getType -
-
-
- Return the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3200 - - HtmlCommandButton - - jakarta.faces.component.html.HtmlCommandButton.HtmlCommandButton -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3201 - - boolean - - jakarta.faces.component.html.HtmlCommandButton.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3202 - - boolean - - jakarta.faces.component.html.HtmlCommandButton.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3203 - - void - - jakarta.faces.component.html.HtmlCommandButton.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3204 - - void - - jakarta.faces.component.html.HtmlCommandButton.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3205 - - void - - jakarta.faces.component.html.HtmlCommandButton.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3206 - - void - - jakarta.faces.component.html.HtmlCommandButton.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3207 - - void - - jakarta.faces.component.html.HtmlCommandButton.setImage -
- ( - String - ) -
-
- Set the value of the image property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3208 - - void - - jakarta.faces.component.html.HtmlCommandButton.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3209 - - void - - jakarta.faces.component.html.HtmlCommandButton.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3210 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3211 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3212 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3213 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3214 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3215 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3216 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3217 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3218 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3219 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3220 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3221 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3222 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3223 - - void - - jakarta.faces.component.html.HtmlCommandButton.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3224 - - void - - jakarta.faces.component.html.HtmlCommandButton.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3225 - - void - - jakarta.faces.component.html.HtmlCommandButton.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3226 - - void - - jakarta.faces.component.html.HtmlCommandButton.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3227 - - void - - jakarta.faces.component.html.HtmlCommandButton.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3228 - - void - - jakarta.faces.component.html.HtmlCommandButton.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3229 - - void - - jakarta.faces.component.html.HtmlCommandButton.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3230 - - void - - jakarta.faces.component.html.HtmlCommandButton.setType -
- ( - String - ) -
-
- Set the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3231 - - String - - jakarta.faces.component.html.HtmlCommandButton.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3232 - - PropertyKeys - - jakarta.faces.component.html.HtmlCommandButton.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3233 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlCommandButton.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3234 - - String - - jakarta.faces.component.html.HtmlCommandLink.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3235 - - String - - jakarta.faces.component.html.HtmlCommandLink.getCharset -
-
-
- Return the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3236 - - String - - jakarta.faces.component.html.HtmlCommandLink.getCoords -
-
-
- Return the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3237 - - String - - jakarta.faces.component.html.HtmlCommandLink.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3238 - - String - - jakarta.faces.component.html.HtmlCommandLink.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3239 - - Collection - - jakarta.faces.component.html.HtmlCommandLink.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3240 - - String - - jakarta.faces.component.html.HtmlCommandLink.getHreflang -
-
-
- Return the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3241 - - String - - jakarta.faces.component.html.HtmlCommandLink.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3242 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3243 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3244 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3245 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3246 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3247 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3248 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3249 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3250 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3251 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3252 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3253 - - String - - jakarta.faces.component.html.HtmlCommandLink.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3254 - - String - - jakarta.faces.component.html.HtmlCommandLink.getRel -
-
-
- Return the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3255 - - String - - jakarta.faces.component.html.HtmlCommandLink.getRev -
-
-
- Return the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3256 - - String - - jakarta.faces.component.html.HtmlCommandLink.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3257 - - String - - jakarta.faces.component.html.HtmlCommandLink.getShape -
-
-
- Return the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3258 - - String - - jakarta.faces.component.html.HtmlCommandLink.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3259 - - String - - jakarta.faces.component.html.HtmlCommandLink.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3260 - - String - - jakarta.faces.component.html.HtmlCommandLink.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3261 - - String - - jakarta.faces.component.html.HtmlCommandLink.getTarget -
-
-
- Return the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3262 - - String - - jakarta.faces.component.html.HtmlCommandLink.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3263 - - String - - jakarta.faces.component.html.HtmlCommandLink.getType -
-
-
- Return the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3264 - - HtmlCommandLink - - jakarta.faces.component.html.HtmlCommandLink.HtmlCommandLink -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3265 - - boolean - - jakarta.faces.component.html.HtmlCommandLink.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3266 - - void - - jakarta.faces.component.html.HtmlCommandLink.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3267 - - void - - jakarta.faces.component.html.HtmlCommandLink.setCharset -
- ( - String - ) -
-
- Set the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3268 - - void - - jakarta.faces.component.html.HtmlCommandLink.setCoords -
- ( - String - ) -
-
- Set the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3269 - - void - - jakarta.faces.component.html.HtmlCommandLink.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3270 - - void - - jakarta.faces.component.html.HtmlCommandLink.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3271 - - void - - jakarta.faces.component.html.HtmlCommandLink.setHreflang -
- ( - String - ) -
-
- Set the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3272 - - void - - jakarta.faces.component.html.HtmlCommandLink.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3273 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3274 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3275 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3276 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3277 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3278 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3279 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3280 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3281 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3282 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3283 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3284 - - void - - jakarta.faces.component.html.HtmlCommandLink.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3285 - - void - - jakarta.faces.component.html.HtmlCommandLink.setRel -
- ( - String - ) -
-
- Set the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3286 - - void - - jakarta.faces.component.html.HtmlCommandLink.setRev -
- ( - String - ) -
-
- Set the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3287 - - void - - jakarta.faces.component.html.HtmlCommandLink.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3288 - - void - - jakarta.faces.component.html.HtmlCommandLink.setShape -
- ( - String - ) -
-
- Set the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3289 - - void - - jakarta.faces.component.html.HtmlCommandLink.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3290 - - void - - jakarta.faces.component.html.HtmlCommandLink.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3291 - - void - - jakarta.faces.component.html.HtmlCommandLink.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3292 - - void - - jakarta.faces.component.html.HtmlCommandLink.setTarget -
- ( - String - ) -
-
- Set the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3293 - - void - - jakarta.faces.component.html.HtmlCommandLink.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3294 - - void - - jakarta.faces.component.html.HtmlCommandLink.setType -
- ( - String - ) -
-
- Set the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3295 - - String - - jakarta.faces.component.html.HtmlCommandLink.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3296 - - PropertyKeys - - jakarta.faces.component.html.HtmlCommandLink.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3297 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlCommandLink.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3298 - - String - - jakarta.faces.component.html.HtmlCommandScript.getExecute -
-
-
- Return the value of the execute property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3299 - - String - - jakarta.faces.component.html.HtmlCommandScript.getName -
-
-
- Return the value of the name property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3300 - - String - - jakarta.faces.component.html.HtmlCommandScript.getOnerror -
-
-
- Return the value of the onerror property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3301 - - String - - jakarta.faces.component.html.HtmlCommandScript.getOnevent -
-
-
- Return the value of the onevent property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3302 - - String - - jakarta.faces.component.html.HtmlCommandScript.getRender -
-
-
- Return the value of the render property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3303 - - Boolean - - jakarta.faces.component.html.HtmlCommandScript.getResetValues -
-
-
- Return the value of the resetValues property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3304 - - HtmlCommandScript - - jakarta.faces.component.html.HtmlCommandScript.HtmlCommandScript -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3305 - - boolean - - jakarta.faces.component.html.HtmlCommandScript.isAutorun -
-
-
- Return the value of the autorun property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3306 - - void - - jakarta.faces.component.html.HtmlCommandScript.setAutorun -
- ( - boolean - ) -
-
- Set the value of the autorun property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3307 - - void - - jakarta.faces.component.html.HtmlCommandScript.setExecute -
- ( - String - ) -
-
- Set the value of the execute property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3308 - - void - - jakarta.faces.component.html.HtmlCommandScript.setName -
- ( - String - ) -
-
- Set the value of the name property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3309 - - void - - jakarta.faces.component.html.HtmlCommandScript.setOnerror -
- ( - String - ) -
-
- Set the value of the onerror property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3310 - - void - - jakarta.faces.component.html.HtmlCommandScript.setOnevent -
- ( - String - ) -
-
- Set the value of the onevent property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3311 - - void - - jakarta.faces.component.html.HtmlCommandScript.setRender -
- ( - String - ) -
-
- Set the value of the render property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3312 - - void - - jakarta.faces.component.html.HtmlCommandScript.setResetValues -
- ( - Boolean - ) -
-
- Set the value of the resetValues property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3313 - - String - - jakarta.faces.component.html.HtmlCommandScript.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3314 - - PropertyKeys - - jakarta.faces.component.html.HtmlCommandScript.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3315 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlCommandScript.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3316 - - String - - jakarta.faces.component.html.HtmlDataTable.getBgcolor -
-
-
- Return the value of the bgcolor property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3317 - - String - - jakarta.faces.component.html.HtmlDataTable.getBodyrows -
-
-
- Return the value of the bodyrows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3318 - - int - - jakarta.faces.component.html.HtmlDataTable.getBorder -
-
-
- Return the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3319 - - String - - jakarta.faces.component.html.HtmlDataTable.getCaptionClass -
-
-
- Return the value of the captionClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3320 - - String - - jakarta.faces.component.html.HtmlDataTable.getCaptionStyle -
-
-
- Return the value of the captionStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3321 - - String - - jakarta.faces.component.html.HtmlDataTable.getCellpadding -
-
-
- Return the value of the cellpadding property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3322 - - String - - jakarta.faces.component.html.HtmlDataTable.getCellspacing -
-
-
- Return the value of the cellspacing property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3323 - - String - - jakarta.faces.component.html.HtmlDataTable.getColumnClasses -
-
-
- Return the value of the columnClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3324 - - String - - jakarta.faces.component.html.HtmlDataTable.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3325 - - String - - jakarta.faces.component.html.HtmlDataTable.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3326 - - Collection - - jakarta.faces.component.html.HtmlDataTable.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3327 - - String - - jakarta.faces.component.html.HtmlDataTable.getFooterClass -
-
-
- Return the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3328 - - String - - jakarta.faces.component.html.HtmlDataTable.getFrame -
-
-
- Return the value of the frame property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3329 - - String - - jakarta.faces.component.html.HtmlDataTable.getHeaderClass -
-
-
- Return the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3330 - - String - - jakarta.faces.component.html.HtmlDataTable.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3331 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3332 - - String - - jakarta.faces.component.html.HtmlDataTable.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3333 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3334 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3335 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3336 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3337 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3338 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3339 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3340 - - String - - jakarta.faces.component.html.HtmlDataTable.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3341 - - String - - jakarta.faces.component.html.HtmlDataTable.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3342 - - String - - jakarta.faces.component.html.HtmlDataTable.getRowClass -
-
-
- Return the value of the rowClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3343 - - String - - jakarta.faces.component.html.HtmlDataTable.getRowClasses -
-
-
- Return the value of the rowClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3344 - - String - - jakarta.faces.component.html.HtmlDataTable.getRules -
-
-
- Return the value of the rules property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3345 - - String - - jakarta.faces.component.html.HtmlDataTable.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3346 - - String - - jakarta.faces.component.html.HtmlDataTable.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3347 - - String - - jakarta.faces.component.html.HtmlDataTable.getSummary -
-
-
- Return the value of the summary property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3348 - - String - - jakarta.faces.component.html.HtmlDataTable.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3349 - - String - - jakarta.faces.component.html.HtmlDataTable.getWidth -
-
-
- Return the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3350 - - HtmlDataTable - - jakarta.faces.component.html.HtmlDataTable.HtmlDataTable -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3351 - - void - - jakarta.faces.component.html.HtmlDataTable.setBgcolor -
- ( - String - ) -
-
- Set the value of the bgcolor property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3352 - - void - - jakarta.faces.component.html.HtmlDataTable.setBodyrows -
- ( - String - ) -
-
- Set the value of the bodyrows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3353 - - void - - jakarta.faces.component.html.HtmlDataTable.setBorder -
- ( - int - ) -
-
- Set the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3354 - - void - - jakarta.faces.component.html.HtmlDataTable.setCaptionClass -
- ( - String - ) -
-
- Set the value of the captionClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3355 - - void - - jakarta.faces.component.html.HtmlDataTable.setCaptionStyle -
- ( - String - ) -
-
- Set the value of the captionStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3356 - - void - - jakarta.faces.component.html.HtmlDataTable.setCellpadding -
- ( - String - ) -
-
- Set the value of the cellpadding property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3357 - - void - - jakarta.faces.component.html.HtmlDataTable.setCellspacing -
- ( - String - ) -
-
- Set the value of the cellspacing property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3358 - - void - - jakarta.faces.component.html.HtmlDataTable.setColumnClasses -
- ( - String - ) -
-
- Set the value of the columnClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3359 - - void - - jakarta.faces.component.html.HtmlDataTable.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3360 - - void - - jakarta.faces.component.html.HtmlDataTable.setFooterClass -
- ( - String - ) -
-
- Set the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3361 - - void - - jakarta.faces.component.html.HtmlDataTable.setFrame -
- ( - String - ) -
-
- Set the value of the frame property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3362 - - void - - jakarta.faces.component.html.HtmlDataTable.setHeaderClass -
- ( - String - ) -
-
- Set the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3363 - - void - - jakarta.faces.component.html.HtmlDataTable.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3364 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3365 - - void - - jakarta.faces.component.html.HtmlDataTable.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3366 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3367 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3368 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3369 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3370 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3371 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3372 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3373 - - void - - jakarta.faces.component.html.HtmlDataTable.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3374 - - void - - jakarta.faces.component.html.HtmlDataTable.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3375 - - void - - jakarta.faces.component.html.HtmlDataTable.setRowClass -
- ( - String - ) -
-
- Set the value of the rowClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3376 - - void - - jakarta.faces.component.html.HtmlDataTable.setRowClasses -
- ( - String - ) -
-
- Set the value of the rowClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3377 - - void - - jakarta.faces.component.html.HtmlDataTable.setRules -
- ( - String - ) -
-
- Set the value of the rules property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3378 - - void - - jakarta.faces.component.html.HtmlDataTable.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3379 - - void - - jakarta.faces.component.html.HtmlDataTable.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3380 - - void - - jakarta.faces.component.html.HtmlDataTable.setSummary -
- ( - String - ) -
-
- Set the value of the summary property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3381 - - void - - jakarta.faces.component.html.HtmlDataTable.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3382 - - void - - jakarta.faces.component.html.HtmlDataTable.setWidth -
- ( - String - ) -
-
- Set the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3383 - - String - - jakarta.faces.component.html.HtmlDataTable.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3384 - - PropertyKeys - - jakarta.faces.component.html.HtmlDataTable.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3385 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlDataTable.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3386 - - String - - jakarta.faces.component.html.HtmlDoctype.getPublic -
-
-
- Return the value of the public property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3387 - - String - - jakarta.faces.component.html.HtmlDoctype.getRootElement -
-
-
- Return the value of the rootElement property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3388 - - String - - jakarta.faces.component.html.HtmlDoctype.getSystem -
-
-
- Return the value of the system property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3389 - - HtmlDoctype - - jakarta.faces.component.html.HtmlDoctype.HtmlDoctype -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3390 - - void - - jakarta.faces.component.html.HtmlDoctype.setPublic -
- ( - String - ) -
-
- Set the value of the public property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3391 - - void - - jakarta.faces.component.html.HtmlDoctype.setRootElement -
- ( - String - ) -
-
- Set the value of the rootElement property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3392 - - void - - jakarta.faces.component.html.HtmlDoctype.setSystem -
- ( - String - ) -
-
- Set the value of the system property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3393 - - String - - jakarta.faces.component.html.HtmlDoctype.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3394 - - PropertyKeys - - jakarta.faces.component.html.HtmlDoctype.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3395 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlDoctype.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3396 - - String - - jakarta.faces.component.html.HtmlForm.getAccept -
-
-
- Return the value of the accept property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3397 - - String - - jakarta.faces.component.html.HtmlForm.getAcceptcharset -
-
-
- Return the value of the acceptcharset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3398 - - String - - jakarta.faces.component.html.HtmlForm.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3399 - - String - - jakarta.faces.component.html.HtmlForm.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3400 - - String - - jakarta.faces.component.html.HtmlForm.getEnctype -
-
-
- Return the value of the enctype property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3401 - - Collection - - jakarta.faces.component.html.HtmlForm.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3402 - - String - - jakarta.faces.component.html.HtmlForm.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3403 - - String - - jakarta.faces.component.html.HtmlForm.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3404 - - String - - jakarta.faces.component.html.HtmlForm.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3405 - - String - - jakarta.faces.component.html.HtmlForm.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3406 - - String - - jakarta.faces.component.html.HtmlForm.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3407 - - String - - jakarta.faces.component.html.HtmlForm.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3408 - - String - - jakarta.faces.component.html.HtmlForm.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3409 - - String - - jakarta.faces.component.html.HtmlForm.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3410 - - String - - jakarta.faces.component.html.HtmlForm.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3411 - - String - - jakarta.faces.component.html.HtmlForm.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3412 - - String - - jakarta.faces.component.html.HtmlForm.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3413 - - String - - jakarta.faces.component.html.HtmlForm.getOnreset -
-
-
- Return the value of the onreset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3414 - - String - - jakarta.faces.component.html.HtmlForm.getOnsubmit -
-
-
- Return the value of the onsubmit property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3415 - - String - - jakarta.faces.component.html.HtmlForm.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3416 - - String - - jakarta.faces.component.html.HtmlForm.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3417 - - String - - jakarta.faces.component.html.HtmlForm.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3418 - - String - - jakarta.faces.component.html.HtmlForm.getTarget -
-
-
- Return the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3419 - - String - - jakarta.faces.component.html.HtmlForm.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3420 - - HtmlForm - - jakarta.faces.component.html.HtmlForm.HtmlForm -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3421 - - void - - jakarta.faces.component.html.HtmlForm.setAccept -
- ( - String - ) -
-
- Set the value of the accept property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3422 - - void - - jakarta.faces.component.html.HtmlForm.setAcceptcharset -
- ( - String - ) -
-
- Set the value of the acceptcharset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3423 - - void - - jakarta.faces.component.html.HtmlForm.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3424 - - void - - jakarta.faces.component.html.HtmlForm.setEnctype -
- ( - String - ) -
-
- Set the value of the enctype property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3425 - - void - - jakarta.faces.component.html.HtmlForm.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3426 - - void - - jakarta.faces.component.html.HtmlForm.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3427 - - void - - jakarta.faces.component.html.HtmlForm.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3428 - - void - - jakarta.faces.component.html.HtmlForm.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3429 - - void - - jakarta.faces.component.html.HtmlForm.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3430 - - void - - jakarta.faces.component.html.HtmlForm.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3431 - - void - - jakarta.faces.component.html.HtmlForm.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3432 - - void - - jakarta.faces.component.html.HtmlForm.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3433 - - void - - jakarta.faces.component.html.HtmlForm.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3434 - - void - - jakarta.faces.component.html.HtmlForm.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3435 - - void - - jakarta.faces.component.html.HtmlForm.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3436 - - void - - jakarta.faces.component.html.HtmlForm.setOnreset -
- ( - String - ) -
-
- Set the value of the onreset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3437 - - void - - jakarta.faces.component.html.HtmlForm.setOnsubmit -
- ( - String - ) -
-
- Set the value of the onsubmit property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3438 - - void - - jakarta.faces.component.html.HtmlForm.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3439 - - void - - jakarta.faces.component.html.HtmlForm.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3440 - - void - - jakarta.faces.component.html.HtmlForm.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3441 - - void - - jakarta.faces.component.html.HtmlForm.setTarget -
- ( - String - ) -
-
- Set the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3442 - - void - - jakarta.faces.component.html.HtmlForm.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3443 - - String - - jakarta.faces.component.html.HtmlForm.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3444 - - PropertyKeys - - jakarta.faces.component.html.HtmlForm.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3445 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlForm.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3446 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getAlt -
-
-
- Return the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3447 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3448 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3449 - - Collection - - jakarta.faces.component.html.HtmlGraphicImage.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3450 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getHeight -
-
-
- Return the value of the height property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3451 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3452 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getLongdesc -
-
-
- Return the value of the longdesc property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3453 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3454 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3455 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3456 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3457 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3458 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3459 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3460 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3461 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3462 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3463 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3464 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3465 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3466 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3467 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getUsemap -
-
-
- Return the value of the usemap property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3468 - - String - - jakarta.faces.component.html.HtmlGraphicImage.getWidth -
-
-
- Return the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3469 - - HtmlGraphicImage - - jakarta.faces.component.html.HtmlGraphicImage.HtmlGraphicImage -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3470 - - boolean - - jakarta.faces.component.html.HtmlGraphicImage.isIsmap -
-
-
- Return the value of the ismap property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3471 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3472 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3473 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setHeight -
- ( - String - ) -
-
- Set the value of the height property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3474 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setIsmap -
- ( - boolean - ) -
-
- Set the value of the ismap property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3475 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3476 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setLongdesc -
- ( - String - ) -
-
- Set the value of the longdesc property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3477 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3478 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3479 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3480 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3481 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3482 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3483 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3484 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3485 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3486 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3487 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3488 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3489 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3490 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3491 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setUsemap -
- ( - String - ) -
-
- Set the value of the usemap property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3492 - - void - - jakarta.faces.component.html.HtmlGraphicImage.setWidth -
- ( - String - ) -
-
- Set the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3493 - - String - - jakarta.faces.component.html.HtmlGraphicImage.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3494 - - PropertyKeys - - jakarta.faces.component.html.HtmlGraphicImage.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3495 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlGraphicImage.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3496 - - String - - jakarta.faces.component.html.HtmlHead.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3497 - - String - - jakarta.faces.component.html.HtmlHead.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3498 - - String - - jakarta.faces.component.html.HtmlHead.getXmlns -
-
-
- Return the value of the xmlns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3499 - - HtmlHead - - jakarta.faces.component.html.HtmlHead.HtmlHead -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3500 - - void - - jakarta.faces.component.html.HtmlHead.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3501 - - void - - jakarta.faces.component.html.HtmlHead.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3502 - - void - - jakarta.faces.component.html.HtmlHead.setXmlns -
- ( - String - ) -
-
- Set the value of the xmlns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3503 - - String - - jakarta.faces.component.html.HtmlHead.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3504 - - PropertyKeys - - jakarta.faces.component.html.HtmlHead.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3505 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlHead.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3506 - - String - - jakarta.faces.component.html.HtmlInputFile.getAccept -
-
-
- Return the value of the accept property. Contents: Comma separated string of mime types - of files to filter in client side file browse dialog. Note: This is not validated in server side. - - - true - - -
-
-
- true -
- JSF:JAVADOC:3507 - - String - - jakarta.faces.component.html.HtmlInputFile.getAccesskey -
-
-
- Return the value of the accesskey property. Contents: Access key that, when pressed, - transfers focus to this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3508 - - String - - jakarta.faces.component.html.HtmlInputFile.getAlt -
-
-
- Return the value of the alt property. Contents: Alternate textual description of the - element rendered by this component. - - true - - true - - true -
- JSF:JAVADOC:3509 - - String - - jakarta.faces.component.html.HtmlInputFile.getAutocomplete -
-
-
- Return the value of the autocomplete property. Contents: If the value of this attribute - is "off", render "off" as the value of the attribute. This indicates that the browser should disable - its autocomplete feature for this component. This is useful for components that perform - autocompletion and do not want the browser interfering. If this attribute is not set or the value is - "on", render nothing. - - true - - true - - true -
- JSF:JAVADOC:3510 - - String - - jakarta.faces.component.html.HtmlInputFile.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3511 - - String - - jakarta.faces.component.html.HtmlInputFile.getDir -
-
-
- Return the value of the dir property. Contents: Direction indication for text that does - not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These - attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct - case. - - true - - -
-
-
- true -
- JSF:JAVADOC:3512 - - Collection - - jakarta.faces.component.html.HtmlInputFile.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3513 - - String - - jakarta.faces.component.html.HtmlInputFile.getLabel -
-
-
- Return the value of the label property. Contents: A localized user presentable name for - this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:3514 - - String - - jakarta.faces.component.html.HtmlInputFile.getLang -
-
-
- Return the value of the lang property. Contents: Code describing the language used in - the generated markup for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:3515 - - int - - jakarta.faces.component.html.HtmlInputFile.getMaxlength -
-
-
- Return the value of the maxlength property. Contents: The maximum number of characters - that may be entered in this field. - - true - - true - - true -
- JSF:JAVADOC:3516 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnblur -
-
-
- Return the value of the onblur property. Contents: JavaScript code executed when this - element loses focus. - - true - - -
-
-
- true -
- JSF:JAVADOC:3517 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnchange -
-
-
- Return the value of the onchange property. Contents: JavaScript code executed when this - element loses focus and its value has been modified since gaining focus. - - true - - -
-
-
- true -
- JSF:JAVADOC:3518 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnclick -
-
-
- Return the value of the onclick property. Contents: JavaScript code executed when a - pointer button is clicked over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3519 - - String - - jakarta.faces.component.html.HtmlInputFile.getOndblclick -
-
-
- Return the value of the ondblclick property. Contents: JavaScript code executed when a - pointer button is double clicked over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3520 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnfocus -
-
-
- Return the value of the onfocus property. Contents: JavaScript code executed when this - element receives focus. - - true - - -
-
-
- true -
- JSF:JAVADOC:3521 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnkeydown -
-
-
- Return the value of the onkeydown property. Contents: JavaScript code executed when a - key is pressed down over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3522 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnkeypress -
-
-
- Return the value of the onkeypress property. Contents: JavaScript code executed when a - key is pressed and released over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3523 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnkeyup -
-
-
- Return the value of the onkeyup property. Contents: JavaScript code executed when a key - is released over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3524 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnmousedown -
-
-
- Return the value of the onmousedown property. Contents: JavaScript code executed when a - pointer button is pressed down over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3525 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnmousemove -
-
-
- Return the value of the onmousemove property. Contents: JavaScript code executed when a - pointer button is moved within this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3526 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnmouseout -
-
-
- Return the value of the onmouseout property. Contents: JavaScript code executed when a - pointer button is moved away from this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3527 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnmouseover -
-
-
- Return the value of the onmouseover property. Contents: JavaScript code executed when a - pointer button is moved onto this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3528 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnmouseup -
-
-
- Return the value of the onmouseup property. Contents: JavaScript code executed when a - pointer button is released over this element. - - true - - -
-
-
- true -
- JSF:JAVADOC:3529 - - String - - jakarta.faces.component.html.HtmlInputFile.getOnselect -
-
-
- Return the value of the onselect property. Contents: JavaScript code executed when text - within this element is selected by the user. - - true - - -
-
-
- true -
- JSF:JAVADOC:3530 - - String - - jakarta.faces.component.html.HtmlInputFile.getRole -
-
-
- Return the value of the role property. Contents: Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" - attribute whose value must be passed through unmodified on the element on which it is declared in - the final rendered markup. The attribute, if specified, must have a value that is a string literal - that is, or a Jakarta Expression Language Expression that evaluates to, a set of space-separated - tokens representing the various WAI-ARIA roles that the element belongs to. It is the page author's - responsibility to ensure that the user agent is capable of correctly interpreting the value of this - attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:3531 - - int - - jakarta.faces.component.html.HtmlInputFile.getSize -
-
-
- Return the value of the size property. Contents: The number of characters used to - determine the width of this field. - - true - - true - - true -
- JSF:JAVADOC:3532 - - String - - jakarta.faces.component.html.HtmlInputFile.getStyle -
-
-
- Return the value of the style property. Contents: CSS style(s) to be applied when this - component is rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:3533 - - String - - jakarta.faces.component.html.HtmlInputFile.getStyleClass -
-
-
- Return the value of the styleClass property. Contents: Space-separated list of CSS - style class(es) to be applied when this element is rendered. This value must be passed through as - the "class" attribute on generated markup. - - true - - -
-
-
- true -
- JSF:JAVADOC:3534 - - String - - jakarta.faces.component.html.HtmlInputFile.getTabindex -
-
-
- Return the value of the tabindex property. Contents: Position of this element in the - tabbing order for the current document. This value must be an integer between 0 and 32767. - - true - - -
-
-
- true -
- JSF:JAVADOC:3535 - - String - - jakarta.faces.component.html.HtmlInputFile.getTitle -
-
-
- Return the value of the title property. Contents: Advisory title information about - markup elements generated for this component. - - true - - -
-
-
- true -
- JSF:JAVADOC:3536 - - HtmlInputFile - - jakarta.faces.component.html.HtmlInputFile.HtmlInputFile -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3537 - - boolean - - jakarta.faces.component.html.HtmlInputFile.isDisabled -
-
-
- Return the value of the disabled property. Contents: Flag indicating that this element - must never receive focus or be included in a subsequent submit. A value of false causes no attribute - to be rendered, while a value of true causes the attribute to be rendered as disabled="disabled". - - - true - - -
-
-
- true -
- JSF:JAVADOC:3538 - - boolean - - jakarta.faces.component.html.HtmlInputFile.isMultiple -
-
-
- Return the value of the multiple property. Contents: Flag indicating that this element - must allow multiple file selection. A value of false causes no attribute to be rendered, while a - value of true causes the attribute to be rendered as multiple="multiple". - - true - - -
-
-
- true -
- JSF:JAVADOC:3539 - - boolean - - jakarta.faces.component.html.HtmlInputFile.isReadonly -
-
-
- Return the value of the readonly property. Contents: Flag indicating that this - component will prohibit changes by the user. The element may receive focus unless it has also been - disabled. A value of false causes no attribute to be rendered, while a value of true causes the - attribute to be rendered as readonly="readonly". - - true - - true - - true -
- JSF:JAVADOC:3540 - - Object - - jakarta.faces.component.html.HtmlInputFile.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3541 - - void - - jakarta.faces.component.html.HtmlInputFile.setAccept -
- ( - String - ) -
-
- Set the value of the accept property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3542 - - void - - jakarta.faces.component.html.HtmlInputFile.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3543 - - void - - jakarta.faces.component.html.HtmlInputFile.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - true - - true -
- JSF:JAVADOC:3544 - - void - - jakarta.faces.component.html.HtmlInputFile.setAutocomplete -
- ( - String - ) -
-
- Set the value of the autocomplete property. - - true - - true - - true -
- JSF:JAVADOC:3545 - - void - - jakarta.faces.component.html.HtmlInputFile.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3546 - - void - - jakarta.faces.component.html.HtmlInputFile.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3547 - - void - - jakarta.faces.component.html.HtmlInputFile.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3548 - - void - - jakarta.faces.component.html.HtmlInputFile.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3549 - - void - - jakarta.faces.component.html.HtmlInputFile.setMaxlength -
- ( - int - ) -
-
- Set the value of the maxlength property. - - true - - true - - true -
- JSF:JAVADOC:3550 - - void - - jakarta.faces.component.html.HtmlInputFile.setMultiple -
- ( - boolean - ) -
-
- Set the value of the multiple property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3551 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3552 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3553 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3554 - - void - - jakarta.faces.component.html.HtmlInputFile.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3555 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3556 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3557 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3558 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3559 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3560 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3561 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3562 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3563 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3564 - - void - - jakarta.faces.component.html.HtmlInputFile.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3565 - - void - - jakarta.faces.component.html.HtmlInputFile.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - true - - true -
- JSF:JAVADOC:3566 - - void - - jakarta.faces.component.html.HtmlInputFile.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3567 - - void - - jakarta.faces.component.html.HtmlInputFile.setSize -
- ( - int - ) -
-
- Set the value of the size property. - - true - - true - - true -
- JSF:JAVADOC:3568 - - void - - jakarta.faces.component.html.HtmlInputFile.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3569 - - void - - jakarta.faces.component.html.HtmlInputFile.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3570 - - void - - jakarta.faces.component.html.HtmlInputFile.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3571 - - void - - jakarta.faces.component.html.HtmlInputFile.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3572 - - String - - jakarta.faces.component.html.HtmlInputFile.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3573 - - PropertyKeys - - jakarta.faces.component.html.HtmlInputFile.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3574 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlInputFile.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3575 - - HtmlInputHidden - - jakarta.faces.component.html.HtmlInputHidden.HtmlInputHidden -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3576 - - String - - jakarta.faces.component.html.HtmlInputHidden.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3577 - - PropertyKeys - - jakarta.faces.component.html.HtmlInputHidden.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3578 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlInputHidden.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3579 - - String - - jakarta.faces.component.html.HtmlInputSecret.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3580 - - String - - jakarta.faces.component.html.HtmlInputSecret.getAlt -
-
-
- Return the value of the alt property. - - true - - true - - true -
- JSF:JAVADOC:3581 - - String - - jakarta.faces.component.html.HtmlInputSecret.getAutocomplete -
-
-
- Return the value of the autocomplete property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3582 - - String - - jakarta.faces.component.html.HtmlInputSecret.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3583 - - String - - jakarta.faces.component.html.HtmlInputSecret.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3584 - - Collection - - jakarta.faces.component.html.HtmlInputSecret.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3585 - - String - - jakarta.faces.component.html.HtmlInputSecret.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3586 - - String - - jakarta.faces.component.html.HtmlInputSecret.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3587 - - int - - jakarta.faces.component.html.HtmlInputSecret.getMaxlength -
-
-
- Return the value of the maxlength property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3588 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3589 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3590 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3591 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3592 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3593 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3594 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3595 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3596 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3597 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3598 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3599 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3600 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3601 - - String - - jakarta.faces.component.html.HtmlInputSecret.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3602 - - String - - jakarta.faces.component.html.HtmlInputSecret.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3603 - - int - - jakarta.faces.component.html.HtmlInputSecret.getSize -
-
-
- Return the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3604 - - String - - jakarta.faces.component.html.HtmlInputSecret.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3605 - - String - - jakarta.faces.component.html.HtmlInputSecret.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3606 - - String - - jakarta.faces.component.html.HtmlInputSecret.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3607 - - String - - jakarta.faces.component.html.HtmlInputSecret.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3608 - - HtmlInputSecret - - jakarta.faces.component.html.HtmlInputSecret.HtmlInputSecret -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3609 - - boolean - - jakarta.faces.component.html.HtmlInputSecret.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3610 - - boolean - - jakarta.faces.component.html.HtmlInputSecret.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3611 - - boolean - - jakarta.faces.component.html.HtmlInputSecret.isRedisplay -
-
-
- Return the value of the redisplay property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3612 - - void - - jakarta.faces.component.html.HtmlInputSecret.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3613 - - void - - jakarta.faces.component.html.HtmlInputSecret.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - true - - true -
- JSF:JAVADOC:3614 - - void - - jakarta.faces.component.html.HtmlInputSecret.setAutocomplete -
- ( - String - ) -
-
- Set the value of the autocomplete property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3615 - - void - - jakarta.faces.component.html.HtmlInputSecret.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3616 - - void - - jakarta.faces.component.html.HtmlInputSecret.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3617 - - void - - jakarta.faces.component.html.HtmlInputSecret.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3618 - - void - - jakarta.faces.component.html.HtmlInputSecret.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3619 - - void - - jakarta.faces.component.html.HtmlInputSecret.setMaxlength -
- ( - int - ) -
-
- Set the value of the maxlength property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3620 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3621 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3622 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3623 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3624 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3625 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3626 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3627 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3628 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3629 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3630 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3631 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3632 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3633 - - void - - jakarta.faces.component.html.HtmlInputSecret.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3634 - - void - - jakarta.faces.component.html.HtmlInputSecret.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3635 - - void - - jakarta.faces.component.html.HtmlInputSecret.setRedisplay -
- ( - boolean - ) -
-
- Set the value of the redisplay property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3636 - - void - - jakarta.faces.component.html.HtmlInputSecret.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3637 - - void - - jakarta.faces.component.html.HtmlInputSecret.setSize -
- ( - int - ) -
-
- Set the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3638 - - void - - jakarta.faces.component.html.HtmlInputSecret.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3639 - - void - - jakarta.faces.component.html.HtmlInputSecret.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3640 - - void - - jakarta.faces.component.html.HtmlInputSecret.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3641 - - void - - jakarta.faces.component.html.HtmlInputSecret.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3642 - - String - - jakarta.faces.component.html.HtmlInputSecret.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3643 - - PropertyKeys - - jakarta.faces.component.html.HtmlInputSecret.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3644 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlInputSecret.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3645 - - String - - jakarta.faces.component.html.HtmlInputText.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3646 - - String - - jakarta.faces.component.html.HtmlInputText.getAlt -
-
-
- Return the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3647 - - String - - jakarta.faces.component.html.HtmlInputText.getAutocomplete -
-
-
- Return the value of the autocomplete property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3648 - - String - - jakarta.faces.component.html.HtmlInputText.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3649 - - String - - jakarta.faces.component.html.HtmlInputText.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3650 - - Collection - - jakarta.faces.component.html.HtmlInputText.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3651 - - String - - jakarta.faces.component.html.HtmlInputText.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3652 - - String - - jakarta.faces.component.html.HtmlInputText.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3653 - - int - - jakarta.faces.component.html.HtmlInputText.getMaxlength -
-
-
- Return the value of the maxlength property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3654 - - String - - jakarta.faces.component.html.HtmlInputText.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3655 - - String - - jakarta.faces.component.html.HtmlInputText.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3656 - - String - - jakarta.faces.component.html.HtmlInputText.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3657 - - String - - jakarta.faces.component.html.HtmlInputText.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3658 - - String - - jakarta.faces.component.html.HtmlInputText.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3659 - - String - - jakarta.faces.component.html.HtmlInputText.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3660 - - String - - jakarta.faces.component.html.HtmlInputText.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3661 - - String - - jakarta.faces.component.html.HtmlInputText.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3662 - - String - - jakarta.faces.component.html.HtmlInputText.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3663 - - String - - jakarta.faces.component.html.HtmlInputText.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3664 - - String - - jakarta.faces.component.html.HtmlInputText.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3665 - - String - - jakarta.faces.component.html.HtmlInputText.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3666 - - String - - jakarta.faces.component.html.HtmlInputText.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3667 - - String - - jakarta.faces.component.html.HtmlInputText.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3668 - - String - - jakarta.faces.component.html.HtmlInputText.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3669 - - int - - jakarta.faces.component.html.HtmlInputText.getSize -
-
-
- Return the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3670 - - String - - jakarta.faces.component.html.HtmlInputText.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3671 - - String - - jakarta.faces.component.html.HtmlInputText.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3672 - - String - - jakarta.faces.component.html.HtmlInputText.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3673 - - String - - jakarta.faces.component.html.HtmlInputText.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3674 - - String - - jakarta.faces.component.html.HtmlInputText.getType -
-
-
- Return the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3675 - - HtmlInputText - - jakarta.faces.component.html.HtmlInputText.HtmlInputText -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3676 - - boolean - - jakarta.faces.component.html.HtmlInputText.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3677 - - boolean - - jakarta.faces.component.html.HtmlInputText.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3678 - - void - - jakarta.faces.component.html.HtmlInputText.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3679 - - void - - jakarta.faces.component.html.HtmlInputText.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3680 - - void - - jakarta.faces.component.html.HtmlInputText.setAutocomplete -
- ( - String - ) -
-
- Set the value of the autocomplete property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3681 - - void - - jakarta.faces.component.html.HtmlInputText.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3682 - - void - - jakarta.faces.component.html.HtmlInputText.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3683 - - void - - jakarta.faces.component.html.HtmlInputText.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3684 - - void - - jakarta.faces.component.html.HtmlInputText.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3685 - - void - - jakarta.faces.component.html.HtmlInputText.setMaxlength -
- ( - int - ) -
-
- Set the value of the maxlength property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3686 - - void - - jakarta.faces.component.html.HtmlInputText.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3687 - - void - - jakarta.faces.component.html.HtmlInputText.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3688 - - void - - jakarta.faces.component.html.HtmlInputText.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3689 - - void - - jakarta.faces.component.html.HtmlInputText.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3690 - - void - - jakarta.faces.component.html.HtmlInputText.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3691 - - void - - jakarta.faces.component.html.HtmlInputText.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3692 - - void - - jakarta.faces.component.html.HtmlInputText.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3693 - - void - - jakarta.faces.component.html.HtmlInputText.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3694 - - void - - jakarta.faces.component.html.HtmlInputText.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3695 - - void - - jakarta.faces.component.html.HtmlInputText.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3696 - - void - - jakarta.faces.component.html.HtmlInputText.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3697 - - void - - jakarta.faces.component.html.HtmlInputText.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3698 - - void - - jakarta.faces.component.html.HtmlInputText.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3699 - - void - - jakarta.faces.component.html.HtmlInputText.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3700 - - void - - jakarta.faces.component.html.HtmlInputText.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3701 - - void - - jakarta.faces.component.html.HtmlInputText.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3702 - - void - - jakarta.faces.component.html.HtmlInputText.setSize -
- ( - int - ) -
-
- Set the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3703 - - void - - jakarta.faces.component.html.HtmlInputText.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3704 - - void - - jakarta.faces.component.html.HtmlInputText.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3705 - - void - - jakarta.faces.component.html.HtmlInputText.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3706 - - void - - jakarta.faces.component.html.HtmlInputText.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3707 - - void - - jakarta.faces.component.html.HtmlInputText.setType -
- ( - String - ) -
-
- Set the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3708 - - String - - jakarta.faces.component.html.HtmlInputText.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3709 - - PropertyKeys - - jakarta.faces.component.html.HtmlInputText.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3710 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlInputText.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3711 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3712 - - int - - jakarta.faces.component.html.HtmlInputTextarea.getCols -
-
-
- Return the value of the cols property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3713 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3714 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3715 - - Collection - - jakarta.faces.component.html.HtmlInputTextarea.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3716 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3717 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3718 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3719 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3720 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3721 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3722 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3723 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3724 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3725 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3726 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3727 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3728 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3729 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3730 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3731 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3732 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3733 - - int - - jakarta.faces.component.html.HtmlInputTextarea.getRows -
-
-
- Return the value of the rows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3734 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3735 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3736 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3737 - - String - - jakarta.faces.component.html.HtmlInputTextarea.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3738 - - HtmlInputTextarea - - jakarta.faces.component.html.HtmlInputTextarea.HtmlInputTextarea -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3739 - - boolean - - jakarta.faces.component.html.HtmlInputTextarea.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3740 - - boolean - - jakarta.faces.component.html.HtmlInputTextarea.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3741 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3742 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setCols -
- ( - int - ) -
-
- Set the value of the cols property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3743 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3744 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3745 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3746 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3747 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3748 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3749 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3750 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3751 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3752 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3753 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3754 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3755 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3756 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3757 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3758 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3759 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3760 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3761 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3762 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3763 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setRows -
- ( - int - ) -
-
- Set the value of the rows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3764 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3765 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3766 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3767 - - void - - jakarta.faces.component.html.HtmlInputTextarea.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3768 - - String - - jakarta.faces.component.html.HtmlInputTextarea.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3769 - - PropertyKeys - - jakarta.faces.component.html.HtmlInputTextarea.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3770 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlInputTextarea.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3771 - - String - - jakarta.faces.component.html.HtmlMessage.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3772 - - String - - jakarta.faces.component.html.HtmlMessage.getErrorClass -
-
-
- Return the value of the errorClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3773 - - String - - jakarta.faces.component.html.HtmlMessage.getErrorStyle -
-
-
- Return the value of the errorStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3774 - - String - - jakarta.faces.component.html.HtmlMessage.getFatalClass -
-
-
- Return the value of the fatalClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3775 - - String - - jakarta.faces.component.html.HtmlMessage.getFatalStyle -
-
-
- Return the value of the fatalStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3776 - - String - - jakarta.faces.component.html.HtmlMessage.getInfoClass -
-
-
- Return the value of the infoClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3777 - - String - - jakarta.faces.component.html.HtmlMessage.getInfoStyle -
-
-
- Return the value of the infoStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3778 - - String - - jakarta.faces.component.html.HtmlMessage.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3779 - - String - - jakarta.faces.component.html.HtmlMessage.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3780 - - String - - jakarta.faces.component.html.HtmlMessage.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3781 - - String - - jakarta.faces.component.html.HtmlMessage.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3782 - - String - - jakarta.faces.component.html.HtmlMessage.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3783 - - String - - jakarta.faces.component.html.HtmlMessage.getWarnClass -
-
-
- Return the value of the warnClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3784 - - String - - jakarta.faces.component.html.HtmlMessage.getWarnStyle -
-
-
- Return the value of the warnStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3785 - - HtmlMessage - - jakarta.faces.component.html.HtmlMessage.HtmlMessage -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3786 - - boolean - - jakarta.faces.component.html.HtmlMessage.isTooltip -
-
-
- Return the value of the tooltip property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3787 - - void - - jakarta.faces.component.html.HtmlMessage.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3788 - - void - - jakarta.faces.component.html.HtmlMessage.setErrorClass -
- ( - String - ) -
-
- Set the value of the errorClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3789 - - void - - jakarta.faces.component.html.HtmlMessage.setErrorStyle -
- ( - String - ) -
-
- Set the value of the errorStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3790 - - void - - jakarta.faces.component.html.HtmlMessage.setFatalClass -
- ( - String - ) -
-
- Set the value of the fatalClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3791 - - void - - jakarta.faces.component.html.HtmlMessage.setFatalStyle -
- ( - String - ) -
-
- Set the value of the fatalStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3792 - - void - - jakarta.faces.component.html.HtmlMessage.setInfoClass -
- ( - String - ) -
-
- Set the value of the infoClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3793 - - void - - jakarta.faces.component.html.HtmlMessage.setInfoStyle -
- ( - String - ) -
-
- Set the value of the infoStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3794 - - void - - jakarta.faces.component.html.HtmlMessage.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3795 - - void - - jakarta.faces.component.html.HtmlMessage.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3796 - - void - - jakarta.faces.component.html.HtmlMessage.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3797 - - void - - jakarta.faces.component.html.HtmlMessage.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3798 - - void - - jakarta.faces.component.html.HtmlMessage.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3799 - - void - - jakarta.faces.component.html.HtmlMessage.setTooltip -
- ( - boolean - ) -
-
- Set the value of the tooltip property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3800 - - void - - jakarta.faces.component.html.HtmlMessage.setWarnClass -
- ( - String - ) -
-
- Set the value of the warnClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3801 - - void - - jakarta.faces.component.html.HtmlMessage.setWarnStyle -
- ( - String - ) -
-
- Set the value of the warnStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3802 - - String - - jakarta.faces.component.html.HtmlMessage.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3803 - - PropertyKeys - - jakarta.faces.component.html.HtmlMessage.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3804 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlMessage.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3805 - - String - - jakarta.faces.component.html.HtmlMessages.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3806 - - String - - jakarta.faces.component.html.HtmlMessages.getErrorClass -
-
-
- Return the value of the errorClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3807 - - String - - jakarta.faces.component.html.HtmlMessages.getErrorStyle -
-
-
- Return the value of the errorStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3808 - - String - - jakarta.faces.component.html.HtmlMessages.getFatalClass -
-
-
- Return the value of the fatalClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3809 - - String - - jakarta.faces.component.html.HtmlMessages.getFatalStyle -
-
-
- Return the value of the fatalStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3810 - - String - - jakarta.faces.component.html.HtmlMessages.getInfoClass -
-
-
- Return the value of the infoClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3811 - - String - - jakarta.faces.component.html.HtmlMessages.getInfoStyle -
-
-
- Return the value of the infoStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3812 - - String - - jakarta.faces.component.html.HtmlMessages.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3813 - - String - - jakarta.faces.component.html.HtmlMessages.getLayout -
-
-
- Return the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3814 - - String - - jakarta.faces.component.html.HtmlMessages.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3815 - - String - - jakarta.faces.component.html.HtmlMessages.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3816 - - String - - jakarta.faces.component.html.HtmlMessages.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3817 - - String - - jakarta.faces.component.html.HtmlMessages.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3818 - - String - - jakarta.faces.component.html.HtmlMessages.getWarnClass -
-
-
- Return the value of the warnClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3819 - - String - - jakarta.faces.component.html.HtmlMessages.getWarnStyle -
-
-
- Return the value of the warnStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3820 - - HtmlMessages - - jakarta.faces.component.html.HtmlMessages.HtmlMessages -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3821 - - boolean - - jakarta.faces.component.html.HtmlMessages.isTooltip -
-
-
- Return the value of the tooltip property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3822 - - void - - jakarta.faces.component.html.HtmlMessages.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3823 - - void - - jakarta.faces.component.html.HtmlMessages.setErrorClass -
- ( - String - ) -
-
- Set the value of the errorClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3824 - - void - - jakarta.faces.component.html.HtmlMessages.setErrorStyle -
- ( - String - ) -
-
- Set the value of the errorStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3825 - - void - - jakarta.faces.component.html.HtmlMessages.setFatalClass -
- ( - String - ) -
-
- Set the value of the fatalClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3826 - - void - - jakarta.faces.component.html.HtmlMessages.setFatalStyle -
- ( - String - ) -
-
- Set the value of the fatalStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3827 - - void - - jakarta.faces.component.html.HtmlMessages.setInfoClass -
- ( - String - ) -
-
- Set the value of the infoClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3828 - - void - - jakarta.faces.component.html.HtmlMessages.setInfoStyle -
- ( - String - ) -
-
- Set the value of the infoStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3829 - - void - - jakarta.faces.component.html.HtmlMessages.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3830 - - void - - jakarta.faces.component.html.HtmlMessages.setLayout -
- ( - String - ) -
-
- Set the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3831 - - void - - jakarta.faces.component.html.HtmlMessages.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3832 - - void - - jakarta.faces.component.html.HtmlMessages.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3833 - - void - - jakarta.faces.component.html.HtmlMessages.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3834 - - void - - jakarta.faces.component.html.HtmlMessages.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3835 - - void - - jakarta.faces.component.html.HtmlMessages.setTooltip -
- ( - boolean - ) -
-
- Set the value of the tooltip property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3836 - - void - - jakarta.faces.component.html.HtmlMessages.setWarnClass -
- ( - String - ) -
-
- Set the value of the warnClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3837 - - void - - jakarta.faces.component.html.HtmlMessages.setWarnStyle -
- ( - String - ) -
-
- Set the value of the warnStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3838 - - String - - jakarta.faces.component.html.HtmlMessages.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3839 - - PropertyKeys - - jakarta.faces.component.html.HtmlMessages.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3840 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlMessages.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3841 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3842 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getAlt -
-
-
- Return the value of the alt property. This attribute is ignored when the image - attribute is not specified. - - true - - -
-
-
- true -
- JSF:JAVADOC:3843 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3844 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3845 - - Collection - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3846 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getImage -
-
-
- Return the value of the image property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3847 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3848 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3849 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3850 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3851 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3852 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3853 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3854 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3855 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3856 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3857 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3858 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3859 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3860 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3861 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3862 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3863 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3864 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3865 - - HtmlOutcomeTargetButton - - jakarta.faces.component.html.HtmlOutcomeTargetButton.HtmlOutcomeTargetButton -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3866 - - boolean - - jakarta.faces.component.html.HtmlOutcomeTargetButton.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3867 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3868 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setAlt -
- ( - String - ) -
-
- Set the value of the alt property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3869 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3870 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3871 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setImage -
- ( - String - ) -
-
- Set the value of the image property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3872 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3873 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3874 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3875 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3876 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3877 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3878 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3879 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3880 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3881 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3882 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3883 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3884 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3885 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3886 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3887 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3888 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3889 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetButton.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3890 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetButton.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3891 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutcomeTargetButton.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3892 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutcomeTargetButton.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3893 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3894 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getCharset -
-
-
- Return the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3895 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getCoords -
-
-
- Return the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3896 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3897 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3898 - - Collection - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3899 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getHreflang -
-
-
- Return the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3900 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3901 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3902 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3903 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3904 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3905 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3906 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3907 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3908 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3909 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3910 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3911 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3912 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3913 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getRel -
-
-
- Return the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3914 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getRev -
-
-
- Return the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3915 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3916 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getShape -
-
-
- Return the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3917 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3918 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3919 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3920 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getTarget -
-
-
- Return the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3921 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3922 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.getType -
-
-
- Return the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3923 - - HtmlOutcomeTargetLink - - jakarta.faces.component.html.HtmlOutcomeTargetLink.HtmlOutcomeTargetLink -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3924 - - boolean - - jakarta.faces.component.html.HtmlOutcomeTargetLink.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3925 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3926 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setCharset -
- ( - String - ) -
-
- Set the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3927 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setCoords -
- ( - String - ) -
-
- Set the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3928 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3929 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3930 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setHreflang -
- ( - String - ) -
-
- Set the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3931 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3932 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3933 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3934 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3935 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3936 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3937 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3938 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3939 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3940 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3941 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3942 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3943 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3944 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setRel -
- ( - String - ) -
-
- Set the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3945 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setRev -
- ( - String - ) -
-
- Set the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3946 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3947 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setShape -
- ( - String - ) -
-
- Set the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3948 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3949 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3950 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3951 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setTarget -
- ( - String - ) -
-
- Set the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3952 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3953 - - void - - jakarta.faces.component.html.HtmlOutcomeTargetLink.setType -
- ( - String - ) -
-
- Set the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3954 - - String - - jakarta.faces.component.html.HtmlOutcomeTargetLink.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3955 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutcomeTargetLink.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3956 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutcomeTargetLink.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3957 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3958 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3959 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3960 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3961 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3962 - - String - - jakarta.faces.component.html.HtmlOutputFormat.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3963 - - HtmlOutputFormat - - jakarta.faces.component.html.HtmlOutputFormat.HtmlOutputFormat -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3964 - - boolean - - jakarta.faces.component.html.HtmlOutputFormat.isEscape -
-
-
- Return the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3965 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3966 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setEscape -
- ( - boolean - ) -
-
- Set the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3967 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3968 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3969 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3970 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3971 - - void - - jakarta.faces.component.html.HtmlOutputFormat.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3972 - - String - - jakarta.faces.component.html.HtmlOutputFormat.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3973 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutputFormat.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3974 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutputFormat.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3975 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3976 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:3977 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3978 - - Collection - - jakarta.faces.component.html.HtmlOutputLabel.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:3979 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getFor -
-
-
- Return the value of the for property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3980 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3981 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3982 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3983 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3984 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3985 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3986 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3987 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3988 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3989 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3990 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3991 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3992 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3993 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3994 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3995 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3996 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3997 - - String - - jakarta.faces.component.html.HtmlOutputLabel.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:3998 - - HtmlOutputLabel - - jakarta.faces.component.html.HtmlOutputLabel.HtmlOutputLabel -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:3999 - - boolean - - jakarta.faces.component.html.HtmlOutputLabel.isEscape -
-
-
- Return the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4000 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4001 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4002 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setEscape -
- ( - boolean - ) -
-
- Set the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4003 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setFor -
- ( - String - ) -
-
- Set the value of the for property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4004 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4005 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4006 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4007 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4008 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4009 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4010 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4011 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4012 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4013 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4014 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4015 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4016 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4017 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4018 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4019 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4020 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4021 - - void - - jakarta.faces.component.html.HtmlOutputLabel.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4022 - - String - - jakarta.faces.component.html.HtmlOutputLabel.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4023 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutputLabel.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4024 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutputLabel.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4025 - - String - - jakarta.faces.component.html.HtmlOutputLink.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4026 - - String - - jakarta.faces.component.html.HtmlOutputLink.getCharset -
-
-
- Return the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4027 - - String - - jakarta.faces.component.html.HtmlOutputLink.getCoords -
-
-
- Return the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4028 - - String - - jakarta.faces.component.html.HtmlOutputLink.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4029 - - String - - jakarta.faces.component.html.HtmlOutputLink.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4030 - - Collection - - jakarta.faces.component.html.HtmlOutputLink.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4031 - - String - - jakarta.faces.component.html.HtmlOutputLink.getFragment -
-
-
- Return the value of the fragment property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4032 - - String - - jakarta.faces.component.html.HtmlOutputLink.getHreflang -
-
-
- Return the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4033 - - String - - jakarta.faces.component.html.HtmlOutputLink.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4034 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4035 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4036 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4037 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4038 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4039 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4040 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4041 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4042 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4043 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4044 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4045 - - String - - jakarta.faces.component.html.HtmlOutputLink.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4046 - - String - - jakarta.faces.component.html.HtmlOutputLink.getRel -
-
-
- Return the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4047 - - String - - jakarta.faces.component.html.HtmlOutputLink.getRev -
-
-
- Return the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4048 - - String - - jakarta.faces.component.html.HtmlOutputLink.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4049 - - String - - jakarta.faces.component.html.HtmlOutputLink.getShape -
-
-
- Return the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4050 - - String - - jakarta.faces.component.html.HtmlOutputLink.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4051 - - String - - jakarta.faces.component.html.HtmlOutputLink.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4052 - - String - - jakarta.faces.component.html.HtmlOutputLink.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4053 - - String - - jakarta.faces.component.html.HtmlOutputLink.getTarget -
-
-
- Return the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4054 - - String - - jakarta.faces.component.html.HtmlOutputLink.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4055 - - String - - jakarta.faces.component.html.HtmlOutputLink.getType -
-
-
- Return the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4056 - - HtmlOutputLink - - jakarta.faces.component.html.HtmlOutputLink.HtmlOutputLink -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4057 - - boolean - - jakarta.faces.component.html.HtmlOutputLink.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4058 - - void - - jakarta.faces.component.html.HtmlOutputLink.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4059 - - void - - jakarta.faces.component.html.HtmlOutputLink.setCharset -
- ( - String - ) -
-
- Set the value of the charset property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4060 - - void - - jakarta.faces.component.html.HtmlOutputLink.setCoords -
- ( - String - ) -
-
- Set the value of the coords property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4061 - - void - - jakarta.faces.component.html.HtmlOutputLink.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4062 - - void - - jakarta.faces.component.html.HtmlOutputLink.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4063 - - void - - jakarta.faces.component.html.HtmlOutputLink.setFragment -
- ( - String - ) -
-
- Set the value of the fragment property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4064 - - void - - jakarta.faces.component.html.HtmlOutputLink.setHreflang -
- ( - String - ) -
-
- Set the value of the hreflang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4065 - - void - - jakarta.faces.component.html.HtmlOutputLink.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4066 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4067 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4068 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4069 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4070 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4071 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4072 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4073 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4074 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4075 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4076 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4077 - - void - - jakarta.faces.component.html.HtmlOutputLink.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4078 - - void - - jakarta.faces.component.html.HtmlOutputLink.setRel -
- ( - String - ) -
-
- Set the value of the rel property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4079 - - void - - jakarta.faces.component.html.HtmlOutputLink.setRev -
- ( - String - ) -
-
- Set the value of the rev property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4080 - - void - - jakarta.faces.component.html.HtmlOutputLink.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4081 - - void - - jakarta.faces.component.html.HtmlOutputLink.setShape -
- ( - String - ) -
-
- Set the value of the shape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4082 - - void - - jakarta.faces.component.html.HtmlOutputLink.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4083 - - void - - jakarta.faces.component.html.HtmlOutputLink.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4084 - - void - - jakarta.faces.component.html.HtmlOutputLink.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4085 - - void - - jakarta.faces.component.html.HtmlOutputLink.setTarget -
- ( - String - ) -
-
- Set the value of the target property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4086 - - void - - jakarta.faces.component.html.HtmlOutputLink.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4087 - - void - - jakarta.faces.component.html.HtmlOutputLink.setType -
- ( - String - ) -
-
- Set the value of the type property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4088 - - String - - jakarta.faces.component.html.HtmlOutputLink.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4089 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutputLink.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4090 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutputLink.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4091 - - String - - jakarta.faces.component.html.HtmlOutputText.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4092 - - String - - jakarta.faces.component.html.HtmlOutputText.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4093 - - String - - jakarta.faces.component.html.HtmlOutputText.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4094 - - String - - jakarta.faces.component.html.HtmlOutputText.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4095 - - String - - jakarta.faces.component.html.HtmlOutputText.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4096 - - String - - jakarta.faces.component.html.HtmlOutputText.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4097 - - HtmlOutputText - - jakarta.faces.component.html.HtmlOutputText.HtmlOutputText -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4098 - - boolean - - jakarta.faces.component.html.HtmlOutputText.isEscape -
-
-
- Return the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4099 - - void - - jakarta.faces.component.html.HtmlOutputText.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4100 - - void - - jakarta.faces.component.html.HtmlOutputText.setEscape -
- ( - boolean - ) -
-
- Set the value of the escape property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4101 - - void - - jakarta.faces.component.html.HtmlOutputText.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4102 - - void - - jakarta.faces.component.html.HtmlOutputText.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4103 - - void - - jakarta.faces.component.html.HtmlOutputText.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4104 - - void - - jakarta.faces.component.html.HtmlOutputText.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4105 - - void - - jakarta.faces.component.html.HtmlOutputText.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4106 - - String - - jakarta.faces.component.html.HtmlOutputText.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4107 - - PropertyKeys - - jakarta.faces.component.html.HtmlOutputText.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4108 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlOutputText.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4109 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getBgcolor -
-
-
- Return the value of the bgcolor property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4110 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getBodyrows -
-
-
- Return the value of the bodyrows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4111 - - int - - jakarta.faces.component.html.HtmlPanelGrid.getBorder -
-
-
- Return the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4112 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getCaptionClass -
-
-
- Return the value of the captionClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4113 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getCaptionStyle -
-
-
- Return the value of the captionStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4114 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getCellpadding -
-
-
- Return the value of the cellpadding property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4115 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getCellspacing -
-
-
- Return the value of the cellspacing property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4116 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getColumnClasses -
-
-
- Return the value of the columnClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4117 - - int - - jakarta.faces.component.html.HtmlPanelGrid.getColumns -
-
-
- Return the value of the columns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4118 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4119 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4120 - - Collection - - jakarta.faces.component.html.HtmlPanelGrid.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4121 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getFooterClass -
-
-
- Return the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4122 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getFrame -
-
-
- Return the value of the frame property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4123 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getHeaderClass -
-
-
- Return the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4124 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4125 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4126 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4127 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4128 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4129 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4130 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4131 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4132 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4133 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4134 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4135 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4136 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getRowClass -
-
-
- Return the value of the rowClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4137 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getRowClasses -
-
-
- Return the value of the rowClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4138 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getRules -
-
-
- Return the value of the rules property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4139 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4140 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4141 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getSummary -
-
-
- Return the value of the summary property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4142 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4143 - - String - - jakarta.faces.component.html.HtmlPanelGrid.getWidth -
-
-
- Return the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4144 - - HtmlPanelGrid - - jakarta.faces.component.html.HtmlPanelGrid.HtmlPanelGrid -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4145 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setBgcolor -
- ( - String - ) -
-
- Set the value of the bgcolor property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4146 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setBodyrows -
- ( - String - ) -
-
- Set the value of the bodyrows property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4147 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setBorder -
- ( - int - ) -
-
- Set the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4148 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setCaptionClass -
- ( - String - ) -
-
- Set the value of the captionClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4149 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setCaptionStyle -
- ( - String - ) -
-
- Set the value of the captionStyle property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4150 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setCellpadding -
- ( - String - ) -
-
- Set the value of the cellpadding property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4151 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setCellspacing -
- ( - String - ) -
-
- Set the value of the cellspacing property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4152 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setColumnClasses -
- ( - String - ) -
-
- Set the value of the columnClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4153 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setColumns -
- ( - int - ) -
-
- Set the value of the columns property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4154 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4155 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setFooterClass -
- ( - String - ) -
-
- Set the value of the footerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4156 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setFrame -
- ( - String - ) -
-
- Set the value of the frame property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4157 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setHeaderClass -
- ( - String - ) -
-
- Set the value of the headerClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4158 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4159 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4160 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4161 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4162 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4163 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4164 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4165 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4166 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4167 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4168 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4169 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4170 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setRowClass -
- ( - String - ) -
-
- Set the value of the rowClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4171 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setRowClasses -
- ( - String - ) -
-
- Set the value of the rowClasses property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4172 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setRules -
- ( - String - ) -
-
- Set the value of the rules property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4173 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4174 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4175 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setSummary -
- ( - String - ) -
-
- Set the value of the summary property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4176 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4177 - - void - - jakarta.faces.component.html.HtmlPanelGrid.setWidth -
- ( - String - ) -
-
- Set the value of the width property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4178 - - String - - jakarta.faces.component.html.HtmlPanelGrid.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4179 - - PropertyKeys - - jakarta.faces.component.html.HtmlPanelGrid.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4180 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlPanelGrid.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4181 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4182 - - Collection - - jakarta.faces.component.html.HtmlPanelGroup.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4183 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getLayout -
-
-
- Return the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4184 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4185 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4186 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4187 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4188 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4189 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4190 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4191 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4192 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4193 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4194 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4195 - - String - - jakarta.faces.component.html.HtmlPanelGroup.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4196 - - HtmlPanelGroup - - jakarta.faces.component.html.HtmlPanelGroup.HtmlPanelGroup -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4197 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setLayout -
- ( - String - ) -
-
- Set the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4198 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4199 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4200 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4201 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4202 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4203 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4204 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4205 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4206 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4207 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4208 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4209 - - void - - jakarta.faces.component.html.HtmlPanelGroup.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4210 - - String - - jakarta.faces.component.html.HtmlPanelGroup.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4211 - - PropertyKeys - - jakarta.faces.component.html.HtmlPanelGroup.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4212 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlPanelGroup.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4213 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4214 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4215 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4216 - - Collection - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4217 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4218 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4219 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4220 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4221 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4222 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4223 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4224 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4225 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4226 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4227 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4228 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4229 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4230 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4231 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4232 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4233 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4234 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4235 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4236 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4237 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4238 - - HtmlSelectBooleanCheckbox - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.HtmlSelectBooleanCheckbox -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4239 - - boolean - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4240 - - boolean - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4241 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4242 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4243 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4244 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4245 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4246 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4247 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4248 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4249 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4250 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4251 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4252 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4253 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4254 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4255 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4256 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4257 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4258 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4259 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4260 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4261 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4262 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4263 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4264 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4265 - - void - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4266 - - String - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4267 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4268 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectBooleanCheckbox.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4269 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4270 - - int - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getBorder -
-
-
- Return the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4271 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4272 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4273 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4274 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4275 - - Collection - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4276 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4277 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4278 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getLayout -
-
-
- Return the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4279 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4280 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4281 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4282 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4283 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4284 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4285 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4286 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4287 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4288 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4289 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4290 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4291 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4292 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4293 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4294 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getSelectedClass -
-
-
- Return the value of the selectedClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4295 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4296 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4297 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4298 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4299 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.getUnselectedClass -
-
-
- Return the value of the unselectedClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4300 - - HtmlSelectManyCheckbox - - jakarta.faces.component.html.HtmlSelectManyCheckbox.HtmlSelectManyCheckbox -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4301 - - boolean - - jakarta.faces.component.html.HtmlSelectManyCheckbox.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4302 - - boolean - - jakarta.faces.component.html.HtmlSelectManyCheckbox.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4303 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4304 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setBorder -
- ( - int - ) -
-
- Set the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4305 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4306 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4307 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4308 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4309 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4310 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4311 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setLayout -
- ( - String - ) -
-
- Set the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4312 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4313 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4314 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4315 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4316 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4317 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4318 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4319 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4320 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4321 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4322 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4323 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4324 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4325 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4326 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4327 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4328 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setSelectedClass -
- ( - String - ) -
-
- Set the value of the selectedClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4329 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4330 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4331 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4332 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4333 - - void - - jakarta.faces.component.html.HtmlSelectManyCheckbox.setUnselectedClass -
- ( - String - ) -
-
- Set the value of the unselectedClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4334 - - String - - jakarta.faces.component.html.HtmlSelectManyCheckbox.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4335 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectManyCheckbox.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4336 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectManyCheckbox.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4337 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4338 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4339 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4340 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4341 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4342 - - Collection - - jakarta.faces.component.html.HtmlSelectManyListbox.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4343 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4344 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4345 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4346 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4347 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4348 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4349 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4350 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4351 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4352 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4353 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4354 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4355 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4356 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4357 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4358 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4359 - - int - - jakarta.faces.component.html.HtmlSelectManyListbox.getSize -
-
-
- Return the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4360 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4361 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4362 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4363 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4364 - - HtmlSelectManyListbox - - jakarta.faces.component.html.HtmlSelectManyListbox.HtmlSelectManyListbox -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4365 - - boolean - - jakarta.faces.component.html.HtmlSelectManyListbox.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4366 - - boolean - - jakarta.faces.component.html.HtmlSelectManyListbox.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4367 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4368 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4369 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4370 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4371 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4372 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4373 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4374 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4375 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4376 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4377 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4378 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4379 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4380 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4381 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4382 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4383 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4384 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4385 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4386 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4387 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4388 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4389 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setSize -
- ( - int - ) -
-
- Set the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4390 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4391 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4392 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4393 - - void - - jakarta.faces.component.html.HtmlSelectManyListbox.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4394 - - String - - jakarta.faces.component.html.HtmlSelectManyListbox.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4395 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectManyListbox.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4396 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectManyListbox.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4397 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4398 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4399 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4400 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4401 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4402 - - Collection - - jakarta.faces.component.html.HtmlSelectManyMenu.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4403 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4404 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4405 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4406 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4407 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4408 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4409 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4410 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4411 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4412 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4413 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4414 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4415 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4416 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4417 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4418 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4419 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4420 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4421 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4422 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4423 - - HtmlSelectManyMenu - - jakarta.faces.component.html.HtmlSelectManyMenu.HtmlSelectManyMenu -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4424 - - boolean - - jakarta.faces.component.html.HtmlSelectManyMenu.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4425 - - boolean - - jakarta.faces.component.html.HtmlSelectManyMenu.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4426 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4427 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4428 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4429 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4430 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4431 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4432 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4433 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4434 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4435 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4436 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4437 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4438 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4439 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4440 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4441 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4442 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4443 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4444 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4445 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4446 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4447 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4448 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4449 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4450 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4451 - - void - - jakarta.faces.component.html.HtmlSelectManyMenu.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4452 - - String - - jakarta.faces.component.html.HtmlSelectManyMenu.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4453 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectManyMenu.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4454 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectManyMenu.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4455 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4456 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4457 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4458 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4459 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4460 - - Collection - - jakarta.faces.component.html.HtmlSelectOneListbox.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4461 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4462 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4463 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4464 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4465 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4466 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4467 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4468 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4469 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4470 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4471 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4472 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4473 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4474 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4475 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4476 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4477 - - int - - jakarta.faces.component.html.HtmlSelectOneListbox.getSize -
-
-
- Return the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4478 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4479 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4480 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4481 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4482 - - HtmlSelectOneListbox - - jakarta.faces.component.html.HtmlSelectOneListbox.HtmlSelectOneListbox -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4483 - - boolean - - jakarta.faces.component.html.HtmlSelectOneListbox.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4484 - - boolean - - jakarta.faces.component.html.HtmlSelectOneListbox.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4485 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4486 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4487 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4488 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4489 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4490 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4491 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4492 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4493 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4494 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4495 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4496 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4497 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4498 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4499 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4500 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4501 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4502 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4503 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4504 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4505 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4506 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4507 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setSize -
- ( - int - ) -
-
- Set the value of the size property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4508 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4509 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4510 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4511 - - void - - jakarta.faces.component.html.HtmlSelectOneListbox.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4512 - - String - - jakarta.faces.component.html.HtmlSelectOneListbox.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4513 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectOneListbox.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4514 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectOneListbox.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4515 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4516 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4517 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4518 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4519 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4520 - - Collection - - jakarta.faces.component.html.HtmlSelectOneMenu.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4521 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4522 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4523 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4524 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4525 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4526 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4527 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4528 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4529 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4530 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4531 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4532 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4533 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4534 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4535 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4536 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4537 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4538 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4539 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4540 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4541 - - HtmlSelectOneMenu - - jakarta.faces.component.html.HtmlSelectOneMenu.HtmlSelectOneMenu -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4542 - - boolean - - jakarta.faces.component.html.HtmlSelectOneMenu.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4543 - - boolean - - jakarta.faces.component.html.HtmlSelectOneMenu.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4544 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4545 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4546 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4547 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4548 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4549 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4550 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4551 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4552 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4553 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4554 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4555 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4556 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4557 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4558 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4559 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4560 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4561 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4562 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4563 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4564 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4565 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4566 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4567 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4568 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4569 - - void - - jakarta.faces.component.html.HtmlSelectOneMenu.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4570 - - String - - jakarta.faces.component.html.HtmlSelectOneMenu.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4571 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectOneMenu.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4572 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectOneMenu.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4573 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getAccesskey -
-
-
- Return the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4574 - - int - - jakarta.faces.component.html.HtmlSelectOneRadio.getBorder -
-
-
- Return the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4575 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getDefaultEventName -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not - implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation - of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - true - - -
-
-
- true -
- JSF:JAVADOC:4576 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getDir -
-
-
- Return the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4577 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getDisabledClass -
-
-
- Return the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4578 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getEnabledClass -
-
-
- Return the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4579 - - Collection - - jakarta.faces.component.html.HtmlSelectOneRadio.getEventNames -
-
-
- This is a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement - the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default - implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to - simplify subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass - implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to - return a non-Empty Collection of the client event names that the component supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:4580 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getGroup -
-
-
- Return the value of the group property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4581 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getLabel -
-
-
- Return the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4582 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getLang -
-
-
- Return the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4583 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getLayout -
-
-
- Return the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4584 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnblur -
-
-
- Return the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4585 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnchange -
-
-
- Return the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4586 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnclick -
-
-
- Return the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4587 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOndblclick -
-
-
- Return the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4588 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnfocus -
-
-
- Return the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4589 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnkeydown -
-
-
- Return the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4590 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnkeypress -
-
-
- Return the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4591 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnkeyup -
-
-
- Return the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4592 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnmousedown -
-
-
- Return the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4593 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnmousemove -
-
-
- Return the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4594 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnmouseout -
-
-
- Return the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4595 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnmouseover -
-
-
- Return the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4596 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnmouseup -
-
-
- Return the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4597 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getOnselect -
-
-
- Return the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4598 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getRole -
-
-
- Return the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4599 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getStyle -
-
-
- Return the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4600 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getStyleClass -
-
-
- Return the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4601 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getTabindex -
-
-
- Return the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4602 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.getTitle -
-
-
- Return the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4603 - - HtmlSelectOneRadio - - jakarta.faces.component.html.HtmlSelectOneRadio.HtmlSelectOneRadio -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4604 - - boolean - - jakarta.faces.component.html.HtmlSelectOneRadio.isDisabled -
-
-
- Return the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4605 - - boolean - - jakarta.faces.component.html.HtmlSelectOneRadio.isReadonly -
-
-
- Return the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4606 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setAccesskey -
- ( - String - ) -
-
- Set the value of the accesskey property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4607 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setBorder -
- ( - int - ) -
-
- Set the value of the border property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4608 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setDir -
- ( - String - ) -
-
- Set the value of the dir property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4609 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setDisabled -
- ( - boolean - ) -
-
- Set the value of the disabled property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4610 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setDisabledClass -
- ( - String - ) -
-
- Set the value of the disabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4611 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setEnabledClass -
- ( - String - ) -
-
- Set the value of the enabledClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4612 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setGroup -
- ( - String - ) -
-
- Set the value of the group property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4613 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setLabel -
- ( - String - ) -
-
- Set the value of the label property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4614 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setLang -
- ( - String - ) -
-
- Set the value of the lang property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4615 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setLayout -
- ( - String - ) -
-
- Set the value of the layout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4616 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnblur -
- ( - String - ) -
-
- Set the value of the onblur property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4617 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnchange -
- ( - String - ) -
-
- Set the value of the onchange property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4618 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnclick -
- ( - String - ) -
-
- Set the value of the onclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4619 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOndblclick -
- ( - String - ) -
-
- Set the value of the ondblclick property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4620 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnfocus -
- ( - String - ) -
-
- Set the value of the onfocus property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4621 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnkeydown -
- ( - String - ) -
-
- Set the value of the onkeydown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4622 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnkeypress -
- ( - String - ) -
-
- Set the value of the onkeypress property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4623 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnkeyup -
- ( - String - ) -
-
- Set the value of the onkeyup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4624 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnmousedown -
- ( - String - ) -
-
- Set the value of the onmousedown property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4625 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnmousemove -
- ( - String - ) -
-
- Set the value of the onmousemove property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4626 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnmouseout -
- ( - String - ) -
-
- Set the value of the onmouseout property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4627 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnmouseover -
- ( - String - ) -
-
- Set the value of the onmouseover property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4628 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnmouseup -
- ( - String - ) -
-
- Set the value of the onmouseup property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4629 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setOnselect -
- ( - String - ) -
-
- Set the value of the onselect property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4630 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setReadonly -
- ( - boolean - ) -
-
- Set the value of the readonly property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4631 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setRole -
- ( - String - ) -
-
- Set the value of the role property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4632 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setStyle -
- ( - String - ) -
-
- Set the value of the style property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4633 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setStyleClass -
- ( - String - ) -
-
- Set the value of the styleClass property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4634 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setTabindex -
- ( - String - ) -
-
- Set the value of the tabindex property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4635 - - void - - jakarta.faces.component.html.HtmlSelectOneRadio.setTitle -
- ( - String - ) -
-
- Set the value of the title property. - - true - - -
-
-
- true -
- JSF:JAVADOC:4636 - - String - - jakarta.faces.component.html.HtmlSelectOneRadio.PropertyKeys.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4637 - - PropertyKeys - - jakarta.faces.component.html.HtmlSelectOneRadio.PropertyKeys.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4638 - - PropertyKeys[] - - jakarta.faces.component.html.HtmlSelectOneRadio.PropertyKeys.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4639 - - ComponentNotFoundException - - jakarta.faces.component.search.ComponentNotFoundException.ComponentNotFoundException -
-
-
- Construct a new exception with no detail message or root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:4640 - - ComponentNotFoundException - - jakarta.faces.component.search.ComponentNotFoundException.ComponentNotFoundException -
- ( - String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:4641 - - ComponentNotFoundException - - jakarta.faces.component.search.ComponentNotFoundException.ComponentNotFoundException -
- ( - Throwable - ) -
-
- Construct a new exception with the specified root cause. The detail message will be set - to (cause == null ? null : cause.toString() - - true - - -
-
-
- true -
- JSF:JAVADOC:4642 - - ComponentNotFoundException - - jakarta.faces.component.search.ComponentNotFoundException.ComponentNotFoundException -
- ( - String - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:4643 - - SearchExpressionContext - - jakarta.faces.component.search.SearchExpressionContext.createSearchExpressionContext -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. - This method can be used to obtain a SearchExpressionContext instance without any VisitHint or - SearchExpressionHint. - - true - - -
-
-
- true -
- JSF:JAVADOC:4644 - - SearchExpressionContext - - jakarta.faces.component.search.SearchExpressionContext.createSearchExpressionContext -
- ( - FacesContext - , -
- UIComponent - , -
- Set - , -
- Set - ) -
-
- Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4645 - - Set - - jakarta.faces.component.search.SearchExpressionContext.getExpressionHints -
-
-
- Returns hints that influence the behavior of resolving the expression. - - true - - -
-
-
- true -
- JSF:JAVADOC:4646 - - FacesContext - - jakarta.faces.component.search.SearchExpressionContext.getFacesContext -
-
-
- Returns the FacesContext for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4647 - - UIComponent - - jakarta.faces.component.search.SearchExpressionContext.getSource -
-
-
- Returns the source / base component from which we will start to perform our search. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4648 - - Set - - jakarta.faces.component.search.SearchExpressionContext.getVisitHints -
-
-
- Returns hints that influence the behavior of the tree visit, if it's used by an - SearchKeywordResolver implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:4649 - - SearchExpressionContext - - jakarta.faces.component.search.SearchExpressionContext.SearchExpressionContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4650 - - SearchExpressionContext - - - jakarta.faces.component.search.SearchExpressionContextFactory.getSearchExpressionContext -
- ( - FacesContext - , -
- UIComponent - , -
- Set - , -
- Set - ) -
-
- Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4651 - - SearchExpressionContextFactory - - jakarta.faces.component.search.SearchExpressionContextFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4652 - - SearchExpressionContextFactory - - - jakarta.faces.component.search.SearchExpressionContextFactory.SearchExpressionContextFactory -
- ( - SearchExpressionContextFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4653 - - char[] - - jakarta.faces.component.search.SearchExpressionHandler.getExpressionSeperatorChars -
- ( - FacesContext - ) -
-
- Return the characters used to separate expressions in a series of expressions. The - default implementation returns SearchExpressionHandler#EXPRESSION_SEPARATOR_CHARS. - - true - - -
-
-
- true -
- JSF:JAVADOC:4654 - - void - - jakarta.faces.component.search.SearchExpressionHandler.invokeOnComponent -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression. For each resolved component, - the ContextCallback will be invoked. This method is the most essential method in the API. It - implements the algorithm which handles the recursion of the keywords and id's. - - true - - -
-
-
- true -
- JSF:JAVADOC:4655 - - void - - jakarta.faces.component.search.SearchExpressionHandler.invokeOnComponent -
- ( - SearchExpressionContext - , -
- UIComponent - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression. For each resolved component, - the ContextCallback will be invoked. This method is the most essential method in the API. It - implements the algorithm which handles the recursion of the keywords and id's. - - true - - -
-
-
- true -
- JSF:JAVADOC:4656 - - boolean - - jakarta.faces.component.search.SearchExpressionHandler.isPassthroughExpression -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Checks if the given expression is a "passtrough expression". A passthrough expression - must only be a keyword. This keyword will not be resolved by the SearchKeywordResolver and will be - returned untouched. The client is responsible to resolve it later. - - true - - -
-
-
- true -
- JSF:JAVADOC:4657 - - boolean - - jakarta.faces.component.search.SearchExpressionHandler.isValidExpression -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Checks if the given expression is a valid expression. A expression is invalid if: No - SearchKeywordResolver matches the requested keyword A keyword or id is placed after a leaf keyword - (@none:@form) - - true - - -
-
-
- true -
- JSF:JAVADOC:4658 - - String - - jakarta.faces.component.search.SearchExpressionHandler.resolveClientId -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Resolves to a single clientId or passthrough expression for the given expression. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4659 - - List - - jakarta.faces.component.search.SearchExpressionHandler.resolveClientIds -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Resolves to a List with clientIds or passthrough expressions for the given expressions. - The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, - java.lang.String) and resolved one by one. - - true - - -
-
-
- true -
- JSF:JAVADOC:4660 - - void - - jakarta.faces.component.search.SearchExpressionHandler.resolveComponent -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves a single UIComponents for the given expression. If the component is resolved, - the ContextCallback will be invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:4661 - - void - - jakarta.faces.component.search.SearchExpressionHandler.resolveComponents -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression(s). The expressions will be - splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one - by one. For each resolved component, the ContextCallback will be invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:4662 - - SearchExpressionHandler - - jakarta.faces.component.search.SearchExpressionHandler.SearchExpressionHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4663 - - String[] - - jakarta.faces.component.search.SearchExpressionHandler.splitExpressions -
- ( - FacesContext - , -
- String - ) -
-
- Splits an string, based on - #getExpressionSeperatorChars(jakarta.faces.context.FacesContext) with possible multiple expressions - into an array. - - true - - -
-
-
- true -
- JSF:JAVADOC:4664 - - char[] - - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.getExpressionSeperatorChars -
- ( - FacesContext - ) -
-
- Return the characters used to separate expressions in a series of expressions. The - default implementation returns SearchExpressionHandler#EXPRESSION_SEPARATOR_CHARS. - - true - - -
-
-
- true -
- JSF:JAVADOC:4665 - - SearchExpressionHandler - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4666 - - void - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.invokeOnComponent -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression. For each resolved component, - the ContextCallback will be invoked. This method is the most essential method in the API. It - implements the algorithm which handles the recursion of the keywords and id's. - - true - - -
-
-
- true -
- JSF:JAVADOC:4667 - - void - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.invokeOnComponent -
- ( - SearchExpressionContext - , -
- UIComponent - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression. For each resolved component, - the ContextCallback will be invoked. This method is the most essential method in the API. It - implements the algorithm which handles the recursion of the keywords and id's. - - true - - -
-
-
- true -
- JSF:JAVADOC:4668 - - boolean - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.isPassthroughExpression -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Checks if the given expression is a "passtrough expression". A passthrough expression - must only be a keyword. This keyword will not be resolved by the SearchKeywordResolver and will be - returned untouched. The client is responsible to resolve it later. - - true - - -
-
-
- true -
- JSF:JAVADOC:4669 - - boolean - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.isValidExpression -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Checks if the given expression is a valid expression. A expression is invalid if: No - SearchKeywordResolver matches the requested keyword A keyword or id is placed after a leaf keyword - (@none:@form) - - true - - -
-
-
- true -
- JSF:JAVADOC:4670 - - String - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.resolveClientId -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Resolves to a single clientId or passthrough expression for the given expression. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4671 - - List - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.resolveClientIds -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Resolves to a List with clientIds or passthrough expressions for the given expressions. - The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, - java.lang.String) and resolved one by one. - - true - - -
-
-
- true -
- JSF:JAVADOC:4672 - - void - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.resolveComponent -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves a single UIComponents for the given expression. If the component is resolved, - the ContextCallback will be invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:4673 - - void - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.resolveComponents -
- ( - SearchExpressionContext - , -
- String - , -
- ContextCallback - ) -
-
- Resolves multiple UIComponents for the given expression(s). The expressions will be - splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one - by one. For each resolved component, the ContextCallback will be invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:4674 - - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.SearchExpressionHandlerWrapper -
- ( - SearchExpressionHandler - ) -
-
- If this search expression handler has been decorated, the implementation doing the - decorating should push the implementation being wrapped to this constructor. The #getWrapped() will - then return the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4675 - - String[] - - jakarta.faces.component.search.SearchExpressionHandlerWrapper.splitExpressions -
- ( - FacesContext - , -
- String - ) -
-
- Splits an string, based on - #getExpressionSeperatorChars(jakarta.faces.context.FacesContext) with possible multiple expressions - into an array. - - true - - -
-
-
- true -
- JSF:JAVADOC:4676 - - SearchExpressionHint - - jakarta.faces.component.search.SearchExpressionHint.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4677 - - SearchExpressionHint[] - - jakarta.faces.component.search.SearchExpressionHint.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4678 - - ContextCallback - - jakarta.faces.component.search.SearchKeywordContext.getCallback -
-
-
- Returns the ContextCallback for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4679 - - String - - jakarta.faces.component.search.SearchKeywordContext.getRemainingExpression -
-
-
- Returns the remaining expression for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4680 - - SearchExpressionContext - - jakarta.faces.component.search.SearchKeywordContext.getSearchExpressionContext -
-
-
- Returns the SearchExpressionContext for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4681 - - void - - jakarta.faces.component.search.SearchKeywordContext.invokeContextCallback -
- ( - UIComponent - ) -
-
- This method will be called by an implementation of SearchKeywordResolver#resolve with - the resolved component for the keyword. - - true - - -
-
-
- true -
- JSF:JAVADOC:4682 - - boolean - - jakarta.faces.component.search.SearchKeywordContext.isKeywordResolved -
-
-
- Returns if the keyword was resolved. - - true - - -
-
-
- true -
- JSF:JAVADOC:4683 - - SearchKeywordContext - - jakarta.faces.component.search.SearchKeywordContext.SearchKeywordContext -
- ( - SearchExpressionContext - , -
- ContextCallback - , -
- String - ) -
-
- Construct a new context with the given arguments. - - true - - -
-
-
- true -
- JSF:JAVADOC:4684 - - void - - jakarta.faces.component.search.SearchKeywordContext.setKeywordResolved -
- ( - boolean - ) -
-
- Sets if the keyword was resolved. - - true - - -
-
-
- true -
- JSF:JAVADOC:4685 - - boolean - - jakarta.faces.component.search.SearchKeywordResolver.isLeaf -
- ( - SearchExpressionContext - , -
- String - ) -
-
- A leaf keyword is a keyword that does not allow to be combined with keywords or id - chains to the right. For example: @none:@parent. - - true - - -
-
-
- true -
- JSF:JAVADOC:4686 - - boolean - - jakarta.faces.component.search.SearchKeywordResolver.isPassthrough -
- ( - SearchExpressionContext - , -
- String - ) -
-
- A passthrough keyword is a keyword, that according to the context, does not require to - be resolved on the server, and can be passed "unresolved" to the client. - - true - - -
-
-
- true -
- JSF:JAVADOC:4687 - - boolean - - jakarta.faces.component.search.SearchKeywordResolver.isResolverForKeyword -
- ( - SearchExpressionContext - , -
- String - ) -
-
- Checks if the current instance of the SearchKeywordResolver is responsible for - resolving the keyword. - - true - - -
-
-
- true -
- JSF:JAVADOC:4688 - - void - - jakarta.faces.component.search.SearchKeywordResolver.resolve -
- ( - SearchKeywordContext - , -
- UIComponent - , -
- String - ) -
-
- Try to resolve one or multiple UIComponents based on the keyword and calls - SearchKeywordContext#invokeContextCallback(jakarta.faces.component.UIComponent) for each resolved - component. - - true - - -
-
-
- true -
- JSF:JAVADOC:4689 - - SearchKeywordResolver - - jakarta.faces.component.search.SearchKeywordResolver.SearchKeywordResolver -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4690 - - VisitResult - - jakarta.faces.component.visit.VisitCallback.visit -
- ( - VisitContext - , -
- UIComponent - ) -
-
- This method is called during component tree visits by VisitContext#invokeVisitCallback - VisitContext.invokeVisitCallback() to visit the specified component. At the point in time when this - method is called, the argument target is guaranteed to be in the proper state with respect to its - ancestors in the View. - - true - - -
-
-
- true -
- JSF:JAVADOC:4691 - - VisitContext - - jakarta.faces.component.visit.VisitContext.createVisitContext -
- ( - FacesContext - , -
- Collection - , -
- Set - ) -
-
- Returns a VisitContext instance that is initialized with the specified ids and hintsfor - use with UIComponent#visitTree. - - true - - -
-
-
- true -
- JSF:JAVADOC:4692 - - VisitContext - - jakarta.faces.component.visit.VisitContext.createVisitContext -
- ( - FacesContext - ) -
-
- Creates a VisitContext instance for use with UIComponent#visitTree - UIComponent.visitTree(). This method can be used to obtain a VisitContext instance when all - components should be visited with the default visit hints. - - true - - -
-
-
- true -
- JSF:JAVADOC:4693 - - FacesContext - - jakarta.faces.component.visit.VisitContext.getFacesContext -
-
-
- Returns the FacesContext for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4694 - - Set - - jakarta.faces.component.visit.VisitContext.getHints -
-
-
- Returns hints that influence the behavior of the tree visit. Interested parties, such - as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a - particular hint is present by calling VisitContext.getHints().contains(), passing in one of the - hints defined by VisitHint. - - true - - -
-
-
- true -
- JSF:JAVADOC:4695 - - Collection - - jakarta.faces.component.visit.VisitContext.getIdsToVisit -
-
-
- Returns the ids of the components to visit. In the case of a full tree visit, this - method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a - modifiable collection containing the client ids of the components that should be visited. - - true - - -
-
-
- true -
- JSF:JAVADOC:4696 - - Collection - - jakarta.faces.component.visit.VisitContext.getSubtreeIdsToVisit -
- ( - UIComponent - ) -
-
- Given a jakarta.faces.component.NamingContainer component, returns the client ids of - any components underneath the NamingContainer that should be visited. This method is called by - NamingContainer visitTree() implementations to determine whether the NamingContainer contains - components to be visited. In the case where no such components exist, the NamingContainer can - short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating - components such as UIData may be able to use the returned ids to determine which iterated states - (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those - rows that contain visit targets need to be traversed. - - true - - -
-
-
- true -
- JSF:JAVADOC:4697 - - VisitResult - - jakarta.faces.component.visit.VisitContext.invokeVisitCallback -
- ( - UIComponent - , -
- VisitCallback - ) -
-
- Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4698 - - VisitContext - - jakarta.faces.component.visit.VisitContext.VisitContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4699 - - VisitContext - - jakarta.faces.component.visit.VisitContextFactory.getVisitContext -
- ( - FacesContext - , -
- Collection - , -
- Set - ) -
-
- Return a new VisitContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4700 - - VisitContextFactory - - jakarta.faces.component.visit.VisitContextFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4701 - - VisitContextFactory - - jakarta.faces.component.visit.VisitContextFactory.VisitContextFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4702 - - VisitContextFactory - - jakarta.faces.component.visit.VisitContextFactory.VisitContextFactory -
- ( - VisitContextFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4703 - - FacesContext - - jakarta.faces.component.visit.VisitContextWrapper.getFacesContext -
-
-
- Returns the FacesContext for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4704 - - Set - - jakarta.faces.component.visit.VisitContextWrapper.getHints -
-
-
- Returns hints that influence the behavior of the tree visit. Interested parties, such - as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a - particular hint is present by calling VisitContext.getHints().contains(), passing in one of the - hints defined by VisitHint. - - true - - -
-
-
- true -
- JSF:JAVADOC:4705 - - Collection - - jakarta.faces.component.visit.VisitContextWrapper.getIdsToVisit -
-
-
- Returns the ids of the components to visit. In the case of a full tree visit, this - method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a - modifiable collection containing the client ids of the components that should be visited. - - true - - -
-
-
- true -
- JSF:JAVADOC:4706 - - Collection - - jakarta.faces.component.visit.VisitContextWrapper.getSubtreeIdsToVisit -
- ( - UIComponent - ) -
-
- Given a jakarta.faces.component.NamingContainer component, returns the client ids of - any components underneath the NamingContainer that should be visited. This method is called by - NamingContainer visitTree() implementations to determine whether the NamingContainer contains - components to be visited. In the case where no such components exist, the NamingContainer can - short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating - components such as UIData may be able to use the returned ids to determine which iterated states - (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those - rows that contain visit targets need to be traversed. - - true - - -
-
-
- true -
- JSF:JAVADOC:4707 - - VisitContext - - jakarta.faces.component.visit.VisitContextWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4708 - - VisitResult - - jakarta.faces.component.visit.VisitContextWrapper.invokeVisitCallback -
- ( - UIComponent - , -
- VisitCallback - ) -
-
- Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4709 - - VisitContextWrapper - - jakarta.faces.component.visit.VisitContextWrapper.VisitContextWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4710 - - VisitContextWrapper - - jakarta.faces.component.visit.VisitContextWrapper.VisitContextWrapper -
- ( - VisitContext - ) -
-
- If this visit context has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4711 - - VisitHint - - jakarta.faces.component.visit.VisitHint.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4712 - - VisitHint[] - - jakarta.faces.component.visit.VisitHint.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4713 - - VisitResult - - jakarta.faces.component.visit.VisitResult.valueOf -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4714 - - VisitResult[] - - jakarta.faces.component.visit.VisitResult.values -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4715 - - ExceptionHandler - - jakarta.faces.context.ExceptionHandler.ExceptionHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4716 - - ExceptionQueuedEvent - - jakarta.faces.context.ExceptionHandler.getHandledExceptionQueuedEvent -
-
-
- Return the first ExceptionQueuedEvent handled by this handler. - - true - - -
-
-
- true -
- JSF:JAVADOC:4717 - - Iterable - - jakarta.faces.context.ExceptionHandler.getHandledExceptionQueuedEvents -
-
-
- The default implementation must return an Iterable over all ExceptionQueuedEvents that - have been handled by the #handle method. - - true - - -
-
-
- true -
- JSF:JAVADOC:4718 - - Throwable - - jakarta.faces.context.ExceptionHandler.getRootCause -
- ( - Throwable - ) -
-
- Unwrap the argument t until the unwrapping encounters an Object whose getClass() is not - equal to FacesException.class or jakarta.el.ELException.class. If there is no root cause, null is - returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:4719 - - Iterable - - jakarta.faces.context.ExceptionHandler.getUnhandledExceptionQueuedEvents -
-
-
- Return an Iterable over all ExceptionQueuedEvents that have not yet been handled by the - #handle method. - - true - - -
-
-
- true -
- JSF:JAVADOC:4720 - - void - - jakarta.faces.context.ExceptionHandler.handle -
-
-
- Take action to handle the Exception instances residing inside the ExceptionQueuedEvent - instances that have been queued by calls to Application().publishEvent(ExceptionQueuedEvent.class, - eventContext). The requirements of the default implementation are detailed in section 6.2.1 "Default - ExceptionHandler implementation" of the Jakarta Faces Specification Document. - - true - - -
-
-
- true -
- JSF:JAVADOC:4721 - - void - - jakarta.faces.context.ExceptionHandler.handle -
-
- throws - FacesException -
-
-
- if and only if a problem occurs while performing the algorithm to handle the Exception, - not as a means of conveying a handled Exception itself. - - true - - -
-
-
- true -
- JSF:JAVADOC:4722 - - boolean - - jakarta.faces.context.ExceptionHandler.isListenerForSource -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4723 - - void - - jakarta.faces.context.ExceptionHandler.processEvent -
- ( - SystemEvent - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4724 - - void - - jakarta.faces.context.ExceptionHandler.processEvent -
- ( - SystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4725 - - ExceptionHandlerFactory - - jakarta.faces.context.ExceptionHandlerFactory.ExceptionHandlerFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4726 - - ExceptionHandlerFactory - - jakarta.faces.context.ExceptionHandlerFactory.ExceptionHandlerFactory -
- ( - ExceptionHandlerFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4727 - - ExceptionHandler - - jakarta.faces.context.ExceptionHandlerFactory.getExceptionHandler -
-
-
- Create and return a A new ExceptionHandler instance. The implementation must return an - ExceptionHandler instance suitable for the environment. For example, in some cases it may be - desirable for an ExceptionHandler to write error information to the response instead of throwing - exceptions as in the case of Ajax applications. - - true - - -
-
-
- true -
- JSF:JAVADOC:4728 - - ExceptionHandlerFactory - - jakarta.faces.context.ExceptionHandlerFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4729 - - ExceptionHandlerWrapper - - jakarta.faces.context.ExceptionHandlerWrapper.ExceptionHandlerWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4730 - - ExceptionHandlerWrapper - - jakarta.faces.context.ExceptionHandlerWrapper.ExceptionHandlerWrapper -
- ( - ExceptionHandler - ) -
-
- If this exception handler has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4731 - - ExceptionQueuedEvent - - jakarta.faces.context.ExceptionHandlerWrapper.getHandledExceptionQueuedEvent -
-
-
- The default behavior of this method is to call - ExceptionHandler#getHandledExceptionQueuedEvent() on the wrapped ExceptionHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4732 - - Iterable - - jakarta.faces.context.ExceptionHandlerWrapper.getHandledExceptionQueuedEvents -
-
-
- The default behavior of this method is to call - ExceptionHandler#getHandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4733 - - Throwable - - jakarta.faces.context.ExceptionHandlerWrapper.getRootCause -
- ( - Throwable - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#getRootCause(Throwable) on the wrapped ExceptionHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4734 - - Iterable - - jakarta.faces.context.ExceptionHandlerWrapper.getUnhandledExceptionQueuedEvents -
-
-
- The default behavior of this method is to call - ExceptionHandler#getUnhandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4735 - - ExceptionHandler - - jakarta.faces.context.ExceptionHandlerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4736 - - void - - jakarta.faces.context.ExceptionHandlerWrapper.handle -
-
-
- The default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#handle() on the wrapped ExceptionHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4737 - - void - - jakarta.faces.context.ExceptionHandlerWrapper.handle -
-
- throws - FacesException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4738 - - boolean - - jakarta.faces.context.ExceptionHandlerWrapper.isListenerForSource -
- ( - Object - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#isListenerForSource(Object) on the wrapped ExceptionHandler - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4739 - - void - - jakarta.faces.context.ExceptionHandlerWrapper.processEvent -
- ( - SystemEvent - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#processEvent(jakarta.faces.event.SystemEvent) on the wrapped - ExceptionHandler object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4740 - - void - - jakarta.faces.context.ExceptionHandlerWrapper.processEvent -
- ( - SystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4741 - - void - - jakarta.faces.context.ExternalContext.addResponseCookie -
- ( - String - , -
- String - , -
- Map - ) -
-
- Adds the cookie represented by the arguments to the response. Jakarta Servlet: This - must be accomplished by calling the jakarta.servlet.http.HttpServletResponse method addCookie(). The - Cookie argument must be constructed by passing the name and value parameters. If the properties - arugument is non-null and not empty, the Cookie instance must be initialized as described below. - Cookie handling table Key in "values" Map (case sensitive) Expected type of value. Name of setter - method on Cookie instance to be set with the value from the Map. comment String setComment domain - String setDomain maxAge Integer setMaxAge secure Boolean setSecure path String setPath httpOnly - Boolean setHttpOnly any other attribute (e.g. SameSite) String setAttribute The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4742 - - void - - jakarta.faces.context.ExternalContext.addResponseHeader -
- ( - String - , -
- String - ) -
-
- Add the given name and value to the response header. Jakarta Servlet:This must be - performed by calling the jakarta.servlet.http.HttpServletResponse addHeader method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4743 - - void - - jakarta.faces.context.ExternalContext.dispatch -
- ( - String - ) -
-
- Dispatch a request to the specified resource to create output for this response. - Jakarta Servlet: This must be accomplished by calling the jakarta.servlet.ServletContext method - getRequestDispatcher(path), and calling the forward() method on the resulting object. If the call to - getRequestDisatcher(path) returns null, send aServletResponse SC_NOT_FOUND error code. - - true - - -
-
-
- true -
- JSF:JAVADOC:4744 - - void - - jakarta.faces.context.ExternalContext.dispatch -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:4745 - - String - - jakarta.faces.context.ExternalContext.encodeActionURL -
- ( - String - ) -
-
- Return the input URL, after performing any rewriting needed to ensure that it will - correctly identify an addressable action in the current application. Encoding the - jakarta.faces.lifecycle.ClientWindow Call - jakarta.faces.lifecycle.ClientWindow#isClientWindowRenderModeEnabled(jakarta.faces.context.FacesContext) - . If the result is false take no further action and return the rewritten URL. If the result is true, - call #getClientWindow(). If the result is non-null, call - jakarta.faces.lifecycle.ClientWindow#getId() and append the id to the query string of the URL, - making the necessary allowances for a pre-existing query string or no query-string. Call - jakarta.faces.lifecycle.ClientWindow#getQueryURLParameters. If the result is non-null, for each - parameter in the map, unconditionally add that parameter to the URL. The name of the query string - parameter is given by the value of the constant - jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. Jakarta Servlet: This must be the - value returned by the jakarta.servlet.http.HttpServletResponse method encodeURL(url). - - true - - -
-
-
- true -
- JSF:JAVADOC:4746 - - String - - jakarta.faces.context.ExternalContext.encodeBookmarkableURL -
- ( - String - , -
- Map - ) -
-
- The purpose of this method is to generate a query string from the collection of - Parameter objects provided by the parameters argument and append that query string to the baseUrl. - This method must be able to encode the parameters to a baseUrl that may or may not have existing - query parameters. The parameter values should be encoded appropriately for the environment so that - the resulting URL can be used as the target of a link (e.g., in an href attribute) in a Jakarta - Faces response. It's possible for an ExternalContext implementation to override this method in any - way that would make the URL bookmarkable in that environment. See #encodeActionURL(java.lang.String) - for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. The - default implementation throws UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4747 - - String - - jakarta.faces.context.ExternalContext.encodeNamespace -
- ( - String - ) -
-
- Return the specified name, after prefixing it with a namespace that ensures that it - will be unique within the context of a particular page. Jakarta Servlet: The input value must be - returned unchanged. - - true - - -
-
-
- true -
- JSF:JAVADOC:4748 - - String - - jakarta.faces.context.ExternalContext.encodePartialActionURL -
- ( - String - ) -
-
- Return the input URL, after performing any rewriting needed to ensure that it can be - used in a partial page submission (ajax request) to correctly identify an addressable action in the - current application. See #encodeActionURL(java.lang.String) for the required specification of how to - encode the jakarta.faces.lifecycle.ClientWindow. Jakarta Servlet:Returns the same encoded URL as the - #encodeActionURL(String url) method. Portlet:Returns an encoded URL that, upon HTTP POST, will - invoke the RESOURCE_PHASE of the portlet lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:4749 - - String - - jakarta.faces.context.ExternalContext.encodeRedirectURL -
- ( - String - , -
- Map - ) -
-
- The purpose of this method is to generate a query string from the collection of - Parameter objects provided by the parameters argument and append that query string to the baseUrl. - This method must be able to encode the parameters to a baseUrl that may or may not have existing - query parameters. The parameter values should be encoded appropriately for the environment so that - the resulting URL can be used as the target of a redirect. It's possible for an ExternalContext - implementation to override this method to accomodate the definition of redirect for that - environment. See #encodeActionURL(java.lang.String) for the required specification of how to encode - the jakarta.faces.lifecycle.ClientWindow. - - true - - -
-
-
- true -
- JSF:JAVADOC:4750 - - String - - jakarta.faces.context.ExternalContext.encodeResourceURL -
- ( - String - ) -
-
- Return the input URL, after performing any rewriting needed to ensure that it will - correctly identify an addressable resource in the current application. Jakarta Servlet: This must be - the value returned by the jakarta.servlet.http.HttpServletResponse method encodeURL(url). - - true - - -
-
-
- true -
- JSF:JAVADOC:4751 - - String - - jakarta.faces.context.ExternalContext.encodeWebsocketURL -
- ( - String - ) -
-
- Return the websocket URL, after performing any rewriting needed to ensure that it will - correctly identify an addressable websocket in the current application. Jakarta Servlet: This must - ensure that the input URL is prefixed with the correct websocket scheme, domain and port and then - encoded by #encodeResourceURL(String). - - true - - -
-
-
- true -
- JSF:JAVADOC:4752 - - ExternalContext - - jakarta.faces.context.ExternalContext.ExternalContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4753 - - String - - jakarta.faces.context.ExternalContext.getApplicationContextPath -
-
-
- Return the name of the container context for this application. Jakarta Servlet: Return - the result of calling getContextPath() on the ServletContext instance for this application. It is - valid to call this method during application startup or shutdown. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4754 - - Map - - jakarta.faces.context.ExternalContext.getApplicationMap -
-
-
- Return a mutable Map representing the application scope attributes for the current - application. The returned Map must implement the entire contract for a modifiable map as described - in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding - changes in the set of application scope attributes. Particularly the clear(), remove(), put(), - putAll(), and get() operations must take the appropriate action on the underlying data structure. It - is valid to call this method during application startup or shutdown. If called at startup or - shutdown time, this method returns a Map that is backed by the same container context instance - (ServletContext or PortletContext) as the one returned by calling getApplicationMap() on the - ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be - the set of attributes available via the jakarta.servlet.ServletContext methods getAttribute(), - getAttributeNames(), removeAttribute(), and setAttribute(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4755 - - String - - jakarta.faces.context.ExternalContext.getAuthType -
-
-
- Return the name of the authentication scheme used to authenticate the current user, if - any; otherwise, return null. For standard authentication schemes, the returned value will match one - of the following constants: BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, or FORM_AUTH. Jakarta - Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method - getAuthType(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4756 - - ClientWindow - - jakarta.faces.context.ExternalContext.getClientWindow -
-
-
- Return the ClientWindow set in a preceding call to #setClientWindow, or null if no such - call has been made. - - true - - -
-
-
- true -
- JSF:JAVADOC:4757 - - Object - - jakarta.faces.context.ExternalContext.getContext -
-
-
- Return the application environment object instance for the current appication. It is - valid to call this method during application startup or shutdown. If called during application - startup or shutdown, this returns the same container context instance (ServletContext or - PortletContext) as the one returned when calling getContext() on the ExternalContext returned by the - FacesContext during an actual request. Jakarta Servlet: This must be the current application's - jakarta.servlet.ServletContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4758 - - String - - jakarta.faces.context.ExternalContext.getContextName -
-
-
- Return the name of the container context for this application. Return the result of - calling getServletContextName() on the ServletContext instance for this application. It is valid to - call this method during application startup or shutdown. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4759 - - Flash - - jakarta.faces.context.ExternalContext.getFlash -
-
-
- Return the threadsafe Flash for this application. The default implementation will throw - UnsupportedOperationException. Compliant Jakarta Faces runtimes must provide an implementation of - this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:4760 - - String - - jakarta.faces.context.ExternalContext.getInitParameter -
- ( - String - ) -
-
- Return the value of the specified application initialization parameter (if any). - Jakarta Servlet: This must be the result of the jakarta.servlet.ServletContext method - getInitParameter(name). It is valid to call this method during application startup or shutdown. If - called during application startup or shutdown, this method calls through to the actual container - context to return the init parameter value. - - true - - -
-
-
- true -
- JSF:JAVADOC:4761 - - Map - - jakarta.faces.context.ExternalContext.getInitParameterMap -
-
-
- Return an immutable Map whose keys are the set of application initialization parameter - names configured for this application, and whose values are the corresponding parameter values. The - returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs - for java.util.Map. It is valid to call this method during application startup or shutdown. If called - during application startup or shutdown, this method returns a Map that is backed by the same - container context instance (ServletContext or PortletContext) as the one returned by calling - getInitParameterMap() on the ExternalContext returned by the FacesContext during an actual request. - Jakarta Servlet: This result must be as if it were synthesized by calling the - jakarta.servlet.ServletContext method getInitParameterNames, and putting each configured parameter - name/value pair into the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:4762 - - String - - jakarta.faces.context.ExternalContext.getMimeType -
- ( - String - ) -
-
- Returns the MIME type of the specified file or null if the MIME type is not known. The - MIME type is determined by the container. It is valid to call this method during application startup - or shutdown. If called during application startup or shutdown, this method calls through to the - getMimeType() method on the same container context instance (ServletContext or PortletContext) as - the one used when calling getMimeType() on the ExternalContext returned by the FacesContext during - an actual request. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.ServletContext method getMimeType(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4763 - - String - - jakarta.faces.context.ExternalContext.getRealPath -
- ( - String - ) -
-
- Returns a String containing the real path for a given virtual path. It is valid to call - this method during application startup or shutdown. If called during application startup or - shutdown, this method calls through to the getRealPath() method on the same container context - instance (ServletContext or PortletContext) as the one used when calling getRealPath() on the - ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be - the value returned by the jakarta.servlet.ServletContext method getRealPath(). The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4764 - - String - - jakarta.faces.context.ExternalContext.getRemoteUser -
-
-
- Return the login name of the user making the current request if any; otherwise, return - null. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getRemoteUser(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4765 - - Object - - jakarta.faces.context.ExternalContext.getRequest -
-
-
- Return the environment-specific object instance for the current request. Jakarta - Servlet: This must be the current request's jakarta.servlet.http.HttpServletRequest instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4766 - - String - - jakarta.faces.context.ExternalContext.getRequestCharacterEncoding -
-
-
- Return the character encoding currently being used to interpret this request. Jakarta - Servlet: This must return the value returned by the jakarta.servlet.ServletRequest method - getCharacterEncoding(). The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4767 - - int - - jakarta.faces.context.ExternalContext.getRequestContentLength -
-
-
- Return the result of calling getContentLenth() on the ServletRequest instance for this - request. The default implementation throws UnsupportedOperationException and is provided for the - sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4768 - - String - - jakarta.faces.context.ExternalContext.getRequestContentType -
-
-
- Return the MIME Content-Type for this request. If not available, return null. Jakarta - Servlet: This must return the value returned by the jakarta.servlet.ServletRequest method - getContentType(). The default implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4769 - - String - - jakarta.faces.context.ExternalContext.getRequestContextPath -
-
-
- Return the portion of the request URI that identifies the web application context for - this request. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getContextPath(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4770 - - Map - - jakarta.faces.context.ExternalContext.getRequestCookieMap -
-
-
- Return an immutable Map whose keys are the set of cookie names included in the current - request, and whose values (of type jakarta.servlet.http.Cookie) are the first (or only) cookie for - each cookie name returned by the underlying request. The returned Map must implement the entire - contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: - This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getCookies(), - unless null was returned, in which case this must be a zero-length array. - - true - - -
-
-
- true -
- JSF:JAVADOC:4771 - - Map - - jakarta.faces.context.ExternalContext.getRequestHeaderMap -
-
-
- Return an immutable Map whose keys are the set of request header names included in the - current request, and whose values (of type String) are the first (or only) value for each header - name returned by the underlying request. The returned Map must implement the entire contract for an - unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must - be performed in a case insensitive manner. Jakarta Servlet: This must be the set of headers - available via the jakarta.servlet.http.HttpServletRequest methods getHeader() and getHeaderNames(). - - - true - - -
-
-
- true -
- JSF:JAVADOC:4772 - - Map - - jakarta.faces.context.ExternalContext.getRequestHeaderValuesMap -
-
-
- Return an immutable Map whose keys are the set of request header names included in the - current request, and whose values (of type String[]) are all of the value for each header name - returned by the underlying request. The returned Map must implement the entire contract for an - unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must - be performed in a case insensitive manner. Jakarta Servlet: This must be the set of headers - available via the jakarta.servlet.http.HttpServletRequest methods getHeaders() and getHeaderNames(). - - - true - - -
-
-
- true -
- JSF:JAVADOC:4773 - - Locale - - jakarta.faces.context.ExternalContext.getRequestLocale -
-
-
- Return the preferred Locale in which the client will accept content. Jakarta Servlet: - This must be the value returned by the jakarta.servlet.ServletRequest method getLocale(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4774 - - Iterator - - jakarta.faces.context.ExternalContext.getRequestLocales -
-
-
- Return an Iterator over the preferred Locales specified in the request, in decreasing - order of preference. Jakarta Servlet: This must be an Iterator over the values returned by the - jakarta.servlet.ServletRequest method getLocales(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4775 - - Map - - jakarta.faces.context.ExternalContext.getRequestMap -
-
-
- Return a mutable Map representing the request scope attributes for the current - application. The returned Map must implement the entire contract for a modifiable map as described - in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding - changes in the set of request scope attributes. Particularly the clear(), remove(), put(), putAll(), - and get() operations must take the appropriate action on the underlying data structure. Jakarta - Servlet: This must be the set of attributes available via the jakarta.servlet.ServletRequest methods - getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4776 - - Map - - jakarta.faces.context.ExternalContext.getRequestParameterMap -
-
-
- Return an immutable Map whose keys are the set of request parameters names included in - the current request, and whose values (of type String) are the first (or only) value for each - parameter name returned by the underlying request. The returned Map must implement the entire - contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: - This must be the set of parameters available via the jakarta.servlet.ServletRequest methods - getParameter() and getParameterNames(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4777 - - Iterator - - jakarta.faces.context.ExternalContext.getRequestParameterNames -
-
-
- Return an Iterator over the names of all request parameters included in the current - request. Jakarta Servlet: This must be an Iterator over the values returned by the - jakarta.servlet.ServletRequest method getParameterNames(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4778 - - Map - - jakarta.faces.context.ExternalContext.getRequestParameterValuesMap -
-
-
- Return an immutable Map whose keys are the set of request parameters names included in - the current request, and whose values (of type String[]) are all of the values for each parameter - name returned by the underlying request. The returned Map must implement the entire contract for an - unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: This must be the - set of parameters available via the jakarta.servlet.ServletRequest methods getParameterValues() and - getParameterNames(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4779 - - String - - jakarta.faces.context.ExternalContext.getRequestPathInfo -
-
-
- Return the extra path information (if any) included in the request URI; otherwise, - return null. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getPathInfo(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4780 - - String - - jakarta.faces.context.ExternalContext.getRequestScheme -
-
-
- Returns the name of the scheme used to make this request, for example, http, https, or - ftp. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletRequest method - getScheme(). The default implementation throws UnsupportedOperationException and is provided for the - sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4781 - - String - - jakarta.faces.context.ExternalContext.getRequestServerName -
-
-
- Returns the host name of the server to which the request was sent. Jakarta Servlet: - This must be the value returned by the jakarta.servlet.ServletRequest method getServerName(). The - default implementation throws UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4782 - - int - - jakarta.faces.context.ExternalContext.getRequestServerPort -
-
-
- Returns the port number to which the request was sent. Jakarta Servlet: This must be - the value returned by the jakarta.servlet.ServletRequest method getServerPort(). The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4783 - - String - - jakarta.faces.context.ExternalContext.getRequestServletPath -
-
-
- Return the Jakarta Servlet path information (if any) included in the request URI; - otherwise, return null. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getServletPath(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4784 - - URL - - jakarta.faces.context.ExternalContext.getResource -
- ( - String - ) -
-
- Return a URL for the application resource mapped to the specified path, if it exists; - otherwise, return null. It is valid to call this method during application startup or shutdown. If - called during application startup or shutdown, this method calls through to the getResource() method - on the same container context instance (ServletContext or PortletContext) as the one used when - calling getResource() on the ExternalContext returned by the FacesContext during an actual request. - Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method - getResource(path). - - true - - -
-
-
- true -
- JSF:JAVADOC:4785 - - URL - - jakarta.faces.context.ExternalContext.getResource -
- ( - String - ) - -
- throws - MalformedURLException -
-
-
- if the specified path is not in the correct form - - true - - -
-
-
- true -
- JSF:JAVADOC:4786 - - InputStream - - jakarta.faces.context.ExternalContext.getResourceAsStream -
- ( - String - ) -
-
- Return an InputStream for an application resource mapped to the specified path, if it - exists; otherwise, return null. It is valid to call this method during application startup or - shutdown. If called during application startup or shutdown, this method calls through to the - getResourceAsStream() method on the same container context instance (ServletContext or - PortletContext) as the one used when calling getResourceAsStream() on the ExternalContext returned - by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by - the jakarta.servlet.ServletContext method getResourceAsStream(path). - - true - - -
-
-
- true -
- JSF:JAVADOC:4787 - - Set - - jakarta.faces.context.ExternalContext.getResourcePaths -
- ( - String - ) -
-
- Return the Set of resource paths for all application resources whose resource path - starts with the specified argument. It is valid to call this method during application startup or - shutdown. If called during application startup or shutdown, this method calls through to the - getResourcePaths() method on the same container context instance (ServletContext or PortletContext) - as the one used when calling getResourcePaths() on the ExternalContext returned by the FacesContext - during an actual request. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.ServletContext method getResourcePaths(path). - - true - - -
-
-
- true -
- JSF:JAVADOC:4788 - - Object - - jakarta.faces.context.ExternalContext.getResponse -
-
-
- Return the environment-specific object instance for the current response. Jakarta - Servlet: This is the current request's jakarta.servlet.http.HttpServletResponse instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4789 - - int - - jakarta.faces.context.ExternalContext.getResponseBufferSize -
-
-
- Return the buffer size for the current response. Jakarta Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse getBufferSize method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4790 - - String - - jakarta.faces.context.ExternalContext.getResponseCharacterEncoding -
-
-
- Returns the name of the character encoding (MIME charset) used for the body sent in - this response. Jakarta Servlet: This must return the value returned by the - jakarta.servlet.ServletResponse method getCharacterEncoding(). Portlet: if this method is called - during a lifecycle phase other than RENDER_RESPONSE, this must return null. If called during - RENDER_RESPONSE, return the response encoding of the portlet response. The default implementation - throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4791 - - String - - jakarta.faces.context.ExternalContext.getResponseContentType -
-
-
- Return the MIME Content-Type for this response. If not available, return null. Jakarta - Servlet: This must return the value returned by the jakarta.servlet.ServletResponse method - getContentType(). The default implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4792 - - OutputStream - - jakarta.faces.context.ExternalContext.getResponseOutputStream -
-
-
- Returns an OutputStream suitable for writing binary data to the user-agent. Jakarta - Servlet: This must return the value returned by the jakarta.servlet.ServletResponse method - getOutputStream(). The default implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4793 - - OutputStream - - jakarta.faces.context.ExternalContext.getResponseOutputStream -
-
- throws - IOException -
-
-
- any IO related exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:4794 - - Writer - - jakarta.faces.context.ExternalContext.getResponseOutputWriter -
-
-
- Returns a Writer suitable for writing character data to the user-agent. Jakarta - Servlet: This must return the value returned by the jakarta.servlet.ServletResponse#getWriter. The - default implementation throws UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4795 - - Writer - - jakarta.faces.context.ExternalContext.getResponseOutputWriter -
-
- throws - IOException -
-
-
- any IO related exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:4796 - - Object - - jakarta.faces.context.ExternalContext.getSession -
- ( - boolean - ) -
-
- If the create parameter is true, create (if necessary) and return a session instance - associated with the current request. If the create parameter is false return any existing session - instance associated with the current request, or return null if there is no such session. Jakarta - Servlet: This must return the result of calling getSession(create) on the underlying - jakarta.servlet.http.HttpServletRequest instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4797 - - String - - jakarta.faces.context.ExternalContext.getSessionId -
- ( - boolean - ) -
-
- Return the id of the current session or the empty string if no session has been created - and the create parameter is false. Jakarta Servlet: If create is true, obtain a reference to the - HttpSession for the current request (creating the session if necessary) and return its id. If create - is false, obtain a reference to the current session, if one exists, and return its id. If no session - exists, return the empty string. - - true - - -
-
-
- true -
- JSF:JAVADOC:4798 - - Map - - jakarta.faces.context.ExternalContext.getSessionMap -
-
-
- Return a mutable Map representing the session scope attributes for the current - application. The returned Map must implement the entire contract for a modifiable map as described - in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding - changes in the set of session scope attributes. Particularly the clear(), remove(), put(), and get() - operations must take the appropriate action on the underlying data structure. Accessing attributes - via this Map must cause the creation of a session associated with the current request, if such a - session does not already exist. Jakarta Servlet: This must be the set of attributes available via - the jakarta.servlet.http.HttpSession methods getAttribute(), getAttributeNames(), removeAttribute(), - and setAttribute(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4799 - - int - - jakarta.faces.context.ExternalContext.getSessionMaxInactiveInterval -
-
-
- Returns the maximum time interval, in seconds, that the Jakarta Servlet container will - keep this session open between client accesses. After this interval, the Jakarta Servlet container - will invalidate the session. The maximum time interval can be set with the - #setSessionMaxInactiveInterval method. A return value of zero or less indicates that the session - will never timeout. Jakarta Servlet: This must return the result of calling getMaxInactiveInterval - on the underlying jakarta.servlet.http.HttpSession instance. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4800 - - Principal - - jakarta.faces.context.ExternalContext.getUserPrincipal -
-
-
- Return the Principal object containing the name of the current authenticated user, if - any; otherwise, return null. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getUserPrincipal(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4801 - - void - - jakarta.faces.context.ExternalContext.invalidateSession -
-
-
- Invalidates this session then unbinds any objects bound to it. Jakarta Servlet: This - must be the value returned by the jakarta.servlet.http.HttpSession method invalidate(). The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4802 - - boolean - - jakarta.faces.context.ExternalContext.isResponseCommitted -
-
-
- Check if the current response has been committed. Jakarta Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse isCommitted method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4803 - - boolean - - jakarta.faces.context.ExternalContext.isSecure -
-
-
- Returns a boolean indicating whether this request was made using a secure channel, such - as HTTPS. Jakarta Servlet: This must return the result of calling isSecure on the underlying - jakarta.servlet.http.HttpServletRequest instance. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4804 - - boolean - - jakarta.faces.context.ExternalContext.isUserInRole -
- ( - String - ) -
-
- Return true if the currently authenticated user is included in the specified role. - Otherwise, return false. Jakarta Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletRequest method isUserInRole(role). - - true - - -
-
-
- true -
- JSF:JAVADOC:4805 - - void - - jakarta.faces.context.ExternalContext.log -
- ( - String - ) -
-
- Log the specified message to the application object. It is valid to call this method - during application startup or shutdown. If called during application startup or shutdown, this calls - the log() method on the same container context instance (ServletContext or PortletContext) as the - one used during a call to log() on the ExternalContext returned by the FacesContext during an actual - request. Jakarta Servlet: This must be performed by calling the jakarta.servlet.ServletContext - method log(String). - - true - - -
-
-
- true -
- JSF:JAVADOC:4806 - - void - - jakarta.faces.context.ExternalContext.log -
- ( - String - , -
- Throwable - ) -
-
- Log the specified message and exception to the application object. It is valid to call - this method during application startup or shutdown. If called during application startup or - shutdown, this calls the log() method on the same container context instance (ServletContext or - PortletContext) as the one used when calling log() on the ExternalContext returned by the - FacesContext during an actual request. Jakarta Servlet: This must be performed by calling the - jakarta.servlet.ServletContext method log(String,Throwable). - - true - - -
-
-
- true -
- JSF:JAVADOC:4807 - - void - - jakarta.faces.context.ExternalContext.redirect -
- ( - String - ) -
-
- Redirect a request to the specified URL, and cause the responseComplete() method to be - called on the FacesContext instance for the current request. The implementation must determine if - the request is an Ajax request by obtaining a PartialViewContext instance from the FacesContext and - calling PartialViewContext#isAjaxRequest(). Jakarta Servlet: For non Ajax requests, this must be - accomplished by calling the jakarta.servlet.http.HttpServletResponse method sendRedirect(). For Ajax - requests, the implementation must: Get a PartialResponseWriter instance from the FacesContext. Call - #setResponseContentType with text/xml Call #setResponseCharacterEncoding with UTF-8 Call - #addResponseHeader with Cache-Control, no-cache Call PartialResponseWriter#startDocument Call - PartialResponseWriter#redirect with the url argument. Call PartialResponseWriter#endDocument - - true - - -
-
-
- true -
- JSF:JAVADOC:4808 - - void - - jakarta.faces.context.ExternalContext.redirect -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:4809 - - void - - jakarta.faces.context.ExternalContext.release -
-
-
- Release any resources associated with this ExternalContext instance. This method is - called during during destruction of the associated FacesContext. - - true - - -
-
-
- true -
- JSF:JAVADOC:4810 - - void - - jakarta.faces.context.ExternalContext.responseFlushBuffer -
-
-
- Flushes the buffered response content to the client. Jakarta Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse flushBuffer method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4811 - - void - - jakarta.faces.context.ExternalContext.responseFlushBuffer -
-
- throws - IOException -
-
-
- any IO related exception. - - true - - -
-
-
- true -
- JSF:JAVADOC:4812 - - void - - jakarta.faces.context.ExternalContext.responseReset -
-
-
- Resets the current response. Jakarta Servlet: This must be performed by calling the - jakarta.servlet.http.HttpServletResponse reset method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4813 - - void - - jakarta.faces.context.ExternalContext.responseSendError -
- ( - int - , -
- String - ) -
-
- Sends an HTTP status code with message. Jakarta Servlet: This must be performed by - calling the jakarta.servlet.http.HttpServletResponse sendError method. The default implementation - throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4814 - - void - - jakarta.faces.context.ExternalContext.responseSendError -
- ( - int - , -
- String - ) - -
- throws - IOException -
-
-
- any IO related exceptions. - - true - - -
-
-
- true -
- JSF:JAVADOC:4815 - - void - - jakarta.faces.context.ExternalContext.setClientWindow -
- ( - ClientWindow - ) -
-
- Associate this instance with a ClientWindow. - - true - - -
-
-
- true -
- JSF:JAVADOC:4816 - - void - - jakarta.faces.context.ExternalContext.setRequest -
- ( - Object - ) -
-
- Set the environment-specific request to be returned by subsequent calls to #getRequest. - This may be used to install a wrapper for the request. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4817 - - void - - jakarta.faces.context.ExternalContext.setRequestCharacterEncoding -
- ( - String - ) -
-
- Overrides the name of the character encoding used in the body of this request. Calling - this method after the request has been accessed will have no no effect, unless a Reader or Stream - has been obtained from the request, in which case an IllegalStateException is thrown. Jakarta - Servlet: This must call through to the jakarta.servlet.ServletRequest method setCharacterEncoding(). - The default implementation throws UnsupportedOperationException and is provided for the sole purpose - of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4818 - - void - - jakarta.faces.context.ExternalContext.setRequestCharacterEncoding -
- ( - String - ) - -
- throws - UnsupportedEncodingException -
-
-
- if this is not a valid encoding - - true - - -
-
-
- true -
- JSF:JAVADOC:4819 - - void - - jakarta.faces.context.ExternalContext.setResponse -
- ( - Object - ) -
-
- Set the environment-specific response to be returned by subsequent calls to - #getResponse. This may be used to install a wrapper for the response. The default implementation - throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4820 - - void - - jakarta.faces.context.ExternalContext.setResponseBufferSize -
- ( - int - ) -
-
- Set the buffer size for the current response. Jakarta Servlet: This must be performed - by calling the jakarta.servlet.http.HttpServletResponse setBufferSize method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4821 - - void - - jakarta.faces.context.ExternalContext.setResponseCharacterEncoding -
- ( - String - ) -
-
- Sets the character encoding (MIME charset) of the response being sent to the client, - for example, to UTF-8. Jakarta Servlet: This must call through to the - jakarta.servlet.ServletResponse method setCharacterEncoding(). The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4822 - - void - - jakarta.faces.context.ExternalContext.setResponseContentLength -
- ( - int - ) -
-
- Set the content length of the response. Jakarta Servlet: This must be performed by - calling the jakarta.servlet.http.HttpServletResponse setContentLength method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4823 - - void - - jakarta.faces.context.ExternalContext.setResponseContentType -
- ( - String - ) -
-
- Sets the content type of the response being sent to the client, if the response has not - been committed yet. Jakarta Servlet: This must call setContentType() on the underlying - jakarta.servlet.ServletResponse instance. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4824 - - void - - jakarta.faces.context.ExternalContext.setResponseHeader -
- ( - String - , -
- String - ) -
-
- Set the response header with the given name and value. Jakarta Servlet:This must be - performed by calling the jakarta.servlet.http.HttpServletResponse setHeader method. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4825 - - void - - jakarta.faces.context.ExternalContext.setResponseStatus -
- ( - int - ) -
-
- Sets the HTTP status code for the response. Jakarta Servlet: This must be performed by - calling the jakarta.servlet.http.HttpServletResponse setStatus method. The default implementation - throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4826 - - void - - jakarta.faces.context.ExternalContext.setSessionMaxInactiveInterval -
- ( - int - ) -
-
- Specifies the time, in seconds, between client requests before the Jakarta Servlet - container will invalidate this session. An interval value of zero or less indicates that the session - should never timeout. Jakarta Servlet: This must call setMaxInactiveInterval on the underlying - jakarta.servlet.http.HttpServletRequest instance. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4827 - - ExternalContextFactory - - jakarta.faces.context.ExternalContextFactory.ExternalContextFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4828 - - ExternalContextFactory - - jakarta.faces.context.ExternalContextFactory.ExternalContextFactory -
- ( - ExternalContextFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4829 - - ExternalContext - - jakarta.faces.context.ExternalContextFactory.getExternalContext -
- ( - Object - , -
- Object - , -
- Object - ) -
-
- Create (if needed) and return an ExternalContext instance that is initialized for the - processing of the specified request and response objects, for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:4830 - - ExternalContext - - jakarta.faces.context.ExternalContextFactory.getExternalContext -
- ( - Object - , -
- Object - , -
- Object - ) - -
- throws - FacesException -
-
-
- if a ExternalContext cannot be constructed for the specified parameters - - true - - -
-
-
- true -
- JSF:JAVADOC:4831 - - ExternalContextFactory - - jakarta.faces.context.ExternalContextFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4832 - - void - - jakarta.faces.context.ExternalContextWrapper.addResponseCookie -
- ( - String - , -
- String - , -
- Map - ) -
-
- The default behavior of this method is to call - ExternalContext#addResponseCookie(String, String, Map) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4833 - - void - - jakarta.faces.context.ExternalContextWrapper.addResponseHeader -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call - ExternalContext#addResponseHeader(String,String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4834 - - void - - jakarta.faces.context.ExternalContextWrapper.dispatch -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#dispatch(String) on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4835 - - void - - jakarta.faces.context.ExternalContextWrapper.dispatch -
- ( - String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4836 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeActionURL -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#encodeActionURL(String) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4837 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeBookmarkableURL -
- ( - String - , -
- Map - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExternalContext#encodeBookmarkableURL(String, java.util.Map) on the wrapped - ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4838 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeNamespace -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#encodeNamespace(String) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4839 - - String - - jakarta.faces.context.ExternalContextWrapper.encodePartialActionURL -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#encodePartialActionURL(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4840 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeRedirectURL -
- ( - String - , -
- Map - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExternalContext#encodeRedirectURL(String, java.util.Map) on the wrapped - ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4841 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeResourceURL -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#encodeResourceURL(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4842 - - String - - jakarta.faces.context.ExternalContextWrapper.encodeWebsocketURL -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#encodeWebsocketURL(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4843 - - ExternalContextWrapper - - jakarta.faces.context.ExternalContextWrapper.ExternalContextWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4844 - - ExternalContextWrapper - - jakarta.faces.context.ExternalContextWrapper.ExternalContextWrapper -
- ( - ExternalContext - ) -
-
- If this external context has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4845 - - String - - jakarta.faces.context.ExternalContextWrapper.getApplicationContextPath -
-
-
- The default behavior of this method is to call - ExternalContext#getApplicationContextPath on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4846 - - Map - - jakarta.faces.context.ExternalContextWrapper.getApplicationMap -
-
-
- The default behavior of this method is to call ExternalContext#getApplicationMap on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4847 - - String - - jakarta.faces.context.ExternalContextWrapper.getAuthType -
-
-
- The default behavior of this method is to call ExternalContext#getAuthType on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4848 - - ClientWindow - - jakarta.faces.context.ExternalContextWrapper.getClientWindow -
-
-
- The default behavior of this method is to call ExternalContext#getClientWindow on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4849 - - Object - - jakarta.faces.context.ExternalContextWrapper.getContext -
-
-
- The default behavior of this method is to call ExternalContext#getContext on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4850 - - String - - jakarta.faces.context.ExternalContextWrapper.getContextName -
-
-
- The default behavior of this method is to call ExternalContext#getContextName on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4851 - - Flash - - jakarta.faces.context.ExternalContextWrapper.getFlash -
-
-
- The default behavior of this method is to call ExternalContext#getFlash() on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4852 - - String - - jakarta.faces.context.ExternalContextWrapper.getInitParameter -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#getInitParameter(String) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4853 - - Map - - jakarta.faces.context.ExternalContextWrapper.getInitParameterMap -
-
-
- The default behavior of this method is to call ExternalContext#getInitParameterMap on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4854 - - String - - jakarta.faces.context.ExternalContextWrapper.getMimeType -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#getMimeType(String) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4855 - - String - - jakarta.faces.context.ExternalContextWrapper.getRealPath -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#getRealPath(String) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4856 - - String - - jakarta.faces.context.ExternalContextWrapper.getRemoteUser -
-
-
- The default behavior of this method is to call ExternalContext#getRemoteUser on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4857 - - Object - - jakarta.faces.context.ExternalContextWrapper.getRequest -
-
-
- The default behavior of this method is to call ExternalContext#getRequest on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4858 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestCharacterEncoding -
-
-
- The default behavior of this method is to call - ExternalContext#getRequestCharacterEncoding on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4859 - - int - - jakarta.faces.context.ExternalContextWrapper.getRequestContentLength -
-
-
- The default behavior of this method is to call ExternalContext#getRequestContentLength - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4860 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestContentType -
-
-
- The default behavior of this method is to call ExternalContext#getRequestContentType on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4861 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestContextPath -
-
-
- The default behavior of this method is to call ExternalContext#getRequestContextPath on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4862 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestCookieMap -
-
-
- The default behavior of this method is to call ExternalContext#getRequestCookieMap on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4863 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestHeaderMap -
-
-
- The default behavior of this method is to call ExternalContext#getRequestHeaderMap on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4864 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestHeaderValuesMap -
-
-
- The default behavior of this method is to call - ExternalContext#getRequestHeaderValuesMap on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4865 - - Locale - - jakarta.faces.context.ExternalContextWrapper.getRequestLocale -
-
-
- The default behavior of this method is to call ExternalContext#getRequestLocale on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4866 - - Iterator - - jakarta.faces.context.ExternalContextWrapper.getRequestLocales -
-
-
- The default behavior of this method is to call ExternalContext#getRequestLocales on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4867 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestMap -
-
-
- The default behavior of this method is to call ExternalContext#getRequestMap on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4868 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestParameterMap -
-
-
- The default behavior of this method is to call ExternalContext#getRequestParameterMap - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4869 - - Iterator - - jakarta.faces.context.ExternalContextWrapper.getRequestParameterNames -
-
-
- The default behavior of this method is to call ExternalContext#getRequestParameterNames - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4870 - - Map - - jakarta.faces.context.ExternalContextWrapper.getRequestParameterValuesMap -
-
-
- The default behavior of this method is to call - ExternalContext#getRequestParameterValuesMap on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4871 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestPathInfo -
-
-
- The default behavior of this method is to call ExternalContext#getRequestPathInfo on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4872 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestScheme -
-
-
- The default behavior of this method is to call ExternalContext#getRequestScheme on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4873 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestServerName -
-
-
- The default behavior of this method is to call ExternalContext#getRequestServerName on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4874 - - int - - jakarta.faces.context.ExternalContextWrapper.getRequestServerPort -
-
-
- The default behavior of this method is to call ExternalContext#getRequestServerPort on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4875 - - String - - jakarta.faces.context.ExternalContextWrapper.getRequestServletPath -
-
-
- The default behavior of this method is to call ExternalContext#getRequestServletPath on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4876 - - URL - - jakarta.faces.context.ExternalContextWrapper.getResource -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#getResource(String) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4877 - - URL - - jakarta.faces.context.ExternalContextWrapper.getResource -
- ( - String - ) - -
- throws - MalformedURLException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4878 - - InputStream - - jakarta.faces.context.ExternalContextWrapper.getResourceAsStream -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#getResourceAsStream(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4879 - - Set - - jakarta.faces.context.ExternalContextWrapper.getResourcePaths -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#getResourcePaths(String) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4880 - - Object - - jakarta.faces.context.ExternalContextWrapper.getResponse -
-
-
- The default behavior of this method is to call ExternalContext#getResponse on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4881 - - int - - jakarta.faces.context.ExternalContextWrapper.getResponseBufferSize -
-
-
- The default behavior of this method is to call ExternalContext#getResponseBufferSize() - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4882 - - String - - jakarta.faces.context.ExternalContextWrapper.getResponseCharacterEncoding -
-
-
- The default behavior of this method is to call - ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4883 - - String - - jakarta.faces.context.ExternalContextWrapper.getResponseContentType -
-
-
- The default behavior of this method is to call ExternalContext#getResponseContentType - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4884 - - OutputStream - - jakarta.faces.context.ExternalContextWrapper.getResponseOutputStream -
-
-
- The default behavior of this method is to call ExternalContext#getResponseOutputStream - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4885 - - OutputStream - - jakarta.faces.context.ExternalContextWrapper.getResponseOutputStream -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4886 - - Writer - - jakarta.faces.context.ExternalContextWrapper.getResponseOutputWriter -
-
-
- The default behavior of this method is to call ExternalContext#getResponseOutputWriter - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4887 - - Writer - - jakarta.faces.context.ExternalContextWrapper.getResponseOutputWriter -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4888 - - Object - - jakarta.faces.context.ExternalContextWrapper.getSession -
- ( - boolean - ) -
-
- The default behavior of this method is to call ExternalContext#getSession(boolean) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4889 - - String - - jakarta.faces.context.ExternalContextWrapper.getSessionId -
- ( - boolean - ) -
-
- The default behavior of this method is to call ExternalContext#getSessionId(boolean) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4890 - - Map - - jakarta.faces.context.ExternalContextWrapper.getSessionMap -
-
-
- The default behavior of this method is to call ExternalContext#getSessionMap() on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4891 - - int - - jakarta.faces.context.ExternalContextWrapper.getSessionMaxInactiveInterval -
-
-
- The default behavior of this method is to call - ExternalContext#getSessionMaxInactiveInterval() on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4892 - - Principal - - jakarta.faces.context.ExternalContextWrapper.getUserPrincipal -
-
-
- The default behavior of this method is to call ExternalContext#getUserPrincipal on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4893 - - ExternalContext - - jakarta.faces.context.ExternalContextWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4894 - - void - - jakarta.faces.context.ExternalContextWrapper.invalidateSession -
-
-
- The default behavior of this method is to call ExternalContext#invalidateSession on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4895 - - boolean - - jakarta.faces.context.ExternalContextWrapper.isResponseCommitted -
-
-
- The default behavior of this method is to call ExternalContext#isResponseCommitted() on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4896 - - boolean - - jakarta.faces.context.ExternalContextWrapper.isSecure -
-
-
- The default behavior of this method is to call ExternalContext#isSecure on the wrapped - ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4897 - - boolean - - jakarta.faces.context.ExternalContextWrapper.isUserInRole -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#isUserInRole(String) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4898 - - void - - jakarta.faces.context.ExternalContextWrapper.log -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#log(String) on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4899 - - void - - jakarta.faces.context.ExternalContextWrapper.log -
- ( - String - , -
- Throwable - ) -
-
- The default behavior of this method is to call ExternalContext#log(String, Throwable) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4900 - - void - - jakarta.faces.context.ExternalContextWrapper.redirect -
- ( - String - ) -
-
- The default behavior of this method is to call ExternalContext#redirect(String) on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4901 - - void - - jakarta.faces.context.ExternalContextWrapper.redirect -
- ( - String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4902 - - void - - jakarta.faces.context.ExternalContextWrapper.release -
-
-
- The default behavior of this method is to call ExternalContext#release() on the wrapped - ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4903 - - void - - jakarta.faces.context.ExternalContextWrapper.responseFlushBuffer -
-
-
- The default behavior of this method is to call - jakarta.faces.context.ExternalContext#responseFlushBuffer() on the wrapped ExternalContext object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4904 - - void - - jakarta.faces.context.ExternalContextWrapper.responseFlushBuffer -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4905 - - void - - jakarta.faces.context.ExternalContextWrapper.responseReset -
-
-
- The default behavior of this method is to call ExternalContext#responseReset() on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4906 - - void - - jakarta.faces.context.ExternalContextWrapper.responseSendError -
- ( - int - , -
- String - ) -
-
- The default behavior of this method is to call - ExternalContext#responseSendError(int,String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4907 - - void - - jakarta.faces.context.ExternalContextWrapper.responseSendError -
- ( - int - , -
- String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4908 - - void - - jakarta.faces.context.ExternalContextWrapper.setClientWindow -
- ( - ClientWindow - ) -
-
- The default behavior of this method is to call ExternalContext#setClientWindow on the - wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4909 - - void - - jakarta.faces.context.ExternalContextWrapper.setRequest -
- ( - Object - ) -
-
- The default behavior of this method is to call ExternalContext#setRequest(Object) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4910 - - void - - jakarta.faces.context.ExternalContextWrapper.setRequestCharacterEncoding -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#setRequestCharacterEncoding(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4911 - - void - - jakarta.faces.context.ExternalContextWrapper.setRequestCharacterEncoding -
- ( - String - ) - -
- throws - UnsupportedEncodingException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:4912 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponse -
- ( - Object - ) -
-
- The default behavior of this method is to call ExternalContext#setResponse(Object) on - the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4913 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseBufferSize -
- ( - int - ) -
-
- The default behavior of this method is to call - ExternalContext#setResponseBufferSize(int) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4914 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseCharacterEncoding -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4915 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseContentLength -
- ( - int - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.ExternalContext#setResponseContentLength(int) on the wrapped ExternalContext - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4916 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseContentType -
- ( - String - ) -
-
- The default behavior of this method is to call - ExternalContext#setResponseContentType(String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4917 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseHeader -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call - ExternalContext#setResponseHeader(String,String) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4918 - - void - - jakarta.faces.context.ExternalContextWrapper.setResponseStatus -
- ( - int - ) -
-
- The default behavior of this method is to call ExternalContext#setResponseStatus(int) - on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4919 - - void - - jakarta.faces.context.ExternalContextWrapper.setSessionMaxInactiveInterval -
- ( - int - ) -
-
- The default behavior of this method is to call - ExternalContext#setSessionMaxInactiveInterval(int) on the wrapped ExternalContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4920 - - void - - jakarta.faces.context.FacesContext.addMessage -
- ( - String - , -
- FacesMessage - ) -
-
- Append a jakarta.faces.application.FacesMessage to the set of messages associated with - the specified client identifier, if clientId is not null. If clientId is null, this - jakarta.faces.application.FacesMessage is assumed to not be associated with any specific component - instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4921 - - Application - - jakarta.faces.context.FacesContext.getApplication -
-
-
- Return the Application instance associated with this web application. It is valid to - call this method during application startup or shutdown. If called during application startup or - shutdown, returns the correct current jakarta.faces.application.Application instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4922 - - Map - - jakarta.faces.context.FacesContext.getAttributes -
-
-
- Return a mutable Map representing the attributes associated wth this FacesContext - instance. This Map is useful to store attributes that you want to go out of scope when the Faces - lifecycle for the current request ends, which is not always the same as the request ending, - especially in the case of Jakarta Servlet filters that are invoked after the Faces lifecycle for - this request completes. Accessing this Map does not cause any events to fire, as is the case with - the other maps: for request, session, and application scope. When #release() is invoked, the - attributes must be cleared. The Map returned by this method is not associated with the request. If - you would like to get or set request attributes, see ExternalContext#getRequestMap. The default - implementation throws UnsupportedOperationException and is provided for the sole purpose of not - breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4923 - - Iterator - - jakarta.faces.context.FacesContext.getClientIdsWithMessages -
-
-
- Return an Iterator over the client identifiers for which at least one - jakarta.faces.application.FacesMessage has been queued. If there are no such client identifiers, an - empty Iterator is returned. If any messages have been queued that were not associated with any - specific client identifier, a null value will be included in the iterated values. The elements in - the Iterator must be returned in the order in which they were added with #addMessage. - - true - - -
-
-
- true -
- JSF:JAVADOC:4924 - - PhaseId - - jakarta.faces.context.FacesContext.getCurrentPhaseId -
-
-
- Return the value last set on this FacesContext instance when #setCurrentPhaseId was - called. - - true - - -
-
-
- true -
- JSF:JAVADOC:4925 - - ELContext - - jakarta.faces.context.FacesContext.getELContext -
-
-
- Return the ELContext instance for this FacesContext instance. This ELContext instance - has the same lifetime and scope as the FacesContext instance with which it is associated, and may be - created lazily the first time this method is called for a given FacesContext instance. Upon creation - of the ELContext instance, the implementation must take the following action: Call the - ELContext#putContext method on the instance, passing in FacesContext.class and the this reference - for the FacesContext instance itself. If the Collection returned by - jakarta.faces.application.Application#getELContextListeners is non-empty, create an instance of - jakarta.el.ELContextEvent and pass it to each jakarta.el.ELContextListener instance in the - Collection by calling the jakarta.el.ELContextListener#contextCreated method. - - true - - -
-
-
- true -
- JSF:JAVADOC:4926 - - ExceptionHandler - - jakarta.faces.context.FacesContext.getExceptionHandler -
-
-
- Return the ExceptionHandler for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4927 - - ExternalContext - - jakarta.faces.context.FacesContext.getExternalContext -
-
-
- Return the ExternalContext instance for this FacesContext instance. It is valid to call - this method during application startup or shutdown. If called during application startup or - shutdown, this method returns an ExternalContext instance with the special behaviors indicated in - the javadoc for that class. Methods document as being valid to call during application startup or - shutdown must be supported. - - true - - -
-
-
- true -
- JSF:JAVADOC:4928 - - Lifecycle - - jakarta.faces.context.FacesContext.getLifecycle -
-
-
- Return the Lifecycle instance for this FacesContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4929 - - Severity - - jakarta.faces.context.FacesContext.getMaximumSeverity -
-
-
- Return the maximum severity level recorded on any - jakarta.faces.application.FacesMessages that has been queued, whether or not they are associated - with any specific jakarta.faces.component.UIComponent. If no such messages have been queued, return - null. - - true - - -
-
-
- true -
- JSF:JAVADOC:4930 - - List - - jakarta.faces.context.FacesContext.getMessageList -
-
-
- Like #getMessages, but returns a List, enabling use from Jakarta Expression Language - expressions. The default implementation throws UnsupportedOperationException and is provided for the - sole purpose of not breaking existing applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4931 - - List - - jakarta.faces.context.FacesContext.getMessageList -
- ( - String - ) -
-
- Like #getMessages(java.lang.String), but returns a List of messages for the component - with client id matching argument clientId. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4932 - - Iterator - - jakarta.faces.context.FacesContext.getMessages -
- ( - String - ) -
-
- Return an Iterator over the jakarta.faces.application.FacesMessages that have been - queued that are associated with the specified client identifier (if clientId is not null), or over - the jakarta.faces.application.FacesMessages that have been queued that are not associated with any - specific client identifier (if clientId is null). If no such messages have been queued, return an - empty Iterator. The elements of the Iterator must be returned in the order in which they were added - with calls to #addMessage. - - true - - -
-
-
- true -
- JSF:JAVADOC:4933 - - char - - jakarta.faces.context.FacesContext.getNamingContainerSeparatorChar -
-
-
- Return the result of calling UINamingContainer#getSeparatorChar, passing this as the - argument. Note that this enables accessing the value of this property from the Jakarta Expression - Language expression #{facesContext.namingContainerSeparatorChar}. - - true - - -
-
-
- true -
- JSF:JAVADOC:4934 - - PartialViewContext - - jakarta.faces.context.FacesContext.getPartialViewContext -
-
-
- Return the PartialViewContext for this request. The PartialViewContext is used to - control the processing of specified components during the execute portion of the request processing - lifecycle (known as partial processing) and the rendering of specified components (known as partial - rendering). This method must return a new PartialViewContext if one does not already exist. - - true - - -
-
-
- true -
- JSF:JAVADOC:4935 - - RenderKit - - jakarta.faces.context.FacesContext.getRenderKit -
-
-
- Return the RenderKit instance for the render kit identifier specified on our - UIViewRoot, if there is one. If there is no current UIViewRoot, if the UIViewRoot does not have a - specified renderKitId, or if there is no RenderKit for the specified identifier, return null - instead. - - true - - -
-
-
- true -
- JSF:JAVADOC:4936 - - boolean - - jakarta.faces.context.FacesContext.getRenderResponse -
-
-
- Return true if the renderResponse() method has been called for the current request. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4937 - - List - - jakarta.faces.context.FacesContext.getResourceLibraryContracts -
-
-
- Return the list of resource library contracts that have been calculated to be - appropriate for use with this view, or an empty list if there are no such resource library - contracts. The list returned by this method must be immutable. For backward compatibility with - implementations of the specification prior to when this method was introduced, an implementation is - provided that returns an empty list. Implementations compliant with the version in which this method - was introduced must implement this method as specified. - - true - - -
-
-
- true -
- JSF:JAVADOC:4938 - - boolean - - jakarta.faces.context.FacesContext.getResponseComplete -
-
-
- Return true if the responseComplete() method has been called for the current request. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4939 - - UIViewRoot - - jakarta.faces.context.FacesContext.getViewRoot -
-
-
- Return the root component that is associated with the this request. It is valid to call - this method during application startup or shutdown. If called during application startup or - shutdown, this method returns a new UIViewRoot with its locale set to Locale.getDefault(). - - true - - -
-
-
- true -
- JSF:JAVADOC:4940 - - boolean - - jakarta.faces.context.FacesContext.isPostback -
-
-
- This utility method simply returns the result of - jakarta.faces.render.ResponseStateManager#isPostback(FacesContext). The default implementation - throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing - applications that extend this class. - - true - - -
-
-
- true -
- JSF:JAVADOC:4941 - - boolean - - jakarta.faces.context.FacesContext.isProcessingEvents -
-
-
- Returns a flag indicating whether or not the runtime should publish events when asked - to do so. - - true - - -
-
-
- true -
- JSF:JAVADOC:4942 - - boolean - - jakarta.faces.context.FacesContext.isProjectStage -
- ( - ProjectStage - ) -
-
- Return true if the current ProjectStage as returned by the Application instance is - equal to stage, otherwise return false - - true - - -
-
-
- true -
- JSF:JAVADOC:4943 - - boolean - - jakarta.faces.context.FacesContext.isReleased -
-
-
- Return a flag indicating if the resources associated with this FacesContext instance - have been released. - - true - - -
-
-
- true -
- JSF:JAVADOC:4944 - - boolean - - jakarta.faces.context.FacesContext.isValidationFailed -
-
-
- Return true if the validationFailed() method has been called for the current request. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4945 - - void - - jakarta.faces.context.FacesContext.setCurrentPhaseId -
- ( - PhaseId - ) -
-
- The implementation must call this method at the earliest possble point in time after - entering into a new phase in the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:4946 - - void - - jakarta.faces.context.FacesContext.setExceptionHandler -
- ( - ExceptionHandler - ) -
-
- Set the ExceptionHandler for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:4947 - - void - - jakarta.faces.context.FacesContext.setProcessingEvents -
- ( - boolean - ) -
-
- Allows control of wheter or not the runtime will publish events when - Application#publishEvent(FacesContext, Class, Object) or Application#publishEvent(FacesContext, - Class, Class, Object) is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:4948 - - void - - jakarta.faces.context.FacesContext.setResourceLibraryContracts -
- ( - List - ) -
-
- Set the resource library contracts calculated as valid to use with this view. The - implementation must copy the contents of the incoming List into an immutable List for return from - #getResourceLibraryContracts. If the argument is null or empty, the action taken is the same as if - the argument is null: a subsequent call to getResourceLibraryContracts returns null. This method may - only be called during the processing of jakarta.faces.view.ViewDeclarationLanguage#createView and - during the VDL tag handler for the tag corresponding to an instance of UIViewRoot. For backward - compatibility with implementations of the specification prior to when this method was introduced, an - implementation is provided that takes no action. Implementations compliant with the version in which - this method was introduced must implement this method as specified. - - true - - -
-
-
- true -
- JSF:JAVADOC:4949 - - void - - jakarta.faces.context.FacesContext.setViewRoot -
- ( - UIViewRoot - ) -
-
- Set the root component that is associated with this request. This method can be called - by the application handler (or a class that the handler calls), during the Invoke Application phase - of the request processing lifecycle and during the Restore View phase of the request processing - lifecycle (especially when a new root component is created). In the present version of the - specification, implementations are not required to enforce this restriction, though a future version - of the specification may require enforcement. If the current UIViewRoot is non-null, and calling - equals() on the argument root, passing the current UIViewRoot returns false, the clear method must - be called on the Map returned from UIViewRoot#getViewMap. - - true - - -
-
-
- true -
- JSF:JAVADOC:4950 - - void - - jakarta.faces.context.FacesContext.validationFailed -
-
-
- Sets a flag which indicates that a conversion or validation error occurred while - processing the inputs. Inputs consist of either page parameters or form bindings. This flag can be - read using #isValidationFailed. - - true - - -
-
-
- true -
- JSF:JAVADOC:4951 - - FacesContextFactory - - jakarta.faces.context.FacesContextFactory.FacesContextFactory -
- ( - FacesContextFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4952 - - FacesContext - - jakarta.faces.context.FacesContextFactory.getFacesContext -
- ( - Object - , -
- Object - , -
- Object - , -
- Lifecycle - ) -
-
- Create (if needed) and return a FacesContext instance that is initialized for the - processing of the specified request and response objects, utilizing the specified Lifecycle - instance, for this web application. The implementation of this method must ensure that calls to the - getCurrentInstance() method of FacesContext, from the same thread that called this method, will - return the same FacesContext instance until the release() method is called on that instance. The - implementation must call ExternalContextFactory#getExternalContext to produce the ExternalContext - for the FacesContext instance. The default implementation must call - ExceptionHandlerFactory#getExceptionHandler and make it so the return from that method is what gets - returned from a call to FacesContext#getExceptionHandler on the returned FacesContext instance. The - default implementation must call jakarta.faces.lifecycle.ClientWindowFactory#getClientWindow and - make it so the return from that method is what gets returned from a call to - ExternalContext#getClientWindow() on the returned ExternalContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:4953 - - FacesContext - - jakarta.faces.context.FacesContextFactory.getFacesContext -
- ( - Object - , -
- Object - , -
- Object - , -
- Lifecycle - ) - -
- throws - FacesException -
-
-
- if a FacesContext cannot be constructed for the specified parameters - - true - - -
-
-
- true -
- JSF:JAVADOC:4954 - - FacesContextFactory - - jakarta.faces.context.FacesContextFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4955 - - void - - jakarta.faces.context.FacesContextWrapper.addMessage -
- ( - String - , -
- FacesMessage - ) -
-
- The default behavior of this method is to call FacesContext#addMessage(String, - FacesMessage) on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4956 - - FacesContextWrapper - - jakarta.faces.context.FacesContextWrapper.FacesContextWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:4957 - - FacesContextWrapper - - jakarta.faces.context.FacesContextWrapper.FacesContextWrapper -
- ( - FacesContext - ) -
-
- If this faces context has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4958 - - Application - - jakarta.faces.context.FacesContextWrapper.getApplication -
-
-
- The default behavior of this method is to call FacesContext#getApplication() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4959 - - Map - - jakarta.faces.context.FacesContextWrapper.getAttributes -
-
-
- The default behavior of this method is to call FacesContext#getAttributes() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4960 - - Iterator - - jakarta.faces.context.FacesContextWrapper.getClientIdsWithMessages -
-
-
- The default behavior of this method is to call - jakarta.faces.context.FacesContext#getClientIdsWithMessages() on the wrapped FacesContext object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:4961 - - PhaseId - - jakarta.faces.context.FacesContextWrapper.getCurrentPhaseId -
-
-
- The default behavior of this method is to call FacesContext#getCurrentPhaseId() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4962 - - ELContext - - jakarta.faces.context.FacesContextWrapper.getELContext -
-
-
- The default behavior of this method is to call FacesContext#getELContext() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4963 - - ExceptionHandler - - jakarta.faces.context.FacesContextWrapper.getExceptionHandler -
-
-
- The default behavior of this method is to call FacesContext#getExceptionHandler() on - the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4964 - - ExternalContext - - jakarta.faces.context.FacesContextWrapper.getExternalContext -
-
-
- The default behavior of this method is to call FacesContext#getExternalContext() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4965 - - Lifecycle - - jakarta.faces.context.FacesContextWrapper.getLifecycle -
-
-
- The default behavior of this method is to call FacesContext#getLifecycle() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4966 - - Severity - - jakarta.faces.context.FacesContextWrapper.getMaximumSeverity -
-
-
- The default behavior of this method is to call FacesContext#getMaximumSeverity() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4967 - - List - - jakarta.faces.context.FacesContextWrapper.getMessageList -
-
-
- The default behavior of this method is to call FacesContext#getMessageList() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4968 - - List - - jakarta.faces.context.FacesContextWrapper.getMessageList -
- ( - String - ) -
-
- The default behavior of this method is to call FacesContext#getMessageList(String) on - the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4969 - - Iterator - - jakarta.faces.context.FacesContextWrapper.getMessages -
-
-
- The default behavior of this method is to call FacesContext#getMessages() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4970 - - Iterator - - jakarta.faces.context.FacesContextWrapper.getMessages -
- ( - String - ) -
-
- The default behavior of this method is to call FacesContext#getMessages(String) on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4971 - - char - - jakarta.faces.context.FacesContextWrapper.getNamingContainerSeparatorChar -
-
-
- The default behavior of this method is to call - FacesContext#getNamingContainerSeparatorChar() on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4972 - - PartialViewContext - - jakarta.faces.context.FacesContextWrapper.getPartialViewContext -
-
-
- The default behavior of this method is to call FacesContext#getPartialViewContext() ()} - on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4973 - - RenderKit - - jakarta.faces.context.FacesContextWrapper.getRenderKit -
-
-
- The default behavior of this method is to call FacesContext#getRenderKit() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4974 - - boolean - - jakarta.faces.context.FacesContextWrapper.getRenderResponse -
-
-
- The default behavior of this method is to call FacesContext#getRenderResponse() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4975 - - List - - jakarta.faces.context.FacesContextWrapper.getResourceLibraryContracts -
-
-
- The default behavior of this method is to call FacesContext#getResourceLibraryContracts - on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4976 - - boolean - - jakarta.faces.context.FacesContextWrapper.getResponseComplete -
-
-
- The default behavior of this method is to call FacesContext#getResponseComplete() on - the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4977 - - ResponseStream - - jakarta.faces.context.FacesContextWrapper.getResponseStream -
-
-
- The default behavior of this method is to call FacesContext#getResponseStream() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4978 - - ResponseWriter - - jakarta.faces.context.FacesContextWrapper.getResponseWriter -
-
-
- The default behavior of this method is to call FacesContext#getResponseWriter() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4979 - - UIViewRoot - - jakarta.faces.context.FacesContextWrapper.getViewRoot -
-
-
- The default behavior of this method is to call FacesContext#getViewRoot() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4980 - - FacesContext - - jakarta.faces.context.FacesContextWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:4981 - - boolean - - jakarta.faces.context.FacesContextWrapper.isPostback -
-
-
- The default behavior of this method is to call FacesContext#isPostback() on the wrapped - FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4982 - - boolean - - jakarta.faces.context.FacesContextWrapper.isProcessingEvents -
-
-
- The default behavior of this method is to call - jakarta.faces.context.FacesContext#isProcessingEvents() on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4983 - - boolean - - jakarta.faces.context.FacesContextWrapper.isProjectStage -
- ( - ProjectStage - ) -
-
- The default behavior of this method is to call - jakarta.faces.context.FacesContext#isProjectStage(jakarta.faces.application.ProjectStage) on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4984 - - boolean - - jakarta.faces.context.FacesContextWrapper.isReleased -
-
-
- The default behavior of this method is to call FacesContext#isReleased on the wrapped - FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4985 - - boolean - - jakarta.faces.context.FacesContextWrapper.isValidationFailed -
-
-
- The default behavior of this method is to call - jakarta.faces.context.FacesContext#isValidationFailed on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4986 - - void - - jakarta.faces.context.FacesContextWrapper.release -
-
-
- The default behavior of this method is to call FacesContext#release() on the wrapped - FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4987 - - void - - jakarta.faces.context.FacesContextWrapper.renderResponse -
-
-
- The default behavior of this method is to call FacesContext#renderResponse() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4988 - - void - - jakarta.faces.context.FacesContextWrapper.responseComplete -
-
-
- The default behavior of this method is to call FacesContext#responseComplete() on the - wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4989 - - void - - jakarta.faces.context.FacesContextWrapper.setCurrentPhaseId -
- ( - PhaseId - ) -
-
- The default behavior of this method is to call FacesContext#setCurrentPhaseId(PhaseId) - on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4990 - - void - - jakarta.faces.context.FacesContextWrapper.setExceptionHandler -
- ( - ExceptionHandler - ) -
-
- The default behavior of this method is to call - FacesContext#setExceptionHandler(ExceptionHandler) on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4991 - - void - - jakarta.faces.context.FacesContextWrapper.setProcessingEvents -
- ( - boolean - ) -
-
- The default behavior of this method is to call - FacesContext#setProcessingEvents(boolean) on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4992 - - void - - jakarta.faces.context.FacesContextWrapper.setResourceLibraryContracts -
- ( - List - ) -
-
- The default behavior of this method is to call FacesContext#setResourceLibraryContracts - on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4993 - - void - - jakarta.faces.context.FacesContextWrapper.setResponseStream -
- ( - ResponseStream - ) -
-
- The default behavior of this method is to call - FacesContext#setResponseStream(ResponseStream) on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4994 - - void - - jakarta.faces.context.FacesContextWrapper.setResponseWriter -
- ( - ResponseWriter - ) -
-
- The default behavior of this method is to call - FacesContext#setResponseWriter(ResponseWriter) on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4995 - - void - - jakarta.faces.context.FacesContextWrapper.setViewRoot -
- ( - UIViewRoot - ) -
-
- The default behavior of this method is to call FacesContext#setViewRoot(UIViewRoot) on - the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4996 - - void - - jakarta.faces.context.FacesContextWrapper.validationFailed -
-
-
- The default behavior of this method is to call - jakarta.faces.context.FacesContext#validationFailed() on the wrapped FacesContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:4997 - - void - - jakarta.faces.context.Flash.doPostPhaseActions -
- ( - FacesContext - ) -
-
- Called after the execution of every lifecycle phase, this method allows implementations - to take the necessary actions to provide the Flash scope contract as it applies to the request - procesing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:4998 - - void - - jakarta.faces.context.Flash.doPrePhaseActions -
- ( - FacesContext - ) -
-
- Called before the execution of every lifecycle phase, this method allows - implementations to take the necessary actions to provide the Flash scope contract as it applies to - the request procesing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:4999 - - Flash - - jakarta.faces.context.Flash.Flash -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5000 - - boolean - - jakarta.faces.context.Flash.isKeepMessages -
-
-
- Return the value of this JavaBeans property for the flash for this session. This value - determines whether or not any jakarta.faces.application.FacesMessage instances queued in the current - jakarta.faces.context.FacesContext must be preserved so they are accessible on the next traversal of - the lifecycle on this session, regardless of the request being a redirect after post, or a normal - postback. Map accesses for the special key #8220;keepMessages #8221; must return the value of this - JavaBeans property. Jakarta Expression Language Usage Example First page Next page Any messages - present on the first page must be displayed on this page. - - true - - -
-
-
- true -
- JSF:JAVADOC:5001 - - boolean - - jakarta.faces.context.Flash.isRedirect -
-
-
- Return the value of this property for the flash for this session. This must be false - unless: #setRedirect was called for the current lifecycle traversal with true as the argument. The - current lifecycle traversal for this session is in the #8220;execute #8221; phase and the previous - traversal had #setRedirect called with true as the argument. - - true - - -
-
-
- true -
- JSF:JAVADOC:5002 - - void - - jakarta.faces.context.Flash.keep -
- ( - String - ) -
-
- Causes a value stored with a previous call to #putNow, its Jakarta Expression Language - equivalent, or to the request Map, to be promoted to the flash so that is available on the next - traversal through the lifecycle on this session. - - true - - -
-
-
- true -
- JSF:JAVADOC:5003 - - void - - jakarta.faces.context.Flash.putNow -
- ( - String - , -
- Object - ) -
-
- Puts a value in the flash so that it can be accessed on this traversal of the - lifecycle, rather than on the next traversal. This is simply an alias for putting a value in the - request map. Jakarta Expression Language Usage Example Value of \#{flash.now.bar}, should be - barValue. - - true - - -
-
-
- true -
- JSF:JAVADOC:5004 - - void - - jakarta.faces.context.Flash.setKeepMessages -
- ( - boolean - ) -
-
- Setter for keepMessages JavaBeans property. See #isKeepMessages. - - true - - -
-
-
- true -
- JSF:JAVADOC:5005 - - void - - jakarta.faces.context.Flash.setRedirect -
- ( - boolean - ) -
-
- Setting this property to true indicates that the next request on this session will be a - redirect. Recall that on a redirect, the server sends a special response to the client instructing - it to issue a new request to a specific URI. The implementation must insure that reading the value - of this property on that request will return true. Jakarta Expression Language Usage Example - - true - - -
-
-
- true -
- JSF:JAVADOC:5006 - - FlashFactory - - jakarta.faces.context.FlashFactory.FlashFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5007 - - FlashFactory - - jakarta.faces.context.FlashFactory.FlashFactory -
- ( - FlashFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5008 - - Flash - - jakarta.faces.context.FlashFactory.getFlash -
- ( - boolean - ) -
-
- Create (if needed) and return a Flash instance for this web application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5009 - - FlashFactory - - jakarta.faces.context.FlashFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5010 - - void - - jakarta.faces.context.FlashWrapper.clear -
-
-
- The default behavior of this method is to call Flash#clear() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5011 - - boolean - - jakarta.faces.context.FlashWrapper.containsKey -
- ( - Object - ) -
-
- The default behavior of this method is to call Flash#containsKey(Object) on the wrapped - Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5012 - - boolean - - jakarta.faces.context.FlashWrapper.containsValue -
- ( - Object - ) -
-
- The default behavior of this method is to call Flash#containsValue(Object) on the - wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5013 - - void - - jakarta.faces.context.FlashWrapper.doPostPhaseActions -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call Flash#doPostPhaseActions(FacesContext) - on the wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5014 - - void - - jakarta.faces.context.FlashWrapper.doPrePhaseActions -
- ( - FacesContext - ) -
-
- The default behavior of this method is to call Flash#doPrePhaseActions(FacesContext) on - the wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5015 - - Set - - jakarta.faces.context.FlashWrapper.entrySet -
-
-
- The default behavior of this method is to call Flash#entrySet() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5016 - - FlashWrapper - - jakarta.faces.context.FlashWrapper.FlashWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5017 - - FlashWrapper - - jakarta.faces.context.FlashWrapper.FlashWrapper -
- ( - Flash - ) -
-
- If this flash has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5018 - - Object - - jakarta.faces.context.FlashWrapper.get -
- ( - Object - ) -
-
- The default behavior of this method is to call Flash#get(Object) on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5019 - - Flash - - jakarta.faces.context.FlashWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5020 - - boolean - - jakarta.faces.context.FlashWrapper.isEmpty -
-
-
- The default behavior of this method is to call Flash#isEmpty() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5021 - - boolean - - jakarta.faces.context.FlashWrapper.isKeepMessages -
-
-
- The default behavior of this method is to call Flash#isKeepMessages() on the wrapped - Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5022 - - boolean - - jakarta.faces.context.FlashWrapper.isRedirect -
-
-
- The default behavior of this method is to call Flash#isRedirect() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5023 - - void - - jakarta.faces.context.FlashWrapper.keep -
- ( - String - ) -
-
- The default behavior of this method is to call Flash#keep(String) on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5024 - - Set - - jakarta.faces.context.FlashWrapper.keySet -
-
-
- The default behavior of this method is to call Flash#keySet() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5025 - - Object - - jakarta.faces.context.FlashWrapper.put -
- ( - String - , -
- Object - ) -
-
- The default behavior of this method is to call Flash#put on the wrapped Flash object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5026 - - void - - jakarta.faces.context.FlashWrapper.putAll -
- ( - Map - ) -
-
- The default behavior of this method is to call Flash#putAll(Map) on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5027 - - void - - jakarta.faces.context.FlashWrapper.putNow -
- ( - String - , -
- Object - ) -
-
- The default behavior of this method is to call Flash#putNow(String, Object) on the - wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5028 - - Object - - jakarta.faces.context.FlashWrapper.remove -
- ( - Object - ) -
-
- The default behavior of this method is to call Flash#remove(Object) on the wrapped - Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5029 - - void - - jakarta.faces.context.FlashWrapper.setKeepMessages -
- ( - boolean - ) -
-
- The default behavior of this method is to call Flash#setKeepMessages(boolean) on the - wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5030 - - void - - jakarta.faces.context.FlashWrapper.setRedirect -
- ( - boolean - ) -
-
- The default behavior of this method is to call Flash#setRedirect(boolean) on the - wrapped Flash object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5031 - - int - - jakarta.faces.context.FlashWrapper.size -
-
-
- The default behavior of this method is to call Flash#size() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5032 - - Collection - - jakarta.faces.context.FlashWrapper.values -
-
-
- The default behavior of this method is to call Flash#values() on the wrapped Flash - object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5033 - - void - - jakarta.faces.context.PartialResponseWriter.delete -
- ( - String - ) -
-
- Write a delete operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5034 - - void - - jakarta.faces.context.PartialResponseWriter.delete -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5035 - - void - - jakarta.faces.context.PartialResponseWriter.endDocument -
-
-
- Write the end of a partial response. - - true - - -
-
-
- true -
- JSF:JAVADOC:5036 - - void - - jakarta.faces.context.PartialResponseWriter.endDocument -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5037 - - void - - jakarta.faces.context.PartialResponseWriter.endError -
-
-
- Write the end of an error. - - true - - -
-
-
- true -
- JSF:JAVADOC:5038 - - void - - jakarta.faces.context.PartialResponseWriter.endError -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5039 - - void - - jakarta.faces.context.PartialResponseWriter.endEval -
-
-
- Write the end of an eval operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5040 - - void - - jakarta.faces.context.PartialResponseWriter.endEval -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5041 - - void - - jakarta.faces.context.PartialResponseWriter.endExtension -
-
-
- Write the end of an extension operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5042 - - void - - jakarta.faces.context.PartialResponseWriter.endExtension -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5043 - - void - - jakarta.faces.context.PartialResponseWriter.endInsert -
-
-
- Write the end of an insert operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5044 - - void - - jakarta.faces.context.PartialResponseWriter.endInsert -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5045 - - void - - jakarta.faces.context.PartialResponseWriter.endUpdate -
-
-
- Write the end of an update operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5046 - - void - - jakarta.faces.context.PartialResponseWriter.endUpdate -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5047 - - PartialResponseWriter - - jakarta.faces.context.PartialResponseWriter.PartialResponseWriter -
- ( - ResponseWriter - ) -
-
- Create a PartialResponseWriter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5048 - - void - - jakarta.faces.context.PartialResponseWriter.redirect -
- ( - String - ) -
-
- Write a redirect operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5049 - - void - - jakarta.faces.context.PartialResponseWriter.redirect -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5050 - - void - - jakarta.faces.context.PartialResponseWriter.startDocument -
-
-
- Write the start of a partial response. If UIViewRoot is an instance of NamingContainer, - then write UIViewRoot#getContainerClientId(FacesContext) as value of the id attribute of the root - element. - - true - - -
-
-
- true -
- JSF:JAVADOC:5051 - - void - - jakarta.faces.context.PartialResponseWriter.startDocument -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5052 - - void - - jakarta.faces.context.PartialResponseWriter.startError -
- ( - String - ) -
-
- Write the start of an error. - - true - - -
-
-
- true -
- JSF:JAVADOC:5053 - - void - - jakarta.faces.context.PartialResponseWriter.startError -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5054 - - void - - jakarta.faces.context.PartialResponseWriter.startEval -
-
-
- Write the start of an eval operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5055 - - void - - jakarta.faces.context.PartialResponseWriter.startEval -
-
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5056 - - void - - jakarta.faces.context.PartialResponseWriter.startExtension -
- ( - Map - ) -
-
- Write the start of an extension operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5057 - - void - - jakarta.faces.context.PartialResponseWriter.startExtension -
- ( - Map - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5058 - - void - - jakarta.faces.context.PartialResponseWriter.startInsertAfter -
- ( - String - ) -
-
- Write the start of an insert operation where the contents will be inserted after the - specified target node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5059 - - void - - jakarta.faces.context.PartialResponseWriter.startInsertAfter -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5060 - - void - - jakarta.faces.context.PartialResponseWriter.startInsertBefore -
- ( - String - ) -
-
- Write the start of an insert operation where the contents will be inserted before the - specified target node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5061 - - void - - jakarta.faces.context.PartialResponseWriter.startInsertBefore -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5062 - - void - - jakarta.faces.context.PartialResponseWriter.startUpdate -
- ( - String - ) -
-
- Write the start of an update operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5063 - - void - - jakarta.faces.context.PartialResponseWriter.startUpdate -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5064 - - void - - jakarta.faces.context.PartialResponseWriter.updateAttributes -
- ( - String - , -
- Map - ) -
-
- Write an attribute update operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5065 - - void - - jakarta.faces.context.PartialResponseWriter.updateAttributes -
- ( - String - , -
- Map - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5066 - - List - - jakarta.faces.context.PartialViewContext.getEvalScripts -
-
-
- Returns a mutable List of scripts to be evaluated in client side on complete of ajax - request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5067 - - Collection - - jakarta.faces.context.PartialViewContext.getExecuteIds -
-
-
- Return a Collection of client identifiers from the current request with the request - parameter name #PARTIAL_EXECUTE_PARAM_NAME. If there is no such request parameter, return an empty - Collection. These client identifiers are used to identify components that will be processed during - the execute phase of the request processing lifecycle. The returned Collection is mutable. - - true - - -
-
-
- true -
- JSF:JAVADOC:5068 - - PartialResponseWriter - - jakarta.faces.context.PartialViewContext.getPartialResponseWriter -
-
-
- Return the ResponseWriter to which components should direct their output for partial - view rendering. Within a given response, components can use either the ResponseStream or the - ResponseWriter, but not both. - - true - - -
-
-
- true -
- JSF:JAVADOC:5069 - - Collection - - jakarta.faces.context.PartialViewContext.getRenderIds -
-
-
- Return a Collection of client identifiers from the current request with the request - parameter name #PARTIAL_RENDER_PARAM_NAME. If there is no such request parameter, return an empty - Collection. These client identifiers are used to identify components that will be processed during - the render phase of the request processing lifecycle. The returned Collection is mutable. - - true - - -
-
-
- true -
- JSF:JAVADOC:5070 - - boolean - - jakarta.faces.context.PartialViewContext.isAjaxRequest -
-
-
- Return true if the request header Faces-Request is present with the value partial/ajax. - Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5071 - - boolean - - jakarta.faces.context.PartialViewContext.isExecuteAll -
-
-
- Return true if #isAjaxRequest returns true and #PARTIAL_EXECUTE_PARAM_NAME is present - in the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5072 - - boolean - - jakarta.faces.context.PartialViewContext.isPartialRequest -
-
-
- Return true #isAjaxRequest returns true or if the request header Faces-Request is - present with the value partial/process. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5073 - - boolean - - jakarta.faces.context.PartialViewContext.isRenderAll -
-
-
- Return true if #isAjaxRequest returns true and #PARTIAL_RENDER_PARAM_NAME is present in - the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5074 - - boolean - - jakarta.faces.context.PartialViewContext.isResetValues -
-
-
- Return true if the incoming request has a parameter named by the value of - #RESET_VALUES_PARAM_NAME and that value is true. To preserve backward compatibility with custom - implementations that may have extended from an earlier version of this class, an implementation is - provided that returns false. A compliant implementation must override this method to take the - specified action. - - true - - -
-
-
- true -
- JSF:JAVADOC:5075 - - PartialViewContext - - jakarta.faces.context.PartialViewContext.PartialViewContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5076 - - void - - jakarta.faces.context.PartialViewContext.processPartial -
- ( - PhaseId - ) -
-
- Perform lifecycle processing on components during the indicated phaseId. Only those - components with identifiers existing in the Collection returned from #getExecuteIds and - #getRenderIds will be processed. When the indicated phaseId equals PhaseId#RENDER_RESPONSE, then - perform the following tasks in sequence: If #isResetValues() returns true, then call - UIViewRoot#resetValues(FacesContext, Collection), passing #getRenderIds(). If #isRenderAll() returns - false, then render any component resource of UIViewRoot whose - ResourceHandler#getRendererTypeForResourceName(String) does not return null, and whose - UIComponent#getChildCount() is zero, and whose ResourceHandler#isResourceRendered(FacesContext, - String, String) returns false, in an update element with an identifier of jakarta.faces.Resource. - Process the components. Obtain the state by calling StateManager#getViewState and write it out as an - update element with an identifier of jakarta.faces.ViewState where is the return from - UIViewRoot#getContainerClientId(FacesContext) on the view from whence this state originated, and is - the currently configured UINamingContainer#getSeparatorChar(FacesContext). If #isRenderAll() returns - false, then write out each script of #getEvalScripts() as an eval element. - - true - - -
-
-
- true -
- JSF:JAVADOC:5077 - - void - - jakarta.faces.context.PartialViewContext.release -
-
-
- Release any resources associated with this PartialViewContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5078 - - void - - jakarta.faces.context.PartialViewContext.setPartialRequest -
- ( - boolean - ) -
-
- Dynamically indicate that this is a partial request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5079 - - void - - jakarta.faces.context.PartialViewContext.setRenderAll -
- ( - boolean - ) -
-
- Indicate the entire view must be rendered if renderAll is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5080 - - PartialViewContext - - jakarta.faces.context.PartialViewContextFactory.getPartialViewContext -
- ( - FacesContext - ) -
-
- Create (if needed) and return a PartialViewContext instance that is initialized using - the current FacesContext instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5081 - - PartialViewContextFactory - - jakarta.faces.context.PartialViewContextFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5082 - - PartialViewContextFactory - - jakarta.faces.context.PartialViewContextFactory.PartialViewContextFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5083 - - PartialViewContextFactory - - jakarta.faces.context.PartialViewContextFactory.PartialViewContextFactory -
- ( - PartialViewContextFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5084 - - List - - jakarta.faces.context.PartialViewContextWrapper.getEvalScripts -
-
-
- The default behavior of this method is to call PartialViewContext#getRenderIds() on the - wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5085 - - Collection - - jakarta.faces.context.PartialViewContextWrapper.getExecuteIds -
-
-
- The default behavior of this method is to call PartialViewContext#getExecuteIds() on - the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5086 - - PartialResponseWriter - - jakarta.faces.context.PartialViewContextWrapper.getPartialResponseWriter -
-
-
- The default behavior of this method is to call - PartialViewContext#getPartialResponseWriter() on the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5087 - - Collection - - jakarta.faces.context.PartialViewContextWrapper.getRenderIds -
-
-
- The default behavior of this method is to call PartialViewContext#getRenderIds() on the - wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5088 - - PartialViewContext - - jakarta.faces.context.PartialViewContextWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5089 - - boolean - - jakarta.faces.context.PartialViewContextWrapper.isAjaxRequest -
-
-
- The default behavior of this method is to call PartialViewContext#isAjaxRequest() on - the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5090 - - boolean - - jakarta.faces.context.PartialViewContextWrapper.isExecuteAll -
-
-
- The default behavior of this method is to call PartialViewContext#isExecuteAll() on the - wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5091 - - boolean - - jakarta.faces.context.PartialViewContextWrapper.isPartialRequest -
-
-
- The default behavior of this method is to call PartialViewContext#isPartialRequest() on - the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5092 - - boolean - - jakarta.faces.context.PartialViewContextWrapper.isRenderAll -
-
-
- The default behavior of this method is to call PartialViewContext#isRenderAll() on the - wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5093 - - boolean - - jakarta.faces.context.PartialViewContextWrapper.isResetValues -
-
-
- The default behavior of this method is to call PartialViewContext#isResetValues() on - the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5094 - - PartialViewContextWrapper - - jakarta.faces.context.PartialViewContextWrapper.PartialViewContextWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5095 - - PartialViewContextWrapper - - jakarta.faces.context.PartialViewContextWrapper.PartialViewContextWrapper -
- ( - PartialViewContext - ) -
-
- If this partial view context has been decorated, the implementation doing the - decorating should push the implementation being wrapped to this constructor. The #getWrapped() will - then return the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5096 - - void - - jakarta.faces.context.PartialViewContextWrapper.processPartial -
- ( - PhaseId - ) -
-
- The default behavior of this method is to call - PartialViewContext#processPartial(PhaseId) on the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5097 - - void - - jakarta.faces.context.PartialViewContextWrapper.release -
-
-
- The default behavior of this method is to call PartialViewContext#release() on the - wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5098 - - void - - jakarta.faces.context.PartialViewContextWrapper.setPartialRequest -
- ( - boolean - ) -
-
- The default behavior of this method is to call - PartialViewContext#setPartialRequest(boolean) on the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5099 - - void - - jakarta.faces.context.PartialViewContextWrapper.setRenderAll -
- ( - boolean - ) -
-
- The default behavior of this method is to call PartialViewContext#setRenderAll(boolean) - on the wrapped PartialViewContext object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5100 - - ResponseWriter - - jakarta.faces.context.ResponseWriter.cloneWithWriter -
- ( - Writer - ) -
-
- Create and return a new instance of this ResponseWriter, using the specified Writer as - the output destination. - - true - - -
-
-
- true -
- JSF:JAVADOC:5101 - - void - - jakarta.faces.context.ResponseWriter.endCDATA -
-
-
- Close an XML CDATA block. The default implementation of this method takes no action - when invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:5102 - - void - - jakarta.faces.context.ResponseWriter.endCDATA -
-
- throws - IOException -
-
-
- if input/output error occures - - true - - -
-
-
- true -
- JSF:JAVADOC:5103 - - void - - jakarta.faces.context.ResponseWriter.flush -
-
-
- Flush any ouput buffered by the output method to the underlying Writer or OutputStream. - This method will not flush the underlying Writer or OutputStream; it simply clears any values - buffered by this ResponseWriter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5104 - - void - - jakarta.faces.context.ResponseWriter.flush -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5105 - - String - - jakarta.faces.context.ResponseWriter.getCharacterEncoding -
-
-
- Return the character encoding (such as "ISO-8859-1") for this ResponseWriter. Please - see the IANA for a list of character encodings. - - true - - -
-
-
- true -
- JSF:JAVADOC:5106 - - String - - jakarta.faces.context.ResponseWriter.getContentType -
-
-
- Return the content type (such as "text/html") for this ResponseWriter. Note: this must - not include the "charset=" suffix. - - true - - -
-
-
- true -
- JSF:JAVADOC:5107 - - void - - jakarta.faces.context.ResponseWriter.startCDATA -
-
-
- Open an XML CDATA block. Note that XML does not allow nested CDATA blocks, though this - method does not enforce that constraint. The default implementation of this method takes no action - when invoked. - - true - - -
-
-
- true -
- JSF:JAVADOC:5108 - - void - - jakarta.faces.context.ResponseWriter.startCDATA -
-
- throws - IOException -
-
-
- if input/output error occures - - true - - -
-
-
- true -
- JSF:JAVADOC:5109 - - void - - jakarta.faces.context.ResponseWriter.startElement -
- ( - String - , -
- UIComponent - ) -
-
- Write the start of an element, up to and including the element name. Once this method - has been called, clients can call the writeAttribute() or writeURIAttribute() methods to add - attributes and corresponding values. The starting element will be closed (that is, the trailing ' - gt;' character added) on any subsequent call to startElement(), writeComment(), writeText(), - endElement(), endDocument(), close(), flush(), or write(). If the argument component's pass through - attributes includes an attribute of the name given by the value of the symbolic constant - jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, - instead of the value passed as the first parameter to this method. Care must be taken so that this - value is not also rendered when any other pass through attributes on this component are rendered. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5110 - - void - - jakarta.faces.context.ResponseWriter.startElement -
- ( - String - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5111 - - void - - jakarta.faces.context.ResponseWriter.writeAttribute -
- ( - String - , -
- Object - , -
- String - ) -
-
- Write an attribute name and corresponding value, after converting that text to a String - (if necessary), and after performing any escaping appropriate for the markup language being - rendered. This method may only be called after a call to startElement(), and before the opened - element has been closed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5112 - - void - - jakarta.faces.context.ResponseWriter.writeAttribute -
- ( - String - , -
- Object - , -
- String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5113 - - void - - jakarta.faces.context.ResponseWriter.writeDoctype -
- ( - String - ) -
-
- Write a string containing the markup specific doctype. No escaping is performed. The - default implementation simply calls through to #write(java.lang.String) . The implementation makes - no checks if this is the correct place in the response to have a doctype, nor does it prevent the - doctype from being written more than once. - - true - - -
-
-
- true -
- JSF:JAVADOC:5114 - - void - - jakarta.faces.context.ResponseWriter.writeDoctype -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5115 - - void - - jakarta.faces.context.ResponseWriter.writePreamble -
- ( - String - ) -
-
- Write a string containing the markup specific preamble. No escaping is performed. The - default implementation simply calls through to #write(java.lang.String) . The implementation makes - no checks if this is the correct place in the response to have a preamble, nor does it prevent the - preamble from being written more than once. - - true - - -
-
-
- true -
- JSF:JAVADOC:5116 - - void - - jakarta.faces.context.ResponseWriter.writePreamble -
- ( - String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5117 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - Object - , -
- String - ) -
-
- Write an object, after converting it to a String (if necessary), and after performing - any escaping appropriate for the markup language being rendered. If there is an open element that - has been created by a call to startElement(), that element will be closed first. - - true - - -
-
-
- true -
- JSF:JAVADOC:5118 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - Object - , -
- String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5119 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - Object - , -
- UIComponent - , -
- String - ) -
-
- Write an object, after converting it to a String (if necessary), and after performing - any escaping appropriate for the markup language being rendered. This method is equivalent to - #writeText(java.lang.Object,java.lang.String) but adds a component property to allow custom - ResponseWriter implementations to associate a component with an arbitrary portion of text. The - default implementation simply ignores the component argument and calls through to - #writeText(java.lang.Object,java.lang.String) - - true - - -
-
-
- true -
- JSF:JAVADOC:5120 - - void - - jakarta.faces.context.ResponseWriter.writeText -
- ( - Object - , -
- UIComponent - , -
- String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5121 - - void - - jakarta.faces.context.ResponseWriter.writeURIAttribute -
- ( - String - , -
- Object - , -
- String - ) -
-
- Write a URI attribute name and corresponding value, after converting that text to a - String (if necessary), and after performing any encoding or escaping appropriate to the markup - language being rendered. When rendering in a WWW environment, the escaping conventions established - in the W3C URI spec document must be followed. In particular, spaces ' ' must be encoded as %20 and - not the plus character '+'. This method may only be called after a call to startElement(), and - before the opened element has been closed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5122 - - void - - jakarta.faces.context.ResponseWriter.writeURIAttribute -
- ( - String - , -
- Object - , -
- String - ) - -
- throws - IOException -
-
-
- if an input/output error occurs - - true - - -
-
-
- true -
- JSF:JAVADOC:5123 - - ResponseWriter - - jakarta.faces.context.ResponseWriterWrapper.cloneWithWriter -
- ( - Writer - ) -
-
- The default behavior of this method is to call - ResponseWriter#cloneWithWriter(java.io.Writer) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5124 - - void - - jakarta.faces.context.ResponseWriterWrapper.close -
-
-
- The default behavior of this method is to call ResponseWriter#close() on the wrapped - ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5125 - - void - - jakarta.faces.context.ResponseWriterWrapper.close -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5126 - - void - - jakarta.faces.context.ResponseWriterWrapper.endCDATA -
-
-
- The default behavior of this method is to call ResponseWriter#endCDATA on the wrapped - ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5127 - - void - - jakarta.faces.context.ResponseWriterWrapper.endCDATA -
-
- throws - IOException -
-
-
- on any read/write error - - true - - -
-
-
- true -
- JSF:JAVADOC:5128 - - void - - jakarta.faces.context.ResponseWriterWrapper.endDocument -
-
-
- The default behavior of this method is to call ResponseWriter#endDocument() on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5129 - - void - - jakarta.faces.context.ResponseWriterWrapper.endDocument -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5130 - - void - - jakarta.faces.context.ResponseWriterWrapper.endElement -
- ( - String - ) -
-
- The default behavior of this method is to call ResponseWriter#endElement(String) on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5131 - - void - - jakarta.faces.context.ResponseWriterWrapper.endElement -
- ( - String - ) - -
- throws - IOException -
-
-
- on any read/write error - - true - - -
-
-
- true -
- JSF:JAVADOC:5132 - - void - - jakarta.faces.context.ResponseWriterWrapper.flush -
-
-
- The default behavior of this method is to call ResponseWriter#flush() on the wrapped - ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5133 - - void - - jakarta.faces.context.ResponseWriterWrapper.flush -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5134 - - String - - jakarta.faces.context.ResponseWriterWrapper.getCharacterEncoding -
-
-
- The default behavior of this method is to call ResponseWriter#getCharacterEncoding() on - the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5135 - - String - - jakarta.faces.context.ResponseWriterWrapper.getContentType -
-
-
- The default behavior of this method is to call ResponseWriter#getContentType() on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5136 - - ResponseWriter - - jakarta.faces.context.ResponseWriterWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5137 - - ResponseWriterWrapper - - jakarta.faces.context.ResponseWriterWrapper.ResponseWriterWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5138 - - ResponseWriterWrapper - - jakarta.faces.context.ResponseWriterWrapper.ResponseWriterWrapper -
- ( - ResponseWriter - ) -
-
- If this response writer has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5139 - - void - - jakarta.faces.context.ResponseWriterWrapper.startCDATA -
-
-
- The default behavior of this method is to call ResponseWriter#startCDATA on the wrapped - ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5140 - - void - - jakarta.faces.context.ResponseWriterWrapper.startCDATA -
-
- throws - IOException -
-
-
- on any read/write error - - true - - -
-
-
- true -
- JSF:JAVADOC:5141 - - void - - jakarta.faces.context.ResponseWriterWrapper.startDocument -
-
-
- The default behavior of this method is to call ResponseWriter#startDocument() on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5142 - - void - - jakarta.faces.context.ResponseWriterWrapper.startDocument -
-
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5143 - - void - - jakarta.faces.context.ResponseWriterWrapper.startElement -
- ( - String - , -
- UIComponent - ) -
-
- The default behavior of this method is to call ResponseWriter#startElement(String, - jakarta.faces.component.UIComponent) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5144 - - void - - jakarta.faces.context.ResponseWriterWrapper.startElement -
- ( - String - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5145 - - void - - jakarta.faces.context.ResponseWriterWrapper.write -
- ( - char[] - , -
- int - , -
- int - ) -
-
- The default behavior of this method is to call ResponseWriter#write(char[], int, int) - on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5146 - - void - - jakarta.faces.context.ResponseWriterWrapper.write -
- ( - char[] - , -
- int - , -
- int - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5147 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeAttribute -
- ( - String - , -
- Object - , -
- String - ) -
-
- The default behavior of this method is to call ResponseWriter#writeAttribute(String, - Object, String) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5148 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeAttribute -
- ( - String - , -
- Object - , -
- String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5149 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeComment -
- ( - Object - ) -
-
- The default behavior of this method is to call ResponseWriter#writeComment(Object) on - the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5150 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeComment -
- ( - Object - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5151 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeDoctype -
- ( - String - ) -
-
- The default behavior of this method is to call ResponseWriter#writeDoctype on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5152 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeDoctype -
- ( - String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5153 - - void - - jakarta.faces.context.ResponseWriterWrapper.writePreamble -
- ( - String - ) -
-
- The default behavior of this method is to call ResponseWriter#writePreamble on the - wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5154 - - void - - jakarta.faces.context.ResponseWriterWrapper.writePreamble -
- ( - String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5155 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - Object - , -
- String - ) -
-
- The default behavior of this method is to call ResponseWriter#writeText(Object, String) - on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5156 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - Object - , -
- String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5157 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - Object - , -
- UIComponent - , -
- String - ) -
-
- The default behavior of this method is to call ResponseWriter#writeText(Object, - UIComponent, String) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5158 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - Object - , -
- UIComponent - , -
- String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5159 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - char[] - , -
- int - , -
- int - ) -
-
- The default behavior of this method is to call ResponseWriter#writeText(char[], int, - int) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5160 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeText -
- ( - char[] - , -
- int - , -
- int - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5161 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeURIAttribute -
- ( - String - , -
- Object - , -
- String - ) -
-
- The default behavior of this method is to call ResponseWriter#writeURIAttribute(String, - Object, String) on the wrapped ResponseWriter object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5162 - - void - - jakarta.faces.context.ResponseWriterWrapper.writeURIAttribute -
- ( - String - , -
- Object - , -
- String - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5163 - - BigDecimalConverter - - jakarta.faces.convert.BigDecimalConverter.BigDecimalConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5164 - - Object - - jakarta.faces.convert.BigDecimalConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5165 - - String - - jakarta.faces.convert.BigDecimalConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5166 - - BigIntegerConverter - - jakarta.faces.convert.BigIntegerConverter.BigIntegerConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5167 - - Object - - jakarta.faces.convert.BigIntegerConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5168 - - String - - jakarta.faces.convert.BigIntegerConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5169 - - BooleanConverter - - jakarta.faces.convert.BooleanConverter.BooleanConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5170 - - Object - - jakarta.faces.convert.BooleanConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5171 - - String - - jakarta.faces.convert.BooleanConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5172 - - ByteConverter - - jakarta.faces.convert.ByteConverter.ByteConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5173 - - Object - - jakarta.faces.convert.ByteConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5174 - - String - - jakarta.faces.convert.ByteConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5175 - - CharacterConverter - - jakarta.faces.convert.CharacterConverter.CharacterConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5176 - - Object - - jakarta.faces.convert.CharacterConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5177 - - String - - jakarta.faces.convert.CharacterConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5178 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
- ( - FacesMessage - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5179 - - ConverterException - - jakarta.faces.convert.ConverterException.ConverterException -
- ( - FacesMessage - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5180 - - FacesMessage - - jakarta.faces.convert.ConverterException.getFacesMessage -
-
-
- Returns the FacesMessage associated with this exception; this will only be available if - the converter that thew this exception instance placed it there. - - true - - -
-
-
- true -
- JSF:JAVADOC:5181 - - void - - jakarta.faces.convert.DateTimeConverter.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5182 - - DateTimeConverter - - jakarta.faces.convert.DateTimeConverter.DateTimeConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5183 - - Object - - jakarta.faces.convert.DateTimeConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5184 - - String - - jakarta.faces.convert.DateTimeConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5185 - - String - - jakarta.faces.convert.DateTimeConverter.getDateStyle -
-
-
- Return the style to be used to format or parse dates. If not set, the default value, - default, is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5186 - - Locale - - jakarta.faces.convert.DateTimeConverter.getLocale -
-
-
- Return the Locale to be used when parsing or formatting dates and times. If not - explicitly set, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request - is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5187 - - String - - jakarta.faces.convert.DateTimeConverter.getPattern -
-
-
- Return the format pattern to be used when formatting and parsing dates and times. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5188 - - String - - jakarta.faces.convert.DateTimeConverter.getTimeStyle -
-
-
- Return the style to be used to format or parse times. If not set, the default value, - default, is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5189 - - TimeZone - - jakarta.faces.convert.DateTimeConverter.getTimeZone -
-
-
- Return the TimeZone used to interpret a time value. If not explicitly set, the default - time zone of GMT returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5190 - - String - - jakarta.faces.convert.DateTimeConverter.getType -
-
-
- Return the type of value to be formatted or parsed. If not explicitly set, the default - type, date is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5191 - - boolean - - jakarta.faces.convert.DateTimeConverter.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5192 - - boolean - - jakarta.faces.convert.DateTimeConverter.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5193 - - void - - jakarta.faces.convert.DateTimeConverter.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5194 - - void - - jakarta.faces.convert.DateTimeConverter.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5195 - - Object - - jakarta.faces.convert.DateTimeConverter.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5196 - - void - - jakarta.faces.convert.DateTimeConverter.setDateStyle -
- ( - String - ) -
-
- Set the style to be used to format or parse dates. Valid values are default, short, - medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or - getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5197 - - void - - jakarta.faces.convert.DateTimeConverter.setLocale -
- ( - Locale - ) -
-
- Set the Locale to be used when parsing or formatting dates and times. If set to null, - the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be - utilized. - - true - - -
-
-
- true -
- JSF:JAVADOC:5198 - - void - - jakarta.faces.convert.DateTimeConverter.setPattern -
- ( - String - ) -
-
- Set the format pattern to be used when formatting and parsing dates and times. Valid - values are those supported by java.text.SimpleDateFormat. An invalid value will cause a - ConverterException when getAsObject() or getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5199 - - void - - jakarta.faces.convert.DateTimeConverter.setTimeStyle -
- ( - String - ) -
-
- Set the style to be used to format or parse times. Valid values are default, short, - medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or - getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5200 - - void - - jakarta.faces.convert.DateTimeConverter.setTimeZone -
- ( - TimeZone - ) -
-
- Set the TimeZone used to interpret a time value. - - true - - -
-
-
- true -
- JSF:JAVADOC:5201 - - void - - jakarta.faces.convert.DateTimeConverter.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5202 - - void - - jakarta.faces.convert.DateTimeConverter.setType -
- ( - String - ) -
-
- Set the type of value to be formatted or parsed. Valid values are both, date, time - localDate, localDateTime, localTime, offsetTime, offsetDateTime, or zonedDateTime. The values - starting with "local", "offset" and "zoned" correspond to Java SE 8 Date Time API classes in package - java.time with the name derived by upper casing the first letter. For example, java.time.LocalDate - for the value "localDate". An invalid value will cause a ConverterException when getAsObject() or - getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5203 - - DoubleConverter - - jakarta.faces.convert.DoubleConverter.DoubleConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5204 - - Object - - jakarta.faces.convert.DoubleConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5205 - - String - - jakarta.faces.convert.DoubleConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5206 - - void - - jakarta.faces.convert.EnumConverter.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5207 - - EnumConverter - - jakarta.faces.convert.EnumConverter.EnumConverter -
-
-
- For StateHolder - - true - - -
-
-
- true -
- JSF:JAVADOC:5208 - - EnumConverter - - jakarta.faces.convert.EnumConverter.EnumConverter -
- ( - Class - ) -
-
- Instantiates an enum converter with a class where enum constants are taken from. - - true - - -
-
-
- true -
- JSF:JAVADOC:5209 - - Object - - jakarta.faces.convert.EnumConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the value argument to one of the enum constants of the class provided in our - constructor. If no target class argument has been provided to the constructor of this instance, - throw a ConverterException containing the #ENUM_NO_CLASS_ID message with proper parameters. If the - value argument is null or it has a length of zero, return null. Otherwise, perform the equivalent of - Enum.valueOf using target class and value and return the Object. If the conversion fails, throw a - ConverterException containing the #ENUM_ID message with proper parameters. - - true - - -
-
-
- true -
- JSF:JAVADOC:5210 - - String - - jakarta.faces.convert.EnumConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Convert the enum constant given by the value argument into a String. If no target class - argument has been provided to the constructor of this instance, throw a ConverterException - containing the #ENUM_NO_CLASS_ID message with proper parameters. If the value argument is null, - return the empty String. If the value is an instance of the provided target class, return its string - value by casting it to a java.lang.Enum and returning the result of calling the name() method. - Otherwise, throw a ConverterException containing the #ENUM_ID message with proper parameters. - - true - - -
-
-
- true -
- JSF:JAVADOC:5211 - - boolean - - jakarta.faces.convert.EnumConverter.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5212 - - boolean - - jakarta.faces.convert.EnumConverter.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5213 - - void - - jakarta.faces.convert.EnumConverter.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5214 - - void - - jakarta.faces.convert.EnumConverter.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5215 - - Object - - jakarta.faces.convert.EnumConverter.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5216 - - void - - jakarta.faces.convert.EnumConverter.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5217 - - Class - - jakarta.faces.convert.FacesConverter.forClass -
-
-
- The value of this annotation attribute is taken to be the converter-for-class with - which instances of this class of converter can be instantiated by calling - jakarta.faces.application.Application#createConverter(java.lang.Class). - - true - - -
-
-
- true -
- JSF:JAVADOC:5218 - - boolean - - jakarta.faces.convert.FacesConverter.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5219 - - String - - jakarta.faces.convert.FacesConverter.value -
-
-
- The value of this annotation attribute is taken to be the converter-id with which - instances of this class of converter can be instantiated by calling - jakarta.faces.application.Application#createConverter(java.lang.String). - - true - - -
-
-
- true -
- JSF:JAVADOC:5220 - - Class - - jakarta.faces.convert.FacesConverter.Literal.forClass -
-
-
- The value of this annotation attribute is taken to be the converter-for-class with - which instances of this class of converter can be instantiated by calling - jakarta.faces.application.Application#createConverter(java.lang.Class). - - true - - -
-
-
- true -
- JSF:JAVADOC:5221 - - boolean - - jakarta.faces.convert.FacesConverter.Literal.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5222 - - Literal - - jakarta.faces.convert.FacesConverter.Literal.of -
- ( - String - , -
- Class - , -
- boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5223 - - String - - jakarta.faces.convert.FacesConverter.Literal.value -
-
-
- The value of this annotation attribute is taken to be the converter-id with which - instances of this class of converter can be instantiated by calling - jakarta.faces.application.Application#createConverter(java.lang.String). - - true - - -
-
-
- true -
- JSF:JAVADOC:5224 - - FloatConverter - - jakarta.faces.convert.FloatConverter.FloatConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5225 - - Object - - jakarta.faces.convert.FloatConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5226 - - String - - jakarta.faces.convert.FloatConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5227 - - Object - - jakarta.faces.convert.IntegerConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5228 - - String - - jakarta.faces.convert.IntegerConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5229 - - IntegerConverter - - jakarta.faces.convert.IntegerConverter.IntegerConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5230 - - Object - - jakarta.faces.convert.LongConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5231 - - String - - jakarta.faces.convert.LongConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5232 - - LongConverter - - jakarta.faces.convert.LongConverter.LongConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5233 - - void - - jakarta.faces.convert.NumberConverter.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5234 - - Object - - jakarta.faces.convert.NumberConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5235 - - String - - jakarta.faces.convert.NumberConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5236 - - String - - jakarta.faces.convert.NumberConverter.getCurrencyCode -
-
-
- Return the ISO 4217 currency code used by getAsString() with a type of currency. If not - set, the value used will be based on the formatting Locale. - - true - - -
-
-
- true -
- JSF:JAVADOC:5237 - - String - - jakarta.faces.convert.NumberConverter.getCurrencySymbol -
-
-
- Return the currency symbol used by getAsString() with a type of currency. If not set, - the value used will be based on the formatting Locale. - - true - - -
-
-
- true -
- JSF:JAVADOC:5238 - - Locale - - jakarta.faces.convert.NumberConverter.getLocale -
-
-
- Return the Locale to be used when parsing numbers. If this value is null, the Locale - stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - - true - - -
-
-
- true -
- JSF:JAVADOC:5239 - - int - - jakarta.faces.convert.NumberConverter.getMaxFractionDigits -
-
-
- Return the maximum number of digits getAsString() should render in the fraction portion - of the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:5240 - - int - - jakarta.faces.convert.NumberConverter.getMaxIntegerDigits -
-
-
- Return the maximum number of digits getAsString() should render in the integer portion - of the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:5241 - - int - - jakarta.faces.convert.NumberConverter.getMinFractionDigits -
-
-
- Return the minimum number of digits getAsString() should render in the fraction portion - of the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:5242 - - int - - jakarta.faces.convert.NumberConverter.getMinIntegerDigits -
-
-
- Return the minimum number of digits getAsString() should render in the integer portion - of the result. - - true - - -
-
-
- true -
- JSF:JAVADOC:5243 - - String - - jakarta.faces.convert.NumberConverter.getPattern -
-
-
- Return the format pattern to be used when formatting and parsing numbers. - - true - - -
-
-
- true -
- JSF:JAVADOC:5244 - - String - - jakarta.faces.convert.NumberConverter.getType -
-
-
- Return the number type to be used when formatting and parsing numbers. If not modified, - the default type is number. - - true - - -
-
-
- true -
- JSF:JAVADOC:5245 - - boolean - - jakarta.faces.convert.NumberConverter.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5246 - - boolean - - jakarta.faces.convert.NumberConverter.isGroupingUsed -
-
-
- Return true if getAsString should include grouping separators if necessary. If not - modified, the default value is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5247 - - boolean - - jakarta.faces.convert.NumberConverter.isIntegerOnly -
-
-
- Return true if only the integer portion of the given value should be returned from - getAsObject(). If not modified, the default value is false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5248 - - boolean - - jakarta.faces.convert.NumberConverter.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5249 - - void - - jakarta.faces.convert.NumberConverter.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5250 - - NumberConverter - - jakarta.faces.convert.NumberConverter.NumberConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5251 - - void - - jakarta.faces.convert.NumberConverter.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5252 - - Object - - jakarta.faces.convert.NumberConverter.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5253 - - void - - jakarta.faces.convert.NumberConverter.setCurrencyCode -
- ( - String - ) -
-
- Set the ISO 4217 currency code used by getAsString() with a type of currency. - - true - - -
-
-
- true -
- JSF:JAVADOC:5254 - - void - - jakarta.faces.convert.NumberConverter.setCurrencySymbol -
- ( - String - ) -
-
- Set the currency symbol used by getAsString() with a type of currency. - - true - - -
-
-
- true -
- JSF:JAVADOC:5255 - - void - - jakarta.faces.convert.NumberConverter.setGroupingUsed -
- ( - boolean - ) -
-
- Set the flag indicating whether getAsString() should include grouping separators if - necessary. - - true - - -
-
-
- true -
- JSF:JAVADOC:5256 - - void - - jakarta.faces.convert.NumberConverter.setIntegerOnly -
- ( - boolean - ) -
-
- Set to true if only the integer portion of the given value should be returned from - getAsObject(). - - true - - -
-
-
- true -
- JSF:JAVADOC:5257 - - void - - jakarta.faces.convert.NumberConverter.setLocale -
- ( - Locale - ) -
-
- Set the Locale to be used when parsing numbers. If set to null, the Locale stored in - the jakarta.faces.component.UIViewRoot for the current request will be utilized. - - true - - -
-
-
- true -
- JSF:JAVADOC:5258 - - void - - jakarta.faces.convert.NumberConverter.setMaxFractionDigits -
- ( - int - ) -
-
- Set the maximum number of digits getAsString() should render in the fraction portion of - the result. If not set, the number of digits depends on the value being converted. - - true - - -
-
-
- true -
- JSF:JAVADOC:5259 - - void - - jakarta.faces.convert.NumberConverter.setMaxIntegerDigits -
- ( - int - ) -
-
- Set the maximum number of digits getAsString() should render in the integer portion of - the result. If not set, the number of digits depends on the value being converted. - - true - - -
-
-
- true -
- JSF:JAVADOC:5260 - - void - - jakarta.faces.convert.NumberConverter.setMinFractionDigits -
- ( - int - ) -
-
- Set the minimum number of digits getAsString() should render in the fraction portion of - the result. If not set, the number of digits depends on the value being converted. - - true - - -
-
-
- true -
- JSF:JAVADOC:5261 - - void - - jakarta.faces.convert.NumberConverter.setMinIntegerDigits -
- ( - int - ) -
-
- Set the minimum number of digits getAsString() should render in the integer portion of - the result. If not set, the number of digits depends on the value being converted. - - true - - -
-
-
- true -
- JSF:JAVADOC:5262 - - void - - jakarta.faces.convert.NumberConverter.setPattern -
- ( - String - ) -
-
- Set the format pattern to be used when formatting and parsing numbers. Valid values are - those supported by java.text.DecimalFormat. An invalid value will cause a ConverterException when - getAsObject() or getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5263 - - void - - jakarta.faces.convert.NumberConverter.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5264 - - void - - jakarta.faces.convert.NumberConverter.setType -
- ( - String - ) -
-
- Set the number type to be used when formatting and parsing numbers. Valid values are - currency, number, or percent. An invalid value will cause a ConverterException when getAsObject() or - getAsString() is called. - - true - - -
-
-
- true -
- JSF:JAVADOC:5265 - - Object - - jakarta.faces.convert.ShortConverter.getAsObject -
- ( - FacesContext - , -
- UIComponent - , -
- String - ) -
-
- Convert the specified string value, which is associated with the specified UIComponent, - into a model data object that is appropriate for being stored during the Process Validations phase - of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5266 - - String - - jakarta.faces.convert.ShortConverter.getAsString -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5267 - - ShortConverter - - jakarta.faces.convert.ShortConverter.ShortConverter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5268 - - ValueExpression - - jakarta.faces.el.CompositeComponentExpressionHolder.getExpression -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5269 - - AbortProcessingException - - jakarta.faces.event.AbortProcessingException.AbortProcessingException -
- ( - String - ) -
-
- Construct a new exception with the specified detail message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5270 - - AbortProcessingException - - jakarta.faces.event.AbortProcessingException.AbortProcessingException -
- ( - Throwable - ) -
-
- Construct a new exception with the specified root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5271 - - AbortProcessingException - - jakarta.faces.event.AbortProcessingException.AbortProcessingException -
- ( - String - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5272 - - ActionEvent - - jakarta.faces.event.ActionEvent.ActionEvent -
- ( - UIComponent - ) -
-
- Construct a new event object from the specified source component and action command. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5273 - - ActionEvent - - jakarta.faces.event.ActionEvent.ActionEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Construct a new event object from the Faces context, specified source component and - action command. - - true - - -
-
-
- true -
- JSF:JAVADOC:5274 - - boolean - - jakarta.faces.event.ActionEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if this FacesListener is an instance of a listener class that this event - supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5275 - - void - - jakarta.faces.event.ActionEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is - appropriate. Typically, this will be accomplished by calling an event processing method, and passing - this FacesEvent as a paramter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5276 - - ActionListenerWrapper - - jakarta.faces.event.ActionListenerWrapper.ActionListenerWrapper -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5277 - - ActionListener - - jakarta.faces.event.ActionListenerWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5278 - - void - - jakarta.faces.event.ActionListenerWrapper.processAction -
- ( - ActionEvent - ) -
-
- Invoked when the action described by the specified ActionEvent occurs. - - true - - -
-
-
- true -
- JSF:JAVADOC:5279 - - void - - jakarta.faces.event.ActionListenerWrapper.processAction -
- ( - ActionEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:5280 - - AjaxBehaviorEvent - - jakarta.faces.event.AjaxBehaviorEvent.AjaxBehaviorEvent -
- ( - UIComponent - , -
- Behavior - ) -
-
- Construct a new event object from the specified source component and Ajax behavior. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5281 - - AjaxBehaviorEvent - - jakarta.faces.event.AjaxBehaviorEvent.AjaxBehaviorEvent -
- ( - FacesContext - , -
- UIComponent - , -
- Behavior - ) -
-
- Construct a new event object from the Faces context, specified source component and - Ajax behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:5282 - - boolean - - jakarta.faces.event.AjaxBehaviorEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if this FacesListener is an instance of a the appropriate listener class - that this event supports. - - true - - -
-
-
- true -
- JSF:JAVADOC:5283 - - void - - jakarta.faces.event.AjaxBehaviorEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this event instance to the specified FacesListener, by whatever mechanism is - appropriate. Typically, this will be accomplished by calling an event processing method, and passing - this instance as a parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5284 - - void - - jakarta.faces.event.AjaxBehaviorListener.processAjaxBehavior -
- ( - AjaxBehaviorEvent - ) -
-
- Process the Ajax behavior event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5285 - - void - - jakarta.faces.event.AjaxBehaviorListener.processAjaxBehavior -
- ( - AjaxBehaviorEvent - ) - -
- throws - AbortProcessingException -
-
-
- if lifecycle processing should cease for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5286 - - BehaviorEvent - - jakarta.faces.event.BehaviorEvent.BehaviorEvent -
- ( - UIComponent - , -
- Behavior - ) -
-
- Construct a new event object from the specified source component and behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:5287 - - BehaviorEvent - - jakarta.faces.event.BehaviorEvent.BehaviorEvent -
- ( - FacesContext - , -
- UIComponent - , -
- Behavior - ) -
-
- Construct a new event object from the Faces context, specified source component and - behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:5288 - - Behavior - - jakarta.faces.event.BehaviorEvent.getBehavior -
-
-
- Return the source Behavior that sent this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5289 - - ComponentSystemEvent - - jakarta.faces.event.ComponentSystemEvent.ComponentSystemEvent -
- ( - UIComponent - ) -
-
- Pass the argument component to the superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5290 - - ComponentSystemEvent - - jakarta.faces.event.ComponentSystemEvent.ComponentSystemEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Pass the argument component to the superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5291 - - UIComponent - - jakarta.faces.event.ComponentSystemEvent.getComponent -
-
-
- the source UIComponent that sent this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5292 - - boolean - - jakarta.faces.event.ComponentSystemEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if the argument FacesListener is an instance of the appropriate listener - class that this event supports. The default implementation returns true if the listener is a - ComponentSystemEventListener or if super.isAppropriateListener() returns true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5293 - - void - - jakarta.faces.event.ComponentSystemEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this event instance to the specified FacesListener by calling the - superclass's processListener() implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5294 - - void - - jakarta.faces.event.ComponentSystemEventListener.processEvent -
- ( - ComponentSystemEvent - ) -
-
- When called, the listener can assume that any guarantees given in the javadoc for the - specific SystemEvent subclass are true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5295 - - void - - jakarta.faces.event.ComponentSystemEventListener.processEvent -
- ( - ComponentSystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- if lifecycle processing should cease for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5296 - - ExceptionQueuedEvent - - jakarta.faces.event.ExceptionQueuedEvent.ExceptionQueuedEvent -
- ( - ExceptionQueuedEventContext - ) -
-
- Instantiate a new ExceptionQueuedEvent that indicates the argument - ExceptionQueuedEventContext occurred. - - true - - -
-
-
- true -
- JSF:JAVADOC:5297 - - ExceptionQueuedEvent - - jakarta.faces.event.ExceptionQueuedEvent.ExceptionQueuedEvent -
- ( - FacesContext - , -
- ExceptionQueuedEventContext - ) -
-
- Instantiate a new ExceptionQueuedEvent that indicates the argument - ExceptionQueuedEventContext occurred. - - true - - -
-
-
- true -
- JSF:JAVADOC:5298 - - ExceptionQueuedEventContext - - jakarta.faces.event.ExceptionQueuedEvent.getContext -
-
-
- Return the ExceptionQueuedEventContext for this event instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5299 - - ExceptionQueuedEventContext - - jakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext -
- ( - FacesContext - , -
- Throwable - ) -
-
- Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable - just occurred. - - true - - -
-
-
- true -
- JSF:JAVADOC:5300 - - ExceptionQueuedEventContext - - jakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext -
- ( - FacesContext - , -
- Throwable - , -
- UIComponent - ) -
-
- Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable - just occurred, relevant to the argument component. - - true - - -
-
-
- true -
- JSF:JAVADOC:5301 - - ExceptionQueuedEventContext - - jakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext -
- ( - FacesContext - , -
- Throwable - , -
- UIComponent - , -
- PhaseId - ) -
-
- Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable - just occurred, relevant to the argument component, during the lifecycle phase phaseId. - - true - - -
-
-
- true -
- JSF:JAVADOC:5302 - - Map - - jakarta.faces.event.ExceptionQueuedEventContext.getAttributes -
-
-
- A Map of attributes relevant to the context of this ExceptionQueuedEvent. - - true - - -
-
-
- true -
- JSF:JAVADOC:5303 - - UIComponent - - jakarta.faces.event.ExceptionQueuedEventContext.getComponent -
-
-
- Return the UIComponent which was being processed when the exception was thrown. If none - or not available, this will be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5304 - - FacesContext - - jakarta.faces.event.ExceptionQueuedEventContext.getContext -
-
-
- The FacesContext for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5305 - - Throwable - - jakarta.faces.event.ExceptionQueuedEventContext.getException -
-
-
- Return the exception property. - - true - - -
-
-
- true -
- JSF:JAVADOC:5306 - - List - - jakarta.faces.event.ExceptionQueuedEventContext.getListenersForEventClass -
- ( - Class - ) -
-
- Return a List that contains a single entry, the jakarta.faces.context.ExceptionHandler - for the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5307 - - PhaseId - - jakarta.faces.event.ExceptionQueuedEventContext.getPhaseId -
-
-
- Return the PhaseId which was being processed when the exception was thrown. If none or - not available, this will be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5308 - - boolean - - jakarta.faces.event.ExceptionQueuedEventContext.inAfterPhase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5309 - - boolean - - jakarta.faces.event.ExceptionQueuedEventContext.inBeforePhase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5310 - - FacesEvent - - jakarta.faces.event.FacesEvent.FacesEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Construct a new event object from the Faces context and specified source component. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5311 - - FacesContext - - jakarta.faces.event.FacesEvent.getFacesContext -
-
-
- Get the Faces context. If the constructor was passed a FacesContext we return it, - otherwise we call FacesContext.getCurrentInstance() and return it. - - true - - -
-
-
- true -
- JSF:JAVADOC:5312 - - PhaseId - - jakarta.faces.event.FacesEvent.getPhaseId -
-
-
- Return the identifier of the request processing phase during which this event should be - delivered. Legal values are the singleton instances defined by the PhaseId class, including - PhaseId.ANY_PHASE, which is the default value. - - true - - -
-
-
- true -
- JSF:JAVADOC:5313 - - boolean - - jakarta.faces.event.FacesEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if this FacesListener is an instance of a listener class that this event - supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5314 - - void - - jakarta.faces.event.FacesEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is - appropriate. Typically, this will be accomplished by calling an event processing method, and passing - this FacesEvent as a paramter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5315 - - void - - jakarta.faces.event.FacesEvent.queue -
-
-
- Convenience method to queue this event for broadcast at the end of the current request - processing lifecycle phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:5316 - - void - - jakarta.faces.event.FacesEvent.setPhaseId -
- ( - PhaseId - ) -
-
- Set the PhaseId during which this event will be delivered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5317 - - Class - - jakarta.faces.event.ListenerFor.sourceClass -
-
-
- The kind of object that emits events of the type given by the value of the - #systemEventClass attribute. It is valid to have Jakarta Expression Language Expressions in the - value of this attribute, as long as the expression resolves to an instance of the expected type. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5318 - - Class - - jakarta.faces.event.ListenerFor.systemEventClass -
-
-
- The kind of system event for which this class will be installed as a listener. The - implementation only supports exact matches on the Class and must not honor subclass relationships. - It is valid to have EL Expressions in the value of this attribute, as long as the expression - resolves to an instance of the expected type. - - true - - -
-
-
- true -
- JSF:JAVADOC:5319 - - ListenerFor[] - - jakarta.faces.event.ListenersFor.value -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5320 - - boolean - - jakarta.faces.event.MethodExpressionActionListener.isTransient -
-
-
- If true, the Object implementing this interface must not participate in state saving or - restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5321 - - MethodExpressionActionListener - - jakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5322 - - MethodExpressionActionListener - - jakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener -
- ( - MethodExpression - ) -
-
- Construct a ValueChangeListener that contains a MethodExpression. To accomodate method - expression targets that take no arguments instead of taking an ActionEvent argument, the - implementation of this class must take the argument methodExpressionOneArg, extract its expression - string, and create another MethodExpression whose expected param types match those of a zero - argument method. The usage requirements for both of these MethodExpression instances are described - in #processAction. - - true - - -
-
-
- true -
- JSF:JAVADOC:5323 - - MethodExpressionActionListener - - jakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener -
- ( - MethodExpression - , -
- MethodExpression - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5324 - - void - - jakarta.faces.event.MethodExpressionActionListener.processAction -
- ( - ActionEvent - ) -
-
- Call through to the MethodExpression passed in our constructor. First, try to invoke - the MethodExpression passed to the constructor of this instance, passing the argument ActionEvent as - the argument. If a MethodNotFoundException is thrown, call to the zero argument MethodExpression - derived from the MethodExpression passed to the constructor of this instance. If that fails for any - reason, throw an AbortProcessingException, including the cause of the failure. - - true - - -
-
-
- true -
- JSF:JAVADOC:5325 - - void - - jakarta.faces.event.MethodExpressionActionListener.processAction -
- ( - ActionEvent - ) - -
- throws - AbortProcessingException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5326 - - void - - jakarta.faces.event.MethodExpressionActionListener.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Both MethodExpression instances described in the constructor must be restored. - - true - - -
-
-
- true -
- JSF:JAVADOC:5327 - - Object - - jakarta.faces.event.MethodExpressionActionListener.saveState -
- ( - FacesContext - ) -
-
- Both MethodExpression instances described in the constructor must be saved. - - true - - -
-
-
- true -
- JSF:JAVADOC:5328 - - void - - jakarta.faces.event.MethodExpressionActionListener.setTransient -
- ( - boolean - ) -
-
- Denotes whether or not the Object implementing this interface must or must not - participate in state saving or restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5329 - - boolean - - jakarta.faces.event.MethodExpressionValueChangeListener.isTransient -
-
-
- If true, the Object implementing this interface must not participate in state saving or - restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5330 - - MethodExpressionValueChangeListener - - - jakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5331 - - MethodExpressionValueChangeListener - - - jakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener -
- ( - MethodExpression - ) -
-
- Construct a ValueChangeListener that contains a MethodExpression.To accommodate method - expression targets that take no arguments instead of taking a ValueChangeEvent argument, the - implementation of this class must take the argument methodExpressionOneArg, extract its expression - string, and create another MethodExpression whose expected param types match those of a zero - argument method. The usage requirements for both of these MethodExpression instances are described - in #processValueChange. - - true - - -
-
-
- true -
- JSF:JAVADOC:5332 - - MethodExpressionValueChangeListener - - - jakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener -
- ( - MethodExpression - , -
- MethodExpression - ) -
-
- Construct a ValueChangeListener that contains a MethodExpression. - - true - - -
-
-
- true -
- JSF:JAVADOC:5333 - - void - - jakarta.faces.event.MethodExpressionValueChangeListener.processValueChange -
- ( - ValueChangeEvent - ) -
-
- Call through to the MethodExpression passed in our constructor. First, try to invoke - the MethodExpression passed to the constructor of this instance, passing the argument - ValueChangeEvent as the argument. If a MethodNotFoundException is thrown, call to the zero argument - MethodExpression derived from the MethodExpression passed to the constructor of this instance. If - that fails for any reason, throw an AbortProcessingException, including the cause of the failure. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5334 - - void - - jakarta.faces.event.MethodExpressionValueChangeListener.processValueChange -
- ( - ValueChangeEvent - ) - -
- throws - AbortProcessingException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5335 - - void - - jakarta.faces.event.MethodExpressionValueChangeListener.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Both MethodExpression instances described in the constructor must be restored. - - true - - -
-
-
- true -
- JSF:JAVADOC:5336 - - Object - - jakarta.faces.event.MethodExpressionValueChangeListener.saveState -
- ( - FacesContext - ) -
-
- Both MethodExpression instances described in the constructor must be saved. - - true - - -
-
-
- true -
- JSF:JAVADOC:5337 - - void - - jakarta.faces.event.MethodExpressionValueChangeListener.setTransient -
- ( - boolean - ) -
-
- Denotes whether or not the Object implementing this interface must or must not - participate in state saving or restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5338 - - String - - jakarta.faces.event.NamedEvent.shortName -
-
-
- The value of this annotation attribute is taken to be the short name for the - jakarta.faces.event.ComponentSystemEvent. If the value of this attribute is ommitted, the following - algorithm must be used by the code that processes this annotation to determine its value. Get the - unqualified class name (e.g., UserLoginEvent) Strip off the trailing "Event", if present (e.g., - UserLogin) Convert the first character to lower-case (e.g., userLogin) Prepend the package name to - the lower-cased name. - - true - - -
-
-
- true -
- JSF:JAVADOC:5339 - - FacesContext - - jakarta.faces.event.PhaseEvent.getFacesContext -
-
-
- Return the FacesContext for the request being processed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5340 - - PhaseId - - jakarta.faces.event.PhaseEvent.getPhaseId -
-
-
- Return the PhaseId representing the current request processing lifecycle phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:5341 - - PhaseEvent - - jakarta.faces.event.PhaseEvent.PhaseEvent -
- ( - FacesContext - , -
- PhaseId - , -
- Lifecycle - ) -
-
- Construct a new event object from the specified parameters. The specified Lifecycle - will be the source of this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5342 - - String - - jakarta.faces.event.PhaseId.getName -
-
-
- Return the name of this phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:5343 - - PhaseId - - jakarta.faces.event.PhaseId.phaseIdValueOf -
- ( - String - ) -
-
- Return a PhaseId representation of the arcument phase. - - true - - -
-
-
- true -
- JSF:JAVADOC:5344 - - void - - jakarta.faces.event.PhaseListener.afterPhase -
- ( - PhaseEvent - ) -
-
- Handle a notification that the processing for a particular phase has just been - completed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5345 - - void - - jakarta.faces.event.PhaseListener.beforePhase -
- ( - PhaseEvent - ) -
-
- Handle a notification that the processing for a particular phase of the request - processing lifecycle is about to begin. - - true - - -
-
-
- true -
- JSF:JAVADOC:5346 - - PhaseId - - jakarta.faces.event.PhaseListener.getPhaseId -
-
-
- Return the identifier of the request processing phase during which this listener is - interested in processing PhaseEvent events. Legal values are the singleton instances defined by the - PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all - standard phases. - - true - - -
-
-
- true -
- JSF:JAVADOC:5347 - - boolean - - jakarta.faces.event.PostAddToViewEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Returns true if and only if the argument listener is an instance of - SystemEventListener. - - true - - -
-
-
- true -
- JSF:JAVADOC:5348 - - PostAddToViewEvent - - jakarta.faces.event.PostAddToViewEvent.PostAddToViewEvent -
- ( - UIComponent - ) -
-
- Instantiate a new PostAddToViewEvent that indicates the argument component was just - added to the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5349 - - PostAddToViewEvent - - jakarta.faces.event.PostAddToViewEvent.PostAddToViewEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Instantiate a new PostAddToViewEvent that indicates the argument component was just - added to the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5350 - - Application - - jakarta.faces.event.PostConstructApplicationEvent.getApplication -
-
-
- The source Application that sent this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5351 - - PostConstructApplicationEvent - - jakarta.faces.event.PostConstructApplicationEvent.PostConstructApplicationEvent -
- ( - Application - ) -
-
- Constructs a new PostConstructApplicationEvent for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5352 - - PostConstructApplicationEvent - - jakarta.faces.event.PostConstructApplicationEvent.PostConstructApplicationEvent -
- ( - FacesContext - , -
- Application - ) -
-
- Constructs a new PostConstructApplicationEvent for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5353 - - ScopeContext - - jakarta.faces.event.PostConstructCustomScopeEvent.getContext -
-
-
- Return the ScopeContext for this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5354 - - PostConstructCustomScopeEvent - - jakarta.faces.event.PostConstructCustomScopeEvent.PostConstructCustomScopeEvent -
- ( - ScopeContext - ) -
-
- An instance of this event indicates that the custom scope enclosed within the argument - scopeContext was just created. - - true - - -
-
-
- true -
- JSF:JAVADOC:5355 - - PostConstructCustomScopeEvent - - jakarta.faces.event.PostConstructCustomScopeEvent.PostConstructCustomScopeEvent -
- ( - FacesContext - , -
- ScopeContext - ) -
-
- An instance of this event indicates that the custom scope enclosed within the argument - scopeContext was just created. - - true - - -
-
-
- true -
- JSF:JAVADOC:5356 - - PostConstructViewMapEvent - - jakarta.faces.event.PostConstructViewMapEvent.PostConstructViewMapEvent -
- ( - UIViewRoot - ) -
-
- Instantiate a new PostConstructViewMapEvent that indicates the argument root was just - associated with its view map. - - true - - -
-
-
- true -
- JSF:JAVADOC:5357 - - PostConstructViewMapEvent - - jakarta.faces.event.PostConstructViewMapEvent.PostConstructViewMapEvent -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Instantiate a new PostConstructViewMapEvent that indicates the argument root was just - associated with its view map. - - true - - -
-
-
- true -
- JSF:JAVADOC:5358 - - String - - jakarta.faces.event.PostKeepFlashValueEvent.getKey -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5359 - - PostKeepFlashValueEvent - - jakarta.faces.event.PostKeepFlashValueEvent.PostKeepFlashValueEvent -
- ( - String - ) -
-
- Instantiate a new PostKeepFlashValueEvent that indicates the argument key was just kept - in the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass - constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5360 - - PostKeepFlashValueEvent - - jakarta.faces.event.PostKeepFlashValueEvent.PostKeepFlashValueEvent -
- ( - FacesContext - , -
- String - ) -
-
- Instantiate a new PostKeepFlashValueEvent that indicates the argument key was just kept - in the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass - constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5361 - - String - - jakarta.faces.event.PostPutFlashValueEvent.getKey -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5362 - - PostPutFlashValueEvent - - jakarta.faces.event.PostPutFlashValueEvent.PostPutFlashValueEvent -
- ( - String - ) -
-
- Instantiate a new PostPutFlashValueEvent that indicates the argument key was just put - to the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass - constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5363 - - PostPutFlashValueEvent - - jakarta.faces.event.PostPutFlashValueEvent.PostPutFlashValueEvent -
- ( - FacesContext - , -
- String - ) -
-
- Instantiate a new PostPutFlashValueEvent that indicates the argument key was just put - to the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass - constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5364 - - PostRenderViewEvent - - jakarta.faces.event.PostRenderViewEvent.PostRenderViewEvent -
- ( - UIViewRoot - ) -
-
- Instantiate a new PostRenderViewEvent that indicates the argument root has just been - rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5365 - - PostRenderViewEvent - - jakarta.faces.event.PostRenderViewEvent.PostRenderViewEvent -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Instantiate a new PostRenderViewEvent that indicates the argument root has just been - rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5366 - - PostRestoreStateEvent - - jakarta.faces.event.PostRestoreStateEvent.PostRestoreStateEvent -
- ( - UIComponent - ) -
-
- Instantiate a new PostRestoreStateEvent that indicates the argument component just had - its state restored. - - true - - -
-
-
- true -
- JSF:JAVADOC:5367 - - PostRestoreStateEvent - - jakarta.faces.event.PostRestoreStateEvent.PostRestoreStateEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Instantiate a new PostRestoreStateEvent that indicates the argument component just had - its state restored. - - true - - -
-
-
- true -
- JSF:JAVADOC:5368 - - void - - jakarta.faces.event.PostRestoreStateEvent.setComponent -
- ( - UIComponent - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5369 - - PostValidateEvent - - jakarta.faces.event.PostValidateEvent.PostValidateEvent -
- ( - UIComponent - ) -
-
- Constructor - - true - - -
-
-
- true -
- JSF:JAVADOC:5370 - - PostValidateEvent - - jakarta.faces.event.PostValidateEvent.PostValidateEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Constructor - - true - - -
-
-
- true -
- JSF:JAVADOC:5371 - - PreClearFlashEvent - - jakarta.faces.event.PreClearFlashEvent.PreClearFlashEvent -
- ( - Map - ) -
-
- Instantiate a new PreClearFlashEvent that indicates the argument key was just put to - the flash. - - true - - -
-
-
- true -
- JSF:JAVADOC:5372 - - PreClearFlashEvent - - jakarta.faces.event.PreClearFlashEvent.PreClearFlashEvent -
- ( - FacesContext - , -
- Map - ) -
-
- Instantiate a new PreClearFlashEvent that indicates the argument key was just put to - the flash. - - true - - -
-
-
- true -
- JSF:JAVADOC:5373 - - Application - - jakarta.faces.event.PreDestroyApplicationEvent.getApplication -
-
-
- The source Application that sent this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5374 - - PreDestroyApplicationEvent - - jakarta.faces.event.PreDestroyApplicationEvent.PreDestroyApplicationEvent -
- ( - Application - ) -
-
- Constructs a new PreDestroyApplicationEvent for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5375 - - PreDestroyApplicationEvent - - jakarta.faces.event.PreDestroyApplicationEvent.PreDestroyApplicationEvent -
- ( - FacesContext - , -
- Application - ) -
-
- Constructs a new PreDestroyApplicationEvent for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5376 - - ScopeContext - - jakarta.faces.event.PreDestroyCustomScopeEvent.getContext -
-
-
- Return the ScopeContext for this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5377 - - PreDestroyCustomScopeEvent - - jakarta.faces.event.PreDestroyCustomScopeEvent.PreDestroyCustomScopeEvent -
- ( - ScopeContext - ) -
-
- An instance of this event indicates that the custom scope enclosed within the argument - scopeContext is about to end. - - true - - -
-
-
- true -
- JSF:JAVADOC:5378 - - PreDestroyCustomScopeEvent - - jakarta.faces.event.PreDestroyCustomScopeEvent.PreDestroyCustomScopeEvent -
- ( - FacesContext - , -
- ScopeContext - ) -
-
- An instance of this event indicates that the custom scope enclosed within the argument - scopeContext is about to end. - - true - - -
-
-
- true -
- JSF:JAVADOC:5379 - - PreDestroyViewMapEvent - - jakarta.faces.event.PreDestroyViewMapEvent.PreDestroyViewMapEvent -
- ( - UIViewRoot - ) -
-
- Instantiate a new ViewMapDestroydEvent that indicates the argument root just had its - associated view map destroyed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5380 - - PreDestroyViewMapEvent - - jakarta.faces.event.PreDestroyViewMapEvent.PreDestroyViewMapEvent -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Instantiate a new ViewMapDestroydEvent that indicates the argument root just had its - associated view map destroyed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5381 - - String - - jakarta.faces.event.PreRemoveFlashValueEvent.getKey -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5382 - - PreRemoveFlashValueEvent - - jakarta.faces.event.PreRemoveFlashValueEvent.PreRemoveFlashValueEvent -
- ( - String - ) -
-
- Instantiate a new PreRemoveFlashValueEvent that indicates the argument key will be - removed from the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the - superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5383 - - PreRemoveFlashValueEvent - - jakarta.faces.event.PreRemoveFlashValueEvent.PreRemoveFlashValueEvent -
- ( - FacesContext - , -
- String - ) -
-
- Instantiate a new PreRemoveFlashValueEvent that indicates the argument key will be - removed from the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the - superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5384 - - boolean - - jakarta.faces.event.PreRemoveFromViewEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Returns true if and only if the argument listener is an instance of - SystemEventListener. - - true - - -
-
-
- true -
- JSF:JAVADOC:5385 - - PreRemoveFromViewEvent - - jakarta.faces.event.PreRemoveFromViewEvent.PreRemoveFromViewEvent -
- ( - UIComponent - ) -
-
- Instantiate a new BeforeRemoveFromView that indicates the argument component is about - to be removed from the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5386 - - PreRemoveFromViewEvent - - jakarta.faces.event.PreRemoveFromViewEvent.PreRemoveFromViewEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Instantiate a new BeforeRemoveFromView that indicates the argument component is about - to be removed from the view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5387 - - PreRenderComponentEvent - - jakarta.faces.event.PreRenderComponentEvent.PreRenderComponentEvent -
- ( - UIComponent - ) -
-
- Instantiate a new PreRenderComponentEvent that indicates the argument component is - about to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5388 - - PreRenderComponentEvent - - jakarta.faces.event.PreRenderComponentEvent.PreRenderComponentEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Instantiate a new PreRenderComponentEvent that indicates the argument component is - about to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5389 - - PreRenderViewEvent - - jakarta.faces.event.PreRenderViewEvent.PreRenderViewEvent -
- ( - UIViewRoot - ) -
-
- Instantiate a new PreRenderViewEvent that indicates the argument root is about to be - rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5390 - - PreRenderViewEvent - - jakarta.faces.event.PreRenderViewEvent.PreRenderViewEvent -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Instantiate a new PreRenderViewEvent that indicates the argument root is about to be - rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5391 - - PreValidateEvent - - jakarta.faces.event.PreValidateEvent.PreValidateEvent -
- ( - UIComponent - ) -
-
- Constructor - - true - - -
-
-
- true -
- JSF:JAVADOC:5392 - - PreValidateEvent - - jakarta.faces.event.PreValidateEvent.PreValidateEvent -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Constructor - - true - - -
-
-
- true -
- JSF:JAVADOC:5393 - - Map - - jakarta.faces.event.ScopeContext.getScope -
-
-
- Return the scope itself, exposed as a Map. - - true - - -
-
-
- true -
- JSF:JAVADOC:5394 - - String - - jakarta.faces.event.ScopeContext.getScopeName -
-
-
- Return the name of this custom scope. - - true - - -
-
-
- true -
- JSF:JAVADOC:5395 - - ScopeContext - - jakarta.faces.event.ScopeContext.ScopeContext -
- ( - String - , -
- Map - ) -
-
- Construct this structure with the supplied arguments. - - true - - -
-
-
- true -
- JSF:JAVADOC:5396 - - FacesContext - - jakarta.faces.event.SystemEvent.getFacesContext -
-
-
- Get the Faces context. If the constructor was passed a FacesContext we return it, - otherwise we call FacesContext.getCurrentInstance() and return it. - - true - - -
-
-
- true -
- JSF:JAVADOC:5397 - - boolean - - jakarta.faces.event.SystemEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if this FacesListener is an instance of a the appropriate listener class - that this event supports. The default implementation returns true if the listener is a - ComponentSystemEventListener. - - true - - -
-
-
- true -
- JSF:JAVADOC:5398 - - void - - jakarta.faces.event.SystemEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this event instance to the specified FacesListener, by whatever mechanism is - appropriate. Typically, this will be accomplished by calling an event processing method, and passing - this instance as a parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5399 - - SystemEvent - - jakarta.faces.event.SystemEvent.SystemEvent -
- ( - Object - ) -
-
- Pass the argument source to the superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5400 - - SystemEvent - - jakarta.faces.event.SystemEvent.SystemEvent -
- ( - FacesContext - , -
- Object - ) -
-
- Pass the argument source to the superclass constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5401 - - boolean - - jakarta.faces.event.SystemEventListener.isListenerForSource -
- ( - Object - ) -
-
- This method must return true if and only if this listener instance is interested in - receiving events from the instance referenced by the source parameter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5402 - - void - - jakarta.faces.event.SystemEventListener.processEvent -
- ( - SystemEvent - ) -
-
- When called, the listener can assume that any guarantees given in the javadoc for the - specific SystemEvent subclass are true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5403 - - void - - jakarta.faces.event.SystemEventListener.processEvent -
- ( - SystemEvent - ) - -
- throws - AbortProcessingException -
-
-
- if lifecycle processing should cease for this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5404 - - List - - jakarta.faces.event.SystemEventListenerHolder.getListenersForEventClass -
- ( - Class - ) -
-
- Return a List of SystemEventListener instances that have been installed into the class - implementing this interface. - - true - - -
-
-
- true -
- JSF:JAVADOC:5405 - - Object - - jakarta.faces.event.ValueChangeEvent.getNewValue -
-
-
- Return the current local value of the source UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:5406 - - Object - - jakarta.faces.event.ValueChangeEvent.getOldValue -
-
-
- Return the previous local value of the source UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:5407 - - boolean - - jakarta.faces.event.ValueChangeEvent.isAppropriateListener -
- ( - FacesListener - ) -
-
- Return true if this FacesListener is an instance of a listener class that this event - supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5408 - - void - - jakarta.faces.event.ValueChangeEvent.processListener -
- ( - FacesListener - ) -
-
- Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is - appropriate. Typically, this will be accomplished by calling an event processing method, and passing - this FacesEvent as a paramter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5409 - - ValueChangeEvent - - jakarta.faces.event.ValueChangeEvent.ValueChangeEvent -
- ( - UIComponent - , -
- Object - , -
- Object - ) -
-
- Construct a new event object from the specified source component, old value, and new - value. The default PhaseId for this event is PhaseId#ANY_PHASE. - - true - - -
-
-
- true -
- JSF:JAVADOC:5410 - - ValueChangeEvent - - jakarta.faces.event.ValueChangeEvent.ValueChangeEvent -
- ( - FacesContext - , -
- UIComponent - , -
- Object - , -
- Object - ) -
-
- Construct a new event object from the Faces context, specified source component, old - value and new value. The default PhaseId for this event is PhaseId#ANY_PHASE. - - true - - -
-
-
- true -
- JSF:JAVADOC:5411 - - void - - jakarta.faces.event.ValueChangeListener.processValueChange -
- ( - ValueChangeEvent - ) -
-
- Invoked when the value change described by the specified ValueChangeEvent occurs. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5412 - - void - - jakarta.faces.event.ValueChangeListener.processValueChange -
- ( - ValueChangeEvent - ) - -
- throws - AbortProcessingException -
-
-
- Signal the Jakarta Faces implementation that no further processing on the current event - should be performed - - true - - -
-
-
- true -
- JSF:JAVADOC:5413 - - boolean - - jakarta.faces.event.WebsocketEvent.equals -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5414 - - String - - jakarta.faces.event.WebsocketEvent.getChannel -
-
-
- Returns the . - - true - - -
-
-
- true -
- JSF:JAVADOC:5415 - - CloseCode - - jakarta.faces.event.WebsocketEvent.getCloseCode -
-
-
- Returns the close code. If this returns null, then it was Opened. If this returns - non-null, then it was Closed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5416 - - Serializable - - jakarta.faces.event.WebsocketEvent.getUser -
-
-
- Returns the , if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5417 - - int - - jakarta.faces.event.WebsocketEvent.hashCode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5418 - - String - - jakarta.faces.event.WebsocketEvent.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5419 - - WebsocketEvent - - jakarta.faces.event.WebsocketEvent.WebsocketEvent -
- ( - String - , -
- Serializable - , -
- CloseCode - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5420 - - Literal - - jakarta.faces.event.WebsocketEvent.Closed.Literal.WebsocketEvent.Closed.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5421 - - Literal - - jakarta.faces.event.WebsocketEvent.Opened.Literal.WebsocketEvent.Opened.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5422 - - Flow - - jakarta.faces.flow.Flow.Flow -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5423 - - String - - jakarta.faces.flow.Flow.getClientWindowFlowId -
- ( - ClientWindow - ) -
-
- Get the ClientWindow's id and append "_" and the return from #getId. Return the result. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5424 - - String - - jakarta.faces.flow.Flow.getDefiningDocumentId -
-
-
- Return the immutable application unique identifier for the document in which the - argument flow is defined. - - true - - -
-
-
- true -
- JSF:JAVADOC:5425 - - MethodExpression - - jakarta.faces.flow.Flow.getFinalizer -
-
-
- Return the MethodExpression that must be called by the runtime as the last thing that - happens before exiting this flow. Any FlowScoped beans declared for this flow must remain in scope - until after control returns from the method referenced by this MethodExpression. - - true - - -
-
-
- true -
- JSF:JAVADOC:5426 - - FlowCallNode - - jakarta.faces.flow.Flow.getFlowCall -
- ( - Flow - ) -
-
- Return the FlowCallNode that represents calling the targetFlow from this flow, or null - if targetFlow cannot be reached from this flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5427 - - Map - - jakarta.faces.flow.Flow.getFlowCalls -
-
-
- Return an immutable data structure containing all the flow call nodes declared for this - flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5428 - - String - - jakarta.faces.flow.Flow.getId -
-
-
- Return the immutable id for this Flow. This must be unique within the defining document - (such as an Application Configuration Resources file), but need not be unique within the entire - application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5429 - - Map - - jakarta.faces.flow.Flow.getInboundParameters -
-
-
- Return an immutable data structure containing the inbound parameters that have been - declared for this flow. See FlowHandler#transition for the specification of how these parameters are - used. Inbound parameters are associated with a specific flow instance, while outbound parameters are - associated with a FlowCallNode that causes the transition to a new flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5430 - - MethodExpression - - jakarta.faces.flow.Flow.getInitializer -
-
-
- Return the MethodExpression that must be called by the runtime immediately after - activating any FlowScoped beans declared for this flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5431 - - List - - jakarta.faces.flow.Flow.getMethodCalls -
-
-
- Return an immutable data structure containing all the method call nodes declared for - this flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5432 - - Map - - jakarta.faces.flow.Flow.getNavigationCases -
-
-
- Return an unmodifiable view of the navigation cases within this flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5433 - - FlowNode - - jakarta.faces.flow.Flow.getNode -
- ( - String - ) -
-
- Return the generic FlowNode by id, or null if not found. - - true - - -
-
-
- true -
- JSF:JAVADOC:5434 - - Map - - jakarta.faces.flow.Flow.getReturns -
-
-
- Return an immutable data structure containing all of the return nodes declared for this - flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5435 - - String - - jakarta.faces.flow.Flow.getStartNodeId -
-
-
- Return the immutable id for the default node that should be activated when this flow is - entered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5436 - - Map - - jakarta.faces.flow.Flow.getSwitches -
-
-
- Return an immutable data structure containing all of the switch nodes declared for this - flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5437 - - List - - jakarta.faces.flow.Flow.getViews -
-
-
- Return an immutable data structure containing all of the view nodes declared for this - flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5438 - - FlowCallNode - - jakarta.faces.flow.FlowCallNode.FlowCallNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5439 - - String - - jakarta.faces.flow.FlowCallNode.getCalledFlowDocumentId -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5440 - - String - - jakarta.faces.flow.FlowCallNode.getCalledFlowId -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5441 - - Map - - jakarta.faces.flow.FlowCallNode.getOutboundParameters -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5442 - - void - - jakarta.faces.flow.FlowHandler.addFlow -
- ( - FacesContext - , -
- Flow - ) -
-
- Add the argument Flow to the collection of Flows known to the current application. The - implementation must be thread safe. - - true - - -
-
-
- true -
- JSF:JAVADOC:5443 - - void - - jakarta.faces.flow.FlowHandler.clientWindowTransition -
- ( - FacesContext - ) -
-
- Allow for flow transitions in the case of components rendered by the renderers from - component-family jakarta.faces.OutcomeTarget. These transitions must happen at the front of the - request processing lifecycle due to the HTTP GET based nature of such components. Therefore, this - method is called from the restore view phase of the lifecycle. Let flowId be the value in the - request parameter map for the parameter whose name is given by the value of - #FLOW_ID_REQUEST_PARAM_NAME. Let toFlowDocumentId be the value in the request parameter map for the - paramater whose name is given by the value of #TO_FLOW_DOCUMENT_ID_REQUEST_PARAM_NAME. If - toFlowDocumentId is null, take no action and return. Otherwise, let sourceFlow be the return from - #getCurrentFlow(jakarta.faces.context.FacesContext). A null value indicates there is no current - flow, which will be the case if this navigation is trying to enter a flow. If flowId is not null and - toFlowDocumentId is not equal to the value of #NULL_FLOW, let targetFlow be the result of calling - #getFlow(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), passing - toFlowDocumentId and flowId as the last two arguments, respectively. If the result is non-null, let - flowCallNode be the return from calling Flow#getFlowCall on the sourceFlow, passing targetFlow as - the argument. Otherwise, targetFlow and flowCallNode must remain null, indicating that this is a - flow return. Call FacesContext#getViewRoot() and let toViewId be the the return from calling - jakarta.faces.component.UIViewRoot#getViewId on it. Call, #transition, passing the arguments - gathered in the preceding algorithm. - - true - - -
-
-
- true -
- JSF:JAVADOC:5444 - - FlowHandler - - jakarta.faces.flow.FlowHandler.FlowHandler -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5445 - - Flow - - jakarta.faces.flow.FlowHandler.getCurrentFlow -
- ( - FacesContext - ) -
-
- Return the currently active Flow for the argument FacesContext, or null if no flow is - active. A Flow must always be associated with exactly one jakarta.faces.lifecycle.ClientWindow, but - a ClientWindow may have multiple Flows. If #pushReturnMode had been called with true as the argument - before invoking this method, return the preceding flow on the stack instead of the actual current - flow, or null if there is no preceding flow. Otherwise, return the current flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5446 - - Flow - - jakarta.faces.flow.FlowHandler.getCurrentFlow -
-
-
- Convenience overload that calls FacesContext#getCurrentInstance() and then calls - through to #getCurrentFlow(jakarta.faces.context.FacesContext). - - true - - -
-
-
- true -
- JSF:JAVADOC:5447 - - Map - - jakarta.faces.flow.FlowHandler.getCurrentFlowScope -
-
-
- Return the Map that backs the #{flowScope} Jakarta Expression Language implicit object - or null if no flow is currently active. - - true - - -
-
-
- true -
- JSF:JAVADOC:5448 - - Flow - - jakarta.faces.flow.FlowHandler.getFlow -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Return the Flow whose id is equivalent to the argument id, within the scope of the - argument definingDocument. - - true - - -
-
-
- true -
- JSF:JAVADOC:5449 - - String - - jakarta.faces.flow.FlowHandler.getLastDisplayedViewId -
- ( - FacesContext - ) -
-
- Return the last displayed viewId for the current flow, as returned by - #getCurrentFlow(jakarta.faces.context.FacesContext), or null if there is no current flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5450 - - boolean - - jakarta.faces.flow.FlowHandler.isActive -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Return true if and only if the flow referenced by the argument definingDocument and id - is currently active. - - true - - -
-
-
- true -
- JSF:JAVADOC:5451 - - void - - jakarta.faces.flow.FlowHandler.popReturnMode -
- ( - FacesContext - ) -
-
- Enable the correct handling of navigation when processing a return node. The default - jakarta.faces.application.NavigationHandler specification requires calling this method from a - finally block, immediately attempting to process the navigation rules in the context of a flow - return. - - true - - -
-
-
- true -
- JSF:JAVADOC:5452 - - void - - jakarta.faces.flow.FlowHandler.pushReturnMode -
- ( - FacesContext - ) -
-
- Enable the correct handling of navigation when processing a return node. The default - jakarta.faces.application.NavigationHandler specification requires calling this method before - processing the navigation rules for the flow return, and calling #popReturnMode, from a finally - block, immediately afterward. - - true - - -
-
-
- true -
- JSF:JAVADOC:5453 - - void - - jakarta.faces.flow.FlowHandler.transition -
- ( - FacesContext - , -
- Flow - , -
- Flow - , -
- FlowCallNode - , -
- String - ) -
-
- Perform a transition in the flow graph for the current user's - jakarta.faces.lifecycle.ClientWindow. Obtain references to the Flow instances corresponding to the - origin and destination arguments. If the origin Flow is equal to the destination Flow, take no - action and return null. Otherwise, if the outboundCallNode argument is non-null save aside the - outbound parameters. For discussion evaluatedParams is a data structure that stores the evaluated - values of any outbound parameters. It is necessary to evaluate these values before popping any flow - scopes because the values may refer to scoped instances that need to be passed to the target flow, - but will not be available once the new scope is activated. Save aside the outbound parameters using - the following algorithm. If the outboundParameters property of outboundCallNode is non-null and not - empty, and the inboundParameters property of the target flow is non-null and not empty, for each - entry in the outbound parameters whose name matches an entry in the inbound parameters, evaluate the - value of the parameter, and put the evaluated value into evaluatedParams under the corresponding - name. Otherwise, consider evaluatedParams to be empty. If the destination Flow is a sub-flow of the - origin Flow push the destination Flow onto the flow data structure and return the destination Flow. - Otherwise, pop the current Flow from the flow data structure. If the destination Flow is non-null, - make the destination Flow the current flow, pushing it onto the data structure. If evaluatedParams - is not empty, for each entry, find the corresponding parameter in the target flow's inbound - parameters and call its setValue method, passing the value from evaluatedParams. - - true - - -
-
-
- true -
- JSF:JAVADOC:5454 - - FlowHandler - - jakarta.faces.flow.FlowHandlerFactory.createFlowHandler -
- ( - FacesContext - ) -
-
- Create the singleton instance of FlowHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5455 - - FlowHandlerFactory - - jakarta.faces.flow.FlowHandlerFactory.FlowHandlerFactory -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5456 - - FlowHandler - - jakarta.faces.flow.FlowHandlerFactoryWrapper.createFlowHandler -
- ( - FacesContext - ) -
-
- Create the singleton instance of FlowHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5457 - - FlowHandlerFactoryWrapper - - jakarta.faces.flow.FlowHandlerFactoryWrapper.FlowHandlerFactoryWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5458 - - FlowHandlerFactoryWrapper - - jakarta.faces.flow.FlowHandlerFactoryWrapper.FlowHandlerFactoryWrapper -
- ( - FlowHandlerFactory - ) -
-
- If this flow handler factory has been decorated, the implementation doing the - decorating should push the implementation being wrapped to this constructor. The #getWrapped() will - then return the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5459 - - FlowHandlerFactory - - jakarta.faces.flow.FlowHandlerFactoryWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5460 - - FlowNode - - jakarta.faces.flow.FlowNode.FlowNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5461 - - String - - jakarta.faces.flow.FlowNode.getId -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5462 - - String - - jakarta.faces.flow.FlowScoped.definingDocumentId -
-
-
- If not empty, declare the defining document id within which the Flow referenced by - #value is unique. If empty the, the runtime assumes that all flow ids are unique within the scope of - the application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5463 - - String - - jakarta.faces.flow.FlowScoped.value -
-
-
- Must be equivalent to the Flow#getId of a defined flow for this application. - - true - - -
-
-
- true -
- JSF:JAVADOC:5464 - - MethodExpression - - jakarta.faces.flow.MethodCallNode.getMethodExpression -
-
-
- Return the MethodExpression to be invoked to when control passes to this node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5465 - - ValueExpression - - jakarta.faces.flow.MethodCallNode.getOutcome -
-
-
- Return the outcome to be used in the event of a null return from the method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5466 - - List - - jakarta.faces.flow.MethodCallNode.getParameters -
-
-
- Return the parameters to be passed to the method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5467 - - MethodCallNode - - jakarta.faces.flow.MethodCallNode.MethodCallNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5468 - - String - - jakarta.faces.flow.Parameter.getName -
-
-
- Return the name of the parameter - - true - - -
-
-
- true -
- JSF:JAVADOC:5469 - - ValueExpression - - jakarta.faces.flow.Parameter.getValue -
-
-
- Return a ValueExpression for the value of the parameter. Depending on the context, this - expression may only ever be evaluated in a "get" operation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5470 - - Parameter - - jakarta.faces.flow.Parameter.Parameter -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5471 - - String - - jakarta.faces.flow.ReturnNode.getFromOutcome -
- ( - FacesContext - ) -
-
- Return the fromOutcome to be used when control passes to this return node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5472 - - ReturnNode - - jakarta.faces.flow.ReturnNode.ReturnNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5473 - - Boolean - - jakarta.faces.flow.SwitchCase.getCondition -
- ( - FacesContext - ) -
-
- Return true if this case should be taken, false otherwise. - - true - - -
-
-
- true -
- JSF:JAVADOC:5474 - - String - - jakarta.faces.flow.SwitchCase.getFromOutcome -
-
-
- Return the outcome to be used if #getCondition return true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5475 - - SwitchCase - - jakarta.faces.flow.SwitchCase.SwitchCase -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5476 - - List - - jakarta.faces.flow.SwitchNode.getCases -
-
-
- Return the cases in this switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5477 - - String - - jakarta.faces.flow.SwitchNode.getDefaultOutcome -
- ( - FacesContext - ) -
-
- Return the default outcome in this switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5478 - - SwitchNode - - jakarta.faces.flow.SwitchNode.SwitchNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5479 - - String - - jakarta.faces.flow.ViewNode.getVdlDocumentId -
-
-
- Return the immutable VDL document id for this view node. This is normally the path to - the VDL page that defines this view node. This must be unique within the flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5480 - - ViewNode - - jakarta.faces.flow.ViewNode.ViewNode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5481 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.finalizer -
- ( - MethodExpression - ) -
-
- A MethodExpression that will be invoked when the flow is exited. - - true - - -
-
-
- true -
- JSF:JAVADOC:5482 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.finalizer -
- ( - String - ) -
-
- A MethodExpression that will be invoked when the flow is exited. - - true - - -
-
-
- true -
- JSF:JAVADOC:5483 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.FlowBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5484 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowBuilder.flowCallNode -
- ( - String - ) -
-
- Define a flow call node. This node will cause the specified flow to be called, passing - parameters if necessary. - - true - - -
-
-
- true -
- JSF:JAVADOC:5485 - - Flow - - jakarta.faces.flow.builder.FlowBuilder.getFlow -
-
-
- Called as the last step in flow definition, this method must perform any implementation - specific initialization and return the built Flow. If called more than one time during a given flow - building process, the second and subsequent invocations must take no action and return the built - flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5486 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.id -
- ( - String - , -
- String - ) -
-
- Set the defining document id and flow id of this flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5487 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.inboundParameter -
- ( - String - , -
- ValueExpression - ) -
-
- A parameter that will be populated with the value from a correspondingly named outbound - parameter from another flow when this flow is entered from that flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5488 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.inboundParameter -
- ( - String - , -
- String - ) -
-
- A parameter that will be populated with the value from a correspondingly named outbound - parameter from another flow when this flow is entered from that flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5489 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.initializer -
- ( - MethodExpression - ) -
-
- A MethodExpression that will be invoked when the flow is entered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5490 - - FlowBuilder - - jakarta.faces.flow.builder.FlowBuilder.initializer -
- ( - String - ) -
-
- A MethodExpression that will be invoked when the flow is entered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5491 - - MethodCallBuilder - - jakarta.faces.flow.builder.FlowBuilder.methodCallNode -
- ( - String - ) -
-
- Define a method call node. This node will cause the specified method to be invoked, - passing parameters if necessary. The return from the method is used as the outcome for where to go - next in the flow. If the method is a void method, the default outcome is used. - - true - - -
-
-
- true -
- JSF:JAVADOC:5492 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.FlowBuilder.navigationCase -
-
-
- Define a particular combination of conditions that must match for this case to be - executed, and the view id of the component tree that should be selected next. - - true - - -
-
-
- true -
- JSF:JAVADOC:5493 - - ReturnBuilder - - jakarta.faces.flow.builder.FlowBuilder.returnNode -
- ( - String - ) -
-
- Define a return node. This node will cause the specified outcome to be returned to the - calling flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5494 - - SwitchBuilder - - jakarta.faces.flow.builder.FlowBuilder.switchNode -
- ( - String - ) -
-
- Define a particular list of cases that will be inspected in the order they are defined - to determine where to go next in the flow graph. If none of the cases match, the outcome from the - default case is chosen. - - true - - -
-
-
- true -
- JSF:JAVADOC:5495 - - ViewBuilder - - jakarta.faces.flow.builder.FlowBuilder.viewNode -
- ( - String - , -
- String - ) -
-
- Define a view node in a flow graph. - - true - - -
-
-
- true -
- JSF:JAVADOC:5496 - - Literal - - jakarta.faces.flow.builder.FlowBuilderParameter.Literal.FlowBuilderParameter.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5497 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowCallBuilder.FlowCallBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5498 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowCallBuilder.flowReference -
- ( - String - , -
- String - ) -
-
- Define the flow reference of the called flow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5499 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowCallBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5500 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowCallBuilder.outboundParameter -
- ( - String - , -
- ValueExpression - ) -
-
- Define an outbound parameter for the flow call. - - true - - -
-
-
- true -
- JSF:JAVADOC:5501 - - FlowCallBuilder - - jakarta.faces.flow.builder.FlowCallBuilder.outboundParameter -
- ( - String - , -
- String - ) -
-
- Define an outbound parameter for the flow call. - - true - - -
-
-
- true -
- JSF:JAVADOC:5502 - - Literal - - jakarta.faces.flow.builder.FlowDefinition.Literal.FlowDefinition.Literal -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5503 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome -
- ( - String - ) -
-
- If the method is a void method, or the method returns null, this can be used to specify - what value should be passed to runtime when the method returns. - - true - - -
-
-
- true -
- JSF:JAVADOC:5504 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.defaultOutcome -
- ( - ValueExpression - ) -
-
- If the method is a void method, or the method returns null, this can be used to specify - what value should be passed to runtime when the method returns. - - true - - -
-
-
- true -
- JSF:JAVADOC:5505 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.expression -
- ( - MethodExpression - ) -
-
- Set the method expression of this method call node. The method signature of the - argument methodExpression must match the number and type of the parameters passed in the #parameters - method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5506 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.expression -
- ( - String - ) -
-
- Set the method expression of this method call node. The method signature of the - argument methodExpression must match the number and type of the parameters passed in the #parameters - method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5507 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.expression -
- ( - String - , -
- Class[] - ) -
-
- Set the method expression of this method call node. The method signature of the - argument methodExpression must match the number and type of the parameters passed in the #parameters - method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5508 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5509 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.MethodCallBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5510 - - MethodCallBuilder - - jakarta.faces.flow.builder.MethodCallBuilder.parameters -
- ( - List - ) -
-
- Set the parameters of the method call node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5511 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.condition -
- ( - String - ) -
-
- Set the if of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5512 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.condition -
- ( - ValueExpression - ) -
-
- Set the if of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5513 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.fromAction -
- ( - String - ) -
-
- Set the from-action of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5514 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.fromOutcome -
- ( - String - ) -
-
- Set the from-outcome of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5515 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.fromViewId -
- ( - String - ) -
-
- Set the from-view-id of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5516 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.NavigationCaseBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5517 - - RedirectBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.redirect -
-
-
- Create a redirect within this navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5518 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.toFlowDocumentId -
- ( - String - ) -
-
- Set the to-flow-document-id of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5519 - - NavigationCaseBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.toViewId -
- ( - String - ) -
-
- Set the to-view-id of the current navigation case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5520 - - RedirectBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.RedirectBuilder.includeViewParams -
-
-
- Indicates the current redirect should include view parameters. - - true - - -
-
-
- true -
- JSF:JAVADOC:5521 - - RedirectBuilder - - - jakarta.faces.flow.builder.NavigationCaseBuilder.RedirectBuilder.NavigationCaseBuilder.RedirectBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5522 - - RedirectBuilder - - jakarta.faces.flow.builder.NavigationCaseBuilder.RedirectBuilder.parameter -
- ( - String - , -
- String - ) -
-
- Add a parameter to the redirect. - - true - - -
-
-
- true -
- JSF:JAVADOC:5523 - - NodeBuilder - - jakarta.faces.flow.builder.NodeBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5524 - - ReturnBuilder - - jakarta.faces.flow.builder.ReturnBuilder.fromOutcome -
- ( - String - ) -
-
- Set the outcome of the current return node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5525 - - ReturnBuilder - - jakarta.faces.flow.builder.ReturnBuilder.fromOutcome -
- ( - ValueExpression - ) -
-
- Set the outcome of the current return node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5526 - - ReturnBuilder - - jakarta.faces.flow.builder.ReturnBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5527 - - ReturnBuilder - - jakarta.faces.flow.builder.ReturnBuilder.ReturnBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5528 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchBuilder.defaultOutcome -
- ( - String - ) -
-
- Set the default outcome of the current switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5529 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchBuilder.defaultOutcome -
- ( - ValueExpression - ) -
-
- Set the default outcome of the current switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5530 - - SwitchBuilder - - jakarta.faces.flow.builder.SwitchBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5531 - - SwitchBuilder - - jakarta.faces.flow.builder.SwitchBuilder.SwitchBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5532 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchBuilder.switchCase -
-
-
- Create a switch case in the current switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5533 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchCaseBuilder.condition -
- ( - ValueExpression - ) -
-
- Set the if in the previously created switch case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5534 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchCaseBuilder.condition -
- ( - String - ) -
-
- Set the if in the previously created switch case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5535 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchCaseBuilder.fromOutcome -
- ( - String - ) -
-
- Set the outcome in the previously created switch case. - - true - - -
-
-
- true -
- JSF:JAVADOC:5536 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchCaseBuilder.switchCase -
-
-
- Create a new case in the current switch. - - true - - -
-
-
- true -
- JSF:JAVADOC:5537 - - SwitchCaseBuilder - - jakarta.faces.flow.builder.SwitchCaseBuilder.SwitchCaseBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5538 - - ViewBuilder - - jakarta.faces.flow.builder.ViewBuilder.markAsStartNode -
-
-
- Mark this node as the start node in the flow. Any other node that had been marked as - the start node will no longer be the start node. - - true - - -
-
-
- true -
- JSF:JAVADOC:5539 - - ViewBuilder - - jakarta.faces.flow.builder.ViewBuilder.ViewBuilder -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5540 - - ClientWindow - - jakarta.faces.lifecycle.ClientWindow.ClientWindow -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5541 - - void - - jakarta.faces.lifecycle.ClientWindow.decode -
- ( - FacesContext - ) -
-
- The implementation is responsible for examining the incoming request and extracting the - value that must be returned from the #getId method. If #CLIENT_WINDOW_MODE_PARAM_NAME is "none" this - method must not be invoked. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first - look for a request parameter under the name given by the value of - jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a - request parameter under the name given by the value of - jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate - an id that uniquely identifies this ClientWindow within the scope of the current session. This value - must be made available to return from the #getId method. The value must be suitable for inclusion as - a hidden field or query parameter. If a value is found, decrypt it using the key from the session - and make it available for return from #getId. - - true - - -
-
-
- true -
- JSF:JAVADOC:5542 - - void - - jakarta.faces.lifecycle.ClientWindow.disableClientWindowRenderMode -
- ( - FacesContext - ) -
-
- Components that permit per-use disabling of the appending of the ClientWindow in - generated URLs must call this method first before rendering those URLs. The caller must call - #enableClientWindowRenderMode(jakarta.faces.context.FacesContext) from a finally block after - rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs - that cause a GET request must append the ClientWindow by default. This is specified as a static - method because callsites need to access it without having access to an actual ClientWindow instance. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5543 - - void - - jakarta.faces.lifecycle.ClientWindow.enableClientWindowRenderMode -
- ( - FacesContext - ) -
-
- Components that permit per-use disabling of the appending of the ClientWindow in - generated URLs must call this method first after rendering those URLs. If - #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET - request must append the ClientWindow by default. This is specified as a static method because - callsites need to access it without having access to an actual ClientWindow instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5544 - - String - - jakarta.faces.lifecycle.ClientWindow.getId -
-
-
- Return a String value that uniquely identifies this ClientWindow within the scope of - the current session. See #decode for the specification of how to derive this value. - - true - - -
-
-
- true -
- JSF:JAVADOC:5545 - - Map - - jakarta.faces.lifecycle.ClientWindow.getQueryURLParameters -
- ( - FacesContext - ) -
-
- This method will be called whenever a URL is generated by the runtime where client - window related parameters need to be inserted into the URL. This guarantees custom ClientWindow - implementations that they will have the opportunity to insert any additional client window specific - information in any case where a URL is generated, such as the rendering of hyperlinks. The returned - map must be immutable. The default implementation of this method returns the empty map. - - true - - -
-
-
- true -
- JSF:JAVADOC:5546 - - boolean - - jakarta.faces.lifecycle.ClientWindow.isClientWindowRenderModeEnabled -
- ( - FacesContext - ) -
-
- Methods that append the ClientWindow to generated URLs must call this method to see if - they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all - generated URLs that cause a GET request must append the ClientWindow by default. This is specified - as a static method because callsites need to access it without having access to an actual - ClientWindow instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5547 - - ClientWindowFactory - - jakarta.faces.lifecycle.ClientWindowFactory.ClientWindowFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5548 - - ClientWindowFactory - - jakarta.faces.lifecycle.ClientWindowFactory.ClientWindowFactory -
- ( - ClientWindowFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5549 - - ClientWindow - - jakarta.faces.lifecycle.ClientWindowFactory.getClientWindow -
- ( - FacesContext - ) -
-
- The implementation is responsible for creating the ClientWindow instance for this - request. If ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME is "none" or unspecified, this method must - return null. If ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must return a - ClientWindow instance that implements the url-mode semantics described in ClientWindow. - - true - - -
-
-
- true -
- JSF:JAVADOC:5550 - - ClientWindowFactory - - jakarta.faces.lifecycle.ClientWindowFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5551 - - ClientWindowWrapper - - jakarta.faces.lifecycle.ClientWindowWrapper.ClientWindowWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5552 - - ClientWindowWrapper - - jakarta.faces.lifecycle.ClientWindowWrapper.ClientWindowWrapper -
- ( - ClientWindow - ) -
-
- If this client window has been decorated, the implementation doing the decorating - should push the implementation being wrapped to this constructor. The #getWrapped() will then return - the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5553 - - void - - jakarta.faces.lifecycle.ClientWindowWrapper.decode -
- ( - FacesContext - ) -
-
- The implementation is responsible for examining the incoming request and extracting the - value that must be returned from the #getId method. If #CLIENT_WINDOW_MODE_PARAM_NAME is "none" this - method must not be invoked. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first - look for a request parameter under the name given by the value of - jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a - request parameter under the name given by the value of - jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate - an id that uniquely identifies this ClientWindow within the scope of the current session. This value - must be made available to return from the #getId method. The value must be suitable for inclusion as - a hidden field or query parameter. If a value is found, decrypt it using the key from the session - and make it available for return from #getId. - - true - - -
-
-
- true -
- JSF:JAVADOC:5554 - - void - - jakarta.faces.lifecycle.ClientWindowWrapper.disableClientWindowRenderMode -
- ( - FacesContext - ) -
-
- Components that permit per-use disabling of the appending of the ClientWindow in - generated URLs must call this method first before rendering those URLs. The caller must call - #enableClientWindowRenderMode(jakarta.faces.context.FacesContext) from a finally block after - rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs - that cause a GET request must append the ClientWindow by default. This is specified as a static - method because callsites need to access it without having access to an actual ClientWindow instance. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5555 - - void - - jakarta.faces.lifecycle.ClientWindowWrapper.enableClientWindowRenderMode -
- ( - FacesContext - ) -
-
- Components that permit per-use disabling of the appending of the ClientWindow in - generated URLs must call this method first after rendering those URLs. If - #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET - request must append the ClientWindow by default. This is specified as a static method because - callsites need to access it without having access to an actual ClientWindow instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5556 - - String - - jakarta.faces.lifecycle.ClientWindowWrapper.getId -
-
-
- Return a String value that uniquely identifies this ClientWindow within the scope of - the current session. See #decode for the specification of how to derive this value. - - true - - -
-
-
- true -
- JSF:JAVADOC:5557 - - Map - - jakarta.faces.lifecycle.ClientWindowWrapper.getQueryURLParameters -
- ( - FacesContext - ) -
-
- This method will be called whenever a URL is generated by the runtime where client - window related parameters need to be inserted into the URL. This guarantees custom ClientWindow - implementations that they will have the opportunity to insert any additional client window specific - information in any case where a URL is generated, such as the rendering of hyperlinks. The returned - map must be immutable. The default implementation of this method returns the empty map. - - true - - -
-
-
- true -
- JSF:JAVADOC:5558 - - ClientWindow - - jakarta.faces.lifecycle.ClientWindowWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5559 - - boolean - - jakarta.faces.lifecycle.ClientWindowWrapper.isClientWindowRenderModeEnabled -
- ( - FacesContext - ) -
-
- Methods that append the ClientWindow to generated URLs must call this method to see if - they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all - generated URLs that cause a GET request must append the ClientWindow by default. This is specified - as a static method because callsites need to access it without having access to an actual - ClientWindow instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5560 - - void - - jakarta.faces.lifecycle.Lifecycle.addPhaseListener -
- ( - PhaseListener - ) -
-
- Register a new PhaseListener instance that is interested in being notified before and - after the processing for standard phases of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5561 - - void - - jakarta.faces.lifecycle.Lifecycle.attachWindow -
- ( - FacesContext - ) -
-
- Create or restore the ClientWindow to be used to display the - jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation - for ClientWindow for an overview of the feature. If - jakarta.faces.context.ExternalContext#getClientWindow() returns null, create a new instance of - ClientWindow using the ClientWindowFactory. If the result is non-null, call - ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling - jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - - true - - -
-
-
- true -
- JSF:JAVADOC:5562 - - PhaseListener[] - - jakarta.faces.lifecycle.Lifecycle.getPhaseListeners -
-
-
- Return the set of registered PhaseListeners for this Lifecycle instance. If there are - no registered listeners, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5563 - - void - - jakarta.faces.lifecycle.Lifecycle.removePhaseListener -
- ( - PhaseListener - ) -
-
- Deregister an existing PhaseListener instance that is no longer interested in being - notified before and after the processing for standard phases of the request processing lifecycle. If - no such listener instance has been registered, no action is taken. - - true - - -
-
-
- true -
- JSF:JAVADOC:5564 - - void - - jakarta.faces.lifecycle.Lifecycle.render -
- ( - FacesContext - ) -
-
- Execute the Render Response phase of the request processing lifecycle, unless the - responseComplete() method has been called on the FacesContext instance associated with the current - request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5565 - - void - - jakarta.faces.lifecycle.Lifecycle.render -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- if an exception is thrown during the execution of the request processing lifecycle - - - true - - -
-
-
- true -
- JSF:JAVADOC:5566 - - LifecycleFactory - - jakarta.faces.lifecycle.LifecycleFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5567 - - LifecycleFactory - - jakarta.faces.lifecycle.LifecycleFactory.LifecycleFactory -
- ( - LifecycleFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5568 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.addPhaseListener -
- ( - PhaseListener - ) -
-
- Register a new PhaseListener instance that is interested in being notified before and - after the processing for standard phases of the request processing lifecycle. - - true - - -
-
-
- true -
- JSF:JAVADOC:5569 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.attachWindow -
- ( - FacesContext - ) -
-
- Create or restore the ClientWindow to be used to display the - jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation - for ClientWindow for an overview of the feature. If - jakarta.faces.context.ExternalContext#getClientWindow() returns null, create a new instance of - ClientWindow using the ClientWindowFactory. If the result is non-null, call - ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling - jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - - true - - -
-
-
- true -
- JSF:JAVADOC:5570 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.execute -
- ( - FacesContext - ) -
-
- Execute all of the phases of the request processing lifecycle, up to but not including - the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta - Faces Specification Document, in the specified order. The processing flow can be affected (by the - application, by components, or by event listeners) by calls to the renderResponse() or - responseComplete() methods of the FacesContext instance associated with the current request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5571 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.execute -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- if thrown during the execution of the request processing lifecycle - - true - - -
-
-
- true -
- JSF:JAVADOC:5572 - - PhaseListener[] - - jakarta.faces.lifecycle.LifecycleWrapper.getPhaseListeners -
-
-
- Return the set of registered PhaseListeners for this Lifecycle instance. If there are - no registered listeners, a zero-length array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5573 - - Lifecycle - - jakarta.faces.lifecycle.LifecycleWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5574 - - LifecycleWrapper - - jakarta.faces.lifecycle.LifecycleWrapper.LifecycleWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5575 - - LifecycleWrapper - - jakarta.faces.lifecycle.LifecycleWrapper.LifecycleWrapper -
- ( - Lifecycle - ) -
-
- If this lifecycle has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5576 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.removePhaseListener -
- ( - PhaseListener - ) -
-
- Deregister an existing PhaseListener instance that is no longer interested in being - notified before and after the processing for standard phases of the request processing lifecycle. If - no such listener instance has been registered, no action is taken. - - true - - -
-
-
- true -
- JSF:JAVADOC:5577 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.render -
- ( - FacesContext - ) -
-
- Execute the Render Response phase of the request processing lifecycle, unless the - responseComplete() method has been called on the FacesContext instance associated with the current - request. - - true - - -
-
-
- true -
- JSF:JAVADOC:5578 - - void - - jakarta.faces.lifecycle.LifecycleWrapper.render -
- ( - FacesContext - ) - -
- throws - FacesException -
-
-
- if an exception is thrown during the execution of the request processing lifecycle - - - true - - -
-
-
- true -
- JSF:JAVADOC:5579 - - ArrayDataModel - - jakarta.faces.model.ArrayDataModel.ArrayDataModel -
-
-
- Construct a new ArrayDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5580 - - ArrayDataModel - - jakarta.faces.model.ArrayDataModel.ArrayDataModel -
- ( - Object[] - ) -
-
- Construct a new ArrayDataModel wrapping the specified array. - - true - - -
-
-
- true -
- JSF:JAVADOC:5581 - - int - - jakarta.faces.model.ArrayDataModel.getRowCount -
-
-
- If there is wrappedData available, return the length of the array. If no wrappedData is - available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5582 - - Object - - jakarta.faces.model.ArrayDataModel.getRowData -
-
-
- If row data is available, return the array element at the index specified by rowIndex. - If no wrapped data is available, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5583 - - int - - jakarta.faces.model.ArrayDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5584 - - Object - - jakarta.faces.model.ArrayDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5585 - - boolean - - jakarta.faces.model.ArrayDataModel.isRowAvailable -
-
-
- Return true if there is wrappedData available, and the current value of rowIndex is - greater than or equal to zero, and less than the length of the array. Otherwise, return false. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5586 - - void - - jakarta.faces.model.ArrayDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5587 - - void - - jakarta.faces.model.ArrayDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5588 - - CollectionDataModel - - jakarta.faces.model.CollectionDataModel.CollectionDataModel -
-
-
- Construct a new CollectionDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5589 - - CollectionDataModel - - jakarta.faces.model.CollectionDataModel.CollectionDataModel -
- ( - Collection - ) -
-
- Construct a new CollectionDataModel wrapping the specified list. - - true - - -
-
-
- true -
- JSF:JAVADOC:5590 - - int - - jakarta.faces.model.CollectionDataModel.getRowCount -
-
-
- If there is wrappedData available, return the length of the list. If no wrappedData is - available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5591 - - Object - - jakarta.faces.model.CollectionDataModel.getRowData -
-
-
- If row data is available, return the array element at the index specified by rowIndex. - If no wrapped data is available, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5592 - - int - - jakarta.faces.model.CollectionDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5593 - - Object - - jakarta.faces.model.CollectionDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5594 - - boolean - - jakarta.faces.model.CollectionDataModel.isRowAvailable -
-
-
- Return true if there is wrappedData available, and the current value of rowIndex is - greater than or equal to zero, and less than the size of the list. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5595 - - void - - jakarta.faces.model.CollectionDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5596 - - void - - jakarta.faces.model.CollectionDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5597 - - void - - jakarta.faces.model.DataModel.addDataModelListener -
- ( - DataModelListener - ) -
-
- Add a new DataModelListener to the set interested in notifications from this DataModel. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5598 - - DataModel - - jakarta.faces.model.DataModel.DataModel -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5599 - - DataModelListener[] - - jakarta.faces.model.DataModel.getDataModelListeners -
-
-
- Return the set of DataModelListeners interested in notifications from this DataModel. - If there are no such listeners, an empty array is returned. - - true - - -
-
-
- true -
- JSF:JAVADOC:5600 - - int - - jakarta.faces.model.DataModel.getRowCount -
-
-
- Return the number of rows of data objects represented by this DataModel. If the number - of rows is unknown, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5601 - - Object - - jakarta.faces.model.DataModel.getRowData -
-
-
- Return an object representing the data for the currently selected row index. If no - wrappedData is available, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5602 - - int - - jakarta.faces.model.DataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5603 - - Object - - jakarta.faces.model.DataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5604 - - boolean - - jakarta.faces.model.DataModel.isRowAvailable -
-
-
- Return a flag indicating whether there is rowData available at the current rowIndex. If - no wrappedData is available, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5605 - - Iterator - - jakarta.faces.model.DataModel.iterator -
-
-
- Return a read-only Iterator over the row data for this model. - - true - - -
-
-
- true -
- JSF:JAVADOC:5606 - - void - - jakarta.faces.model.DataModel.removeDataModelListener -
- ( - DataModelListener - ) -
-
- Remove an existing DataModelListener from the set interested in notifications from this - DataModel. - - true - - -
-
-
- true -
- JSF:JAVADOC:5607 - - void - - jakarta.faces.model.DataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5608 - - void - - jakarta.faces.model.DataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5609 - - DataModelEvent - - jakarta.faces.model.DataModelEvent.DataModelEvent -
- ( - DataModel - , -
- int - , -
- Object - ) -
-
- Construct an event object that is associated with the specified row index and - associated data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5610 - - DataModel - - jakarta.faces.model.DataModelEvent.getDataModel -
-
-
- Return the DataModel that fired this event. - - true - - -
-
-
- true -
- JSF:JAVADOC:5611 - - Object - - jakarta.faces.model.DataModelEvent.getRowData -
-
-
- Return the object representing the data for the specified row index, or null for no - associated row data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5612 - - int - - jakarta.faces.model.DataModelEvent.getRowIndex -
-
-
- Return the row index for this event, or -1 for no specific row. - - true - - -
-
-
- true -
- JSF:JAVADOC:5613 - - void - - jakarta.faces.model.DataModelListener.rowSelected -
- ( - DataModelEvent - ) -
-
- Notification that a particular row index, with the associated row data, has been - selected for processing. - - true - - -
-
-
- true -
- JSF:JAVADOC:5614 - - Class - - jakarta.faces.model.FacesDataModel.forClass -
-
-
- The value of this annotation attribute is taken to be the type that the DataModel that - is annotated with this annotation is able to wrap. - - true - - -
-
-
- true -
- JSF:JAVADOC:5615 - - Class - - jakarta.faces.model.FacesDataModel.Literal.forClass -
-
-
- The value of this annotation attribute is taken to be the type that the DataModel that - is annotated with this annotation is able to wrap. - - true - - -
-
-
- true -
- JSF:JAVADOC:5616 - - Literal - - jakarta.faces.model.FacesDataModel.Literal.of -
- ( - Class - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5617 - - int - - jakarta.faces.model.IterableDataModel.getRowCount -
-
-
- Return the number of rows of data objects represented by this DataModel. If the number - of rows is unknown, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5618 - - Object - - jakarta.faces.model.IterableDataModel.getRowData -
-
-
- Return an object representing the data for the currenty selected row index. If no - wrappedData is available, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5619 - - int - - jakarta.faces.model.IterableDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5620 - - Object - - jakarta.faces.model.IterableDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5621 - - boolean - - jakarta.faces.model.IterableDataModel.isRowAvailable -
-
-
- Return a flag indicating whether there is rowData available at the current rowIndex. If - no wrappedData is available, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5622 - - IterableDataModel - - jakarta.faces.model.IterableDataModel.IterableDataModel -
-
-
- Construct a new IterableDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5623 - - IterableDataModel - - jakarta.faces.model.IterableDataModel.IterableDataModel -
- ( - Iterable - ) -
-
- Construct a new IterableDataModel wrapping the specified iterable. - - true - - -
-
-
- true -
- JSF:JAVADOC:5624 - - void - - jakarta.faces.model.IterableDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5625 - - void - - jakarta.faces.model.IterableDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5626 - - int - - jakarta.faces.model.ListDataModel.getRowCount -
-
-
- If there is wrappedData available, return the length of the list. If no wrappedData is - available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5627 - - Object - - jakarta.faces.model.ListDataModel.getRowData -
-
-
- If row data is available, return the array element at the index specified by rowIndex. - If no wrapped data is available, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5628 - - int - - jakarta.faces.model.ListDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5629 - - Object - - jakarta.faces.model.ListDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5630 - - boolean - - jakarta.faces.model.ListDataModel.isRowAvailable -
-
-
- Return true if there is wrappedData available, and the current value of rowIndex is - greater than or equal to zero, and less than the size of the list. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5631 - - ListDataModel - - jakarta.faces.model.ListDataModel.ListDataModel -
-
-
- Construct a new ListDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5632 - - ListDataModel - - jakarta.faces.model.ListDataModel.ListDataModel -
- ( - List - ) -
-
- Construct a new ListDataModel wrapping the specified list. - - true - - -
-
-
- true -
- JSF:JAVADOC:5633 - - void - - jakarta.faces.model.ListDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5634 - - void - - jakarta.faces.model.ListDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5635 - - int - - jakarta.faces.model.ResultSetDataModel.getRowCount -
-
-
- Return -1, since ResultSet does not provide a standard way to determine the number of - available rows without scrolling through the entire ResultSet, and this can be very expensive if the - number of rows is large. - - true - - -
-
-
- true -
- JSF:JAVADOC:5636 - - Map - - jakarta.faces.model.ResultSetDataModel.getRowData -
-
-
- If row data is available, return a Map representing the values of the columns for the - row specified by rowIndex, keyed by the corresponding column names. If no wrapped data is available, - return null. If a non-null Map is returned, its behavior must correspond to the contract for a - mutable Map as described in the JavaDocs for AbstractMap, with the following exceptions and - specialized behavior: The Map, and any supporting objects it returns, must perform all column name - comparisons in a case-insensitive manner. This case-insensitivity must be implemented using a - case-insensitive Comparator, such as String.CASE_INSENSITIVE_ORDER. The following methods must throw - UnsupportedOperationException: clear(), remove(). The entrySet() method must return a Set that has - the following behavior: Throw UnsupportedOperationException for any attempt to add or remove entries - from the Set, either directly or indirectly through an Iterator returned by the Set. Updates to the - value of an entry in this set must write through to the corresponding column value in the underlying - ResultSet. The keySet() method must return a Set that throws UnsupportedOperationException on any - attempt to add or remove keys, either directly or through an Iterator returned by the Set. The put() - method must throw IllegalArgumentException if a key value for which containsKey() returns false is - specified. However, if a key already present in the Map is specified, the specified value must write - through to the corresponding column value in the underlying ResultSet. The values() method must - return a Collection that throws UnsupportedOperationException on any attempt to add or remove - values, either directly or through an Iterator returned by the Collection. - - true - - -
-
-
- true -
- JSF:JAVADOC:5637 - - int - - jakarta.faces.model.ResultSetDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5638 - - Object - - jakarta.faces.model.ResultSetDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5639 - - boolean - - jakarta.faces.model.ResultSetDataModel.isRowAvailable -
-
-
- Return true if there is wrappedData available, and the result of calling absolute() on - the underlying ResultSet, passing the current value of rowIndex plus one (to account for the fact - that ResultSet uses one-relative indexing), returns true. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5640 - - ResultSetDataModel - - jakarta.faces.model.ResultSetDataModel.ResultSetDataModel -
-
-
- Construct a new ResultSetDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5641 - - ResultSetDataModel - - jakarta.faces.model.ResultSetDataModel.ResultSetDataModel -
- ( - ResultSet - ) -
-
- Construct a new ResultSetDataModel wrapping the specified ResultSet. - - true - - -
-
-
- true -
- JSF:JAVADOC:5642 - - void - - jakarta.faces.model.ResultSetDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5643 - - void - - jakarta.faces.model.ResultSetDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5644 - - int - - jakarta.faces.model.ScalarDataModel.getRowCount -
-
-
- If there is wrappedData available, return 1. If no wrappedData is available, return -1. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5645 - - Object - - jakarta.faces.model.ScalarDataModel.getRowData -
-
-
- If wrapped data is available, return the wrapped data instance. Otherwise, return null. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5646 - - int - - jakarta.faces.model.ScalarDataModel.getRowIndex -
-
-
- Return the zero-relative index of the currently selected row. If we are not currently - positioned on a row, or no wrappedData is available, return -1. - - true - - -
-
-
- true -
- JSF:JAVADOC:5647 - - Object - - jakarta.faces.model.ScalarDataModel.getWrappedData -
-
-
- Return the object representing the data wrapped by this DataModel, if any. - - true - - -
-
-
- true -
- JSF:JAVADOC:5648 - - boolean - - jakarta.faces.model.ScalarDataModel.isRowAvailable -
-
-
- Return true if there is wrappedData available, and the current value of rowIndex is - zero. Otherwise, return false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5649 - - ScalarDataModel - - jakarta.faces.model.ScalarDataModel.ScalarDataModel -
-
-
- Construct a new ScalarDataModel with no specified wrapped data. - - true - - -
-
-
- true -
- JSF:JAVADOC:5650 - - ScalarDataModel - - jakarta.faces.model.ScalarDataModel.ScalarDataModel -
- ( - Object - ) -
-
- Construct a new ScalarDataModel wrapping the specified scalar object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5651 - - void - - jakarta.faces.model.ScalarDataModel.setRowIndex -
- ( - int - ) -
-
- Set the zero-relative index of the currently selected row, or -1 to indicate that we - are not positioned on a row. It is possible to set the row index at a value for which the underlying - data collection does not contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the getRowData() method. If there is - no wrappedData available when this method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently - selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() - method of all registered DataModelListeners. - - true - - -
-
-
- true -
- JSF:JAVADOC:5652 - - void - - jakarta.faces.model.ScalarDataModel.setWrappedData -
- ( - Object - ) -
-
- Set the object representing the data collection wrapped by this DataModel. If the - specified data is null, detach this DataModel from any previously wrapped data collection instead. - If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must - be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is - now selected. - - true - - -
-
-
- true -
- JSF:JAVADOC:5653 - - String - - jakarta.faces.model.SelectItem.getDescription -
-
-
- Return a description of this item, for use in development tools. - - true - - -
-
-
- true -
- JSF:JAVADOC:5654 - - String - - jakarta.faces.model.SelectItem.getLabel -
-
-
- Return the label of this item, to be rendered visibly for the user. - - true - - -
-
-
- true -
- JSF:JAVADOC:5655 - - Object - - jakarta.faces.model.SelectItem.getValue -
-
-
- Return the value of this item, to be delivered to the model if this item is selected by - the user. - - true - - -
-
-
- true -
- JSF:JAVADOC:5656 - - boolean - - jakarta.faces.model.SelectItem.isDisabled -
-
-
- Return the disabled flag for this item, which should modify the rendered output to make - this item unavailable for selection by the user if set to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5657 - - boolean - - jakarta.faces.model.SelectItem.isEscape -
-
-
- If and only if this returns true, the code that renders this select item must escape - the label using escaping syntax appropriate to the content type being rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5658 - - boolean - - jakarta.faces.model.SelectItem.isNoSelectionOption -
-
-
- Return the value of the noSelectionOption property. If the value of this property is - true, the system interprets the option represented by this SelectItem instance as representing a "no - selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - - true - - -
-
-
- true -
- JSF:JAVADOC:5659 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
-
-
- Construct a SelectItem with no initialized property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:5660 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - ) -
-
- Construct a SelectItem with the specified value. The label property will be set to the - value (converted to a String, if necessary), the description property will be set to null, the - disabled property will be set to false, and the escape property will be set to ( true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5661 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - , -
- String - ) -
-
- Construct a SelectItem with the specified value and label. The description property - will be set to null, the disabled property will be set to false, and the escape property will be set - to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5662 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - , -
- String - , -
- String - ) -
-
- Construct a SelectItem instance with the specified value, label and description. This - disabled property will be set to false, and the escape property will be set to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5663 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - , -
- String - , -
- String - , -
- boolean - ) -
-
- Construct a SelectItem instance with the specified property values. The escape property - will be set to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5664 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - , -
- String - , -
- String - , -
- boolean - , -
- boolean - ) -
-
- Construct a SelectItem instance with the specified property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:5665 - - SelectItem - - jakarta.faces.model.SelectItem.SelectItem -
- ( - Object - , -
- String - , -
- String - , -
- boolean - , -
- boolean - , -
- boolean - ) -
-
- Construct a SelectItem instance with the specified property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:5666 - - void - - jakarta.faces.model.SelectItem.setDescription -
- ( - String - ) -
-
- Set the description of this item, for use in development tools. - - true - - -
-
-
- true -
- JSF:JAVADOC:5667 - - void - - jakarta.faces.model.SelectItem.setDisabled -
- ( - boolean - ) -
-
- Set the disabled flag for this item, which should modify the rendered output to make - this item unavailable for selection by the user if set to true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5668 - - void - - jakarta.faces.model.SelectItem.setEscape -
- ( - boolean - ) -
-
- Set the value of the escape property. See #isEscape. - - true - - -
-
-
- true -
- JSF:JAVADOC:5669 - - void - - jakarta.faces.model.SelectItem.setLabel -
- ( - String - ) -
-
- Set the label of this item, to be rendered visibly for the user. - - true - - -
-
-
- true -
- JSF:JAVADOC:5670 - - void - - jakarta.faces.model.SelectItem.setNoSelectionOption -
- ( - boolean - ) -
-
- Set the value of the noSelectionOption property. - - true - - -
-
-
- true -
- JSF:JAVADOC:5671 - - void - - jakarta.faces.model.SelectItem.setValue -
- ( - Object - ) -
-
- Set the value of this item, to be delivered to the model if this item is selected by - this user. - - true - - -
-
-
- true -
- JSF:JAVADOC:5672 - - SelectItem[] - - jakarta.faces.model.SelectItemGroup.getSelectItems -
-
-
- Return the set of subordinate SelectItems for this group. - - true - - -
-
-
- true -
- JSF:JAVADOC:5673 - - SelectItemGroup - - jakarta.faces.model.SelectItemGroup.SelectItemGroup -
-
-
- Construct a SelectItemGroup with no initialized property values. - - true - - -
-
-
- true -
- JSF:JAVADOC:5674 - - SelectItemGroup - - jakarta.faces.model.SelectItemGroup.SelectItemGroup -
- ( - String - ) -
-
- Construct a SelectItemGroup with the specified label and no associated selectItems. The - value property will be set to a zero-length String, the description property will be set to null, - and the disabled property will be set to false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5675 - - SelectItemGroup - - jakarta.faces.model.SelectItemGroup.SelectItemGroup -
- ( - String - , -
- String - , -
- boolean - , -
- SelectItem[] - ) -
-
- Construct a SelectItemGroup with the specified properties. The value property will be - set to a zero-length String. - - true - - -
-
-
- true -
- JSF:JAVADOC:5676 - - SelectItemGroup - - jakarta.faces.model.SelectItemGroup.SelectItemGroup -
- ( - String - , -
- String - , -
- boolean - , -
- Collection - ) -
-
- Construct a SelectItemGroup with the specified properties. The value property will be - set to a zero-length String. - - true - - -
-
-
- true -
- JSF:JAVADOC:5677 - - void - - jakarta.faces.model.SelectItemGroup.setSelectItems -
- ( - SelectItem[] - ) -
-
- Set the set of subordinate SelectItems for this group as a variable array. - - true - - -
-
-
- true -
- JSF:JAVADOC:5678 - - void - - jakarta.faces.model.SelectItemGroup.setSelectItems -
- ( - Collection - ) -
-
- Set the set of subordinate SelectItems for this group as a collection. - - true - - -
-
-
- true -
- JSF:JAVADOC:5679 - - String - - jakarta.faces.push.Push.channel -
-
-
- (Optional) The name of the push channel. If not specified the name of the injection - target field will be used. - - true - - -
-
-
- true -
- JSF:JAVADOC:5680 - - String - - jakarta.faces.push.Push.Literal.channel -
-
-
- (Optional) The name of the push channel. If not specified the name of the injection - target field will be used. - - true - - -
-
-
- true -
- JSF:JAVADOC:5681 - - Literal - - jakarta.faces.push.Push.Literal.of -
- ( - String - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5682 - - Set - - jakarta.faces.push.PushContext.send -
- ( - Object - ) -
-
- Send given message object to the push socket channel as identified by #64;Push. The - message object will be encoded as JSON and be available as first argument of the JavaScript listener - function declared in . - - true - - -
-
-
- true -
- JSF:JAVADOC:5683 - - Set - - jakarta.faces.push.PushContext.send -
- ( - Object - , -
- Serializable - ) -
-
- Send given message object to the push socket channel as identified by #64;Push, - targeted to the given user as identified by . The message object will be encoded as JSON and be - available as first argument of the JavaScript listener function declared in . - - true - - -
-
-
- true -
- JSF:JAVADOC:5684 - - Map - - jakarta.faces.push.PushContext.send -
- ( - Object - , -
- Collection - ) -
-
- Send given message object to the push socket channel as identified by #64;Push, - targeted to the given users as identified by . The message object will be encoded as JSON and be - available as first argument of the JavaScript listener function declared in . - - true - - -
-
-
- true -
- JSF:JAVADOC:5685 - - ClientBehaviorRenderer - - jakarta.faces.render.ClientBehaviorRenderer.ClientBehaviorRenderer -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5686 - - void - - jakarta.faces.render.ClientBehaviorRenderer.decode -
- ( - FacesContext - , -
- UIComponent - , -
- ClientBehavior - ) -
-
- Decode any new state of this ClientBehavior from the request contained in the specified - FacesContext. During decoding, events may be enqueued for later processing (by event listeners who - have registered an interest), by calling queueEvent(). - - true - - -
-
-
- true -
- JSF:JAVADOC:5687 - - String - - jakarta.faces.render.ClientBehaviorRenderer.getScript -
- ( - ClientBehaviorContext - , -
- ClientBehavior - ) -
-
- Return the script that implements this ClientBehavior's client-side logic. The default - implementation returns null. ClientBehaviorRenderer.getScript() implementations are allowed to - return null to indicate that no script is required for this particular getScript() call. For - example, a ClientBehaviorRenderer implementation may return null if the associated ClientBehavior is - disabled. - - true - - -
-
-
- true -
- JSF:JAVADOC:5688 - - String - - jakarta.faces.render.FacesBehaviorRenderer.rendererType -
-
-
- Within the RenderKit, the value of this annotation attribute is taken to be the - renderer-type - - true - - -
-
-
- true -
- JSF:JAVADOC:5689 - - String - - jakarta.faces.render.FacesBehaviorRenderer.renderKitId -
-
-
- The value of this annotation attribute is taken to be the render-kit-id in which an - instance of this class of Renderer must be installed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5690 - - String - - jakarta.faces.render.FacesRenderer.componentFamily -
-
-
- The value of this annotation attribute is taken to be the component-family which, in - combination with #rendererType can be used to obtain a reference to an instance of this Renderer by - calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - - true - - -
-
-
- true -
- JSF:JAVADOC:5691 - - String - - jakarta.faces.render.FacesRenderer.rendererType -
-
-
- The value of this annotation attribute is taken to be the renderer-type which, in - combination with #componentFamily can be used to obtain a reference to an instance of this Renderer - by calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - - true - - -
-
-
- true -
- JSF:JAVADOC:5692 - - String - - jakarta.faces.render.FacesRenderer.renderKitId -
-
-
- The value of this annotation attribute is taken to be the render-kit-id in which an - instance of this class of Renderer must be installed. - - true - - -
-
-
- true -
- JSF:JAVADOC:5693 - - String - - jakarta.faces.render.Renderer.convertClientId -
- ( - FacesContext - , -
- String - ) -
-
- Convert the component generated client id to a form suitable for transmission to the - client. The default implementation returns the argument clientId unchanged. - - true - - -
-
-
- true -
- JSF:JAVADOC:5694 - - Object - - jakarta.faces.render.Renderer.getConvertedValue -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Attempt to convert previously stored state information into an object of the type - required for this component (optionally using the registered jakarta.faces.convert.Converter for - this component, if there is one). If conversion is successful, the new value should be returned from - this method; if not, a ConverterException should be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:5695 - - Object - - jakarta.faces.render.Renderer.getConvertedValue -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ConverterException -
-
-
- if the submitted value cannot be converted successfully. - - true - - -
-
-
- true -
- JSF:JAVADOC:5696 - - boolean - - jakarta.faces.render.Renderer.getRendersChildren -
-
-
- Return a flag indicating whether this Renderer is responsible for rendering the - children the component it is asked to render. The default implementation returns false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5697 - - String - - jakarta.faces.render.RendererWrapper.convertClientId -
- ( - FacesContext - , -
- String - ) -
-
- Convert the component generated client id to a form suitable for transmission to the - client. The default implementation returns the argument clientId unchanged. - - true - - -
-
-
- true -
- JSF:JAVADOC:5698 - - void - - jakarta.faces.render.RendererWrapper.decode -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Decode any new state of the specified UIComponent from the request contained in the - specified FacesContext, and store that state on the UIComponent. During decoding, events may be - enqueued for later processing (by event listeners that have registered an interest), by calling - queueEvent() on the associated UIComponent. - - true - - -
-
-
- true -
- JSF:JAVADOC:5699 - - void - - jakarta.faces.render.RendererWrapper.encodeBegin -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the beginning specified UIComponent to the output stream or writer associated - with the response we are creating. If the conversion attempted in a previous call to - getConvertedValue() for this component failed, the state information saved during execution of - decode() should be used to reproduce the incorrect input. - - true - - -
-
-
- true -
- JSF:JAVADOC:5700 - - void - - jakarta.faces.render.RendererWrapper.encodeBegin -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:5701 - - void - - jakarta.faces.render.RendererWrapper.encodeChildren -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the child components of this UIComponent, following the rules described for - encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if - the rendersChildren property of this component is true. - - true - - -
-
-
- true -
- JSF:JAVADOC:5702 - - void - - jakarta.faces.render.RendererWrapper.encodeChildren -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:5703 - - void - - jakarta.faces.render.RendererWrapper.encodeEnd -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Render the ending of the current state of the specified UIComponent, following the - rules described for encodeBegin() to acquire the appropriate value to be rendered. - - true - - -
-
-
- true -
- JSF:JAVADOC:5704 - - void - - jakarta.faces.render.RendererWrapper.encodeEnd -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if an input/output error occurs while rendering - - true - - -
-
-
- true -
- JSF:JAVADOC:5705 - - Object - - jakarta.faces.render.RendererWrapper.getConvertedValue -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Attempt to convert previously stored state information into an object of the type - required for this component (optionally using the registered jakarta.faces.convert.Converter for - this component, if there is one). If conversion is successful, the new value should be returned from - this method; if not, a ConverterException should be thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:5706 - - Object - - jakarta.faces.render.RendererWrapper.getConvertedValue -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ConverterException -
-
-
- if the submitted value cannot be converted successfully. - - true - - -
-
-
- true -
- JSF:JAVADOC:5707 - - boolean - - jakarta.faces.render.RendererWrapper.getRendersChildren -
-
-
- Return a flag indicating whether this Renderer is responsible for rendering the - children the component it is asked to render. The default implementation returns false. - - true - - -
-
-
- true -
- JSF:JAVADOC:5708 - - Renderer - - jakarta.faces.render.RendererWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5709 - - RendererWrapper - - jakarta.faces.render.RendererWrapper.RendererWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5710 - - RendererWrapper - - jakarta.faces.render.RendererWrapper.RendererWrapper -
- ( - Renderer - ) -
-
- If this renderer has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5711 - - void - - jakarta.faces.render.RenderKit.addClientBehaviorRenderer -
- ( - String - , -
- ClientBehaviorRenderer - ) -
-
- Register the specified ClientBehaviorRenderer instance, associated with the specified - component type, to the set of ClientBehaviorRenderers registered with this RenderKit, replacing any - previously registered ClientBehaviorRenderer for this type. - - true - - -
-
-
- true -
- JSF:JAVADOC:5712 - - void - - jakarta.faces.render.RenderKit.addRenderer -
- ( - String - , -
- String - , -
- Renderer - ) -
-
- Register the specified Renderer instance, associated with the specified component - family and rendererType, to the set of Renderers registered with this RenderKit, replacing any - previously registered Renderer for this combination of identifiers. - - true - - -
-
-
- true -
- JSF:JAVADOC:5713 - - ResponseStream - - jakarta.faces.render.RenderKit.createResponseStream -
- ( - OutputStream - ) -
-
- Use the provided OutputStream to create a new ResponseStream instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5714 - - ResponseWriter - - jakarta.faces.render.RenderKit.createResponseWriter -
- ( - Writer - , -
- String - , -
- String - ) -
-
- Use the provided Writer to create a new ResponseWriter instance for the specified - (optional) content type, and character encoding. Implementors are advised to consult the - getCharacterEncoding() method of class jakarta.servlet.ServletResponse to get the required value for - the characterEncoding for this method. Since the Writer for this response will already have been - obtained (due to it ultimately being passed to this method), we know that the character encoding - cannot change during the rendering of the response. - - true - - -
-
-
- true -
- JSF:JAVADOC:5715 - - ClientBehaviorRenderer - - jakarta.faces.render.RenderKit.getClientBehaviorRenderer -
- ( - String - ) -
-
- Return the ClientBehaviorRenderer instance most recently registered for the specified - type, if any; otherwise, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5716 - - Iterator - - jakarta.faces.render.RenderKit.getClientBehaviorRendererTypes -
-
-
- Return an Iterator over the ClientBehaviorRenderer types. - - true - - -
-
-
- true -
- JSF:JAVADOC:5717 - - Iterator - - jakarta.faces.render.RenderKit.getComponentFamilies -
-
-
- Return an Iterator over the component-family entries supported by this RenderKit - instance. The default implementation of this method returns an empty Iterator - - true - - -
-
-
- true -
- JSF:JAVADOC:5718 - - Renderer - - jakarta.faces.render.RenderKit.getRenderer -
- ( - String - , -
- String - ) -
-
- Return the Renderer instance most recently registered for the specified component - family and rendererType, if any; otherwise, return null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5719 - - ResponseStateManager - - jakarta.faces.render.RenderKit.getResponseStateManager -
-
-
- Return an instance of ResponseStateManager to handle rendering technology specific - state management decisions. - - true - - -
-
-
- true -
- JSF:JAVADOC:5720 - - RenderKit - - jakarta.faces.render.RenderKitFactory.getRenderKit -
- ( - FacesContext - , -
- String - ) -
-
- Return a RenderKit instance for the specified render kit identifier, possibly - customized based on dynamic characteristics of the specified FacesContext, if non-null. If there is - no registered RenderKit for the specified identifier, return null. The set of available render kit - identifiers is available via the getRenderKitIds() method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5721 - - RenderKitFactory - - jakarta.faces.render.RenderKitFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5722 - - RenderKitFactory - - jakarta.faces.render.RenderKitFactory.RenderKitFactory -
- ( - RenderKitFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5723 - - void - - jakarta.faces.render.RenderKitWrapper.addClientBehaviorRenderer -
- ( - String - , -
- ClientBehaviorRenderer - ) -
-
- The default behavior of this method is to call - RenderKit#addClientBehaviorRenderer(String, ClientBehaviorRenderer) on the wrapped RenderKit object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5724 - - void - - jakarta.faces.render.RenderKitWrapper.addRenderer -
- ( - String - , -
- String - , -
- Renderer - ) -
-
- The default behavior of this method is to call RenderKit#addRenderer(String, String, - Renderer) on the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5725 - - ResponseStream - - jakarta.faces.render.RenderKitWrapper.createResponseStream -
- ( - OutputStream - ) -
-
- The default behavior of this method is to call - RenderKit#createResponseStream(java.io.OutputStream) on the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5726 - - ResponseWriter - - jakarta.faces.render.RenderKitWrapper.createResponseWriter -
- ( - Writer - , -
- String - , -
- String - ) -
-
- The default behavior of this method is to call - RenderKit#createResponseWriter(java.io.Writer, String, String) on the wrapped RenderKit object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5727 - - ClientBehaviorRenderer - - jakarta.faces.render.RenderKitWrapper.getClientBehaviorRenderer -
- ( - String - ) -
-
- The default behavior of this method is to call - RenderKit#getClientBehaviorRenderer(String) on the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5728 - - Iterator - - jakarta.faces.render.RenderKitWrapper.getClientBehaviorRendererTypes -
-
-
- The default behavior of this method is to call - jakarta.faces.render.RenderKit#getClientBehaviorRendererTypes() on the wrapped RenderKit object. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5729 - - Iterator - - jakarta.faces.render.RenderKitWrapper.getComponentFamilies -
-
-
- The default behavior of this method is to call - jakarta.faces.render.RenderKit#getComponentFamilies() on the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5730 - - Renderer - - jakarta.faces.render.RenderKitWrapper.getRenderer -
- ( - String - , -
- String - ) -
-
- The default behavior of this method is to call RenderKit#getRenderer(String, String) on - the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5731 - - Iterator - - jakarta.faces.render.RenderKitWrapper.getRendererTypes -
- ( - String - ) -
-
- The default behavior of this method is to call RenderKit#getRendererTypes(String) on - the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5732 - - ResponseStateManager - - jakarta.faces.render.RenderKitWrapper.getResponseStateManager -
-
-
- The default behavior of this method is to call - jakarta.faces.render.RenderKit#getResponseStateManager() on the wrapped RenderKit object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5733 - - RenderKit - - jakarta.faces.render.RenderKitWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5734 - - RenderKitWrapper - - jakarta.faces.render.RenderKitWrapper.RenderKitWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5735 - - RenderKitWrapper - - jakarta.faces.render.RenderKitWrapper.RenderKitWrapper -
- ( - RenderKit - ) -
-
- If this render kit has been decorated, the implementation doing the decorating should - push the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5736 - - String - - jakarta.faces.render.ResponseStateManager.getCryptographicallyStrongTokenFromSession -
- ( - FacesContext - ) -
-
- Compliant implementations must return a cryptographically strong token for use to - protect views in this application. For backwards compatibility with earlier revisions, a default - implementation is provided that simply returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5737 - - Object - - jakarta.faces.render.ResponseStateManager.getState -
- ( - FacesContext - , -
- String - ) -
-
- The implementation must inspect the current request and return an Object representing - the tree structure and component state passed in to a previous invocation of - #writeState(jakarta.faces.context.FacesContext,java.lang.Object). If the state saving method for - this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, writeState() - will have encrypted the state in a tamper evident manner. If the state fails to decrypt, or decrypts - but indicates evidence of tampering, a jakarta.faces.application.ProtectedViewException must be - thrown. - - true - - -
-
-
- true -
- JSF:JAVADOC:5738 - - String - - jakarta.faces.render.ResponseStateManager.getViewState -
- ( - FacesContext - , -
- Object - ) -
-
- Return the specified state as a String without any markup related to the rendering - technology supported by this ResponseStateManager. - - true - - -
-
-
- true -
- JSF:JAVADOC:5739 - - boolean - - jakarta.faces.render.ResponseStateManager.isPostback -
- ( - FacesContext - ) -
-
- Return true if the current request is a postback. This method is leveraged from the - Restore View Phase to determine if jakarta.faces.application.ViewHandler#restoreView or - jakarta.faces.application.ViewHandler#createView should be called. The default implementation must - return true if this ResponseStateManager instance wrote out state on a previous request to which - this request is a postback, false otherwise. The implementation of this method for the Standard HTML - RenderKit must consult the jakarta.faces.context.ExternalContext's requestParameterMap and return - true if and only if there is a key equal to the value of the symbolic constant #VIEW_STATE_PARAM. - For backwards compatibility with implementations of ResponseStateManager prior to Jakarta Faces 1.2, - a default implementation is provided that consults the jakarta.faces.context.ExternalContext's - requestParameterMap and return true if its size is greater than 0. - - true - - -
-
-
- true -
- JSF:JAVADOC:5740 - - boolean - - jakarta.faces.render.ResponseStateManager.isStateless -
- ( - FacesContext - , -
- String - ) -
-
- If the preceding call to #writeState(jakarta.faces.context.FacesContext, - java.lang.Object) was stateless, return true. If the preceding call to writeState() was stateful, - return false. Otherwise throw IllegalStateException. To preserve backward compatibility with custom - implementations that may have extended from an earlier version of this class, an implementation is - provided that returns false. A compliant implementation must override this method to take the - specified action. - - true - - -
-
-
- true -
- JSF:JAVADOC:5741 - - ResponseStateManager - - jakarta.faces.render.ResponseStateManager.ResponseStateManager -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5742 - - void - - jakarta.faces.render.ResponseStateManager.writeState -
- ( - FacesContext - , -
- Object - ) -
-
- Take the argument state and write it into the output using the current ResponseWriter, - which must be correctly positioned already. Call FacesContext#getViewRoot(). If - jakarta.faces.component.UIComponent#isTransient() returns true, take implementation specific action - so that the following call to #isStateless returns true and return. Otherwise, proceed as follows. - If the state is to be written out to hidden fields, the implementation must take care to make all - necessary character replacements to make the Strings suitable for inclusion as an HTTP request - paramater. If the state saving method for this application is - jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, the implementation must encrypt - the state to be saved to the client in a tamper evident manner. If the state saving method for this - application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_SERVER, and the current - request is an Ajax request jakarta.faces.context.PartialViewContext#isAjaxRequest returns true), use - the current view state identifier if it is available (do not generate a new identifier). Write out - the render kit identifier associated with this ResponseStateManager implementation with the name as - the value of the String constant ResponseStateManager.RENDER_KIT_ID_PARAM. The render kit identifier - must not be written if: it is the default render kit identifier as returned by - jakarta.faces.application.Application#getDefaultRenderKitId() or the render kit identfier is the - value of jakarta.faces.render.RenderKitFactory.HTML_BASIC_RENDER_KIT and - jakarta.faces.application.Application#getDefaultRenderKitId() returns null. The - jakarta.faces.lifecycle.ClientWindow must be written using these steps. Call - jakarta.faces.context.ExternalContext#getClientWindow. If the result is null, take no further action - regarding the ClientWindow. If the result is non-null, write a hidden field whose name is - #CLIENT_WINDOW_PARAM and whose id is jakarta.faces.ClientWindow where is the currently configured - UINamingContainer.getSeparatorChar(). is the return from UIViewRoot.getContainerClientId() on the - view from whence this state originated. is a number that must be unique within this view, but must - not be included in the view state. The value of the field is implementation dependent but must - uniquely identify this window within the user's session. - - true - - -
-
-
- true -
- JSF:JAVADOC:5743 - - void - - jakarta.faces.render.ResponseStateManager.writeState -
- ( - FacesContext - , -
- Object - ) - -
- throws - IOException -
-
-
- if the state argument is not an array of length 2. - - true - - -
-
-
- true -
- JSF:JAVADOC:5744 - - BeanValidator - - jakarta.faces.validator.BeanValidator.BeanValidator -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5745 - - void - - jakarta.faces.validator.BeanValidator.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5746 - - String - - jakarta.faces.validator.BeanValidator.getValidationGroups -
-
-
- Return the validation groups passed to the Validation API when checking constraints. If - the validationGroupsArray attribute is omitted or empty, the validation groups will be inherited - from the branch defaults, or if there are no branch defaults, the jakarta.validation.groups.Default - group will be used. - - true - - -
-
-
- true -
- JSF:JAVADOC:5747 - - boolean - - jakarta.faces.validator.BeanValidator.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5748 - - boolean - - jakarta.faces.validator.BeanValidator.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5749 - - void - - jakarta.faces.validator.BeanValidator.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5750 - - void - - jakarta.faces.validator.BeanValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5751 - - Object - - jakarta.faces.validator.BeanValidator.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5752 - - void - - jakarta.faces.validator.BeanValidator.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5753 - - void - - jakarta.faces.validator.BeanValidator.setValidationGroups -
- ( - String - ) -
-
- A comma-separated list of validation groups which are used to filter which validations - get checked by this validator. If the validationGroupsArray attribute is omitted or is empty, the - validation groups will be inherited from the branch defaults or, if there are no branch defaults, - the jakarta.validation.groups.Default group will be used. - - true - - -
-
-
- true -
- JSF:JAVADOC:5754 - - void - - jakarta.faces.validator.BeanValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Verify that the value is valid according to the Bean Validation constraints. Obtain a - ValidatorFactory instance by calling jakarta.validation.Validation#buildDefaultValidatorFactory. Let - validationGroupsArray be a Class [] representing validator groups set on the component by the tag - handler for this validator. The first search component terminates the search for the validation - groups value. If no such value is found use the class name of jakarta.validation.groups.Default as - the value of the validation groups. Let valueExpression be the return from calling - UIComponent#getValueExpression on the argument component, passing the literal string #8220;value - #8221; (without the quotes) as an argument. If this application is running in an environment with - Jakarta Expression Language, obtain the ValueReference from valueExpression and let valueBaseClase - be the return from calling ValueReference.getBase() and valueProperty be the return from calling - ValueReference.getProperty(). If an earlier version of Jakarta Expression Language is present, use - the appropriate methods to inspect valueExpression and derive values for valueBaseClass and - valueProperty. If no ValueReference can be obtained, take no action and return. If - ValueReference.getBase() return null, take no action and return. Obtain the ValidatorContext from - the ValidatorFactory. Decorate the MessageInterpolator returned from - ValidatorFactory#getMessageInterpolator with one that leverages the Locale returned from - jakarta.faces.component.UIViewRoot#getLocale, and store it in the ValidatorContext using - ValidatorContext#messageInterpolator. Obtain the jakarta.validation.Validator instance from the - validatorContext. Obtain a jakarta.validation.BeanDescriptor from the jakarta.validation.Validator. - If hasConstraints() on the BeanDescriptor returns false, take no action and return. Otherwise - proceed. Call jakarta.validation.Validator#validateValue, passing valueBaseClass, valueProperty, the - value argument, and validatorGroupsArray as arguments. If the returned Set lt;ConstraintViolation - gt; is non-empty, for each element in the Set, create a FacesMessage where the summary and detail - are the return from calling ConstraintViolation#getMessage. Capture all such FacesMessage instances - into a Collection and pass them to ValidatorException#ValidatorException(java.util.Collection). If - the #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME application parameter is enabled and this Validator - instance has validation groups other than or in addition to the Default group, record the fact that - this field failed validation so that any component later in the tree is able to skip class-level - validation for the bean for which this particular field is a property. Regardless of whether or not - #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME is set, throw the new exception. If the returned Set is - empty, the #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME application parameter is enabled and this - Validator instance has validation groups other than or in addition to the Default group, record the - fact that this field passed validation so that any component later in the tree is able to allow - class-level validation for the bean for which this particular field is a property. - - true - - -
-
-
- true -
- JSF:JAVADOC:5755 - - void - - jakarta.faces.validator.DoubleRangeValidator.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5756 - - boolean - - jakarta.faces.validator.DoubleRangeValidator.equals -
- ( - Object - ) -
-
- Overrides the default equals method to take the minimum and maximum into account when - comparing DoubleRangeValidator instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:5757 - - int - - jakarta.faces.validator.DoubleRangeValidator.hashCode -
-
-
- Overrides the default hash code method to take the minimum and maximum into account - when generating the hash code. - - true - - -
-
-
- true -
- JSF:JAVADOC:5758 - - boolean - - jakarta.faces.validator.DoubleRangeValidator.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5759 - - boolean - - jakarta.faces.validator.DoubleRangeValidator.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5760 - - void - - jakarta.faces.validator.DoubleRangeValidator.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5761 - - void - - jakarta.faces.validator.DoubleRangeValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5762 - - Object - - jakarta.faces.validator.DoubleRangeValidator.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5763 - - void - - jakarta.faces.validator.DoubleRangeValidator.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5764 - - void - - jakarta.faces.validator.DoubleRangeValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5765 - - void - - jakarta.faces.validator.DoubleRangeValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ValidatorException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5766 - - boolean - - jakarta.faces.validator.FacesValidator.isDefault -
-
-
- If true, the validator id for this annotation is added to the list of default - validators by a call to jakarta.faces.application.Application#addDefaultValidatorId. - - true - - -
-
-
- true -
- JSF:JAVADOC:5767 - - boolean - - jakarta.faces.validator.FacesValidator.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5768 - - String - - jakarta.faces.validator.FacesValidator.value -
-
-
- The value of this annotation attribute is taken to be the validator-id with which - instances of this class of component can be instantiated by calling - jakarta.faces.application.Application#createValidator(java.lang.String). If no value is specified, - or the value is null, the value is taken to be the return of calling getSimpleName on the class to - which this annotation is attached and lowercasing the first character. If more than one validator - with this derived name is found, the results are undefined. - - true - - -
-
-
- true -
- JSF:JAVADOC:5769 - - boolean - - jakarta.faces.validator.FacesValidator.Literal.isDefault -
-
-
- If true, the validator id for this annotation is added to the list of default - validators by a call to jakarta.faces.application.Application#addDefaultValidatorId. - - true - - -
-
-
- true -
- JSF:JAVADOC:5770 - - boolean - - jakarta.faces.validator.FacesValidator.Literal.managed -
-
-
- The value of this annotation attribute is taken to be an indicator that flags whether - or not the given converter is a CDI managed converter. - - true - - -
-
-
- true -
- JSF:JAVADOC:5771 - - Literal - - jakarta.faces.validator.FacesValidator.Literal.of -
- ( - String - , -
- boolean - , -
- boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5772 - - String - - jakarta.faces.validator.FacesValidator.Literal.value -
-
-
- The value of this annotation attribute is taken to be the validator-id with which - instances of this class of component can be instantiated by calling - jakarta.faces.application.Application#createValidator(java.lang.String). If no value is specified, - or the value is null, the value is taken to be the return of calling getSimpleName on the class to - which this annotation is attached and lowercasing the first character. If more than one validator - with this derived name is found, the results are undefined. - - true - - -
-
-
- true -
- JSF:JAVADOC:5773 - - void - - jakarta.faces.validator.LengthValidator.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5774 - - boolean - - jakarta.faces.validator.LengthValidator.equals -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5775 - - int - - jakarta.faces.validator.LengthValidator.hashCode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5776 - - boolean - - jakarta.faces.validator.LengthValidator.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5777 - - boolean - - jakarta.faces.validator.LengthValidator.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5778 - - void - - jakarta.faces.validator.LengthValidator.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5779 - - void - - jakarta.faces.validator.LengthValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5780 - - Object - - jakarta.faces.validator.LengthValidator.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5781 - - void - - jakarta.faces.validator.LengthValidator.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5782 - - void - - jakarta.faces.validator.LengthValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5783 - - void - - jakarta.faces.validator.LengthValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ValidatorException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5784 - - void - - jakarta.faces.validator.LongRangeValidator.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5785 - - boolean - - jakarta.faces.validator.LongRangeValidator.equals -
- ( - Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5786 - - int - - jakarta.faces.validator.LongRangeValidator.hashCode -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5787 - - boolean - - jakarta.faces.validator.LongRangeValidator.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5788 - - boolean - - jakarta.faces.validator.LongRangeValidator.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5789 - - void - - jakarta.faces.validator.LongRangeValidator.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5790 - - void - - jakarta.faces.validator.LongRangeValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5791 - - Object - - jakarta.faces.validator.LongRangeValidator.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5792 - - void - - jakarta.faces.validator.LongRangeValidator.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5793 - - void - - jakarta.faces.validator.LongRangeValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5794 - - void - - jakarta.faces.validator.LongRangeValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ValidatorException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5795 - - boolean - - jakarta.faces.validator.MethodExpressionValidator.isTransient -
-
-
- If true, the Object implementing this interface must not participate in state saving or - restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5796 - - MethodExpressionValidator - - jakarta.faces.validator.MethodExpressionValidator.MethodExpressionValidator -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5797 - - MethodExpressionValidator - - jakarta.faces.validator.MethodExpressionValidator.MethodExpressionValidator -
- ( - MethodExpression - ) -
-
- Construct a Validator that contains a MethodExpression. - - true - - -
-
-
- true -
- JSF:JAVADOC:5798 - - void - - jakarta.faces.validator.MethodExpressionValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- Perform any processing required to restore the state from the entries in the state - Object. If the class that implements this interface has references to instances that also implement - StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the - #restoreState method on all those instances as well. If the state argument is null, take no action - and return. - - true - - -
-
-
- true -
- JSF:JAVADOC:5799 - - Object - - jakarta.faces.validator.MethodExpressionValidator.saveState -
- ( - FacesContext - ) -
-
- Gets the state of the instance as a Serializable Object. If the class that implements - this interface has references to instances that implement StateHolder (such as a UIComponent with - event handlers, validators, etc.) this method must call the #saveState method on all those instances - as well. This method must not save the state of children and facets. That is done via the - jakarta.faces.application.StateManager This method must not alter the state of the implementing - object. In other words, after executing this code: Object state = component.saveState(facesContext); - component should be the same as before executing it. The return from this method must be - Serializable - - true - - -
-
-
- true -
- JSF:JAVADOC:5800 - - void - - jakarta.faces.validator.MethodExpressionValidator.setTransient -
- ( - boolean - ) -
-
- Denotes whether or not the Object implementing this interface must or must not - participate in state saving or restoring. - - true - - -
-
-
- true -
- JSF:JAVADOC:5801 - - void - - jakarta.faces.validator.MethodExpressionValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5802 - - void - - jakarta.faces.validator.MethodExpressionValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ValidatorException -
-
-
- {@inheritDoc} - - true - - -
-
-
- true -
- JSF:JAVADOC:5803 - - void - - jakarta.faces.validator.RegexValidator.clearInitialState -
-
-
- Reset the PartialStateHolder to a non-delta tracking state. - - true - - -
-
-
- true -
- JSF:JAVADOC:5804 - - String - - jakarta.faces.validator.RegexValidator.getPattern -
-
-
- Return the ValueExpression that yields the regular expression pattern when evaluated. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5805 - - boolean - - jakarta.faces.validator.RegexValidator.initialStateMarked -
-
-
- Return true if delta state changes are being tracked, otherwise false - - true - - -
-
-
- true -
- JSF:JAVADOC:5806 - - boolean - - jakarta.faces.validator.RegexValidator.isTransient -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5807 - - void - - jakarta.faces.validator.RegexValidator.markInitialState -
-
-
- The runtime must ensure that the #markInitialState method is called on each instance of - this interface in the view at the appropriate time to indicate the component is in its initial - state. The implementor of the interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, after which time - initialStateMarked() must return false. Also, during the time that the instance returns true from - initialStateMarked(), the implementation must return only the state that has changed in its - implementation of StateHolder#saveState. - - true - - -
-
-
- true -
- JSF:JAVADOC:5808 - - RegexValidator - - jakarta.faces.validator.RegexValidator.RegexValidator -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5809 - - void - - jakarta.faces.validator.RegexValidator.restoreState -
- ( - FacesContext - , -
- Object - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5810 - - Object - - jakarta.faces.validator.RegexValidator.saveState -
- ( - FacesContext - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5811 - - void - - jakarta.faces.validator.RegexValidator.setPattern -
- ( - String - ) -
-
- The Regular Expression property to validate against. - - true - - -
-
-
- true -
- JSF:JAVADOC:5812 - - void - - jakarta.faces.validator.RegexValidator.setTransient -
- ( - boolean - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5813 - - void - - jakarta.faces.validator.RegexValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Validate a String against a regular expression pattern. The full regex pattern must be - matched in order to pass the validation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5814 - - void - - jakarta.faces.validator.RequiredValidator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Verify that the converted object value is not null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5815 - - void - - jakarta.faces.validator.Validator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) -
-
- Perform the correctness checks implemented by this Validator against the specified - UIComponent. If any violations are found, a ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant - with Version 2 and later of the specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An application-wide is provided - to allow validators designed for Jakarta Faces 1.2 to work with Jakarta Faces 2 and later. The - jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility - behavior. - - true - - -
-
-
- true -
- JSF:JAVADOC:5816 - - void - - jakarta.faces.validator.Validator.validate -
- ( - FacesContext - , -
- UIComponent - , -
- Object - ) - -
- throws - ValidatorException -
-
-
- if validation fails - - true - - -
-
-
- true -
- JSF:JAVADOC:5817 - - FacesMessage - - jakarta.faces.validator.ValidatorException.getFacesMessage -
-
-
- Returns the FacesMessage associated with the exception. If this instance was created - with a constructor that takes Collection, this method returns the first message in the Collection - - - true - - -
-
-
- true -
- JSF:JAVADOC:5818 - - Collection - - jakarta.faces.validator.ValidatorException.getFacesMessages -
-
-
- If this instance was created with a constructor that takes Collection, this method - returns the passed collection, otherwise this method returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5819 - - ValidatorException - - jakarta.faces.validator.ValidatorException.ValidatorException -
- ( - FacesMessage - ) -
-
- Construct a new exception with the specified message and no root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5820 - - ValidatorException - - jakarta.faces.validator.ValidatorException.ValidatorException -
- ( - Collection - ) -
-
- Allow this one exception to contain multiple messages. - - true - - -
-
-
- true -
- JSF:JAVADOC:5821 - - ValidatorException - - jakarta.faces.validator.ValidatorException.ValidatorException -
- ( - FacesMessage - , -
- Throwable - ) -
-
- Construct a new exception with the specified detail message and root cause. - - true - - -
-
-
- true -
- JSF:JAVADOC:5822 - - ValidatorException - - jakarta.faces.validator.ValidatorException.ValidatorException -
- ( - Collection - , -
- Throwable - ) -
-
- Allow this one exception to contain multiple messages, while passing on the root cause - to the superclass - - true - - -
-
-
- true -
- JSF:JAVADOC:5823 - - void - - jakarta.faces.view.AttachedObjectHandler.applyAttachedObject -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Take the argument parent and apply this attached object to it. The action taken varies - with class that implements one of the subinterfaces of this interface. - - true - - -
-
-
- true -
- JSF:JAVADOC:5824 - - String - - jakarta.faces.view.AttachedObjectHandler.getFor -
-
-
- Return the value of the "for" attribute specified by the page author on the tag for - this AttachedObjectHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5825 - - String - - jakarta.faces.view.AttachedObjectTarget.getName -
-
-
- Returns the name by which this attached object target is exposed to the page author. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5826 - - List - - jakarta.faces.view.AttachedObjectTarget.getTargets -
- ( - UIComponent - ) -
-
- Returns the List that this AttachedObjectTarget exposes. Each attached object exposed - by the composite component author may point at multiple UIComponent instances within the composite - component. This method is used by the - jakarta.faces.view.ViewDeclarationLanguage#retargetAttachedObjects method to take the appropriate - action on the attached object. - - true - - -
-
-
- true -
- JSF:JAVADOC:5827 - - String - - jakarta.faces.view.BehaviorHolderAttachedObjectHandler.getEventName -
-
-
- Return the client event name to which this behavior applies. - - true - - -
-
-
- true -
- JSF:JAVADOC:5828 - - boolean - - jakarta.faces.view.BehaviorHolderAttachedObjectTarget.isDefaultEvent -
-
-
- Returns whether the event set on this target is the default event, e.g. as set by a tag - via the "default" attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:5829 - - int - - jakarta.faces.view.Location.getColumn -
-
-
- Return the estimated character column. - - true - - -
-
-
- true -
- JSF:JAVADOC:5830 - - int - - jakarta.faces.view.Location.getLine -
-
-
- Return the line number in the page for this location. - - true - - -
-
-
- true -
- JSF:JAVADOC:5831 - - String - - jakarta.faces.view.Location.getPath -
-
-
- Return the file path to the page represented by this location. - - true - - -
-
-
- true -
- JSF:JAVADOC:5832 - - Location - - jakarta.faces.view.Location.Location -
- ( - String - , -
- int - , -
- int - ) -
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5833 - - String - - jakarta.faces.view.Location.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5834 - - UIViewRoot - - jakarta.faces.view.StateManagementStrategy.restoreView -
- ( - FacesContext - , -
- String - , -
- String - ) -
-
- Restore the state of the view with information in the request. The default - implementation must perform the following algorithm or its semantic equivalent. As in the case of - restore view on an initial request, the view metadata must be restored and properly handled as well. - Obtain the ViewMetadata for the current viewId, and from that call ViewMetadata#createMetadataView. - Store the resultant UIViewRoot in the FacesContext. Obtain the state of the UIViewRoot from the - state Object returned from jakarta.faces.render.ResponseStateManager#getState and pass that to - UIViewRoot#restoreViewScopeState. Build the view from the markup. For all components in the view - that do not have an explicitly assigned id in the markup, the values of those ids must be the same - as on an initial request for this view. This view will not contain any components programmatically - added during the previous lifecycle run, and it will contain components that were programmatically - deleted on the previous lifecycle run. Both of these cases must be handled. Call - jakarta.faces.render.ResponseStateManager#getState to obtain the data structure returned from the - previous call to #saveView. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For - each node, call jakarta.faces.component.UIComponent#restoreState, passing the state saved - corresponding to the current client id. Ensure that any programmatically deleted components are - removed. Ensure any programmatically added components are added. The implementation must ensure that - the jakarta.faces.component.UIComponent#restoreState method is called for each node in the tree, - except for those that were programmatically deleted on the previous run through the lifecycle. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5835 - - Object - - jakarta.faces.view.StateManagementStrategy.saveView -
- ( - FacesContext - ) -
-
- Return the state of the current view in an Object that implements Serializable and can - be passed to java.io.ObjectOutputStream.writeObject() without causing a - java.io.NotSerializableException to be thrown. The default implementation must perform the following - algorithm or its semantic equivalent, explicitly performing all the steps listed here. If the - UIViewRoot of the current view is marked transient, return null immediately. Traverse the view and - verify that each of the client ids are unique. Throw IllegalStateException if more than one client - id are the same. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For each node, - call jakarta.faces.component.UIComponent#saveState, saving the returned Object in a way such that it - can be restored given only its client id. Special care must be taken to handle the case of - components that were added or deleted programmatically during this lifecycle traversal, rather than - by the VDL. The implementation must ensure that the jakarta.faces.component.UIComponent#saveState - method is called for each node in the tree. The data structure used to save the state obtained by - executing the above algorithm must be Serializable, and all of the elements within the data - structure must also be Serializable. - - true - - -
-
-
- true -
- JSF:JAVADOC:5836 - - StateManagementStrategy - - jakarta.faces.view.StateManagementStrategy.StateManagementStrategy -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5837 - - void - - jakarta.faces.view.ViewDeclarationLanguage.buildView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Take any actions specific to this VDL implementation to cause the argument UIViewRoot - which must have been created via a call to #createView, to be populated with children. The Facelets - implementation must insure that markup comprising the view must be executed, with the - jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first - order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) - during the traversal. The runtime must guarantee that the view must be fully populated before any of - the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners - attached to the application is called The jakarta.faces.component.UIViewRoot phase listener - installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or - jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated - with children, the view must still be re-built, but care must be taken to ensure that the existing - components are correctly paired up with their VDL counterparts in the VDL page. Also, any system - events that would normally be generated during the adding or removing of components from the view - must be temporarily disabled during the creation of the view and then re-enabled when the view has - been built. - - true - - -
-
-
- true -
- JSF:JAVADOC:5838 - - void - - jakarta.faces.view.ViewDeclarationLanguage.buildView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- if view cannot be built for any reason - - true - - -
-
-
- true -
- JSF:JAVADOC:5839 - - List - - jakarta.faces.view.ViewDeclarationLanguage.calculateResourceLibraryContracts -
- ( - FacesContext - , -
- String - ) -
-
- Return the list of resource library contracts that will be made available for use in - the view specified by the argument viewId. If no match is found, return an empty list. See section - 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document - for the specification of the default implementation. For backward compatibility with prior - implementations, an implementation is provided that returns null, but any implementation compliant - with the version of the specification in which this method was introduced must implement it as - specified in section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces - Specification Document. - - true - - -
-
-
- true -
- JSF:JAVADOC:5840 - - UIComponent - - jakarta.faces.view.ViewDeclarationLanguage.createComponent -
- ( - FacesContext - , -
- String - , -
- String - , -
- Map - ) -
-
- Create a component given a ViewDeclarationLanguage specific tag library URI and tag - name. The runtime must support this method operating for the Facelets VDL. Other kinds of - ViewDeclarationLanguage may be supported but are not required to be supported. For backward - compatibility with decorated ViewDeclrationLanguage implementations that do not override this - method, a default implementation is provided that returns null. However, any implementation that is - compliant with the version of the specification in which this method was introduced must implement - this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5841 - - UIViewRoot - - jakarta.faces.view.ViewDeclarationLanguage.createView -
- ( - FacesContext - , -
- String - ) -
-
- Create a UIViewRoot from the VDL contained in the artifact referenced by the argument - viewId. See section 7.7.2"Default ViewDeclarationLanguage Implementation" of the Jakarta Faces - Specification Document for the specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5842 - - BeanInfo - - jakarta.faces.view.ViewDeclarationLanguage.getComponentMetadata -
- ( - FacesContext - , -
- Resource - ) -
-
- Return a reference to the component metadata for the composite component represented by - the argument componentResource, or null if the metadata cannot be found. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. Jakarta Server Pages implementations must throw - UnsupportedOperationException. - - true - - -
-
-
- true -
- JSF:JAVADOC:5843 - - String - - jakarta.faces.view.ViewDeclarationLanguage.getId -
-
-
- Returns a non-null String that can be used to identify this view declaration language. - The default implementation returns the fully qualified class name of the view declaration language - implementation. Subclasses may override to provide a more meaningful id. - - true - - -
-
-
- true -
- JSF:JAVADOC:5844 - - Resource - - jakarta.faces.view.ViewDeclarationLanguage.getScriptComponentResource -
- ( - FacesContext - , -
- Resource - ) -
-
- Take implementation specific action to discover a Resource given the argument - componentResource. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta - Faces Specification Document for the specification of the default implementation. Jakarta Server - Pages implementations must throw UnsupportedOperationException. - - true - - -
-
-
- true -
- JSF:JAVADOC:5845 - - StateManagementStrategy - - jakarta.faces.view.ViewDeclarationLanguage.getStateManagementStrategy -
- ( - FacesContext - , -
- String - ) -
-
- For implementations that want to control the implementation of state saving and - restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the - implementation wishes the runtime to handle the state saving and restoring. Implementations that - provide the VDL for Facelets for Jakarta Faces 2.0 and later must return non-null from this method. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5846 - - ViewMetadata - - jakarta.faces.view.ViewDeclarationLanguage.getViewMetadata -
- ( - FacesContext - , -
- String - ) -
-
- Return a reference to the view metadata for the view represented by the argument - viewId, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage - Implementation" of the Jakarta Faces Specification Document for the specification of the default - implementation. Facelets implementation must return non-null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5847 - - Stream - - jakarta.faces.view.ViewDeclarationLanguage.getViews -
- ( - FacesContext - , -
- String - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view tree rooted at a given - initial path. The view tree is traversed breadth-first, the elements in the stream are logical view - ids. This method works as if invoking it were equivalent to evaluating the expression: - getViewResources(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all - levels of the resource tree. - - true - - -
-
-
- true -
- JSF:JAVADOC:5848 - - Stream - - jakarta.faces.view.ViewDeclarationLanguage.getViews -
- ( - FacesContext - , -
- String - , -
- int - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view tree rooted at a given - initial path. The view tree is traversed breadth-first, the elements in the stream are logical view - ids. The maxDepth parameter is the maximum depth of directory levels to visit beyond the initial - path, which is always visited. The value is relative to the root (/), not to the given initial path. - E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / - counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of - the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE - may be used to indicate that all levels should be visited. - - true - - -
-
-
- true -
- JSF:JAVADOC:5849 - - void - - jakarta.faces.view.ViewDeclarationLanguage.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Render a view rooted at argumentview. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5850 - - void - - jakarta.faces.view.ViewDeclarationLanguage.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- if the view cannot be rendered for any reason - - true - - -
-
-
- true -
- JSF:JAVADOC:5851 - - UIViewRoot - - jakarta.faces.view.ViewDeclarationLanguage.restoreView -
- ( - FacesContext - , -
- String - ) -
-
- Restore a UIViewRoot from a previously created view. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5852 - - void - - jakarta.faces.view.ViewDeclarationLanguage.retargetAttachedObjects -
- ( - FacesContext - , -
- UIComponent - , -
- List - ) -
-
- Assuming the component metadata for argument topLevelComponent has been made available - by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata - for the purpose of re-targeting attached objects from the top level composite component to the - individual AttachedObjectTarget instances inside the composite component. This method must be called - by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite - component usage is encountered. An algorithm semantically equivalent to the following must be - implemented. Obtain the metadata for the composite component. Currently this entails getting the - value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If - the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the - BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the - BeanDescriptor's getValue() method. This will be a List lt;AttachedObjectTarget gt;. Let this be - targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return - from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the - following items that causes a match will take this action: For each UIComponent in the list returned - from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the - UIComponent. and cause this inner loop to terminate. If curHandler is an instance of - ActionSource2AttachedObjectHandler and curTarget is an instance of - ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a - match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an - instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to - curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler - and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to - curTargetName, consider it a match. If curHandler is an instance of - BehaviorHolderAttachedObjectHandler and curTarget is an instance of - BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, - curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is - null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support - retargeting attached objects from the top level compsite component to targets that are composite and - non-composite components. An implementation is provided that will throw - UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the - specification must override this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5853 - - void - - jakarta.faces.view.ViewDeclarationLanguage.retargetMethodExpressions -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Assuming the component metadata for argument topLevelComponent has been made available - by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata - for the purpose of re-targeting any method expressions from the top level component to the - appropriate inner component. For each attribute that is a MethodExpression (as indicated by the - presence of a "method-signature" attribute and the absence of a "type" attribute), the following - action must be taken: Get the value of the targets attribute. If the value is a ValueExpression - evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated - value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For - each entry in the list: Find the inner component of the topLevelComponent with the id equal to the - current list entry. For discussion, this component is called target. If not found, log and error and - continue to the next attribute. For discussion the declared name of the attribute is called name. In - the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result - is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error - and continue to the next attribute. If name is equal to the string "action", or "actionListener" - without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to - the string "validator", or "valueChangeListener" without the quotes, assume target is an - jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the - attributeValueExpression and use that string to create a MethodExpression of the appropriate - signature for name. If name is not equal to any of the previously listed strings, call - getExpressionString() on the attributeValueExpression and use that string to create a - MethodExpression where the signature is created based on the value of the "method-signature" - attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for - discussion. If name is equal to the string "action" without the quotes, call - jakarta.faces.component.ActionSource2#setActionExpression on target, passing - attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call - jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression - wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string - "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on - target, passing attributeMethodExpression wrapped in a - jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string - "valueChangeListener" without the quotes, call - jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing - attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. - Otherwise, assume that the MethodExpression should be placed in the components attribute set. The - runtme must create the MethodExpression instance based on the value of the "method-signature" - attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces - implementation compliant with version 2.0 and beyond of the specification must override this method. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5854 - - ViewDeclarationLanguage - - jakarta.faces.view.ViewDeclarationLanguage.ViewDeclarationLanguage -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5855 - - boolean - - jakarta.faces.view.ViewDeclarationLanguage.viewExists -
- ( - FacesContext - , -
- String - ) -
-
- Tests whether a physical resource corresponding to the specified viewId exists. The - default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate - the physical resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:5856 - - List - - jakarta.faces.view.ViewDeclarationLanguageFactory.getAllViewDeclarationLanguages -
-
-
- Gets the list of all view declaration languages supported by this runtime. - - true - - -
-
-
- true -
- JSF:JAVADOC:5857 - - ViewDeclarationLanguage - - jakarta.faces.view.ViewDeclarationLanguageFactory.getViewDeclarationLanguage -
- ( - String - ) -
-
- Return the ViewDeclarationLanguage instance suitable for handling the VDL contained in - the page referenced by the argument viewId. The default implementation must return a valid - ViewDeclarationLanguage instance for views written in either Jakarta Server Pages, Faces XML Views, - or Facelets for Jakarta Faces 2. - - true - - -
-
-
- true -
- JSF:JAVADOC:5858 - - ViewDeclarationLanguageFactory - - jakarta.faces.view.ViewDeclarationLanguageFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5859 - - ViewDeclarationLanguageFactory - - jakarta.faces.view.ViewDeclarationLanguageFactory.ViewDeclarationLanguageFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5860 - - ViewDeclarationLanguageFactory - - jakarta.faces.view.ViewDeclarationLanguageFactory.ViewDeclarationLanguageFactory -
- ( - ViewDeclarationLanguageFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5861 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.buildView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Take any actions specific to this VDL implementation to cause the argument UIViewRoot - which must have been created via a call to #createView, to be populated with children. The Facelets - implementation must insure that markup comprising the view must be executed, with the - jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first - order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) - during the traversal. The runtime must guarantee that the view must be fully populated before any of - the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners - attached to the application is called The jakarta.faces.component.UIViewRoot phase listener - installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or - jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated - with children, the view must still be re-built, but care must be taken to ensure that the existing - components are correctly paired up with their VDL counterparts in the VDL page. Also, any system - events that would normally be generated during the adding or removing of components from the view - must be temporarily disabled during the creation of the view and then re-enabled when the view has - been built. - - true - - -
-
-
- true -
- JSF:JAVADOC:5862 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.buildView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- if view cannot be built for any reason - - true - - -
-
-
- true -
- JSF:JAVADOC:5863 - - List - - jakarta.faces.view.ViewDeclarationLanguageWrapper.calculateResourceLibraryContracts -
- ( - FacesContext - , -
- String - ) -
-
- Return the list of resource library contracts that will be made available for use in - the view specified by the argument viewId. If no match is found, return an empty list. See section - 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document - for the specification of the default implementation. For backward compatibility with prior - implementations, an implementation is provided that returns null, but any implementation compliant - with the version of the specification in which this method was introduced must implement it as - specified in section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces - Specification Document. - - true - - -
-
-
- true -
- JSF:JAVADOC:5864 - - UIComponent - - jakarta.faces.view.ViewDeclarationLanguageWrapper.createComponent -
- ( - FacesContext - , -
- String - , -
- String - , -
- Map - ) -
-
- Create a component given a ViewDeclarationLanguage specific tag library URI and tag - name. The runtime must support this method operating for the Facelets VDL. Other kinds of - ViewDeclarationLanguage may be supported but are not required to be supported. For backward - compatibility with decorated ViewDeclrationLanguage implementations that do not override this - method, a default implementation is provided that returns null. However, any implementation that is - compliant with the version of the specification in which this method was introduced must implement - this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5865 - - UIViewRoot - - jakarta.faces.view.ViewDeclarationLanguageWrapper.createView -
- ( - FacesContext - , -
- String - ) -
-
- Create a UIViewRoot from the VDL contained in the artifact referenced by the argument - viewId. See section 7.7.2"Default ViewDeclarationLanguage Implementation" of the Jakarta Faces - Specification Document for the specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5866 - - BeanInfo - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getComponentMetadata -
- ( - FacesContext - , -
- Resource - ) -
-
- Return a reference to the component metadata for the composite component represented by - the argument componentResource, or null if the metadata cannot be found. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. Jakarta Server Pages implementations must throw - UnsupportedOperationException. - - true - - -
-
-
- true -
- JSF:JAVADOC:5867 - - String - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getId -
-
-
- Returns a non-null String that can be used to identify this view declaration language. - The default implementation returns the fully qualified class name of the view declaration language - implementation. Subclasses may override to provide a more meaningful id. - - true - - -
-
-
- true -
- JSF:JAVADOC:5868 - - Resource - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getScriptComponentResource -
- ( - FacesContext - , -
- Resource - ) -
-
- Take implementation specific action to discover a Resource given the argument - componentResource. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta - Faces Specification Document for the specification of the default implementation. Jakarta Server - Pages implementations must throw UnsupportedOperationException. - - true - - -
-
-
- true -
- JSF:JAVADOC:5869 - - StateManagementStrategy - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getStateManagementStrategy -
- ( - FacesContext - , -
- String - ) -
-
- For implementations that want to control the implementation of state saving and - restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the - implementation wishes the runtime to handle the state saving and restoring. Implementations that - provide the VDL for Facelets for Jakarta Faces 2.0 and later must return non-null from this method. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5870 - - ViewMetadata - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getViewMetadata -
- ( - FacesContext - , -
- String - ) -
-
- Return a reference to the view metadata for the view represented by the argument - viewId, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage - Implementation" of the Jakarta Faces Specification Document for the specification of the default - implementation. Facelets implementation must return non-null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5871 - - Stream - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getViews -
- ( - FacesContext - , -
- String - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view tree rooted at a given - initial path. The view tree is traversed breadth-first, the elements in the stream are logical view - ids. This method works as if invoking it were equivalent to evaluating the expression: - getViewResources(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all - levels of the resource tree. - - true - - -
-
-
- true -
- JSF:JAVADOC:5872 - - Stream - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getViews -
- ( - FacesContext - , -
- String - , -
- int - , -
- ViewVisitOption[] - ) -
-
- Return a Stream possibly lazily populated by walking the view tree rooted at a given - initial path. The view tree is traversed breadth-first, the elements in the stream are logical view - ids. The maxDepth parameter is the maximum depth of directory levels to visit beyond the initial - path, which is always visited. The value is relative to the root (/), not to the given initial path. - E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / - counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of - the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE - may be used to indicate that all levels should be visited. - - true - - -
-
-
- true -
- JSF:JAVADOC:5873 - - ViewDeclarationLanguage - - jakarta.faces.view.ViewDeclarationLanguageWrapper.getWrapped -
-
-
- A class that implements this interface uses this method to return an instance of the - class being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5874 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) -
-
- Render a view rooted at argumentview. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5875 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.renderView -
- ( - FacesContext - , -
- UIViewRoot - ) - -
- throws - IOException -
-
-
- if the view cannot be rendered for any reason - - true - - -
-
-
- true -
- JSF:JAVADOC:5876 - - UIViewRoot - - jakarta.faces.view.ViewDeclarationLanguageWrapper.restoreView -
- ( - FacesContext - , -
- String - ) -
-
- Restore a UIViewRoot from a previously created view. See section 7.7.2 "Default - ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the - specification of the default implementation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5877 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.retargetAttachedObjects -
- ( - FacesContext - , -
- UIComponent - , -
- List - ) -
-
- Assuming the component metadata for argument topLevelComponent has been made available - by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata - for the purpose of re-targeting attached objects from the top level composite component to the - individual AttachedObjectTarget instances inside the composite component. This method must be called - by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite - component usage is encountered. An algorithm semantically equivalent to the following must be - implemented. Obtain the metadata for the composite component. Currently this entails getting the - value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If - the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the - BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the - BeanDescriptor's getValue() method. This will be a List lt;AttachedObjectTarget gt;. Let this be - targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return - from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the - following items that causes a match will take this action: For each UIComponent in the list returned - from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the - UIComponent. and cause this inner loop to terminate. If curHandler is an instance of - ActionSource2AttachedObjectHandler and curTarget is an instance of - ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a - match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an - instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to - curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler - and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to - curTargetName, consider it a match. If curHandler is an instance of - BehaviorHolderAttachedObjectHandler and curTarget is an instance of - BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, - curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is - null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support - retargeting attached objects from the top level compsite component to targets that are composite and - non-composite components. An implementation is provided that will throw - UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the - specification must override this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5878 - - void - - jakarta.faces.view.ViewDeclarationLanguageWrapper.retargetMethodExpressions -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Assuming the component metadata for argument topLevelComponent has been made available - by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata - for the purpose of re-targeting any method expressions from the top level component to the - appropriate inner component. For each attribute that is a MethodExpression (as indicated by the - presence of a "method-signature" attribute and the absence of a "type" attribute), the following - action must be taken: Get the value of the targets attribute. If the value is a ValueExpression - evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated - value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For - each entry in the list: Find the inner component of the topLevelComponent with the id equal to the - current list entry. For discussion, this component is called target. If not found, log and error and - continue to the next attribute. For discussion the declared name of the attribute is called name. In - the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result - is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error - and continue to the next attribute. If name is equal to the string "action", or "actionListener" - without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to - the string "validator", or "valueChangeListener" without the quotes, assume target is an - jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the - attributeValueExpression and use that string to create a MethodExpression of the appropriate - signature for name. If name is not equal to any of the previously listed strings, call - getExpressionString() on the attributeValueExpression and use that string to create a - MethodExpression where the signature is created based on the value of the "method-signature" - attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for - discussion. If name is equal to the string "action" without the quotes, call - jakarta.faces.component.ActionSource2#setActionExpression on target, passing - attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call - jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression - wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string - "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on - target, passing attributeMethodExpression wrapped in a - jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string - "valueChangeListener" without the quotes, call - jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing - attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. - Otherwise, assume that the MethodExpression should be placed in the components attribute set. The - runtme must create the MethodExpression instance based on the value of the "method-signature" - attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces - implementation compliant with version 2.0 and beyond of the specification must override this method. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5879 - - ViewDeclarationLanguageWrapper - - jakarta.faces.view.ViewDeclarationLanguageWrapper.ViewDeclarationLanguageWrapper -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5880 - - ViewDeclarationLanguageWrapper - - jakarta.faces.view.ViewDeclarationLanguageWrapper.ViewDeclarationLanguageWrapper -
- ( - ViewDeclarationLanguage - ) -
-
- If this view declaration language has been decorated, the implementation doing the - decorating should push the implementation being wrapped to this constructor. The #getWrapped() will - then return the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5881 - - boolean - - jakarta.faces.view.ViewDeclarationLanguageWrapper.viewExists -
- ( - FacesContext - , -
- String - ) -
-
- Tests whether a physical resource corresponding to the specified viewId exists. The - default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate - the physical resource. - - true - - -
-
-
- true -
- JSF:JAVADOC:5882 - - UIViewRoot - - jakarta.faces.view.ViewMetadata.createMetadataView -
- ( - FacesContext - ) -
-
- Creates a new UIViewRoot containing only view parameter metadata. The processing of - building this UIViewRoot with metadata should not cause any events to be published to the - application. The implementation must call FacesContext#setProcessingEvents passing false as the - argument, at the beginning of the method, and pass true to the same method at the end. The - implementation must ensure that this happens regardless of ant exceptions that may be thrown. Take - note a compliant implementation has to ensure that: the new UIViewRoot must be set as the - FacesContext's viewRoot before applying the tag handlers, restoring the old FacesContext in a - finally block. The contents of the current UIViewRoot's ViewMap must be copied to the ViewMap of the - new UIViewRoot before applying the tag handlers. The UIImportConstants must be processed after - applying the tag handlers. - - true - - -
-
-
- true -
- JSF:JAVADOC:5883 - - Collection - - jakarta.faces.view.ViewMetadata.getImportConstants -
- ( - UIViewRoot - ) -
-
- Utility method to extract view metadata from the provided UIViewRoot. - - true - - -
-
-
- true -
- JSF:JAVADOC:5884 - - Collection - - jakarta.faces.view.ViewMetadata.getViewActions -
- ( - UIViewRoot - ) -
-
- Utility method to extract view metadata from the provided UIViewRoot. - - true - - -
-
-
- true -
- JSF:JAVADOC:5885 - - String - - jakarta.faces.view.ViewMetadata.getViewId -
-
-
- Get the view id - - true - - -
-
-
- true -
- JSF:JAVADOC:5886 - - Collection - - jakarta.faces.view.ViewMetadata.getViewParameters -
- ( - UIViewRoot - ) -
-
- Utility method to extract view metadata from the provided UIViewRoot. - - true - - -
-
-
- true -
- JSF:JAVADOC:5887 - - boolean - - jakarta.faces.view.ViewMetadata.hasMetadata -
- ( - UIViewRoot - ) -
-
- Utility method to determine if the the provided UIViewRoot has metadata. The default - implementation will return true if the provided UIViewRoot has a facet named - UIViewRoot#METADATA_FACET_NAME and that facet has children. It will return false otherwise. - - true - - -
-
-
- true -
- JSF:JAVADOC:5888 - - ViewMetadata - - jakarta.faces.view.ViewMetadata.ViewMetadata -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5889 - - String - - jakarta.faces.view.facelets.AttributeHandler.getAttributeName -
- ( - FaceletContext - ) -
-
- Returns the resolved literal String value of the attribute name after evaluating EL. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5890 - - String - - jakarta.faces.view.facelets.BehaviorConfig.getBehaviorId -
-
-
- Return the value of the behavior-id. - - true - - -
-
-
- true -
- JSF:JAVADOC:5891 - - BehaviorHandler - - jakarta.faces.view.facelets.BehaviorHandler.BehaviorHandler -
- ( - BehaviorConfig - ) -
-
- Constructs the handler using the Id from the config. - - true - - -
-
-
- true -
- JSF:JAVADOC:5892 - - String - - jakarta.faces.view.facelets.BehaviorHandler.getBehaviorId -
-
-
- Returns the behavior Id obtained from the passed-in config. - - true - - -
-
-
- true -
- JSF:JAVADOC:5893 - - TagAttribute - - jakarta.faces.view.facelets.BehaviorHandler.getEvent -
-
-
- Returns the event that is set as the "event" attribute on the behavior tag. - - true - - -
-
-
- true -
- JSF:JAVADOC:5894 - - String - - jakarta.faces.view.facelets.BehaviorHandler.getEventName -
-
-
- Return the client event name to which this behavior applies. - - true - - -
-
-
- true -
- JSF:JAVADOC:5895 - - String - - jakarta.faces.view.facelets.ComponentConfig.getComponentType -
-
-
- ComponentType to pass to the Application. Cannot be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5896 - - String - - jakarta.faces.view.facelets.ComponentConfig.getRendererType -
-
-
- RendererType to set on created UIComponent instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:5897 - - ComponentHandler - - jakarta.faces.view.facelets.ComponentHandler.ComponentHandler -
- ( - ComponentConfig - ) -
-
- Leverage the TagHandlerDelegateFactory provided by the implementation to create an - instance of TagHandlerDelegate designed for use with ComponentHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5898 - - UIComponent - - jakarta.faces.view.facelets.ComponentHandler.createComponent -
- ( - FaceletContext - ) -
-
- Subclasses that wish to take over the task of instantiating the UIComponent instance - corresponding to this tag handler my override this method to do so. A null return from this method - will cause the TagHandlerDelegate for instance to create the component instead. - - true - - -
-
-
- true -
- JSF:JAVADOC:5899 - - ComponentConfig - - jakarta.faces.view.facelets.ComponentHandler.getComponentConfig -
-
-
- Returns the component configuration, a component-type/renderer-type pair. - - true - - -
-
-
- true -
- JSF:JAVADOC:5900 - - boolean - - jakarta.faces.view.facelets.ComponentHandler.isNew -
- ( - UIComponent - ) -
-
- Determine if the passed component is not null and if it's new to the tree. This - operation can be used for determining if attributes should be wired to the component. - - true - - -
-
-
- true -
- JSF:JAVADOC:5901 - - void - - jakarta.faces.view.facelets.ComponentHandler.onComponentCreated -
- ( - FaceletContext - , -
- UIComponent - , -
- UIComponent - ) -
-
- This method is guaranteed to be called after the component has been created but before - it has been populated with children. - - true - - -
-
-
- true -
- JSF:JAVADOC:5902 - - void - - jakarta.faces.view.facelets.ComponentHandler.onComponentPopulated -
- ( - FaceletContext - , -
- UIComponent - , -
- UIComponent - ) -
-
- This method is guaranteed to be called after the component has been populated with - children. - - true - - -
-
-
- true -
- JSF:JAVADOC:5903 - - void - - jakarta.faces.view.facelets.CompositeFaceletHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) -
-
- Calls apply on any child handlers. - - true - - -
-
-
- true -
- JSF:JAVADOC:5904 - - void - - jakarta.faces.view.facelets.CompositeFaceletHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5905 - - CompositeFaceletHandler - - jakarta.faces.view.facelets.CompositeFaceletHandler.CompositeFaceletHandler -
- ( - FaceletHandler[] - ) -
-
- Creates a new FaceletHandler out of the given inner FaceletHandlers. - - true - - -
-
-
- true -
- JSF:JAVADOC:5906 - - FaceletHandler[] - - jakarta.faces.view.facelets.CompositeFaceletHandler.getHandlers -
-
-
- Returns the array of child handlers contained by this handler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5907 - - String - - jakarta.faces.view.facelets.ConverterConfig.getConverterId -
-
-
- Return the converter id to be used in instantiating this converter - - true - - -
-
-
- true -
- JSF:JAVADOC:5908 - - ConverterHandler - - jakarta.faces.view.facelets.ConverterHandler.ConverterHandler -
- ( - ConverterConfig - ) -
-
- Creates a new ConverterHandler using the given config. - - true - - -
-
-
- true -
- JSF:JAVADOC:5909 - - String - - jakarta.faces.view.facelets.ConverterHandler.getConverterId -
- ( - FaceletContext - ) -
-
- Returns the converter Id. The converter Id is taken from the attribute "converterId" - - - true - - -
-
-
- true -
- JSF:JAVADOC:5910 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) -
-
- The default implementation simply calls through to TagHandlerDelegate#apply. - - true - - -
-
-
- true -
- JSF:JAVADOC:5911 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5912 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler -
- ( - FaceletContext - , -
- UIComponent - ) -
-
- Invoke the apply() method on this instance's TagHandler#nextHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5913 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if thrown by the next FaceletHandler - - true - - -
-
-
- true -
- JSF:JAVADOC:5914 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - FacesException -
-
-
- if thrown by the next FaceletHandler - - true - - -
-
-
- true -
- JSF:JAVADOC:5915 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - ELException -
-
-
- if thrown by the next FaceletHandler - - true - - -
-
-
- true -
- JSF:JAVADOC:5916 - - DelegatingMetaTagHandler - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.DelegatingMetaTagHandler -
- ( - TagConfig - ) -
-
- Instantiates this handler with the given config. - - true - - -
-
-
- true -
- JSF:JAVADOC:5917 - - TagAttribute - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.getBinding -
-
-
- Return the "binding" attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:5918 - - Tag - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.getTag -
-
-
- Return a reference to the Tag instance corresponding to this TagHandler instance. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5919 - - TagAttribute - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagAttribute -
- ( - String - ) -
-
- Return the named attribute from the tag attributes. - - true - - -
-
-
- true -
- JSF:JAVADOC:5920 - - String - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagId -
-
-
- Return the tag id from the TagConfig used to instantiate this handler. - - true - - -
-
-
- true -
- JSF:JAVADOC:5921 - - boolean - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.isDisabled -
- ( - FaceletContext - ) -
-
- Returns the value of the "disabled" attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:5922 - - void - - jakarta.faces.view.facelets.DelegatingMetaTagHandler.setAttributes -
- ( - FaceletContext - , -
- Object - ) -
-
- Invoking/extending this method will cause the results of the created MetaRuleset to - auto-wire state to the passed instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5923 - - void - - jakarta.faces.view.facelets.Facelet.apply -
- ( - FacesContext - , -
- UIComponent - ) -
-
- The passed UIComponent parent will be populated/restored in accordance with the section - 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" - in the Jakarta Faces Specification Document. - - true - - -
-
-
- true -
- JSF:JAVADOC:5924 - - void - - jakarta.faces.view.facelets.Facelet.apply -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if unable to load a file necessary to apply this Facelet - - true - - -
-
-
- true -
- JSF:JAVADOC:5925 - - void - - jakarta.faces.view.facelets.Facelet.applyMetadata -
- ( - FacesContext - , -
- UIComponent - ) -
-
- The passed UIComponent parent will be populated/restored in accordance with the section - 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" - in the Jakarta Faces Specification Document with only the meta data as per the f:metadata tag. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5926 - - void - - jakarta.faces.view.facelets.Facelet.applyMetadata -
- ( - FacesContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if unable to load a file necessary to apply this Facelet - - true - - -
-
-
- true -
- JSF:JAVADOC:5927 - - Facelet - - jakarta.faces.view.facelets.Facelet.Facelet -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5928 - - FaceletCache - - jakarta.faces.view.facelets.FaceletCache.FaceletCache -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5929 - - Object - - jakarta.faces.view.facelets.FaceletCache.getFacelet -
- ( - URL - ) -
-
- Returns a cached Facelet instance. If no instance is available, it will be created - using the Facelet MemberFactory and stored in the cache. - - true - - -
-
-
- true -
- JSF:JAVADOC:5930 - - Object - - jakarta.faces.view.facelets.FaceletCache.getFacelet -
- ( - URL - ) - -
- throws - IOException -
-
-
- if unable to load a file necessary to respond to service this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5931 - - Object - - jakarta.faces.view.facelets.FaceletCache.getViewMetadataFacelet -
- ( - URL - ) -
-
- Returns a cached View Metadata Facelet instance. If no instance is available, it will - be created using the View Metadata Facelet MemberFactory and stored in the cache. - - true - - -
-
-
- true -
- JSF:JAVADOC:5932 - - Object - - jakarta.faces.view.facelets.FaceletCache.getViewMetadataFacelet -
- ( - URL - ) - -
- throws - IOException -
-
-
- if unable to load a file necessary to respond to service this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5933 - - boolean - - jakarta.faces.view.facelets.FaceletCache.isFaceletCached -
- ( - URL - ) -
-
- Determines whether a cached Facelet instance exists for this URL. Returns true if a - cached instance exists, false otherwise - - true - - -
-
-
- true -
- JSF:JAVADOC:5934 - - boolean - - jakarta.faces.view.facelets.FaceletCache.isViewMetadataFaceletCached -
- ( - URL - ) -
-
- Determines whether a cached View Metadata Facelet instance exists for this URL. Returns - true if a cached instance exists, false otherwise - - true - - -
-
-
- true -
- JSF:JAVADOC:5935 - - void - - jakarta.faces.view.facelets.FaceletCache.setCacheFactories -
- ( - MemberFactory - , -
- MemberFactory - ) -
-
- This must be called by the runtime at startup time, before any requests are serviced, - and allows for the FaceletCache implementation to provide the MemberFactory instances that will be - used to create instances of Facelets and View Metadata Facelets. - - true - - -
-
-
- true -
- JSF:JAVADOC:5936 - - Object - - jakarta.faces.view.facelets.FaceletCache.MemberFactory.newInstance -
- ( - URL - ) -
-
- Create a Facelet or View Metadata Facelet (depending on the type of factory this is) - for the argument URL. - - true - - -
-
-
- true -
- JSF:JAVADOC:5937 - - Object - - jakarta.faces.view.facelets.FaceletCache.MemberFactory.newInstance -
- ( - URL - ) - -
- throws - IOException -
-
-
- if unable to load a file necessary to respond to service this method. - - true - - -
-
-
- true -
- JSF:JAVADOC:5938 - - FaceletCacheFactory - - jakarta.faces.view.facelets.FaceletCacheFactory.FaceletCacheFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:5939 - - FaceletCacheFactory - - jakarta.faces.view.facelets.FaceletCacheFactory.FaceletCacheFactory -
- ( - FaceletCacheFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5940 - - FaceletCache - - jakarta.faces.view.facelets.FaceletCacheFactory.getFaceletCache -
-
-
- Returns the facility by which the Facelets jakarta.faces.view.ViewDeclarationLanguage - creates and caches instances of Facelets. - - true - - -
-
-
- true -
- JSF:JAVADOC:5941 - - FaceletCacheFactory - - jakarta.faces.view.facelets.FaceletCacheFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:5942 - - FaceletContext - - jakarta.faces.view.facelets.FaceletContext.FaceletContext -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5943 - - String - - jakarta.faces.view.facelets.FaceletContext.generateUniqueId -
- ( - String - ) -
-
- Generate a unique ID for the passed String - - true - - -
-
-
- true -
- JSF:JAVADOC:5944 - - Object - - jakarta.faces.view.facelets.FaceletContext.getAttribute -
- ( - String - ) -
-
- Return an attribute set by a previous call to #setAttribute. Support method which is - backed by the current VariableMapper - - true - - -
-
-
- true -
- JSF:JAVADOC:5945 - - ExpressionFactory - - jakarta.faces.view.facelets.FaceletContext.getExpressionFactory -
-
-
- The ExpressionFactory to use within the Facelet this context is executing upon. Must - not be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5946 - - FacesContext - - jakarta.faces.view.facelets.FaceletContext.getFacesContext -
-
-
- The current FacesContext bound to this "request". Must not be null. - - true - - -
-
-
- true -
- JSF:JAVADOC:5947 - - void - - jakarta.faces.view.facelets.FaceletContext.includeFacelet -
- ( - UIComponent - , -
- String - ) -
-
- Include another Facelet defined at some path, relative to the executing context, not - the current Facelet (same as include directive in Jakarta Server Pages) - - true - - -
-
-
- true -
- JSF:JAVADOC:5948 - - void - - jakarta.faces.view.facelets.FaceletContext.includeFacelet -
- ( - UIComponent - , -
- String - ) - -
- throws - IOException -
-
-
- if unable to load relativePath - - true - - -
-
-
- true -
- JSF:JAVADOC:5949 - - void - - jakarta.faces.view.facelets.FaceletContext.includeFacelet -
- ( - UIComponent - , -
- URL - ) -
-
- Include another Facelet defined at some path, absolute to this ClassLoader/OS - - true - - -
-
-
- true -
- JSF:JAVADOC:5950 - - void - - jakarta.faces.view.facelets.FaceletContext.includeFacelet -
- ( - UIComponent - , -
- URL - ) - -
- throws - IOException -
-
-
- if unable to load relativePath - - true - - -
-
-
- true -
- JSF:JAVADOC:5951 - - void - - jakarta.faces.view.facelets.FaceletContext.setAttribute -
- ( - String - , -
- Object - ) -
-
- Support method which is backed by the current VariableMapper. - - true - - -
-
-
- true -
- JSF:JAVADOC:5952 - - void - - jakarta.faces.view.facelets.FaceletContext.setFunctionMapper -
- ( - FunctionMapper - ) -
-
- Set the FunctionMapper to use in EL evaluation/creation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5953 - - void - - jakarta.faces.view.facelets.FaceletContext.setVariableMapper -
- ( - VariableMapper - ) -
-
- Set the VariableMapper to use in EL evaluation/creation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5954 - - FaceletException - - jakarta.faces.view.facelets.FaceletException.FaceletException -
-
-
- Create an empty FaceletException. - - true - - -
-
-
- true -
- JSF:JAVADOC:5955 - - FaceletException - - jakarta.faces.view.facelets.FaceletException.FaceletException -
- ( - String - ) -
-
- Create a FaceletException with argument message as the message. - - true - - -
-
-
- true -
- JSF:JAVADOC:5956 - - FaceletException - - jakarta.faces.view.facelets.FaceletException.FaceletException -
- ( - Throwable - ) -
-
- Wrap argument cause within this FaceletException instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:5957 - - FaceletException - - jakarta.faces.view.facelets.FaceletException.FaceletException -
- ( - String - , -
- Throwable - ) -
-
- Wrap argument cause in a FaceletException instance, with a message given by the - argument message. - - true - - -
-
-
- true -
- JSF:JAVADOC:5958 - - void - - jakarta.faces.view.facelets.FaceletHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) -
-
- Process changes on a particular UIComponent - - true - - -
-
-
- true -
- JSF:JAVADOC:5959 - - void - - jakarta.faces.view.facelets.FaceletHandler.apply -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if unable to load relativePath - - true - - -
-
-
- true -
- JSF:JAVADOC:5960 - - void - - jakarta.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject -
- ( - FacesContext - , -
- UIComponent - ) -
-
- Take the necessary actions to apply the attached object represented by the tag for the - concrete subclass of this class to the argument parent. - - true - - -
-
-
- true -
- JSF:JAVADOC:5961 - - FaceletsAttachedObjectHandler - - jakarta.faces.view.facelets.FaceletsAttachedObjectHandler.FaceletsAttachedObjectHandler -
- ( - TagConfig - ) -
-
- Call through to super - - true - - -
-
-
- true -
- JSF:JAVADOC:5962 - - String - - jakarta.faces.view.facelets.FaceletsAttachedObjectHandler.getFor -
-
-
- Return the value of the "for" attribute. This enables the runtime to know to which - inner component this attached object should be retargeted. - - true - - -
-
-
- true -
- JSF:JAVADOC:5963 - - String - - jakarta.faces.view.facelets.FacetHandler.getFacetName -
- ( - FaceletContext - ) -
-
- Returns the resolved literal String value of the facet name after evaluating EL. - - true - - -
-
-
- true -
- JSF:JAVADOC:5964 - - void - - jakarta.faces.view.facelets.Metadata.applyMetadata -
- ( - FaceletContext - , -
- Object - ) -
-
- Take the action prescribed in the Jakarta Faces Specification for this particular VDL - element attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:5965 - - Metadata - - jakarta.faces.view.facelets.Metadata.Metadata -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5966 - - PropertyDescriptor - - jakarta.faces.view.facelets.MetadataTarget.getProperty -
- ( - String - ) -
-
- Return a beans PropertyDescriptor for the property with name given by argument name. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5967 - - Class - - jakarta.faces.view.facelets.MetadataTarget.getPropertyType -
- ( - String - ) -
-
- Return a Class for the property with name given by argument name. - - true - - -
-
-
- true -
- JSF:JAVADOC:5968 - - Method - - jakarta.faces.view.facelets.MetadataTarget.getReadMethod -
- ( - String - ) -
-
- Return a Method for the getter of the property with name given by argument name. - - true - - -
-
-
- true -
- JSF:JAVADOC:5969 - - Class - - jakarta.faces.view.facelets.MetadataTarget.getTargetClass -
-
-
- Return the Class of the metadata target. - - true - - -
-
-
- true -
- JSF:JAVADOC:5970 - - Method - - jakarta.faces.view.facelets.MetadataTarget.getWriteMethod -
- ( - String - ) -
-
- Return a Method for the setter of the property with name given by argument name. - - true - - -
-
-
- true -
- JSF:JAVADOC:5971 - - boolean - - jakarta.faces.view.facelets.MetadataTarget.isTargetInstanceOf -
- ( - Class - ) -
-
- Return true if the target for this metadata element is an instance of the argument - type. - - true - - -
-
-
- true -
- JSF:JAVADOC:5972 - - MetadataTarget - - jakarta.faces.view.facelets.MetadataTarget.MetadataTarget -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5973 - - Metadata - - jakarta.faces.view.facelets.MetaRule.applyRule -
- ( - String - , -
- TagAttribute - , -
- MetadataTarget - ) -
-
- Return an abstraction that takes appropriate action given the kind of rule represented - by the argument name, in the context of this particular concrete subclass of MetaRule. The - abstraction must encapsulate the value from the argument attribute. - - true - - -
-
-
- true -
- JSF:JAVADOC:5974 - - MetaRule - - jakarta.faces.view.facelets.MetaRule.MetaRule -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5975 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.add -
- ( - Metadata - ) -
-
- Add another Metadata to this ruleset, returning this. - - true - - -
-
-
- true -
- JSF:JAVADOC:5976 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.addRule -
- ( - MetaRule - ) -
-
- Add another MetaRule to this ruleset, returning this. - - true - - -
-
-
- true -
- JSF:JAVADOC:5977 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.alias -
- ( - String - , -
- String - ) -
-
- Customize this MetaRuleset by removing the attribute named by argument attribute and - re-adding it under the name given by the argument property, returning this. - - true - - -
-
-
- true -
- JSF:JAVADOC:5978 - - Metadata - - jakarta.faces.view.facelets.MetaRuleset.finish -
-
-
- Take actions to apply the rule. - - true - - -
-
-
- true -
- JSF:JAVADOC:5979 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.ignore -
- ( - String - ) -
-
- Customize this MetaRuleset instance to advise it to ignore the attribute named by the - attribute argument, returning this. - - true - - -
-
-
- true -
- JSF:JAVADOC:5980 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.ignoreAll -
-
-
- Customize this MetaRuleset instance to advise it to ignore all attributes, returning - this. - - true - - -
-
-
- true -
- JSF:JAVADOC:5981 - - MetaRuleset - - jakarta.faces.view.facelets.MetaRuleset.MetaRuleset -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:5982 - - MetaTagHandler - - jakarta.faces.view.facelets.MetaTagHandler.MetaTagHandler -
- ( - TagConfig - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5983 - - TagAttributes - - jakarta.faces.view.facelets.Tag.getAttributes -
-
-
- Return an object encapsulating the TagAttributes specified on this element in the view. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5984 - - String - - jakarta.faces.view.facelets.Tag.getLocalName -
-
-
- Return the XML local name of the tag. For example, would be "tag". - - true - - -
-
-
- true -
- JSF:JAVADOC:5985 - - Location - - jakarta.faces.view.facelets.Tag.getLocation -
-
-
- Return the Location of this Tag instance in the Facelet view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5986 - - String - - jakarta.faces.view.facelets.Tag.getNamespace -
-
-
- Return the resolved XML Namespace for this tag in the Facelets view. - - true - - -
-
-
- true -
- JSF:JAVADOC:5987 - - String - - jakarta.faces.view.facelets.Tag.getQName -
-
-
- Return the XML qualified name for this tag. For example, would be "my:tag". - - true - - -
-
-
- true -
- JSF:JAVADOC:5988 - - Tag - - jakarta.faces.view.facelets.Tag.Tag -
- ( - Location - , -
- String - , -
- String - , -
- String - , -
- TagAttributes - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5989 - - Tag - - jakarta.faces.view.facelets.Tag.Tag -
- ( - Tag - , -
- TagAttributes - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:5990 - - String - - jakarta.faces.view.facelets.Tag.toString -
-
-
- Get the string representation. - - true - - -
-
-
- true -
- JSF:JAVADOC:5991 - - boolean - - jakarta.faces.view.facelets.TagAttribute.getBoolean -
- ( - FaceletContext - ) -
-
- If literal,return Boolean#valueOf(java.lang.String) Boolean.valueOf(java.lang.String) - passing our value, otherwise call #getObject(FaceletContext, Class) getObject(FaceletContext, - Class). - - true - - -
-
-
- true -
- JSF:JAVADOC:5992 - - int - - jakarta.faces.view.facelets.TagAttribute.getInt -
- ( - FaceletContext - ) -
-
- If literal, call Integer#parseInt(java.lang.String) Integer.parseInt(String), otherwise - call #getObject(FaceletContext, Class) getObject(FaceletContext, Class). - - true - - -
-
-
- true -
- JSF:JAVADOC:5993 - - String - - jakarta.faces.view.facelets.TagAttribute.getLocalName -
-
-
- Local name of this attribute - - true - - -
-
-
- true -
- JSF:JAVADOC:5994 - - Location - - jakarta.faces.view.facelets.TagAttribute.getLocation -
-
-
- The location of this attribute in the FaceletContext - - true - - -
-
-
- true -
- JSF:JAVADOC:5995 - - MethodExpression - - jakarta.faces.view.facelets.TagAttribute.getMethodExpression -
- ( - FaceletContext - , -
- Class - , -
- Class[] - ) -
-
- Create a MethodExpression, using this attribute's value as the expression String. - - - true - - -
-
-
- true -
- JSF:JAVADOC:5996 - - String - - jakarta.faces.view.facelets.TagAttribute.getNamespace -
-
-
- The resolved Namespace for this attribute - - true - - -
-
-
- true -
- JSF:JAVADOC:5997 - - Object - - jakarta.faces.view.facelets.TagAttribute.getObject -
- ( - FaceletContext - ) -
-
- Delegates to getObject with Object.class as a param - - true - - -
-
-
- true -
- JSF:JAVADOC:5998 - - Object - - jakarta.faces.view.facelets.TagAttribute.getObject -
- ( - FaceletContext - , -
- Class - ) -
-
- If literal, simply coerce our String literal value using an ExpressionFactory, - otherwise create a ValueExpression and evaluate it. - - true - - -
-
-
- true -
- JSF:JAVADOC:5999 - - String - - jakarta.faces.view.facelets.TagAttribute.getQName -
-
-
- The qualified name for this attribute - - true - - -
-
-
- true -
- JSF:JAVADOC:6000 - - Tag - - jakarta.faces.view.facelets.TagAttribute.getTag -
-
-
- A reference to the Tag for which this class represents the attributes. For - compatibility with previous implementations, an implementation is provided that returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:6001 - - String - - jakarta.faces.view.facelets.TagAttribute.getValue -
-
-
- Return the literal value of this attribute - - true - - -
-
-
- true -
- JSF:JAVADOC:6002 - - String - - jakarta.faces.view.facelets.TagAttribute.getValue -
- ( - FaceletContext - ) -
-
- If literal, then return our value, otherwise delegate to getObject, passing - String.class. - - true - - -
-
-
- true -
- JSF:JAVADOC:6003 - - ValueExpression - - jakarta.faces.view.facelets.TagAttribute.getValueExpression -
- ( - FaceletContext - , -
- Class - ) -
-
- Create a ValueExpression, using this attribute's literal value and the passed expected - type. - - true - - -
-
-
- true -
- JSF:JAVADOC:6004 - - boolean - - jakarta.faces.view.facelets.TagAttribute.isLiteral -
-
-
- If this TagAttribute is literal (not #{..} or ${..}) - - true - - -
-
-
- true -
- JSF:JAVADOC:6005 - - void - - jakarta.faces.view.facelets.TagAttribute.setTag -
- ( - Tag - ) -
-
- Set a reference to the Tag for which this class represents the attributes. The VDL - runtime must ensure that this method is called before any FaceletHandlers for this element are - instantiated. For compatibility with previous implementations, a no-op implementation is provided. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6006 - - TagAttribute - - jakarta.faces.view.facelets.TagAttribute.TagAttribute -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:6007 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - TagAttribute - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6008 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - TagAttribute - , -
- String - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6009 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - TagAttribute - , -
- Throwable - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6010 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - TagAttribute - , -
- String - , -
- Throwable - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6011 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - Tag - , -
- TagAttribute - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6012 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - Tag - , -
- TagAttribute - , -
- String - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6013 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - Tag - , -
- TagAttribute - , -
- Throwable - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6014 - - TagAttributeException - - jakarta.faces.view.facelets.TagAttributeException.TagAttributeException -
- ( - Tag - , -
- TagAttribute - , -
- String - , -
- Throwable - ) -
-
- Constructor. - - true - - -
-
-
- true -
- JSF:JAVADOC:6015 - - TagAttribute - - jakarta.faces.view.facelets.TagAttributes.get -
- ( - String - ) -
-
- Using no namespace, find the TagAttribute - - true - - -
-
-
- true -
- JSF:JAVADOC:6016 - - TagAttribute - - jakarta.faces.view.facelets.TagAttributes.get -
- ( - String - , -
- String - ) -
-
- Find a TagAttribute that matches the passed namespace and local name. - - true - - -
-
-
- true -
- JSF:JAVADOC:6017 - - TagAttribute[] - - jakarta.faces.view.facelets.TagAttributes.getAll -
-
-
- Return an array of all TagAttributes in this set - - true - - -
-
-
- true -
- JSF:JAVADOC:6018 - - TagAttribute[] - - jakarta.faces.view.facelets.TagAttributes.getAll -
- ( - String - ) -
-
- Get all TagAttributes for the passed namespace - - true - - -
-
-
- true -
- JSF:JAVADOC:6019 - - String[] - - jakarta.faces.view.facelets.TagAttributes.getNamespaces -
-
-
- A list of Namespaces found in this set - - true - - -
-
-
- true -
- JSF:JAVADOC:6020 - - Tag - - jakarta.faces.view.facelets.TagAttributes.getTag -
-
-
- A reference to the Tag for which this class represents the attributes. For - compatibility with previous implementations, an implementation is provided that returns null. - - true - - -
-
-
- true -
- JSF:JAVADOC:6021 - - void - - jakarta.faces.view.facelets.TagAttributes.setTag -
- ( - Tag - ) -
-
- Set a reference to the Tag for which this class represents the attributes. The VDL - runtime must ensure that this method is called before any FaceletHandlers for this element are - instantiated. For compatibility with previous implementations, a no-op implementation is provided. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6022 - - TagAttributes - - jakarta.faces.view.facelets.TagAttributes.TagAttributes -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:6023 - - FaceletHandler - - jakarta.faces.view.facelets.TagConfig.getNextHandler -
-
-
- The next FaceletHandler (child or children) to be applied. This must never be null. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6024 - - Tag - - jakarta.faces.view.facelets.TagConfig.getTag -
-
-
- Return the Tag representing this handler. - - true - - -
-
-
- true -
- JSF:JAVADOC:6025 - - String - - jakarta.faces.view.facelets.TagConfig.getTagId -
-
-
- A document-unique id, follows the convention "_tagId##" - - true - - -
-
-
- true -
- JSF:JAVADOC:6026 - - Tag - - jakarta.faces.view.facelets.TagDecorator.decorate -
- ( - Tag - ) -
-
- If handled, return a new Tag instance, otherwise return null - - true - - -
-
-
- true -
- JSF:JAVADOC:6027 - - TagException - - jakarta.faces.view.facelets.TagException.TagException -
- ( - Tag - ) -
-
- Wrap the argument tag so the exception can reference its information. - - true - - -
-
-
- true -
- JSF:JAVADOC:6028 - - TagException - - jakarta.faces.view.facelets.TagException.TagException -
- ( - Tag - , -
- String - ) -
-
- Wrap the argument tag so the exception can reference its information. - - true - - -
-
-
- true -
- JSF:JAVADOC:6029 - - TagException - - jakarta.faces.view.facelets.TagException.TagException -
- ( - Tag - , -
- Throwable - ) -
-
- Wrap the argument tag so the exception can reference its information. - - true - - -
-
-
- true -
- JSF:JAVADOC:6030 - - TagException - - jakarta.faces.view.facelets.TagException.TagException -
- ( - Tag - , -
- String - , -
- Throwable - ) -
-
- Wrap the argument tag so the exception can reference its information. - - true - - -
-
-
- true -
- JSF:JAVADOC:6031 - - TagHandler - - jakarta.faces.view.facelets.TagHandler.TagHandler -
- ( - TagConfig - ) -
-
- Every TagHandler instance is associated with a Tag. Each Tag instance has a - TagAttributes property, which is simply a collection of TagAttribute instances. Extract and save as - protected instance variables the TagConfig#getTagId, TagConfig#getTag and TagConfig#getNextHandler - returns from the argument TagConfig. This constructor is only called when the Facelets View is - compiled. - - true - - -
-
-
- true -
- JSF:JAVADOC:6032 - - String - - jakarta.faces.view.facelets.TagHandler.toString -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:6033 - - void - - jakarta.faces.view.facelets.TagHandlerDelegate.apply -
- ( - FaceletContext - , -
- UIComponent - ) -
-
- Called by classes that implement jakarta.faces.view.facelets.FaceletHandler in their - implementation of apply(). If the argument comp is new to the view, for each tag attribute declared - to be in the pass through attribute namespace, set the name and value of the attribute into the pass - through attributes map of the component. See UIComponent#getPassThroughAttributes(boolean) . See the - VDLDocs for the namespace URI of the pass through attribute namespace. Attributes whose value is a - ValueExpression must remain un-evaluated and stored in the map as ValueExpression instances. - - true - - -
-
-
- true -
- JSF:JAVADOC:6034 - - void - - jakarta.faces.view.facelets.TagHandlerDelegate.apply -
- ( - FaceletContext - , -
- UIComponent - ) - -
- throws - IOException -
-
-
- if any files necessary to apply this tag handler have any difficulty while loading - - - true - - -
-
-
- true -
- JSF:JAVADOC:6035 - - MetaRuleset - - jakarta.faces.view.facelets.TagHandlerDelegate.createMetaRuleset -
- ( - Class - ) -
-
- Return a MetaRuleset particular to this kind of tag handler. Called from classes that - implement MetaTagHandler. - - true - - -
-
-
- true -
- JSF:JAVADOC:6036 - - TagHandlerDelegate - - jakarta.faces.view.facelets.TagHandlerDelegate.TagHandlerDelegate -
-
-
- -
-
-
- true - - -
-
-
- true -
- JSF:JAVADOC:6037 - - TagHandlerDelegate - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.createBehaviorHandlerDelegate -
- ( - BehaviorHandler - ) -
-
- Create and return a TagHandlerDelegate instance designed for use with BehaviorHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6038 - - TagHandlerDelegate - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.createComponentHandlerDelegate -
- ( - ComponentHandler - ) -
-
- Create and return a TagHandlerDelegate instance designed for use with ComponentHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6039 - - TagHandlerDelegate - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.createConverterHandlerDelegate -
- ( - ConverterHandler - ) -
-
- Create and return a TagHandlerDelegate instance designed for use with ConverterHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6040 - - TagHandlerDelegate - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.createValidatorHandlerDelegate -
- ( - ValidatorHandler - ) -
-
- Create and return a TagHandlerDelegate instance designed for use with ValidatorHandler. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6041 - - TagHandlerDelegateFactory - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.getWrapped -
-
-
- If this factory has been decorated, the implementation doing the decorating may - override this method to provide access to the implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:6042 - - TagHandlerDelegateFactory - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.TagHandlerDelegateFactory -
-
-
- -
-
-
- true - - true - - true -
- JSF:JAVADOC:6043 - - TagHandlerDelegateFactory - - jakarta.faces.view.facelets.TagHandlerDelegateFactory.TagHandlerDelegateFactory -
- ( - TagHandlerDelegateFactory - ) -
-
- If this factory has been decorated, the implementation doing the decorating should push - the implementation being wrapped to this constructor. The #getWrapped() will then return the - implementation being wrapped. - - true - - -
-
-
- true -
- JSF:JAVADOC:6044 - - String - - jakarta.faces.view.facelets.TextHandler.getText -
-
-
- Returns the literal String value of the contained text. - - true - - -
-
-
- true -
- JSF:JAVADOC:6045 - - String - - jakarta.faces.view.facelets.TextHandler.getText -
- ( - FaceletContext - ) -
-
- Returns the resolved literal String value of the contained text after evaluating EL. - - - true - - -
-
-
- true -
- JSF:JAVADOC:6046 - - String - - jakarta.faces.view.facelets.ValidatorConfig.getValidatorId -
-
-
- Return the validator-id associated with a particular validator in your faces-config - - - true - - -
-
-
- true -
- JSF:JAVADOC:6047 - - ValidatorConfig - - jakarta.faces.view.facelets.ValidatorHandler.getValidatorConfig -
-
-
- Return the TagConfig subclass used to configure this handler instance. - - true - - -
-
-
- true -
- JSF:JAVADOC:6048 - - String - - jakarta.faces.view.facelets.ValidatorHandler.getValidatorId -
- ( - FaceletContext - ) -
-
- Retrieve the id of the validator that is to be created and added to the parent - EditableValueHolder. All subclasses should override this method because it is important for Facelets - to have a unique way of identifying the validators that are added to this EditableValueHolder and - allows exclusions to work properly. An exclusion is a validator declaration that has the attribute - "disabled" which resolves to false, instructing Facelets not to register a default validator with - the same id. - - true - - -
-
-
- true -
- JSF:JAVADOC:6049 - - ValidatorHandler - - jakarta.faces.view.facelets.ValidatorHandler.ValidatorHandler -
- ( - ValidatorConfig - ) -
-
- Construct this instance around the configuration information in argument config - - true - - -
-
-
- true -
- JSF:JAVADOC:6050 - - ServletConfig - - jakarta.faces.webapp.FacesServlet.getServletConfig -
-
-
- Return the ServletConfig instance for this servlet. - - true - - -
-
-
- true -
- JSF:JAVADOC:6051 - - void - - jakarta.faces.webapp.FacesServlet.init -
- ( - ServletConfig - ) -
-
- Acquire the factory instances we will require. - - true - - -
-
-
- true -
- JSF:JAVADOC:6052 - - void - - jakarta.faces.webapp.FacesServlet.init -
- ( - ServletConfig - ) - -
- throws - ServletException -
-
-
- if, for any reason, the startup of this Faces application failed. This includes errors - in the config file that is parsed before or during the processing of this init() method. - - true - - -
-
-
- true -
- JSF:JAVADOC:6053 - - void - - jakarta.faces.webapp.FacesServlet.service -
- ( - ServletRequest - , -
- ServletResponse - ) -
-
- Process an incoming request, and create the corresponding response according to the - following specification. If the request and response arguments to this method are not instances of - HttpServletRequest and HttpServletResponse, respectively, the results of invoking this method are - undefined. This method must respond to requests that contain the following strings by invoking the - sendError method on the response argument (cast to HttpServletResponse), passing the code - HttpServletResponse.SC_NOT_FOUND as the argument. /WEB-INF/ /WEB-INF /META-INF/ /META-INF If none of - the cases described above in the specification for this method apply to the servicing of this - request, the following action must be taken to service the request. Acquire a FacesContext instance - for this request. Acquire the ResourceHandler for this request by calling - jakarta.faces.application.Application#getResourceHandler. Call - jakarta.faces.application.ResourceHandler#isResourceRequest. If this returns true call - jakarta.faces.application.ResourceHandler#handleResourceRequest. If this returns false, call - jakarta.faces.lifecycle.Lifecycle#attachWindow followed by jakarta.faces.lifecycle.Lifecycle#execute - followed by jakarta.faces.lifecycle.Lifecycle#render. If a jakarta.faces.FacesException is thrown in - either case, extract the cause from the FacesException. If the cause is null extract the message - from the FacesException, put it inside of a new ServletException instance, and pass the - FacesException instance as the root cause, then rethrow the ServletException instance. If the cause - is an instance of ServletException, rethrow the cause. If the cause is an instance of IOException, - rethrow the cause. Otherwise, create a new ServletException instance, passing the message from the - cause, as the first argument, and the cause itself as the second argument. The implementation must - make it so jakarta.faces.context.FacesContext#release is called within a finally block as late as - possible in the processing for the Jakarta Faces related portion of this request. - - true - - -
-
-
- true -
- JSF:JAVADOC:6054 - - void - - jakarta.faces.webapp.FacesServlet.service -
- ( - ServletRequest - , -
- ServletResponse - ) - -
- throws - IOException -
-
-
- if an input/output error occurs during processing - - true - - -
-
-
- true -
- JSF:JAVADOC:6055 - - void - - jakarta.faces.webapp.FacesServlet.service -
- ( - ServletRequest - , -
- ServletResponse - ) - -
- throws - ServletException -
-
-
- if a Jakarta Servlet error occurs during processing - - true - - -
-
-
- true -
- - - \ No newline at end of file diff --git a/install/jsf/docs/assertions/JakartaServerFacesJavadocAssertions_3.0.html b/install/jsf/docs/assertions/JakartaServerFacesJavadocAssertions_3.0.html deleted file mode 100644 index d19790414f..0000000000 --- a/install/jsf/docs/assertions/JakartaServerFacesJavadocAssertions_3.0.html +++ /dev/null @@ -1,41396 +0,0 @@ - - - - - -JavaDoc Assertion Detail - - -
-
-

Jakarta Server Faces - 3.0
-JavaDoc Assertion Detail

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
TotalsTotalActiveDeprecatedRemoved
# of - Assertions 251323401730
# of - Required Assertions 251323401730
# of - Optional Assertions 0000
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IDReturnMethod/FieldDescriptionRequiredDeprecatedTestable
JSF:JAVADOC:1FacesExceptionjakarta.faces.FacesException.FacesException
-
- Construct a new exception with no detail message or root cause. true
-
true
JSF:JAVADOC:2FacesExceptionjakarta.faces.FacesException.FacesException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. true
-
true
JSF:JAVADOC:3FacesExceptionjakarta.faces.FacesException.FacesException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() true
-
true
JSF:JAVADOC:4FacesExceptionjakarta.faces.FacesException.FacesException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:5Throwablejakarta.faces.FacesException.getCause
-
Return - the cause of this exception, or null if the cause is nonexistent or - unknown. true
-
true
JSF:JAVADOC:6Objectjakarta.faces.FacesWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:7Objectjakarta.faces.FactoryFinder.getFactory
- - ( String )
Create - (if necessary) and return a per-web-application instance of the - appropriate implementation class for the specified Jakarta Server Faces - factory class, based on the discovery algorithm described in the class - description. The standard factories and wrappers in JSF all implement - the interface FacesWrapper. If the returned Object is an - implementation of one of the standard factories, it must be legal to - cast it to an instance of FacesWrapper and call - FacesWrapper#getWrapped on the instance. true
-
true
JSF:JAVADOC:8Objectjakarta.faces.FactoryFinder.getFactory
- - ( String )
- throws FacesException
-
if the - web application class loader cannot be identifiedtrue
-
true
JSF:JAVADOC:9Objectjakarta.faces.FactoryFinder.getFactory
- - ( String )
- throws IllegalArgumentException
-
if - factoryName does not identify a standard Jakarta Server Faces factory nametrue
-
true
JSF:JAVADOC:10Objectjakarta.faces.FactoryFinder.getFactory
- - ( String )
- throws IllegalStateException
-
if there - is no configured factory implementation class for the specified - factory nametrue
-
true
JSF:JAVADOC:11Objectjakarta.faces.FactoryFinder.getFactory
- - ( String )
- throws NullPointerException
-
if - factoryname is nulltrue
-
true
JSF:JAVADOC:12voidjakarta.faces.FactoryFinder.releaseFactories
-
Release - any references to factory instances associated with the class loader - for the calling web application. This method must be called during of - web application shutdown. true
-
true
JSF:JAVADOC:13voidjakarta.faces.FactoryFinder.releaseFactories
-
- throws FacesException
-
if the - web application class loader cannot be identifiedtrue
-
true
JSF:JAVADOC:14voidjakarta.faces.FactoryFinder.setFactory
- - ( String ,
- String )
This - method will store the argument factoryName/implName mapping in such a - way that #getFactory will find this mapping when searching for a - match. This method has no effect if getFactory() has already been - called looking for a factory for this factoryName. This method can be - used by implementations to store a factory mapping while parsing the - Faces configuration file true
-
true
JSF:JAVADOC:15voidjakarta.faces.FactoryFinder.setFactory
- - ( String ,
- String )
- throws IllegalArgumentException
-
if - factoryName does not identify a standard Jakarta Server Faces factory nametrue
-
true
JSF:JAVADOC:16voidjakarta.faces.FactoryFinder.setFactory
- - ( String ,
- String )
- throws NullPointerException
-
if - factoryname is nulltrue
-
true
JSF:JAVADOC:17voidjakarta.faces.application.Application.addBehavior
- - ( String ,
- String )
- - Register a new mapping of behavior id to the name of the corresponding - Behavior class. This allows subsequent calls to createBehavior() to - serve as a factory for Behavior instances. true
-
true
JSF:JAVADOC:18voidjakarta.faces.application.Application.addBehavior
- - ( String ,
- String )
- throws NullPointerException
-
if - behaviorId or behaviorClass is nulltrue
-
true
JSF:JAVADOC:19voidjakarta.faces.application.Application.addComponent
- - ( String ,
- String )
- - Register a new mapping of component type to the name of the - corresponding UIComponent class. This allows subsequent calls to - createComponent() to serve as a factory for UIComponent instances. true
-
true
JSF:JAVADOC:20voidjakarta.faces.application.Application.addComponent
- - ( String ,
- String )
- throws NullPointerException
-
if - componentType or componentClass is nulltrue
-
true
JSF:JAVADOC:21voidjakarta.faces.application.Application.addConverter
- - ( String ,
- String )
- - Register a new mapping of converter id to the name of the - corresponding Converter class. This allows subsequent calls to - createConverter() to serve as a factory for Converter instances. true
-
true
JSF:JAVADOC:22voidjakarta.faces.application.Application.addConverter
- - ( String ,
- String )
- throws NullPointerException
-
if - converterId or converterClass is nulltrue
-
true
JSF:JAVADOC:23voidjakarta.faces.application.Application.addConverter
- - ( Class ,
- String )
- Register a new converter class that is capable of performing - conversions for the specified target class. true
-
true
JSF:JAVADOC:24voidjakarta.faces.application.Application.addConverter
- - ( Class ,
- String )
- throws NullPointerException
-
if - targetClass or converterClass is nulltrue
-
true
JSF:JAVADOC:25voidjakarta.faces.application.Application.addDefaultValidatorId
- - ( String )
- Register a validator by its id that is applied to all UIInput - components in a view. The validator to most often serve this role is - the BeanValidator. The usage contract for this method assumes that the - validator has been registered using the normal “by-id” - registration mechanism. An implementation is provided that takes no - action so that users that decorate the Application continue to work. true
-
true
JSF:JAVADOC:26voidjakarta.faces.application.Application.addELContextListener
- - ( ELContextListener )
Provide - a way for Faces applications to register an ELContextListener that - will be notified on creation of ELContext instances. This listener - will be called once per request. An implementation is provided that - throws UnsupportedOperationException so that users that decorate the - Application continue to work. true
-
true
JSF:JAVADOC:27voidjakarta.faces.application.Application.addELResolver
- - ( ELResolver )
Cause - an the argument resolver to be added to the resolver chain as - specified in section JSF.5.5.1 of the Jakarta Server Faces Specification. - - It is not possible to remove an ELResolver registered with this - method, once it has been registered. It is illegal to register an - ELResolver after the application has received any requests from the - client. If an attempt is made to register a listener after that time, - an IllegalStateException must be thrown. This restriction is in place - to allow the JSP container to optimize for the common case where no - additional ELResolvers are in the chain, aside from the standard ones. - It is permissible to add ELResolvers before or after initialization to - a CompositeELResolver that is already in the chain. The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - Application. true
-
true
JSF:JAVADOC:28voidjakarta.faces.application.Application.addValidator
- - ( String ,
- String )
- - Register a new mapping of validator id to the name of the - corresponding Validator class. This allows subsequent calls to - createValidator() to serve as a factory for Validator instances. true
-
true
JSF:JAVADOC:29voidjakarta.faces.application.Application.addValidator
- - ( String ,
- String )
- throws NullPointerException
-
if - validatorId or validatorClass is nulltrue
-
true
JSF:JAVADOC:30Applicationjakarta.faces.application.Application.Application
-

-
true
-
true
JSF:JAVADOC:31Behaviorjakarta.faces.application.Application.createBehavior
- - ( String )
- - Instantiate and return a new Behavior instance of the class specified - by a previous call to addBehavior() for the specified behavior id. true
-
true
JSF:JAVADOC:32Behaviorjakarta.faces.application.Application.createBehavior
- - ( String )
- throws FacesException
-
if the - Behavior cannot be createdtrue
-
true
JSF:JAVADOC:33Behaviorjakarta.faces.application.Application.createBehavior
- - ( String )
- throws NullPointerException
-
if - behaviorId is nulltrue
-
true
JSF:JAVADOC:34UIComponentjakarta.faces.application.Application.createComponent
- - ( String )
- - Instantiate and return a new UIComponent instance of the class - specified by a previous call to addComponent() for the specified - component type. Before the component instance is returned, it must be - inspected for the presence of a jakarta.faces.event.ListenerFor (or - jakarta.faces.event.ListenersFor) or ResourceDependency (or - ResourceDependencies) annotation. If any of these annotations are - present, the action listed in jakarta.faces.event.ListenerFor or - ResourceDependency must be taken on the component, before it is - returned from this method. This variant of createComponent must not - inspect the jakarta.faces.render.Renderer for the component to be - returned for any of the afore mentioned annotations. Such inspection - is the province of #createComponent(ValueExpression, FacesContext, - String, String) or #createComponent(FacesContext, String, String). true
-
true
JSF:JAVADOC:35UIComponentjakarta.faces.application.Application.createComponent
- - ( String )
- throws FacesException
-
if a - UIComponent of the specified type cannot be createdtrue
-
true
JSF:JAVADOC:36UIComponentjakarta.faces.application.Application.createComponent
- - ( String )
- throws NullPointerException
-
if - componentType is nulltrue
-
true
JSF:JAVADOC:37UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueBinding ,
- FacesContext ,
- String )
Wrap - the argument componentBinding in an implementation of ValueExpression - and call through to - #createComponent(jakarta.el.ValueExpression,jakarta.faces.context.FacesContext,java.lang.String). - - truetruetrue
JSF:JAVADOC:38UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueBinding ,
- FacesContext ,
- String )
- throws FacesException
-
if a - UIComponent cannot be createdtruetruetrue
JSF:JAVADOC:39UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueBinding ,
- FacesContext ,
- String )
- throws NullPointerException
-
if any - parameter is nulltruetruetrue
JSF:JAVADOC:40UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String )
Call - the getValue() method on the specified ValueExpression. If it returns - a UIComponent instance, return it as the value of this method. If it - does not, instantiate a new UIComponent instance of the specified - component type, pass the new component to the setValue() method of the - specified ValueExpression, and return it. Before the component - instance is returned, it must be inspected for the presence of a - jakarta.faces.event.ListenerFor (or jakarta.faces.event.ListenersFor) or - ResourceDependency (or ResourceDependencies) annotation. If any of - these annotations are present, the action listed in - jakarta.faces.event.ListenerFor or ResourceDependency must be taken on - the component, before it is returned from this method. This variant of - createComponent must not inspect the jakarta.faces.render.Renderer for - the component to be returned for any of the afore mentioned - annotations. Such inspection is the province of - #createComponent(ValueExpression, FacesContext, String, String) or - #createComponent(FacesContext, String, String). true
-
true
JSF:JAVADOC:41UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String )
- throws FacesException
-
if a - UIComponent cannot be createdtrue
-
true
JSF:JAVADOC:42UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String )
- throws NullPointerException
-
if any - parameter is null A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application - can continue to function.true
-
true
JSF:JAVADOC:43UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String ,
- String )
Like - #createComponent(ValueExpression, FacesContext, String) except the - Renderer for the component to be returned must be inspected for the - annotations mentioned in #createComponent(ValueExpression, - FacesContext, String) as specified in the documentation for that - method. The Renderer instance to inspect must be obtained by calling - FacesContext#getRenderKit and calling - jakarta.faces.render.RenderKit#getRenderer on the result, passing the - argument componentType as the first argument and the result of calling - UIComponent#getFamily on the newly created component as the second - argument. If no such Renderer can be found, a message must be logged - with a helpful error message. Otherwise, UIComponent#setRendererType - must be called on the newly created UIComponent instance, passing the - argument rendererType as the argument. A default implementation is - provided that throws UnsupportedOperationException so that users that - decorate Application can continue to function. true
-
true
JSF:JAVADOC:44UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String ,
- String )
- throws FacesException
-
if a - UIComponent cannot be createdtrue
-
true
JSF:JAVADOC:45UIComponentjakarta.faces.application.Application.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String ,
- String )
- throws NullPointerException
-
if any - of the parameters componentExpression, context, or componentType are - nulltrue
-
true
JSF:JAVADOC:46UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- String ,
- String )
Like - #createComponent(String) except the Renderer for the component to be - returned must be inspected for the annotations mentioned in - #createComponent(ValueExpression, FacesContext, String) as specified - in the documentation for that method. The Renderer instance to inspect - must be obtained by calling FacesContext#getRenderKit and calling - jakarta.faces.render.RenderKit#getRenderer on the result, passing the - argument componentType as the first argument and the result of calling - UIComponent#getFamily on the newly created component as the second - argument. If no such Renderer can be found, a message must be logged - with a helpful error message. Otherwise, UIComponent#setRendererType - must be called on the newly created UIComponent instance, passing the - argument rendererType as the argument. A default implementation is - provided that throws UnsupportedOperationException so that users that - decorate Application can continue to function. true
-
true
JSF:JAVADOC:47UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- String ,
- String )
- throws FacesException
-
if a - UIComponent cannot be createdtrue
-
true
JSF:JAVADOC:48UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- String ,
- String )
- throws NullPointerException
-
if any - of the parameters context, or componentType are nulltrue
-
true
JSF:JAVADOC:49UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- Resource )
- - - Instantiate and return a new UIComponent instance from the argument - Resource. An algorithm semantically equivalent to the following must - be followed to instantiate the UIComponent to return. Obtain a - reference to the ViewDeclarationLanguage for this Application instance - by calling ViewHandler#getViewDeclarationLanguage, passing the viewId - found by calling jakarta.faces.component.UIViewRoot#getViewId on the - jakarta.faces.component.UIViewRoot in the argument FacesContext. Obtain - a reference to the composite component metadata for this composite - component by calling ViewDeclarationLanguage#getComponentMetadata, - passing the facesContext and componentResource arguments to this - method. This version of JSF specification uses JavaBeans as the API to - the component metadata. Determine if the component author declared a - component-type for this component instance by obtaining the - BeanDescriptor from the component metadata and calling its getValue() - method, passing UIComponent#COMPOSITE_COMPONENT_TYPE_KEY as the - argument. If non-null, the result must be a ValueExpression whose - value is the component-type of the UIComponent to be created for this - Resource component. Call through to #createComponent(java.lang.String) - to create the component. Otherwise, determine if a script based - component for this Resource can be found by calling - ViewDeclarationLanguage#getScriptComponentResource. If the result is - non-null, and is a script written in one of the languages listed in - JSF.4.3 of the specification prose document, create a UIComponent - instance from the script resource. Otherwise, let library-name be the - return from calling Resource#getLibraryName on the argument - componentResource and resource-name be the return from calling - Resource#getResourceName on the argument componentResource. Create a - fully qualified Java class name by removing any file extension from - resource-name and let fqcn be library-name + "." + resource-name. If a - class with the name of fqcn cannot be found, take no action and - continue to the next step. If any of InstantiationException, - IllegalAccessException, or ClassCastException are thrown, wrap the - exception in a FacesException and re-throw it. If any other exception - is thrown, log the exception and continue to the next step. If none of - the previous steps have yielded a UIComponent instance, call - #createComponent(java.lang.String) passing - "jakarta.faces.NamingContainer" as the argument. Call - UIComponent#setRendererType on the UIComponent instance, passing - "jakarta.faces.Composite" as the argument. Store the argument Resource - in the attributes Map of the UIComponent under the key, - Resource#COMPONENT_RESOURCE_KEY. Store composite component metadata in - the attributes Map of the UIComponent under the key, - UIComponent#BEANINFO_KEY. Before the component instance is returned, - it must be inspected for the presence of a - jakarta.faces.event.ListenerFor annotation. If this annotation is - present, the action listed in jakarta.faces.event.ListenerFor must be - taken on the component, before it is returned from this method. A - default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application - can continue to function. true
-
true
JSF:JAVADOC:50UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- Resource )
- throws FacesException
-
if a - UIComponent from the Resource cannot be createdtrue
-
true
JSF:JAVADOC:51UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- Resource )
- throws <code>NullPointerException</code>
-
if any - parameter is nulltrue
-
true
JSF:JAVADOC:52UIComponentjakarta.faces.application.Application.createComponent
- - ( FacesContext ,
- Resource )
- throws NullPointerException
-
if - unable, for any reason, to obtain a ViewDeclarationLanguage instance - as described above.true
-
true
JSF:JAVADOC:53Converterjakarta.faces.application.Application.createConverter
- - ( String )
- - Instantiate and return a new Converter instance of the class specified - by a previous call to addConverter() for the specified converter id. - - - - - If the toLowerCase() of the String represenation of the value of the - "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" - application configuration parameter is "true" (without the quotes) and - the Converter instance to be returned is an instance of - jakarta.faces.convert.DateTimeConverter, - jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, - passing the return from TimeZone.getDefault(). The argument converter - must be inspected for the presence of the - jakarta.faces.application.ResourceDependency annotation. If the - ResourceDependency annotation is present, the action described in - ResourceDependency must be taken. If the ResourceDependency annotation - is not present, the argument converter must be inspected for the - presence of the jakarta.faces.application.ResourceDependencies - annotation. If the ResourceDependencies annotation is present, the - action described in ResourceDependencies must be taken. true
-
true
JSF:JAVADOC:54Converterjakarta.faces.application.Application.createConverter
- - ( String )
- throws FacesException
-
if the - Converter cannot be createdtrue
-
true
JSF:JAVADOC:55Converterjakarta.faces.application.Application.createConverter
- - ( String )
- throws NullPointerException
-
if - converterId is nulltrue
-
true
JSF:JAVADOC:56Converterjakarta.faces.application.Application.createConverter
- - ( Class )
- - Instantiate and return a new Converter instance of the class that has - registered itself as capable of performing conversions for objects of - the specified type. If no such Converter class can be identified, - return null. To locate an appropriate Converter class, the following - algorithm is performed, stopping as soon as an appropriate Converter - class is found: Locate a Converter registered for the target class - itself. Locate a Converter registered for interfaces that are - implemented by the target class (directly or indirectly). Locate a - Converter registered for the superclass (if any) of the target class, - recursively working up the inheritance hierarchy. If the Converter has - a single argument constructor that accepts a Class, instantiate the - Converter using that constructor, passing the argument targetClass as - the sole argument. Otherwise, simply use the zero-argument - constructor. If the toLowerCase() of the String represenation of the - value of the - "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" - application configuration parameter is "true" (without the quotes) and - the Converter instance to be returned is an instance of - jakarta.faces.convert.DateTimeConverter, - jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, - passing the return from TimeZone.getDefault(). true
-
true
JSF:JAVADOC:57Converterjakarta.faces.application.Application.createConverter
- - ( Class )
- throws FacesException
-
if the - Converter cannot be createdtrue
-
true
JSF:JAVADOC:58Converterjakarta.faces.application.Application.createConverter
- - ( Class )
- throws NullPointerException
-
if - targetClass is nulltrue
-
true
JSF:JAVADOC:59MethodBindingjakarta.faces.application.Application.createMethodBinding
- - ( String ,
- Class[] )
Call - #getExpressionFactory then call - ExpressionFactory#createMethodExpression, passing the given arguments, - and wrap the result in a MethodBinding implementation, returning it. truetruetrue
JSF:JAVADOC:60MethodBindingjakarta.faces.application.Application.createMethodBinding
- - ( String ,
- Class[] )
- throws ReferenceSyntaxException
-
if the - specified ref has invalid syntaxtruetruetrue
JSF:JAVADOC:61MethodBindingjakarta.faces.application.Application.createMethodBinding
- - ( String ,
- Class[] )
- throws NullPointerException
-
if ref - is nulltruetruetrue
JSF:JAVADOC:62Validatorjakarta.faces.application.Application.createValidator
- - ( String )
- - Instantiate and return a new Validator instance of the class specified - by a previous call to addValidator() for the specified validator id. - - - The argument validator must be inspected for the presence of the - jakarta.faces.application.ResourceDependency annotation. If the - ResourceDependency annotation is present, the action described in - ResourceDependency must be taken. If the ResourceDependency annotation - is not present, the argument validator must be inspected for the - presence of the jakarta.faces.application.ResourceDependencies - annotation. If the ResourceDependencies annotation is present, the - action described in ResourceDependencies must be taken. true
-
true
JSF:JAVADOC:63Validatorjakarta.faces.application.Application.createValidator
- - ( String )
- throws FacesException
-
if a - Validator of the specified id cannot be createdtrue
-
true
JSF:JAVADOC:64Validatorjakarta.faces.application.Application.createValidator
- - ( String )
- throws NullPointerException
-
if - validatorId is nulltrue
-
true
JSF:JAVADOC:65ValueBindingjakarta.faces.application.Application.createValueBinding
- - ( String )
Call - #getExpressionFactory then call - ExpressionFactory#createValueExpression, passing the argument ref, - Object.class for the expectedType, and null, for the fnMapper. truetruetrue
JSF:JAVADOC:66ValueBindingjakarta.faces.application.Application.createValueBinding
- - ( String )
- throws ReferenceSyntaxException
-
if the - specified ref has invalid syntaxtruetruetrue
JSF:JAVADOC:67ValueBindingjakarta.faces.application.Application.createValueBinding
- - ( String )
- throws NullPointerException
-
if ref - is nulltruetruetrue
JSF:JAVADOC:68Objectjakarta.faces.application.Application.evaluateExpressionGet
- - ( FacesContext ,
- String ,
- Class )
Get a - value by evaluating an expression. Call #getExpressionFactory then - call ExpressionFactory#createValueExpression passing the argument - expression and expectedType. Call FacesContext#getELContext and pass - it to ValueExpression#getValue, returning the result. An - implementation is provided that throws UnsupportedOperationException - so that users that decorate the Application continue to work. true
-
true
JSF:JAVADOC:69Objectjakarta.faces.application.Application.evaluateExpressionGet
- - ( FacesContext ,
- String ,
- Class )
- throws ELException
-

-
true
-
true
JSF:JAVADOC:70ActionListenerjakarta.faces.application.Application.getActionListener
-
Return - the default ActionListener to be registered for all - jakarta.faces.component.ActionSource components in this appication. If - not explicitly set, a default implementation must be provided that - performs the following functions: The processAction() method must - first call FacesContext.renderResponse() in order to bypass any - intervening lifecycle phases, once the method returns. The - processAction() method must next determine the logical outcome of this - event, as follows: If the originating component has a non-null action - property, retrieve the MethodBinding from the property, and call - invoke() on it. Convert the returned value (if any) to a String, and - use it as the logical outcome. Otherwise, the logical outcome is null. - The processAction() method must finally retrieve the NavigationHandler - instance for this application and call - NavigationHandler#handleNavigation passing: the FacesContext for the - current request If there is a MethodBinding instance for the action - property of this component, the result of calling - MethodBinding#getExpressionString on it, null otherwise the logical - outcome as determined above Note that the specification for the - default ActionListener contiues to call for the use of a deprecated - property (action) and class (MethodBinding). Unfortunately, this is - necessary because the default ActionListener must continue to work - with components that do not implement - jakarta.faces.component.ActionSource2, and only implement - jakarta.faces.component.ActionSource. true
-
true
JSF:JAVADOC:71Iteratorjakarta.faces.application.Application.getBehaviorIds
-
Return - an Iterator over the set of currently registered behavior ids for this - Application. true
-
true
JSF:JAVADOC:72Iteratorjakarta.faces.application.Application.getComponentTypes
-
Return - an Iterator over the set of currently defined component types for this - Application. true
-
true
JSF:JAVADOC:73Iteratorjakarta.faces.application.Application.getConverterIds
-
Return - an Iterator over the set of currently registered converter ids for - this Application. true
-
true
JSF:JAVADOC:74Iteratorjakarta.faces.application.Application.getConverterTypes
-
Return - an Iterator over the set of Class instances for which Converter - classes have been explicitly registered. true
-
true
JSF:JAVADOC:75Localejakarta.faces.application.Application.getDefaultLocale
-
Return - the default Locale for this application. If not explicitly set, null - is returned. true
-
true
JSF:JAVADOC:76Stringjakarta.faces.application.Application.getDefaultRenderKitId
-
Return - the renderKitId to be used for rendering this application. If not - explicitly set, null is returned. true
-
true
JSF:JAVADOC:77Mapjakarta.faces.application.Application.getDefaultValidatorInfo
-
Return - an immutable Map over the set of currently registered default - validator IDs and their class name for this Application. An - implementation is provided that returns Collections.emptyMap so that - users that decorate the Application continue to work. true
-
true
JSF:JAVADOC:78ELContextListener[]jakarta.faces.application.Application.getELContextListeners
-
If no - calls have been made to #addELContextListener, this method must return - an empty array. Otherwise, return an array representing the list of - listeners added by calls to #addELContextListener. An implementation - is provided that throws UnsupportedOperationException so that users - that decorate the Application continue to work. true
-
true
JSF:JAVADOC:79ELResolverjakarta.faces.application.Application.getELResolver
-
Return - the singleton ELResolver instance to be used for all EL resolution. - - - - This is actually an instance of jakarta.el.CompositeELResolver that must - contain the following ELResolver instances in the following order: - ELResolver instances declared using the element in the application - configuration resources. An implementation that wraps the head of the - legacy VariableResolver chain, as per section VariableResolver - ChainWrapper in Chapter JSF.5 in the spec document. An implementation - that wraps the head of the legacy PropertyResolver chain, as per - section PropertyResolver ChainWrapper in Chapter JSF.5 in the spec - document. Any ELResolver instances added by calls to #addELResolver. - The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend Application. true
-
true
JSF:JAVADOC:80ExpressionFactoryjakarta.faces.application.Application.getExpressionFactory
-
Return - the ExpressionFactory instance for this application. This instance is - used by the convenience method #evaluateExpressionGet. The - implementation must return the ExpressionFactory from the JSP - container by calling - JspFactory.getDefaultFactory().getJspApplicationContext(servletContext).getExpressionFactory(). - An implementation is provided that throws - UnsupportedOperationException so that users that decorate the - Application continue to work. true
-
true
JSF:JAVADOC:81Stringjakarta.faces.application.Application.getMessageBundle
-
Return - the fully qualified class name of the ResourceBundle to be used for - Jakarta Server Faces messages for this application. If not explicitly set, - null is returned. true
-
true
JSF:JAVADOC:82NavigationHandlerjakarta.faces.application.Application.getNavigationHandler
-
Return - the NavigationHandler instance that will be passed the outcome - returned by any invoked application action for this web application. - - If not explicitly set, a default implementation must be provided that - performs the functions described in the NavigationHandler class - description. true
-
true
JSF:JAVADOC:83ProjectStagejakarta.faces.application.Application.getProjectStage
-
Return - the project stage for the currently running application instance. The - default value is ProjectStage#Production The implementation of this - method must perform the following algorithm or an equivalent with the - same end result to determine the value to return. If the value has - already been determined by a previous call to this method, simply - return that value. Look for a JNDI environment entry under the key - given by the value of ProjectStage#PROJECT_STAGE_JNDI_NAME (return - type of java.lang.String). If found, continue with the algorithm - below, otherwise, look for an entry in the initParamMap of the - ExternalContext from the current FacesContext with the key given by - the value of ProjectStage#PROJECT_STAGE_PARAM_NAME If a value is - found, see if an enum constant can be obtained by calling - ProjectStage.valueOf(), passing the value from the initParamMap. If - this succeeds without exception, save the value and return it. If not - found, or any of the previous attempts to discover the enum constant - value have failed, log a descriptive error message, assign the value - as ProjectStage.Production and return it. A default implementation is - provided that throws UnsupportedOperationException so that users that - decorate Application can continue to function. true
-
true
JSF:JAVADOC:84PropertyResolverjakarta.faces.application.Application.getPropertyResolver
-
Return - a PropertyResolver instance that wraps the ELResolver instance that - Faces provides to the unified EL for the resolution of expressions - that appear programmatically in an application. Note that this no - longer returns the default PropertyResolver since that class is now a - no-op that aids in allowing custom PropertyResolvers to affect the EL - resolution process. truetruetrue
JSF:JAVADOC:85ResourceBundlejakarta.faces.application.Application.getResourceBundle
- - ( FacesContext ,
- String )
Find a - ResourceBundle as defined in the application configuration resources - under the specified name. If a ResourceBundle was defined for the - name, return an instance that uses the locale of the current - jakarta.faces.component.UIViewRoot. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:86ResourceBundlejakarta.faces.application.Application.getResourceBundle
- - ( FacesContext ,
- String )
- throws FacesException
-
if a - bundle was defined, but not resolvabletrue
-
true
JSF:JAVADOC:87ResourceBundlejakarta.faces.application.Application.getResourceBundle
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if ctx - == null || name == nulltrue
-
true
JSF:JAVADOC:88ResourceHandlerjakarta.faces.application.Application.getResourceHandler
-
Return - the singleton, stateless, thread-safe ResourceHandler for this - application. The JSF implementation must support the following - techniques for declaring an alternate implementation of - ResourceHandler. The ResourceHandler implementation is declared in the - application configuration resources by giving the fully qualified - class name as the value of the element within the element. In all of - the above cases, the runtime must employ the decorator pattern as for - every other pluggable artifact in JSF. A default implementation is - provided that throws UnsupportedOperationException so that users that - decorate Application can continue to function. true
-
true
JSF:JAVADOC:89StateManagerjakarta.faces.application.Application.getStateManager
-
Return - the StateManager instance that will be utilized during the Restore - View and Render Response phases of the request processing lifecycle. - - If not explicitly set, a default implementation must be provided that - performs the functions described in the StateManager description in - the Jakarta Server Faces Specification. true
-
true
JSF:JAVADOC:90Iteratorjakarta.faces.application.Application.getSupportedLocales
-
Return - an Iterator over the supported Locales for this appication. true
-
true
JSF:JAVADOC:91Iteratorjakarta.faces.application.Application.getValidatorIds
-
Return - an Iterator over the set of currently registered validator ids for - this Application. true
-
true
JSF:JAVADOC:92VariableResolverjakarta.faces.application.Application.getVariableResolver
-
Return - the VariableResolver that wraps the ELResolver instance that Faces - provides to the unified EL for the resolution of expressions that - appear programmatically in an application. The implementation of the - VariableResolvermust pass null as the base argument for any methods - invoked on the underlying ELResolver. Note that this method no longer - returns the default VariableResolver, since that class now is a no-op - that aids in allowing custom VariableResolvers to affect the EL - resolution process. truetruetrue
JSF:JAVADOC:93ViewHandlerjakarta.faces.application.Application.getViewHandler
-
Return - the ViewHandler instance that will be utilized during the Restore View - and Render Response phases of the request processing lifecycle. If not - explicitly set, a default implementation must be provided that - performs the functions described in the ViewHandler description in the - Jakarta Server Faces Specification. true
-
true
JSF:JAVADOC:94voidjakarta.faces.application.Application.publishEvent
- - ( FacesContext ,
- Class ,
- Object )
If - jakarta.faces.context.FacesContext#isProcessingEvents() is true and - there are one or more listeners for events of the type represented by - systemEventClass, call those listeners, passing source as the source - of the event. The implementation should be as fast as possible in - determining whether or not a listener for the given systemEventClass - and source has been installed, and should return immediately once such - a determination has been made. The implementation of publishEvent must - honor the requirements stated in #subscribeToEvent regarding the - storage and retrieval of listener instances. Specifically, if - #subscribeToEvent(Class,Class,SystemEventListener) was called, the - sourceClass argument must match exactly the Class of the source - argument in the call to publishEvent(). The implementation must not do - any inheritance hierarachy inspection when looking for a match between - the sourceClass passed to - #subscribeToEvent(Class,Class,SystemEventListener) and the sourceClass - passed to publishEvent() in order to find any listeners to which the - event should be published. In the case where the Class of the source - argument does not match the Class of the sourceClass used when the - listener was subscribed using subscribeToEvent(), - #publishEvent(FacesContext,Class,Class,Object) can be used to provide - the Class used to perform the listener lookup and match. The default - implementation must implement an algorithm semantically equivalent to - the following to locate listener instances and to invoke them. If the - source argument implements - jakarta.faces.event.SystemEventListenerHolder, call - jakarta.faces.event.SystemEventListenerHolder#getListenersForEventClass - on it, passing the systemEventClass argument. If the list is not - empty, perform algorithm traverseListenerList on the list. If any view - level listeners have been installed by previous calls to - #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) - on the jakarta.faces.component.UIViewRoot, perform algorithm - traverseListenerList on the list of listeners for that event installed - on the UIViewRoot. If any Application level listeners have been - installed by previous calls to #subscribeToEvent(Class, Class, - jakarta.faces.event.SystemEventListener), perform algorithm - traverseListenerList on the list. If any Application level listeners - have been installed by previous calls to #subscribeToEvent(Class, - jakarta.faces.event.SystemEventListener), perform algorithm - traverseListenerList on the list. If the act of invoking the - processListener method causes an - jakarta.faces.event.AbortProcessingException to be thrown, processing of - the listeners must be aborted, no further processing of the listeners - for this event must take place, and the exception must be logged with - Level.SEVERE. Algorithm traverseListenerList: For each listener in the - list, Call jakarta.faces.event.SystemEventListener#isListenerForSource, - passing the source argument. If this returns false, take no action on - the listener. Otherwise, if the event to be passed to the listener - instances has not yet been constructed, construct the event, passing - source as the argument to the one-argument constructor that takes an - Object. This same event instance must be passed to all listener - instances. Call jakarta.faces.event.SystemEvent#isAppropriateListener, - passing the listener instance as the argument. If this returns false, - take no action on the listener. Call - jakarta.faces.event.SystemEvent#processListener, passing the listener - instance. A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application - can continue to function. true
-
true
JSF:JAVADOC:95voidjakarta.faces.application.Application.publishEvent
- - ( FacesContext ,
- Class ,
- Object )
- throws NullPointerException
-
if - either context, systemEventClass or source is nulltrue
-
true
JSF:JAVADOC:96voidjakarta.faces.application.Application.publishEvent
- - ( FacesContext ,
- Class ,
- Class ,
- Object )
This - method functions exactly like - #publishEvent(FacesContext,Class,Object), except the run-time must use - the argument sourceBaseType to find the matching listener instead of - using the Class of the source argument. A default implementation is - provided that throws UnsupportedOperationException so that users that - decorate Application can continue to function. true
-
true
JSF:JAVADOC:97voidjakarta.faces.application.Application.publishEvent
- - ( FacesContext ,
- Class ,
- Class ,
- Object )
- throws NullPointerException
-
if any - arguments are nulltrue
-
true
JSF:JAVADOC:98voidjakarta.faces.application.Application.removeELContextListener
- - ( ELContextListener )
Remove - the argument listener from the list of ELContextListeners. If listener - is null, no exception is thrown and no action is performed. If - listener is not in the list, no exception is thrown and no action is - performed. An implementation is provided that throws - UnsupportedOperationException so that users that decorate the - Application continue to work. true
-
true
JSF:JAVADOC:99voidjakarta.faces.application.Application.setActionListener
- - ( ActionListener )
Set the - default ActionListener to be registered for all - jakarta.faces.component.ActionSource components. true
-
true
JSF:JAVADOC:100voidjakarta.faces.application.Application.setActionListener
- - ( ActionListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:101voidjakarta.faces.application.Application.setDefaultLocale
- - ( Locale )
Set the - default Locale for this application. true
-
true
JSF:JAVADOC:102voidjakarta.faces.application.Application.setDefaultLocale
- - ( Locale )
- throws NullPointerException
-
if - locale is nulltrue
-
true
JSF:JAVADOC:103voidjakarta.faces.application.Application.setDefaultRenderKitId
- - ( String )
Set the - renderKitId to be used to render this application. Unless the client - has provided a custom ViewHandler that supports the use of multiple - jakarta.faces.render.RenderKit instances in the same application, this - method must only be called at application startup, before any Faces - requests have been processed. This is a limitation of the current - Specification, and may be lifted in a future release. true
-
true
JSF:JAVADOC:104voidjakarta.faces.application.Application.setMessageBundle
- - ( String )
Set the - fully qualified class name of the ResourceBundle to be used for - Jakarta Server Faces messages for this application. See the JavaDocs for - the java.util.ResourceBundle class for more information about the - syntax for resource bundle names. true
-
true
JSF:JAVADOC:105voidjakarta.faces.application.Application.setMessageBundle
- - ( String )
- throws NullPointerException
-
if - bundle is nulltrue
-
true
JSF:JAVADOC:106voidjakarta.faces.application.Application.setNavigationHandler
- - ( NavigationHandler )
Set the - NavigationHandler instance that will be passed the outcome returned by - any invoked application action for this web application. true
-
true
JSF:JAVADOC:107voidjakarta.faces.application.Application.setNavigationHandler
- - ( NavigationHandler )
- throws NullPointerException
-
if - handler is nulltrue
-
true
JSF:JAVADOC:108voidjakarta.faces.application.Application.setPropertyResolver
- - ( PropertyResolver )
Set the - PropertyResolver instance that will be utilized to resolve method and - value bindings. This method is now deprecated but the implementation - must cause the argument to be set as the head of the legacy - PropertyResolver chain, replacing any existing value that was set from - the application configuration resources. It is illegal to call this - method after the application has received any requests from the - client. If an attempt is made to register a listener after that time - it must have no effect. truetruetrue
JSF:JAVADOC:109voidjakarta.faces.application.Application.setPropertyResolver
- - ( PropertyResolver )
- throws NullPointerException
-
if - resolver is nulltruetruetrue
JSF:JAVADOC:110voidjakarta.faces.application.Application.setPropertyResolver
- - ( PropertyResolver )
- throws IllegalStateException
-
if - called after the first request to the jakarta.faces.webapp.FacesServlet - has been serviced.truetruetrue
JSF:JAVADOC:111voidjakarta.faces.application.Application.setResourceHandler
- - ( ResourceHandler )
Set the - ResourceHandler instance that will be utilized for rendering the - markup for resources, and for satisfying client requests to serve up - resources. true
-
true
JSF:JAVADOC:112voidjakarta.faces.application.Application.setResourceHandler
- - ( ResourceHandler )
- throws IllegalStateException
-
if this - method is called after at least one request has been processed by the - Lifecycle instance for this application.true
-
true
JSF:JAVADOC:113voidjakarta.faces.application.Application.setResourceHandler
- - ( ResourceHandler )
- throws NullPointerException
-
if - resourceHandler is null true
-
true
JSF:JAVADOC:114voidjakarta.faces.application.Application.setStateManager
- - ( StateManager )
Set the - StateManager instance that will be utilized during the Restore View - and Render Response phases of the request processing lifecycle. true
-
true
JSF:JAVADOC:115voidjakarta.faces.application.Application.setStateManager
- - ( StateManager )
- throws IllegalStateException
-
if this - method is called after at least one request has been processed by the - Lifecycle instance for this application.true
-
true
JSF:JAVADOC:116voidjakarta.faces.application.Application.setStateManager
- - ( StateManager )
- throws NullPointerException
-
if - manager is nulltrue
-
true
JSF:JAVADOC:117voidjakarta.faces.application.Application.setSupportedLocales
- - ( Collection )
Set the - Locale instances representing the supported Locales for this - application. true
-
true
JSF:JAVADOC:118voidjakarta.faces.application.Application.setSupportedLocales
- - ( Collection )
- throws NullPointerException
-
if the - argument newLocales is null.true
-
true
JSF:JAVADOC:119voidjakarta.faces.application.Application.setVariableResolver
- - ( VariableResolver )
Set the - VariableResolver instance that will be consulted to resolve method and - value bindings. This method is now deprecated but the implementation - must cause the argument to be set as the head of the legacy - VariableResolver chain, replacing any existing value that was set from - the application configuration resources. It is illegal to call this - method after the application has received any requests from the - client. If an attempt is made to register a listener after that time - it must have no effect. truetruetrue
JSF:JAVADOC:120voidjakarta.faces.application.Application.setVariableResolver
- - ( VariableResolver )
- throws NullPointerException
-
if - resolver is nulltruetruetrue
JSF:JAVADOC:121voidjakarta.faces.application.Application.setVariableResolver
- - ( VariableResolver )
- throws IllegalStateException
-
if - called after the first request to the jakarta.faces.webapp.FacesServlet - has been serviced.truetruetrue
JSF:JAVADOC:122voidjakarta.faces.application.Application.setViewHandler
- - ( ViewHandler )
Set the - ViewHandler instance that will be utilized during the Restore View and - Render Response phases of the request processing lifecycle. true
-
true
JSF:JAVADOC:123voidjakarta.faces.application.Application.setViewHandler
- - ( ViewHandler )
- throws IllegalStateException
-
if this - method is called after at least one request has been processed by the - Lifecycle instance for this application.true
-
true
JSF:JAVADOC:124voidjakarta.faces.application.Application.setViewHandler
- - ( ViewHandler )
- throws NullPointerException
-
if - handler is nulltrue
-
true
JSF:JAVADOC:125voidjakarta.faces.application.Application.subscribeToEvent
- - ( Class ,
- Class ,
- SystemEventListener )
Install - the listener instance referenced by argument listener into the - application as a listener for events of type systemEventClass that - originate from objects of type sourceClass. If argument sourceClass is - non-null, sourceClass and systemEventClass must be used to store the - argument listener in the application in such a way that the listener - can be quickly looked up by the implementation of #publishEvent given - systemEventClass and an instance of the Class referenced by - sourceClass. If argument sourceClass is null, the listener must be - discoverable by the implementation of #publishEvent given only - systemEventClass. true
-
true
JSF:JAVADOC:126voidjakarta.faces.application.Application.subscribeToEvent
- - ( Class ,
- Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if any - combination of systemEventClass, or listener are null.true
-
true
JSF:JAVADOC:127voidjakarta.faces.application.Application.subscribeToEvent
- - ( Class ,
- SystemEventListener )
Install - the listener instance referenced by argument listener into application - as a listener for events of type systemEventClass. The default - implementation simply calls through to #subscribeToEvent(Class, Class, - jakarta.faces.event.SystemEventListener) passing null as the sourceClass - argument A default implementation is provided that throws - UnsupportedOperationException so that users that decorate Application - can continue to function. true
-
true
JSF:JAVADOC:128voidjakarta.faces.application.Application.subscribeToEvent
- - ( Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if any - combination of systemEventClass, or listener are null.true
-
true
JSF:JAVADOC:129voidjakarta.faces.application.Application.unsubscribeFromEvent
- - ( Class ,
- Class ,
- SystemEventListener )
Remove - the listener instance referenced by argument listener from the - application as a listener for events of type systemEventClass that - originate from objects of type sourceClass. See - #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) - for the specification of how the listener is stored, and therefore, - how it must be removed. true
-
true
JSF:JAVADOC:130voidjakarta.faces.application.Application.unsubscribeFromEvent
- - ( Class ,
- Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if any - combination of context, systemEventClass, or listener are null.true
-
true
JSF:JAVADOC:131voidjakarta.faces.application.Application.unsubscribeFromEvent
- - ( Class ,
- SystemEventListener )
Remove - the listener instance referenced by argument listener from the - application as a listener for events of type systemEventClass. The - default implementation simply calls through to - #unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) - passing null as the sourceClass argument true
-
true
JSF:JAVADOC:132voidjakarta.faces.application.Application.unsubscribeFromEvent
- - ( Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if any - combination of context, systemEventClass, or listener are null. - http://java.sun.com/javaee/Jakarta Serverfaces/reference/api/index.htmltrue
-
true
JSF:JAVADOC:133ApplicationFactoryjakarta.faces.application.ApplicationFactory.ApplicationFactory
-

-
true
-
true
JSF:JAVADOC:134Applicationjakarta.faces.application.ApplicationFactory.getApplication
-
Create - (if needed) and return an Application instance for this web - application. true
-
true
JSF:JAVADOC:135ApplicationFactoryjakarta.faces.application.ApplicationFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:136voidjakarta.faces.application.ApplicationFactory.setApplication
- - ( Application )
Replace - the Application instance that will be returned for this web - application. true
-
true
JSF:JAVADOC:137voidjakarta.faces.application.ApplicationFactory.setApplication
- - ( Application )
- throws NullPointerException
-
if - application is null.true
-
true
JSF:JAVADOC:138voidjakarta.faces.application.ApplicationWrapper.addBehavior
- - ( String ,
- String )
The - default behavior of this method is to call - Application#addBehavior(String, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:139voidjakarta.faces.application.ApplicationWrapper.addComponent
- - ( String ,
- String )
The - default behavior of this method is to call - Application#addComponent(String, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:140voidjakarta.faces.application.ApplicationWrapper.addConverter
- - ( String ,
- String )
The - default behavior of this method is to call - Application#addConverter(String, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:141voidjakarta.faces.application.ApplicationWrapper.addConverter
- - ( Class ,
- String )
The - default behavior of this method is to call - Application#addConverter(Class, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:142voidjakarta.faces.application.ApplicationWrapper.addDefaultValidatorId
- - ( String )
The - default behavior of this method is to call - Application#addDefaultValidatorId(String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:143voidjakarta.faces.application.ApplicationWrapper.addELContextListener
- - ( ELContextListener )
The - default behavior of this method is to call - Application#addELContextListener(jakarta.el.ELContextListener) on the - wrapped Application object. true
-
true
JSF:JAVADOC:144voidjakarta.faces.application.ApplicationWrapper.addELResolver
- - ( ELResolver )
The - default behavior of this method is to call - Application#addELResolver(jakarta.el.ELResolver) on the wrapped - Application object. true
-
true
JSF:JAVADOC:145voidjakarta.faces.application.ApplicationWrapper.addValidator
- - ( String ,
- String )
The - default behavior of this method is to call - Application#addValidator(String, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:146ApplicationWrapperjakarta.faces.application.ApplicationWrapper.ApplicationWrapper
-

-
true
-
true
JSF:JAVADOC:147Behaviorjakarta.faces.application.ApplicationWrapper.createBehavior
- - ( String )
The - default behavior of this method is to call - Application#createBehavior(String) on the wrapped Application object. - - true
-
true
JSF:JAVADOC:148Behaviorjakarta.faces.application.ApplicationWrapper.createBehavior
- - ( String )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:149UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( String )
The - default behavior of this method is to call - Application#createComponent(String) on the wrapped Application object. - - true
-
true
JSF:JAVADOC:150UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( String )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:151UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( ValueBinding ,
- FacesContext ,
- String )
The - default behavior of this method is to call - Application#createComponent(jakarta.faces.el.ValueBinding, - jakarta.faces.context.FacesContext, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:152UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( ValueBinding ,
- FacesContext ,
- String )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:153UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String )
The - default behavior of this method is to call - Application#createComponent(jakarta.el.ValueExpression, - jakarta.faces.context.FacesContext, String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:154UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:155UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( ValueExpression ,
- FacesContext ,
- String ,
- String )
The - default behavior of this method is to call - Application#createComponent(jakarta.el.ValueExpression, - jakarta.faces.context.FacesContext, String, String) on the wrapped - Application object. true
-
true
JSF:JAVADOC:156UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( FacesContext ,
- String ,
- String )
The - default behavior of this method is to call - Application#createComponent(jakarta.faces.context.FacesContext, String, - String) on the wrapped Application object. true
-
true
JSF:JAVADOC:157UIComponentjakarta.faces.application.ApplicationWrapper.createComponent
- - ( FacesContext ,
- Resource )
The - default behavior of this method is to call - Application#createComponent(jakarta.faces.context.FacesContext, - Resource) on the wrapped Application object. true
-
true
JSF:JAVADOC:158Converterjakarta.faces.application.ApplicationWrapper.createConverter
- - ( String )
The - default behavior of this method is to call - Application#createConverter(String) on the wrapped Application object. - - true
-
true
JSF:JAVADOC:159Converterjakarta.faces.application.ApplicationWrapper.createConverter
- - ( Class )
The - default behavior of this method is to call - Application#createConverter(Class) on the wrapped Application object. - - true
-
true
JSF:JAVADOC:160MethodBindingjakarta.faces.application.ApplicationWrapper.createMethodBinding
- - ( String ,
- Class[] )
The - default behavior of this method is to call - Application#createMethodBinding(String, Class[]) on the wrapped - Application object. true
-
true
JSF:JAVADOC:161MethodBindingjakarta.faces.application.ApplicationWrapper.createMethodBinding
- - ( String ,
- Class[] )
- throws ReferenceSyntaxException
-

-
true
-
true
JSF:JAVADOC:162Validatorjakarta.faces.application.ApplicationWrapper.createValidator
- - ( String )
The - default behavior of this method is to call - Application#createValidator(String) on the wrapped Application object. - - true
-
true
JSF:JAVADOC:163Validatorjakarta.faces.application.ApplicationWrapper.createValidator
- - ( String )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:164ValueBindingjakarta.faces.application.ApplicationWrapper.createValueBinding
- - ( String )
The - default behavior of this method is to call - Application#createValueBinding(String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:165ValueBindingjakarta.faces.application.ApplicationWrapper.createValueBinding
- - ( String )
- throws ReferenceSyntaxException
-

-
true
-
true
JSF:JAVADOC:166Objectjakarta.faces.application.ApplicationWrapper.evaluateExpressionGet
- - ( FacesContext ,
- String ,
- Class )
The - default behavior of this method is to call - Application#evaluateExpressionGet(jakarta.faces.context.FacesContext, - String, Class) on the wrapped Application object. true
-
true
JSF:JAVADOC:167Objectjakarta.faces.application.ApplicationWrapper.evaluateExpressionGet
- - ( FacesContext ,
- String ,
- Class )
- throws ELException
-

-
true
-
true
JSF:JAVADOC:168ActionListenerjakarta.faces.application.ApplicationWrapper.getActionListener
-
The - default behavior of this method is to call - Application#getActionListener on the wrapped Application object. true
-
true
JSF:JAVADOC:169Iteratorjakarta.faces.application.ApplicationWrapper.getBehaviorIds
-
The - default behavior of this method is to call Application#getBehaviorIds - on the wrapped Application object. true
-
true
JSF:JAVADOC:170Iteratorjakarta.faces.application.ApplicationWrapper.getComponentTypes
-
The - default behavior of this method is to call - Application#getComponentTypes on the wrapped Application object. true
-
true
JSF:JAVADOC:171Iteratorjakarta.faces.application.ApplicationWrapper.getConverterIds
-
The - default behavior of this method is to call Application#getConverterIds - on the wrapped Application object. true
-
true
JSF:JAVADOC:172Iteratorjakarta.faces.application.ApplicationWrapper.getConverterTypes
-
The - default behavior of this method is to call - Application#getConverterTypes on the wrapped Application object. true
-
true
JSF:JAVADOC:173Localejakarta.faces.application.ApplicationWrapper.getDefaultLocale
-
The - default behavior of this method is to call - Application#getDefaultLocale on the wrapped Application object. true
-
true
JSF:JAVADOC:174Stringjakarta.faces.application.ApplicationWrapper.getDefaultRenderKitId
-
The - default behavior of this method is to call - Application#getDefaultRenderKitId on the wrapped Application object. true
-
true
JSF:JAVADOC:175Mapjakarta.faces.application.ApplicationWrapper.getDefaultValidatorInfo
-
The - default behavior of this method is to call - Application#getDefaultValidatorInfo on the wrapped Application object. - - true
-
true
JSF:JAVADOC:176ELContextListener[]jakarta.faces.application.ApplicationWrapper.getELContextListeners
-
The - default behavior of this method is to call - Application#getELContextListeners on the wrapped Application object. true
-
true
JSF:JAVADOC:177ELResolverjakarta.faces.application.ApplicationWrapper.getELResolver
-
The - default behavior of this method is to call Application#getELResolver - on the wrapped Application object. true
-
true
JSF:JAVADOC:178ExpressionFactoryjakarta.faces.application.ApplicationWrapper.getExpressionFactory
-
The - default behavior of this method is to call - Application#getExpressionFactory on the wrapped Application object. true
-
true
JSF:JAVADOC:179Stringjakarta.faces.application.ApplicationWrapper.getMessageBundle
-
The - default behavior of this method is to call - Application#getMessageBundle on the wrapped Application object. true
-
true
JSF:JAVADOC:180NavigationHandlerjakarta.faces.application.ApplicationWrapper.getNavigationHandler
-
The - default behavior of this method is to call - Application#getNavigationHandler on the wrapped Application object. true
-
true
JSF:JAVADOC:181ProjectStagejakarta.faces.application.ApplicationWrapper.getProjectStage
-
The - default behavior of this method is to call Application#getProjectStage - on the wrapped Application object. true
-
true
JSF:JAVADOC:182PropertyResolverjakarta.faces.application.ApplicationWrapper.getPropertyResolver
-
The - default behavior of this method is to call - Application#getPropertyResolver on the wrapped Application object. true
-
true
JSF:JAVADOC:183ResourceBundlejakarta.faces.application.ApplicationWrapper.getResourceBundle
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - Application#getResourceBundle(jakarta.faces.context.FacesContext, - String) on the wrapped Application object. true
-
true
JSF:JAVADOC:184ResourceHandlerjakarta.faces.application.ApplicationWrapper.getResourceHandler
-
The - default behavior of this method is to call - Application#getResourceHandler on the wrapped Application object. true
-
true
JSF:JAVADOC:185StateManagerjakarta.faces.application.ApplicationWrapper.getStateManager
-
The - default behavior of this method is to call Application#getStateManager - on the wrapped Application object. true
-
true
JSF:JAVADOC:186Iteratorjakarta.faces.application.ApplicationWrapper.getSupportedLocales
-
The - default behavior of this method is to call - Application#getSupportedLocales on the wrapped Application object. true
-
true
JSF:JAVADOC:187Iteratorjakarta.faces.application.ApplicationWrapper.getValidatorIds
-
The - default behavior of this method is to call Application#getValidatorIds - on the wrapped Application object. true
-
true
JSF:JAVADOC:188VariableResolverjakarta.faces.application.ApplicationWrapper.getVariableResolver
-
The - default behavior of this method is to call - Application#getVariableResolver on the wrapped Application object. true
-
true
JSF:JAVADOC:189ViewHandlerjakarta.faces.application.ApplicationWrapper.getViewHandler
-
The - default behavior of this method is to call Application#getViewHandler - on the wrapped Application object. true
-
true
JSF:JAVADOC:190Applicationjakarta.faces.application.ApplicationWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:191voidjakarta.faces.application.ApplicationWrapper.publishEvent
- - ( FacesContext ,
- Class ,
- Object )
The - default behavior of this method is to call - Application#publishEvent(jakarta.faces.context.FacesContext, Class, - Object) on the wrapped Application object. true
-
true
JSF:JAVADOC:192voidjakarta.faces.application.ApplicationWrapper.publishEvent
- - ( FacesContext ,
- Class ,
- Class ,
- Object )
The - default behavior of this method is to call - Application#publishEvent(jakarta.faces.context.FacesContext, Class, - Class, Object) on the wrapped Application object. true
-
true
JSF:JAVADOC:193voidjakarta.faces.application.ApplicationWrapper.removeELContextListener
- - ( ELContextListener )
The - default behavior of this method is to call - Application#removeELContextListener(jakarta.el.ELContextListener) on the - wrapped Application object. true
-
true
JSF:JAVADOC:194voidjakarta.faces.application.ApplicationWrapper.setActionListener
- - ( ActionListener )
The - default behavior of this method is to call - Application#setActionListener(jakarta.faces.event.ActionListener) on the - wrapped Application object. true
-
true
JSF:JAVADOC:195voidjakarta.faces.application.ApplicationWrapper.setDefaultLocale
- - ( Locale )
The - default behavior of this method is to call - Application#setDefaultLocale(java.util.Locale) on the wrapped - Application object. true
-
true
JSF:JAVADOC:196voidjakarta.faces.application.ApplicationWrapper.setDefaultRenderKitId
- - ( String )
The - default behavior of this method is to call - Application#setDefaultRenderKitId(String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:197voidjakarta.faces.application.ApplicationWrapper.setMessageBundle
- - ( String )
The - default behavior of this method is to call - Application#setMessageBundle(String) on the wrapped Application - object. true
-
true
JSF:JAVADOC:198voidjakarta.faces.application.ApplicationWrapper.setNavigationHandler
- - ( NavigationHandler )
The - default behavior of this method is to call - Application#setNavigationHandler(NavigationHandler) on the wrapped - Application object. true
-
true
JSF:JAVADOC:199voidjakarta.faces.application.ApplicationWrapper.setPropertyResolver
- - ( PropertyResolver )
The - default behavior of this method is to call - Application#setPropertyResolver(jakarta.faces.el.PropertyResolver) on - the wrapped Application object. true
-
true
JSF:JAVADOC:200voidjakarta.faces.application.ApplicationWrapper.setResourceHandler
- - ( ResourceHandler )
The - default behavior of this method is to call - Application#setResourceHandler(ResourceHandler) on the wrapped - Application object. true
-
true
JSF:JAVADOC:201voidjakarta.faces.application.ApplicationWrapper.setStateManager
- - ( StateManager )
The - default behavior of this method is to call - Application#setStateManager(StateManager) on the wrapped Application - object. true
-
true
JSF:JAVADOC:202voidjakarta.faces.application.ApplicationWrapper.setSupportedLocales
- - ( Collection )
The - default behavior of this method is to call - Application#setSupportedLocales(java.util.Collection) on the wrapped - Application object. true
-
true
JSF:JAVADOC:203voidjakarta.faces.application.ApplicationWrapper.setVariableResolver
- - ( VariableResolver )
The - default behavior of this method is to call - Application#setVariableResolver(jakarta.faces.el.VariableResolver) on - the wrapped Application object. true
-
true
JSF:JAVADOC:204voidjakarta.faces.application.ApplicationWrapper.setViewHandler
- - ( ViewHandler )
The - default behavior of this method is to call - Application#setViewHandler(ViewHandler) on the wrapped Application - object. true
-
true
JSF:JAVADOC:205voidjakarta.faces.application.ApplicationWrapper.subscribeToEvent
- - ( Class ,
- Class ,
- SystemEventListener )
The - default behavior of this method is to call - Application#subscribeToEvent(Class, Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application - object. true
-
true
JSF:JAVADOC:206voidjakarta.faces.application.ApplicationWrapper.subscribeToEvent
- - ( Class ,
- SystemEventListener )
The - default behavior of this method is to call - Application#subscribeToEvent(Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application - object. true
-
true
JSF:JAVADOC:207voidjakarta.faces.application.ApplicationWrapper.unsubscribeFromEvent
- - ( Class ,
- Class ,
- SystemEventListener )
The - default behavior of this method is to call - Application#unsubscribeFromEvent(Class, Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application - object. true
-
true
JSF:JAVADOC:208voidjakarta.faces.application.ApplicationWrapper.unsubscribeFromEvent
- - ( Class ,
- SystemEventListener )
The - default behavior of this method is to call - Application#unsubscribeFromEvent(Class, - jakarta.faces.event.SystemEventListener) on the wrapped Application - object. true
-
true
JSF:JAVADOC:209ConfigurableNavigationHandlerjakarta.faces.application.ConfigurableNavigationHandler.ConfigurableNavigationHandler
-

-
true
-
true
JSF:JAVADOC:210NavigationCasejakarta.faces.application.ConfigurableNavigationHandler.getNavigationCase
- - ( FacesContext ,
- String ,
- String )
Return - the NavigationCase representing the navigation that would be taken had - NavigationHandler#handleNavigation been called with the same arguments - or null if there is no such case. true
-
true
JSF:JAVADOC:211NavigationCasejakarta.faces.application.ConfigurableNavigationHandler.getNavigationCase
- - ( FacesContext ,
- String ,
- String )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:212Mapjakarta.faces.application.ConfigurableNavigationHandler.getNavigationCases
-
Return - a Map where the keys are values and the values are Set where each - element in the Set is a NavigationCase that applies to that . The - implementation must support live modifications to this Map. true
-
true
JSF:JAVADOC:213voidjakarta.faces.application.ConfigurableNavigationHandler.performNavigation
- - ( String )
A - convenience method to signal the Jakarta Server Faces implementation to - perform navigaton with the provided outcome. When the - NavigationHandler is invoked, the current viewId is treated as the - "from viewId" and the "from action" is null. true
-
true
JSF:JAVADOC:214voidjakarta.faces.application.ConfigurableNavigationHandler.performNavigation
- - ( String )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:215FacesMessagejakarta.faces.application.FacesMessage.FacesMessage
-
- - Construct a new jakarta.faces.application.FacesMessage with no initial - values. The severity is set to Severity.INFO. true
-
true
JSF:JAVADOC:216FacesMessagejakarta.faces.application.FacesMessage.FacesMessage
- - ( String )
- - Construct a new jakarta.faces.application.FacesMessage with just a - summary. The detail is null, the severity is set to Severity.INFO. true
-
true
JSF:JAVADOC:217FacesMessagejakarta.faces.application.FacesMessage.FacesMessage
- - ( String ,
- String )
- - Construct a new jakarta.faces.application.FacesMessage with the - specified initial values. The severity is set to Severity.INFO. true
-
true
JSF:JAVADOC:218FacesMessagejakarta.faces.application.FacesMessage.FacesMessage
- - ( Severity ,
- String ,
- String )
- Construct a new FacesMessage with the specified initial values. true
-
true
JSF:JAVADOC:219Stringjakarta.faces.application.FacesMessage.getDetail
-
Return - the localized detail text. If no localized detail text has been - defined for this message, return the localized summary text instead. true
-
true
JSF:JAVADOC:220Severityjakarta.faces.application.FacesMessage.getSeverity
-
Return - the severity level. true
-
true
JSF:JAVADOC:221Stringjakarta.faces.application.FacesMessage.getSummary
-
Return - the localized summary text. true
-
true
JSF:JAVADOC:222booleanjakarta.faces.application.FacesMessage.isRendered
-

-
true
-
true
JSF:JAVADOC:223voidjakarta.faces.application.FacesMessage.rendered
-
Marks - this message as having been rendered to the client. true
-
true
JSF:JAVADOC:224voidjakarta.faces.application.FacesMessage.setDetail
- - ( String )
Set the - localized detail text. true
-
true
JSF:JAVADOC:225voidjakarta.faces.application.FacesMessage.setSeverity
- - ( Severity )
Set the - severity level. true
-
true
JSF:JAVADOC:226voidjakarta.faces.application.FacesMessage.setSeverity
- - ( Severity )
- throws IllegalArgumentException
-
if the - specified severity level is not one of the supported valuestrue
-
true
JSF:JAVADOC:227voidjakarta.faces.application.FacesMessage.setSummary
- - ( String )
Set the - localized summary text. true
-
true
JSF:JAVADOC:228intjakarta.faces.application.FacesMessage.Severity.compareTo
- - ( Object )
Compare - this jakarta.faces.application.FacesMessage.Severity instance to the - specified one. Returns a negative integer, zero, or a positive integer - if this object is less than, equal to, or greater than the specified - object. true
-
true
JSF:JAVADOC:229intjakarta.faces.application.FacesMessage.Severity.getOrdinal
-
Return - the ordinal value of this FacesMessage.Severity instance. true
-
true
JSF:JAVADOC:230Stringjakarta.faces.application.FacesMessage.Severity.toString
-
Return - a String representation of this FacesMessage.Severity instance. true
-
true
JSF:JAVADOC:231booleanjakarta.faces.application.NavigationCase.equals
- - ( Object )

-
true
-
true
JSF:JAVADOC:232URLjakarta.faces.application.NavigationCase.getActionURL
- - ( FacesContext )
- - Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getActionURL on the path portion - of the url. true
-
true
JSF:JAVADOC:233URLjakarta.faces.application.NavigationCase.getActionURL
- - ( FacesContext )
- throws MalformedURLException
-
if the - process of constructing the URL causes this exception to be thrown.true
-
true
JSF:JAVADOC:234URLjakarta.faces.application.NavigationCase.getBookmarkableURL
- - ( FacesContext )
- - Construct an absolute URL suitable for a bookmarkable link to this - NavigationCase instance using - jakarta.faces.application.ViewHandler#getBookmarkableURL on the path - portion of the url. This URL may include view parameters specified as - metadata within the view. true
-
true
JSF:JAVADOC:235URLjakarta.faces.application.NavigationCase.getBookmarkableURL
- - ( FacesContext )
- throws MalformedURLException
-
if the - process of constructing the URL causes this exception to be thrown.true
-
true
JSF:JAVADOC:236Booleanjakarta.faces.application.NavigationCase.getCondition
- - ( FacesContext )
- Evaluates the for this , if any. The expression to be evaluated is - passed into the constructor as a string. When the expression is - evaluated, its value must be coerced into a boolean per the normail EL - coercion rules. true
-
true
JSF:JAVADOC:237Booleanjakarta.faces.application.NavigationCase.getCondition
- - ( FacesContext )
- throws any
-
exceptions - encountered during the process of evaluating the expression or - obtaining its value.true
-
true
JSF:JAVADOC:238Stringjakarta.faces.application.NavigationCase.getFromAction
-
Return - the for this true
-
true
JSF:JAVADOC:239Stringjakarta.faces.application.NavigationCase.getFromOutcome
-
Return - the for this true
-
true
JSF:JAVADOC:240Stringjakarta.faces.application.NavigationCase.getFromViewId
-
Return - the of the inside which this is nested. true
-
true
JSF:JAVADOC:241Mapjakarta.faces.application.NavigationCase.getParameters
-
Return - the parameters to be included for navigation cases requiring a - redirect. If no parameters are defined, null will be returned. The - keys in the Map are parameter names. For each key, the corresponding - value is a List of unconverted values. true
-
true
JSF:JAVADOC:242URLjakarta.faces.application.NavigationCase.getRedirectURL
- - ( FacesContext )
- - Construct an absolute URL suitable for a "redirect" to this - NavigationCase instance using - jakarta.faces.application.ViewHandler#getRedirectURL on the path portion - of the url. true
-
true
JSF:JAVADOC:243URLjakarta.faces.application.NavigationCase.getRedirectURL
- - ( FacesContext )
- throws MalformedURLException
-
if the - process of constructing the URL causes this exception to be thrown.true
-
true
JSF:JAVADOC:244URLjakarta.faces.application.NavigationCase.getResourceURL
- - ( FacesContext )
- - Construct an absolute URL to this NavigationCase instance using - jakarta.faces.application.ViewHandler#getResourceURL on the path portion - of the url. true
-
true
JSF:JAVADOC:245URLjakarta.faces.application.NavigationCase.getResourceURL
- - ( FacesContext )
- throws MalformedURLException
-
if the - process of constructing the URL causes this exception to be thrown.true
-
true
JSF:JAVADOC:246Stringjakarta.faces.application.NavigationCase.getToViewId
- - ( FacesContext )
- Evaluates the for this true
-
true
JSF:JAVADOC:247booleanjakarta.faces.application.NavigationCase.hasCondition
-
Test if - this navigation case has an associated element. true
-
true
JSF:JAVADOC:248intjakarta.faces.application.NavigationCase.hashCode
-

-
true
-
true
JSF:JAVADOC:249booleanjakarta.faces.application.NavigationCase.isIncludeViewParams
-
Return - the value for this . This will be true if the view parametets should - be encoded into the redirect URL (only applies to redirect case) true
-
true
JSF:JAVADOC:250booleanjakarta.faces.application.NavigationCase.isRedirect
-
Return - the value for this . This will be true if the new view should be - navigated to via a - jakarta.faces.context.ExternalContext#redirect(String) true
-
true
JSF:JAVADOC:251NavigationCasejakarta.faces.application.NavigationCase.NavigationCase
- - ( String ,
- String ,
- String ,
- String ,
- String ,
- Map ,
- boolean ,
- boolean )
- Construct a new NavigationCase based on the provided arguments. See - section JSF.7.4.2 for how a NavigationCase is used by the standard - ConfigurableNavigationHandler true
-
true
JSF:JAVADOC:252Stringjakarta.faces.application.NavigationCase.toString
-

-
true
-
true
JSF:JAVADOC:253voidjakarta.faces.application.NavigationHandler.handleNavigation
- - ( FacesContext ,
- String ,
- String )
Perform - navigation processing based on the state information in the specified - FacesContext, plus the outcome string returned by an executed - application action. If the implementation class also extends - ConfigurableNavigationHandler, the implementation must guarantee that - the logic used in a call to - ConfigurableNavigationHandler#getNavigationCase is used in this method - to determine the correct navigation. This method must set the render - targets (used in partial rendering) to render all invoking - jakarta.faces.context.PartialViewContext#setRenderAll) if the view - identifier has changed as the result of an application action (to take - into account Ajax requests). true
-
false
JSF:JAVADOC:254voidjakarta.faces.application.NavigationHandler.handleNavigation
- - ( FacesContext ,
- String ,
- String )
- throws NullPointerException
-
if - context is nulltrue
-
false
JSF:JAVADOC:255NavigationHandlerjakarta.faces.application.NavigationHandler.NavigationHandler
-

-
true
-
false
JSF:JAVADOC:256ProjectStagejakarta.faces.application.ProjectStage.valueOf
- - ( String )

-
true
-
true
JSF:JAVADOC:257ProjectStage[]jakarta.faces.application.ProjectStage.values
-

-
true
-
true
JSF:JAVADOC:258Stringjakarta.faces.application.Resource.getContentType
-
Return - the MIME content-type for this resource. true
-
true
JSF:JAVADOC:259InputStreamjakarta.faces.application.Resource.getInputStream
-
If the - current request is a resource request, (that is, - ResourceHandler#isResourceRequest returns true), return an InputStream - containing the bytes of the resource. Otherwise, throw an IOException. - true
-
true
JSF:JAVADOC:260InputStreamjakarta.faces.application.Resource.getInputStream
-
- throws IOException
-
if the - current request is not a resource request.true
-
true
JSF:JAVADOC:261Stringjakarta.faces.application.Resource.getLibraryName
-
Return - the libraryName for this resource. May be null. The libraryName for a - resource is an optional String that indicates membership in a - "resource library". All resources with the same libraryName belong to - the same "resource library". The "resource library" concept allows - disambiguating resources that have the same resourceName. See - ResourceHandler for more information. true
-
true
JSF:JAVADOC:262Stringjakarta.faces.application.Resource.getRequestPath
-
Return - a path to this resource such that, when the browser resolves it - against the base URI for the view that includes the resource, and - issues a GET request to the resultant fully qualified URL, the bytes - of the resource are returned in response. The default implementation - must implement the following algorithm. For discussion, the return - result from this method will be called result. Get the context-root - for this web application, not ending in slash. For discussion this - will be caled contextRoot. Discover if the FacesServlet is prefix or - extension mapped, and the value of the mapping (including the leading - '.' in the case of extension mapping). For discussion, this will be - facesServletMapping. If prefix mapped, result must be result = - contextRoot + '/' + facesServletMapping + - ResourceHandler#RESOURCE_IDENTIFIER + '/' + #getResourceName If - extension mapped, result must be result = contextRoot + - ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName + - facesServletMapping If #getLibraryName returns non-null, build up a - string, called resourceMetaData for discussion, as follows: - resourceMetaData = "?ln=" + #getLibraryName Append resourceMetaData to - result. Make it portlet safe by passing the result through - ViewHandler#getResourceURL. true
-
true
JSF:JAVADOC:263Stringjakarta.faces.application.Resource.getResourceName
-
Return - the resourceName for this resource. Will never be null. All Resource - instances must have a resourceName. true
-
true
JSF:JAVADOC:264Mapjakarta.faces.application.Resource.getResponseHeaders
-
Returns - a mutable Map whose entries will be sent as response headers during - ResourceHandler#handleResourceRequest. The entries in this map must - not persist beyond the scope of a single request. Any modifications - made to the map after the resource has been served will be ignored by - the run-time. true
-
true
JSF:JAVADOC:265URLjakarta.faces.application.Resource.getURL
-
Return - an actual URL instance that refers to this resource instance. true
-
true
JSF:JAVADOC:266Resourcejakarta.faces.application.Resource.Resource
-

-
true
-
true
JSF:JAVADOC:267voidjakarta.faces.application.Resource.setContentType
- - ( String )
Set the - MIME content-type for this resource. The default implementation - performs no validation on the argument. true
-
true
JSF:JAVADOC:268voidjakarta.faces.application.Resource.setLibraryName
- - ( String )
Set the - libraryName for this resource. true
-
true
JSF:JAVADOC:269voidjakarta.faces.application.Resource.setResourceName
- - ( String )
Set the - resourceName for this resource. true
-
true
JSF:JAVADOC:270voidjakarta.faces.application.Resource.setResourceName
- - ( String )
- throws NullPointerException
-
if - argument resourceName is null.true
-
true
JSF:JAVADOC:271Stringjakarta.faces.application.Resource.toString
-
Call - through to #getRequestPath and return the result. true
-
true
JSF:JAVADOC:272booleanjakarta.faces.application.Resource.userAgentNeedsUpdate
- - ( FacesContext )
Return - true if the user-agent requesting this resource needs an update. - Returns false otherwise. true
-
true
JSF:JAVADOC:273ResourceDependency[]jakarta.faces.application.ResourceDependencies.value
-

-
true
-
true
JSF:JAVADOC:274Stringjakarta.faces.application.ResourceDependency.library
-
The - libraryName in which the resource pointed to by this - ResourceDependency resides. If not specified, defaults to the empty - string. It is valid to have EL Expressions in the value of this - attribute, as long as the expression resolves to an instance of the - expected type. true
-
true
JSF:JAVADOC:275Stringjakarta.faces.application.ResourceDependency.name
-
The - resourceName of the resource pointed to by this ResourceDependency. It - is valid to have EL Expressions in the value of this attribute, as - long as the expression resolves to an instance of the expected type. true
-
true
JSF:JAVADOC:276Stringjakarta.faces.application.ResourceDependency.target
-
The - value given for this attribute will be passed as the "target" argument - to - jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext, - jakarta.faces.component.UIComponent, java.lang.String). If this - attribute is specified, - jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) - must be called instead, as described above. It is valid to have EL - Expressions in the value of this attribute, as long as the expression - resolves to an instance of the expected type. true
-
true
JSF:JAVADOC:277Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String )
Create - an instance of Resource given the argument resourceName. The - content-type of the resource is derived by passing the resourceName to - jakarta.faces.context.ExternalContext#getMimeType The algorithm - specified in section JSF.2.6.1.4 of the spec prose document linked in - the overview summary must be executed to create the Resource true
-
true
JSF:JAVADOC:278Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String )
- throws NullPointerException
-
if - resourceName is null.true
-
true
JSF:JAVADOC:279Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String ,
- String )
Create - an instance of Resource with a resourceName given by the value of the - argument resourceName that is a member of the library named by the - argument libraryName. The content-type of the resource is derived by - passing the resourceName to - jakarta.faces.context.ExternalContext#getMimeType. The algorithm - specified in section JSF.2.6.1.4 of the spec prose document linked in - the overview summary must be executed to create the Resource true
-
true
JSF:JAVADOC:280Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String ,
- String )
- throws <code>NullPointerException</code>
-
if - resourceName is nulltrue
-
true
JSF:JAVADOC:281Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String ,
- String ,
- String )
Create - an instance of Resource with a resourceName given by the value of the - argument resourceName that is a member of the library named by the - argument libraryName that claims to have the content-type given by the - argument content-type. The algorithm specified in section JSF.2.6.1.4 - of the spec prose document linked in the overview summary must be - executed to create the Resource true
-
true
JSF:JAVADOC:282Resourcejakarta.faces.application.ResourceHandler.createResource
- - ( String ,
- String ,
- String )
- throws <code>NullPointerException</code>
-
if - resourceName is null.true
-
true
JSF:JAVADOC:283Stringjakarta.faces.application.ResourceHandler.getRendererTypeForResourceName
- - ( String )
Return - the renderer-type for a jakarta.faces.render.Renderer that is capable of - rendering this resource. The default implementation must return values - according to the following table. If no renderer-type can be - determined, null must be returned. example resource name renderer-type - mycomponent.js jakarta.faces.resource.Script mystyle.css - jakarta.faces.resource.Stylesheet true
-
true
JSF:JAVADOC:284voidjakarta.faces.application.ResourceHandler.handleResourceRequest
- - ( FacesContext )
This - method specifies the contract for satisfying resource requests. This - method is called from jakarta.faces.webapp.FacesServlet#service after - that method determines the current request is a resource request by - calling #isResourceRequest. Thus, handleResourceRequest may assume - that the current request is a resource request. The default - implementation must implement an algorithm semantically identical to - the following algorithm. For discussion, in all cases when a status - code is to be set, this spec talks only using the Servlet API, but it - is understood that in a portlet environment the appropriate equivalent - API must be used. If the resourceIdentifier ends with any of the - extensions listed in the value of the #RESOURCE_EXCLUDES_PARAM_NAME - init parameter, HttpServletRequest.SC_NOT_FOUND must be passed to - HttpServletResponse.setStatus(), then handleResourceRequest must - immediately return. Extract the resourceName from the - resourceIdentifier by taking the substring of resourceIdentifier that - starts at #RESOURCE_IDENTIFIER.length() + 1 and goes to the end of - resourceIdentifier. If no resourceName can be extracted, - HttpServletRequest.SC_NOT_FOUND must be passed to - HttpServletResponse.setStatus(), then handleResourceRequest must - immediately return. Extract the libraryName from the request by - looking in the request parameter map for an entry under the key "ln", - without the quotes. If found, use its value as the libraryName. If - resourceName and libraryName are present, call #createResource(String, - String) to create the Resource. If only resourceName is present, call - #createResource(String) to create the Resource. If the Resource cannot - be successfully created, HttpServletRequest.SC_NOT_FOUND must be - passed to HttpServletResponse.setStatus(), then handleResourceRequest - must immediately return. Call Resource#userAgentNeedsUpdate. If this - method returns false, HttpServletRequest.SC_NOT_MODIFIED must be - passed to HttpServletResponse.setStatus(), then handleResourceRequest - must immediately return. Pass the result of Resource#getContentType to - HttpServletResponse.setContentType. Call Resource#getResponseHeaders. - For each entry in this Map, call HttpServletResponse.setHeader(), - passing the key as the first argument and the value as the second - argument. Call Resource#getInputStream and serve up the bytes of the - resource to the response. Call HttpServletResponse.setContentLength() - passing the byte count of the resource. If an IOException is thrown - during any of the previous steps, log a descriptive, localized - message, including the resourceName and libraryName (if present). - Then, HttpServletRequest.SC_NOT_FOUND must be passed to - HttpServletResponse.setStatus(), then handleResourceRequest must - immediately return. In all cases in this method, any streams, - channels, sockets, or any other IO resources must be closed before - this method returns. true
-
true
JSF:JAVADOC:285voidjakarta.faces.application.ResourceHandler.handleResourceRequest
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:286booleanjakarta.faces.application.ResourceHandler.isResourceRequest
- - ( FacesContext )
Return - true if the current request is a resource request. This method is - called by jakarta.faces.webapp.FacesServlet#service to determine if this - request is a view request or a resource request. true
-
true
JSF:JAVADOC:287booleanjakarta.faces.application.ResourceHandler.libraryExists
- - ( String )
Return - true if the resource library named by the argument libraryName can be - found. true
-
true
JSF:JAVADOC:288ResourceHandlerjakarta.faces.application.ResourceHandler.ResourceHandler
-

-
true
-
true
JSF:JAVADOC:289Resourcejakarta.faces.application.ResourceHandlerWrapper.createResource
- - ( String )
The - default behavior of this method is to call - ResourceHandler#createResource(String) on the wrapped ResourceHandler - object. true
-
true
JSF:JAVADOC:290Resourcejakarta.faces.application.ResourceHandlerWrapper.createResource
- - ( String ,
- String )
The - default behavior of this method is to call - ResourceHandler#createResource(String, String) on the wrapped - ResourceHandler object. true
-
true
JSF:JAVADOC:291Resourcejakarta.faces.application.ResourceHandlerWrapper.createResource
- - ( String ,
- String ,
- String )
The - default behavior of this method is to call - ResourceHandler#createResource(String, String, String) on the wrapped - ResourceHandler object. true
-
true
JSF:JAVADOC:292Stringjakarta.faces.application.ResourceHandlerWrapper.getRendererTypeForResourceName
- - ( String )
The - default behavior of this method is to call - ResourceHandler#getRendererTypeForResourceName(String) on the wrapped - ResourceHandler object. true
-
true
JSF:JAVADOC:293ResourceHandlerjakarta.faces.application.ResourceHandlerWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:294voidjakarta.faces.application.ResourceHandlerWrapper.handleResourceRequest
- - ( FacesContext )
The - default behavior of this method is to call - ResourceHandler#handleResourceRequest(jakarta.faces.context.FacesContext) - on the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:295voidjakarta.faces.application.ResourceHandlerWrapper.handleResourceRequest
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:296booleanjakarta.faces.application.ResourceHandlerWrapper.isResourceRequest
- - ( FacesContext )
The - default behavior of this method is to call - ResourceHandler#isResourceRequest(jakarta.faces.context.FacesContext) on - the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:297booleanjakarta.faces.application.ResourceHandlerWrapper.libraryExists
- - ( String )
The - default behavior of this method is to call - ResourceHandler#libraryExists(String) on the wrapped ResourceHandler - object. true
-
true
JSF:JAVADOC:298ResourceHandlerWrapperjakarta.faces.application.ResourceHandlerWrapper.ResourceHandlerWrapper
-

-
true
-
true
JSF:JAVADOC:299InputStreamjakarta.faces.application.ResourceWrapper.getInputStream
-
The - default behavior of this method is to call Resource#getInputStream on - the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:300InputStreamjakarta.faces.application.ResourceWrapper.getInputStream
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:301Stringjakarta.faces.application.ResourceWrapper.getRequestPath
-
The - default behavior of this method is to call Resource#getRequestPath on - the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:302Mapjakarta.faces.application.ResourceWrapper.getResponseHeaders
-
The - default behavior of this method is to call Resource#getResponseHeaders - on the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:303URLjakarta.faces.application.ResourceWrapper.getURL
-
The - default behavior of this method is to call Resource#getURL on the - wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:304Resourcejakarta.faces.application.ResourceWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:305ResourceWrapperjakarta.faces.application.ResourceWrapper.ResourceWrapper
-

-
true
-
true
JSF:JAVADOC:306booleanjakarta.faces.application.ResourceWrapper.userAgentNeedsUpdate
- - ( FacesContext )
The - default behavior of this method is to call - Resource#userAgentNeedsUpdate on the wrapped ResourceHandler object. true
-
true
JSF:JAVADOC:307Stringjakarta.faces.application.StateManager.getViewState
- - ( FacesContext )
- Convenience method to return the view state as a String with no - RenderKit specific markup. This default implementation of this method - will call #saveView(jakarta.faces.context.FacesContext) and passing the - result to and returning the resulting value from - ResponseStateManager#getViewState(jakarta.faces.context.FacesContext, - Object). true
-
true
JSF:JAVADOC:308booleanjakarta.faces.application.StateManager.isSavingStateInClient
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:309booleanjakarta.faces.application.StateManager.isSavingStateInClient
- - ( FacesContext )
- throws NullPointerException
-
if - context is null.true
-
true
JSF:JAVADOC:310UIViewRootjakarta.faces.application.StateManager.restoreView
- - ( FacesContext ,
- String ,
- String )
Restore - the tree structure and the component state of the view for the - specified viewId, in an implementation dependent manner, and return - the restored UIViewRoot. If there is no saved state information - available for this viewId, return null instead. This method must - consult the context initialization parameter named by the symbolic - constant StateManager.STATE_SAVING_METHOD_PARAM_NAME to determine - whether state should be saved on the client or the server. If not - present, client side state saving is assumed. If the init parameter - indicates that client side state saving should be used, this method - must call the getTreeStructureToRestore() and (if the previous method - call returned a non-null value) getComponentStateToRestore() methods - of the ResponseStateManager instance provided by the RenderKit - responsible for this view. true
-
false
JSF:JAVADOC:311UIViewRootjakarta.faces.application.StateManager.restoreView
- - ( FacesContext ,
- String ,
- String )
- throws IllegalArgumentException
-
if - renderKitId is null.true
-
true
JSF:JAVADOC:312SerializedViewjakarta.faces.application.StateManager.saveSerializedView
- - ( FacesContext )
Return - the tree structure and component state information for the view - contained in the specified FacesContext instance as an object of type - StateManager.SerializedView. If there is no state information to be - saved, return null instead. Components may opt out of being included - in the serialized view by setting their transient property to true. - This must cause the component itself, as well as all of that - component's children and facets, to be omitted from the saved tree - structure and component state information. This method must also - enforce the rule that, for components with non-null ids, all - components that are descendants of the same nearest NamingContainer - must have unique identifiers. truetruetrue
JSF:JAVADOC:313SerializedViewjakarta.faces.application.StateManager.saveSerializedView
- - ( FacesContext )
- throws IllegalStateException
-
if more - than one component or facet within the same NamingContainer in this - view has the same non-null component idtruetruetrue
JSF:JAVADOC:314Objectjakarta.faces.application.StateManager.saveView
- - ( FacesContext )
Return - an opaque Object containing sufficient information for this same - instance to restore the state of the current UIViewRoot on a - subsequent request. The returned object must implement - java.io.Serializable. If there is no state information to be saved, - return null instead. Components may opt out of being included in the - serialized view by setting their transient property to true. This must - cause the component itself, as well as all of that component's - children and facets, to be omitted from the saved tree structure and - component state information. This method must also enforce the rule - that, for components with non-null ids, all components that are - descendants of the same nearest NamingContainer must have unique - identifiers. For backwards compatability with existing StateManager - implementations, the default implementation of this method calls - #saveSerializedView and creates and returns a two element Object array - with element zero containing the structure property and element one - containing the state property of the SerializedView. true
-
true
JSF:JAVADOC:315Objectjakarta.faces.application.StateManager.saveView
- - ( FacesContext )
- throws IllegalStateException
-
if more - than one component or facet within the same NamingContainer in this - view has the same non-null component idtrue
-
true
JSF:JAVADOC:316StateManagerjakarta.faces.application.StateManager.StateManager
-

-
true
-
true
JSF:JAVADOC:317voidjakarta.faces.application.StateManager.writeState
- - ( FacesContext ,
- Object )
Save - the state represented in the specified state Object instance, in an - implementation dependent manner. This method will typically simply - delegate the actual writing to the writeState() method of the - ResponseStateManager instance provided by the RenderKit being used to - render this view. This method assumes that the caller has positioned - the ResponseWriter at the correct position for the saved state to be - written. For backwards compatability with existing StateManager - implementations, the default implementation of this method checks if - the argument is an instance of Object [] of length greater than or - equal to two. If so, it creates a SerializedView instance with the - tree structure coming from element zero and the component state coming - from element one and calls through to - #writeState(jakarta.faces.context.FacesContext,jakarta.faces.application.StateManager.SerializedView). - If not, does nothing. true
-
false
JSF:JAVADOC:318voidjakarta.faces.application.StateManager.writeState
- - ( FacesContext ,
- Object )
- throws IOException
-

-
true
-
false
JSF:JAVADOC:319voidjakarta.faces.application.StateManager.writeState
- - ( FacesContext ,
- SerializedView )
Save - the state represented in the specified SerializedView isntance, in an - implementation dependent manner. This method must consult the context - initialization parameter named by the symbolic constant - StateManager.STATE_SAVING_METHOD_PARAM_NAME to determine whether state - should be saved on the client or the server. If not present, client - side state saving is assumed. If the init parameter indicates that - client side state saving should be used, this method must delegate the - actual writing to the writeState() method of the ResponseStateManager - instance provided by the RenderKit being used to render this view. - This method assumes that the caller has positioned the ResponseWriter - at the correct position for the saved state to be written. truetruefalse
JSF:JAVADOC:320voidjakarta.faces.application.StateManager.writeState
- - ( FacesContext ,
- SerializedView )
- throws IOException
-

-
truetruefalse
JSF:JAVADOC:321Objectjakarta.faces.application.StateManager.SerializedView.getState
-

-
truetruetrue
JSF:JAVADOC:322Objectjakarta.faces.application.StateManager.SerializedView.getStructure
-

-
truetruetrue
JSF:JAVADOC:323SerializedViewjakarta.faces.application.StateManager.SerializedView.StateManager.SerializedView
- - ( Object ,
- Object )

-
truetruetrue
JSF:JAVADOC:324Stringjakarta.faces.application.StateManagerWrapper.getViewState
- - ( FacesContext )
The - default behavior of this method is to call - StateManager#getViewState(jakarta.faces.context.FacesContext) on the - wrapped StateManager object. true
-
true
JSF:JAVADOC:325StateManagerjakarta.faces.application.StateManagerWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:326booleanjakarta.faces.application.StateManagerWrapper.isSavingStateInClient
- - ( FacesContext )
The - default behavior of this method is to call - StateManager#isSavingStateInClient(jakarta.faces.context.FacesContext) - on the wrapped StateManager object. true
-
true
JSF:JAVADOC:327UIViewRootjakarta.faces.application.StateManagerWrapper.restoreView
- - ( FacesContext ,
- String ,
- String )
The - default behavior of this method is to call - StateManager#restoreView(jakarta.faces.context.FacesContext, String, - String) on the wrapped StateManager object. true
-
true
JSF:JAVADOC:328SerializedViewjakarta.faces.application.StateManagerWrapper.saveSerializedView
- - ( FacesContext )
The - default behavior of this method is to call - StateManager#saveSerializedView(jakarta.faces.context.FacesContext) on - the wrapped StateManager object. true
-
true
JSF:JAVADOC:329Objectjakarta.faces.application.StateManagerWrapper.saveView
- - ( FacesContext )
The - default behavior of this method is to call - StateManager#saveView(jakarta.faces.context.FacesContext) on the wrapped - StateManager object. true
-
true
JSF:JAVADOC:330StateManagerWrapperjakarta.faces.application.StateManagerWrapper.StateManagerWrapper
-

-
true
-
true
JSF:JAVADOC:331voidjakarta.faces.application.StateManagerWrapper.writeState
- - ( FacesContext ,
- Object )
The - default behavior of this method is to call - StateManager#writeState(jakarta.faces.context.FacesContext, - java.lang.Object) on the wrapped StateManager object. true
-
true
JSF:JAVADOC:332voidjakarta.faces.application.StateManagerWrapper.writeState
- - ( FacesContext ,
- Object )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:333voidjakarta.faces.application.StateManagerWrapper.writeState
- - ( FacesContext ,
- SerializedView )
The - default behavior of this method is to call - StateManager#writeState(jakarta.faces.context.FacesContext, - jakarta.faces.application.StateManager.SerializedView) on the wrapped - StateManager object. true
-
true
JSF:JAVADOC:334voidjakarta.faces.application.StateManagerWrapper.writeState
- - ( FacesContext ,
- SerializedView )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:335Stringjakarta.faces.application.ViewExpiredException.getMessage
-
Return - the message for this exception prepended with the view identifier if - the view identifier is not null, otherwise, return the message. true
-
true
JSF:JAVADOC:336Stringjakarta.faces.application.ViewExpiredException.getViewId
-
Return - the view identifier of this exception, or null if the view identifier - is nonexistent or unknown. true
-
true
JSF:JAVADOC:337ViewExpiredExceptionjakarta.faces.application.ViewExpiredException.ViewExpiredException
-
- Construct a new exception with no detail message or root cause. true
-
true
JSF:JAVADOC:338ViewExpiredExceptionjakarta.faces.application.ViewExpiredException.ViewExpiredException
- - ( String )
- Construct a new exception with the specified view identifier. true
-
true
JSF:JAVADOC:339ViewExpiredExceptionjakarta.faces.application.ViewExpiredException.ViewExpiredException
- - ( String ,
- String )
- Construct a new exception with the specified detail message and no - root cause. true
-
true
JSF:JAVADOC:340ViewExpiredExceptionjakarta.faces.application.ViewExpiredException.ViewExpiredException
- - ( Throwable ,
- String )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() true
-
true
JSF:JAVADOC:341ViewExpiredExceptionjakarta.faces.application.ViewExpiredException.ViewExpiredException
- - ( String ,
- Throwable ,
- String )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:342Stringjakarta.faces.application.ViewHandler.calculateCharacterEncoding
- - ( FacesContext )
Returns - the correct character encoding to be used for this request. The - following algorithm is employed. Examine the Content-Type request - header. If it has a charset parameter, extract it and return that as - the encoding. If no charset parameter was found, check for the - existence of a session by calling ExternalContext#getSession(boolean) - passing false as the argument. If that method returns true, get the - session Map by calling ExternalContext#getSessionMap and look for a - value under the key given by the value of the symbolic constant - ViewHandler#CHARACTER_ENCODING_KEY. If present, return the value, - converted to String. Otherwise, return null true
-
true
JSF:JAVADOC:343Localejakarta.faces.application.ViewHandler.calculateLocale
- - ( FacesContext )
Returns - an appropriate Locale to use for this and subsequent requests for the - current client. true
-
true
JSF:JAVADOC:344Localejakarta.faces.application.ViewHandler.calculateLocale
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:345Stringjakarta.faces.application.ViewHandler.calculateRenderKitId
- - ( FacesContext )
Return - an appropriate renderKitId for this and subsequent requests from the - current client. It is an error for this method to return null. The - default return value is - jakarta.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT. true
-
true
JSF:JAVADOC:346Stringjakarta.faces.application.ViewHandler.calculateRenderKitId
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:347UIViewRootjakarta.faces.application.ViewHandler.createView
- - ( FacesContext ,
- String )
Create - and return a new UIViewRoot instance initialized with information from - the argument FacesContext and viewId. Locate the - ViewDeclarationLanguage implementation for the VDL used in the view. - The argument viewId must be converted to a physical viewId that can - refer to an actual resource suitable for use by the - ViewDeclarationLanguage ViewDeclarationLanguage#createView, which must - be called by this method. true
-
true
JSF:JAVADOC:348UIViewRootjakarta.faces.application.ViewHandler.createView
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:349Stringjakarta.faces.application.ViewHandler.deriveViewId
- - ( FacesContext ,
- String )
Derive - and return the viewId from the current request, or the argument input - by following the algorithm defined in specification section JSF.7.5.2. - The default implementation of this method simply returns rawViewId - unchanged. true
-
true
JSF:JAVADOC:350Stringjakarta.faces.application.ViewHandler.getActionURL
- - ( FacesContext ,
- String )
If the - value returned from this method is used as the file argument to the - four-argument constructor for java.net.URL (assuming appropriate - values are used for the first three arguments), then a client making a - request to the toExternalForm() of that URL will select the argument - viewId for traversing the JSF lifecycle. Please see section JSF.7.5.2 - for the complete specification. true
-
true
JSF:JAVADOC:351Stringjakarta.faces.application.ViewHandler.getActionURL
- - ( FacesContext ,
- String )
- throws IllegalArgumentException
-
if - viewId is not valid for this ViewHandler, or does not start with "/".true
-
true
JSF:JAVADOC:352Stringjakarta.faces.application.ViewHandler.getActionURL
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context or viewId is null.true
-
true
JSF:JAVADOC:353Stringjakarta.faces.application.ViewHandler.getBookmarkableURL
- - ( FacesContext ,
- String ,
- Map ,
- boolean )
Return - a JSF action URL derived from the viewId argument that is suitable to - be used as the target of a link in a JSF response. Compiliant - implementations must implement this method as specified in section - JSF.7.5.2. The default implementation simply calls through to - #getActionURL, passing the arguments context and viewId. true
-
true
JSF:JAVADOC:354Stringjakarta.faces.application.ViewHandler.getRedirectURL
- - ( FacesContext ,
- String ,
- Map ,
- boolean )
Return - a JSF action URL derived from the viewId argument that is suitable to - be used by the NavigationHandler to issue a redirect request to the - URL using a NonFaces request. Compiliant implementations must - implement this method as specified in section JSF.7.5.2. The default - implementation simply calls through to #getActionURL, passing the - arguments context and viewId. true
-
true
JSF:JAVADOC:355Stringjakarta.faces.application.ViewHandler.getResourceURL
- - ( FacesContext ,
- String )
If the - value returned from this method is used as the file argument to the - four-argument constructor for java.net.URL (assuming appropriate - values are used for the first three arguments), then a client making a - request to the toExternalForm() of that URL will select the argument - path for direct rendering. If the specified path starts with a slash, - it must be treated as context relative; otherwise, it must be treated - as relative to the action URL of the current view. true
-
true
JSF:JAVADOC:356Stringjakarta.faces.application.ViewHandler.getResourceURL
- - ( FacesContext ,
- String )
- throws IllegalArgumentException
-
if - viewId is not valid for this ViewHandler.true
-
true
JSF:JAVADOC:357Stringjakarta.faces.application.ViewHandler.getResourceURL
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context or path is null.true
-
true
JSF:JAVADOC:358ViewDeclarationLanguagejakarta.faces.application.ViewHandler.getViewDeclarationLanguage
- - ( FacesContext ,
- String )
Return - the ViewDeclarationLanguage instance used for this ViewHandler - instance. The default implementation must use - jakarta.faces.view.ViewDeclarationLanguageFactory#getViewDeclarationLanguage - to obtain the appropriate ViewDeclarationLanguage implementation for - the argument viewId. Any exceptions thrown as a result of invoking - that method must not be swallowed. The default implementation of this - method returns null. true
-
true
JSF:JAVADOC:359voidjakarta.faces.application.ViewHandler.initView
- - ( FacesContext )
- Initialize the view for the request processing lifecycle. This method - must be called at the beginning of the Restore View Phase of the - Request Processing Lifecycle. It is responsible for performing any - per-request initialization necessary to the operation of the - lifycecle. The default implementation must perform the following - actions. If ExternalContext#getRequestCharacterEncoding returns null, - call #calculateCharacterEncoding and pass the result, if non-null, - into the ExternalContext#setRequestCharacterEncoding method. If - ExternalContext#getRequestCharacterEncoding returns non-null take no - action. true
-
true
JSF:JAVADOC:360voidjakarta.faces.application.ViewHandler.initView
- - ( FacesContext )
- throws FacesException
-
if a - problem occurs setting the encoding, such as the - UnsupportedEncodingException thrown by the underlying Servlet or - Portlet technology when the encoding is not supported.true
-
true
JSF:JAVADOC:361voidjakarta.faces.application.ViewHandler.renderView
- - ( FacesContext ,
- UIViewRoot )
Perform - whatever actions are required to render the response view to the - response object associated with the current FacesContext. Otherwise, - the default implementation must obtain a reference to the - ViewDeclarationLanguage for the viewId of the argument viewToRender - and call its ViewDeclarationLanguage#renderView method, returning the - result and not swallowing any exceptions thrown by that method. true
-
true
JSF:JAVADOC:362voidjakarta.faces.application.ViewHandler.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:363voidjakarta.faces.application.ViewHandler.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws FacesException
-
if a - servlet error occurstrue
-
true
JSF:JAVADOC:364voidjakarta.faces.application.ViewHandler.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws NullPointerException
-
if - context or viewToRender is nulltrue
-
true
JSF:JAVADOC:365UIViewRootjakarta.faces.application.ViewHandler.restoreView
- - ( FacesContext ,
- String )
Perform - whatever actions are required to restore the view associated with the - specified FacesContext and viewId. It may delegate to the restoreView - of the associated StateManager to do the actual work of restoring the - view. If there is no available state for the specified viewId, return - null. Otherwise, the default implementation must obtain a reference to - the ViewDeclarationLanguage for this viewId and call its - ViewDeclarationLanguage#restoreView method, returning the result and - not swallowing any exceptions thrown by that method. true
-
true
JSF:JAVADOC:366UIViewRootjakarta.faces.application.ViewHandler.restoreView
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:367UIViewRootjakarta.faces.application.ViewHandler.restoreView
- - ( FacesContext ,
- String )
- throws FacesException
-
if a - servlet error occurstrue
-
true
JSF:JAVADOC:368ViewHandlerjakarta.faces.application.ViewHandler.ViewHandler
-

-
true
-
true
JSF:JAVADOC:369voidjakarta.faces.application.ViewHandler.writeState
- - ( FacesContext )
Take - any appropriate action to either immediately write out the current - state information (by calling StateManager#writeState, or noting where - state information should later be written. This method must do nothing - if the current request is an Ajax request. When responding to Ajax - requests, the state is obtained by calling StateManager#getViewState - and then written into the Ajax response during final encoding - (jakarta.faces.component.UIViewRoot#encodeEnd. true
-
true
JSF:JAVADOC:370voidjakarta.faces.application.ViewHandler.writeState
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:371voidjakarta.faces.application.ViewHandler.writeState
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:372Stringjakarta.faces.application.ViewHandlerWrapper.calculateCharacterEncoding
- - ( FacesContext )
The - default behavior of this method is to call - ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext) - on the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:373Localejakarta.faces.application.ViewHandlerWrapper.calculateLocale
- - ( FacesContext )
The - default behavior of this method is to call - ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the - wrapped ViewHandler object. true
-
true
JSF:JAVADOC:374Stringjakarta.faces.application.ViewHandlerWrapper.calculateRenderKitId
- - ( FacesContext )
The - default behavior of this method is to call - ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on - the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:375UIViewRootjakarta.faces.application.ViewHandlerWrapper.createView
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#createView(jakarta.faces.context.FacesContext, String) on - the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:376Stringjakarta.faces.application.ViewHandlerWrapper.deriveViewId
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on - the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:377Stringjakarta.faces.application.ViewHandlerWrapper.getActionURL
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on - the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:378Stringjakarta.faces.application.ViewHandlerWrapper.getBookmarkableURL
- - ( FacesContext ,
- String ,
- Map ,
- boolean )
The - default behavior of this method is to call - ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, - String, java.util.Map, boolean) on the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:379Stringjakarta.faces.application.ViewHandlerWrapper.getRedirectURL
- - ( FacesContext ,
- String ,
- Map ,
- boolean )
The - default behavior of this method is to call - ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, - java.util.Map, boolean) on the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:380Stringjakarta.faces.application.ViewHandlerWrapper.getResourceURL
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) - on the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:381ViewDeclarationLanguagejakarta.faces.application.ViewHandlerWrapper.getViewDeclarationLanguage
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#getViewDeclarationLanguage on the wrapped ViewHandler - object. true
-
true
JSF:JAVADOC:382ViewHandlerjakarta.faces.application.ViewHandlerWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:383voidjakarta.faces.application.ViewHandlerWrapper.initView
- - ( FacesContext )
The - default behavior of this method is to call ViewHandler#initView on the - wrapped ViewHandler object. true
-
true
JSF:JAVADOC:384voidjakarta.faces.application.ViewHandlerWrapper.initView
- - ( FacesContext )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:385voidjakarta.faces.application.ViewHandlerWrapper.renderView
- - ( FacesContext ,
- UIViewRoot )
The - default behavior of this method is to call - ViewHandler#renderView(jakarta.faces.context.FacesContext, - jakarta.faces.component.UIViewRoot) on the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:386voidjakarta.faces.application.ViewHandlerWrapper.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:387voidjakarta.faces.application.ViewHandlerWrapper.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:388UIViewRootjakarta.faces.application.ViewHandlerWrapper.restoreView
- - ( FacesContext ,
- String )
The - default behavior of this method is to call - ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on - the wrapped ViewHandler object. true
-
true
JSF:JAVADOC:389ViewHandlerWrapperjakarta.faces.application.ViewHandlerWrapper.ViewHandlerWrapper
-

-
true
-
true
JSF:JAVADOC:390voidjakarta.faces.application.ViewHandlerWrapper.writeState
- - ( FacesContext )
The - default behavior of this method is to call - ViewHandler#writeState(jakarta.faces.context.FacesContext) on the - wrapped ViewHandler object. true
-
true
JSF:JAVADOC:391voidjakarta.faces.application.ViewHandlerWrapper.writeState
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:392voidjakarta.faces.component.ActionSource.addActionListener
- - ( ActionListener )
Add a - new ActionListener to the set of listeners interested in being - notified when ActionEvents occur. true
-
true
JSF:JAVADOC:393voidjakarta.faces.component.ActionSource.addActionListener
- - ( ActionListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:394MethodBindingjakarta.faces.component.ActionSource.getAction
-
If the - implementing class also implements ActionSource2, the implementation - of this method must call through to ActionSource2#getActionExpression - and examine the result. If the result came from a previous call to - #setAction, extract the MethodBinding from it and return it. - Otherwise, wrap the returned jakarta.el.MethodExpression in a - MethodBinding implementation, and return it. If the implementing class - does not implement ActionSource2, return the MethodBindingpointing at - the application action to be invoked, if this UIComponent is activated - by the user, during the Apply Request Values or Invoke Application - phase of the request processing lifecycle, depending on the value of - the immediate property. truetruetrue
JSF:JAVADOC:395MethodBindingjakarta.faces.component.ActionSource.getActionListener
-
If - #setActionListener was not previously called for this instance, this - method must return null. If it was called, this method must return the - exact MethodBinding instance that was passed to #setActionListener. - The method to be invoked, if this UIComponent is activated by the - user, will be called during the Apply Request Values or Invoke - Application phase of the request processing lifecycle, depending upon - the value of the immediate property. truetruetrue
JSF:JAVADOC:396ActionListener[]jakarta.faces.component.ActionSource.getActionListeners
-
Return - the set of registered ActionListeners for this ActionSource instance. - If there are no registered listeners, a zero-length array is returned. - true
-
true
JSF:JAVADOC:397booleanjakarta.faces.component.ActionSource.isImmediate
-
Return - a flag indicating that the default ActionListener provided by the - Jakarta Server Faces implementation should be executed immediately (that - is, during Apply Request Values phase of the request processing - lifecycle), rather than waiting until the Invoke Application phase. - The default value for this property must be false. true
-
true
JSF:JAVADOC:398voidjakarta.faces.component.ActionSource.removeActionListener
- - ( ActionListener )
Remove - an existing ActionListener (if any) from the set of listeners - interested in being notified when ActionEvents occur. true
-
true
JSF:JAVADOC:399voidjakarta.faces.component.ActionSource.removeActionListener
- - ( ActionListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:400voidjakarta.faces.component.ActionSource.setAction
- - ( MethodBinding )
If the - implementing class also implements ActionSource2, the implementation - of this method must wrap the argument action in a class that - implements jakarta.el.MethodExpression and call through to - ActionSource2#setActionExpression, passing the wrapped action. If the - implementing class does not implement ActionSource2, set the - MethodBinding pointing at the appication action to be invoked, if this - UIComponent is activated by the user, during the Apply Request Values - or Invoke Application phase of the request processing lifecycle, - depending on the value of the immediate property. Any method - referenced by such an expression must be public, with a return type of - String, and accept no parameters. truetruetrue
JSF:JAVADOC:401voidjakarta.faces.component.ActionSource.setActionListener
- - ( MethodBinding )
Wrap - the argument actionListener in an implementation of ActionListener and - store it in the internal data structure that backs the - #getActionListeners method, taking care to over-write any instance - that was stored by a previous call to setActionListener. Any method - referenced by such an expression must be public, with a return type of - void, and accept a single parameter of type ActionEvent. truetruetrue
JSF:JAVADOC:402voidjakarta.faces.component.ActionSource.setImmediate
- - ( boolean )
Set the - "immediate execution" flag for this UIComponent. true
-
true
JSF:JAVADOC:403MethodExpressionjakarta.faces.component.ActionSource2.getActionExpression
-
Return - the MethodExpression pointing at the application action to be invoked, - if this UIComponent is activated by the user, during the Apply Request - Values or Invoke Application phase of the request processing - lifecycle, depending on the value of the immediate property. Note that - it's possible that the returned MethodExpression is just a wrapper - around a MethodBinding instance whith was set by a call to - ActionSource#setAction. This makes it possible for the default - ActionListener to continue to work properly with older components. true
-
true
JSF:JAVADOC:404voidjakarta.faces.component.ActionSource2.setActionExpression
- - ( MethodExpression )
Set the - MethodExpression pointing at the appication action to be invoked, if - this UIComponent is activated by the user, during the Apply Request - Values or Invoke Application phase of the request processing - lifecycle, depending on the value of the immediate property. Any - method referenced by such an expression must be public, with a return - type of String, and accept no parameters. true
-
true
JSF:JAVADOC:405voidjakarta.faces.component.ContextCallback.invokeContextCallback
- - ( FacesContext ,
- UIComponent )
This - method will be called by an implementation of - UIComponent#invokeOnComponent and must be passed the component with - the clientId given as an argument to invokeOnComponent. At the point - in time when this method is called, the argument target is guaranteed - to be in the proper state with respect to its ancestors in the View. true
-
true
JSF:JAVADOC:406voidjakarta.faces.component.EditableValueHolder.addValidator
- - ( Validator )
Add a - Validator instance to the set associated with this component. true
-
true
JSF:JAVADOC:407voidjakarta.faces.component.EditableValueHolder.addValidator
- - ( Validator )
- throws NullPointerException
-
if - validator is nulltrue
-
true
JSF:JAVADOC:408voidjakarta.faces.component.EditableValueHolder.addValueChangeListener
- - ( ValueChangeListener )
Add a - new ValueChangeListener to the set of listeners interested in being - notified when ValueChangeEvents occur. true
-
true
JSF:JAVADOC:409voidjakarta.faces.component.EditableValueHolder.addValueChangeListener
- - ( ValueChangeListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:410Objectjakarta.faces.component.EditableValueHolder.getSubmittedValue
-
Return - the submittedValue value of this component. This method should only be - used by the encodeBegin() and/or encodeEnd() methods of this - component, or its corresponding Renderer. true
-
true
JSF:JAVADOC:411MethodBindingjakarta.faces.component.EditableValueHolder.getValidator
-
If - #setValidator was not previously called for this instance, this method - must return null. If it was called, this method must return the exact - MethodBinding instance that was passed to #setValidator. This method - will be called during the Process Validations or Apply Request Values - phases (depending on the value of the immediate property). truetruetrue
JSF:JAVADOC:412Validator[]jakarta.faces.component.EditableValueHolder.getValidators
-
Return - the set of registered Validators for this component instance. If there - are no registered validators, a zero-length array is returned. true
-
true
JSF:JAVADOC:413MethodBindingjakarta.faces.component.EditableValueHolder.getValueChangeListener
-
If - #setValueChangeListener was not previously called for this instance, - this method must return null. If it was called, this method must - return the exact MethodBinding instance that was passed to - #setValueChangeListener. truetruetrue
JSF:JAVADOC:414ValueChangeListener[]jakarta.faces.component.EditableValueHolder.getValueChangeListeners
-
Return - the set of registered ValueChangeListeners for this component - instance. If there are no registered listeners, a zero-length array is - returned. true
-
true
JSF:JAVADOC:415booleanjakarta.faces.component.EditableValueHolder.isImmediate
-
Return - the "immediate" state for this component. true
-
true
JSF:JAVADOC:416booleanjakarta.faces.component.EditableValueHolder.isLocalValueSet
-
Return - the "local value set" state for this component. Calls to setValue() - automatically reset this property to true. true
-
true
JSF:JAVADOC:417booleanjakarta.faces.component.EditableValueHolder.isRequired
-
Return - the "required field" state for this component. true
-
true
JSF:JAVADOC:418booleanjakarta.faces.component.EditableValueHolder.isValid
-
Return - a flag indicating whether the local value of this component is valid - (no conversion error has occurred). true
-
true
JSF:JAVADOC:419voidjakarta.faces.component.EditableValueHolder.removeValidator
- - ( Validator )
Remove - a Validator instance from the set associated with this component, if - it was previously associated. Otherwise, do nothing. true
-
true
JSF:JAVADOC:420voidjakarta.faces.component.EditableValueHolder.removeValueChangeListener
- - ( ValueChangeListener )
Remove - an existing ValueChangeListener (if any) from the set of listeners - interested in being notified when ValueChangeEvents occur. true
-
true
JSF:JAVADOC:421voidjakarta.faces.component.EditableValueHolder.removeValueChangeListener
- - ( ValueChangeListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:422voidjakarta.faces.component.EditableValueHolder.resetValue
-
- Convenience method to reset this component's value to the - un-initialized state. true
-
true
JSF:JAVADOC:423voidjakarta.faces.component.EditableValueHolder.setImmediate
- - ( boolean )
Set the - "immediate" state for this component. When set to true, the - component's value will be converted and validated immediately in the - Apply Request Values phase, and ValueChangeEvents will be delivered in - that phase as well. The default value for this property must be false. - true
-
true
JSF:JAVADOC:424voidjakarta.faces.component.EditableValueHolder.setLocalValueSet
- - ( boolean )
Sets - the "local value set" state for this component. true
-
true
JSF:JAVADOC:425voidjakarta.faces.component.EditableValueHolder.setRequired
- - ( boolean )
Set the - "required field" state for this component. true
-
true
JSF:JAVADOC:426voidjakarta.faces.component.EditableValueHolder.setSubmittedValue
- - ( Object )
Set the - submittedValue value of this component. This method should only be - used by the decode() and validate() method of this component, or its - corresponding Renderer. true
-
true
JSF:JAVADOC:427voidjakarta.faces.component.EditableValueHolder.setValid
- - ( boolean )
Set a - flag indicating whether the local value of this component is valid (no - conversion error has occurred). true
-
true
JSF:JAVADOC:428voidjakarta.faces.component.EditableValueHolder.setValidator
- - ( MethodBinding )
Wrap - the argument validatorBinding in an implementation of - jakarta.faces.validator.Validator and store it in the internal data - structure that backs the #getValidators method, taking care to - over-write any instance that was stored by a previous call to - setValidator. The argument method will be called during the Process - Validations or Apply Request Values phases (depending on the value of - the immediate property). Any method referenced by such an expression - must be public, with a return type of void, and accept parameters of - type jakarta.faces.context.FacesContext, UIComponent, and Object. truetruetrue
JSF:JAVADOC:429voidjakarta.faces.component.EditableValueHolder.setValueChangeListener
- - ( MethodBinding )
Wrap - the argument valueChangeMethod in an implementation of - ValueChangeListener and store it in the internal data structure that - backs the #getValueChangeListeners method, taking care to over-write - any instance that was stored by a previous call to - setValueChangeListener. This argument method will be called during the - Process Validations or Apply Request Values phases (depending on the - value of the immediate property). Any method referenced by such an - expression must be public, with a return type of void, and accept a - parameter of type jakarta.faces.event.ValueChangeEvent. truetruetrue
JSF:JAVADOC:430Stringjakarta.faces.component.FacesComponent.value
-
The - value of this annotation attribute is taken to be the component-type - with which instances of this class of component can be instantiated by - calling - jakarta.faces.application.Application#createComponent(java.lang.String) - - true
-
true
JSF:JAVADOC:431voidjakarta.faces.component.PartialStateHolder.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:432booleanjakarta.faces.component.PartialStateHolder.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:433voidjakarta.faces.component.PartialStateHolder.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:434voidjakarta.faces.component.StateHelper.add
- - ( Serializable ,
- Object )
Store - the specified value in a List that is internal to the StateHelper. - - It's important to note for delta tracking that any modifications to - the internal List be made through this method or - StateHelper#remove(java.io.Serializable, Object). true
-
true
JSF:JAVADOC:435Objectjakarta.faces.component.StateHelper.eval
- - ( Serializable )
- Attempts to find a value associated with the specified key, using the - value expression collection from the component if no such value is - found. true
-
true
JSF:JAVADOC:436Objectjakarta.faces.component.StateHelper.eval
- - ( Serializable ,
- Object )
- - Performs the same logic as #eval(java.io.Serializable) } but if no - value is found, this will return the specified defaultValue true
-
true
JSF:JAVADOC:437Objectjakarta.faces.component.StateHelper.get
- - ( Serializable )
Return - the value currently associated with the specified key if any. true
-
true
JSF:JAVADOC:438Objectjakarta.faces.component.StateHelper.put
- - ( Serializable ,
- Object )
Return - the previously stored value and store the specified key/value pair. - This is intended to store data that would otherwise reside in an - instance variable on the component. true
-
true
JSF:JAVADOC:439Objectjakarta.faces.component.StateHelper.put
- - ( Serializable ,
- String ,
- Object )
Store - the specified mapKey/value in a Map that is internal to the helper, - and return the previously stored value. The Map will then be - associated with key. It's important to note for delta tracking that - any modifications to the internal Map be made through this method or - StateHelper#remove(java.io.Serializable, Object). true
-
true
JSF:JAVADOC:440Objectjakarta.faces.component.StateHelper.remove
- - ( Serializable )
Remove - the key/value pair from the helper, returning the value previously - stored under this key. true
-
true
JSF:JAVADOC:441Objectjakarta.faces.component.StateHelper.remove
- - ( Serializable ,
- Object )
Remove - a value from the inner data structure. Look in the inner data - structure for the value at the given key. If the value is a Map, - remove and return the value under the key given by the valueOrKey - argument. If the value is a Collection, simply remove the value given - by the argument valueOrKey and return null. true
-
true
JSF:JAVADOC:442booleanjakarta.faces.component.StateHolder.isTransient
-
If - true, the Object implementing this interface must not participate in - state saving or restoring. true
-
true
JSF:JAVADOC:443voidjakarta.faces.component.StateHolder.restoreState
- - ( FacesContext ,
- Object )
Perform - any processing required to restore the state from the entries in the - state Object. If the class that implements this interface has - references to instances that also implement StateHolder (such as a - UIComponent with event handlers, validators, etc.) this method must - call the #restoreState method on all those instances as well. true
-
true
JSF:JAVADOC:444voidjakarta.faces.component.StateHolder.restoreState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - either context or state are nulltrue
-
true
JSF:JAVADOC:445Objectjakarta.faces.component.StateHolder.saveState
- - ( FacesContext )
Gets - the state of the instance as a Serializable Object. If the class that - implements this interface has references to instances that implement - StateHolder (such as a UIComponent with event handlers, validators, - etc.) this method must call the #saveState method on all those - instances as well. This method must not save the state of children and - facets. That is done via the jakarta.faces.application.StateManager This - method must not alter the state of the implementing object. In other - words, after executing this code: Object state = - component.saveState(facesContext); component should be the same as - before executing it. The return from this method must be Serializable - true
-
true
JSF:JAVADOC:446Objectjakarta.faces.component.StateHolder.saveState
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:447voidjakarta.faces.component.StateHolder.setTransient
- - ( boolean )
Denotes - whether or not the Object implementing this interface must or must not - participate in state saving or restoring. true
-
true
JSF:JAVADOC:448Stringjakarta.faces.component.UIColumn.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:449UIComponentjakarta.faces.component.UIColumn.getFooter
-
Return - the footer facet of the column (if any). A convenience method for - getFacet("footer"). true
-
true
JSF:JAVADOC:450UIComponentjakarta.faces.component.UIColumn.getHeader
-
Return - the header facet of the column (if any). A convenience method for - getFacet("header"). true
-
true
JSF:JAVADOC:451voidjakarta.faces.component.UIColumn.setFooter
- - ( UIComponent )
Set the - footer facet of the column. A convenience method for - getFacets().put("footer", footer). true
-
true
JSF:JAVADOC:452voidjakarta.faces.component.UIColumn.setFooter
- - ( UIComponent )
- throws NullPointerException
-
if - footer is nulltrue
-
true
JSF:JAVADOC:453voidjakarta.faces.component.UIColumn.setHeader
- - ( UIComponent )
Set the - header facet of the column. A convenience method for - getFacets().put("header", header). true
-
true
JSF:JAVADOC:454voidjakarta.faces.component.UIColumn.setHeader
- - ( UIComponent )
- throws NullPointerException
-
if - header is nulltrue
-
true
JSF:JAVADOC:455UIColumnjakarta.faces.component.UIColumn.UIColumn
-
Create - a new UIColumn instance with default property values. true
-
true
JSF:JAVADOC:456voidjakarta.faces.component.UICommand.addActionListener
- - ( ActionListener )

-
true
-
true
JSF:JAVADOC:457voidjakarta.faces.component.UICommand.addActionListener
- - ( ActionListener )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:458voidjakarta.faces.component.UICommand.broadcast
- - ( FacesEvent )
In - addition to to the default UIComponent#broadcast processing, pass the - ActionEvent being broadcast to the method referenced by actionListener - (if any), and to the default ActionListener registered on the - jakarta.faces.application.Application. true
-
true
JSF:JAVADOC:459voidjakarta.faces.component.UICommand.broadcast
- - ( FacesEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:460voidjakarta.faces.component.UICommand.broadcast
- - ( FacesEvent )
- throws IllegalArgumentException
-
if the - implementation class of this FacesEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:461voidjakarta.faces.component.UICommand.broadcast
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:462MethodBindingjakarta.faces.component.UICommand.getAction
-

-
truetruetrue
JSF:JAVADOC:463MethodExpressionjakarta.faces.component.UICommand.getActionExpression
-
Return - the MethodExpression pointing at the application action to be invoked, - if this UIComponent is activated by the user, during the Apply Request - Values or Invoke Application phase of the request processing - lifecycle, depending on the value of the immediate property. Note that - it's possible that the returned MethodExpression is just a wrapper - around a MethodBinding instance whith was set by a call to - ActionSource#setAction. This makes it possible for the default - ActionListener to continue to work properly with older components. true
-
true
JSF:JAVADOC:464MethodBindingjakarta.faces.component.UICommand.getActionListener
-

-
truetruetrue
JSF:JAVADOC:465ActionListener[]jakarta.faces.component.UICommand.getActionListeners
-

-
true
-
true
JSF:JAVADOC:466Stringjakarta.faces.component.UICommand.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:467Objectjakarta.faces.component.UICommand.getValue
-
Returns - the value property of the UICommand. This is most often rendered as a - label. true
-
true
JSF:JAVADOC:468booleanjakarta.faces.component.UICommand.isImmediate
-
The - immediate flag. true
-
true
JSF:JAVADOC:469voidjakarta.faces.component.UICommand.queueEvent
- - ( FacesEvent )
- Intercept queueEvent and take the following action. If the event is an - ActionEvent, obtain the UIComponent instance from the event. If the - component is an ActionSource obtain the value of its "immediate" - property. If it is true, mark the phaseId for the event to be - PhaseId.APPLY_REQUEST_VALUES otherwise, mark the phaseId to be - PhaseId.INVOKE_APPLICATION. The event must be passed on to - super.queueEvent() before returning from this method. true
-
true
JSF:JAVADOC:470voidjakarta.faces.component.UICommand.removeActionListener
- - ( ActionListener )

-
true
-
true
JSF:JAVADOC:471voidjakarta.faces.component.UICommand.removeActionListener
- - ( ActionListener )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:472voidjakarta.faces.component.UICommand.setAction
- - ( MethodBinding )

-
truetruetrue
JSF:JAVADOC:473voidjakarta.faces.component.UICommand.setActionExpression
- - ( MethodExpression )
Set the - MethodExpression pointing at the appication action to be invoked, if - this UIComponent is activated by the user, during the Apply Request - Values or Invoke Application phase of the request processing - lifecycle, depending on the value of the immediate property. Any - method referenced by such an expression must be public, with a return - type of String, and accept no parameters. true
-
true
JSF:JAVADOC:474voidjakarta.faces.component.UICommand.setActionListener
- - ( MethodBinding )

-
truetruetrue
JSF:JAVADOC:475voidjakarta.faces.component.UICommand.setImmediate
- - ( boolean )

-
true
-
true
JSF:JAVADOC:476voidjakarta.faces.component.UICommand.setValue
- - ( Object )
Sets - the value property of the UICommand. This is most often rendered as a - label. true
-
true
JSF:JAVADOC:477UICommandjakarta.faces.component.UICommand.UICommand
-
Create - a new UICommand instance with default property values. true
-
true
JSF:JAVADOC:478voidjakarta.faces.component.UIComponent.broadcast
- - ( FacesEvent )
- - Broadcast the specified FacesEvent to all registered event listeners - who have expressed an interest in events of this type. Listeners are - called in the order in which they were added. If the event is an - instance of jakarta.faces.event.BehaviorEvent and the current component - is the source of the event call - jakarta.faces.event.BehaviorEvent#getBehavior to get the - jakarta.faces.component.behavior.Behavior for the event. If the behavior - implements jakarta.faces.component.behavior.ClientBehavior, call - jakarta.faces.component.behavior.ClientBehavior#broadcast(jakarta.faces.event.BehaviorEvent)}. - true
-
true
JSF:JAVADOC:479voidjakarta.faces.component.UIComponent.broadcast
- - ( FacesEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:480voidjakarta.faces.component.UIComponent.broadcast
- - ( FacesEvent )
- throws IllegalArgumentException
-
if the - implementation class of this FacesEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:481voidjakarta.faces.component.UIComponent.broadcast
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:482voidjakarta.faces.component.UIComponent.clearInitialState
-
An - implementation of PartialStateHolder#clearInitialState, this method is - called by the runtime to tell the instance to stop tracking state - changes. true
-
true
JSF:JAVADOC:483voidjakarta.faces.component.UIComponent.decode
- - ( FacesContext )
Decode - any new state of this UIComponent from the request contained in the - specified FacesContext, and store this state as needed. During - decoding, events may be enqueued for later processing (by event - listeners who have registered an interest), by calling queueEvent(). true
-
true
JSF:JAVADOC:484voidjakarta.faces.component.UIComponent.decode
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:485voidjakarta.faces.component.UIComponent.encodeAll
- - ( FacesContext )
If this - component returns true from #isRendered, take the following action. - - Render this component and all its children that return true from - isRendered(), regardless of the value of the #getRendersChildren flag. - true
-
true
JSF:JAVADOC:486voidjakarta.faces.component.UIComponent.encodeAll
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:487voidjakarta.faces.component.UIComponent.encodeAll
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:488voidjakarta.faces.component.UIComponent.encodeBegin
- - ( FacesContext )
If our - rendered property is true, render the beginning of the current state - of this UIComponent to the response contained in the specified - FacesContext. Call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). - Call jakarta.faces.application.Application#publishEvent, passing - jakarta.faces.event.PreRenderComponentEvent.class as the first argument - and the component instance to be rendered as the second argument. If a - Renderer is associated with this UIComponent, the actual encoding will - be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If - our rendered property is false, call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) - and return immediately. true
-
true
JSF:JAVADOC:489voidjakarta.faces.component.UIComponent.encodeBegin
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:490voidjakarta.faces.component.UIComponent.encodeBegin
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:491voidjakarta.faces.component.UIComponent.encodeChildren
- - ( FacesContext )
If our - rendered property is true, render the child UIComponents of this - UIComponent. This method will only be called if the rendersChildren - property is true. If a Renderer is associated with this UIComponent, - the actual encoding will be delegated to - Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is - associated with this UIComponent, iterate over each of the children of - this component and call #encodeAll(jakarta.faces.context.FacesContext). - true
-
true
JSF:JAVADOC:492voidjakarta.faces.component.UIComponent.encodeChildren
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:493voidjakarta.faces.component.UIComponent.encodeChildren
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:494voidjakarta.faces.component.UIComponent.encodeEnd
- - ( FacesContext )
If our - rendered property is true, render the ending of the current state of - this UIComponent. If a Renderer is associated with this UIComponent, - the actual encoding will be delegated to - Renderer#encodeEnd(FacesContext, UIComponent). Call - UIComponent#popComponentFromEL. before returning regardless of the - value of the rendered property. true
-
true
JSF:JAVADOC:495voidjakarta.faces.component.UIComponent.encodeEnd
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:496voidjakarta.faces.component.UIComponent.encodeEnd
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:497UIComponentjakarta.faces.component.UIComponent.findComponent
- - ( String )
Search - for and return the UIComponent with an id that matches the specified - search expression (if any), according to the algorithm described - below. For a method to find a component given a simple clientId, see - #invokeOnComponent. Component identifiers are required to be unique - within the scope of the closest ancestor NamingContainer that encloses - this component (which might be this component itself). If there are no - NamingContainer components in the ancestry of this component, the root - component in the tree is treated as if it were a NamingContainer, - whether or not its class actually implements the NamingContainer - interface. A search expression consists of either an identifier (which - is matched exactly against the id property of a UIComponent, or a - series of such identifiers linked by the - UINamingContainer#getSeparatorChar character value. The search - algorithm should operates as follows, though alternate alogrithms may - be used as long as the end result is the same: Identify the - UIComponent that will be the base for searching, by stopping as soon - as one of the following conditions is met: If the search expression - begins with the the separator character (called an "absolute" search - expression), the base will be the root UIComponent of the component - tree. The leading separator character will be stripped off, and the - remainder of the search expression will be treated as a "relative" - search expression as described below. Otherwise, if this UIComponent - is a NamingContainer it will serve as the basis. Otherwise, search up - the parents of this component. If a NamingContainer is encountered, it - will be the base. Otherwise (if no NamingContainer is encountered) the - root UIComponent will be the base. The search expression (possibly - modified in the previous step) is now a "relative" search expression - that will be used to locate the component (if any) that has an id that - matches, within the scope of the base component. The match is - performed as follows: If the search expression is a simple identifier, - this value is compared to the id property, and then recursively - through the facets and children of the base UIComponent (except that - if a descendant NamingContainer is found, its own facets and children - are not searched). If the search expression includes more than one - identifier separated by the separator character, the first identifier - is used to locate a NamingContainer by the rules in the previous - bullet point. Then, the findComponent() method of this NamingContainer - will be called, passing the remainder of the search expression. true
-
true
JSF:JAVADOC:498UIComponentjakarta.faces.component.UIComponent.findComponent
- - ( String )
- throws IllegalArgumentException
-
if an - intermediate identifier in a search expression identifies a - UIComponent that is not a NamingContainertrue
-
true
JSF:JAVADOC:499UIComponentjakarta.faces.component.UIComponent.findComponent
- - ( String )
- throws NullPointerException
-
if expr - is nulltrue
-
true
JSF:JAVADOC:500Mapjakarta.faces.component.UIComponent.getAttributes
-
Return - a mutable Map representing the attributes (and properties, see below) - associated wth this UIComponent, keyed by attribute name (which must - be a String). The returned implementation must support all of the - standard and optional Map methods, plus support the following - additional requirements: The Map implementation must implement the - java.io.Serializable interface. Any attempt to add a null key or value - must throw a NullPointerException. Any attempt to add a key that is - not a String must throw a ClassCastException. If the attribute name - specified as a key matches a property of this UIComponent's - implementation class, the following methods will have special - behavior: containsKey - Return false. get() - If the property is - readable, call the getter method and return the returned value - (wrapping primitive values in their corresponding wrapper classes); - otherwise throw IllegalArgumentException. put() - If the property is - writeable, call the setter method to set the corresponding value - (unwrapping primitive values in their corresponding wrapper classes). - If the property is not writeable, or an attempt is made to set a - property of primitive type to null, throw IllegalArgumentException. - remove - Throw IllegalArgumentException. true
-
true
JSF:JAVADOC:501intjakarta.faces.component.UIComponent.getChildCount
-
Return - the number of child UIComponents that are associated with this - UIComponent. If there are no children, this method must return 0. The - method must not cause the creation of a child component list. true
-
true
JSF:JAVADOC:502Listjakarta.faces.component.UIComponent.getChildren
-
Return - a mutable List representing the child UIComponents associated with - this component. The returned implementation must support all of the - standard and optional List methods, plus support the following - additional requirements: The List implementation must implement the - java.io.Serializable interface. Any attempt to add a null must throw a - NullPointerException Any attempt to add an object that does not - implement UIComponent must throw a ClassCastException. Whenever a new - child component is added, the parent property of the child must be set - to this component instance. If the parent property of the child was - already non-null, the child must first be removed from its previous - parent (where it may have been either a child or a facet). Whenever an - existing child component is removed, the parent property of the child - must be set to null. After the child component has been added to the - view, if the following condition is not met: - jakarta.faces.context.FacesContext#isPostback returns true and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEWjakarta.faces.application.Application#publishEvent - must be called, passing jakarta.faces.event.PostAddToViewEvent.class as - the first argument and the newly added component as the second - argument. true
-
true
JSF:JAVADOC:503Stringjakarta.faces.component.UIComponent.getClientId
-
Enable - EL to access the clientId of a component. This is particularly useful - in combination with the component and cc implicit objects. A default - implementation is provided that simply calls - FacesContext#getCurrentInstance and then calls through to - #getClientId(FacesContext). true
-
true
JSF:JAVADOC:504Stringjakarta.faces.component.UIComponent.getClientId
- - ( FacesContext )
Return - a client-side identifier for this component, generating one if - necessary. The associated Renderer, if any, will be asked to convert - the clientId to a form suitable for transmission to the client. The - return from this method must be the same value throughout the lifetime - of the instance, unless the id property of the component is changed, - or the component is placed in a NamingContainer whose client ID - changes (for example, UIData). However, even in these cases, - consecutive calls to this method must always return the same value. - The implementation must follow these steps in determining the - clientId: Find the closest ancestor to this component in the view - hierarchy that implements NamingContainer. Call getContainerClientId() - on it and save the result as the parentId local variable. Call #getId - on this component and save the result as the myId local variable. If - myId is null, call context.getViewRoot().createUniqueId() and assign - the result to myId. If parentId is non-null, let myId equal parentId + - UINamingContainer#getSeparatorChar + myId. Call - Renderer#convertClientId, passing myId, and return the result. true
-
true
JSF:JAVADOC:505Stringjakarta.faces.component.UIComponent.getClientId
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:506UIComponentjakarta.faces.component.UIComponent.getCompositeComponentParent
- - ( UIComponent )
Finds - the nearest composite component parent of the specified component. true
-
true
JSF:JAVADOC:507Stringjakarta.faces.component.UIComponent.getContainerClientId
- - ( FacesContext )
Allow - components that implement NamingContainer to selectively disable - prepending their clientId to their descendent's clientIds by breaking - the prepending logic into a seperately callable method. See - #getClientId for usage. By default, this method will call through to - #getClientId and return the result. true
-
true
JSF:JAVADOC:508Stringjakarta.faces.component.UIComponent.getContainerClientId
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:509UIComponentjakarta.faces.component.UIComponent.getCurrentComponent
- - ( FacesContext )
Return - the UIComponent instance that is currently processing. This is - equivalent to evaluating the EL expression "#{component}" and doing a - getValue operation on the resultant ValueExpression. This method must - return null if there is no currently processing UIComponent true
-
true
JSF:JAVADOC:510UIComponentjakarta.faces.component.UIComponent.getCurrentComponent
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:511UIComponentjakarta.faces.component.UIComponent.getCurrentCompositeComponent
- - ( FacesContext )
Return - the closest ancestor component, relative to the component returned - from #getCurrentComponent, that is a composite component, or null if - no such component exists. true
-
true
JSF:JAVADOC:512UIComponentjakarta.faces.component.UIComponent.getCurrentCompositeComponent
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:513UIComponentjakarta.faces.component.UIComponent.getFacet
- - ( String )
- Convenience method to return the named facet, if it exists, or null - otherwise. If the requested facet does not exist, the facets Map must - not be created. true
-
true
JSF:JAVADOC:514intjakarta.faces.component.UIComponent.getFacetCount
-
Return - the number of facet UIComponents that are associated with this - UIComponent. If there are no facets, this method must return 0. The - method must not cause the creation of a facet component map. For - backwards compatability with classes that extend UIComponent directly, - a default implementation is provided that simply calls #getFacets and - then calls the size() method on the returned Map. A more optimized - version of this method is provided in UIComponentBase#getFacetCount. true
-
true
JSF:JAVADOC:515Mapjakarta.faces.component.UIComponent.getFacets
-
Return - a mutable Map representing the facet UIComponents associated with this - UIComponent, keyed by facet name (which must be a String). The - returned implementation must support all of the standard and optional - Map methods, plus support the following additional requirements: The - Map implementation must implement the java.io.Serializable interface. - Any attempt to add a null key or value must throw a - NullPointerException. Any attempt to add a key that is not a String - must throw a ClassCastException. Any attempt to add a value that is - not a UIComponent must throw a ClassCastException. Whenever a new - facet UIComponent is added: The parent property of the component must - be set to this component instance. If the parent property of the - component was already non-null, the component must first be removed - from its previous parent (where it may have been either a child or a - facet). Whenever an existing facet UIComponent is removed: The parent - property of the facet must be set to null. true
-
true
JSF:JAVADOC:516Iteratorjakarta.faces.component.UIComponent.getFacetsAndChildren
-
Return - an Iterator over the facet followed by child UIComponents of this - UIComponent. Facets are returned in an undefined order, followed by - all the children in the order they are stored in the child list. If - this component has no facets or children, an empty Iterator is - returned. The returned Iterator must not support the remove() - operation. true
-
true
JSF:JAVADOC:517Stringjakarta.faces.component.UIComponent.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:518Stringjakarta.faces.component.UIComponent.getId
-
Return - the component identifier of this UIComponent. true
-
true
JSF:JAVADOC:519Listjakarta.faces.component.UIComponent.getListenersForEventClass
- - ( Class )
Return - the SystemEventListener instances registered on this UIComponent - instance that are interested in events of type eventClass. true
-
true
JSF:JAVADOC:520Listjakarta.faces.component.UIComponent.getListenersForEventClass
- - ( Class )
- throws NullPointerException
-
if - argument eventClass is null.true
-
true
JSF:JAVADOC:521UIComponentjakarta.faces.component.UIComponent.getNamingContainer
-
- Starting with "this", return the closest component in the ancestry - that is a NamingContainer or null if none can be found. true
-
true
JSF:JAVADOC:522UIComponentjakarta.faces.component.UIComponent.getParent
-
Return - the parent UIComponent of this UIComponent, if any. A component must - allow child components to be added to and removed from the list of - children of this component, even though the child component returns - null from getParent( ). true
-
true
JSF:JAVADOC:523Stringjakarta.faces.component.UIComponent.getRendererType
-
Return - the Renderer type for this UIComponent (if any). true
-
true
JSF:JAVADOC:524booleanjakarta.faces.component.UIComponent.getRendersChildren
-
Return - a flag indicating whether this component is responsible for rendering - its child components. The default implementation in - UIComponentBase#getRendersChildren tries to find the renderer for this - component. If it does, it calls Renderer#getRendersChildren and - returns the result. If it doesn't, it returns false. As of version 1.2 - of the Jakarta Server Faces Specification, component authors are - encouraged to return true from this method and rely on - UIComponentBase#encodeChildren. true
-
true
JSF:JAVADOC:525Mapjakarta.faces.component.UIComponent.getResourceBundleMap
-
Return - a Map of the ResourceBundle for this component. A component may have a - ResourceBundle associated with it. This bundle may contain localized - properties relating to instances of this component. The default - implementation first looks for a ResourceBundle with a base name equal - to the fully qualified class name of the current UIComponent this and - Locale equal to the Locale of the current UIViewRoot. If no such - bundle is found, and the component is a composite component, let - resourceName be the resourceName of the Resource for this composite - component, replacing the file extension with ".properties". Let - libraryName be the libraryName of the the Resource for this composite - component. Call - jakarta.faces.application.ResourceHandler#createResource(java.lang.String,java.lang.String), - passing the derived resourceName and libraryName. Note that this will - automatically allow for the localization of the ResourceBundle due to - the localization facility implemented in createResource, which is - specified in section JSF.2.6.1.3 of the spec prose document. If the - resultant Resource exists and can be found, the InputStream for the - resource is used to create a ResourceBundle. If either of the two - previous steps for obtaining the ResourceBundle for this component is - successful, the ResourceBundle is wrapped in a Map and returned. - Otherwise Collections.EMPTY_MAP is returned. true
-
true
JSF:JAVADOC:526ValueBindingjakarta.faces.component.UIComponent.getValueBinding
- - ( String )
Call - through to #getValueExpression and examine the result. If the result - is an instance of the wrapper class mandated in #setValueBinding, - extract the ValueBinding instance and return it. Otherwise, wrap the - result in an implementation of ValueBinding, and return it. truetruetrue
JSF:JAVADOC:527ValueBindingjakarta.faces.component.UIComponent.getValueBinding
- - ( String )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:528ValueExpressionjakarta.faces.component.UIComponent.getValueExpression
- - ( String )
Return - the ValueExpression used to calculate the value for the specified - attribute or property name, if any. This method must be overridden and - implemented for components that comply with JSF 1.2 and later. true
-
true
JSF:JAVADOC:529ValueExpressionjakarta.faces.component.UIComponent.getValueExpression
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:530booleanjakarta.faces.component.UIComponent.initialStateMarked
-
An - implementation of PartialStateHolder#initialStateMarked, this method - is called by the runtime to test if the - PartialStateHolder#markInitialState method was called. true
-
true
JSF:JAVADOC:531booleanjakarta.faces.component.UIComponent.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- - - Starting at this component in the View hierarchy, search for a - component with a clientId equal to the argument clientId and, if - found, call the ContextCallback#invokeContextCallback method on the - argument callback, passing the current FacesContext and the found - component as arguments. This method is similar to #findComponent but - it does not support the leading UINamingContainer#getSeparatorChar - syntax for searching from the root of the View. The default - implementation will first check if this.getClientId() is equal to the - argument clientId. If so, call the - ContextCallback#invokeContextCallback method on the argument callback, - passing through the FacesContext argument and passing this as the - component argument. If an Exception is thrown by the callback, wrap it - in a FacesException and re-throw it. Otherwise, return true. - Otherwise, for each component returned by #getFacetsAndChildren, call - invokeOnComponent() passing the arguments to this method, in order. - The first time invokeOnComponent() returns true, abort traversing the - rest of the Iterator and return true. When calling - ContextCallback#invokeContextCallback the implementation of this - method must guarantee that the state of the component passed to the - callback correctly reflects the component's position in the View - hierarchy with respect to any state found in the argument clientId. - For example, an iterating component such as UIData will need to set - its row index to correctly reflect the argument clientId before - finding the appropriate child component backed by the correct row. - When the callback returns, either normally or by throwing an Exception - the implementation of this method must restore the state of the view - to the way it was before invoking the callback. If none of the - elements from #getFacetsAndChildren returned true from - invokeOnComponent(), return false. Simple usage example to find a - component by clientId. private UIComponent found = null; private void - doFind(FacesContext context, String clientId) { - context.getViewRoot().invokeOnComponent(context, clientId, new - ContextCallback() { public void invokeContextCallback(FacesContext - context, UIComponent component) { found = component; } }); } true
-
true
JSF:JAVADOC:532booleanjakarta.faces.component.UIComponent.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws FacesException
-
if the - argument Callback throws an Exception, it is wrapped in a - FacesException and re-thrown.true
-
true
JSF:JAVADOC:533booleanjakarta.faces.component.UIComponent.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:534booleanjakarta.faces.component.UIComponent.isCompositeComponent
- - ( UIComponent )
Return - true if component is a composite component, otherwise false. true
-
true
JSF:JAVADOC:535booleanjakarta.faces.component.UIComponent.isCompositeComponent
- - ( UIComponent )
- throws NullPointerException
-
if - component is nulltrue
-
true
JSF:JAVADOC:536booleanjakarta.faces.component.UIComponent.isInView
-
Return - true if this component is within the view hierarchy otherwise false true
-
true
JSF:JAVADOC:537booleanjakarta.faces.component.UIComponent.isRendered
-
Return - true if this component (and its children) should be rendered during - the Render Response phase of the request processing lifecycle. true
-
true
JSF:JAVADOC:538voidjakarta.faces.component.UIComponent.markInitialState
-
An - implementation of PartialStateHolder#markInitialState, this method is - called by the runtime to indicate that the instance should start - tracking changes to its state. true
-
true
JSF:JAVADOC:539voidjakarta.faces.component.UIComponent.popComponentFromEL
- - ( FacesContext )
Pop the - current UIComponent from the FacesContext attributes map so that the - previous UIComponent, if any, becomes the current component. true
-
true
JSF:JAVADOC:540voidjakarta.faces.component.UIComponent.popComponentFromEL
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:541voidjakarta.faces.component.UIComponent.processDecodes
- - ( FacesContext )
Perform - the component tree processing required by the Apply Request Values - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processDecodes() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). Call the decode() method of this component. - Call #popComponentFromEL from inside of a finally block, just before - returning. If a RuntimeException is thrown during decode processing, - call FacesContext#renderResponse and re-throw the exception. true
-
true
JSF:JAVADOC:542voidjakarta.faces.component.UIComponent.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:543voidjakarta.faces.component.UIComponent.processEvent
- - ( ComponentSystemEvent )
The - default implementation performs the following action. If the argument - event is an instance of PostRestoreStateEvent, call - this.#getValueExpression passing the literal string - “binding”, without the quotes, as the argument. If the - result is non-null, set the value of the ValueExpression to be this. true
-
true
JSF:JAVADOC:544voidjakarta.faces.component.UIComponent.processEvent
- - ( ComponentSystemEvent )
- throws AbortProcessingException
-

-
true
-
true
JSF:JAVADOC:545voidjakarta.faces.component.UIComponent.processRestoreState
- - ( FacesContext ,
- Object )
Perform - the component tree processing required by the Restore View phase of - the request processing lifecycle for all facets of this component, all - children of this component, and this component itself, as follows. - - - - Call the restoreState() method of this component. Call - UIComponent#pushComponentToEL. Call the processRestoreState() method - of all facets and children of this UIComponent in the order determined - by a call to getFacetsAndChildren(). After returning from the - processRestoreState() method on a child or facet, call - UIComponent#popComponentFromEL This method may not be called if the - state saving method is set to server. true
-
true
JSF:JAVADOC:546voidjakarta.faces.component.UIComponent.processRestoreState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:547Objectjakarta.faces.component.UIComponent.processSaveState
- - ( FacesContext )
Perform - the component tree processing required by the state saving portion of - the Render Response phase of the request processing lifecycle for all - facets of this component, all children of this component, and this - component itself, as follows. consult the transient property of this - component. If true, just return null. Call #pushComponentToEL. Call - the processSaveState() method of all facets and children of this - UIComponent in the order determined by a call to - getFacetsAndChildren(), skipping children and facets that are - transient. Ensure that #popComponentFromEL is called correctly after - each child or facet. Call the saveState() method of this component. - Encapsulate the child state and your state into a Serializable Object - and return it. This method may not be called if the state saving - method is set to server. true
-
true
JSF:JAVADOC:548Objectjakarta.faces.component.UIComponent.processSaveState
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:549voidjakarta.faces.component.UIComponent.processUpdates
- - ( FacesContext )
Perform - the component tree processing required by the Update Model Values - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processUpdates() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). After returning from the processUpdates() - method on a child or facet, call UIComponent#popComponentFromEL true
-
true
JSF:JAVADOC:550voidjakarta.faces.component.UIComponent.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:551voidjakarta.faces.component.UIComponent.processValidators
- - ( FacesContext )
Perform - the component tree processing required by the Process Validations - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processValidators() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). true
-
true
JSF:JAVADOC:552voidjakarta.faces.component.UIComponent.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:553voidjakarta.faces.component.UIComponent.pushComponentToEL
- - ( FacesContext ,
- UIComponent )
Push - the current UIComponent this to the FacesContext attribute map using - the key #CURRENT_COMPONENT saving the previous UIComponent associated - with #CURRENT_COMPONENT for a subsequent call to #popComponentFromEL. - - This method and popComponentFromEL() form the basis for the contract - that enables the EL Expression "#{component}" to resolve to the - "current" component that is being processed in the lifecycle. The - requirements for when pushComponentToEL() and popComponentFromEL() - must be called are specified as needed in the javadoc for this class. - After pushComponentToEL() returns, a call to #getCurrentComponent must - return this UIComponent instance until popComponentFromEL() is called, - after which point the previous UIComponent instance will be returned - from getCurrentComponent() true
-
true
JSF:JAVADOC:554voidjakarta.faces.component.UIComponent.pushComponentToEL
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:555voidjakarta.faces.component.UIComponent.queueEvent
- - ( FacesEvent )
Queue - an event for broadcast at the end of the current request processing - lifecycle phase. The default implementation in UIComponentBase must - delegate this call to the queueEvent() method of the parent - UIComponent. true
-
true
JSF:JAVADOC:556voidjakarta.faces.component.UIComponent.queueEvent
- - ( FacesEvent )
- throws IllegalStateException
-
if this - component is not a descendant of a UIViewRoottrue
-
true
JSF:JAVADOC:557voidjakarta.faces.component.UIComponent.queueEvent
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:558voidjakarta.faces.component.UIComponent.setId
- - ( String )
Set the - component identifier of this UIComponent (if any). Component - identifiers must obey the following syntax restrictions: Must not be a - zero-length String. First character must be a letter or an underscore - ('_'). Subsequent characters must be a letter, a digit, an underscore - ('_'), or a dash ('-'). Component identifiers must also obey the - following semantic restrictions (note that this restriction is NOT - enforced by the setId() implementation): The specified identifier must - be unique among all the components (including facets) that are - descendents of the nearest ancestor UIComponent that is a - NamingContainer, or within the scope of the entire component tree if - there is no such ancestor that is a NamingContainer. true
-
true
JSF:JAVADOC:559voidjakarta.faces.component.UIComponent.setId
- - ( String )
- throws IllegalArgumentException
-
if id is - not syntactically validtrue
-
true
JSF:JAVADOC:560voidjakarta.faces.component.UIComponent.setInView
- - ( boolean )
Updates - the status as to whether or not this component is currently within the - view hierarchy. This method must never be called by developers; a - UIComponent's internal implementation will call it as components are - added to or removed from a parent's child List or facet Map. true
-
true
JSF:JAVADOC:561voidjakarta.faces.component.UIComponent.setParent
- - ( UIComponent )
Set the - parent UIComponent of this UIComponent. This method will cause an - jakarta.faces.event.PostAddToViewEvent to be published and if - parent.isInView() returns true an jakarta.faces.event.PostAddToViewEvent - will be published as well. This method must never be called by - developers; a UIComponent's internal implementation will call it as - components are added to or removed from a parent's child List or facet - Map. true
-
true
JSF:JAVADOC:562voidjakarta.faces.component.UIComponent.setRendered
- - ( boolean )
Set the - rendered property of this UIComponent. true
-
true
JSF:JAVADOC:563voidjakarta.faces.component.UIComponent.setRendererType
- - ( String )
Set the - Renderer type for this UIComponent, or null for components that render - themselves. true
-
true
JSF:JAVADOC:564voidjakarta.faces.component.UIComponent.setValueBinding
- - ( String ,
- ValueBinding )
Wrap - the argument binding in an implementation of ValueExpression and call - through to #setValueExpression. truetruetrue
JSF:JAVADOC:565voidjakarta.faces.component.UIComponent.setValueBinding
- - ( String ,
- ValueBinding )
- throws IllegalArgumentException
-
if name - is one of id or parenttruetruetrue
JSF:JAVADOC:566voidjakarta.faces.component.UIComponent.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:567voidjakarta.faces.component.UIComponent.setValueExpression
- - ( String ,
- ValueExpression )
Set the - ValueExpression used to calculate the value for the specified - attribute or property name, if any. The implementation must call - ValueExpression#isLiteralText on the argument expression. If - isLiteralText() returns true, invoke ValueExpression#getValue on the - argument expression and pass the result as the value parameter in a - call to this.#getAttributes().put(name, value) where name is the - argument name. If an exception is thrown as a result of calling - ValueExpression#getValue, wrap it in a jakarta.faces.FacesException and - re-throw it. If isLiteralText() returns false, simply store the - un-evaluated expression argument in the collection of ValueExpressions - under the key given by the argument name. This method must be - overridden and implemented for components that comply with JSF 1.2 and - later. true
-
true
JSF:JAVADOC:568voidjakarta.faces.component.UIComponent.setValueExpression
- - ( String ,
- ValueExpression )
- throws IllegalArgumentException
-
if name - is one of id or parenttrue
-
true
JSF:JAVADOC:569voidjakarta.faces.component.UIComponent.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:570voidjakarta.faces.component.UIComponent.subscribeToEvent
- - ( Class ,
- ComponentSystemEventListener )
Install - the listener instance referenced by argument componentListener as a - listener for events of type eventClass originating from this specific - instance of UIComponent. The default implementation creates an inner - SystemEventListener instance that wraps argument componentListener as - the listener argument. This inner class must call through to the - argument componentListener in its implementation of - SystemEventListener#processEvent and its implementation of - SystemEventListener#isListenerForSource must return true if the - instance class of this UIComponent is assignable from the argument to - isListenerForSource. true
-
true
JSF:JAVADOC:571voidjakarta.faces.component.UIComponent.subscribeToEvent
- - ( Class ,
- ComponentSystemEventListener )
- throws <code>NullPointerException</code>
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:572UIComponentjakarta.faces.component.UIComponent.UIComponent
-

-
true
-
true
JSF:JAVADOC:573voidjakarta.faces.component.UIComponent.unsubscribeFromEvent
- - ( Class ,
- ComponentSystemEventListener )
Remove - the listener instance referenced by argument componentListener as a - listener for events of type eventClass originating from this specific - instance of UIComponent. When doing the comparison to determine if an - existing listener is equal to the argument componentListener (and thus - must be removed), the equals() method on the existing listener must be - invoked, passing the argument componentListener, rather than the other - way around. true
-
true
JSF:JAVADOC:574voidjakarta.faces.component.UIComponent.unsubscribeFromEvent
- - ( Class ,
- ComponentSystemEventListener )
- throws <code>NullPointerException</code>
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:575booleanjakarta.faces.component.UIComponent.visitTree
- - ( VisitContext ,
- VisitCallback )
Perform - a tree visit starting at this node in the tree. - - - UIComponent.visitTree() implementations do not invoke the - VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows - implementations to provide optimized tree traversals, for example by - only calling the for a subset of components. UIComponent.visitTree() - implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the - visit. true
-
true
JSF:JAVADOC:576voidjakarta.faces.component.UIComponentBase.addClientBehavior
- - ( String ,
- ClientBehavior )
This is - a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior. - - - - - - UIComponent does not implement the - jakarta.faces.component.behavior.ClientBehaviorHolder interface, but - provides default implementations for the methods defined by - jakarta.faces.component.behavior.ClientBehaviorHolder to simplify - subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must - declare that the subclass implements - jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide - an implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. true
-
true
JSF:JAVADOC:577voidjakarta.faces.component.UIComponentBase.broadcast
- - ( FacesEvent )
- - Broadcast the specified FacesEvent to all registered event listeners - who have expressed an interest in events of this type. Listeners are - called in the order in which they were added. If the event is an - instance of jakarta.faces.event.BehaviorEvent and the current component - is the source of the event call - jakarta.faces.event.BehaviorEvent#getBehavior to get the - jakarta.faces.component.behavior.Behavior for the event. If the behavior - implements jakarta.faces.component.behavior.ClientBehavior, call - jakarta.faces.component.behavior.ClientBehavior#broadcast(jakarta.faces.event.BehaviorEvent)}. - true
-
true
JSF:JAVADOC:578voidjakarta.faces.component.UIComponentBase.broadcast
- - ( FacesEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:579voidjakarta.faces.component.UIComponentBase.broadcast
- - ( FacesEvent )
- throws IllegalArgumentException
-
if the - implementation class of this FacesEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:580voidjakarta.faces.component.UIComponentBase.broadcast
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:581voidjakarta.faces.component.UIComponentBase.clearInitialState
-
For - each of the attached objects on this instance that implement - PartialStateHolder, call PartialStateHolder#clearInitialState on the - attached object. true
-
true
JSF:JAVADOC:582voidjakarta.faces.component.UIComponentBase.decode
- - ( FacesContext )
Decode - any new state of this UIComponent from the request contained in the - specified FacesContext, and store this state as needed. During - decoding, events may be enqueued for later processing (by event - listeners who have registered an interest), by calling queueEvent(). true
-
true
JSF:JAVADOC:583voidjakarta.faces.component.UIComponentBase.decode
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:584voidjakarta.faces.component.UIComponentBase.encodeBegin
- - ( FacesContext )
If our - rendered property is true, render the beginning of the current state - of this UIComponent to the response contained in the specified - FacesContext. Call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). - Call jakarta.faces.application.Application#publishEvent, passing - jakarta.faces.event.PreRenderComponentEvent.class as the first argument - and the component instance to be rendered as the second argument. If a - Renderer is associated with this UIComponent, the actual encoding will - be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If - our rendered property is false, call - #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) - and return immediately. true
-
true
JSF:JAVADOC:585voidjakarta.faces.component.UIComponentBase.encodeBegin
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:586voidjakarta.faces.component.UIComponentBase.encodeBegin
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:587voidjakarta.faces.component.UIComponentBase.encodeChildren
- - ( FacesContext )
If our - rendered property is true, render the child UIComponents of this - UIComponent. This method will only be called if the rendersChildren - property is true. If a Renderer is associated with this UIComponent, - the actual encoding will be delegated to - Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is - associated with this UIComponent, iterate over each of the children of - this component and call #encodeAll(jakarta.faces.context.FacesContext). - true
-
true
JSF:JAVADOC:588voidjakarta.faces.component.UIComponentBase.encodeChildren
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:589voidjakarta.faces.component.UIComponentBase.encodeChildren
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:590voidjakarta.faces.component.UIComponentBase.encodeEnd
- - ( FacesContext )
If our - rendered property is true, render the ending of the current state of - this UIComponent. If a Renderer is associated with this UIComponent, - the actual encoding will be delegated to - Renderer#encodeEnd(FacesContext, UIComponent). Call - UIComponent#popComponentFromEL. before returning regardless of the - value of the rendered property. true
-
true
JSF:JAVADOC:591voidjakarta.faces.component.UIComponentBase.encodeEnd
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:592voidjakarta.faces.component.UIComponentBase.encodeEnd
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:593UIComponentjakarta.faces.component.UIComponentBase.findComponent
- - ( String )
Search - for and return the UIComponent with an id that matches the specified - search expression (if any), according to the algorithm described - below. For a method to find a component given a simple clientId, see - #invokeOnComponent. Component identifiers are required to be unique - within the scope of the closest ancestor NamingContainer that encloses - this component (which might be this component itself). If there are no - NamingContainer components in the ancestry of this component, the root - component in the tree is treated as if it were a NamingContainer, - whether or not its class actually implements the NamingContainer - interface. A search expression consists of either an identifier (which - is matched exactly against the id property of a UIComponent, or a - series of such identifiers linked by the - UINamingContainer#getSeparatorChar character value. The search - algorithm should operates as follows, though alternate alogrithms may - be used as long as the end result is the same: Identify the - UIComponent that will be the base for searching, by stopping as soon - as one of the following conditions is met: If the search expression - begins with the the separator character (called an "absolute" search - expression), the base will be the root UIComponent of the component - tree. The leading separator character will be stripped off, and the - remainder of the search expression will be treated as a "relative" - search expression as described below. Otherwise, if this UIComponent - is a NamingContainer it will serve as the basis. Otherwise, search up - the parents of this component. If a NamingContainer is encountered, it - will be the base. Otherwise (if no NamingContainer is encountered) the - root UIComponent will be the base. The search expression (possibly - modified in the previous step) is now a "relative" search expression - that will be used to locate the component (if any) that has an id that - matches, within the scope of the base component. The match is - performed as follows: If the search expression is a simple identifier, - this value is compared to the id property, and then recursively - through the facets and children of the base UIComponent (except that - if a descendant NamingContainer is found, its own facets and children - are not searched). If the search expression includes more than one - identifier separated by the separator character, the first identifier - is used to locate a NamingContainer by the rules in the previous - bullet point. Then, the findComponent() method of this NamingContainer - will be called, passing the remainder of the search expression. true
-
true
JSF:JAVADOC:594UIComponentjakarta.faces.component.UIComponentBase.findComponent
- - ( String )
- throws IllegalArgumentException
-
if an - intermediate identifier in a search expression identifies a - UIComponent that is not a NamingContainertrue
-
true
JSF:JAVADOC:595UIComponentjakarta.faces.component.UIComponentBase.findComponent
- - ( String )
- throws NullPointerException
-
if expr - is nulltrue
-
true
JSF:JAVADOC:596Mapjakarta.faces.component.UIComponentBase.getAttributes
-
Return - a mutable Map representing the attributes (and properties, see below) - associated wth this UIComponent, keyed by attribute name (which must - be a String). The returned implementation must support all of the - standard and optional Map methods, plus support the following - additional requirements: The Map implementation must implement the - java.io.Serializable interface. Any attempt to add a null key or value - must throw a NullPointerException. Any attempt to add a key that is - not a String must throw a ClassCastException. If the attribute name - specified as a key matches a property of this UIComponent's - implementation class, the following methods will have special - behavior: containsKey - Return false. get() - If the property is - readable, call the getter method and return the returned value - (wrapping primitive values in their corresponding wrapper classes); - otherwise throw IllegalArgumentException. put() - If the property is - writeable, call the setter method to set the corresponding value - (unwrapping primitive values in their corresponding wrapper classes). - If the property is not writeable, or an attempt is made to set a - property of primitive type to null, throw IllegalArgumentException. - remove - Throw IllegalArgumentException. true
-
true
JSF:JAVADOC:597intjakarta.faces.component.UIComponentBase.getChildCount
-
Return - the number of child UIComponents that are associated with this - UIComponent. If there are no children, this method must return 0. The - method must not cause the creation of a child component list. true
-
true
JSF:JAVADOC:598Listjakarta.faces.component.UIComponentBase.getChildren
-
Return - a mutable List representing the child UIComponents associated with - this component. The returned implementation must support all of the - standard and optional List methods, plus support the following - additional requirements: The List implementation must implement the - java.io.Serializable interface. Any attempt to add a null must throw a - NullPointerException Any attempt to add an object that does not - implement UIComponent must throw a ClassCastException. Whenever a new - child component is added, the parent property of the child must be set - to this component instance. If the parent property of the child was - already non-null, the child must first be removed from its previous - parent (where it may have been either a child or a facet). Whenever an - existing child component is removed, the parent property of the child - must be set to null. After the child component has been added to the - view, if the following condition is not met: - jakarta.faces.context.FacesContext#isPostback returns true and - jakarta.faces.context.FacesContext#getCurrentPhaseId returns - jakarta.faces.event.PhaseId#RESTORE_VIEWjakarta.faces.application.Application#publishEvent - must be called, passing jakarta.faces.event.PostAddToViewEvent.class as - the first argument and the newly added component as the second - argument. true
-
true
JSF:JAVADOC:599Mapjakarta.faces.component.UIComponentBase.getClientBehaviors
-
This is - a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getClientBehaviors. - - - - - - UIComponent does not implement the - jakarta.faces.component.behavior.ClientBehaviorHolder interface, but - provides default implementations for the methods defined by - jakarta.faces.component.behavior.ClientBehaviorHolder to simplify - subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must - declare that the subclass implements - jakarta.faces.component.behavior.ClientBehaviorHolder, and must add an - implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. true
-
true
JSF:JAVADOC:600Stringjakarta.faces.component.UIComponentBase.getClientId
- - ( FacesContext )
Return - a client-side identifier for this component, generating one if - necessary. The associated Renderer, if any, will be asked to convert - the clientId to a form suitable for transmission to the client. The - return from this method must be the same value throughout the lifetime - of the instance, unless the id property of the component is changed, - or the component is placed in a NamingContainer whose client ID - changes (for example, UIData). However, even in these cases, - consecutive calls to this method must always return the same value. - The implementation must follow these steps in determining the - clientId: Find the closest ancestor to this component in the view - hierarchy that implements NamingContainer. Call getContainerClientId() - on it and save the result as the parentId local variable. Call #getId - on this component and save the result as the myId local variable. If - myId is null, call context.getViewRoot().createUniqueId() and assign - the result to myId. If parentId is non-null, let myId equal parentId + - UINamingContainer#getSeparatorChar + myId. Call - Renderer#convertClientId, passing myId, and return the result. true
-
true
JSF:JAVADOC:601Stringjakarta.faces.component.UIComponentBase.getClientId
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:602Stringjakarta.faces.component.UIComponentBase.getDefaultEventName
-
This is - a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. - - - - - - UIComponent does not implement the - jakarta.faces.component.behavior.ClientBehaviorHolder interface, but - provides default implementations for the methods defined by - jakarta.faces.component.behavior.ClientBehaviorHolder to simplify - subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must - declare that the subclass implements - jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide - an implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. true
-
true
JSF:JAVADOC:603Collectionjakarta.faces.component.UIComponentBase.getEventNames
-
This is - a default implementation of - jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - - - - - UIComponent does not implement the - jakarta.faces.component.behavior.ClientBehaviorHolder interface, but - provides default implementations for the methods defined by - jakarta.faces.component.behavior.ClientBehaviorHolder to simplify - subclass implementations. Subclasses that wish to support the - jakarta.faces.component.behavior.ClientBehaviorHolder contract must - declare that the subclass implements - jakarta.faces.component.behavior.ClientBehaviorHolder, and must override - this method to return a non-Empty Collection of the client event names - that the component supports. true
-
true
JSF:JAVADOC:604UIComponentjakarta.faces.component.UIComponentBase.getFacet
- - ( String )
- Convenience method to return the named facet, if it exists, or null - otherwise. If the requested facet does not exist, the facets Map must - not be created. true
-
true
JSF:JAVADOC:605intjakarta.faces.component.UIComponentBase.getFacetCount
-
Return - the number of facet UIComponents that are associated with this - UIComponent. If there are no facets, this method must return 0. The - method must not cause the creation of a facet component map. For - backwards compatability with classes that extend UIComponent directly, - a default implementation is provided that simply calls #getFacets and - then calls the size() method on the returned Map. A more optimized - version of this method is provided in UIComponentBase#getFacetCount. true
-
true
JSF:JAVADOC:606Mapjakarta.faces.component.UIComponentBase.getFacets
-
Return - a mutable Map representing the facet UIComponents associated with this - UIComponent, keyed by facet name (which must be a String). The - returned implementation must support all of the standard and optional - Map methods, plus support the following additional requirements: The - Map implementation must implement the java.io.Serializable interface. - Any attempt to add a null key or value must throw a - NullPointerException. Any attempt to add a key that is not a String - must throw a ClassCastException. Any attempt to add a value that is - not a UIComponent must throw a ClassCastException. Whenever a new - facet UIComponent is added: The parent property of the component must - be set to this component instance. If the parent property of the - component was already non-null, the component must first be removed - from its previous parent (where it may have been either a child or a - facet). Whenever an existing facet UIComponent is removed: The parent - property of the facet must be set to null. true
-
true
JSF:JAVADOC:607Iteratorjakarta.faces.component.UIComponentBase.getFacetsAndChildren
-
Return - an Iterator over the facet followed by child UIComponents of this - UIComponent. Facets are returned in an undefined order, followed by - all the children in the order they are stored in the child list. If - this component has no facets or children, an empty Iterator is - returned. The returned Iterator must not support the remove() - operation. true
-
true
JSF:JAVADOC:608Stringjakarta.faces.component.UIComponentBase.getId
-
Return - the component identifier of this UIComponent. true
-
true
JSF:JAVADOC:609UIComponentjakarta.faces.component.UIComponentBase.getParent
-
Return - the parent UIComponent of this UIComponent, if any. A component must - allow child components to be added to and removed from the list of - children of this component, even though the child component returns - null from getParent( ). true
-
true
JSF:JAVADOC:610Stringjakarta.faces.component.UIComponentBase.getRendererType
-
Return - the Renderer type for this UIComponent (if any). true
-
true
JSF:JAVADOC:611booleanjakarta.faces.component.UIComponentBase.getRendersChildren
-
Return - a flag indicating whether this component is responsible for rendering - its child components. The default implementation in - UIComponentBase#getRendersChildren tries to find the renderer for this - component. If it does, it calls Renderer#getRendersChildren and - returns the result. If it doesn't, it returns false. As of version 1.2 - of the Jakarta Server Faces Specification, component authors are - encouraged to return true from this method and rely on - UIComponentBase#encodeChildren. true
-
true
JSF:JAVADOC:612ValueBindingjakarta.faces.component.UIComponentBase.getValueBinding
- - ( String )

-
truetruetrue
JSF:JAVADOC:613ValueBindingjakarta.faces.component.UIComponentBase.getValueBinding
- - ( String )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:614booleanjakarta.faces.component.UIComponentBase.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )

-
true
-
true
JSF:JAVADOC:615booleanjakarta.faces.component.UIComponentBase.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws FacesException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:616booleanjakarta.faces.component.UIComponentBase.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:617booleanjakarta.faces.component.UIComponentBase.isRendered
-
Return - true if this component (and its children) should be rendered during - the Render Response phase of the request processing lifecycle. true
-
true
JSF:JAVADOC:618booleanjakarta.faces.component.UIComponentBase.isTransient
-

-
true
-
true
JSF:JAVADOC:619voidjakarta.faces.component.UIComponentBase.markInitialState
-
For - each of the attached objects on this instance that implement - PartialStateHolder, call PartialStateHolder#markInitialState on the - attached object. true
-
true
JSF:JAVADOC:620voidjakarta.faces.component.UIComponentBase.processDecodes
- - ( FacesContext )
Perform - the component tree processing required by the Apply Request Values - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processDecodes() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). Call the decode() method of this component. - Call #popComponentFromEL from inside of a finally block, just before - returning. If a RuntimeException is thrown during decode processing, - call FacesContext#renderResponse and re-throw the exception. true
-
true
JSF:JAVADOC:621voidjakarta.faces.component.UIComponentBase.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:622voidjakarta.faces.component.UIComponentBase.processRestoreState
- - ( FacesContext ,
- Object )
Perform - the component tree processing required by the Restore View phase of - the request processing lifecycle for all facets of this component, all - children of this component, and this component itself, as follows. - - - - Call the restoreState() method of this component. Call - UIComponent#pushComponentToEL. Call the processRestoreState() method - of all facets and children of this UIComponent in the order determined - by a call to getFacetsAndChildren(). After returning from the - processRestoreState() method on a child or facet, call - UIComponent#popComponentFromEL This method may not be called if the - state saving method is set to server. true
-
true
JSF:JAVADOC:623voidjakarta.faces.component.UIComponentBase.processRestoreState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:624Objectjakarta.faces.component.UIComponentBase.processSaveState
- - ( FacesContext )
Perform - the component tree processing required by the state saving portion of - the Render Response phase of the request processing lifecycle for all - facets of this component, all children of this component, and this - component itself, as follows. consult the transient property of this - component. If true, just return null. Call #pushComponentToEL. Call - the processSaveState() method of all facets and children of this - UIComponent in the order determined by a call to - getFacetsAndChildren(), skipping children and facets that are - transient. Ensure that #popComponentFromEL is called correctly after - each child or facet. Call the saveState() method of this component. - Encapsulate the child state and your state into a Serializable Object - and return it. This method may not be called if the state saving - method is set to server. true
-
true
JSF:JAVADOC:625Objectjakarta.faces.component.UIComponentBase.processSaveState
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:626voidjakarta.faces.component.UIComponentBase.processUpdates
- - ( FacesContext )
Perform - the component tree processing required by the Update Model Values - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processUpdates() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). After returning from the processUpdates() - method on a child or facet, call UIComponent#popComponentFromEL true
-
true
JSF:JAVADOC:627voidjakarta.faces.component.UIComponentBase.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:628voidjakarta.faces.component.UIComponentBase.processValidators
- - ( FacesContext )
Perform - the component tree processing required by the Process Validations - phase of the request processing lifecycle for all facets of this - component, all children of this component, and this component itself, - as follows. If the rendered property of this UIComponent is false, - skip further processing. Call #pushComponentToEL. Call the - processValidators() method of all facets and children of this - UIComponent, in the order determined by a call to - getFacetsAndChildren(). true
-
true
JSF:JAVADOC:629voidjakarta.faces.component.UIComponentBase.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:630voidjakarta.faces.component.UIComponentBase.queueEvent
- - ( FacesEvent )
Queue - an event for broadcast at the end of the current request processing - lifecycle phase. The default implementation in UIComponentBase must - delegate this call to the queueEvent() method of the parent - UIComponent. true
-
true
JSF:JAVADOC:631voidjakarta.faces.component.UIComponentBase.queueEvent
- - ( FacesEvent )
- throws IllegalStateException
-
if this - component is not a descendant of a UIViewRoottrue
-
true
JSF:JAVADOC:632voidjakarta.faces.component.UIComponentBase.queueEvent
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:633Objectjakarta.faces.component.UIComponentBase.restoreAttachedState
- - ( FacesContext ,
- Object )
This - method is called by UIComponent subclasses that need to restore the - objects they saved using #saveAttachedState. This method is tightly - coupled with #saveAttachedState. This method supports restoring all - attached objects types supported by #saveAttachedState. true
-
true
JSF:JAVADOC:634Objectjakarta.faces.component.UIComponentBase.restoreAttachedState
- - ( FacesContext ,
- Object )
- throws IllegalStateException
-
if the - object is not previously returned by #saveAttachedState.true
-
true
JSF:JAVADOC:635Objectjakarta.faces.component.UIComponentBase.restoreAttachedState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - context is null.true
-
true
JSF:JAVADOC:636voidjakarta.faces.component.UIComponentBase.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:637Objectjakarta.faces.component.UIComponentBase.saveAttachedState
- - ( FacesContext ,
- Object )
This - method is called by UIComponent subclasses that want to save one or - more attached objects. It is a convenience method that does the work - of saving attached objects that may or may not implement the - StateHolder interface. Using this method implies the use of - #restoreAttachedState to restore the attached objects. This method - supports saving attached objects of the following type: Objects, null - values, and Collections of these objects. If any contained objects are - not Collections and do not implement StateHolder, they must have - zero-argument public constructors. The exact structure of the returned - object is undefined and opaque, but will be serializable. true
-
true
JSF:JAVADOC:638Objectjakarta.faces.component.UIComponentBase.saveAttachedState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if the - context argument is null.true
-
true
JSF:JAVADOC:639Objectjakarta.faces.component.UIComponentBase.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:640voidjakarta.faces.component.UIComponentBase.setId
- - ( String )
Set the - component identifier of this UIComponent (if any). Component - identifiers must obey the following syntax restrictions: Must not be a - zero-length String. First character must be a letter or an underscore - ('_'). Subsequent characters must be a letter, a digit, an underscore - ('_'), or a dash ('-'). Component identifiers must also obey the - following semantic restrictions (note that this restriction is NOT - enforced by the setId() implementation): The specified identifier must - be unique among all the components (including facets) that are - descendents of the nearest ancestor UIComponent that is a - NamingContainer, or within the scope of the entire component tree if - there is no such ancestor that is a NamingContainer. true
-
true
JSF:JAVADOC:641voidjakarta.faces.component.UIComponentBase.setId
- - ( String )
- throws IllegalArgumentException
-
if id is - not syntactically validtrue
-
true
JSF:JAVADOC:642voidjakarta.faces.component.UIComponentBase.setParent
- - ( UIComponent )
Set the - parent UIComponent of this UIComponent. This method will cause an - jakarta.faces.event.PostAddToViewEvent to be published and if - parent.isInView() returns true an jakarta.faces.event.PostAddToViewEvent - will be published as well. This method must never be called by - developers; a UIComponent's internal implementation will call it as - components are added to or removed from a parent's child List or facet - Map. true
-
true
JSF:JAVADOC:643voidjakarta.faces.component.UIComponentBase.setRendered
- - ( boolean )
Set the - rendered property of this UIComponent. true
-
true
JSF:JAVADOC:644voidjakarta.faces.component.UIComponentBase.setRendererType
- - ( String )
Set the - Renderer type for this UIComponent, or null for components that render - themselves. true
-
true
JSF:JAVADOC:645voidjakarta.faces.component.UIComponentBase.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:646voidjakarta.faces.component.UIComponentBase.setValueBinding
- - ( String ,
- ValueBinding )

-
truetruetrue
JSF:JAVADOC:647voidjakarta.faces.component.UIComponentBase.setValueBinding
- - ( String ,
- ValueBinding )
- throws IllegalArgumentException
-
if name - is one of id or parenttruetruetrue
JSF:JAVADOC:648voidjakarta.faces.component.UIComponentBase.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:649UIComponentBasejakarta.faces.component.UIComponentBase.UIComponentBase
-

-
true
-
true
JSF:JAVADOC:650voidjakarta.faces.component.UIData.broadcast
- - ( FacesEvent )
- - - Override the default UIComponentBase#broadcast processing to unwrap - any wrapped FacesEvent and reset the current row index, before the - event is actually broadcast. For events that we did not wrap (in - queueEvent()), default processing will occur. true
-
true
JSF:JAVADOC:651voidjakarta.faces.component.UIData.broadcast
- - ( FacesEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:652voidjakarta.faces.component.UIData.broadcast
- - ( FacesEvent )
- throws IllegalArgumentException
-
if the - implementation class of this FacesEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:653voidjakarta.faces.component.UIData.broadcast
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:654Stringjakarta.faces.component.UIData.createUniqueId
- - ( FacesContext ,
- String )
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - component-container. Optionally, a unique seed value can be supplied - by component creators which should be included in the generated unique - id. true
-
true
JSF:JAVADOC:655voidjakarta.faces.component.UIData.encodeBegin
- - ( FacesContext )
In - addition to the default behavior, ensure that any saved per-row state - for our child input components is discarded unless it is needed to - rerender the current page with errors. true
-
true
JSF:JAVADOC:656voidjakarta.faces.component.UIData.encodeBegin
- - ( FacesContext )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:657voidjakarta.faces.component.UIData.encodeBegin
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:658Stringjakarta.faces.component.UIData.getClientId
- - ( FacesContext )
Return - a client identifier for this component that includes the current value - of the rowIndex property, if it is not set to -1. This implies that - multiple calls to getClientId() may return different results, but - ensures that child components can themselves generate row-specific - client identifiers (since UIData is a NamingContainer). true
-
true
JSF:JAVADOC:659Stringjakarta.faces.component.UIData.getClientId
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:660Stringjakarta.faces.component.UIData.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:661intjakarta.faces.component.UIData.getFirst
-
Return - the zero-relative row number of the first row to be displayed. true
-
true
JSF:JAVADOC:662UIComponentjakarta.faces.component.UIData.getFooter
-
Return - the footer facet of this component (if any). A convenience method for - getFacet("footer"). true
-
true
JSF:JAVADOC:663UIComponentjakarta.faces.component.UIData.getHeader
-
Return - the header facet of this component (if any). A convenience method for - getFacet("header"). true
-
true
JSF:JAVADOC:664intjakarta.faces.component.UIData.getRowCount
-
Return - the number of rows in the underlying data model. If the number of - available rows is unknown, return -1. true
-
true
JSF:JAVADOC:665intjakarta.faces.component.UIData.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:666Objectjakarta.faces.component.UIData.getRowData
-
Return - the data object representing the data for the currently selected row - index, if any. true
-
true
JSF:JAVADOC:667Objectjakarta.faces.component.UIData.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:668Objectjakarta.faces.component.UIData.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:669intjakarta.faces.component.UIData.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, return -1. This property is not enabled - for value binding expressions. true
-
true
JSF:JAVADOC:670intjakarta.faces.component.UIData.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:671intjakarta.faces.component.UIData.getRows
-
Return - the number of rows to be displayed, or zero for all remaining rows in - the table. The default value of this property is zero. true
-
true
JSF:JAVADOC:672Objectjakarta.faces.component.UIData.getValue
-
Return - the value of the UIData. This value must either be be of type - DataModel, or a type that can be adapted into a DataModel. UIData will - automatically adapt the following types: Arrays java.util.List - java.sql.ResultSet jakarta.servlet.jsp.jstl.sql.Result All other types - will be adapted using the ScalarDataModel class, which will treat the - object as a single row of data. true
-
true
JSF:JAVADOC:673Stringjakarta.faces.component.UIData.getVar
-
Return - the request-scope attribute under which the data object for the - current row will be exposed when iterating. This property is not - enabled for value binding expressions. true
-
true
JSF:JAVADOC:674booleanjakarta.faces.component.UIData.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- - Override behavior from UIComponentBase#invokeOnComponent to provide - special care for positioning the data properly before finding the - component and invoking the callback on it. If the argument clientId is - equal to this.getClientId() simply invoke the contextCallback, passing - the context argument and this as arguments, and return true. If the - argument clientId is not equal to this.getClientId(), inspect each of - the facet children of this UIData instance and for each one, compare - its clientId with the argument clientId. If there is a match, invoke - the contextCallback, passing the context argument and this as - arguments, and return true. Otherwise, attempt to extract a rowIndex - from the clientId. For example, if the argument clientId was - form:data:3:customerHeader the rowIndex would be 3. Let this value be - called newIndex. The current rowIndex of this instance must be saved - aside and restored before returning in all cases, regardless of the - outcome of the search or if any exceptions are thrown in the process. - The implementation of this method must never return true if setting - the rowIndex of this instance to be equal to newIndex causes this - instance to return false from #isRowAvailable. true
-
true
JSF:JAVADOC:675booleanjakarta.faces.component.UIData.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws FacesException
-
{@inheritDoc} - Also throws FacesException if any exception is thrown when deriving - the rowIndex from the argument clientId.true
-
true
JSF:JAVADOC:676booleanjakarta.faces.component.UIData.invokeOnComponent
- - ( FacesContext ,
- String ,
- ContextCallback )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:677booleanjakarta.faces.component.UIData.isRowAvailable
-
Return - a flag indicating whether there is rowData available at the current - rowIndex. If no wrappedData is available, return false. true
-
true
JSF:JAVADOC:678booleanjakarta.faces.component.UIData.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:679voidjakarta.faces.component.UIData.processDecodes
- - ( FacesContext )
- - Override the default UIComponentBase#processDecodes processing to - perform the following steps. If the rendered property of this - UIComponent is false, skip further processing. Set the current - rowIndex to -1. Call the processDecodes() method of all facets of this - UIData, in the order determined by a call to - getFacets().keySet().iterator(). Call the processDecodes() method of - all facets of the UIColumn children of this UIData. Iterate over the - set of rows that were included when this component was rendered (i.e. - those defined by the first and rows properties), performing the - following processing for each row: Set the current rowIndex to the - appropriate value for this row. If isRowAvailable() returns true, - iterate over the children components of each UIColumn child of this - UIData component, calling the processDecodes() method for each such - child. Set the current rowIndex to -1. Call the decode() method of - this component. If a RuntimeException is thrown during decode - processing, call FacesContext#renderResponse and re-throw the - exception. true
-
true
JSF:JAVADOC:680voidjakarta.faces.component.UIData.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:681voidjakarta.faces.component.UIData.processUpdates
- - ( FacesContext )
- - Override the default UIComponentBase#processUpdates processing to - perform the following steps. If the rendered property of this - UIComponent is false, skip further processing. Set the current - rowIndex to -1. Call the processUpdates() method of all facets of this - UIData, in the order determined by a call to - getFacets().keySet().iterator(). Call the processUpdates() method of - all facets of the UIColumn children of this UIData. Iterate over the - set of rows that were included when this component was rendered (i.e. - those defined by the first and rows properties), performing the - following processing for each row: Set the current rowIndex to the - appropriate value for this row. If isRowAvailable() returns true, - iterate over the children components of each UIColumn child of this - UIData component, calling the processUpdates() method for each such - child. Set the current rowIndex to -1. true
-
true
JSF:JAVADOC:682voidjakarta.faces.component.UIData.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:683voidjakarta.faces.component.UIData.processValidators
- - ( FacesContext )
- - Override the default UIComponentBase#processValidators processing to - perform the following steps. If the rendered property of this - UIComponent is false, skip further processing. Set the current - rowIndex to -1. Call the processValidators() method of all facets of - this UIData, in the order determined by a call to - getFacets().keySet().iterator(). Call the processValidators() method - of all facets of the UIColumn children of this UIData. Iterate over - the set of rows that were included when this component was rendered - (i.e. those defined by the first and rows properties), performing the - following processing for each row: Set the current rowIndex to the - appropriate value for this row. If isRowAvailable() returns true, - iterate over the children components of each UIColumn child of this - UIData component, calling the processValidators() method for each such - child. Set the current rowIndex to -1. true
-
true
JSF:JAVADOC:684voidjakarta.faces.component.UIData.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:685voidjakarta.faces.component.UIData.queueEvent
- - ( FacesEvent )
- - Override the default UIComponentBase#queueEvent processing to wrap any - queued events in a wrapper so that we can reset the current row index - in broadcast(). true
-
true
JSF:JAVADOC:686voidjakarta.faces.component.UIData.queueEvent
- - ( FacesEvent )
- throws IllegalStateException
-
if this - component is not a descendant of a UIViewRoottrue
-
true
JSF:JAVADOC:687voidjakarta.faces.component.UIData.queueEvent
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:688voidjakarta.faces.component.UIData.setFirst
- - ( int )
Set the - zero-relative row number of the first row to be displayed. true
-
true
JSF:JAVADOC:689voidjakarta.faces.component.UIData.setFirst
- - ( int )
- throws IllegalArgumentException
-
if first - is negativetrue
-
true
JSF:JAVADOC:690voidjakarta.faces.component.UIData.setFooter
- - ( UIComponent )
Set the - footer facet of this component. A convenience method for - getFacets().put("footer", footer). true
-
true
JSF:JAVADOC:691voidjakarta.faces.component.UIData.setFooter
- - ( UIComponent )
- throws NullPointerException
-
if - footer is nulltrue
-
true
JSF:JAVADOC:692voidjakarta.faces.component.UIData.setHeader
- - ( UIComponent )
Set the - header facet of this component. A convenience method for - getFacets().put("header", header). true
-
true
JSF:JAVADOC:693voidjakarta.faces.component.UIData.setHeader
- - ( UIComponent )
- throws NullPointerException
-
if - header is nulltrue
-
true
JSF:JAVADOC:694voidjakarta.faces.component.UIData.setRowIndex
- - ( int )
Set the - zero relative index of the current row, or -1 to indicate that no row - is currently selected, by implementing the following algorithm. It is - possible to set the row index at a value for which the underlying data - collection does not contain any row data. Therefore, callers may use - the isRowAvailable() method to detect whether row data will be - available for use by the getRowData() method. Save current state - information for all descendant components (as described below). Store - the new row index, and pass it on to the DataModel associated with - this UIData instance. If the new rowIndex value is -1: If the var - property is not null, remove the corresponding request scope attribute - (if any). Reset the state information for all descendant components - (as described below). If the new rowIndex value is not -1: If the var - property is not null, call getRowData() and expose the resulting data - object as a request scope attribute whose key is the var property - value. Reset the state information for all descendant components (as - described below). To save current state information for all descendant - components, UIData must maintain per-row information for each - descendant as follows: If the descendant is an instance of - EditableValueHolder, save the state of its localValue property. If the - descendant is an instance of EditableValueHolder, save the state of - the localValueSet property. If the descendant is an instance of - EditableValueHolder, save the state of the valid property. If the - descendant is an instance of EditableValueHolder, save the state of - the submittedValue property. To restore current state information for - all descendant components, UIData must reference its previously stored - information for the current rowIndex and call setters for each - descendant as follows: If the descendant is an instance of - EditableValueHolder, restore the value property. If the descendant is - an instance of EditableValueHolder, restore the state of the - localValueSet property. If the descendant is an instance of - EditableValueHolder, restore the state of the valid property. If the - descendant is an instance of EditableValueHolder, restore the state of - the submittedValue property. true
-
true
JSF:JAVADOC:695voidjakarta.faces.component.UIData.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:696voidjakarta.faces.component.UIData.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:697voidjakarta.faces.component.UIData.setRows
- - ( int )
Set the - number of rows to be displayed, or zero for all remaining rows in the - table. true
-
true
JSF:JAVADOC:698voidjakarta.faces.component.UIData.setRows
- - ( int )
- throws IllegalArgumentException
-
if rows - is negativetrue
-
true
JSF:JAVADOC:699voidjakarta.faces.component.UIData.setValue
- - ( Object )
Set the - value of the UIData. This value must either be be of type DataModel, - or a type that can be adapted into a DataModel. true
-
true
JSF:JAVADOC:700voidjakarta.faces.component.UIData.setValueBinding
- - ( String ,
- ValueBinding )
If - "name" is something other than "value", "var", or "rowIndex", rely on - the superclass conversion from ValueBinding to ValueExpression. truetruetrue
JSF:JAVADOC:701voidjakarta.faces.component.UIData.setValueBinding
- - ( String ,
- ValueBinding )
- throws IllegalArgumentException
-
if name - is one of id, parent, var, or rowIndextruetruetrue
JSF:JAVADOC:702voidjakarta.faces.component.UIData.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:703voidjakarta.faces.component.UIData.setValueExpression
- - ( String ,
- ValueExpression )
Set the - ValueExpression used to calculate the value for the specified - attribute or property name, if any. In addition, if a ValueExpression - is set for the value property, remove any synthesized DataModel for - the data previously bound to this component. true
-
true
JSF:JAVADOC:704voidjakarta.faces.component.UIData.setValueExpression
- - ( String ,
- ValueExpression )
- throws IllegalArgumentException
-
if name - is one of id, parent, var, or rowIndextrue
-
true
JSF:JAVADOC:705voidjakarta.faces.component.UIData.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:706voidjakarta.faces.component.UIData.setVar
- - ( String )
Set the - request-scope attribute under which the data object for the current - row wil be exposed when iterating. true
-
true
JSF:JAVADOC:707UIDatajakarta.faces.component.UIData.UIData
-
Create - a new UIData instance with default property values. true
-
true
JSF:JAVADOC:708booleanjakarta.faces.component.UIData.visitTree
- - ( VisitContext ,
- VisitCallback )
- - Override the behavior in UIComponent#visitTree to handle iteration - correctly. If the UIComponent#isVisitable method of this instance - returns false, take no action and return. Otherwise, save aside the - result of a call to #getRowIndex. Call UIComponent#pushComponentToEL - and invoke the visit callback on this UIData instance as described in - UIComponent#visitTree. Let the result of the invoctaion be - visitResult. If visitResult is VisitResult#COMPLETE, take no further - action and return true. Otherwise, determine if we need to visit our - children. The default implementation calls - VisitContext#getSubtreeIdsToVisit passing this as the argument. If the - result of that call is non-empty, let doVisitChildren be true. If - doVisitChildren is true and visitResult is VisitResult#ACCEPT, take - the following action. If this component has facets, call - UIComponent#getFacets on this instance and invoke the values() method. - For each UIComponent in the returned Map, call UIComponent#visitTree. - If this component has children, for each child UIComponent retured - from calling #getChildren on this instance, if the child has facets, - call UIComponent#getFacets on the child instance and invoke the - values() method. For each UIComponent in the returned Map, call - UIComponent#visitTree. Iterate over the columns and rows. Let - rowsToProcess be the return from #getRows. Let rowIndex be the return - from #getFirst - 1. While the number of rows processed is less than - rowsToProcess, take the following actions. Call #setRowIndex, passing - the current row index. If #isRowAvailable returns false, take no - further action and return false. For each child component of this - UIData that is also an instance of UIColumn, call - UIComponent#visitTree on the child. If such a call returns true, - terminate iteration and return true. Take no action on non UIColumn - children. Call #popComponentFromEL and restore the saved row index - with a call to #setRowIndex. Return false to allow the visiting to - continue. true
-
true
JSF:JAVADOC:709booleanjakarta.faces.component.UIData.visitTree
- - ( VisitContext ,
- VisitCallback )
- throws NullPointerException
-
if any - of the parameters are null.true
-
true
JSF:JAVADOC:710Stringjakarta.faces.component.UIForm.createUniqueId
- - ( FacesContext ,
- String )
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - component-container. Optionally, a unique seed value can be supplied - by component creators which should be included in the generated unique - id. true
-
true
JSF:JAVADOC:711Stringjakarta.faces.component.UIForm.getContainerClientId
- - ( FacesContext )
- - - Override the UIComponent#getContainerClientId to allow users to - disable this form from prepending its clientId to its descendent's - clientIds depending on the value of this form's #isPrependId property. - - true
-
true
JSF:JAVADOC:712Stringjakarta.faces.component.UIForm.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:713booleanjakarta.faces.component.UIForm.isPrependId
-
The - prependId flag. true
-
true
JSF:JAVADOC:714booleanjakarta.faces.component.UIForm.isSubmitted
-
Returns - the current value of the submitted property. The default value is - false. See #setSubmitted for details. true
-
true
JSF:JAVADOC:715voidjakarta.faces.component.UIForm.processDecodes
- - ( FacesContext )
- - Override UIComponent#processDecodes to ensure that the form is decoded - before its children. This is necessary to allow the submitted property - to be correctly set. true
-
true
JSF:JAVADOC:716voidjakarta.faces.component.UIForm.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:717voidjakarta.faces.component.UIForm.processUpdates
- - ( FacesContext )
- - - Override UIComponent#processUpdates to ensure that the children of - this UIForm instance are only processed if #isSubmitted returns true. - - true
-
true
JSF:JAVADOC:718voidjakarta.faces.component.UIForm.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:719voidjakarta.faces.component.UIForm.processValidators
- - ( FacesContext )
- - - Override UIComponent#processValidators to ensure that the children of - this UIForm instance are only processed if #isSubmitted returns true. - - true
-
true
JSF:JAVADOC:720voidjakarta.faces.component.UIForm.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:721voidjakarta.faces.component.UIForm.setPrependId
- - ( boolean )

-
true
-
true
JSF:JAVADOC:722voidjakarta.faces.component.UIForm.setSubmitted
- - ( boolean )
If this - UIForm instance (as opposed to other forms in the page) is - experiencing a submit during this request processing lifecycle, this - method must be called, with true as the argument, during the - UIComponent#decode for this UIForm instance. If this UIForm instance - is not experiencing a submit, this method must be called, with false - as the argument, during the UIComponent#decode for this UIForm - instance. The value of a UIForm's submitted property must not be saved - as part of its state. true
-
true
JSF:JAVADOC:723UIFormjakarta.faces.component.UIForm.UIForm
-
Create - a new UIForm instance with default property values. true
-
true
JSF:JAVADOC:724booleanjakarta.faces.component.UIForm.visitTree
- - ( VisitContext ,
- VisitCallback )
Perform - a tree visit starting at this node in the tree. - - - UIComponent.visitTree() implementations do not invoke the - VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows - implementations to provide optimized tree traversals, for example by - only calling the for a subset of components. UIComponent.visitTree() - implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the - visit. true
-
true
JSF:JAVADOC:725Stringjakarta.faces.component.UIGraphic.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:726Stringjakarta.faces.component.UIGraphic.getUrl
-
Return - the image URL for this UIGraphic. This method is a typesafe alias for - getValue(). true
-
true
JSF:JAVADOC:727Objectjakarta.faces.component.UIGraphic.getValue
-
Returns - the value property of the UIGraphic. This will typically be rendered - as an URL. true
-
true
JSF:JAVADOC:728ValueBindingjakarta.faces.component.UIGraphic.getValueBinding
- - ( String )
Return - any ValueBinding set for value if a ValueBinding for url is requested; - otherwise, perform the default superclass processing for this method. - - truetruetrue
JSF:JAVADOC:729ValueBindingjakarta.faces.component.UIGraphic.getValueBinding
- - ( String )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:730ValueExpressionjakarta.faces.component.UIGraphic.getValueExpression
- - ( String )
Return - any ValueExpression set for value if a ValueExpression for url is - requested; otherwise, perform the default superclass processing for - this method. true
-
true
JSF:JAVADOC:731ValueExpressionjakarta.faces.component.UIGraphic.getValueExpression
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:732voidjakarta.faces.component.UIGraphic.setUrl
- - ( String )
Set the - image URL for this UIGraphic. This method is a typesafe alias for - setValue(). true
-
true
JSF:JAVADOC:733voidjakarta.faces.component.UIGraphic.setValue
- - ( Object )
Sets - the value property of the UIGraphic. This will typically be rendered - as an URL. true
-
true
JSF:JAVADOC:734voidjakarta.faces.component.UIGraphic.setValueBinding
- - ( String ,
- ValueBinding )
Store - any ValueBinding specified for url under value instead; otherwise, - perform the default superclass processing for this method. In all - cases, the superclass is relied on to convert the ValueBinding to a - ValueExpression. truetruetrue
JSF:JAVADOC:735voidjakarta.faces.component.UIGraphic.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:736voidjakarta.faces.component.UIGraphic.setValueExpression
- - ( String ,
- ValueExpression )
Store - any ValueExpression specified for url under value instead; otherwise, - perform the default superclass processing for this method. true
-
true
JSF:JAVADOC:737voidjakarta.faces.component.UIGraphic.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:738UIGraphicjakarta.faces.component.UIGraphic.UIGraphic
-
Create - a new UIGraphic instance with default property values. true
-
true
JSF:JAVADOC:739voidjakarta.faces.component.UIInput.addValidator
- - ( Validator )
Add a - Validator instance to the set associated with this UIInput. true
-
true
JSF:JAVADOC:740voidjakarta.faces.component.UIInput.addValidator
- - ( Validator )
- throws NullPointerException
-
if - validator is nulltrue
-
true
JSF:JAVADOC:741voidjakarta.faces.component.UIInput.addValueChangeListener
- - ( ValueChangeListener )
Add a - new ValueChangeListener to the set of listeners interested in being - notified when ValueChangeEvents occur. true
-
true
JSF:JAVADOC:742voidjakarta.faces.component.UIInput.addValueChangeListener
- - ( ValueChangeListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:743voidjakarta.faces.component.UIInput.clearInitialState
-
For - each of the attached objects on this instance that implement - PartialStateHolder, call PartialStateHolder#clearInitialState on the - attached object. true
-
true
JSF:JAVADOC:744voidjakarta.faces.component.UIInput.decode
- - ( FacesContext )
Decode - any new state of this UIComponent from the request contained in the - specified FacesContext, and store this state as needed. During - decoding, events may be enqueued for later processing (by event - listeners who have registered an interest), by calling queueEvent(). true
-
true
JSF:JAVADOC:745voidjakarta.faces.component.UIInput.decode
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:746Stringjakarta.faces.component.UIInput.getConverterMessage
-
If - there has been a call to #setConverterMessage on this instance, return - the message. Otherwise, call #getValueExpression passing the key - "converterMessage", get the result of the expression, and return it. - Any ELExceptions thrown during the call to getValue() must be wrapped - in a FacesException and rethrown. true
-
true
JSF:JAVADOC:747Stringjakarta.faces.component.UIInput.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:748Stringjakarta.faces.component.UIInput.getRequiredMessage
-
If - there has been a call to #setRequiredMessage on this instance, return - the message. Otherwise, call #getValueExpression passing the key - "requiredMessage", get the result of the expression, and return it. - Any ELExceptions thrown during the call to getValue() must be wrapped - in a FacesException and rethrown. true
-
true
JSF:JAVADOC:749Objectjakarta.faces.component.UIInput.getSubmittedValue
-
Return - the submittedValue value of this UIInput component. This method should - only be used by the decode() and validate() method of this component, - or its corresponding Renderer. true
-
true
JSF:JAVADOC:750MethodBindingjakarta.faces.component.UIInput.getValidator
-
Return - a MethodBinding pointing at a method that will be called during - Process Validations phase of the request processing lifecycle, to - validate the current value of this component. truetruetrue
JSF:JAVADOC:751Stringjakarta.faces.component.UIInput.getValidatorMessage
-
If - there has been a call to #setValidatorMessage on this instance, return - the message. Otherwise, call #getValueExpression passing the key - "validatorMessage", get the result of the expression, and return it. - Any ELExceptions thrown during the call to getValue() must be wrapped - in a FacesException and rethrown. true
-
true
JSF:JAVADOC:752Validator[]jakarta.faces.component.UIInput.getValidators
-
Return - the set of registered Validators for this UIInput instance. If there - are no registered validators, a zero-length array is returned. true
-
true
JSF:JAVADOC:753MethodBindingjakarta.faces.component.UIInput.getValueChangeListener
-
If - #setValueChangeListener was not previously called for this instance, - this method must return null. If it was called, this method must - return the exact MethodBinding instance that was passed to - #setValueChangeListener. truetruetrue
JSF:JAVADOC:754ValueChangeListener[]jakarta.faces.component.UIInput.getValueChangeListeners
-
Return - the set of registered ValueChangeListeners for this UIInput instance. - If there are no registered listeners, a zero-length array is returned. - true
-
true
JSF:JAVADOC:755booleanjakarta.faces.component.UIInput.isEmpty
- - ( Object )

-
true
-
true
JSF:JAVADOC:756booleanjakarta.faces.component.UIInput.isImmediate
-
Return - the "immediate" state for this component. true
-
true
JSF:JAVADOC:757booleanjakarta.faces.component.UIInput.isLocalValueSet
-
Return - the "local value set" state for this component. Calls to setValue() - automatically reset this property to true. true
-
true
JSF:JAVADOC:758booleanjakarta.faces.component.UIInput.isRequired
-
Return - the "required field" state for this component. true
-
true
JSF:JAVADOC:759booleanjakarta.faces.component.UIInput.isValid
-
Return - a flag indicating whether the local value of this component is valid - (no conversion error has occurred). true
-
true
JSF:JAVADOC:760voidjakarta.faces.component.UIInput.markInitialState
-
In - addition to the actions taken in UIOutput when - PartialStateHolder#markInitialState() is called, check if any of the - installed Validators are PartialStateHolders and if so, call - jakarta.faces.component.PartialStateHolder#markInitialState() as - appropriate. true
-
true
JSF:JAVADOC:761voidjakarta.faces.component.UIInput.processDecodes
- - ( FacesContext )
- Specialized decode behavior on top of that provided by the superclass. - - - In addition to the standard processDecodes behavior inherited from - UIComponentBase, calls validate() if the the immediate property is - true; if the component is invalid afterwards or a RuntimeException is - thrown, calls FacesContext#renderResponse. true
-
true
JSF:JAVADOC:762voidjakarta.faces.component.UIInput.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:763voidjakarta.faces.component.UIInput.processUpdates
- - ( FacesContext )
In - addition to the standard processUpdates behavior inherited from - UIComponentBase, calls updateModel(). If the component is invalid - afterwards, calls FacesContext#renderResponse. If a RuntimeException - is thrown during update processing, calls FacesContext#renderResponse - and re-throw the exception. true
-
true
JSF:JAVADOC:764voidjakarta.faces.component.UIInput.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:765voidjakarta.faces.component.UIInput.processValidators
- - ( FacesContext )
In - addition to the standard processValidators behavior inherited from - UIComponentBase, calls validate() if the immediate property is false - (which is the default); if the component is invalid afterwards, calls - FacesContext#renderResponse. If a RuntimeException is thrown during - validation processing, calls FacesContext#renderResponse and re-throw - the exception. true
-
true
JSF:JAVADOC:766voidjakarta.faces.component.UIInput.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:767voidjakarta.faces.component.UIInput.removeValidator
- - ( Validator )
Remove - a Validator instance from the set associated with this UIInput, if it - was previously associated. Otherwise, do nothing. true
-
true
JSF:JAVADOC:768voidjakarta.faces.component.UIInput.removeValueChangeListener
- - ( ValueChangeListener )
Remove - an existing ValueChangeListener (if any) from the set of listeners - interested in being notified when ValueChangeEvents occur. true
-
true
JSF:JAVADOC:769voidjakarta.faces.component.UIInput.removeValueChangeListener
- - ( ValueChangeListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:770voidjakarta.faces.component.UIInput.resetValue
-
- Convenience method to reset this component's value to the - un-initialized state. This method does the following: Call #setValue - passing null. Call #setSubmittedValue passing null. Call - #setLocalValueSet passing false. Call #setValid passing true. Upon - return from this call if the instance had a ValueBinding associated - with it for the "value" property, this binding is evaluated when - UIOutput#getValue is called. Otherwise, null is returned from - getValue(). true
-
true
JSF:JAVADOC:771voidjakarta.faces.component.UIInput.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:772Objectjakarta.faces.component.UIInput.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:773voidjakarta.faces.component.UIInput.setConverterMessage
- - ( String )
- - Override any ValueExpression set for the "converterMessage" with the - literal argument provided to this method. Subsequent calls to - #getConverterMessage will return this value; true
-
true
JSF:JAVADOC:774voidjakarta.faces.component.UIInput.setImmediate
- - ( boolean )
Set the - "immediate" state for this component. When set to true, the - component's value will be converted and validated immediately in the - Apply Request Values phase, and ValueChangeEvents will be delivered in - that phase as well. The default value for this property must be false. - true
-
true
JSF:JAVADOC:775voidjakarta.faces.component.UIInput.setLocalValueSet
- - ( boolean )
Sets - the "local value set" state for this component. true
-
true
JSF:JAVADOC:776voidjakarta.faces.component.UIInput.setRequired
- - ( boolean )
Set the - "required field" state for this component. true
-
true
JSF:JAVADOC:777voidjakarta.faces.component.UIInput.setRequiredMessage
- - ( String )
- - Override any ValueExpression set for the "requiredMessage" with the - literal argument provided to this method. Subsequent calls to - #getRequiredMessage will return this value; true
-
true
JSF:JAVADOC:778voidjakarta.faces.component.UIInput.setSubmittedValue
- - ( Object )
Set the - submittedValue value of this UIInput component. This method should - only be used by the decode() and validate() method of this component, - or its corresponding Renderer. true
-
true
JSF:JAVADOC:779voidjakarta.faces.component.UIInput.setValid
- - ( boolean )
Set a - flag indicating whether the local value of this component is valid (no - conversion error has occurred). true
-
true
JSF:JAVADOC:780voidjakarta.faces.component.UIInput.setValidator
- - ( MethodBinding )
Set a - MethodBinding pointing at a method that will be called during Process - Validations phase of the request processing lifecycle, to validate the - current value of this component. Any method referenced by such an - expression must be public, with a return type of void, and accept - parameters of type FacesContext, UIComponent, and Object. truetruetrue
JSF:JAVADOC:781voidjakarta.faces.component.UIInput.setValidatorMessage
- - ( String )
- - Override any ValueExpression set for the "validatorMessage" with the - literal argument provided to this method. Subsequent calls to - #getValidatorMessage will return this value; true
-
true
JSF:JAVADOC:782voidjakarta.faces.component.UIInput.setValue
- - ( Object )
Set the - value of this UIComponent (if any). true
-
true
JSF:JAVADOC:783voidjakarta.faces.component.UIInput.setValueChangeListener
- - ( MethodBinding )

-
truetruetrue
JSF:JAVADOC:784UIInputjakarta.faces.component.UIInput.UIInput
-
Create - a new UIInput instance with default property values. true
-
true
JSF:JAVADOC:785voidjakarta.faces.component.UIInput.updateModel
- - ( FacesContext )
Perform - the following algorithm to update the model data associated with this - UIInput, if any, as appropriate. If the valid property of this - component is false, take no further action. If the localValueSet - property of this component is false, take no further action. If no - ValueExpression for value exists, take no further action. Call - setValue() method of the ValueExpression to update the value that the - ValueExpression points at. If the setValue() method returns - successfully: Clear the local value of this UIInput. Set the - localValueSet property of this UIInput to false. If the setValue() - method throws an Exception: Enqueue an error message. Create a - FacesMessage with the id #UPDATE_MESSAGE_ID. Create a - UpdateModelException, passing the FacesMessage and the caught - exception to the constructor. Create an ExceptionQueuedEventContext, - passing the FacesContext, the UpdateModelException, this component - instance, and PhaseId#UPDATE_MODEL_VALUES to its constructor. Call - FacesContext#getExceptionHandler and then call - ExceptionHandler#processEvent, passing the - ExceptionQueuedEventContext. Set the valid property of this UIInput to - false. The exception must not be re-thrown. This enables tree - traversal to continue for this lifecycle phase, as in all the other - lifecycle phases. true
-
true
JSF:JAVADOC:786voidjakarta.faces.component.UIInput.updateModel
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:787voidjakarta.faces.component.UIInput.validate
- - ( FacesContext )
Perform - the following algorithm to validate the local value of this UIInput. - - - - - - - Retrieve the submitted value with #getSubmittedValue. If this returns - null, exit without further processing. (This indicates that no value - was submitted for this component.) If the - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context - parameter value is true (ignoring case), and getSubmittedValue() - returns a zero-length String call #setSubmittedValue, passing null as - the argument and continue processing using null as the current - submitted value. Convert the submitted value into a "local value" of - the appropriate data type by calling #getConvertedValue. Validate the - property by calling #validateValue. If the valid property of this - component is still true, retrieve the previous value of the component - (with getValue()), store the new local value using setValue(), and - reset the submitted value to null. If the local value is different - from the previous value of this component, fire a ValueChangeEvent to - be broadcast to all interested listeners. Application components - implementing UIInput that wish to perform validation with logic - embedded in the component should perform their own correctness checks, - and then call the super.validate() method to perform the standard - processing described above. true
-
true
JSF:JAVADOC:788voidjakarta.faces.component.UIInput.validate
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:789Stringjakarta.faces.component.UIMessage.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:790Stringjakarta.faces.component.UIMessage.getFor
-
Return - the client identifier of the component for which this component - represents associated message(s) (if any). true
-
true
JSF:JAVADOC:791booleanjakarta.faces.component.UIMessage.isRedisplay
-

-
true
-
true
JSF:JAVADOC:792booleanjakarta.faces.component.UIMessage.isShowDetail
-
Return - the flag indicating whether the detail property of the associated - message(s) should be displayed. Defaults to true. true
-
true
JSF:JAVADOC:793booleanjakarta.faces.component.UIMessage.isShowSummary
-
Return - the flag indicating whether the summary property of the associated - message(s) should be displayed. Defaults to false. true
-
true
JSF:JAVADOC:794voidjakarta.faces.component.UIMessage.setFor
- - ( String )
Set the - client identifier of the component for which this component represents - associated message(s) (if any). This property must be set before the - message is displayed. true
-
true
JSF:JAVADOC:795voidjakarta.faces.component.UIMessage.setRedisplay
- - ( boolean )
Set the - flag indicating whether the detail property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:796voidjakarta.faces.component.UIMessage.setShowDetail
- - ( boolean )
Set the - flag indicating whether the detail property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:797voidjakarta.faces.component.UIMessage.setShowSummary
- - ( boolean )
Set the - flag indicating whether the summary property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:798UIMessagejakarta.faces.component.UIMessage.UIMessage
-
Create - a new UIMessage instance with default property values. true
-
true
JSF:JAVADOC:799Stringjakarta.faces.component.UIMessages.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:800Stringjakarta.faces.component.UIMessages.getFor
-
Return - the client identifier of the component for which this component - represents associated message(s) (if any). true
-
true
JSF:JAVADOC:801booleanjakarta.faces.component.UIMessages.isGlobalOnly
-
Return - the flag indicating whether only global messages (that is, messages - with no associated client identifier) should be rendered. Mutually - exclusive with the "for" property which takes precedence. Defaults to - false. true
-
true
JSF:JAVADOC:802booleanjakarta.faces.component.UIMessages.isRedisplay
-

-
true
-
true
JSF:JAVADOC:803booleanjakarta.faces.component.UIMessages.isShowDetail
-
Return - the flag indicating whether the detail property of the associated - message(s) should be displayed. Defaults to false. true
-
true
JSF:JAVADOC:804booleanjakarta.faces.component.UIMessages.isShowSummary
-
Return - the flag indicating whether the summary property of the associated - message(s) should be displayed. Defaults to true. true
-
true
JSF:JAVADOC:805voidjakarta.faces.component.UIMessages.setFor
- - ( String )
Set the - client identifier of the component for which this component represents - associated message(s) (if any). This property must be set before the - message is displayed. true
-
true
JSF:JAVADOC:806voidjakarta.faces.component.UIMessages.setGlobalOnly
- - ( boolean )
Set the - flag indicating whether only global messages (that is, messages with - no associated client identifier) should be rendered. true
-
true
JSF:JAVADOC:807voidjakarta.faces.component.UIMessages.setRedisplay
- - ( boolean )
Set the - flag indicating whether the detail property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:808voidjakarta.faces.component.UIMessages.setShowDetail
- - ( boolean )
Set the - flag indicating whether the detail property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:809voidjakarta.faces.component.UIMessages.setShowSummary
- - ( boolean )
Set the - flag indicating whether the summary property of the associated - message(s) should be displayed. true
-
true
JSF:JAVADOC:810UIMessagesjakarta.faces.component.UIMessages.UIMessages
-
Create - a new UIMessages instance with default property values. true
-
true
JSF:JAVADOC:811Stringjakarta.faces.component.UINamingContainer.createUniqueId
- - ( FacesContext ,
- String )
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - component-container. Optionally, a unique seed value can be supplied - by component creators which should be included in the generated unique - id. true
-
true
JSF:JAVADOC:812Stringjakarta.faces.component.UINamingContainer.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:813charjakarta.faces.component.UINamingContainer.getSeparatorChar
- - ( FacesContext )
Return - the character used to separate segments of a clientId. The - implementation must determine if there is a with the value given by - the value of the symbolic constant #SEPARATOR_CHAR_PARAM_NAME. If - there is a value for this param, the first character of the value must - be returned from this method. Otherwise, the value of the symbolic - constant NamingContainer#SEPARATOR_CHAR must be returned. true
-
true
JSF:JAVADOC:814UINamingContainerjakarta.faces.component.UINamingContainer.UINamingContainer
-
Create - a new UINamingContainer instance with default property values. true
-
true
JSF:JAVADOC:815booleanjakarta.faces.component.UINamingContainer.visitTree
- - ( VisitContext ,
- VisitCallback )
Perform - a tree visit starting at this node in the tree. - - - UIComponent.visitTree() implementations do not invoke the - VisitCallback directly, but instead call - VisitContext#invokeVisitCallback to invoke the callback. This allows - implementations to provide optimized tree traversals, for example by - only calling the for a subset of components. UIComponent.visitTree() - implementations must call UIComponent.pushComponentToEL() before - performing the visit and UIComponent.popComponentFromEL() after the - visit. true
-
true
JSF:JAVADOC:816Stringjakarta.faces.component.UIOutcomeTarget.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:817Stringjakarta.faces.component.UIOutcomeTarget.getOutcome
-
Returns - the outcome property of the UIOutcomeTarget. This value is passed to - the jakarta.faces.application.NavigationHandler when resolving the - target url of this component. true
-
true
JSF:JAVADOC:818booleanjakarta.faces.component.UIOutcomeTarget.isIncludeViewParams
-
Return - whether or not the view parameters should be encoded into the target - url. true
-
true
JSF:JAVADOC:819voidjakarta.faces.component.UIOutcomeTarget.setIncludeViewParams
- - ( boolean )
Set - whether or not the page parameters should be encoded into the target - url. true
-
true
JSF:JAVADOC:820voidjakarta.faces.component.UIOutcomeTarget.setOutcome
- - ( String )
Sets - the outcome property of the UIOutcomeTarget. This value is passed to - the NavigationHandler when resolving the target url of this component. - true
-
true
JSF:JAVADOC:821UIOutcomeTargetjakarta.faces.component.UIOutcomeTarget.UIOutcomeTarget
-
Create - a new UIOutcomeTarget instance with default property values. true
-
true
JSF:JAVADOC:822voidjakarta.faces.component.UIOutput.clearInitialState
-
For - each of the attached objects on this instance that implement - PartialStateHolder, call PartialStateHolder#clearInitialState on the - attached object. true
-
true
JSF:JAVADOC:823Converterjakarta.faces.component.UIOutput.getConverter
-
Return - the Converter (if any) that is registered for this UIComponent. true
-
true
JSF:JAVADOC:824Stringjakarta.faces.component.UIOutput.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:825Objectjakarta.faces.component.UIOutput.getLocalValue
-
Return - the local value of this UIComponent (if any), without evaluating any - associated ValueExpression. true
-
true
JSF:JAVADOC:826Objectjakarta.faces.component.UIOutput.getValue
-
Gets - the value of this UIComponent. First, consult the local value property - of this component. If non-null return it. If null, see if we have a - ValueExpression for the value property. If so, return the result of - evaluating the property, otherwise return null. Note that because the - specification for UIComponent#setValueBinding requires a call through - to UIComponent#setValueExpression, legacy tags will continue to work. - true
-
true
JSF:JAVADOC:827voidjakarta.faces.component.UIOutput.markInitialState
-
In - addition to the actions taken in UIComponentBase when - PartialStateHolder#markInitialState() is called, check if the - installed Converter is a PartialStateHolder and if it is, call - jakarta.faces.component.PartialStateHolder#markInitialState() on it. true
-
true
JSF:JAVADOC:828voidjakarta.faces.component.UIOutput.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:829Objectjakarta.faces.component.UIOutput.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:830voidjakarta.faces.component.UIOutput.setConverter
- - ( Converter )
Set the - Converter (if any) that is registered for this UIComponent. true
-
true
JSF:JAVADOC:831voidjakarta.faces.component.UIOutput.setValue
- - ( Object )
Set the - value of this UIComponent (if any). true
-
true
JSF:JAVADOC:832UIOutputjakarta.faces.component.UIOutput.UIOutput
-
Create - a new UIOutput instance with default property values. true
-
true
JSF:JAVADOC:833Stringjakarta.faces.component.UIPanel.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:834UIPaneljakarta.faces.component.UIPanel.UIPanel
-
Create - a new UIPanel instance with default property values. true
-
true
JSF:JAVADOC:835Stringjakarta.faces.component.UIParameter.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:836Stringjakarta.faces.component.UIParameter.getName
-
Return - the optional parameter name for this parameter. true
-
true
JSF:JAVADOC:837Objectjakarta.faces.component.UIParameter.getValue
-
Returns - the value property of the UIParameter. true
-
true
JSF:JAVADOC:838booleanjakarta.faces.component.UIParameter.isDisable
-
Return - the value of the disable directive for this component. This directive - determines whether the parameter value should be disabled by assigning - it a null value. If true, the value set on this component is ignored. - true
-
true
JSF:JAVADOC:839voidjakarta.faces.component.UIParameter.setDisable
- - ( boolean )
Sets - the disable property of the UIParameter. true
-
true
JSF:JAVADOC:840voidjakarta.faces.component.UIParameter.setName
- - ( String )
Set the - optional parameter name for this parameter. true
-
true
JSF:JAVADOC:841voidjakarta.faces.component.UIParameter.setValue
- - ( Object )
Sets - the value property of the\ UIParameter. true
-
true
JSF:JAVADOC:842UIParameterjakarta.faces.component.UIParameter.UIParameter
-
Create - a new UIParameter instance with default property values. true
-
true
JSF:JAVADOC:843Stringjakarta.faces.component.UISelectBoolean.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:844ValueBindingjakarta.faces.component.UISelectBoolean.getValueBinding
- - ( String )
Return - any ValueBinding set for value if a ValueBinding for selected is - requested; otherwise, perform the default superclass processing for - this method. Rely on the superclass implementation to wrap the - returned ValueExpression in a ValueBinding. truetruetrue
JSF:JAVADOC:845ValueBindingjakarta.faces.component.UISelectBoolean.getValueBinding
- - ( String )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:846ValueExpressionjakarta.faces.component.UISelectBoolean.getValueExpression
- - ( String )
Return - any ValueExpression set for value if a ValueExpression for selected is - requested; otherwise, perform the default superclass processing for - this method. true
-
true
JSF:JAVADOC:847ValueExpressionjakarta.faces.component.UISelectBoolean.getValueExpression
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:848booleanjakarta.faces.component.UISelectBoolean.isSelected
-
Return - the local value of the selected state of this component. This method - is a typesafe alias for getValue(). true
-
true
JSF:JAVADOC:849voidjakarta.faces.component.UISelectBoolean.setSelected
- - ( boolean )
Set the - local value of the selected state of this component. This method is a - typesafe alias for setValue(). true
-
true
JSF:JAVADOC:850voidjakarta.faces.component.UISelectBoolean.setValueBinding
- - ( String ,
- ValueBinding )
Store - any ValueBinding specified for selected under value instead; - otherwise, perform the default superclass processing for this method. - Rely on the superclass implementation to wrap the argument - ValueBinding in a ValueExpression. truetruetrue
JSF:JAVADOC:851voidjakarta.faces.component.UISelectBoolean.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:852voidjakarta.faces.component.UISelectBoolean.setValueExpression
- - ( String ,
- ValueExpression )
Store - any ValueExpression specified for selected under value instead; - otherwise, perform the default superclass processing for this method. - - true
-
true
JSF:JAVADOC:853voidjakarta.faces.component.UISelectBoolean.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:854UISelectBooleanjakarta.faces.component.UISelectBoolean.UISelectBoolean
-
Create - a new UISelectBoolean instance with default property values. true
-
true
JSF:JAVADOC:855Stringjakarta.faces.component.UISelectItem.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:856Stringjakarta.faces.component.UISelectItem.getItemDescription
-
Return - the description for this selection item. true
-
true
JSF:JAVADOC:857Stringjakarta.faces.component.UISelectItem.getItemLabel
-
Return - the localized label for this selection item. true
-
true
JSF:JAVADOC:858Objectjakarta.faces.component.UISelectItem.getItemValue
-
Return - the server value for this selection item. true
-
true
JSF:JAVADOC:859Objectjakarta.faces.component.UISelectItem.getValue
-
Returns - the value property of the UISelectItem. true
-
true
JSF:JAVADOC:860booleanjakarta.faces.component.UISelectItem.isItemDisabled
-
Return - the disabled setting for this selection item. true
-
true
JSF:JAVADOC:861booleanjakarta.faces.component.UISelectItem.isItemEscaped
-
Return - the escape setting for the label of this selection item. true
-
true
JSF:JAVADOC:862booleanjakarta.faces.component.UISelectItem.isNoSelectionOption
-
Return - the value of the noSelectionOption property. If the value of this - property is true, the system interprets the option represented by this - UISelectItem instance as representing a "no selection" option. See - UISelectOne#validateValue and UISelectMany#validateValue for usage. true
-
true
JSF:JAVADOC:863voidjakarta.faces.component.UISelectItem.setItemDescription
- - ( String )
Set the - description for this selection item. true
-
true
JSF:JAVADOC:864voidjakarta.faces.component.UISelectItem.setItemDisabled
- - ( boolean )
Set the - disabled value for this selection item. true
-
true
JSF:JAVADOC:865voidjakarta.faces.component.UISelectItem.setItemEscaped
- - ( boolean )
Set the - escape value for the label of this selection item. true
-
true
JSF:JAVADOC:866voidjakarta.faces.component.UISelectItem.setItemLabel
- - ( String )
Set the - localized label for this selection item. true
-
true
JSF:JAVADOC:867voidjakarta.faces.component.UISelectItem.setItemValue
- - ( Object )
Set the - server value for this selection item. true
-
true
JSF:JAVADOC:868voidjakarta.faces.component.UISelectItem.setNoSelectionOption
- - ( boolean )
Set the - value of the noSelectionOption property. true
-
true
JSF:JAVADOC:869voidjakarta.faces.component.UISelectItem.setValue
- - ( Object )
Sets - the value property of the UISelectItem. true
-
true
JSF:JAVADOC:870UISelectItemjakarta.faces.component.UISelectItem.UISelectItem
-
Create - a new UISelectItem instance with default property values. true
-
true
JSF:JAVADOC:871Stringjakarta.faces.component.UISelectItems.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:872Objectjakarta.faces.component.UISelectItems.getValue
-
Returns - the value property of the UISelectItems. true
-
true
JSF:JAVADOC:873voidjakarta.faces.component.UISelectItems.setValue
- - ( Object )
Sets - the value property of the UISelectItems. true
-
true
JSF:JAVADOC:874UISelectItemsjakarta.faces.component.UISelectItems.UISelectItems
-
Create - a new UISelectItems instance with default property values. true
-
true
JSF:JAVADOC:875Stringjakarta.faces.component.UISelectMany.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:876Object[]jakarta.faces.component.UISelectMany.getSelectedValues
-
Return - the currently selected values, or null if there are no currently - selected values. This is a typesafe alias for getValue(). true
-
true
JSF:JAVADOC:877ValueBindingjakarta.faces.component.UISelectMany.getValueBinding
- - ( String )
Return - any ValueBinding set for value if a ValueBinding for selectedValues is - requested; otherwise, perform the default superclass processing for - this method. This method relies on the superclass to provide the - ValueExpression to ValueBinding wrapping. truetruetrue
JSF:JAVADOC:878ValueBindingjakarta.faces.component.UISelectMany.getValueBinding
- - ( String )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:879ValueExpressionjakarta.faces.component.UISelectMany.getValueExpression
- - ( String )
Return - any ValueExpression set for value if a ValueExpression for - selectedValues is requested; otherwise, perform the default superclass - processing for this method. true
-
true
JSF:JAVADOC:880ValueExpressionjakarta.faces.component.UISelectMany.getValueExpression
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:881voidjakarta.faces.component.UISelectMany.setSelectedValues
- - ( Object[] )
Set the - currently selected values, or null to indicate that there are no - currently selected values. This is a typesafe alias for setValue(). true
-
true
JSF:JAVADOC:882voidjakarta.faces.component.UISelectMany.setValueBinding
- - ( String ,
- ValueBinding )
Store - any ValueBinding specified for selectedValues under value instead; - otherwise, perform the default superclass processing for this method. - This method relies on the superclass to wrap the argument ValueBinding - in a ValueExpression. truetruetrue
JSF:JAVADOC:883voidjakarta.faces.component.UISelectMany.setValueBinding
- - ( String ,
- ValueBinding )
- throws NullPointerException
-
if name - is nulltruetruetrue
JSF:JAVADOC:884voidjakarta.faces.component.UISelectMany.setValueExpression
- - ( String ,
- ValueExpression )
Store - any ValueExpression specified for selectedValues under value instead; - otherwise, perform the default superclass processing for this method. - - true
-
true
JSF:JAVADOC:885voidjakarta.faces.component.UISelectMany.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:886UISelectManyjakarta.faces.component.UISelectMany.UISelectMany
-
Create - a new UISelectMany instance with default property values. true
-
true
JSF:JAVADOC:887Stringjakarta.faces.component.UISelectOne.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:888UISelectOnejakarta.faces.component.UISelectOne.UISelectOne
-
Create - a new UISelectOne instance with default property values. true
-
true
JSF:JAVADOC:889voidjakarta.faces.component.UIViewParameter.decode
- - ( FacesContext )
- - - Override behavior from superclass to pull a value from the incoming - request parameter map under the name given by #getName and store it - with a call to UIInput#setSubmittedValue. true
-
true
JSF:JAVADOC:890voidjakarta.faces.component.UIViewParameter.encodeAll
- - ( FacesContext )
Called - specially by UIViewRoot#encodeEnd, this method simply sets the - submitted value to be the return from #getStringValue. true
-
true
JSF:JAVADOC:891voidjakarta.faces.component.UIViewParameter.encodeAll
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:892Stringjakarta.faces.component.UIViewParameter.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:893Stringjakarta.faces.component.UIViewParameter.getName
-
Return - the request parameter name from which the value is retrieved. true
-
true
JSF:JAVADOC:894Stringjakarta.faces.component.UIViewParameter.getStringValue
- - ( FacesContext )
If the - value of this parameter comes from a ValueExpression return the value - of the expression, otherwise, return the local value. true
-
true
JSF:JAVADOC:895Stringjakarta.faces.component.UIViewParameter.getStringValueFromModel
- - ( FacesContext )
- Manually perform standard conversion steps to get a string value from - the value expression. true
-
true
JSF:JAVADOC:896Stringjakarta.faces.component.UIViewParameter.getStringValueFromModel
- - ( FacesContext )
- throws ConverterException
-

-
true
-
true
JSF:JAVADOC:897Stringjakarta.faces.component.UIViewParameter.getSubmittedValue
-
Assume - that the submitted value is always a string. true
-
true
JSF:JAVADOC:898booleanjakarta.faces.component.UIViewParameter.isImmediate
-
Return - false. The immediate setting is not relevant for view parameters and - must be assumed to be false. true
-
true
JSF:JAVADOC:899voidjakarta.faces.component.UIViewParameter.processValidators
- - ( FacesContext )
- Specialize superclass behavior to treat null differently. In this - class, a null value along with the "required" flag being set to true - will cause a validation failure. true
-
true
JSF:JAVADOC:900voidjakarta.faces.component.UIViewParameter.setName
- - ( String )
Set the - request parameter name from which the value is retrieved. true
-
true
JSF:JAVADOC:901voidjakarta.faces.component.UIViewParameter.setSubmittedValue
- - ( Object )
PENDING - (docs) Interesting that submitted value isn't saved by the parent true
-
true
JSF:JAVADOC:902UIViewParameterjakarta.faces.component.UIViewParameter.UIViewParameter
-
Create - a new UIViewParameter instance with default property values. true
-
true
JSF:JAVADOC:903voidjakarta.faces.component.UIViewParameter.updateModel
- - ( FacesContext )
Call - through to superclass UIInput#updateModel then take the additional - action of pushing the value into request scope if and only if the - value is not a value expression, is valid, and the local value was set - on this lifecycle execution. true
-
true
JSF:JAVADOC:904UIViewParameterjakarta.faces.component.UIViewParameter.Reference.getUIViewParameter
- - ( FacesContext )
Return - the UIViewParameter to which this instance refers. If the current - viewId is the same as the viewId passed to our constructor, use the - index passed to the constructor to find the actual UIViewParameter - instance and return it. Otherwise, call StateHolder#restoreState on - the saved state and return the result. true
-
true
JSF:JAVADOC:905Referencejakarta.faces.component.UIViewParameter.Reference.UIViewParameter.Reference
- - ( FacesContext ,
- UIViewParameter ,
- int ,
- String )
- Construct a reference to a UIViewParameter. This constructor cause the - StateHolder#saveState method to be called on argument UIViewParameter. - true
-
true
JSF:JAVADOC:906voidjakarta.faces.component.UIViewRoot.addComponentResource
- - ( FacesContext ,
- UIComponent )
Add - argument component, which is assumed to represent a resource instance, - as a resource to this view. A resource instance is rendered by a - resource Renderer, as described in the Standard HTML RenderKit. The - default implementation must call through to - #addComponentResource(jakarta.faces.context.FacesContext, - jakarta.faces.component.UIComponent, java.lang.String). true
-
true
JSF:JAVADOC:907voidjakarta.faces.component.UIViewRoot.addComponentResource
- - ( FacesContext ,
- UIComponent ,
- String )
Add - argument component, which is assumed to represent a resource instance, - as a resource to this view. A resource instance is rendered by a - resource Renderer, as described in the Standard HTML RenderKit. The - component must be added using the following algorithm: If the target - argument is null, look for a target attribute on the component. If - there is no target attribute, set target to be the default value head - Call #getComponentResources to obtain the child list for the given - target. If the component ID of componentResource matches the the ID of - a resource that has allready been added, remove the old resource. Add - the component resource to the list. true
-
true
JSF:JAVADOC:908voidjakarta.faces.component.UIViewRoot.addPhaseListener
- - ( PhaseListener )
Add the - argument newPhaseListener to the list of PhaseListeners on this - UIViewRoot. true
-
true
JSF:JAVADOC:909voidjakarta.faces.component.UIViewRoot.broadcastEvents
- - ( FacesContext ,
- PhaseId )
- Broadcast any events that have been queued. First broadcast events - that have been queued for PhaseId#ANY_PHASE. Then broadcast ane events - that have been queued for the current phase. In both cases, - UIComponent#pushComponentToEL must be called before the event is - broadcast, and UIComponent#popComponentFromEL must be called after the - return from the broadcast, even in the case of an exception. true
-
true
JSF:JAVADOC:910Stringjakarta.faces.component.UIViewRoot.createUniqueId
-
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - UIViewRoot. true
-
true
JSF:JAVADOC:911Stringjakarta.faces.component.UIViewRoot.createUniqueId
- - ( FacesContext ,
- String )
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - UIViewRoot. Optionally, a unique seed value can be supplied by - component creators which should be included in the generated unique - id. true
-
true
JSF:JAVADOC:912voidjakarta.faces.component.UIViewRoot.encodeBegin
- - ( FacesContext )
- - Override the default UIComponentBase#encodeBegin behavior. If - #getBeforePhaseListener returns non-null, invoke it, passing a - PhaseEvent for the PhaseId#RENDER_RESPONSE phase. If the internal list - populated by calls to #addPhaseListener is non-empty, any listeners in - that list must have their PhaseListener#beforePhase method called, - passing the PhaseEvent. Any errors that occur during invocation of any - of the the beforePhase listeners must be logged and swallowed. After - listeners are invoked call superclass processing. true
-
true
JSF:JAVADOC:913voidjakarta.faces.component.UIViewRoot.encodeBegin
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:914voidjakarta.faces.component.UIViewRoot.encodeChildren
- - ( FacesContext )
If - jakarta.faces.context.PartialViewContext#isAjaxRequest returns true, - perform partial rendering by calling - jakarta.faces.context.PartialViewContext#processPartial with - PhaseId#RENDER_RESPONSE. If - jakarta.faces.context.PartialViewContext#isAjaxRequest returns false, - delegate to the parent - jakarta.faces.component.UIComponentBase#encodeChildren method. true
-
true
JSF:JAVADOC:915voidjakarta.faces.component.UIViewRoot.encodeChildren
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:916voidjakarta.faces.component.UIViewRoot.encodeEnd
- - ( FacesContext )
If - #getAfterPhaseListener returns non-null, invoke it, passing a - PhaseEvent for the PhaseId#RENDER_RESPONSE phase. Any errors that - occur during invocation of the afterPhase listener must be logged and - swallowed. If the current view has view parameters, as indicated by a - non-empty and non-UnsupportedOperationException throwing return from - jakarta.faces.view.ViewDeclarationLanguage#getViewMetadata(jakarta.faces.context.FacesContext, - String), call UIViewParameter#encodeAll on each parameter. If calling - getViewParameters() causes UnsupportedOperationException to be thrown, - the exception must be silently swallowed. true
-
true
JSF:JAVADOC:917voidjakarta.faces.component.UIViewRoot.encodeEnd
- - ( FacesContext )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:918MethodExpressionjakarta.faces.component.UIViewRoot.getAfterPhaseListener
-
Return - the MethodExpression that will be invoked after this view is rendered. - - true
-
true
JSF:JAVADOC:919MethodExpressionjakarta.faces.component.UIViewRoot.getBeforePhaseListener
-
Return - the MethodExpression that will be invoked before this view is - rendered. true
-
true
JSF:JAVADOC:920Listjakarta.faces.component.UIViewRoot.getComponentResources
- - ( FacesContext ,
- String )
Return - an unmodifiable List of UIComponents for the provided target agrument. - Each component in the List is assumed to represent a resource - instance. The default implementation must use an algorithm equivalent - to the the following. Locate the facet for the component by calling - getFacet() using target as the argument. If the facet is not found, - create the facet by calling context.getApplication().createComponent() - using jakarta.faces.Panel as the argument Set the id of the facet to be - target Add the facet to the facets Map using target as the key return - the children of the facet true
-
true
JSF:JAVADOC:921Listjakarta.faces.component.UIViewRoot.getComponentResources
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - target or context is nulltrue
-
true
JSF:JAVADOC:922Stringjakarta.faces.component.UIViewRoot.getFamily
-
Return - the identifier of the component family to which this component - belongs. This identifier, in conjunction with the value of the - rendererType property, may be used to select the appropriate Renderer - for this component instance. true
-
true
JSF:JAVADOC:923Localejakarta.faces.component.UIViewRoot.getLocale
-
Return - the Locale to be used in localizing the response being created for - this view. Algorithm: If we have a locale ivar, return it. If we have - a value expression for "locale", get its value. If the value is null, - return the result of calling - jakarta.faces.application.ViewHandler#calculateLocale. If the value is - an instance of java.util.Locale return it. If the value is a String, - convert it to a java.util.Locale and return it. If there is no value - expression for "locale", return the result of calling - jakarta.faces.application.ViewHandler#calculateLocale. true
-
true
JSF:JAVADOC:924Listjakarta.faces.component.UIViewRoot.getPhaseListeners
-
Return - an unmodifiable list of the PhaseListener instances attached to this - UIViewRoot instance. true
-
true
JSF:JAVADOC:925Stringjakarta.faces.component.UIViewRoot.getRenderKitId
-
Return - the render kit identifier of the jakarta.faces.render.RenderKit - associated with this view. Unless explicitly set, as in - jakarta.faces.application.ViewHandler#createView, the returned value - will be null. true
-
true
JSF:JAVADOC:926booleanjakarta.faces.component.UIViewRoot.getRendersChildren
-
Call - UIComponentBase#getRendersChildren If - jakarta.faces.context.PartialViewContext#isAjaxRequest returns true this - method must return true. true
-
true
JSF:JAVADOC:927Stringjakarta.faces.component.UIViewRoot.getViewId
-
Return - the view identifier for this view. true
-
true
JSF:JAVADOC:928Listjakarta.faces.component.UIViewRoot.getViewListenersForEventClass
- - ( Class )
Return - the SystemEventListener instances registered on this UIComponent - instance that are interested in events of type eventClass. true
-
true
JSF:JAVADOC:929Listjakarta.faces.component.UIViewRoot.getViewListenersForEventClass
- - ( Class )
- throws NullPointerException
-
if - argument systemEvent is null.true
-
true
JSF:JAVADOC:930Mapjakarta.faces.component.UIViewRoot.getViewMap
-
This - implementation simply calls through to #getViewMap(boolean), passing - true as the argument, and returns the result. true
-
true
JSF:JAVADOC:931Mapjakarta.faces.component.UIViewRoot.getViewMap
- - ( boolean )
Returns - a Map that acts as the interface to the data store that is the "view - scope", or, if this instance does not have such a Map and the create - argument is true, creates one and returns it. This map must be - instantiated lazily and cached for return from subsequent calls to - this method on this UIViewRoot instance. - jakarta.faces.application.Application#publishEvent must be called, - passing PostConstructViewMapEvent.class as the first argument and this - UIViewRoot instance as the second argument. The returned Map must be - implemented such that calling clear() on the Map causes - jakarta.faces.application.Application#publishEvent to be called, passing - PreDestroyViewMapEvent.class as the first argument and this UIViewRoot - instance as the second argument. See FacesContext#setViewRoot for the - specification of when the clear() method must be called. true
-
true
JSF:JAVADOC:932booleanjakarta.faces.component.UIViewRoot.isInView
-
Return - trues. true
-
true
JSF:JAVADOC:933voidjakarta.faces.component.UIViewRoot.processApplication
- - ( FacesContext )
- - - Broadcast any events that have been queued for the Invoke Application - phase of the request processing lifecycle and to clear out any events - for later phases if the event processing for this phase caused - FacesContext#renderResponse or FacesContext#responseComplete to be - called. true
-
true
JSF:JAVADOC:934voidjakarta.faces.component.UIViewRoot.processApplication
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:935voidjakarta.faces.component.UIViewRoot.processDecodes
- - ( FacesContext )
Perform - partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with - PhaseId#APPLY_REQUEST_VALUES if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we don't have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) - Perform full processing by calling UIComponentBase#processDecodes if - one of the following conditions are met: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false - Override the default UIComponentBase#processDecodes behavior to - broadcast any queued events after the default processing or partial - processing has been completed and to clear out any events for later - phases if the event processing for this phase caused - FacesContext#renderResponse or FacesContext#responseComplete to be - called. true
-
true
JSF:JAVADOC:936voidjakarta.faces.component.UIViewRoot.processDecodes
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:937voidjakarta.faces.component.UIViewRoot.processRestoreState
- - ( FacesContext ,
- Object )
The - default implementation must call UIComponentBase#processRestoreState - from within a try block. The try block must have a finally block that - ensures that no FacesEvents remain in the event queue, and that the - this.UIComponent#visitTree is called, passing a ContextCallback that - takes the following action: call the UIComponent#processEvent method - of the current component. The argument event must be an instance of - jakarta.faces.event.PostRestoreStateEvent whose component property is - the current component in the traversal. true
-
true
JSF:JAVADOC:938voidjakarta.faces.component.UIViewRoot.processUpdates
- - ( FacesContext )
Perform - partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with - PhaseId#UPDATE_MODEL_VALUES if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we don't have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) - Perform full processing by calling UIComponentBase#processUpdates if - one of the following conditions are met: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false - Override the default UIComponentBase behavior to broadcast any queued - events after the default processing or partial processing has been - completed and to clear out any events for later phases if the event - processing for this phase caused FacesContext#renderResponse or - FacesContext#responseComplete to be called. true
-
true
JSF:JAVADOC:939voidjakarta.faces.component.UIViewRoot.processUpdates
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:940voidjakarta.faces.component.UIViewRoot.processValidators
- - ( FacesContext )
Perform - partial processing by calling - jakarta.faces.context.PartialViewContext#processPartial with - PhaseId#PROCESS_VALIDATIONS if: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we don't have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) - Perform full processing by calling UIComponentBase#processValidators - if one of the following conditions are met: - jakarta.faces.context.PartialViewContext#isPartialRequest returns true - and we have a request to process all components in the view - (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) - jakarta.faces.context.PartialViewContext#isPartialRequest returns false - Override the default UIComponentBase#processValidators behavior to - broadcast any queued events after the default processing or partial - processing has been completed and to clear out any events for later - phases if the event processing for this phase caused - FacesContext#renderResponse or FacesContext#responseComplete to be - called. true
-
true
JSF:JAVADOC:941voidjakarta.faces.component.UIViewRoot.processValidators
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:942voidjakarta.faces.component.UIViewRoot.queueEvent
- - ( FacesEvent )
- - Override the default UIComponentBase#queueEvent behavior to accumulate - the queued events for later broadcasting. true
-
true
JSF:JAVADOC:943voidjakarta.faces.component.UIViewRoot.queueEvent
- - ( FacesEvent )
- throws IllegalStateException
-
if this - component is not a descendant of a UIViewRoottrue
-
true
JSF:JAVADOC:944voidjakarta.faces.component.UIViewRoot.queueEvent
- - ( FacesEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:945voidjakarta.faces.component.UIViewRoot.removeComponentResource
- - ( FacesContext ,
- UIComponent )
Remove - argument component, which is assumed to represent a resource instance, - as a resource to this view. true
-
true
JSF:JAVADOC:946voidjakarta.faces.component.UIViewRoot.removeComponentResource
- - ( FacesContext ,
- UIComponent ,
- String )
Remove - argument component, which is assumed to represent a resource instance, - as a resource to this view. A resource instance is rendered by a - resource Renderer, as described in the Standard HTML RenderKit. The - component must be removed using the following algorithm: If the target - argument is null, look for a target attribute on the component. If - there is no target attribute, set target to be the default value head - Call #getComponentResources to obtain the child list for the given - target. Remove the component resource from the child list. true
-
true
JSF:JAVADOC:947voidjakarta.faces.component.UIViewRoot.removePhaseListener
- - ( PhaseListener )
If the - argument toRemove is in the list of PhaseListeners for this instance, - it must be removed. true
-
true
JSF:JAVADOC:948voidjakarta.faces.component.UIViewRoot.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:949Objectjakarta.faces.component.UIViewRoot.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:950voidjakarta.faces.component.UIViewRoot.setAfterPhaseListener
- - ( MethodExpression )
Allow - an arbitrary method to be called for the "afterPhase" event as the - UIViewRoot runs through its lifecycle. This method will be called for - all phases including PhaseId#RESTORE_VIEW. Unlike a true - PhaseListener, this approach doesn't allow for only receiving - PhaseEvents for a given phase. The method must conform to the - signature of PhaseListener#afterPhase. true
-
true
JSF:JAVADOC:951voidjakarta.faces.component.UIViewRoot.setBeforePhaseListener
- - ( MethodExpression )
Allow - an arbitrary method to be called for the "beforePhase" event as the - UIViewRoot runs through its lifecycle. This method will be called for - all phases except PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, - this approach doesn't allow for only receiving PhaseEvents for a given - phase. The method must conform to the signature of - PhaseListener#beforePhase. true
-
true
JSF:JAVADOC:952voidjakarta.faces.component.UIViewRoot.setInView
- - ( boolean )
- Overridden to take no action. true
-
true
JSF:JAVADOC:953voidjakarta.faces.component.UIViewRoot.setLocale
- - ( Locale )
Set the - Locale to be used in localizing the response being created for this - view. true
-
true
JSF:JAVADOC:954voidjakarta.faces.component.UIViewRoot.setRenderKitId
- - ( String )
Set the - render kit identifier of the jakarta.faces.render.RenderKit associated - with this view. This method may be called at any time between the end - of Apply Request Values phase of the request processing lifecycle - (i.e. when events are being broadcast) and the beginning of the Render - Response phase. true
-
true
JSF:JAVADOC:955voidjakarta.faces.component.UIViewRoot.setViewId
- - ( String )
Set the - view identifier for this view. true
-
true
JSF:JAVADOC:956voidjakarta.faces.component.UIViewRoot.subscribeToViewEvent
- - ( Class ,
- SystemEventListener )
Install - the listener instance referenced by argument listener into the - UIViewRoot as a listener for events of type systemEventClass. Note - that installed listeners are not maintained as part of the - UIViewRoot's state. true
-
true
JSF:JAVADOC:957voidjakarta.faces.component.UIViewRoot.subscribeToViewEvent
- - ( Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if - systemEventClass or listener are null.true
-
true
JSF:JAVADOC:958UIViewRootjakarta.faces.component.UIViewRoot.UIViewRoot
-
Create - a new UIViewRoot instance with default property values. true
-
true
JSF:JAVADOC:959voidjakarta.faces.component.UIViewRoot.unsubscribeFromViewEvent
- - ( Class ,
- SystemEventListener )
Remove - the listener instance referenced by argument listener from the - UIViewRoot as a listener for events of type systemEventClass. true
-
true
JSF:JAVADOC:960voidjakarta.faces.component.UIViewRoot.unsubscribeFromViewEvent
- - ( Class ,
- SystemEventListener )
- throws <code>NullPointerException</code>
-
if - systemEventClass or listener are null.true
-
true
JSF:JAVADOC:961Stringjakarta.faces.component.UniqueIdVendor.createUniqueId
- - ( FacesContext ,
- String )
- Generate an identifier for a component. The identifier will be - prefixed with UNIQUE_ID_PREFIX, and will be unique within this - component-container. Optionally, a unique seed value can be supplied - by component creators which should be included in the generated unique - id. true
-
true
JSF:JAVADOC:962FacesMessagejakarta.faces.component.UpdateModelException.getFacesMessage
-
Return - the FacesMessage passed to the constructor. true
-
true
JSF:JAVADOC:963UpdateModelExceptionjakarta.faces.component.UpdateModelException.UpdateModelException
- - ( FacesMessage ,
- Throwable )
Store - the argument facesMessage so it may be returned from #getFacesMessage - and pass the argument cause to the super constructor. true
-
true
JSF:JAVADOC:964Converterjakarta.faces.component.ValueHolder.getConverter
-
Return - the Converter (if any) that is registered for this UIComponent. true
-
true
JSF:JAVADOC:965Objectjakarta.faces.component.ValueHolder.getLocalValue
-
Return - the local value of this UIComponent (if any), without evaluating any - associated ValueExpression. true
-
true
JSF:JAVADOC:966Objectjakarta.faces.component.ValueHolder.getValue
-
Gets - the value of this UIComponent. First, consult the local value property - of this component. If non-null return it. If null, see if we have a - ValueExpression for the value property. If so, return the result of - evaluating the property, otherwise return null. Note that because the - specification for UIComponent#setValueBinding requires a call through - to UIComponent#setValueExpression, legacy tags will continue to work. - true
-
true
JSF:JAVADOC:967voidjakarta.faces.component.ValueHolder.setConverter
- - ( Converter )
Set the - Converter (if any) that is registered for this UIComponent. true
-
true
JSF:JAVADOC:968voidjakarta.faces.component.ValueHolder.setValue
- - ( Object )
Set the - value of this UIComponent (if any). true
-
true
JSF:JAVADOC:969voidjakarta.faces.component.behavior.AjaxBehavior.addAjaxBehaviorListener
- - ( AjaxBehaviorListener )
Add the - specified AjaxBehaviorListener to the set of listeners registered to - receive event notifications from this AjaxBehavior. true
-
true
JSF:JAVADOC:970voidjakarta.faces.component.behavior.AjaxBehavior.addAjaxBehaviorListener
- - ( AjaxBehaviorListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:971AjaxBehaviorjakarta.faces.component.behavior.AjaxBehavior.AjaxBehavior
-

-
true
-
true
JSF:JAVADOC:972Collectionjakarta.faces.component.behavior.AjaxBehavior.getExecute
-
Return - a non-empty Collection of component identifiers that will be used to - identify components that should be processed during the execute phase - of the request processing lifecycle. Note that the returned collection - may be unmodifiable. Modifications should be performed by calling - #setExecute. true
-
true
JSF:JAVADOC:973Setjakarta.faces.component.behavior.AjaxBehavior.getHints
-
This - method returns an unmodifiable Set containing the ClientBehaviorHint - SUBMITTING. true
-
true
JSF:JAVADOC:974Stringjakarta.faces.component.behavior.AjaxBehavior.getOnerror
-
Return - the String of JavaScript function name that will be used to identify - the client callback function that should be run in the event of an - error. true
-
true
JSF:JAVADOC:975Stringjakarta.faces.component.behavior.AjaxBehavior.getOnevent
-
Return - the String of JavaScript function name that will be used to identify - the client callback function that should be run on the occurance of a - client-side event. true
-
true
JSF:JAVADOC:976Collectionjakarta.faces.component.behavior.AjaxBehavior.getRender
-
Return - a non-empty Collection of component identifiers that will be used to - identify components that should be processed during the render phase - of the request processing lifecycle. Note that the returned collection - may be unmodifiable. Modifications should be performed by calling - #setRender. true
-
true
JSF:JAVADOC:977Stringjakarta.faces.component.behavior.AjaxBehavior.getRendererType
-
Returns - the renderer type of the ClientBehaviorRenderer to use for the - behavior. The default implementation returns null. Subclasses should - either override this method to return a string that identifies the - type of ClientBehaviorRenderer to use, or should override #getScript - and perform script rendering locally in the ClientBehavior - implementation. true
-
true
JSF:JAVADOC:978ValueExpressionjakarta.faces.component.behavior.AjaxBehavior.getValueExpression
- - ( String )
Returns - the ValueExpression used to calculate the value for the specified - property name, if any. true
-
true
JSF:JAVADOC:979ValueExpressionjakarta.faces.component.behavior.AjaxBehavior.getValueExpression
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:980booleanjakarta.faces.component.behavior.AjaxBehavior.isDisabled
-
Return - the disabled status of this behavior. true
-
true
JSF:JAVADOC:981booleanjakarta.faces.component.behavior.AjaxBehavior.isImmediate
-
Return - the immediate status of this behaivor. true
-
true
JSF:JAVADOC:982booleanjakarta.faces.component.behavior.AjaxBehavior.isImmediateSet
-
Tests - whether the immediate attribute is specified. Returns true if the - immediate attribute is specified, either as a locally set property or - as a value expression. This information allows an associated client - behavior renderer to fall back on the parent component's immediate - status when immediate is not explicitly specified on the AjaxBehavior. - true
-
true
JSF:JAVADOC:983voidjakarta.faces.component.behavior.AjaxBehavior.removeAjaxBehaviorListener
- - ( AjaxBehaviorListener )
Remove - the specified AjaxBehaviorListener from the set of listeners - registered to receive event notifications from this AjaxBehavior. true
-
true
JSF:JAVADOC:984voidjakarta.faces.component.behavior.AjaxBehavior.removeAjaxBehaviorListener
- - ( AjaxBehaviorListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:985voidjakarta.faces.component.behavior.AjaxBehavior.restoreState
- - ( FacesContext ,
- Object )
- - Implementation of jakarta.faces.component.StateHolder#restoreState. true
-
true
JSF:JAVADOC:986Objectjakarta.faces.component.behavior.AjaxBehavior.saveState
- - ( FacesContext )
- - Implementation of jakarta.faces.component.StateHolder#saveState. true
-
true
JSF:JAVADOC:987voidjakarta.faces.component.behavior.AjaxBehavior.setDisabled
- - ( boolean )
Sets - the disabled status of this behavior. true
-
true
JSF:JAVADOC:988voidjakarta.faces.component.behavior.AjaxBehavior.setExecute
- - ( Collection )
Sets - the component identifiers that will be used to identify components - that should be processed during the execute phase of the request - processing lifecycle. true
-
true
JSF:JAVADOC:989voidjakarta.faces.component.behavior.AjaxBehavior.setImmediate
- - ( boolean )
Sets - the immediate status of this behavior. true
-
true
JSF:JAVADOC:990voidjakarta.faces.component.behavior.AjaxBehavior.setOnerror
- - ( String )
Sets - the JavaScript function name that will be used to identify the client - callback function that should be run in the event of an error. true
-
true
JSF:JAVADOC:991voidjakarta.faces.component.behavior.AjaxBehavior.setOnevent
- - ( String )
Sets - the JavaScript function name that will be used to identify the client - callback function that should be run in response to event activity. true
-
true
JSF:JAVADOC:992voidjakarta.faces.component.behavior.AjaxBehavior.setRender
- - ( Collection )
Sets - the component identifiers that will be used to identify components - that should be processed during the render phase of the request - processing lifecycle. true
-
true
JSF:JAVADOC:993voidjakarta.faces.component.behavior.AjaxBehavior.setValueExpression
- - ( String ,
- ValueExpression )
Sets - the ValueExpression used to calculate the value for the specified - property name. true
-
true
JSF:JAVADOC:994voidjakarta.faces.component.behavior.AjaxBehavior.setValueExpression
- - ( String ,
- ValueExpression )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:995voidjakarta.faces.component.behavior.Behavior.broadcast
- - ( BehaviorEvent )
- - Broadcast the specified BehaviorEvent to all registered event - listeners who have expressed an interest in events of this type. - Listeners are called in the order in which they were added. true
-
true
JSF:JAVADOC:996voidjakarta.faces.component.behavior.Behavior.broadcast
- - ( BehaviorEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:997voidjakarta.faces.component.behavior.Behavior.broadcast
- - ( BehaviorEvent )
- throws IllegalArgumentException
-
if the - implementation class of this BehaviorEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:998voidjakarta.faces.component.behavior.Behavior.broadcast
- - ( BehaviorEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:999BehaviorBasejakarta.faces.component.behavior.BehaviorBase.BehaviorBase
-

-
true
-
true
JSF:JAVADOC:1000voidjakarta.faces.component.behavior.BehaviorBase.broadcast
- - ( BehaviorEvent )
Default - implementation of Behavior#broadcast. Delivers the specified - BehaviorEvent to all registered BehaviorListener event listeners who - have expressed an interest in events of this type. Listeners are - called in the order in which they were registered (added). true
-
true
JSF:JAVADOC:1001voidjakarta.faces.component.behavior.BehaviorBase.broadcast
- - ( BehaviorEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1002voidjakarta.faces.component.behavior.BehaviorBase.broadcast
- - ( BehaviorEvent )
- throws IllegalArgumentException
-
if the - implementation class of this BehaviorEvent is not supported by this - componenttrue
-
true
JSF:JAVADOC:1003voidjakarta.faces.component.behavior.BehaviorBase.broadcast
- - ( BehaviorEvent )
- throws NullPointerException
-
if event - is nulltrue
-
true
JSF:JAVADOC:1004voidjakarta.faces.component.behavior.BehaviorBase.clearInitialState
-
Clears - the initial state flag, causing the behavior to revert from partial to - full state saving. true
-
true
JSF:JAVADOC:1005booleanjakarta.faces.component.behavior.BehaviorBase.initialStateMarked
-
- - Implementation of - jakarta.faces.component.PartialStateHolder#initialStateMarked. true
-
true
JSF:JAVADOC:1006booleanjakarta.faces.component.behavior.BehaviorBase.isTransient
-
- - Implementation of jakarta.faces.component.StateHolder#isTransient. true
-
true
JSF:JAVADOC:1007voidjakarta.faces.component.behavior.BehaviorBase.markInitialState
-
- - Implementation of - jakarta.faces.component.PartialStateHolder#markInitialState. true
-
true
JSF:JAVADOC:1008voidjakarta.faces.component.behavior.BehaviorBase.restoreState
- - ( FacesContext ,
- Object )
- - Implementation of jakarta.faces.component.StateHolder#restoreState. true
-
true
JSF:JAVADOC:1009Objectjakarta.faces.component.behavior.BehaviorBase.saveState
- - ( FacesContext )
- - Implementation of jakarta.faces.component.StateHolder#saveState. true
-
true
JSF:JAVADOC:1010voidjakarta.faces.component.behavior.BehaviorBase.setTransient
- - ( boolean )
- - Implementation of jakarta.faces.component.StateHolder#setTransient. true
-
true
JSF:JAVADOC:1011voidjakarta.faces.component.behavior.ClientBehavior.decode
- - ( FacesContext ,
- UIComponent )
Decode - any new state of this ClientBehavior from the request contained in the - specified FacesContext. During decoding, events may be enqueued for - later processing (by event listeners who have registered an interest), - by calling queueEvent(). Default implementation delegates decoding to - jakarta.faces.render.ClientBehaviorRenderer#decode(FacesContext, - UIComponent, ClientBehavior) true
-
true
JSF:JAVADOC:1012voidjakarta.faces.component.behavior.ClientBehavior.decode
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is null.true
-
true
JSF:JAVADOC:1013Setjakarta.faces.component.behavior.ClientBehavior.getHints
-
Returns - hints that describe the behavior of the ClientBehavior implementation. - The hints may impact how Renderers behave in the presence of - Behaviors. For example, when a Behavior that specifies - ClientBehaviorHint.SUBMITTING is present, the Renderer may choose to - alternate the scripts that it generates itself. true
-
true
JSF:JAVADOC:1014Stringjakarta.faces.component.behavior.ClientBehavior.getScript
- - ( ClientBehaviorContext )
Return - the script that implements this ClientBehavior's client-side logic. - ClientBehavior.getScript() implementations are allowed to return null - to indicate that no script is required for this particular getScript() - call. For example, a ClientBehavior implementation may return null if - the Behavior is disabled. true
-
true
JSF:JAVADOC:1015Stringjakarta.faces.component.behavior.ClientBehavior.getScript
- - ( ClientBehaviorContext )
- throws NullPointerException
-
if - behaviorContext is nulltrue
-
true
JSF:JAVADOC:1016ClientBehaviorBasejakarta.faces.component.behavior.ClientBehaviorBase.ClientBehaviorBase
-

-
true
-
true
JSF:JAVADOC:1017voidjakarta.faces.component.behavior.ClientBehaviorBase.decode
- - ( FacesContext ,
- UIComponent )
Default - implementation of of ClientBehavior#decode. If a - ClientBehaviorRenderer is available for the specified behavior - renderer type, this method delegates to the ClientBehaviorRenderer's - decode() method. Otherwise, no decoding is performed. true
-
true
JSF:JAVADOC:1018voidjakarta.faces.component.behavior.ClientBehaviorBase.decode
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is null.true
-
true
JSF:JAVADOC:1019Setjakarta.faces.component.behavior.ClientBehaviorBase.getHints
-
Default - implementation of ClientBehavior#getHints(). By default, no hints are - specified, and this method returns an empty, umodifiable set. true
-
true
JSF:JAVADOC:1020Stringjakarta.faces.component.behavior.ClientBehaviorBase.getRendererType
-
Returns - the renderer type of the ClientBehaviorRenderer to use for the - behavior. The default implementation returns null. Subclasses should - either override this method to return a string that identifies the - type of ClientBehaviorRenderer to use, or should override #getScript - and perform script rendering locally in the ClientBehavior - implementation. true
-
true
JSF:JAVADOC:1021Stringjakarta.faces.component.behavior.ClientBehaviorBase.getScript
- - ( ClientBehaviorContext )
Default - implementation of of ClientBehavior#getScript. If a - ClientBehaviorRenderer is available for the specified behavior - renderer type, this method delegates to the - ClientBehaviorRenderer#getScript method. Otherwise, this method - returns null. true
-
true
JSF:JAVADOC:1022Stringjakarta.faces.component.behavior.ClientBehaviorBase.getScript
- - ( ClientBehaviorContext )
- throws NullPointerException
-
if - behaviorContext is nulltrue
-
true
JSF:JAVADOC:1023ClientBehaviorContextjakarta.faces.component.behavior.ClientBehaviorContext.ClientBehaviorContext
-

-
true
-
true
JSF:JAVADOC:1024ClientBehaviorContextjakarta.faces.component.behavior.ClientBehaviorContext.createClientBehaviorContext
- - ( FacesContext ,
- UIComponent ,
- String ,
- String ,
- Collection )
Creates - a ClientBehaviorContext instance. true
-
true
JSF:JAVADOC:1025ClientBehaviorContextjakarta.faces.component.behavior.ClientBehaviorContext.createClientBehaviorContext
- - ( FacesContext ,
- UIComponent ,
- String ,
- String ,
- Collection )
- throws NullPointerException
-
if - context, component or eventName is nulltrue
-
true
JSF:JAVADOC:1026UIComponentjakarta.faces.component.behavior.ClientBehaviorContext.getComponent
-
Returns - the UIComponent that is requesting the ClientBehavior script. true
-
true
JSF:JAVADOC:1027Stringjakarta.faces.component.behavior.ClientBehaviorContext.getEventName
-
Returns - the name of the behavior event for which the ClientBehavior script is - being requested. true
-
true
JSF:JAVADOC:1028FacesContextjakarta.faces.component.behavior.ClientBehaviorContext.getFacesContext
-
Returns - the FacesContext for the current request. true
-
true
JSF:JAVADOC:1029Collectionjakarta.faces.component.behavior.ClientBehaviorContext.getParameters
-
Returns - parameters that "submitting" ClientBehavior implementations should - include when posting back data into the Faces lifecycle. If no - parameters are specified, this method returns an empty (non-null) - collection. true
-
true
JSF:JAVADOC:1030Stringjakarta.faces.component.behavior.ClientBehaviorContext.getSourceId
-
Returns - an id for use as the ClientBehavior source. ClientBehavior - implementations that submit back to the Faces lifecycle are required - to identify which component triggered the ClientBehavior-initiated - request via the jakarta.faces.source request parameter. In most cases, - th source id can be trivially derived from the element to which the - behavior's client-side script is attached - ie. the source id is - typically the id of this element. However, in components which produce - more complex content, the behavior script may not be able to determine - the correct id to use for the jakarta.faces.source value. The - ClientBehaviorContext#getSourceId method allows the component to pass - this information into the ClientBehavior#getScript implementation. true
-
true
JSF:JAVADOC:1031Parameterjakarta.faces.component.behavior.ClientBehaviorContext.Parameter.ClientBehaviorContext.Parameter
- - ( String ,
- Object )
Creates - a Parameter instance. true
-
true
JSF:JAVADOC:1032Stringjakarta.faces.component.behavior.ClientBehaviorContext.Parameter.getName
-
Returns - the Parameter's name. true
-
true
JSF:JAVADOC:1033Objectjakarta.faces.component.behavior.ClientBehaviorContext.Parameter.getValue
-
Returns - the Parameter's value. true
-
true
JSF:JAVADOC:1034ClientBehaviorHintjakarta.faces.component.behavior.ClientBehaviorHint.valueOf
- - ( String )

-
true
-
true
JSF:JAVADOC:1035ClientBehaviorHint[]jakarta.faces.component.behavior.ClientBehaviorHint.values
-

-
true
-
true
JSF:JAVADOC:1036voidjakarta.faces.component.behavior.ClientBehaviorHolder.addClientBehavior
- - ( String ,
- ClientBehavior )
- - Attaches a ClientBehavior to the component implementing this interface - for the specified event. Valid event names for a UIComponent - implementation are defined by . true
-
true
JSF:JAVADOC:1037Mapjakarta.faces.component.behavior.ClientBehaviorHolder.getClientBehaviors
-
Returns - a non-null, unmodifiable Map that contains the the ClientBehaviors - that have been attached to the component implementing this interface. - - The keys in this Map are event names defined by #getEventNames. true
-
true
JSF:JAVADOC:1038Stringjakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName
-
Returns - the default event name for this ClientBehaviorHolder implementation. - - This must be one of the event names returned by #getEventNames or null - if the component does not have a default event. true
-
true
JSF:JAVADOC:1039Collectionjakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames
-
Returns - a non-null, unmodifiable Collection containing the names of the - logical events supported by the component implementing this interface. - - true
-
true
JSF:JAVADOC:1040Stringjakarta.faces.component.behavior.FacesBehavior.value
-

-
true
-
true
JSF:JAVADOC:1041VisitResultjakarta.faces.component.visit.VisitCallback.visit
- - ( VisitContext ,
- UIComponent )
This - method is called during component tree visits by - VisitContext#invokeVisitCallback VisitContext.invokeVisitCallback() to - visit the specified component. At the point in time when this method - is called, the argument is guaranteed to be in the proper state with - respect to its ancestors in the View. true
-
true
JSF:JAVADOC:1042VisitContextjakarta.faces.component.visit.VisitContext.createVisitContext
- - ( FacesContext ,
- Collection ,
- Set )
Returns - a VisitContext instance that is initialized with the specified ids and - hintsfor use with UIComponent#visitTree. true
-
true
JSF:JAVADOC:1043VisitContextjakarta.faces.component.visit.VisitContext.createVisitContext
- - ( FacesContext )
Creates - a VisitContext instance for use with UIComponent#visitTree - UIComponent.visitTree(). This method can be used to obtain a - VisitContext instance when all components should be visited with the - default visit hints. true
-
true
JSF:JAVADOC:1044FacesContextjakarta.faces.component.visit.VisitContext.getFacesContext
-
Returns - the FacesContext for the current request. true
-
true
JSF:JAVADOC:1045Setjakarta.faces.component.visit.VisitContext.getHints
-
Returns - hints that influence the behavior of the tree visit. Interested - parties, such as UIComponent#visitTree UIComponent.visitTree() - implementations, may check to see whether a particular hint is present - by calling , passing in one of the hints defined by VisitHint. true
-
true
JSF:JAVADOC:1046Collectionjakarta.faces.component.visit.VisitContext.getIdsToVisit
-
Returns - the ids of the components to visit. In the case of a full tree visit, - this method returns the ALL_IDS collection. Otherwise, if a partial - visit is beign performed, returns a modifiable collection containing - the client ids of the components that should be visited. true
-
true
JSF:JAVADOC:1047Collectionjakarta.faces.component.visit.VisitContext.getSubtreeIdsToVisit
- - ( UIComponent )
Given a - jakarta.faces.component.NamingContainer component, returns the client - ids of any components underneath the NamingContainer that should be - visited. This method is called by NamingContainer visitTree() - implementations to determine whether the NamingContainer contains - components to be visited. In the case where no such components exist, - the NamingContainer can short-circuit the tree visit and avoid - descending into child subtrees. In addition, iterating components such - as UIData may be able to use the returned ids to determine which - iterated states (ie. rows) need to be visited. This allows the visit - traversal to be contstrained such only those rows that contain visit - targets need to be traversed. true
-
true
JSF:JAVADOC:1048Collectionjakarta.faces.component.visit.VisitContext.getSubtreeIdsToVisit
- - ( UIComponent )
- throws IllegalArgumentException
-
if - {@code component} is not an instance of NamingContainertrue
-
true
JSF:JAVADOC:1049VisitResultjakarta.faces.component.visit.VisitContext.invokeVisitCallback
- - ( UIComponent ,
- VisitCallback )
Called - by UIComponent#visitTree UIComponent.visitTree() to visit a single - component. true
-
true
JSF:JAVADOC:1050VisitContextjakarta.faces.component.visit.VisitContext.VisitContext
-

-
true
-
true
JSF:JAVADOC:1051VisitContextjakarta.faces.component.visit.VisitContextFactory.getVisitContext
- - ( FacesContext ,
- Collection ,
- Set )
Return - a new VisitContext instance. true
-
true
JSF:JAVADOC:1052VisitContextFactoryjakarta.faces.component.visit.VisitContextFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:1053VisitContextFactoryjakarta.faces.component.visit.VisitContextFactory.VisitContextFactory
-

-
true
-
true
JSF:JAVADOC:1054FacesContextjakarta.faces.component.visit.VisitContextWrapper.getFacesContext
-
Returns - the FacesContext for the current request. true
-
true
JSF:JAVADOC:1055Setjakarta.faces.component.visit.VisitContextWrapper.getHints
-
Returns - hints that influence the behavior of the tree visit. Interested - parties, such as UIComponent#visitTree UIComponent.visitTree() - implementations, may check to see whether a particular hint is present - by calling , passing in one of the hints defined by VisitHint. true
-
true
JSF:JAVADOC:1056Collectionjakarta.faces.component.visit.VisitContextWrapper.getIdsToVisit
-
Returns - the ids of the components to visit. In the case of a full tree visit, - this method returns the ALL_IDS collection. Otherwise, if a partial - visit is beign performed, returns a modifiable collection containing - the client ids of the components that should be visited. true
-
true
JSF:JAVADOC:1057Collectionjakarta.faces.component.visit.VisitContextWrapper.getSubtreeIdsToVisit
- - ( UIComponent )
Given a - jakarta.faces.component.NamingContainer component, returns the client - ids of any components underneath the NamingContainer that should be - visited. This method is called by NamingContainer visitTree() - implementations to determine whether the NamingContainer contains - components to be visited. In the case where no such components exist, - the NamingContainer can short-circuit the tree visit and avoid - descending into child subtrees. In addition, iterating components such - as UIData may be able to use the returned ids to determine which - iterated states (ie. rows) need to be visited. This allows the visit - traversal to be contstrained such only those rows that contain visit - targets need to be traversed. true
-
true
JSF:JAVADOC:1058Collectionjakarta.faces.component.visit.VisitContextWrapper.getSubtreeIdsToVisit
- - ( UIComponent )
- throws IllegalArgumentException
-
if - {@code component} is not an instance of NamingContainertrue
-
true
JSF:JAVADOC:1059VisitContextjakarta.faces.component.visit.VisitContextWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1060VisitResultjakarta.faces.component.visit.VisitContextWrapper.invokeVisitCallback
- - ( UIComponent ,
- VisitCallback )
Called - by UIComponent#visitTree UIComponent.visitTree() to visit a single - component. true
-
true
JSF:JAVADOC:1061VisitContextWrapperjakarta.faces.component.visit.VisitContextWrapper.VisitContextWrapper
-

-
true
-
true
JSF:JAVADOC:1062VisitHintjakarta.faces.component.visit.VisitHint.valueOf
- - ( String )

-
true
-
true
JSF:JAVADOC:1063VisitHint[]jakarta.faces.component.visit.VisitHint.values
-

-
true
-
true
JSF:JAVADOC:1064VisitResultjakarta.faces.component.visit.VisitResult.valueOf
- - ( String )

-
true
-
true
JSF:JAVADOC:1065VisitResult[]jakarta.faces.component.visit.VisitResult.values
-

-
true
-
true
JSF:JAVADOC:1066ExceptionHandlerjakarta.faces.context.ExceptionHandler.ExceptionHandler
-

-
true
-
true
JSF:JAVADOC:1067ExceptionQueuedEventjakarta.faces.context.ExceptionHandler.getHandledExceptionQueuedEvent
-
Return - the first ExceptionQueuedEvent handled by this handler. true
-
true
JSF:JAVADOC:1068Iterablejakarta.faces.context.ExceptionHandler.getHandledExceptionQueuedEvents
-
The - default implementation must return an Iterable over all - ExceptionQueuedEvents that have been handled by the #handle method. true
-
true
JSF:JAVADOC:1069Throwablejakarta.faces.context.ExceptionHandler.getRootCause
- - ( Throwable )
Unwrap - the argument t until the unwrapping encounters an Object whose - getClass() is not equal to FacesException.class or - jakarta.el.ELException.class. If there is no root cause, null is - returned. true
-
true
JSF:JAVADOC:1070Throwablejakarta.faces.context.ExceptionHandler.getRootCause
- - ( Throwable )
- throws NullPointerException
-
if - argument t is null.true
-
true
JSF:JAVADOC:1071Iterablejakarta.faces.context.ExceptionHandler.getUnhandledExceptionQueuedEvents
-
Return - an Iterable over all ExceptionQueuedEvents that have not yet been - handled by the #handle method. true
-
true
JSF:JAVADOC:1072voidjakarta.faces.context.ExceptionHandler.handle
-
Take - action to handle the Exception instances residing inside the - ExceptionQueuedEvent instances that have been queued by calls to - Application().publishEvent(ExceptionQueuedEvent.class, eventContext). - The requirements of the default implementation are detailed in section - JSF.6.2.1. true
-
true
JSF:JAVADOC:1073voidjakarta.faces.context.ExceptionHandler.handle
-
- throws FacesException
-
if and - only if a problem occurs while performing the algorithm to handle the - Exception, not as a means of conveying a handled Exception itself.true
-
true
JSF:JAVADOC:1074booleanjakarta.faces.context.ExceptionHandler.isListenerForSource
- - ( Object )

-
true
-
true
JSF:JAVADOC:1075voidjakarta.faces.context.ExceptionHandler.processEvent
- - ( SystemEvent )

-
true
-
true
JSF:JAVADOC:1076voidjakarta.faces.context.ExceptionHandler.processEvent
- - ( SystemEvent )
- throws AbortProcessingException
-

-
true
-
true
JSF:JAVADOC:1077ExceptionHandlerFactoryjakarta.faces.context.ExceptionHandlerFactory.ExceptionHandlerFactory
-

-
true
-
true
JSF:JAVADOC:1078ExceptionHandlerjakarta.faces.context.ExceptionHandlerFactory.getExceptionHandler
-
Create - and return a A new ExceptionHandler instance. The implementation must - return an ExceptionHandler instance suitable for the environment. For - example, in some cases it may be desirable for an ExceptionHandler to - write error information to the response instead of throwing exceptions - as in the case of Ajax applications. true
-
true
JSF:JAVADOC:1079ExceptionHandlerFactoryjakarta.faces.context.ExceptionHandlerFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:1080ExceptionHandlerWrapperjakarta.faces.context.ExceptionHandlerWrapper.ExceptionHandlerWrapper
-

-
true
-
true
JSF:JAVADOC:1081ExceptionQueuedEventjakarta.faces.context.ExceptionHandlerWrapper.getHandledExceptionQueuedEvent
-
The - default behavior of this method is to call - ExceptionHandler#getHandledExceptionQueuedEvent() on the wrapped - ExceptionHandler object. true
-
true
JSF:JAVADOC:1082Iterablejakarta.faces.context.ExceptionHandlerWrapper.getHandledExceptionQueuedEvents
-
The - default behavior of this method is to call - ExceptionHandler#getHandledExceptionQueuedEvents() on the wrapped - ExceptionHandler object. true
-
true
JSF:JAVADOC:1083Throwablejakarta.faces.context.ExceptionHandlerWrapper.getRootCause
- - ( Throwable )
The - default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#getRootCause(Throwable) on the - wrapped ExceptionHandler object. true
-
true
JSF:JAVADOC:1084Iterablejakarta.faces.context.ExceptionHandlerWrapper.getUnhandledExceptionQueuedEvents
-
The - default behavior of this method is to call - ExceptionHandler#getUnhandledExceptionQueuedEvents() on the wrapped - ExceptionHandler object. true
-
true
JSF:JAVADOC:1085ExceptionHandlerjakarta.faces.context.ExceptionHandlerWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1086voidjakarta.faces.context.ExceptionHandlerWrapper.handle
-
The - default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#handle() on the wrapped - ExceptionHandler object. true
-
true
JSF:JAVADOC:1087voidjakarta.faces.context.ExceptionHandlerWrapper.handle
-
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:1088booleanjakarta.faces.context.ExceptionHandlerWrapper.isListenerForSource
- - ( Object )
The - default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#isListenerForSource(Object) on - the wrapped ExceptionHandler object. true
-
true
JSF:JAVADOC:1089voidjakarta.faces.context.ExceptionHandlerWrapper.processEvent
- - ( SystemEvent )
The - default behavior of this method is to call - jakarta.faces.context.ExceptionHandler#processEvent(jakarta.faces.event.SystemEvent) - on the wrapped ExceptionHandler object. true
-
true
JSF:JAVADOC:1090voidjakarta.faces.context.ExceptionHandlerWrapper.processEvent
- - ( SystemEvent )
- throws AbortProcessingException
-

-
true
-
true
JSF:JAVADOC:1091voidjakarta.faces.context.ExternalContext.addResponseCookie
- - ( String ,
- String ,
- Map )
Adds - the cookie represented by the arguments to the response. Servlet: This - must be accomplished by calling the - jakarta.servlet.http.HttpServletResponse method addCookie(). The Cookie - argument must be constructed by passing the name and value parameters. - If the properties arugument is non-null and not empty, the Cookie - instance must be initialized as described below. Key in "values" Map - Expected type of value. Name of setter method on Cookie instance to be - set with the value from the Map. comment String setComment domain - String setDomain maxAge Integer setMaxAge secure Boolean setSecure - path String setPath The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1092voidjakarta.faces.context.ExternalContext.addResponseCookie
- - ( String ,
- String ,
- Map )
- throws IllegalArgumentException
-
if the - properties Map is not-null and not empty and contains any keys that - are not one of the keys listed above.true
-
true
JSF:JAVADOC:1093voidjakarta.faces.context.ExternalContext.addResponseHeader
- - ( String ,
- String )
Add the - given name and value to the response header. Servlet:This must be - performed by calling the jakarta.servlet.http.HttpServletResponse - addHeader method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1094voidjakarta.faces.context.ExternalContext.dispatch
- - ( String )
- Dispatch a request to the specified resource to create output for this - response. Servlet: This must be accomplished by calling the - jakarta.servlet.ServletContext method getRequestDispatcher(path), and - calling the forward() method on the resulting object. true
-
true
JSF:JAVADOC:1095voidjakarta.faces.context.ExternalContext.dispatch
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1096voidjakarta.faces.context.ExternalContext.dispatch
- - ( String )
- throws FacesException
-
thrown - if a ServletException occurstrue
-
true
JSF:JAVADOC:1097voidjakarta.faces.context.ExternalContext.dispatch
- - ( String )
- throws IllegalArgumentException
-
if no - request dispatcher can be created for the specified pathtrue
-
true
JSF:JAVADOC:1098voidjakarta.faces.context.ExternalContext.dispatch
- - ( String )
- throws NullPointerException
-
if path - is nulltrue
-
true
JSF:JAVADOC:1099Stringjakarta.faces.context.ExternalContext.encodeActionURL
- - ( String )
Return - the input URL, after performing any rewriting needed to ensure that it - will correctly identify an addressable action in the current - application. Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletResponse method encodeURL(url). true
-
true
JSF:JAVADOC:1100Stringjakarta.faces.context.ExternalContext.encodeActionURL
- - ( String )
- throws NullPointerException
-
if url - is nulltrue
-
true
JSF:JAVADOC:1101Stringjakarta.faces.context.ExternalContext.encodeBookmarkableURL
- - ( String ,
- Map )
The - purpose of this method is to generate a query string from the - collection of Parameter objects provided by the parameters argument - and append that query string to the baseUrl. This method must be able - to encode the parameters to a baseUrl that may or may not have - existing query parameters. The parameter values should be encoded - appropriately for the environment so that the resulting URL can be - used as the target of a link (e.g., in an href attribute) in a JSF - response. It's possible for an ExternalContext implementation to - override this method in any way that would make the URL bookmarkable - in that environment. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1102Stringjakarta.faces.context.ExternalContext.encodeNamespace
- - ( String )
Return - the specified name, after prefixing it with a namespace that ensures - that it will be unique within the context of a particular page. - Servlet: The input value must be returned unchanged. true
-
true
JSF:JAVADOC:1103Stringjakarta.faces.context.ExternalContext.encodeNamespace
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1104Stringjakarta.faces.context.ExternalContext.encodePartialActionURL
- - ( String )
Return - the input URL, after performing any rewriting needed to ensure that it - can be used in a partial page submission (ajax request) to correctly - identify an addressable action in the current application. - - Servlet:Returns the same encoded URL as the #encodeActionURL(String - url) method. Portlet:Returns an encoded URL that, upon HTTP POST, will - invoke the RESOURCE_PHASE of the portlet lifecycle. true
-
true
JSF:JAVADOC:1105Stringjakarta.faces.context.ExternalContext.encodePartialActionURL
- - ( String )
- throws NullPointerException
-
if url - is nulltrue
-
true
JSF:JAVADOC:1106Stringjakarta.faces.context.ExternalContext.encodeRedirectURL
- - ( String ,
- Map )
The - purpose of this method is to generate a query string from the - collection of Parameter objects provided by the parameters argument - and append that query string to the baseUrl. This method must be able - to encode the parameters to a baseUrl that may or may not have - existing query parameters. The parameter values should be encoded - appropriately for the environment so that the resulting URL can be - used as the target of a redirect. It's possible for an ExternalContext - implementation to override this method to accomodate the definition of - redirect for that environment. true
-
true
JSF:JAVADOC:1107Stringjakarta.faces.context.ExternalContext.encodeResourceURL
- - ( String )
Return - the input URL, after performing any rewriting needed to ensure that it - will correctly identify an addressable resource in the current - application. Servlet: This must be the value returned by the - jakarta.servlet.http.HttpServletResponse method encodeURL(url). true
-
true
JSF:JAVADOC:1108Stringjakarta.faces.context.ExternalContext.encodeResourceURL
- - ( String )
- throws NullPointerException
-
if url - is nulltrue
-
true
JSF:JAVADOC:1109ExternalContextjakarta.faces.context.ExternalContext.ExternalContext
-

-
true
-
true
JSF:JAVADOC:1110Mapjakarta.faces.context.ExternalContext.getApplicationMap
-
Return - a mutable Map representing the application scope attributes for the - current application. The returned Map must implement the entire - contract for a modifiable map as described in the JavaDocs for - java.util.Map. Modifications made in the Map must cause the - corresponding changes in the set of application scope attributes. - Particularly the clear(), remove(), put(), putAll(), and get() - operations must take the appropriate action on the underlying data - structure. For any of the Map methods that cause an element to be - removed from the underlying data structure, the following action - regarding managed-beans must be taken. If the element to be removed is - a managed-bean, and it has one or more public no-argument void return - methods annotated with jakarta.annotation.PreDestroy, each such method - must be called before the element is removed from the underlying data - structure. Elements that are not managed-beans, but do happen to have - methods with that annotation must not have those methods called on - removal. Any exception thrown by the PreDestroy annotated methods must - by caught and not rethrown. The exception may be logged. It is valid - to call this method during application startup or shutdown. If called - at startup or shutdown time, this method returns a Map that is backed - by the same container context instance (ServletContext or - PortletContext) as the one returned by calling getApplicationMap() on - the ExternalContext returned by the FacesContext during an actual - request. Servlet: This must be the set of attributes available via the - jakarta.servlet.ServletContext methods getAttribute(), - getAttributeNames(), removeAttribute(), and setAttribute(). true
-
true
JSF:JAVADOC:1111Stringjakarta.faces.context.ExternalContext.getAuthType
-
Return - the name of the authentication scheme used to authenticate the current - user, if any; otherwise, return null. For standard authentication - schemes, the returned value will match one of the following constants: - BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, or FORM_AUTH. Servlet: This - must be the value returned by the - jakarta.servlet.http.HttpServletRequest method getAuthType(). true
-
true
JSF:JAVADOC:1112Objectjakarta.faces.context.ExternalContext.getContext
-
Return - the application environment object instance for the current - appication. It is valid to call this method during application startup - or shutdown. If called during application startup or shutdown, this - returns the same container context instance (ServletContext or - PortletContext) as the one returned when calling getContext() on the - ExternalContext returned by the FacesContext during an actual request. - Servlet: This must be the current application's - jakarta.servlet.ServletContext instance. true
-
true
JSF:JAVADOC:1113Stringjakarta.faces.context.ExternalContext.getContextName
-
Return - the name of the container context for this application. Return the - result of calling getServletContextName() on the ServletContext - instance for this application. It is valid to call this method during - application startup or shutdown. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1114Flashjakarta.faces.context.ExternalContext.getFlash
-
Return - the threadsafe Flash for this application. The default implementation - will throw UnsupportedOperationException. Compliant JSF runtimes must - provide an implementation of this method. true
-
true
JSF:JAVADOC:1115Stringjakarta.faces.context.ExternalContext.getInitParameter
- - ( String )
Return - the value of the specified application initialization parameter (if - any). Servlet: This must be the result of the - jakarta.servlet.ServletContext method getInitParameter(name). It is - valid to call this method during application startup or shutdown. If - called during application startup or shutdown, this method calls - through to the actual container context to return the init parameter - value. true
-
true
JSF:JAVADOC:1116Stringjakarta.faces.context.ExternalContext.getInitParameter
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1117Mapjakarta.faces.context.ExternalContext.getInitParameterMap
-
Return - an immutable Map whose keys are the set of application initialization - parameter names configured for this application, and whose values are - the corresponding parameter values. The returned Map must implement - the entire contract for an unmodifiable map as described in the - JavaDocs for java.util.Map. It is valid to call this method during - application startup or shutdown. If called during application startup - or shutdown, this method returns a Map that is backed by the same - container context instance (ServletContext or PortletContext) as the - one returned by calling getInitParameterMap() on the ExternalContext - returned by the FacesContext during an actual request. Servlet: This - result must be as if it were synthesized by calling the - jakarta.servlet.ServletContext method getInitParameterNames, and putting - each configured parameter name/value pair into the result. true
-
true
JSF:JAVADOC:1118Stringjakarta.faces.context.ExternalContext.getMimeType
- - ( String )
Returns - the MIME type of the specified file or null if the MIME type is not - known. The MIME type is determined by the container. It is valid to - call this method during application startup or shutdown. If called - during application startup or shutdown, this method calls through to - the getMimeType() method on the same container context instance - (ServletContext or PortletContext) as the one used when calling - getMimeType() on the ExternalContext returned by the FacesContext - during an actual request. Servlet: This must be the value returned by - the jakarta.servlet.ServletContext method getMimeType(). true
-
true
JSF:JAVADOC:1119Stringjakarta.faces.context.ExternalContext.getRealPath
- - ( String )
Returns - a String containing the real path for a given virtual path. Servlet: - This must be the value returned by the jakarta.servlet.ServletContext - method getRealPath(). The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1120Stringjakarta.faces.context.ExternalContext.getRemoteUser
-
Return - the login name of the user making the current request if any; - otherwise, return null. Servlet: This must be the value returned by - the jakarta.servlet.http.HttpServletRequest method getRemoteUser(). true
-
true
JSF:JAVADOC:1121Objectjakarta.faces.context.ExternalContext.getRequest
-
Return - the environment-specific object instance for the current request. - Servlet: This must be the current request's - jakarta.servlet.http.HttpServletRequest instance. true
-
true
JSF:JAVADOC:1122Stringjakarta.faces.context.ExternalContext.getRequestCharacterEncoding
-
Return - the character encoding currently being used to interpret this request. - Servlet: This must return the value returned by the - jakarta.servlet.ServletRequest method getCharacterEncoding(). The - default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1123intjakarta.faces.context.ExternalContext.getRequestContentLength
-
Return - the result of calling getContentLenth() on the ServletRequest instance - for this request. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1124Stringjakarta.faces.context.ExternalContext.getRequestContentType
-
Return - the MIME Content-Type for this request. If not available, return null. - Servlet: This must return the value returned by the - jakarta.servlet.ServletRequest method getContentType(). The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1125Stringjakarta.faces.context.ExternalContext.getRequestContextPath
-
Return - the portion of the request URI that identifies the web application - context for this request. Servlet: This must be the value returned by - the jakarta.servlet.http.HttpServletRequest method getContextPath(). true
-
true
JSF:JAVADOC:1126Mapjakarta.faces.context.ExternalContext.getRequestCookieMap
-
Return - an immutable Map whose keys are the set of cookie names included in - the current request, and whose values (of type - jakarta.servlet.http.Cookie) are the first (or only) cookie for each - cookie name returned by the underlying request. The returned Map must - implement the entire contract for an unmodifiable map as described in - the JavaDocs for java.util.Map. Servlet: This must be the value - returned by the jakarta.servlet.http.HttpServletRequest method - getCookies(), unless null was returned, in which case this must be a - zero-length array. true
-
true
JSF:JAVADOC:1127Mapjakarta.faces.context.ExternalContext.getRequestHeaderMap
-
Return - an immutable Map whose keys are the set of request header names - included in the current request, and whose values (of type String) are - the first (or only) value for each header name returned by the - underlying request. The returned Map must implement the entire - contract for an unmodifiable map as described in the JavaDocs for - java.util.Map. In addition, key comparisons must be performed in a - case insensitive manner. Servlet: This must be the set of headers - available via the jakarta.servlet.http.HttpServletRequest methods - getHeader() and getHeaderNames(). true
-
true
JSF:JAVADOC:1128Mapjakarta.faces.context.ExternalContext.getRequestHeaderValuesMap
-
Return - an immutable Map whose keys are the set of request header names - included in the current request, and whose values (of type String[]) - are all of the value for each header name returned by the underlying - request. The returned Map must implement the entire contract for an - unmodifiable map as described in the JavaDocs for java.util.Map. In - addition, key comparisons must be performed in a case insensitive - manner. Servlet: This must be the set of headers available via the - jakarta.servlet.http.HttpServletRequest methods getHeaders() and - getHeaderNames(). true
-
true
JSF:JAVADOC:1129Localejakarta.faces.context.ExternalContext.getRequestLocale
-
Return - the preferred Locale in which the client will accept content. Servlet: - This must be the value returned by the jakarta.servlet.ServletRequest - method getLocale(). true
-
true
JSF:JAVADOC:1130Iteratorjakarta.faces.context.ExternalContext.getRequestLocales
-
Return - an Iterator over the preferred Locales specified in the request, in - decreasing order of preference. Servlet: This must be an Iterator over - the values returned by the jakarta.servlet.ServletRequest method - getLocales(). true
-
true
JSF:JAVADOC:1131Mapjakarta.faces.context.ExternalContext.getRequestMap
-
Return - a mutable Map representing the request scope attributes for the - current application. The returned Map must implement the entire - contract for a modifiable map as described in the JavaDocs for - java.util.Map. Modifications made in the Map must cause the - corresponding changes in the set of request scope attributes. - Particularly the clear(), remove(), put(), putAll(), and get() - operations must take the appropriate action on the underlying data - structure. For any of the Map methods that cause an element to be - removed from the underlying data structure, the following action - regarding managed-beans must be taken. If the element to be removed is - a managed-bean, and it has one or more public no-argument void return - methods annotated with jakarta.annotation.PreDestroy, each such method - must be called before the element is removed from the underlying data - structure. Elements that are not managed-beans, but do happen to have - methods with that annotation must not have those methods called on - removal. Any exception thrown by the PreDestroy annotated methods must - by caught and not rethrown. The exception may be logged. Servlet: This - must be the set of attributes available via the - jakarta.servlet.ServletRequest methods getAttribute(), - getAttributeNames(), removeAttribute(), and setAttribute(). true
-
true
JSF:JAVADOC:1132Mapjakarta.faces.context.ExternalContext.getRequestParameterMap
-
Return - an immutable Map whose keys are the set of request parameters names - included in the current request, and whose values (of type String) are - the first (or only) value for each parameter name returned by the - underlying request. The returned Map must implement the entire - contract for an unmodifiable map as described in the JavaDocs for - java.util.Map. Servlet: This must be the set of parameters available - via the jakarta.servlet.ServletRequest methods getParameter() and - getParameterNames(). true
-
true
JSF:JAVADOC:1133Iteratorjakarta.faces.context.ExternalContext.getRequestParameterNames
-
Return - an Iterator over the names of all request parameters included in the - current request. Servlet: This must be an Iterator over the values - returned by the jakarta.servlet.ServletRequest method - getParameterNames(). true
-
true
JSF:JAVADOC:1134Mapjakarta.faces.context.ExternalContext.getRequestParameterValuesMap
-
Return - an immutable Map whose keys are the set of request parameters names - included in the current request, and whose values (of type String[]) - are all of the values for each parameter name returned by the - underlying request. The returned Map must implement the entire - contract for an unmodifiable map as described in the JavaDocs for - java.util.Map. Servlet: This must be the set of parameters available - via the jakarta.servlet.ServletRequest methods getParameterValues() and - getParameterNames(). true
-
true
JSF:JAVADOC:1135Stringjakarta.faces.context.ExternalContext.getRequestPathInfo
-
Return - the extra path information (if any) included in the request URI; - otherwise, return null. Servlet: This must be the value returned by - the jakarta.servlet.http.HttpServletRequest method getPathInfo(). true
-
true
JSF:JAVADOC:1136Stringjakarta.faces.context.ExternalContext.getRequestScheme
-
Returns - the name of the scheme used to make this request, for example, http, - https, or ftp. Servlet: This must be the value returned by the - jakarta.servlet.ServletRequest method getScheme(). The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1137Stringjakarta.faces.context.ExternalContext.getRequestServerName
-
Returns - the host name of the server to which the request was sent. Servlet: - This must be the value returned by the jakarta.servlet.ServletRequest - method getServerName(). The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1138intjakarta.faces.context.ExternalContext.getRequestServerPort
-
Returns - the port number to which the request was sent. Servlet: This must be - the value returned by the jakarta.servlet.ServletRequest method - getServerPort(). The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1139Stringjakarta.faces.context.ExternalContext.getRequestServletPath
-
Return - the servlet path information (if any) included in the request URI; - otherwise, return null. Servlet: This must be the value returned by - the jakarta.servlet.http.HttpServletRequest method getServletPath(). true
-
true
JSF:JAVADOC:1140URLjakarta.faces.context.ExternalContext.getResource
- - ( String )
Return - a URL for the application resource mapped to the specified path, if it - exists; otherwise, return null. It is valid to call this method during - application startup or shutdown. If called during application startup - or shutdown, this method calls through to the getResource() method on - the same container context instance (ServletContext or PortletContext) - as the one used when calling getResource() on the ExternalContext - returned by the FacesContext during an actual request. Servlet: This - must be the value returned by the jakarta.servlet.ServletContext method - getResource(path). true
-
true
JSF:JAVADOC:1141URLjakarta.faces.context.ExternalContext.getResource
- - ( String )
- throws MalformedURLException
-
if the - specified path is not in the correct formtrue
-
true
JSF:JAVADOC:1142URLjakarta.faces.context.ExternalContext.getResource
- - ( String )
- throws NullPointerException
-
if path - is nulltrue
-
true
JSF:JAVADOC:1143InputStreamjakarta.faces.context.ExternalContext.getResourceAsStream
- - ( String )
Return - an InputStream for an application resource mapped to the specified - path, if it exists; otherwise, return null. It is valid to call this - method during application startup or shutdown. If called during - application startup or shutdown, this method calls through to the - getResourceAsStream() method on the same container context instance - (ServletContext or PortletContext) as the one used when calling - getResourceAsStream() on the ExternalContext returned by the - FacesContext during an actual request. Servlet: This must be the value - returned by the jakarta.servlet.ServletContext method - getResourceAsStream(path). true
-
true
JSF:JAVADOC:1144InputStreamjakarta.faces.context.ExternalContext.getResourceAsStream
- - ( String )
- throws NullPointerException
-
if path - is nulltrue
-
true
JSF:JAVADOC:1145Setjakarta.faces.context.ExternalContext.getResourcePaths
- - ( String )
Return - the Set of resource paths for all application resources whose resource - path starts with the specified argument. It is valid to call this - method during application startup or shutdown. If called during - application startup or shutdown, this method calls through to the - getResourcePaths() method on the same container context instance - (ServletContext or PortletContext) as the one used when calling - getResourcePaths() on the ExternalContext returned by the FacesContext - during an actual request. Servlet: This must be the value returned by - the jakarta.servlet.ServletContext method getResourcePaths(path). true
-
true
JSF:JAVADOC:1146Setjakarta.faces.context.ExternalContext.getResourcePaths
- - ( String )
- throws NullPointerException
-
if path - is nulltrue
-
true
JSF:JAVADOC:1147Objectjakarta.faces.context.ExternalContext.getResponse
-
Return - the environment-specific object instance for the current response. - Servlet: This is the current request's - jakarta.servlet.http.HttpServletResponse instance. true
-
true
JSF:JAVADOC:1148intjakarta.faces.context.ExternalContext.getResponseBufferSize
-
Return - the buffer size for the current response. Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse - getBufferSize method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1149Stringjakarta.faces.context.ExternalContext.getResponseCharacterEncoding
-
Returns - the name of the character encoding (MIME charset) used for the body - sent in this response. Servlet: This must return the value returned by - the jakarta.servlet.ServletResponse method getCharacterEncoding(). The - default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1150Stringjakarta.faces.context.ExternalContext.getResponseContentType
-
Return - the MIME Content-Type for this response. If not available, return - null. Servlet: This must return the value returned by the - jakarta.servlet.ServletResponse method getContentType(). The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1151OutputStreamjakarta.faces.context.ExternalContext.getResponseOutputStream
-
Returns - an OutputStream suitable for writing binary data to the user-agent. - Servlet: This must return the value returned by the - jakarta.servlet.ServletResponse method getOutputStream(). The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1152OutputStreamjakarta.faces.context.ExternalContext.getResponseOutputStream
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1153Writerjakarta.faces.context.ExternalContext.getResponseOutputWriter
-
Returns - a Writer suitable for writing character data to the user-agent. - - Servlet: This must return the value returned by the - jakarta.servlet.ServletResponse#getWriter. The default implementation - throws UnsupportedOperationException and is provided for the sole - purpose of not breaking existing applications that extend this class. - true
-
true
JSF:JAVADOC:1154Writerjakarta.faces.context.ExternalContext.getResponseOutputWriter
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1155Objectjakarta.faces.context.ExternalContext.getSession
- - ( boolean )
If the - create parameter is true, create (if necessary) and return a session - instance associated with the current request. If the create parameter - is false return any existing session instance associated with the - current request, or return null if there is no such session. Servlet: - This must return the result of calling getSession(create) on the - underlying jakarta.servlet.http.HttpServletRequest instance. true
-
true
JSF:JAVADOC:1156Mapjakarta.faces.context.ExternalContext.getSessionMap
-
Return - a mutable Map representing the session scope attributes for the - current application. The returned Map must implement the entire - contract for a modifiable map as described in the JavaDocs for - java.util.Map. Modifications made in the Map must cause the - corresponding changes in the set of session scope attributes. - Particularly the clear(), remove(), put(), and get() operations must - take the appropriate action on the underlying data structure. - Accessing attributes via this Map must cause the creation of a session - associated with the current request, if such a session does not - already exist. For any of the Map methods that cause an element to be - removed from the underlying data structure, the following action - regarding managed-beans must be taken. If the element to be removed is - a managed-bean, and it has one or more public no-argument void return - methods annotated with jakarta.annotation.PreDestroy, each such method - must be called before the element is removed from the underlying data - structure. Elements that are not managed-beans, but do happen to have - methods with that annotation must not have those methods called on - removal. Any exception thrown by the PreDestroy annotated methods must - by caught and not rethrown. The exception may be logged. Servlet: This - must be the set of attributes available via the - jakarta.servlet.http.HttpServletSession methods getAttribute(), - getAttributeNames(), removeAttribute(), and setAttribute(). true
-
true
JSF:JAVADOC:1157Principaljakarta.faces.context.ExternalContext.getUserPrincipal
-
Return - the Principal object containing the name of the current authenticated - user, if any; otherwise, return null. Servlet: This must be the value - returned by the jakarta.servlet.http.HttpServletRequest method - getUserPrincipal(). true
-
true
JSF:JAVADOC:1158voidjakarta.faces.context.ExternalContext.invalidateSession
-
- Invalidates this session then unbinds any objects bound to it. - Servlet: This must be the value returned by the - jakarta.servlet.http.HttpSession method invalidate(). The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1159booleanjakarta.faces.context.ExternalContext.isResponseCommitted
-
Check - if the current response has been committed. Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse - isCommitted method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1160booleanjakarta.faces.context.ExternalContext.isUserInRole
- - ( String )
Return - true if the currently authenticated user is included in the specified - role. Otherwise, return false. Servlet: This must be the value - returned by the jakarta.servlet.http.HttpServletRequest method - isUserInRole(role). true
-
true
JSF:JAVADOC:1161booleanjakarta.faces.context.ExternalContext.isUserInRole
- - ( String )
- throws NullPointerException
-
if role - is nulltrue
-
true
JSF:JAVADOC:1162voidjakarta.faces.context.ExternalContext.log
- - ( String )
Log the - specified message to the application object. It is valid to call this - method during application startup or shutdown. If called during - application startup or shutdown, this calls the log() method on the - same container context instance (ServletContext or PortletContext) as - the one used during a call to log() on the ExternalContext returned by - the FacesContext during an actual request. Servlet: This must be - performed by calling the jakarta.servlet.ServletContext method - log(String). true
-
true
JSF:JAVADOC:1163voidjakarta.faces.context.ExternalContext.log
- - ( String )
- throws NullPointerException
-
if - message is nulltrue
-
true
JSF:JAVADOC:1164voidjakarta.faces.context.ExternalContext.log
- - ( String ,
- Throwable )
Log the - specified message and exception to the application object. It is valid - to call this method during application startup or shutdown. If called - during application startup or shutdown, this calls the log() method on - the same container context instance (ServletContext or PortletContext) - as the one used when calling log() on the ExternalContext returned by - the FacesContext during an actual request. Servlet: This must be - performed by calling the jakarta.servlet.ServletContext method - log(String,Throwable). true
-
true
JSF:JAVADOC:1165voidjakarta.faces.context.ExternalContext.log
- - ( String ,
- Throwable )
- throws NullPointerException
-
if - message or exception is nulltrue
-
true
JSF:JAVADOC:1166voidjakarta.faces.context.ExternalContext.redirect
- - ( String )
- - Redirect a request to the specified URL, and cause the - responseComplete() method to be called on the FacesContext instance - for the current request. The implementation must determine if the - request is an Ajax request by obtaining a PartialViewContext instance - from the FacesContext and calling PartialViewContext#isAjaxRequest(). - Servlet: For non Ajax requests, this must be accomplished by calling - the jakarta.servlet.http.HttpServletResponse method sendRedirect(). For - Ajax requests, the implementation must: Get a PartialResponseWriter - instance from the FacesContext. Call #setResponseContentType with - text/xml Call #setResponseCharacterEncoding with UTF-8 Call - #addResponseHeader with Cache-Control, no-cache Call - PartialResponseWriter#startDocument Call - PartialResponseWriter#redirect with the url argument. Call - PartialResponseWriter#endDocument true
-
true
JSF:JAVADOC:1167voidjakarta.faces.context.ExternalContext.redirect
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1168voidjakarta.faces.context.ExternalContext.redirect
- - ( String )
- throws IllegalArgumentException
-
if the - specified url is relativetrue
-
true
JSF:JAVADOC:1169voidjakarta.faces.context.ExternalContext.redirect
- - ( String )
- throws IllegalStateException
-
if, in a - portlet environment, the current response object is a RenderResponse - instead of an ActionResponsetrue
-
true
JSF:JAVADOC:1170voidjakarta.faces.context.ExternalContext.redirect
- - ( String )
- throws IllegalStateException
-
if, in a - servlet environment, the current response has already been committedtrue
-
true
JSF:JAVADOC:1171voidjakarta.faces.context.ExternalContext.responseFlushBuffer
-
Flushes - the buffered response content to the client. Servlet: This must be - performed by calling the jakarta.servlet.http.HttpServletResponse - flushBuffer method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1172voidjakarta.faces.context.ExternalContext.responseFlushBuffer
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1173voidjakarta.faces.context.ExternalContext.responseReset
-
Resets - the current response. Servlet: This must be performed by calling the - jakarta.servlet.http.HttpServletResponse reset method. The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1174voidjakarta.faces.context.ExternalContext.responseSendError
- - ( int ,
- String )
Sends - an HTTP status code with message. Servlet: This must be performed by - calling the jakarta.servlet.http.HttpServletResponse sendError method. - The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1175voidjakarta.faces.context.ExternalContext.responseSendError
- - ( int ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1176voidjakarta.faces.context.ExternalContext.setRequest
- - ( Object )
Set the - environment-specific request to be returned by subsequent calls to - #getRequest. This may be used to install a wrapper for the request. - The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1177voidjakarta.faces.context.ExternalContext.setRequestCharacterEncoding
- - ( String )
- Overrides the name of the character encoding used in the body of this - request. Calling this method after the request has been accessed will - have no no effect, unless a Reader or Stream has been obtained from - the request, in which case an IllegalStateException is thrown. - Servlet: This must call through to the jakarta.servlet.ServletRequest - method setCharacterEncoding(). The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1178voidjakarta.faces.context.ExternalContext.setRequestCharacterEncoding
- - ( String )
- throws UnsupportedEncodingException
-
if this - is not a valid encodingtrue
-
true
JSF:JAVADOC:1179voidjakarta.faces.context.ExternalContext.setResponse
- - ( Object )
Set the - environment-specific response to be returned by subsequent calls to - #getResponse. This may be used to install a wrapper for the response. - The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1180voidjakarta.faces.context.ExternalContext.setResponseBufferSize
- - ( int )
Set the - buffer size for the current response. Servlet: This must be performed - by calling the jakarta.servlet.http.HttpServletResponse setBufferSize - method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1181voidjakarta.faces.context.ExternalContext.setResponseCharacterEncoding
- - ( String )
Sets - the character encoding (MIME charset) of the response being sent to - the client, for example, to UTF-8. Servlet: This must call through to - the jakarta.servlet.ServletResponse method setCharacterEncoding(). The - default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1182voidjakarta.faces.context.ExternalContext.setResponseContentLength
- - ( int )
Set the - content length of the response. Servlet: This must be performed by - calling the jakarta.servlet.http.HttpServletResponse setContentLength - method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1183voidjakarta.faces.context.ExternalContext.setResponseContentType
- - ( String )
Sets - the content type of the response being sent to the client, if the - response has not been committed yet. Servlet: This must call - setContentType() on the underlying jakarta.servlet.ServletResponse - instance. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1184voidjakarta.faces.context.ExternalContext.setResponseHeader
- - ( String ,
- String )
Set the - response header with the given name and value. Servlet:This must be - performed by calling the jakarta.servlet.http.HttpServletResponse - setHeader method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1185voidjakarta.faces.context.ExternalContext.setResponseStatus
- - ( int )
Sets - the HTTP status code for the response. Servlet: This must be performed - by calling the jakarta.servlet.http.HttpServletResponse setStatus - method. The default implementation throws - UnsupportedOperationException and is provided for the sole purpose of - not breaking existing applications that extend this class. true
-
true
JSF:JAVADOC:1186ExternalContextFactoryjakarta.faces.context.ExternalContextFactory.ExternalContextFactory
-

-
true
-
true
JSF:JAVADOC:1187ExternalContextjakarta.faces.context.ExternalContextFactory.getExternalContext
- - ( Object ,
- Object ,
- Object )
Create - (if needed) and return an ExternalContext instance that is initialized - for the processing of the specified request and response objects, for - this web application. true
-
true
JSF:JAVADOC:1188ExternalContextjakarta.faces.context.ExternalContextFactory.getExternalContext
- - ( Object ,
- Object ,
- Object )
- throws FacesException
-
if a - ExternalContext cannot be constructed for the specified parameterstrue
-
true
JSF:JAVADOC:1189ExternalContextjakarta.faces.context.ExternalContextFactory.getExternalContext
- - ( Object ,
- Object ,
- Object )
- throws NullPointerException
-
if any - of the parameters are nulltrue
-
true
JSF:JAVADOC:1190ExternalContextFactoryjakarta.faces.context.ExternalContextFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:1191voidjakarta.faces.context.ExternalContextWrapper.addResponseCookie
- - ( String ,
- String ,
- Map )
The - default behavior of this method is to call - ExternalContext#addResponseCookie(String, String, Map) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1192voidjakarta.faces.context.ExternalContextWrapper.addResponseHeader
- - ( String ,
- String )
The - default behavior of this method is to call - ExternalContext#addResponseHeader(String,String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1193voidjakarta.faces.context.ExternalContextWrapper.dispatch
- - ( String )
The - default behavior of this method is to call - ExternalContext#dispatch(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1194voidjakarta.faces.context.ExternalContextWrapper.dispatch
- - ( String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1195Stringjakarta.faces.context.ExternalContextWrapper.encodeActionURL
- - ( String )
The - default behavior of this method is to call - ExternalContext#encodeActionURL(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1196Stringjakarta.faces.context.ExternalContextWrapper.encodeBookmarkableURL
- - ( String ,
- Map )
The - default behavior of this method is to call - jakarta.faces.context.ExternalContext#encodeBookmarkableURL(String, - java.util.Map) on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1197Stringjakarta.faces.context.ExternalContextWrapper.encodeNamespace
- - ( String )
The - default behavior of this method is to call - ExternalContext#encodeNamespace(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1198Stringjakarta.faces.context.ExternalContextWrapper.encodePartialActionURL
- - ( String )
Return - the input URL, after performing any rewriting needed to ensure that it - can be used in a partial page submission (ajax request) to correctly - identify an addressable action in the current application. - - Servlet:Returns the same encoded URL as the #encodeActionURL(String - url) method. Portlet:Returns an encoded URL that, upon HTTP POST, will - invoke the RESOURCE_PHASE of the portlet lifecycle. true
-
true
JSF:JAVADOC:1199Stringjakarta.faces.context.ExternalContextWrapper.encodePartialActionURL
- - ( String )
- throws NullPointerException
-
if url - is nulltrue
-
true
JSF:JAVADOC:1200Stringjakarta.faces.context.ExternalContextWrapper.encodeRedirectURL
- - ( String ,
- Map )
The - default behavior of this method is to call - jakarta.faces.context.ExternalContext#encodeRedirectURL(String, - java.util.Map) on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1201Stringjakarta.faces.context.ExternalContextWrapper.encodeResourceURL
- - ( String )
The - default behavior of this method is to call - ExternalContext#encodeResourceURL(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1202ExternalContextWrapperjakarta.faces.context.ExternalContextWrapper.ExternalContextWrapper
-

-
true
-
true
JSF:JAVADOC:1203Mapjakarta.faces.context.ExternalContextWrapper.getApplicationMap
-
The - default behavior of this method is to call - ExternalContext#getApplicationMap on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1204Stringjakarta.faces.context.ExternalContextWrapper.getAuthType
-
The - default behavior of this method is to call ExternalContext#getAuthType - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1205Objectjakarta.faces.context.ExternalContextWrapper.getContext
-
The - default behavior of this method is to call ExternalContext#getContext - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1206Stringjakarta.faces.context.ExternalContextWrapper.getContextName
-
The - default behavior of this method is to call - ExternalContext#getContextName on the wrapped ExternalContext object. - - - true
-
true
JSF:JAVADOC:1207Flashjakarta.faces.context.ExternalContextWrapper.getFlash
-
The - default behavior of this method is to call ExternalContext#getFlash() - on the wrapped ExternalContext object.</p? true
-
true
JSF:JAVADOC:1208Stringjakarta.faces.context.ExternalContextWrapper.getInitParameter
- - ( String )
The - default behavior of this method is to call - ExternalContext#getInitParameter(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1209Mapjakarta.faces.context.ExternalContextWrapper.getInitParameterMap
-
The - default behavior of this method is to call - ExternalContext#getInitParameterMap on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1210Stringjakarta.faces.context.ExternalContextWrapper.getMimeType
- - ( String )
The - default behavior of this method is to call - ExternalContext#getMimeType(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1211Stringjakarta.faces.context.ExternalContextWrapper.getRealPath
- - ( String )
The - default behavior of this method is to call - ExternalContext#getRealPath(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1212Stringjakarta.faces.context.ExternalContextWrapper.getRemoteUser
-
The - default behavior of this method is to call - ExternalContext#getRemoteUser on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1213Objectjakarta.faces.context.ExternalContextWrapper.getRequest
-
The - default behavior of this method is to call ExternalContext#getRequest - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1214Stringjakarta.faces.context.ExternalContextWrapper.getRequestCharacterEncoding
-
The - default behavior of this method is to call - ExternalContext#getRequestCharacterEncoding on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1215intjakarta.faces.context.ExternalContextWrapper.getRequestContentLength
-
The - default behavior of this method is to call - ExternalContext#getRequestContentLength on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1216Stringjakarta.faces.context.ExternalContextWrapper.getRequestContentType
-
The - default behavior of this method is to call - ExternalContext#getRequestContentType on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1217Stringjakarta.faces.context.ExternalContextWrapper.getRequestContextPath
-
The - default behavior of this method is to call - ExternalContext#getRequestContextPath on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1218Mapjakarta.faces.context.ExternalContextWrapper.getRequestCookieMap
-
The - default behavior of this method is to call - ExternalContext#getRequestCookieMap on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1219Mapjakarta.faces.context.ExternalContextWrapper.getRequestHeaderMap
-
The - default behavior of this method is to call - ExternalContext#getRequestHeaderMap on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1220Mapjakarta.faces.context.ExternalContextWrapper.getRequestHeaderValuesMap
-
The - default behavior of this method is to call - ExternalContext#getRequestHeaderValuesMap on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1221Localejakarta.faces.context.ExternalContextWrapper.getRequestLocale
-
The - default behavior of this method is to call - ExternalContext#getRequestLocale on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1222Iteratorjakarta.faces.context.ExternalContextWrapper.getRequestLocales
-
The - default behavior of this method is to call - ExternalContext#getRequestLocales on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1223Mapjakarta.faces.context.ExternalContextWrapper.getRequestMap
-
The - default behavior of this method is to call - ExternalContext#getRequestMap on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1224Mapjakarta.faces.context.ExternalContextWrapper.getRequestParameterMap
-
The - default behavior of this method is to call - ExternalContext#getRequestParameterMap on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1225Iteratorjakarta.faces.context.ExternalContextWrapper.getRequestParameterNames
-
The - default behavior of this method is to call - ExternalContext#getRequestParameterNames on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1226Mapjakarta.faces.context.ExternalContextWrapper.getRequestParameterValuesMap
-
The - default behavior of this method is to call - ExternalContext#getRequestParameterValuesMap on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1227Stringjakarta.faces.context.ExternalContextWrapper.getRequestPathInfo
-
The - default behavior of this method is to call - ExternalContext#getRequestPathInfo on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1228Stringjakarta.faces.context.ExternalContextWrapper.getRequestScheme
-
The - default behavior of this method is to call - ExternalContext#getRequestScheme on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1229Stringjakarta.faces.context.ExternalContextWrapper.getRequestServerName
-
The - default behavior of this method is to call - ExternalContext#getRequestServerName on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1230intjakarta.faces.context.ExternalContextWrapper.getRequestServerPort
-
The - default behavior of this method is to call - ExternalContext#getRequestServerPort on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1231Stringjakarta.faces.context.ExternalContextWrapper.getRequestServletPath
-
The - default behavior of this method is to call - ExternalContext#getRequestServletPath on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1232URLjakarta.faces.context.ExternalContextWrapper.getResource
- - ( String )
The - default behavior of this method is to call - ExternalContext#getResource(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1233URLjakarta.faces.context.ExternalContextWrapper.getResource
- - ( String )
- throws MalformedURLException
-

-
true
-
true
JSF:JAVADOC:1234InputStreamjakarta.faces.context.ExternalContextWrapper.getResourceAsStream
- - ( String )
The - default behavior of this method is to call - ExternalContext#getResourceAsStream(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1235Setjakarta.faces.context.ExternalContextWrapper.getResourcePaths
- - ( String )
The - default behavior of this method is to call - ExternalContext#getResourcePaths(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1236Objectjakarta.faces.context.ExternalContextWrapper.getResponse
-
The - default behavior of this method is to call ExternalContext#getResponse - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1237intjakarta.faces.context.ExternalContextWrapper.getResponseBufferSize
-
The - default behavior of this method is to call - ExternalContext#getResponseBufferSize() on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1238Stringjakarta.faces.context.ExternalContextWrapper.getResponseCharacterEncoding
-
The - default behavior of this method is to call - ExternalContext#getResponseCharacterEncoding on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1239Stringjakarta.faces.context.ExternalContextWrapper.getResponseContentType
-
The - default behavior of this method is to call - ExternalContext#getResponseContentType on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1240OutputStreamjakarta.faces.context.ExternalContextWrapper.getResponseOutputStream
-
The - default behavior of this method is to call - ExternalContext#getResponseOutputStream on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1241OutputStreamjakarta.faces.context.ExternalContextWrapper.getResponseOutputStream
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1242Writerjakarta.faces.context.ExternalContextWrapper.getResponseOutputWriter
-
The - default behavior of this method is to call - ExternalContext#getResponseOutputWriter on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1243Writerjakarta.faces.context.ExternalContextWrapper.getResponseOutputWriter
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1244Objectjakarta.faces.context.ExternalContextWrapper.getSession
- - ( boolean )
The - default behavior of this method is to call - ExternalContext#getSession(boolean) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1245Mapjakarta.faces.context.ExternalContextWrapper.getSessionMap
-
The - default behavior of this method is to call ExternalContext#getAuthType - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1246Principaljakarta.faces.context.ExternalContextWrapper.getUserPrincipal
-
The - default behavior of this method is to call - ExternalContext#getUserPrincipal on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1247ExternalContextjakarta.faces.context.ExternalContextWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1248voidjakarta.faces.context.ExternalContextWrapper.invalidateSession
-
The - default behavior of this method is to call - ExternalContext#invalidateSession on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1249booleanjakarta.faces.context.ExternalContextWrapper.isResponseCommitted
-
The - default behavior of this method is to call - ExternalContext#isResponseCommitted() on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1250booleanjakarta.faces.context.ExternalContextWrapper.isUserInRole
- - ( String )
The - default behavior of this method is to call - ExternalContext#isUserInRole(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1251voidjakarta.faces.context.ExternalContextWrapper.log
- - ( String )
The - default behavior of this method is to call ExternalContext#log(String) - on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1252voidjakarta.faces.context.ExternalContextWrapper.log
- - ( String ,
- Throwable )
The - default behavior of this method is to call ExternalContext#log(String, - Throwable) on the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1253voidjakarta.faces.context.ExternalContextWrapper.redirect
- - ( String )
The - default behavior of this method is to call - ExternalContext#redirect(String) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1254voidjakarta.faces.context.ExternalContextWrapper.redirect
- - ( String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1255voidjakarta.faces.context.ExternalContextWrapper.responseFlushBuffer
-
The - default behavior of this method is to call - jakarta.faces.context.ExternalContext#responseFlushBuffer() on the - wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1256voidjakarta.faces.context.ExternalContextWrapper.responseFlushBuffer
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1257voidjakarta.faces.context.ExternalContextWrapper.responseReset
-
The - default behavior of this method is to call - ExternalContext#responseReset() on the wrapped ExternalContext object. - - - true
-
true
JSF:JAVADOC:1258voidjakarta.faces.context.ExternalContextWrapper.responseSendError
- - ( int ,
- String )
The - default behavior of this method is to call - ExternalContext#responseSendError(int,String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1259voidjakarta.faces.context.ExternalContextWrapper.responseSendError
- - ( int ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1260voidjakarta.faces.context.ExternalContextWrapper.setRequest
- - ( Object )
The - default behavior of this method is to call - ExternalContext#setRequest(Object) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1261voidjakarta.faces.context.ExternalContextWrapper.setRequestCharacterEncoding
- - ( String )
The - default behavior of this method is to call - ExternalContext#setRequestCharacterEncoding(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1262voidjakarta.faces.context.ExternalContextWrapper.setRequestCharacterEncoding
- - ( String )
- throws UnsupportedEncodingException
-

-
true
-
true
JSF:JAVADOC:1263voidjakarta.faces.context.ExternalContextWrapper.setResponse
- - ( Object )
The - default behavior of this method is to call - ExternalContext#setResponse(Object) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1264voidjakarta.faces.context.ExternalContextWrapper.setResponseBufferSize
- - ( int )
The - default behavior of this method is to call - ExternalContext#setResponseBufferSize(int) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1265voidjakarta.faces.context.ExternalContextWrapper.setResponseCharacterEncoding
- - ( String )
The - default behavior of this method is to call - ExternalContext#getResponseCharacterEncoding on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1266voidjakarta.faces.context.ExternalContextWrapper.setResponseContentLength
- - ( int )
The - default behavior of this method is to call - jakarta.faces.context.ExternalContext#setResponseContentLength(int) on - the wrapped ExternalContext object. true
-
true
JSF:JAVADOC:1267voidjakarta.faces.context.ExternalContextWrapper.setResponseContentType
- - ( String )
The - default behavior of this method is to call - ExternalContext#setResponseContentType(String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1268voidjakarta.faces.context.ExternalContextWrapper.setResponseHeader
- - ( String ,
- String )
The - default behavior of this method is to call - ExternalContext#setResponseHeader(String,String) on the wrapped - ExternalContext object. true
-
true
JSF:JAVADOC:1269voidjakarta.faces.context.ExternalContextWrapper.setResponseStatus
- - ( int )
The - default behavior of this method is to call - ExternalContext#setResponseStatus(int) on the wrapped ExternalContext - object. true
-
true
JSF:JAVADOC:1270voidjakarta.faces.context.FacesContext.addMessage
- - ( String ,
- FacesMessage )
Append - a jakarta.faces.application.FacesMessage to the set of messages - associated with the specified client identifier, if clientId is not - null. If clientId is null, this jakarta.faces.application.FacesMessage - is assumed to not be associated with any specific component instance. - true
-
true
JSF:JAVADOC:1271voidjakarta.faces.context.FacesContext.addMessage
- - ( String ,
- FacesMessage )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1272voidjakarta.faces.context.FacesContext.addMessage
- - ( String ,
- FacesMessage )
- throws NullPointerException
-
if - message is nulltrue
-
true
JSF:JAVADOC:1273FacesContextjakarta.faces.context.FacesContext.FacesContext
-

-
true
-
true
JSF:JAVADOC:1274Applicationjakarta.faces.context.FacesContext.getApplication
-
Return - the Application instance associated with this web application. It is - valid to call this method during application startup or shutdown. If - called during application startup or shutdown, returns the correct - current jakarta.faces.application.Application instance. true
-
true
JSF:JAVADOC:1275Applicationjakarta.faces.context.FacesContext.getApplication
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1276Mapjakarta.faces.context.FacesContext.getAttributes
-
Return - a mutable Map representing the attributes associated wth this - FacesContext instance. This Map is useful to store attributes that you - want to go out of scope when the Faces lifecycle for the current - request ends, which is not always the same as the request ending, - especially in the case of Servlet filters that are invoked after the - Faces lifecycle for this request completes. Accessing this Map does - not cause any events to fire, as is the case with the other maps: for - request, session, and application scope. When #release() is invoked, - the attributes must be cleared. The Map returned by this method is not - associated with the request. If you would like to get or set request - attributes, see ExternalContext#getRequestMap. The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1277Mapjakarta.faces.context.FacesContext.getAttributes
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1278Iteratorjakarta.faces.context.FacesContext.getClientIdsWithMessages
-
Return - an Iterator over the client identifiers for which at least one - jakarta.faces.application.FacesMessage has been queued. If there are no - such client identifiers, an empty Iterator is returned. If any - messages have been queued that were not associated with any specific - client identifier, a null value will be included in the iterated - values. The elements in the Iterator must be returned in the order in - which they were added with #addMessage. true
-
true
JSF:JAVADOC:1279Iteratorjakarta.faces.context.FacesContext.getClientIdsWithMessages
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1280FacesContextjakarta.faces.context.FacesContext.getCurrentInstance
-
Return - the FacesContext instance for the request that is being processed by - the current thread. If called during application initialization or - shutdown, any method documented as "valid to call this method during - application startup or shutdown" must be supported during application - startup or shutdown time. The result of calling a method during - application startup or shutdown time that does not have this - designation is undefined. true
-
true
JSF:JAVADOC:1281PhaseIdjakarta.faces.context.FacesContext.getCurrentPhaseId
-
Return - the value last set on this FacesContext instance when - #setCurrentPhaseId was called. true
-
true
JSF:JAVADOC:1282PhaseIdjakarta.faces.context.FacesContext.getCurrentPhaseId
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1283ELContextjakarta.faces.context.FacesContext.getELContext
-
Return - the ELContext instance for this FacesContext instance. This ELContext - instance has the same lifetime and scope as the FacesContext instance - with which it is associated, and may be created lazily the first time - this method is called for a given FacesContext instance. Upon creation - of the ELContext instance, the implementation must take the following - action: Call the ELContext#putContext method on the instance, passing - in FacesContext.class and the this reference for the FacesContext - instance itself. If the Collection returned by - jakarta.faces.application.Application#getELContextListeners is - non-empty, create an instance of jakarta.el.ELContextEvent and pass it - to each jakarta.el.ELContextListener instance in the Collection by - calling the jakarta.el.ELContextListener#contextCreated method. true
-
true
JSF:JAVADOC:1284ELContextjakarta.faces.context.FacesContext.getELContext
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1285ExceptionHandlerjakarta.faces.context.FacesContext.getExceptionHandler
-
Return - the ExceptionHandler for this request. true
-
true
JSF:JAVADOC:1286ExternalContextjakarta.faces.context.FacesContext.getExternalContext
-
Return - the ExternalContext instance for this FacesContext instance. It is - valid to call this method during application startup or shutdown. If - called during application startup or shutdown, this method returns an - ExternalContext instance with the special behaviors indicated in the - javadoc for that class. Methods document as being valid to call during - application startup or shutdown must be supported. true
-
true
JSF:JAVADOC:1287ExternalContextjakarta.faces.context.FacesContext.getExternalContext
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1288Severityjakarta.faces.context.FacesContext.getMaximumSeverity
-
Return - the maximum severity level recorded on any - jakarta.faces.application.FacesMessages that has been queued, whether or - not they are associated with any specific UIComponent. If no such - messages have been queued, return null. true
-
true
JSF:JAVADOC:1289Severityjakarta.faces.context.FacesContext.getMaximumSeverity
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1290Listjakarta.faces.context.FacesContext.getMessageList
-
Like - #getMessages, but returns a List, enabling use from EL expressions. - The default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1291Listjakarta.faces.context.FacesContext.getMessageList
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1292Listjakarta.faces.context.FacesContext.getMessageList
- - ( String )
Like - #getMessages(java.lang.String), but returns a List of messages for the - component with client id matching argument clientId. The default - implementation throws UnsupportedOperationException and is provided - for the sole purpose of not breaking existing applications that extend - this class. true
-
true
JSF:JAVADOC:1293Listjakarta.faces.context.FacesContext.getMessageList
- - ( String )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1294Iteratorjakarta.faces.context.FacesContext.getMessages
-
Return - an Iterator over the jakarta.faces.application.FacesMessages that have - been queued, whether or not they are associated with any specific - client identifier. If no such messages have been queued, return an - empty Iterator. The elements of the Iterator must be returned in the - order in which they were added with calls to #addMessage. true
-
true
JSF:JAVADOC:1295Iteratorjakarta.faces.context.FacesContext.getMessages
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1296Iteratorjakarta.faces.context.FacesContext.getMessages
- - ( String )
Return - an Iterator over the jakarta.faces.application.FacesMessages that have - been queued that are associated with the specified client identifier - (if clientId is not null), or over the - jakarta.faces.application.FacesMessages that have been queued that are - not associated with any specific client identifier (if clientId is - null). If no such messages have been queued, return an empty Iterator. - The elements of the Iterator must be returned in the order in which - they were added with calls to #addMessage. true
-
true
JSF:JAVADOC:1297Iteratorjakarta.faces.context.FacesContext.getMessages
- - ( String )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1298PartialViewContextjakarta.faces.context.FacesContext.getPartialViewContext
-
Return - the PartialViewContext for this request. The PartialViewContext is - used to control the processing of specified components during the - execute portion of the request processing lifecycle (known as partial - processing) and the rendering of specified components (known as - partial rendering). This method must return a new PartialViewContext - if one does not already exist. true
-
true
JSF:JAVADOC:1299PartialViewContextjakarta.faces.context.FacesContext.getPartialViewContext
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1300RenderKitjakarta.faces.context.FacesContext.getRenderKit
-
Return - the RenderKit instance for the render kit identifier specified on our - UIViewRoot, if there is one. If there is no current UIViewRoot, if the - UIViewRoot does not have a specified renderKitId, or if there is no - RenderKit for the specified identifier, return null instead. true
-
true
JSF:JAVADOC:1301RenderKitjakarta.faces.context.FacesContext.getRenderKit
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1302booleanjakarta.faces.context.FacesContext.getRenderResponse
-
Return - true if the renderResponse() method has been called for the current - request. true
-
true
JSF:JAVADOC:1303booleanjakarta.faces.context.FacesContext.getRenderResponse
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1304booleanjakarta.faces.context.FacesContext.getResponseComplete
-
Return - true if the responseComplete() method has been called for the current - request. true
-
true
JSF:JAVADOC:1305booleanjakarta.faces.context.FacesContext.getResponseComplete
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1306ResponseStreamjakarta.faces.context.FacesContext.getResponseStream
-
Return - the ResponseStream to which components should direct their binary - output. Within a given response, components can use either the - ResponseStream or the ResponseWriter, but not both. true
-
true
JSF:JAVADOC:1307ResponseStreamjakarta.faces.context.FacesContext.getResponseStream
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1308ResponseWriterjakarta.faces.context.FacesContext.getResponseWriter
-
Return - the ResponseWriter to which components should direct their - character-based output. Within a given response, components can use - either the ResponseStream or the ResponseWriter, but not both. true
-
true
JSF:JAVADOC:1309ResponseWriterjakarta.faces.context.FacesContext.getResponseWriter
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1310UIViewRootjakarta.faces.context.FacesContext.getViewRoot
-
Return - the root component that is associated with the this request. It is - valid to call this method during application startup or shutdown. If - called during application startup or shutdown, this method returns a - new UIViewRoot with its locale set to Locale.getDefault(). true
-
true
JSF:JAVADOC:1311UIViewRootjakarta.faces.context.FacesContext.getViewRoot
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1312booleanjakarta.faces.context.FacesContext.isPostback
-
This - utility method simply returns the result of - jakarta.faces.render.ResponseStateManager#isPostback(FacesContext). The - default implementation throws UnsupportedOperationException and is - provided for the sole purpose of not breaking existing applications - that extend this class. true
-
true
JSF:JAVADOC:1313booleanjakarta.faces.context.FacesContext.isPostback
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1314booleanjakarta.faces.context.FacesContext.isProcessingEvents
-
Returns - a flag indicating whether or not the runtime should publish events - when asked to do so. true
-
true
JSF:JAVADOC:1315booleanjakarta.faces.context.FacesContext.isProjectStage
- - ( ProjectStage )
Return - true if the current ProjectStage as returned by the Application - instance is equal to stage, otherwise return false true
-
true
JSF:JAVADOC:1316booleanjakarta.faces.context.FacesContext.isProjectStage
- - ( ProjectStage )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1317booleanjakarta.faces.context.FacesContext.isProjectStage
- - ( ProjectStage )
- throws NullPointerException
-
if stage - is nulltrue
-
true
JSF:JAVADOC:1318booleanjakarta.faces.context.FacesContext.isValidationFailed
-
Return - true if the validationFailed() method has been called for the current - request. true
-
true
JSF:JAVADOC:1319booleanjakarta.faces.context.FacesContext.isValidationFailed
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1320voidjakarta.faces.context.FacesContext.release
-
Release - any resources associated with this FacesContext instance. Faces - implementations may choose to pool instances in the associated - FacesContextFactory to avoid repeated object creation and garbage - collection. After release() is called on a FacesContext instance - (until the FacesContext instance has been recycled by the - implementation for re-use), calling any other methods will cause an - IllegalStateException to be thrown. If a call was made to - #getAttributes during the processing for this request, the - implementation must call clear() on the Map returned from - getAttributes(), and then de-allocate the data-structure behind that - Map. The implementation must call #setCurrentInstance passing null to - remove the association between this thread and this dead FacesContext - instance. true
-
true
JSF:JAVADOC:1321voidjakarta.faces.context.FacesContext.release
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1322voidjakarta.faces.context.FacesContext.renderResponse
-
Signal - the Jakarta Server faces implementation that, as soon as the current phase - of the request processing lifecycle has been completed, control should - be passed to the Render Response phase, bypassing any phases that have - not been executed yet. true
-
true
JSF:JAVADOC:1323voidjakarta.faces.context.FacesContext.renderResponse
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1324voidjakarta.faces.context.FacesContext.responseComplete
-
Signal - the Jakarta Server Faces implementation that the HTTP response for this - request has already been generated (such as an HTTP redirect), and - that the request processing lifecycle should be terminated as soon as - the current phase is completed. true
-
true
JSF:JAVADOC:1325voidjakarta.faces.context.FacesContext.responseComplete
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1326voidjakarta.faces.context.FacesContext.setCurrentPhaseId
- - ( PhaseId )
The - implementation must call this method at the earliest possble point in - time after entering into a new phase in the request processing - lifecycle. true
-
true
JSF:JAVADOC:1327voidjakarta.faces.context.FacesContext.setCurrentPhaseId
- - ( PhaseId )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1328voidjakarta.faces.context.FacesContext.setExceptionHandler
- - ( ExceptionHandler )
Set the - ExceptionHandler for this request. true
-
true
JSF:JAVADOC:1329voidjakarta.faces.context.FacesContext.setProcessingEvents
- - ( boolean )
Allows - control of wheter or not the runtime will publish events when - Application#publishEvent(FacesContext, Class, Object) or - Application#publishEvent(FacesContext, Class, Class, Object) is - called. true
-
true
JSF:JAVADOC:1330voidjakarta.faces.context.FacesContext.setResponseStream
- - ( ResponseStream )
Set the - ResponseStream to which components should direct their binary output. - true
-
true
JSF:JAVADOC:1331voidjakarta.faces.context.FacesContext.setResponseStream
- - ( ResponseStream )
- throws NullPointerException
-
if - responseStream is nulltrue
-
true
JSF:JAVADOC:1332voidjakarta.faces.context.FacesContext.setResponseStream
- - ( ResponseStream )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1333voidjakarta.faces.context.FacesContext.setResponseWriter
- - ( ResponseWriter )
Set the - ResponseWriter to which components should direct their character-based - output. true
-
true
JSF:JAVADOC:1334voidjakarta.faces.context.FacesContext.setResponseWriter
- - ( ResponseWriter )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1335voidjakarta.faces.context.FacesContext.setResponseWriter
- - ( ResponseWriter )
- throws NullPointerException
-
if - responseWriter is nulltrue
-
true
JSF:JAVADOC:1336voidjakarta.faces.context.FacesContext.setViewRoot
- - ( UIViewRoot )
Set the - root component that is associated with this request. This method can - only be called by the application handler (or a class that the handler - calls), and only during the Invoke Application phase of the request - processing lifecycle. If the current UIViewRoot is non-null, and - calling equals() on the argument root, passing the current UIViewRoot - returns false, the clear method must be called on the Map returned - from UIViewRoot#getViewMap. true
-
true
JSF:JAVADOC:1337voidjakarta.faces.context.FacesContext.setViewRoot
- - ( UIViewRoot )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1338voidjakarta.faces.context.FacesContext.setViewRoot
- - ( UIViewRoot )
- throws NullPointerException
-
if root - is nulltrue
-
true
JSF:JAVADOC:1339voidjakarta.faces.context.FacesContext.validationFailed
-
Sets a - flag which indicates that a conversion or validation error occurred - while processing the inputs. Inputs consist of either page parameters - or form bindings. This flag can be read using #isValidationFailed. true
-
true
JSF:JAVADOC:1340voidjakarta.faces.context.FacesContext.validationFailed
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1341FacesContextFactoryjakarta.faces.context.FacesContextFactory.FacesContextFactory
-

-
true
-
true
JSF:JAVADOC:1342FacesContextjakarta.faces.context.FacesContextFactory.getFacesContext
- - ( Object ,
- Object ,
- Object ,
- Lifecycle )
Create - (if needed) and return a FacesContext instance that is initialized for - the processing of the specified request and response objects, - utilizing the specified Lifecycle instance, for this web application. - - - - - - - - The implementation of this method must ensure that calls to the - getCurrentInstance() method of FacesContext, from the same thread that - called this method, will return the same FacesContext instance until - the release() method is called on that instance. The implementation - must call ExternalContextFactory#getExternalContext to produce the - ExternalContext for the FacesContext instance. The default - implementation must call ExceptionHandlerFactory#getExceptionHandler - and make it so the return from that method is what gets returned from - a call to FacesContext#getExceptionHandler on the returned - FacesContext instance. true
-
true
JSF:JAVADOC:1343FacesContextjakarta.faces.context.FacesContextFactory.getFacesContext
- - ( Object ,
- Object ,
- Object ,
- Lifecycle )
- throws FacesException
-
if a - FacesContext cannot be constructed for the specified parameterstrue
-
true
JSF:JAVADOC:1344FacesContextjakarta.faces.context.FacesContextFactory.getFacesContext
- - ( Object ,
- Object ,
- Object ,
- Lifecycle )
- throws NullPointerException
-
if any - of the parameters are nulltrue
-
true
JSF:JAVADOC:1345FacesContextFactoryjakarta.faces.context.FacesContextFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:1346voidjakarta.faces.context.FacesContextWrapper.addMessage
- - ( String ,
- FacesMessage )
The - default behavior of this method is to call - FacesContext#addMessage(String, FacesMessage) on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1347FacesContextWrapperjakarta.faces.context.FacesContextWrapper.FacesContextWrapper
-

-
true
-
true
JSF:JAVADOC:1348Applicationjakarta.faces.context.FacesContextWrapper.getApplication
-
The - default behavior of this method is to call - FacesContext#getApplication() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1349Mapjakarta.faces.context.FacesContextWrapper.getAttributes
-
The - default behavior of this method is to call - FacesContext#getAttributes() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1350Iteratorjakarta.faces.context.FacesContextWrapper.getClientIdsWithMessages
-
The - default behavior of this method is to call - jakarta.faces.context.FacesContext#getClientIdsWithMessages() on the - wrapped FacesContext object. true
-
true
JSF:JAVADOC:1351PhaseIdjakarta.faces.context.FacesContextWrapper.getCurrentPhaseId
-
The - default behavior of this method is to call - FacesContext#getCurrentPhaseId() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1352ELContextjakarta.faces.context.FacesContextWrapper.getELContext
-
The - default behavior of this method is to call FacesContext#getELContext() - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1353ExceptionHandlerjakarta.faces.context.FacesContextWrapper.getExceptionHandler
-
The - default behavior of this method is to call - FacesContext#getExceptionHandler() on the wrapped FacesContext object. - - - true
-
true
JSF:JAVADOC:1354ExternalContextjakarta.faces.context.FacesContextWrapper.getExternalContext
-
The - default behavior of this method is to call - FacesContext#getExternalContext() on the wrapped FacesContext object. - - - true
-
true
JSF:JAVADOC:1355Severityjakarta.faces.context.FacesContextWrapper.getMaximumSeverity
-
The - default behavior of this method is to call - FacesContext#getMaximumSeverity() on the wrapped FacesContext object. - - - true
-
true
JSF:JAVADOC:1356Listjakarta.faces.context.FacesContextWrapper.getMessageList
-
The - default behavior of this method is to call - FacesContext#getMessageList() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1357Listjakarta.faces.context.FacesContextWrapper.getMessageList
- - ( String )
The - default behavior of this method is to call - FacesContext#getMessageList(String) on the wrapped FacesContext - object. true
-
true
JSF:JAVADOC:1358Iteratorjakarta.faces.context.FacesContextWrapper.getMessages
-
The - default behavior of this method is to call FacesContext#getMessages() - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1359Iteratorjakarta.faces.context.FacesContextWrapper.getMessages
- - ( String )
The - default behavior of this method is to call - FacesContext#getMessages(String) on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1360PartialViewContextjakarta.faces.context.FacesContextWrapper.getPartialViewContext
-
The - default behavior of this method is to call - FacesContext#getPartialViewContext() ()} on the wrapped FacesContext - object. true
-
true
JSF:JAVADOC:1361RenderKitjakarta.faces.context.FacesContextWrapper.getRenderKit
-
The - default behavior of this method is to call FacesContext#getRenderKit() - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1362booleanjakarta.faces.context.FacesContextWrapper.getRenderResponse
-
The - default behavior of this method is to call - FacesContext#getRenderResponse() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1363booleanjakarta.faces.context.FacesContextWrapper.getResponseComplete
-
The - default behavior of this method is to call - FacesContext#getResponseComplete() on the wrapped FacesContext object. - - - true
-
true
JSF:JAVADOC:1364ResponseStreamjakarta.faces.context.FacesContextWrapper.getResponseStream
-
The - default behavior of this method is to call - FacesContext#getResponseStream() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1365ResponseWriterjakarta.faces.context.FacesContextWrapper.getResponseWriter
-
The - default behavior of this method is to call - FacesContext#getResponseWriter() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1366UIViewRootjakarta.faces.context.FacesContextWrapper.getViewRoot
-
The - default behavior of this method is to call FacesContext#getViewRoot() - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1367FacesContextjakarta.faces.context.FacesContextWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1368booleanjakarta.faces.context.FacesContextWrapper.isPostback
-
The - default behavior of this method is to call FacesContext#isPostback() - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1369booleanjakarta.faces.context.FacesContextWrapper.isProcessingEvents
-
The - default behavior of this method is to call - jakarta.faces.context.FacesContext#isProcessingEvents() on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1370booleanjakarta.faces.context.FacesContextWrapper.isProjectStage
- - ( ProjectStage )
The - default behavior of this method is to call - jakarta.faces.context.FacesContext#isProjectStage(jakarta.faces.application.ProjectStage) - on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1371booleanjakarta.faces.context.FacesContextWrapper.isValidationFailed
-
The - default behavior of this method is to call - jakarta.faces.context.FacesContext#isValidationFailed on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1372voidjakarta.faces.context.FacesContextWrapper.release
-
The - default behavior of this method is to call FacesContext#release() on - the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1373voidjakarta.faces.context.FacesContextWrapper.renderResponse
-
The - default behavior of this method is to call - FacesContext#renderResponse() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1374voidjakarta.faces.context.FacesContextWrapper.responseComplete
-
The - default behavior of this method is to call - FacesContext#responseComplete() on the wrapped FacesContext object. true
-
true
JSF:JAVADOC:1375voidjakarta.faces.context.FacesContextWrapper.setCurrentPhaseId
- - ( PhaseId )
The - default behavior of this method is to call - FacesContext#setCurrentPhaseId(PhaseId) on the wrapped FacesContext - object. true
-
true
JSF:JAVADOC:1376voidjakarta.faces.context.FacesContextWrapper.setExceptionHandler
- - ( ExceptionHandler )
The - default behavior of this method is to call - FacesContext#setExceptionHandler(ExceptionHandler) on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1377voidjakarta.faces.context.FacesContextWrapper.setProcessingEvents
- - ( boolean )
The - default behavior of this method is to call - FacesContext#setProcessingEvents(boolean) on the wrapped FacesContext - object. true
-
true
JSF:JAVADOC:1378voidjakarta.faces.context.FacesContextWrapper.setResponseStream
- - ( ResponseStream )
The - default behavior of this method is to call - FacesContext#setResponseStream(ResponseStream) on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1379voidjakarta.faces.context.FacesContextWrapper.setResponseWriter
- - ( ResponseWriter )
The - default behavior of this method is to call - FacesContext#setResponseWriter(ResponseWriter) on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1380voidjakarta.faces.context.FacesContextWrapper.setViewRoot
- - ( UIViewRoot )
The - default behavior of this method is to call - FacesContext#setViewRoot(UIViewRoot) on the wrapped FacesContext - object. true
-
true
JSF:JAVADOC:1381voidjakarta.faces.context.FacesContextWrapper.validationFailed
-
The - default behavior of this method is to call - jakarta.faces.context.FacesContext#validationFailed() on the wrapped - FacesContext object. true
-
true
JSF:JAVADOC:1382voidjakarta.faces.context.Flash.doPostPhaseActions
- - ( FacesContext )
Called - after the execution of every lifecycle phase, this method allows - implementations to take the necessary actions to provide the Flash - scope contract as it applies to the request procesing lifecycle. true
-
true
JSF:JAVADOC:1383voidjakarta.faces.context.Flash.doPrePhaseActions
- - ( FacesContext )
Called - before the execution of every lifecycle phase, this method allows - implementations to take the necessary actions to provide the Flash - scope contract as it applies to the request procesing lifecycle. true
-
true
JSF:JAVADOC:1384Flashjakarta.faces.context.Flash.Flash
-

-
true
-
true
JSF:JAVADOC:1385booleanjakarta.faces.context.Flash.isKeepMessages
-
Return - the value of this JavaBeans property for the flash for this session. - - - This value determines whether or not any - jakarta.faces.application.FacesMessage instances queued in the current - jakarta.faces.context.FacesContext must be preserved so they are - accessible on the next traversal of the lifecycle on this session, - regardless of the request being a redirect after post, or a normal - postback. Map accesses for the special key “keepMessages” - must return the value of this JavaBeans property. EL Usage Example - First page Next page Any messages present on the first page must be - displayed on this page. true
-
true
JSF:JAVADOC:1386booleanjakarta.faces.context.Flash.isRedirect
-
Return - the value of this property for the flash for this session. This must - be false unless: #setRedirect was called for the current lifecycle - traversal with true as the argument. The current lifecycle traversal - for this session is in the “execute” phase and the - previous traversal had #setRedirect called with true as the argument. - true
-
true
JSF:JAVADOC:1387voidjakarta.faces.context.Flash.keep
- - ( String )
Causes - a value stored with a previous call to #putNow, its EL equivalent, or - to the request Map, to be promoted to the flash so that is available - on the next traversal through the lifecycle on this session. true
-
true
JSF:JAVADOC:1388voidjakarta.faces.context.Flash.putNow
- - ( String ,
- Object )
Puts a - value in the flash so that it can be accessed on this traversal of the - lifecycle, rather than on the next traversal. This is simply an alias - for putting a value in the request map. EL Usage Example Value of - \#{flash.now.bar}, should be barValue. true
-
true
JSF:JAVADOC:1389voidjakarta.faces.context.Flash.setKeepMessages
- - ( boolean )
Setter - for keepMessages JavaBeans property. See #isKeepMessages. true
-
true
JSF:JAVADOC:1390voidjakarta.faces.context.Flash.setRedirect
- - ( boolean )
Setting - this property to true indicates that the next request on this session - will be a redirect. Recall that on a redirect, the server sends a - special response to the client instructing it to issue a new request - to a specific URI. The implementation must insure that reading the - value of this property on that request will return true. EL Usage - Example true
-
true
JSF:JAVADOC:1391voidjakarta.faces.context.PartialResponseWriter.delete
- - ( String )
Write a - delete operation. true
-
true
JSF:JAVADOC:1392voidjakarta.faces.context.PartialResponseWriter.delete
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1393voidjakarta.faces.context.PartialResponseWriter.endDocument
-
Write - the end of a partial response. true
-
true
JSF:JAVADOC:1394voidjakarta.faces.context.PartialResponseWriter.endDocument
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1395voidjakarta.faces.context.PartialResponseWriter.endError
-
Write - the end of an error. true
-
true
JSF:JAVADOC:1396voidjakarta.faces.context.PartialResponseWriter.endError
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1397voidjakarta.faces.context.PartialResponseWriter.endEval
-
Write - the end of an eval operation. true
-
true
JSF:JAVADOC:1398voidjakarta.faces.context.PartialResponseWriter.endEval
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1399voidjakarta.faces.context.PartialResponseWriter.endExtension
-
Write - the end of an extension operation. true
-
true
JSF:JAVADOC:1400voidjakarta.faces.context.PartialResponseWriter.endExtension
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1401voidjakarta.faces.context.PartialResponseWriter.endInsert
-
Write - the end of an insert operation. true
-
true
JSF:JAVADOC:1402voidjakarta.faces.context.PartialResponseWriter.endInsert
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1403voidjakarta.faces.context.PartialResponseWriter.endUpdate
-
Write - the end of an update operation. true
-
true
JSF:JAVADOC:1404voidjakarta.faces.context.PartialResponseWriter.endUpdate
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1405ResponseWriterjakarta.faces.context.PartialResponseWriter.getWrapped
-
Return - the wrapped ResponseWriter instance. true
-
true
JSF:JAVADOC:1406PartialResponseWriterjakarta.faces.context.PartialResponseWriter.PartialResponseWriter
- - ( ResponseWriter )
Create - a PartialResponseWriter. true
-
true
JSF:JAVADOC:1407voidjakarta.faces.context.PartialResponseWriter.redirect
- - ( String )
Write a - redirect operation. true
-
true
JSF:JAVADOC:1408voidjakarta.faces.context.PartialResponseWriter.redirect
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1409voidjakarta.faces.context.PartialResponseWriter.startDocument
-
Write - the start of a partial response. true
-
true
JSF:JAVADOC:1410voidjakarta.faces.context.PartialResponseWriter.startDocument
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1411voidjakarta.faces.context.PartialResponseWriter.startError
- - ( String )
Write - the start of an error. true
-
true
JSF:JAVADOC:1412voidjakarta.faces.context.PartialResponseWriter.startError
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1413voidjakarta.faces.context.PartialResponseWriter.startEval
-
Write - the start of an eval operation. true
-
true
JSF:JAVADOC:1414voidjakarta.faces.context.PartialResponseWriter.startEval
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1415voidjakarta.faces.context.PartialResponseWriter.startExtension
- - ( Map )
Write - the start of an extension operation. true
-
true
JSF:JAVADOC:1416voidjakarta.faces.context.PartialResponseWriter.startExtension
- - ( Map )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1417voidjakarta.faces.context.PartialResponseWriter.startInsertAfter
- - ( String )
Write - the start of an insert operation where the contents will be inserted - after the specified target node. true
-
true
JSF:JAVADOC:1418voidjakarta.faces.context.PartialResponseWriter.startInsertAfter
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1419voidjakarta.faces.context.PartialResponseWriter.startInsertBefore
- - ( String )
Write - the start of an insert operation where the contents will be inserted - before the specified target node. true
-
true
JSF:JAVADOC:1420voidjakarta.faces.context.PartialResponseWriter.startInsertBefore
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1421voidjakarta.faces.context.PartialResponseWriter.startUpdate
- - ( String )
Write - the start of an update operation. true
-
true
JSF:JAVADOC:1422voidjakarta.faces.context.PartialResponseWriter.startUpdate
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1423voidjakarta.faces.context.PartialResponseWriter.updateAttributes
- - ( String ,
- Map )
Write - an attribute update operation. true
-
true
JSF:JAVADOC:1424voidjakarta.faces.context.PartialResponseWriter.updateAttributes
- - ( String ,
- Map )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1425Collectionjakarta.faces.context.PartialViewContext.getExecuteIds
-
Return - a Collection of client identifiers from the current request with the - request parameter name #PARTIAL_EXECUTE_PARAM_NAME. If there is no - such request parameter, return an empty Collection. These client - identifiers are used to identify components that will be processed - during the execute phase of the request processing lifecycle. The - returned Collection is mutable. true
-
true
JSF:JAVADOC:1426Collectionjakarta.faces.context.PartialViewContext.getExecuteIds
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1427PartialResponseWriterjakarta.faces.context.PartialViewContext.getPartialResponseWriter
-
Return - the ResponseWriter to which components should direct their output for - partial view rendering. Within a given response, components can use - either the ResponseStream or the ResponseWriter, but not both. true
-
true
JSF:JAVADOC:1428PartialResponseWriterjakarta.faces.context.PartialViewContext.getPartialResponseWriter
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1429Collectionjakarta.faces.context.PartialViewContext.getRenderIds
-
Return - a Collection of client identifiers from the current request with the - request parameter name #PARTIAL_RENDER_PARAM_NAME. If there is no such - request parameter, return an empty Collection. These client - identifiers are used to identify components that will be processed - during the render phase of the request processing lifecycle. The - returned Collection is mutable. true
-
true
JSF:JAVADOC:1430Collectionjakarta.faces.context.PartialViewContext.getRenderIds
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1431booleanjakarta.faces.context.PartialViewContext.isAjaxRequest
-
Return - true if the request header Faces-Request is present with the value - partial/ajax. Otherwise, return false. true
-
true
JSF:JAVADOC:1432booleanjakarta.faces.context.PartialViewContext.isAjaxRequest
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1433booleanjakarta.faces.context.PartialViewContext.isExecuteAll
-
Return - true if #isAjaxRequest returns true and #PARTIAL_EXECUTE_PARAM_NAME is - present in the current request with the value - #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. true
-
true
JSF:JAVADOC:1434booleanjakarta.faces.context.PartialViewContext.isExecuteAll
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1435booleanjakarta.faces.context.PartialViewContext.isPartialRequest
-
Return - true #isAjaxRequest returns true or if the request header - Faces-Request is present with the value partial/process. Otherwise, - return false. true
-
true
JSF:JAVADOC:1436booleanjakarta.faces.context.PartialViewContext.isPartialRequest
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1437booleanjakarta.faces.context.PartialViewContext.isRenderAll
-
Return - true if #isAjaxRequest returns true and #PARTIAL_RENDER_PARAM_NAME is - present in the current request with the value - #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. true
-
true
JSF:JAVADOC:1438booleanjakarta.faces.context.PartialViewContext.isRenderAll
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1439PartialViewContextjakarta.faces.context.PartialViewContext.PartialViewContext
-

-
true
-
true
JSF:JAVADOC:1440voidjakarta.faces.context.PartialViewContext.processPartial
- - ( PhaseId )
Perform - lifecycle processing on components during the indicated phaseId. Only - those components with identifiers existing in the Collection returned - from #getExecuteIds and #getRenderIds will be processed. true
-
true
JSF:JAVADOC:1441voidjakarta.faces.context.PartialViewContext.release
-
Release - any resources associated with this PartialViewContext instance. true
-
true
JSF:JAVADOC:1442voidjakarta.faces.context.PartialViewContext.release
-
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1443voidjakarta.faces.context.PartialViewContext.setPartialRequest
- - ( boolean )
- Dynamically indicate that this is a partial request. true
-
true
JSF:JAVADOC:1444voidjakarta.faces.context.PartialViewContext.setPartialRequest
- - ( boolean )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1445voidjakarta.faces.context.PartialViewContext.setRenderAll
- - ( boolean )
- Indicate the entire view must be rendered if renderAll is true. true
-
true
JSF:JAVADOC:1446voidjakarta.faces.context.PartialViewContext.setRenderAll
- - ( boolean )
- throws IllegalStateException
-
if this - method is called after this instance has been releasedtrue
-
true
JSF:JAVADOC:1447PartialViewContextjakarta.faces.context.PartialViewContextFactory.getPartialViewContext
- - ( FacesContext )
Create - (if needed) and return a PartialViewContext instance that is - initialized using the current FacesContext instance. true
-
true
JSF:JAVADOC:1448PartialViewContextFactoryjakarta.faces.context.PartialViewContextFactory.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1449PartialViewContextFactoryjakarta.faces.context.PartialViewContextFactory.PartialViewContextFactory
-

-
true
-
true
JSF:JAVADOC:1450Collectionjakarta.faces.context.PartialViewContextWrapper.getExecuteIds
-
The - default behavior of this method is to call - PartialViewContext#getExecuteIds() on the wrapped PartialViewContext - object. true
-
true
JSF:JAVADOC:1451PartialResponseWriterjakarta.faces.context.PartialViewContextWrapper.getPartialResponseWriter
-
The - default behavior of this method is to call - PartialViewContext#getPartialResponseWriter() on the wrapped - PartialViewContext object. true
-
true
JSF:JAVADOC:1452Collectionjakarta.faces.context.PartialViewContextWrapper.getRenderIds
-
The - default behavior of this method is to call - PartialViewContext#getRenderIds() on the wrapped PartialViewContext - object. true
-
true
JSF:JAVADOC:1453PartialViewContextjakarta.faces.context.PartialViewContextWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:1454booleanjakarta.faces.context.PartialViewContextWrapper.isAjaxRequest
-
The - default behavior of this method is to call - PartialViewContext#isAjaxRequest() on the wrapped PartialViewContext - object. true
-
true
JSF:JAVADOC:1455booleanjakarta.faces.context.PartialViewContextWrapper.isExecuteAll
-
The - default behavior of this method is to call - PartialViewContext#isExecuteAll() on the wrapped PartialViewContext - object. true
-
true
JSF:JAVADOC:1456booleanjakarta.faces.context.PartialViewContextWrapper.isPartialRequest
-
The - default behavior of this method is to call - PartialViewContext#isPartialRequest() on the wrapped - PartialViewContext object. true
-
true
JSF:JAVADOC:1457booleanjakarta.faces.context.PartialViewContextWrapper.isRenderAll
-
The - default behavior of this method is to call - PartialViewContext#isRenderAll() on the wrapped PartialViewContext - object. true
-
true
JSF:JAVADOC:1458PartialViewContextWrapperjakarta.faces.context.PartialViewContextWrapper.PartialViewContextWrapper
-

-
true
-
true
JSF:JAVADOC:1459voidjakarta.faces.context.PartialViewContextWrapper.processPartial
- - ( PhaseId )
The - default behavior of this method is to call - PartialViewContext#processPartial(PhaseId) on the wrapped - PartialViewContext object. true
-
true
JSF:JAVADOC:1460voidjakarta.faces.context.PartialViewContextWrapper.release
-
The - default behavior of this method is to call - PartialViewContext#release() on the wrapped PartialViewContext object. - - - true
-
true
JSF:JAVADOC:1461voidjakarta.faces.context.PartialViewContextWrapper.setRenderAll
- - ( boolean )
The - default behavior of this method is to call - PartialViewContext#setRenderAll(boolean) on the wrapped - PartialViewContext object. true
-
true
JSF:JAVADOC:1462ResponseStreamjakarta.faces.context.ResponseStream.ResponseStream
-

-
true
-
true
JSF:JAVADOC:1463ResponseWriterjakarta.faces.context.ResponseWriter.cloneWithWriter
- - ( Writer )
Create - and return a new instance of this ResponseWriter, using the specified - Writer as the output destination. true
-
true
JSF:JAVADOC:1464voidjakarta.faces.context.ResponseWriter.endCDATA
-
Close - an XML CDATA block. The default implementation of this method takes no - action when invoked. true
-
true
JSF:JAVADOC:1465voidjakarta.faces.context.ResponseWriter.endCDATA
-
- throws IOException
-
if - input/output error occurestrue
-
true
JSF:JAVADOC:1466voidjakarta.faces.context.ResponseWriter.endDocument
-
Write - whatever text should end a response. If there is an open element that - has been created by a call to startElement(), that element will be - closed first. true
-
true
JSF:JAVADOC:1467voidjakarta.faces.context.ResponseWriter.endDocument
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1468voidjakarta.faces.context.ResponseWriter.endElement
- - ( String )
Write - the end of an element, after closing any open element created by a - call to startElement(). Elements must be closed in the inverse order - from which they were opened; it is an error to do otherwise. true
-
true
JSF:JAVADOC:1469voidjakarta.faces.context.ResponseWriter.endElement
- - ( String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1470voidjakarta.faces.context.ResponseWriter.endElement
- - ( String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1471voidjakarta.faces.context.ResponseWriter.flush
-
Flush - any ouput buffered by the output method to the underlying Writer or - OutputStream. This method will not flush the underlying Writer or - OutputStream; it simply clears any values buffered by this - ResponseWriter. true
-
true
JSF:JAVADOC:1472voidjakarta.faces.context.ResponseWriter.flush
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1473Stringjakarta.faces.context.ResponseWriter.getCharacterEncoding
-
Return - the character encoding (such as "ISO-8859-1") for this ResponseWriter. - Please see the IANA for a list of character encodings. true
-
true
JSF:JAVADOC:1474Stringjakarta.faces.context.ResponseWriter.getContentType
-
Return - the content type (such as "text/html") for this ResponseWriter. Note: - this must not include the "charset=" suffix. true
-
true
JSF:JAVADOC:1475ResponseWriterjakarta.faces.context.ResponseWriter.ResponseWriter
-

-
true
-
true
JSF:JAVADOC:1476voidjakarta.faces.context.ResponseWriter.startCDATA
-
Open an - XML CDATA block. Note that XML does not allow nested CDATA blocks, - though this method does not enforce that constraint. The default - implementation of this method takes no action when invoked. true
-
true
JSF:JAVADOC:1477voidjakarta.faces.context.ResponseWriter.startCDATA
-
- throws IOException
-
if - input/output error occurestrue
-
true
JSF:JAVADOC:1478voidjakarta.faces.context.ResponseWriter.startDocument
-
Write - whatever text should begin a response. true
-
true
JSF:JAVADOC:1479voidjakarta.faces.context.ResponseWriter.startDocument
-
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1480voidjakarta.faces.context.ResponseWriter.startElement
- - ( String ,
- UIComponent )
Write - the start of an element, up to and including the element name. Once - this method has been called, clients can call the writeAttribute() or - writeURIAttribute() methods to add attributes and corresponding - values. The starting element will be closed (that is, the trailing - '>' character added) on any subsequent call to startElement(), - writeComment(), writeText(), endElement(), endDocument(), close(), - flush(), or write(). true
-
true
JSF:JAVADOC:1481voidjakarta.faces.context.ResponseWriter.startElement
- - ( String ,
- UIComponent )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1482voidjakarta.faces.context.ResponseWriter.startElement
- - ( String ,
- UIComponent )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1483voidjakarta.faces.context.ResponseWriter.writeAttribute
- - ( String ,
- Object ,
- String )
Write - an attribute name and corresponding value, after converting that text - to a String (if necessary), and after performing any escaping - appropriate for the markup language being rendered. This method may - only be called after a call to startElement(), and before the opened - element has been closed. true
-
true
JSF:JAVADOC:1484voidjakarta.faces.context.ResponseWriter.writeAttribute
- - ( String ,
- Object ,
- String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1485voidjakarta.faces.context.ResponseWriter.writeAttribute
- - ( String ,
- Object ,
- String )
- throws IllegalStateException
-
if this - method is called when there is no currently open elementtrue
-
true
JSF:JAVADOC:1486voidjakarta.faces.context.ResponseWriter.writeAttribute
- - ( String ,
- Object ,
- String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1487voidjakarta.faces.context.ResponseWriter.writeComment
- - ( Object )
Write a - comment containing the specified text, after converting that text to a - String (if necessary), and after performing any escaping appropriate - for the markup language being rendered. If there is an open element - that has been created by a call to startElement(), that element will - be closed first. true
-
true
JSF:JAVADOC:1488voidjakarta.faces.context.ResponseWriter.writeComment
- - ( Object )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1489voidjakarta.faces.context.ResponseWriter.writeComment
- - ( Object )
- throws NullPointerException
-
if - comment is nulltrue
-
true
JSF:JAVADOC:1490voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- String )
Write - an object, after converting it to a String (if necessary), and after - performing any escaping appropriate for the markup language being - rendered. If there is an open element that has been created by a call - to startElement(), that element will be closed first. true
-
true
JSF:JAVADOC:1491voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1492voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- String )
- throws NullPointerException
-
if text - is nulltrue
-
true
JSF:JAVADOC:1493voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- UIComponent ,
- String )
Write - an object, after converting it to a String (if necessary), and after - performing any escaping appropriate for the markup language being - rendered. This method is equivalent to - #writeText(java.lang.Object,java.lang.String) but adds a component - property to allow custom ResponseWriter implementations to associate a - component with an arbitrary portion of text. The default - implementation simply ignores the component argument and calls through - to #writeText(java.lang.Object,java.lang.String) true
-
true
JSF:JAVADOC:1494voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- UIComponent ,
- String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1495voidjakarta.faces.context.ResponseWriter.writeText
- - ( Object ,
- UIComponent ,
- String )
- throws NullPointerException
-
if text - is nulltrue
-
true
JSF:JAVADOC:1496voidjakarta.faces.context.ResponseWriter.writeText
- - ( char[] ,
- int ,
- int )
Write - text from a character array, after any performing any escaping - appropriate for the markup language being rendered. If there is an - open element that has been created by a call to startElement(), that - element will be closed first. true
-
true
JSF:JAVADOC:1497voidjakarta.faces.context.ResponseWriter.writeText
- - ( char[] ,
- int ,
- int )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1498voidjakarta.faces.context.ResponseWriter.writeText
- - ( char[] ,
- int ,
- int )
- throws IndexOutOfBoundsException
-
if the - calculated starting or ending position is outside the bounds of the - character arraytrue
-
true
JSF:JAVADOC:1499voidjakarta.faces.context.ResponseWriter.writeText
- - ( char[] ,
- int ,
- int )
- throws NullPointerException
-
if text - is nulltrue
-
true
JSF:JAVADOC:1500voidjakarta.faces.context.ResponseWriter.writeURIAttribute
- - ( String ,
- Object ,
- String )
Write a - URI attribute name and corresponding value, after converting that text - to a String (if necessary), and after performing any encoding - appropriate to the markup language being rendered. This method may - only be called after a call to startElement(), and before the opened - element has been closed. true
-
true
JSF:JAVADOC:1501voidjakarta.faces.context.ResponseWriter.writeURIAttribute
- - ( String ,
- Object ,
- String )
- throws IOException
-
if an - input/output error occurstrue
-
true
JSF:JAVADOC:1502voidjakarta.faces.context.ResponseWriter.writeURIAttribute
- - ( String ,
- Object ,
- String )
- throws IllegalStateException
-
if this - method is called when there is no currently open elementtrue
-
true
JSF:JAVADOC:1503voidjakarta.faces.context.ResponseWriter.writeURIAttribute
- - ( String ,
- Object ,
- String )
- throws NullPointerException
-
if name - is nulltrue
-
true
JSF:JAVADOC:1504ResponseWriterjakarta.faces.context.ResponseWriterWrapper.cloneWithWriter
- - ( Writer )
The - default behavior of this method is to call - ResponseWriter#cloneWithWriter(java.io.Writer) on the wrapped - ResponseWriter object. true
-
true
JSF:JAVADOC:1505voidjakarta.faces.context.ResponseWriterWrapper.close
-
The - default behavior of this method is to call ResponseWriter#close() on - the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1506voidjakarta.faces.context.ResponseWriterWrapper.close
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1507voidjakarta.faces.context.ResponseWriterWrapper.endCDATA
-
The - default behavior of this method is to call ResponseWriter#endCDATA on - the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1508voidjakarta.faces.context.ResponseWriterWrapper.endCDATA
-
- throws IOException
-
on any - read/write errortrue
-
true
JSF:JAVADOC:1509voidjakarta.faces.context.ResponseWriterWrapper.endDocument
-
The - default behavior of this method is to call - ResponseWriter#endDocument() on the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1510voidjakarta.faces.context.ResponseWriterWrapper.endDocument
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1511voidjakarta.faces.context.ResponseWriterWrapper.endElement
- - ( String )
The - default behavior of this method is to call - ResponseWriter#endElement(String) on the wrapped ResponseWriter - object. true
-
true
JSF:JAVADOC:1512voidjakarta.faces.context.ResponseWriterWrapper.endElement
- - ( String )
- throws IOException
-
on any - read/write errortrue
-
true
JSF:JAVADOC:1513voidjakarta.faces.context.ResponseWriterWrapper.flush
-
The - default behavior of this method is to call ResponseWriter#flush() on - the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1514voidjakarta.faces.context.ResponseWriterWrapper.flush
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1515Stringjakarta.faces.context.ResponseWriterWrapper.getCharacterEncoding
-
The - default behavior of this method is to call - ResponseWriter#getCharacterEncoding() on the wrapped ResponseWriter - object. true
-
true
JSF:JAVADOC:1516Stringjakarta.faces.context.ResponseWriterWrapper.getContentType
-
The - default behavior of this method is to call - ResponseWriter#getContentType() on the wrapped ResponseWriter object. - - - true
-
true
JSF:JAVADOC:1517ResponseWriterjakarta.faces.context.ResponseWriterWrapper.getWrapped
-
Return - the instance that we are wrapping. As of version 2, this method is - public. true
-
true
JSF:JAVADOC:1518ResponseWriterWrapperjakarta.faces.context.ResponseWriterWrapper.ResponseWriterWrapper
-

-
true
-
true
JSF:JAVADOC:1519voidjakarta.faces.context.ResponseWriterWrapper.startCDATA
-
The - default behavior of this method is to call ResponseWriter#startCDATA - on the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1520voidjakarta.faces.context.ResponseWriterWrapper.startCDATA
-
- throws IOException
-
on any - read/write errortrue
-
true
JSF:JAVADOC:1521voidjakarta.faces.context.ResponseWriterWrapper.startDocument
-
The - default behavior of this method is to call - ResponseWriter#startDocument() on the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1522voidjakarta.faces.context.ResponseWriterWrapper.startDocument
-
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1523voidjakarta.faces.context.ResponseWriterWrapper.startElement
- - ( String ,
- UIComponent )
The - default behavior of this method is to call - ResponseWriter#startElement(String, jakarta.faces.component.UIComponent) - on the wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1524voidjakarta.faces.context.ResponseWriterWrapper.startElement
- - ( String ,
- UIComponent )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1525voidjakarta.faces.context.ResponseWriterWrapper.write
- - ( char[] ,
- int ,
- int )
The - default behavior of this method is to call - ResponseWriter#write(char[], int, int) on the wrapped ResponseWriter - object. true
-
true
JSF:JAVADOC:1526voidjakarta.faces.context.ResponseWriterWrapper.write
- - ( char[] ,
- int ,
- int )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1527voidjakarta.faces.context.ResponseWriterWrapper.writeAttribute
- - ( String ,
- Object ,
- String )
The - default behavior of this method is to call - ResponseWriter#writeAttribute(String, Object, String) on the wrapped - ResponseWriter object. true
-
true
JSF:JAVADOC:1528voidjakarta.faces.context.ResponseWriterWrapper.writeAttribute
- - ( String ,
- Object ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1529voidjakarta.faces.context.ResponseWriterWrapper.writeComment
- - ( Object )
The - default behavior of this method is to call - ResponseWriter#writeComment(Object) on the wrapped ResponseWriter - object. true
-
true
JSF:JAVADOC:1530voidjakarta.faces.context.ResponseWriterWrapper.writeComment
- - ( Object )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1531voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( Object ,
- String )
The - default behavior of this method is to call - ResponseWriter#writeText(Object, String) on the wrapped ResponseWriter - object. true
-
true
JSF:JAVADOC:1532voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( Object ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1533voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( Object ,
- UIComponent ,
- String )
The - default behavior of this method is to call - ResponseWriter#writeText(Object, UIComponent, String) on the wrapped - ResponseWriter object. true
-
true
JSF:JAVADOC:1534voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( Object ,
- UIComponent ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1535voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( char[] ,
- int ,
- int )
The - default behavior of this method is to call - ResponseWriter#writeText(char[], int, int) on the wrapped - ResponseWriter object. true
-
true
JSF:JAVADOC:1536voidjakarta.faces.context.ResponseWriterWrapper.writeText
- - ( char[] ,
- int ,
- int )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1537voidjakarta.faces.context.ResponseWriterWrapper.writeURIAttribute
- - ( String ,
- Object ,
- String )
The - default behavior of this method is to call - ResponseWriter#writeURIAttribute(String, Object, String) on the - wrapped ResponseWriter object. true
-
true
JSF:JAVADOC:1538voidjakarta.faces.context.ResponseWriterWrapper.writeURIAttribute
- - ( String ,
- Object ,
- String )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:1539BigDecimalConverterjakarta.faces.convert.BigDecimalConverter.BigDecimalConverter
-

-
true
-
true
JSF:JAVADOC:1540Objectjakarta.faces.convert.BigDecimalConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1541Objectjakarta.faces.convert.BigDecimalConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1542Objectjakarta.faces.convert.BigDecimalConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1543Stringjakarta.faces.convert.BigDecimalConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1544Stringjakarta.faces.convert.BigDecimalConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1545Stringjakarta.faces.convert.BigDecimalConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1546BigIntegerConverterjakarta.faces.convert.BigIntegerConverter.BigIntegerConverter
-

-
true
-
true
JSF:JAVADOC:1547Objectjakarta.faces.convert.BigIntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1548Objectjakarta.faces.convert.BigIntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1549Objectjakarta.faces.convert.BigIntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1550Stringjakarta.faces.convert.BigIntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1551Stringjakarta.faces.convert.BigIntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1552Stringjakarta.faces.convert.BigIntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1553BooleanConverterjakarta.faces.convert.BooleanConverter.BooleanConverter
-

-
true
-
true
JSF:JAVADOC:1554Objectjakarta.faces.convert.BooleanConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1555Objectjakarta.faces.convert.BooleanConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1556Objectjakarta.faces.convert.BooleanConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1557Stringjakarta.faces.convert.BooleanConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1558Stringjakarta.faces.convert.BooleanConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1559Stringjakarta.faces.convert.BooleanConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1560ByteConverterjakarta.faces.convert.ByteConverter.ByteConverter
-

-
true
-
true
JSF:JAVADOC:1561Objectjakarta.faces.convert.ByteConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1562Objectjakarta.faces.convert.ByteConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1563Objectjakarta.faces.convert.ByteConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1564Stringjakarta.faces.convert.ByteConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1565Stringjakarta.faces.convert.ByteConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1566Stringjakarta.faces.convert.ByteConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1567CharacterConverterjakarta.faces.convert.CharacterConverter.CharacterConverter
-

-
true
-
true
JSF:JAVADOC:1568Objectjakarta.faces.convert.CharacterConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1569Objectjakarta.faces.convert.CharacterConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1570Objectjakarta.faces.convert.CharacterConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1571Stringjakarta.faces.convert.CharacterConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1572Stringjakarta.faces.convert.CharacterConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1573Stringjakarta.faces.convert.CharacterConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1574Objectjakarta.faces.convert.Converter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1575Objectjakarta.faces.convert.Converter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1576Objectjakarta.faces.convert.Converter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1577Stringjakarta.faces.convert.Converter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1578Stringjakarta.faces.convert.Converter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1579Stringjakarta.faces.convert.Converter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1580ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
-
- Construct a new exception with no detail message or root cause. true
-
true
JSF:JAVADOC:1581ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. true
-
true
JSF:JAVADOC:1582ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() true
-
true
JSF:JAVADOC:1583ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:1584ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
- - ( FacesMessage )
- Construct a new exception with the specified detail message and no - root cause. true
-
true
JSF:JAVADOC:1585ConverterExceptionjakarta.faces.convert.ConverterException.ConverterException
- - ( FacesMessage ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:1586FacesMessagejakarta.faces.convert.ConverterException.getFacesMessage
-
Returns - the FacesMessage associated with this exception; this will only be - available if the converter that thew this exception instance placed it - there. true
-
true
JSF:JAVADOC:1587voidjakarta.faces.convert.DateTimeConverter.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:1588DateTimeConverterjakarta.faces.convert.DateTimeConverter.DateTimeConverter
-

-
true
-
true
JSF:JAVADOC:1589Objectjakarta.faces.convert.DateTimeConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1590Objectjakarta.faces.convert.DateTimeConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1591Objectjakarta.faces.convert.DateTimeConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1592Stringjakarta.faces.convert.DateTimeConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1593Stringjakarta.faces.convert.DateTimeConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1594Stringjakarta.faces.convert.DateTimeConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1595Stringjakarta.faces.convert.DateTimeConverter.getDateStyle
-
Return - the style to be used to format or parse dates. If not set, the default - value, default, is returned. true
-
true
JSF:JAVADOC:1596Localejakarta.faces.convert.DateTimeConverter.getLocale
-
Return - the Locale to be used when parsing or formatting dates and times. If - not explicitly set, the Locale stored in the - jakarta.faces.component.UIViewRoot for the current request is returned. - true
-
true
JSF:JAVADOC:1597Stringjakarta.faces.convert.DateTimeConverter.getPattern
-
Return - the format pattern to be used when formatting and parsing dates and - times. true
-
true
JSF:JAVADOC:1598Stringjakarta.faces.convert.DateTimeConverter.getTimeStyle
-
Return - the style to be used to format or parse times. If not set, the default - value, default, is returned. true
-
true
JSF:JAVADOC:1599TimeZonejakarta.faces.convert.DateTimeConverter.getTimeZone
-
Return - the TimeZone used to interpret a time value. If not explicitly set, - the default time zone of GMT returned. true
-
true
JSF:JAVADOC:1600Stringjakarta.faces.convert.DateTimeConverter.getType
-
Return - the type of value to be formatted or parsed. If not explicitly set, - the default type, date is returned. true
-
true
JSF:JAVADOC:1601booleanjakarta.faces.convert.DateTimeConverter.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:1602booleanjakarta.faces.convert.DateTimeConverter.isTransient
-

-
true
-
true
JSF:JAVADOC:1603voidjakarta.faces.convert.DateTimeConverter.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:1604voidjakarta.faces.convert.DateTimeConverter.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:1605Objectjakarta.faces.convert.DateTimeConverter.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:1606voidjakarta.faces.convert.DateTimeConverter.setDateStyle
- - ( String )
Set the - style to be used to format or parse dates. Valid values are default, - short, medium, long, and full. An invalid value will cause a - ConverterException when getAsObject() or getAsString() is called. true
-
true
JSF:JAVADOC:1607voidjakarta.faces.convert.DateTimeConverter.setLocale
- - ( Locale )
Set the - Locale to be used when parsing or formatting dates and times. If set - to null, the Locale stored in the jakarta.faces.component.UIViewRoot for - the current request will be utilized. true
-
true
JSF:JAVADOC:1608voidjakarta.faces.convert.DateTimeConverter.setPattern
- - ( String )
Set the - format pattern to be used when formatting and parsing dates and times. - - Valid values are those supported by java.text.SimpleDateFormat. An - invalid value will cause a ConverterException when getAsObject() or - getAsString() is called. true
-
true
JSF:JAVADOC:1609voidjakarta.faces.convert.DateTimeConverter.setTimeStyle
- - ( String )
Set the - style to be used to format or parse times. Valid values are default, - short, medium, long, and full. An invalid value will cause a - ConverterException when getAsObject() or getAsString() is called. true
-
true
JSF:JAVADOC:1610voidjakarta.faces.convert.DateTimeConverter.setTimeZone
- - ( TimeZone )
Set the - TimeZone used to interpret a time value. true
-
true
JSF:JAVADOC:1611voidjakarta.faces.convert.DateTimeConverter.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:1612voidjakarta.faces.convert.DateTimeConverter.setType
- - ( String )
Set the - type of value to be formatted or parsed. Valid values are both, date, - or time. An invalid value will cause a ConverterException when - getAsObject() or getAsString() is called. true
-
true
JSF:JAVADOC:1613DoubleConverterjakarta.faces.convert.DoubleConverter.DoubleConverter
-

-
true
-
true
JSF:JAVADOC:1614Objectjakarta.faces.convert.DoubleConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1615Objectjakarta.faces.convert.DoubleConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1616Objectjakarta.faces.convert.DoubleConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1617Stringjakarta.faces.convert.DoubleConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1618Stringjakarta.faces.convert.DoubleConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1619Stringjakarta.faces.convert.DoubleConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1620voidjakarta.faces.convert.EnumConverter.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:1621EnumConverterjakarta.faces.convert.EnumConverter.EnumConverter
-

-
true
-
true
JSF:JAVADOC:1622EnumConverterjakarta.faces.convert.EnumConverter.EnumConverter
- - ( Class )

-
true
-
true
JSF:JAVADOC:1623Objectjakarta.faces.convert.EnumConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the value argument to one of the enum constants of the class provided - in our constructor. If no target class argument has been provided to - the constructor of this instance, throw a ConverterException - containing the #ENUM_NO_CLASS_ID message with proper parameters. If - the value argument is null or it has a length of zero, return null. - Otherwise, perform the equivalent of Enum.valueOf using target class - and value and return the Object. If the conversion fails, throw a - ConverterException containing the #ENUM_ID message with proper - parameters. true
-
true
JSF:JAVADOC:1624Objectjakarta.faces.convert.EnumConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1625Objectjakarta.faces.convert.EnumConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1626Stringjakarta.faces.convert.EnumConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the enum constant given by the value argument into a String. If no - target class argument has been provided to the constructor of this - instance, throw a ConverterException containing the #ENUM_NO_CLASS_ID - message with proper parameters. If the value argument is null, return - null. If the value is an instance of the provided target class, return - its string value by casting it to a java.lang.Enum and returning the - result of calling the name() method. Otherwise, throw a - ConverterException containing the #ENUM_ID message with proper - parameters. true
-
true
JSF:JAVADOC:1627Stringjakarta.faces.convert.EnumConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1628Stringjakarta.faces.convert.EnumConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1629booleanjakarta.faces.convert.EnumConverter.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:1630booleanjakarta.faces.convert.EnumConverter.isTransient
-

-
true
-
true
JSF:JAVADOC:1631voidjakarta.faces.convert.EnumConverter.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:1632voidjakarta.faces.convert.EnumConverter.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:1633Objectjakarta.faces.convert.EnumConverter.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:1634voidjakarta.faces.convert.EnumConverter.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:1635Classjakarta.faces.convert.FacesConverter.forClass
-
The - value of this annotation attribute is taken to be the - converter-for-class with which instances of this class of converter - can be instantiated by calling - jakarta.faces.application.Application#createConverter(java.lang.Class). - - true
-
true
JSF:JAVADOC:1636Stringjakarta.faces.convert.FacesConverter.value
-
The - value of this annotation attribute is taken to be the converter-id - with which instances of this class of converter can be instantiated by - calling - jakarta.faces.application.Application#createConverter(java.lang.String). - - true
-
true
JSF:JAVADOC:1637FloatConverterjakarta.faces.convert.FloatConverter.FloatConverter
-

-
true
-
true
JSF:JAVADOC:1638Objectjakarta.faces.convert.FloatConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1639Objectjakarta.faces.convert.FloatConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1640Objectjakarta.faces.convert.FloatConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1641Stringjakarta.faces.convert.FloatConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1642Stringjakarta.faces.convert.FloatConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1643Stringjakarta.faces.convert.FloatConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1644Objectjakarta.faces.convert.IntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1645Objectjakarta.faces.convert.IntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1646Objectjakarta.faces.convert.IntegerConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1647Stringjakarta.faces.convert.IntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1648Stringjakarta.faces.convert.IntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1649Stringjakarta.faces.convert.IntegerConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1650IntegerConverterjakarta.faces.convert.IntegerConverter.IntegerConverter
-

-
true
-
true
JSF:JAVADOC:1651Objectjakarta.faces.convert.LongConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1652Objectjakarta.faces.convert.LongConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1653Objectjakarta.faces.convert.LongConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1654Stringjakarta.faces.convert.LongConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1655Stringjakarta.faces.convert.LongConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1656Stringjakarta.faces.convert.LongConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1657LongConverterjakarta.faces.convert.LongConverter.LongConverter
-

-
true
-
true
JSF:JAVADOC:1658voidjakarta.faces.convert.NumberConverter.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:1659Objectjakarta.faces.convert.NumberConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1660Objectjakarta.faces.convert.NumberConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1661Objectjakarta.faces.convert.NumberConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1662Stringjakarta.faces.convert.NumberConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1663Stringjakarta.faces.convert.NumberConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1664Stringjakarta.faces.convert.NumberConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1665Stringjakarta.faces.convert.NumberConverter.getCurrencyCode
-
Return - the ISO 4217 currency code used by getAsString() with a type of - currency. If not set, the value used will be based on the formatting - Locale. true
-
true
JSF:JAVADOC:1666Stringjakarta.faces.convert.NumberConverter.getCurrencySymbol
-
Return - the currency symbol used by getAsString() with a type of currency. If - not set, the value used will be based on the formatting Locale. true
-
true
JSF:JAVADOC:1667Localejakarta.faces.convert.NumberConverter.getLocale
-
Return - the Locale to be used when parsing numbers. If this value is null, the - Locale stored in the jakarta.faces.component.UIViewRoot for the current - request will be utilized. true
-
true
JSF:JAVADOC:1668intjakarta.faces.convert.NumberConverter.getMaxFractionDigits
-
Return - the maximum number of digits getAsString() should render in the - fraction portion of the result. true
-
true
JSF:JAVADOC:1669intjakarta.faces.convert.NumberConverter.getMaxIntegerDigits
-
Return - the maximum number of digits getAsString() should render in the - integer portion of the result. true
-
true
JSF:JAVADOC:1670intjakarta.faces.convert.NumberConverter.getMinFractionDigits
-
Return - the minimum number of digits getAsString() should render in the - fraction portion of the result. true
-
true
JSF:JAVADOC:1671intjakarta.faces.convert.NumberConverter.getMinIntegerDigits
-
Return - the minimum number of digits getAsString() should render in the - integer portion of the result. true
-
true
JSF:JAVADOC:1672Stringjakarta.faces.convert.NumberConverter.getPattern
-
Return - the format pattern to be used when formatting and parsing numbers. true
-
true
JSF:JAVADOC:1673Stringjakarta.faces.convert.NumberConverter.getType
-
Return - the number type to be used when formatting and parsing numbers. If not - modified, the default type is number. true
-
true
JSF:JAVADOC:1674booleanjakarta.faces.convert.NumberConverter.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:1675booleanjakarta.faces.convert.NumberConverter.isGroupingUsed
-
Return - true if getAsString should include grouping separators if necessary. - If not modified, the default value is true. true
-
true
JSF:JAVADOC:1676booleanjakarta.faces.convert.NumberConverter.isIntegerOnly
-
Return - true if only the integer portion of the given value should be returned - from getAsObject(). If not modified, the default value is false. true
-
true
JSF:JAVADOC:1677booleanjakarta.faces.convert.NumberConverter.isTransient
-

-
true
-
true
JSF:JAVADOC:1678voidjakarta.faces.convert.NumberConverter.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:1679NumberConverterjakarta.faces.convert.NumberConverter.NumberConverter
-

-
true
-
true
JSF:JAVADOC:1680voidjakarta.faces.convert.NumberConverter.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:1681Objectjakarta.faces.convert.NumberConverter.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:1682voidjakarta.faces.convert.NumberConverter.setCurrencyCode
- - ( String )
Set the - ISO 4217 currency code used by getAsString() with a type of currency. - - true
-
true
JSF:JAVADOC:1683voidjakarta.faces.convert.NumberConverter.setCurrencySymbol
- - ( String )
Set the - currency symbol used by getAsString() with a type of currency. true
-
true
JSF:JAVADOC:1684voidjakarta.faces.convert.NumberConverter.setGroupingUsed
- - ( boolean )
Set the - flag indicating whether getAsString() should include grouping - separators if necessary. true
-
true
JSF:JAVADOC:1685voidjakarta.faces.convert.NumberConverter.setIntegerOnly
- - ( boolean )
Set to - true if only the integer portion of the given value should be returned - from getAsObject(). true
-
true
JSF:JAVADOC:1686voidjakarta.faces.convert.NumberConverter.setLocale
- - ( Locale )
Set the - Locale to be used when parsing numbers. If set to null, the Locale - stored in the jakarta.faces.component.UIViewRoot for the current request - will be utilized. true
-
true
JSF:JAVADOC:1687voidjakarta.faces.convert.NumberConverter.setMaxFractionDigits
- - ( int )
Set the - maximum number of digits getAsString() should render in the fraction - portion of the result. If not set, the number of digits depends on the - value being converted. true
-
true
JSF:JAVADOC:1688voidjakarta.faces.convert.NumberConverter.setMaxIntegerDigits
- - ( int )
Set the - maximum number of digits getAsString() should render in the integer - portion of the result. If not set, the number of digits depends on the - value being converted. true
-
true
JSF:JAVADOC:1689voidjakarta.faces.convert.NumberConverter.setMinFractionDigits
- - ( int )
Set the - minimum number of digits getAsString() should render in the fraction - portion of the result. If not set, the number of digits depends on the - value being converted. true
-
true
JSF:JAVADOC:1690voidjakarta.faces.convert.NumberConverter.setMinIntegerDigits
- - ( int )
Set the - minimum number of digits getAsString() should render in the integer - portion of the result. If not set, the number of digits depends on the - value being converted. true
-
true
JSF:JAVADOC:1691voidjakarta.faces.convert.NumberConverter.setPattern
- - ( String )
Set the - format pattern to be used when formatting and parsing numbers. Valid - values are those supported by java.text.DecimalFormat. An invalid - value will cause a ConverterException when getAsObject() or - getAsString() is called. true
-
true
JSF:JAVADOC:1692voidjakarta.faces.convert.NumberConverter.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:1693voidjakarta.faces.convert.NumberConverter.setType
- - ( String )
Set the - number type to be used when formatting and parsing numbers. Valid - values are currency, number, or percent. An invalid value will cause a - ConverterException when getAsObject() or getAsString() is called. true
-
true
JSF:JAVADOC:1694Objectjakarta.faces.convert.ShortConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
Convert - the specified string value, which is associated with the specified - UIComponent, into a model data object that is appropriate for being - stored during the Apply Request Values phase of the request processing - lifecycle. true
-
true
JSF:JAVADOC:1695Objectjakarta.faces.convert.ShortConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1696Objectjakarta.faces.convert.ShortConverter.getAsObject
- - ( FacesContext ,
- UIComponent ,
- String )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1697Stringjakarta.faces.convert.ShortConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
Convert - the specified model object value, which is associated with the - specified UIComponent, into a String that is suitable for being - included in the response generated during the Render Response phase of - the request processing lifeycle. true
-
true
JSF:JAVADOC:1698Stringjakarta.faces.convert.ShortConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if - conversion cannot be successfully performedtrue
-
true
JSF:JAVADOC:1699Stringjakarta.faces.convert.ShortConverter.getAsString
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:1700ShortConverterjakarta.faces.convert.ShortConverter.ShortConverter
-

-
true
-
true
JSF:JAVADOC:1701ValueExpressionjakarta.faces.el.CompositeComponentExpressionHolder.getExpression
- - ( String )

-
true
-
true
JSF:JAVADOC:1702EvaluationExceptionjakarta.faces.el.EvaluationException.EvaluationException
-
- Construct a new exception with no detail message or root cause. truetruetrue
JSF:JAVADOC:1703EvaluationExceptionjakarta.faces.el.EvaluationException.EvaluationException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. truetruetrue
JSF:JAVADOC:1704EvaluationExceptionjakarta.faces.el.EvaluationException.EvaluationException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() truetruetrue
JSF:JAVADOC:1705EvaluationExceptionjakarta.faces.el.EvaluationException.EvaluationException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. truetruetrue
JSF:JAVADOC:1706Stringjakarta.faces.el.MethodBinding.getExpressionString
-
Return - the (possibly null) expression String, with leading and trailing - delimiters, from which this MethodBinding was built. The default - implementation returns null. truetruetrue
JSF:JAVADOC:1707Classjakarta.faces.el.MethodBinding.getType
- - ( FacesContext )
Return - the Java class representing the return type from the method identified - by this method binding expression. truetruetrue
JSF:JAVADOC:1708Classjakarta.faces.el.MethodBinding.getType
- - ( FacesContext )
- throws MethodNotFoundException
-
if no - suitable method can be foundtruetruetrue
JSF:JAVADOC:1709Classjakarta.faces.el.MethodBinding.getType
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1710Objectjakarta.faces.el.MethodBinding.invoke
- - ( FacesContext ,
- Object[] )
Return - the return value (if any) resulting from a call to the method - identified by this method binding expression, passing it the specified - parameters, relative to the specified FacesContext. truetruetrue
JSF:JAVADOC:1711Objectjakarta.faces.el.MethodBinding.invoke
- - ( FacesContext ,
- Object[] )
- throws EvaluationException
-
if an - exception is thrown by the called method (the thrown exception must be - included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1712Objectjakarta.faces.el.MethodBinding.invoke
- - ( FacesContext ,
- Object[] )
- throws MethodNotFoundException
-
if no - suitable method can be foundtruetruetrue
JSF:JAVADOC:1713Objectjakarta.faces.el.MethodBinding.invoke
- - ( FacesContext ,
- Object[] )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1714MethodBindingjakarta.faces.el.MethodBinding.MethodBinding
-

-
truetruetrue
JSF:JAVADOC:1715MethodNotFoundExceptionjakarta.faces.el.MethodNotFoundException.MethodNotFoundException
-
- Construct a new exception with no detail message or root cause. truetruetrue
JSF:JAVADOC:1716MethodNotFoundExceptionjakarta.faces.el.MethodNotFoundException.MethodNotFoundException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. truetruetrue
JSF:JAVADOC:1717MethodNotFoundExceptionjakarta.faces.el.MethodNotFoundException.MethodNotFoundException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() truetruetrue
JSF:JAVADOC:1718MethodNotFoundExceptionjakarta.faces.el.MethodNotFoundException.MethodNotFoundException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. truetruetrue
JSF:JAVADOC:1719PropertyNotFoundExceptionjakarta.faces.el.PropertyNotFoundException.PropertyNotFoundException
-
- Construct a new exception with no detail message or root cause. truetruetrue
JSF:JAVADOC:1720PropertyNotFoundExceptionjakarta.faces.el.PropertyNotFoundException.PropertyNotFoundException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. truetruetrue
JSF:JAVADOC:1721PropertyNotFoundExceptionjakarta.faces.el.PropertyNotFoundException.PropertyNotFoundException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() truetruetrue
JSF:JAVADOC:1722PropertyNotFoundExceptionjakarta.faces.el.PropertyNotFoundException.PropertyNotFoundException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. truetruetrue
JSF:JAVADOC:1723Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- Object )
Return - the java.lang.Class representing the type of the specified property. - An instance of any Object of that type my be set as the value of that - property, as long as the property is not read-only. The actual value - of the property, if non-null, is guaranteed to be an instance of this - type, or an instance of a subclass of this type. This method is also - useful for discovering the type of Objects that may be set as the - value of the property. For a bean base object, the property is coerced - to a String and used as the property name. For all other base object - types (e.g., a Map), the property is used without any coercing. truetruetrue
JSF:JAVADOC:1724Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while testing the property (the thrown exception - must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1725Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- Object )
- throws PropertyNotFoundException
-
if the - specified bean base object property does not exist or if base or - property is nulltruetruetrue
JSF:JAVADOC:1726Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- int )
Return - the java.lang.Class representing the type of the specified index. truetruetrue
JSF:JAVADOC:1727Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- int )
- throws EvaluationException
-
if an - exception is thrown while testing the property (the thrown exception - must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1728Classjakarta.faces.el.PropertyResolver.getType
- - ( Object ,
- int )
- throws PropertyNotFoundException
-
if the - index is out of bounds or if base is nulltruetruetrue
JSF:JAVADOC:1729Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- Object )
Return - the value of the specified property from the specified base object. - For a bean base object, the property is coerced to a String and used - as the property name. For all other base object types (e.g., a Map), - the property is used without any coercing. truetruetrue
JSF:JAVADOC:1730Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while getting the property value (the thrown - exception must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1731Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- Object )
- throws PropertyNotFoundException
-
if the - specified property for a bean base object does not exist or is not - readabletruetruetrue
JSF:JAVADOC:1732Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- int )
Return - the value at the specified index of the specified base object. truetruetrue
JSF:JAVADOC:1733Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- int )
- throws EvaluationException
-
if an - exception is thrown while getting the property value (the thrown - exception must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1734Objectjakarta.faces.el.PropertyResolver.getValue
- - ( Object ,
- int )
- throws PropertyNotFoundException
-
if the - index is out of bounds or if base is nulltruetruetrue
JSF:JAVADOC:1735booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- Object )
Checks - if the specified property is read-only. For a bean base object, the - property is coerced to a String and used as the property name. For all - other base object types (e.g., a Map), the property is used without - any coercing. truetruetrue
JSF:JAVADOC:1736booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while testing the property (the thrown exception - must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1737booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- Object )
- throws PropertyNotFoundException
-
if the - specified bean base object property does not exist or if base or - property is nulltruetruetrue
JSF:JAVADOC:1738booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- int )
Checks - if the specified index is read-only. truetruetrue
JSF:JAVADOC:1739booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- int )
- throws EvaluationException
-
if an - exception is thrown while testing the property (the thrown exception - must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1740booleanjakarta.faces.el.PropertyResolver.isReadOnly
- - ( Object ,
- int )
- throws PropertyNotFoundException
-
if the - index is out of bounds or if base is nulltruetruetrue
JSF:JAVADOC:1741PropertyResolverjakarta.faces.el.PropertyResolver.PropertyResolver
-

-
truetruetrue
JSF:JAVADOC:1742voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- Object ,
- Object )
Set the - specified value of the specified property on the specified base - object. For a bean base object, the property is coerced to a String - and used as the property name. For all other base object types (e.g., - a Map), the property is used without any coercing. truetruetrue
JSF:JAVADOC:1743voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- Object ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while setting the property value (the thrown - exception must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1744voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- Object ,
- Object )
- throws PropertyNotFoundException
-
if the - specified bean base object property does not exist or is not - writeable, or if base or name is nulltruetruetrue
JSF:JAVADOC:1745voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- int ,
- Object )
Set the - value at the specified index of the specified base object. truetruetrue
JSF:JAVADOC:1746voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- int ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while setting the property value (the thrown - exception must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1747voidjakarta.faces.el.PropertyResolver.setValue
- - ( Object ,
- int ,
- Object )
- throws PropertyNotFoundException
-
if the - index is out of bounds or if base is nulltruetruetrue
JSF:JAVADOC:1748ReferenceSyntaxExceptionjakarta.faces.el.ReferenceSyntaxException.ReferenceSyntaxException
-
- Construct a new exception with no detail message or root cause. truetruetrue
JSF:JAVADOC:1749ReferenceSyntaxExceptionjakarta.faces.el.ReferenceSyntaxException.ReferenceSyntaxException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. truetruetrue
JSF:JAVADOC:1750ReferenceSyntaxExceptionjakarta.faces.el.ReferenceSyntaxException.ReferenceSyntaxException
- - ( Throwable )
- Construct a new exception with the specified root cause. The detail - message will be set to (cause == null ? null : cause.toString() truetruetrue
JSF:JAVADOC:1751ReferenceSyntaxExceptionjakarta.faces.el.ReferenceSyntaxException.ReferenceSyntaxException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. truetruetrue
JSF:JAVADOC:1752Stringjakarta.faces.el.ValueBinding.getExpressionString
-
Return - the (possibly null) expression String, including the delimiters, from - which this ValueBinding was built. truetruetrue
JSF:JAVADOC:1753Classjakarta.faces.el.ValueBinding.getType
- - ( FacesContext )
Return - the type of the property represented by this ValueBinding, relative to - the specified FacesContext. truetruetrue
JSF:JAVADOC:1754Classjakarta.faces.el.ValueBinding.getType
- - ( FacesContext )
- throws EvaluationException
-
if an - exception is thrown while getting the description of the property (the - thrown exception must be included as the cause property of this - exception)truetruetrue
JSF:JAVADOC:1755Classjakarta.faces.el.ValueBinding.getType
- - ( FacesContext )
- throws PropertyNotFoundException
-
if a - specified property name does not existtruetruetrue
JSF:JAVADOC:1756Classjakarta.faces.el.ValueBinding.getType
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1757Objectjakarta.faces.el.ValueBinding.getValue
- - ( FacesContext )
Return - the value of the property represented by this ValueBinding, relative - to the specified FacesContext. truetruetrue
JSF:JAVADOC:1758Objectjakarta.faces.el.ValueBinding.getValue
- - ( FacesContext )
- throws EvaluationException
-
if an - exception is thrown while getting the value (the thrown exception must - be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1759Objectjakarta.faces.el.ValueBinding.getValue
- - ( FacesContext )
- throws PropertyNotFoundException
-
if a - specified property name does not exist, or is not readabletruetruetrue
JSF:JAVADOC:1760Objectjakarta.faces.el.ValueBinding.getValue
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1761booleanjakarta.faces.el.ValueBinding.isReadOnly
- - ( FacesContext )
Return - true if the specified property of the specified property is known to - be immutable; otherwise, return false. truetruetrue
JSF:JAVADOC:1762booleanjakarta.faces.el.ValueBinding.isReadOnly
- - ( FacesContext )
- throws EvaluationException
-
if an - exception is thrown while getting the description of the property (the - thrown exception must be included as the cause property of this - exception)truetruetrue
JSF:JAVADOC:1763booleanjakarta.faces.el.ValueBinding.isReadOnly
- - ( FacesContext )
- throws PropertyNotFoundException
-
if a - specified property name does not existtruetruetrue
JSF:JAVADOC:1764booleanjakarta.faces.el.ValueBinding.isReadOnly
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1765voidjakarta.faces.el.ValueBinding.setValue
- - ( FacesContext ,
- Object )
Set the - value of the property represented by this ValueBinding, relative to - the specified FacesContext. truetruetrue
JSF:JAVADOC:1766voidjakarta.faces.el.ValueBinding.setValue
- - ( FacesContext ,
- Object )
- throws EvaluationException
-
if an - exception is thrown while setting the value (the thrown exception must - be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1767voidjakarta.faces.el.ValueBinding.setValue
- - ( FacesContext ,
- Object )
- throws PropertyNotFoundException
-
if a - specified property name does not exist, or is not writeabletruetruetrue
JSF:JAVADOC:1768voidjakarta.faces.el.ValueBinding.setValue
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - context is nulltruetruetrue
JSF:JAVADOC:1769ValueBindingjakarta.faces.el.ValueBinding.ValueBinding
-

-
truetruetrue
JSF:JAVADOC:1770Objectjakarta.faces.el.VariableResolver.resolveVariable
- - ( FacesContext ,
- String )
Resolve - the specified variable name, and return the corresponding object, if - any; otherwise, return null. truetruetrue
JSF:JAVADOC:1771Objectjakarta.faces.el.VariableResolver.resolveVariable
- - ( FacesContext ,
- String )
- throws EvaluationException
-
if an - exception is thrown while resolving the variable name (the thrown - exception must be included as the cause property of this exception)truetruetrue
JSF:JAVADOC:1772Objectjakarta.faces.el.VariableResolver.resolveVariable
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context or name is nulltruetruetrue
JSF:JAVADOC:1773VariableResolverjakarta.faces.el.VariableResolver.VariableResolver
-

-
truetruetrue
JSF:JAVADOC:1774AbortProcessingExceptionjakarta.faces.event.AbortProcessingException.AbortProcessingException
-
- Construct a new exception with no detail message or root cause. true
-
true
JSF:JAVADOC:1775AbortProcessingExceptionjakarta.faces.event.AbortProcessingException.AbortProcessingException
- - ( String )
- Construct a new exception with the specified detail message and no - root cause. true
-
true
JSF:JAVADOC:1776AbortProcessingExceptionjakarta.faces.event.AbortProcessingException.AbortProcessingException
- - ( Throwable )
- Construct a new exception with the specified root cause. true
-
true
JSF:JAVADOC:1777AbortProcessingExceptionjakarta.faces.event.AbortProcessingException.AbortProcessingException
- - ( String ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:1778ActionEventjakarta.faces.event.ActionEvent.ActionEvent
- - ( UIComponent )
- Construct a new event object from the specified source component and - action command. true
-
true
JSF:JAVADOC:1779booleanjakarta.faces.event.ActionEvent.isAppropriateListener
- - ( FacesListener )
Return - true if this FacesListener is an instance of a listener class that - this event supports. Typically, this will be accomplished by an - "instanceof" check on the listener class. true
-
true
JSF:JAVADOC:1780voidjakarta.faces.event.ActionEvent.processListener
- - ( FacesListener )
- - - Broadcast this FacesEvent to the specified FacesListener, by whatever - mechanism is appropriate. Typically, this will be accomplished by - calling an event processing method, and passing this FacesEvent as a - paramter. true
-
true
JSF:JAVADOC:1781voidjakarta.faces.event.ActionEvent.processListener
- - ( FacesListener )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1782voidjakarta.faces.event.ActionListener.processAction
- - ( ActionEvent )
Invoked - when the action described by the specified ActionEvent occurs. true
-
true
JSF:JAVADOC:1783voidjakarta.faces.event.ActionListener.processAction
- - ( ActionEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1784AjaxBehaviorEventjakarta.faces.event.AjaxBehaviorEvent.AjaxBehaviorEvent
- - ( UIComponent ,
- Behavior )
- Construct a new event object from the specified source component and - Ajax behavior. true
-
true
JSF:JAVADOC:1785booleanjakarta.faces.event.AjaxBehaviorEvent.isAppropriateListener
- - ( FacesListener )
Return - true if this FacesListener is an instance of a the appropriate - listener class that this event supports. true
-
true
JSF:JAVADOC:1786voidjakarta.faces.event.AjaxBehaviorEvent.processListener
- - ( FacesListener )
- - Broadcast this event instance to the specified FacesListener, by - whatever mechanism is appropriate. Typically, this will be - accomplished by calling an event processing method, and passing this - instance as a parameter. true
-
true
JSF:JAVADOC:1787voidjakarta.faces.event.AjaxBehaviorEvent.processListener
- - ( FacesListener )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1788voidjakarta.faces.event.AjaxBehaviorListener.processAjaxBehavior
- - ( AjaxBehaviorEvent )

-
true
-
true
JSF:JAVADOC:1789voidjakarta.faces.event.AjaxBehaviorListener.processAjaxBehavior
- - ( AjaxBehaviorEvent )
- throws AbortProcessingException
-
if - lifecycle processing should cease for this request.true
-
true
JSF:JAVADOC:1790BehaviorEventjakarta.faces.event.BehaviorEvent.BehaviorEvent
- - ( UIComponent ,
- Behavior )
- Construct a new event object from the specified source component and - behavior. true
-
true
JSF:JAVADOC:1791Behaviorjakarta.faces.event.BehaviorEvent.getBehavior
-
Return - the source Behavior that sent this event. true
-
true
JSF:JAVADOC:1792ComponentSystemEventjakarta.faces.event.ComponentSystemEvent.ComponentSystemEvent
- - ( UIComponent )
Pass - the argument component to the superclass constructor. true
-
true
JSF:JAVADOC:1793UIComponentjakarta.faces.event.ComponentSystemEvent.getComponent
-
the - source UIComponent that sent this event. true
-
true
JSF:JAVADOC:1794voidjakarta.faces.event.ComponentSystemEventListener.processEvent
- - ( ComponentSystemEvent )
When - called, the listener can assume that any guarantees given in the - javadoc for the specific SystemEvent subclass are true. true
-
true
JSF:JAVADOC:1795voidjakarta.faces.event.ComponentSystemEventListener.processEvent
- - ( ComponentSystemEvent )
- throws AbortProcessingException
-
if - lifecycle processing should cease for this request.true
-
true
JSF:JAVADOC:1796ExceptionQueuedEventjakarta.faces.event.ExceptionQueuedEvent.ExceptionQueuedEvent
- - ( ExceptionQueuedEventContext )
- Instantiate a new ExceptionQueuedEvent that indicates the argument - ExceptionQueuedEventContext occurred. true
-
true
JSF:JAVADOC:1797ExceptionQueuedEventContextjakarta.faces.event.ExceptionQueuedEvent.getContext
-
Return - the ExceptionQueuedEventContext for this event instance. true
-
true
JSF:JAVADOC:1798ExceptionQueuedEventContextjakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext
- - ( FacesContext ,
- Throwable )
- Instantiate a new ExceptionQueuedEventContext that indicates the - argument Throwable just occurred. true
-
true
JSF:JAVADOC:1799ExceptionQueuedEventContextjakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext
- - ( FacesContext ,
- Throwable ,
- UIComponent )
- Instantiate a new ExceptionQueuedEventContext that indicates the - argument Throwable just occurred, relevant to the argument component. - true
-
true
JSF:JAVADOC:1800ExceptionQueuedEventContextjakarta.faces.event.ExceptionQueuedEventContext.ExceptionQueuedEventContext
- - ( FacesContext ,
- Throwable ,
- UIComponent ,
- PhaseId )
- Instantiate a new ExceptionQueuedEventContext that indicates the - argument Throwable just occurred, relevant to the argument component, - during the lifecycle phase phaseId. true
-
true
JSF:JAVADOC:1801Mapjakarta.faces.event.ExceptionQueuedEventContext.getAttributes
-
A Map - of attributes relevant to the context of this ExceptionQueuedEvent. true
-
true
JSF:JAVADOC:1802UIComponentjakarta.faces.event.ExceptionQueuedEventContext.getComponent
-
Return - the UIComponent which was being processed when the exception was - thrown. If none or not available, this will be null. true
-
true
JSF:JAVADOC:1803FacesContextjakarta.faces.event.ExceptionQueuedEventContext.getContext
-

-
true
-
true
JSF:JAVADOC:1804Throwablejakarta.faces.event.ExceptionQueuedEventContext.getException
-
Return - the exception property. true
-
true
JSF:JAVADOC:1805Listjakarta.faces.event.ExceptionQueuedEventContext.getListenersForEventClass
- - ( Class )
Return - a List that contains a single entry, the - jakarta.faces.context.ExceptionHandler for the current request. true
-
true
JSF:JAVADOC:1806PhaseIdjakarta.faces.event.ExceptionQueuedEventContext.getPhaseId
-
Return - the PhaseId which was being processed when the exception was thrown. - If none or not available, this will be null. true
-
true
JSF:JAVADOC:1807booleanjakarta.faces.event.ExceptionQueuedEventContext.inAfterPhase
-

-
true
-
true
JSF:JAVADOC:1808booleanjakarta.faces.event.ExceptionQueuedEventContext.inBeforePhase
-

-
true
-
true
JSF:JAVADOC:1809FacesEventjakarta.faces.event.FacesEvent.FacesEvent
- - ( UIComponent )
- Construct a new event object from the specified source component. true
-
true
JSF:JAVADOC:1810UIComponentjakarta.faces.event.FacesEvent.getComponent
-
Return - the source UIComponent that sent this event. true
-
true
JSF:JAVADOC:1811PhaseIdjakarta.faces.event.FacesEvent.getPhaseId
-
Return - the identifier of the request processing phase during which this event - should be delivered. Legal values are the singleton instances defined - by the PhaseId class, including PhaseId.ANY_PHASE, which is the - default value. true
-
true
JSF:JAVADOC:1812booleanjakarta.faces.event.FacesEvent.isAppropriateListener
- - ( FacesListener )
Return - true if this FacesListener is an instance of a listener class that - this event supports. Typically, this will be accomplished by an - "instanceof" check on the listener class. true
-
true
JSF:JAVADOC:1813voidjakarta.faces.event.FacesEvent.processListener
- - ( FacesListener )
- - - Broadcast this FacesEvent to the specified FacesListener, by whatever - mechanism is appropriate. Typically, this will be accomplished by - calling an event processing method, and passing this FacesEvent as a - paramter. true
-
true
JSF:JAVADOC:1814voidjakarta.faces.event.FacesEvent.processListener
- - ( FacesListener )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1815voidjakarta.faces.event.FacesEvent.queue
-
- Convenience method to queue this event for broadcast at the end of the - current request processing lifecycle phase. true
-
true
JSF:JAVADOC:1816voidjakarta.faces.event.FacesEvent.queue
-
- throws IllegalStateException
-
if the - source component for this event is not a descendant of a UIViewRoottrue
-
true
JSF:JAVADOC:1817voidjakarta.faces.event.FacesEvent.setPhaseId
- - ( PhaseId )
Set the - PhaseId during which this event will be delivered. true
-
true
JSF:JAVADOC:1818voidjakarta.faces.event.FacesEvent.setPhaseId
- - ( PhaseId )
- throws IllegalArgumentException
-
phaseId - is null.true
-
true
JSF:JAVADOC:1819Classjakarta.faces.event.ListenerFor.sourceClass
-
The - kind of object that emits events of the type given by the value of the - #systemEventClass attribute. It is valid to have EL Expressions in the - value of this attribute, as long as the expression resolves to an - instance of the expected type. true
-
true
JSF:JAVADOC:1820Classjakarta.faces.event.ListenerFor.systemEventClass
-
The - kind of system event for which this class will be installed as a - listener. The implementation only supports exact matches on the Class - and must not honor subclass relationships. It is valid to have EL - Expressions in the value of this attribute, as long as the expression - resolves to an instance of the expected type. true
-
true
JSF:JAVADOC:1821ListenerFor[]jakarta.faces.event.ListenersFor.value
-

-
true
-
true
JSF:JAVADOC:1822booleanjakarta.faces.event.MethodExpressionActionListener.isTransient
-
If - true, the Object implementing this interface must not participate in - state saving or restoring. true
-
true
JSF:JAVADOC:1823MethodExpressionActionListenerjakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener
-

-
true
-
true
JSF:JAVADOC:1824MethodExpressionActionListenerjakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener
- - ( MethodExpression )
- - - Construct a ValueChangeListener that contains a MethodExpression. To - accomodate method expression targets that take no arguments instead of - taking an ActionEvent argument, the implementation of this class must - take the argument methodExpressionOneArg, extract its expression - string, and create another MethodExpression whose expected param types - match those of a zero argument method. The usage requirements for both - of these MethodExpression instances are described in #processAction. true
-
true
JSF:JAVADOC:1825MethodExpressionActionListenerjakarta.faces.event.MethodExpressionActionListener.MethodExpressionActionListener
- - ( MethodExpression ,
- MethodExpression )

-
true
-
true
JSF:JAVADOC:1826voidjakarta.faces.event.MethodExpressionActionListener.processAction
- - ( ActionEvent )
Call - through to the MethodExpression passed in our constructor. First, try - to invoke the MethodExpression passed to the constructor of this - instance, passing the argument ActionEvent as the argument. If a - MethodNotFoundException is thrown, call to the zero argument - MethodExpression derived from the MethodExpression passed to the - constructor of this instance. If that fails for any reason, throw an - AbortProcessingException, including the cause of the failure. true
-
true
JSF:JAVADOC:1827voidjakarta.faces.event.MethodExpressionActionListener.processAction
- - ( ActionEvent )
- throws AbortProcessingException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1828voidjakarta.faces.event.MethodExpressionActionListener.processAction
- - ( ActionEvent )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1829voidjakarta.faces.event.MethodExpressionActionListener.restoreState
- - ( FacesContext ,
- Object )
Both - MethodExpression instances described in the constructor must be - restored. true
-
true
JSF:JAVADOC:1830Objectjakarta.faces.event.MethodExpressionActionListener.saveState
- - ( FacesContext )
Both - MethodExpression instances described in the constructor must be saved. - - true
-
true
JSF:JAVADOC:1831voidjakarta.faces.event.MethodExpressionActionListener.setTransient
- - ( boolean )
Denotes - whether or not the Object implementing this interface must or must not - participate in state saving or restoring. true
-
true
JSF:JAVADOC:1832booleanjakarta.faces.event.MethodExpressionValueChangeListener.isTransient
-
If - true, the Object implementing this interface must not participate in - state saving or restoring. true
-
true
JSF:JAVADOC:1833MethodExpressionValueChangeListenerjakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener
-

-
true
-
true
JSF:JAVADOC:1834MethodExpressionValueChangeListenerjakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener
- - ( MethodExpression )
- - - - Construct a ValueChangeListener that contains a MethodExpression.To - accomodate method expression targets that take no arguments instead of - taking a ValueChangeEvent argument, the implementation of this class - must take the argument methodExpressionOneArg, extract its expression - string, and create another MethodExpression whose expected param types - match those of a zero argument method. The usage requirements for both - of these MethodExpression instances are described in - #processValueChange. true
-
true
JSF:JAVADOC:1835MethodExpressionValueChangeListenerjakarta.faces.event.MethodExpressionValueChangeListener.MethodExpressionValueChangeListener
- - ( MethodExpression ,
- MethodExpression )
- - - Construct a ValueChangeListener that contains a MethodExpression. true
-
true
JSF:JAVADOC:1836voidjakarta.faces.event.MethodExpressionValueChangeListener.processValueChange
- - ( ValueChangeEvent )
Call - through to the MethodExpression passed in our constructor. First, try - to invoke the MethodExpression passed to the constructor of this - instance, passing the argument ValueChangeEvent as the argument. If a - MethodNotFoundException is thrown, call to the zero argument - MethodExpression derived from the MethodExpression passed to the - constructor of this instance. If that fails for any reason, throw an - AbortProcessingException, including the cause of the failure. true
-
true
JSF:JAVADOC:1837voidjakarta.faces.event.MethodExpressionValueChangeListener.processValueChange
- - ( ValueChangeEvent )
- throws AbortProcessingException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1838voidjakarta.faces.event.MethodExpressionValueChangeListener.processValueChange
- - ( ValueChangeEvent )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:1839voidjakarta.faces.event.MethodExpressionValueChangeListener.restoreState
- - ( FacesContext ,
- Object )
Both - MethodExpression instances described in the constructor must be - restored. true
-
true
JSF:JAVADOC:1840Objectjakarta.faces.event.MethodExpressionValueChangeListener.saveState
- - ( FacesContext )
Both - MethodExpression instances described in the constructor must be saved. - - true
-
true
JSF:JAVADOC:1841voidjakarta.faces.event.MethodExpressionValueChangeListener.setTransient
- - ( boolean )
Denotes - whether or not the Object implementing this interface must or must not - participate in state saving or restoring. true
-
true
JSF:JAVADOC:1842Stringjakarta.faces.event.NamedEvent.shortName
-
The - value of this annotation attribute is taken to be the short name for - the jakarta.faces.event.ComponentSystemEvent. If the value of this - attribute is ommitted, the following algorithm must be used by the - code that processes this annotation to determine its value. Get the - unqualified class name (e.g., UserLoginEvent) Strip off the trailing - "Event", if present (e.g., UserLogin) Convert the first character to - lower-case (e.g., userLogin) Prepend the package name to the - lower-cased name. true
-
true
JSF:JAVADOC:1843FacesContextjakarta.faces.event.PhaseEvent.getFacesContext
-
Return - the FacesContext for the request being processed. true
-
true
JSF:JAVADOC:1844PhaseIdjakarta.faces.event.PhaseEvent.getPhaseId
-
Return - the PhaseId representing the current request processing lifecycle - phase. true
-
true
JSF:JAVADOC:1845PhaseEventjakarta.faces.event.PhaseEvent.PhaseEvent
- - ( FacesContext ,
- PhaseId ,
- Lifecycle )
- Construct a new event object from the specified parameters. The - specified Lifecycle will be the source of this event. true
-
true
JSF:JAVADOC:1846intjakarta.faces.event.PhaseId.compareTo
- - ( Object )
Compare - this PhaseId instance to the specified one. Returns a negative - integer, zero, or a positive integer if this object is less than, - equal to, or greater than the specified object. true
-
true
JSF:JAVADOC:1847intjakarta.faces.event.PhaseId.getOrdinal
-
Return - the ordinal value of this PhaseId instance. true
-
true
JSF:JAVADOC:1848Stringjakarta.faces.event.PhaseId.toString
-
Return - a String representation of this PhaseId instance. true
-
true
JSF:JAVADOC:1849voidjakarta.faces.event.PhaseListener.afterPhase
- - ( PhaseEvent )
Handle - a notification that the processing for a particular phase has just - been completed. true
-
true
JSF:JAVADOC:1850voidjakarta.faces.event.PhaseListener.beforePhase
- - ( PhaseEvent )
Handle - a notification that the processing for a particular phase of the - request processing lifecycle is about to begin. true
-
true
JSF:JAVADOC:1851PhaseIdjakarta.faces.event.PhaseListener.getPhaseId
-
Return - the identifier of the request processing phase during which this - listener is interested in processing PhaseEvent events. Legal values - are the singleton instances defined by the PhaseId class, including - PhaseId.ANY_PHASE to indicate an interest in being notified for all - standard phases. true
-
true
JSF:JAVADOC:1852booleanjakarta.faces.event.PostAddToViewEvent.isAppropriateListener
- - ( FacesListener )
Returns - true if and only if the argument listener is an instance of - SystemEventListener. true
-
true
JSF:JAVADOC:1853PostAddToViewEventjakarta.faces.event.PostAddToViewEvent.PostAddToViewEvent
- - ( UIComponent )
- Instantiate a new PostAddToViewEvent that indicates the argument - component was just added to the view. true
-
true
JSF:JAVADOC:1854PostAddToViewNonPDLEventjakarta.faces.event.PostAddToViewNonPDLEvent.PostAddToViewNonPDLEvent
- - ( UIComponent )
- Instantiate a new PostAddToViewNonPDLEvent that indicates the argument - component was just added to the view. This constructor is only - intended to be called to represent events that happen outside of the - restore view phase. true
-
true
JSF:JAVADOC:1855Applicationjakarta.faces.event.PostConstructApplicationEvent.getApplication
-
The - source Application that sent this event. true
-
true
JSF:JAVADOC:1856PostConstructApplicationEventjakarta.faces.event.PostConstructApplicationEvent.PostConstructApplicationEvent
- - ( Application )
- Constructs a new AppliationPostConstructEvent for this application. true
-
true
JSF:JAVADOC:1857ScopeContextjakarta.faces.event.PostConstructCustomScopeEvent.getContext
-
Return - the ScopeContext for this event. true
-
true
JSF:JAVADOC:1858PostConstructCustomScopeEventjakarta.faces.event.PostConstructCustomScopeEvent.PostConstructCustomScopeEvent
- - ( ScopeContext )
An - instance of this event indicates that the custom scope enclosed within - the argument scopeContext was just created. true
-
true
JSF:JAVADOC:1859PostConstructViewMapEventjakarta.faces.event.PostConstructViewMapEvent.PostConstructViewMapEvent
- - ( UIViewRoot )
- Instantiate a new PostConstructViewMapEvent that indicates the - argument root was just associated with its view map. true
-
true
JSF:JAVADOC:1860PostRestoreStateEventjakarta.faces.event.PostRestoreStateEvent.PostRestoreStateEvent
- - ( UIComponent )
- Instantiate a new PostRestoreStateEvent that indicates the argument - component just had its state restored. true
-
true
JSF:JAVADOC:1861voidjakarta.faces.event.PostRestoreStateEvent.setComponent
- - ( UIComponent )

-
true
-
true
JSF:JAVADOC:1862PostValidateEventjakarta.faces.event.PostValidateEvent.PostValidateEvent
- - ( UIComponent )

-
true
-
true
JSF:JAVADOC:1863Applicationjakarta.faces.event.PreDestroyApplicationEvent.getApplication
-
The - source Application that sent this event. true
-
true
JSF:JAVADOC:1864PreDestroyApplicationEventjakarta.faces.event.PreDestroyApplicationEvent.PreDestroyApplicationEvent
- - ( Application )
- Constructs a new PreDestroyApplicationEvent for this application. true
-
true
JSF:JAVADOC:1865ScopeContextjakarta.faces.event.PreDestroyCustomScopeEvent.getContext
-
Return - the ScopeContext for this event. true
-
true
JSF:JAVADOC:1866PreDestroyCustomScopeEventjakarta.faces.event.PreDestroyCustomScopeEvent.PreDestroyCustomScopeEvent
- - ( ScopeContext )
An - instance of this event indicates that the custom scope enclosed within - the argument scopeContext is about to end. true
-
true
JSF:JAVADOC:1867PreDestroyViewMapEventjakarta.faces.event.PreDestroyViewMapEvent.PreDestroyViewMapEvent
- - ( UIViewRoot )
- Instantiate a new ViewMapDestroydEvent that indicates the argument - root just had its associated view map destroyed. true
-
true
JSF:JAVADOC:1868booleanjakarta.faces.event.PreRemoveFromViewEvent.isAppropriateListener
- - ( FacesListener )
Returns - true if and only if the argument listener is an instance of - SystemEventListener. true
-
true
JSF:JAVADOC:1869PreRemoveFromViewEventjakarta.faces.event.PreRemoveFromViewEvent.PreRemoveFromViewEvent
- - ( UIComponent )
- Instantiate a new BeforeRemoveFromView that indicates the argument - component is about to be removed from the view. true
-
true
JSF:JAVADOC:1870PreRenderComponentEventjakarta.faces.event.PreRenderComponentEvent.PreRenderComponentEvent
- - ( UIComponent )
- Instantiate a new PreRenderComponentEvent that indicates the argument - component is about to be rendered. true
-
true
JSF:JAVADOC:1871PreRenderViewEventjakarta.faces.event.PreRenderViewEvent.PreRenderViewEvent
- - ( UIViewRoot )
- Instantiate a new PreRenderViewEvent that indicates the argument root - is about to be rendered. true
-
true
JSF:JAVADOC:1872PreValidateEventjakarta.faces.event.PreValidateEvent.PreValidateEvent
- - ( UIComponent )

-
true
-
true
JSF:JAVADOC:1873Mapjakarta.faces.event.ScopeContext.getScope
-
Return - the scope itself, exposed as a Map. true
-
true
JSF:JAVADOC:1874Stringjakarta.faces.event.ScopeContext.getScopeName
-
Return - the name of this custom scope. true
-
true
JSF:JAVADOC:1875ScopeContextjakarta.faces.event.ScopeContext.ScopeContext
- - ( String ,
- Map )
- Construct this structure with the supplied arguments. true
-
true
JSF:JAVADOC:1876booleanjakarta.faces.event.SystemEvent.isAppropriateListener
- - ( FacesListener )
Return - true if this FacesListener is an instance of a the appropriate - listener class that this event supports. true
-
true
JSF:JAVADOC:1877voidjakarta.faces.event.SystemEvent.processListener
- - ( FacesListener )
- - Broadcast this event instance to the specified FacesListener, by - whatever mechanism is appropriate. Typically, this will be - accomplished by calling an event processing method, and passing this - instance as a paramter. true
-
true
JSF:JAVADOC:1878voidjakarta.faces.event.SystemEvent.processListener
- - ( FacesListener )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1879SystemEventjakarta.faces.event.SystemEvent.SystemEvent
- - ( Object )
Pass - the argument source to the superclass constructor. true
-
true
JSF:JAVADOC:1880booleanjakarta.faces.event.SystemEventListener.isListenerForSource
- - ( Object )
This - method must return true if and only if this listener instance is - interested in receiving events from the instance referenced by the - source parameter. true
-
true
JSF:JAVADOC:1881voidjakarta.faces.event.SystemEventListener.processEvent
- - ( SystemEvent )
When - called, the listener can assume that any guarantees given in the - javadoc for the specific SystemEvent subclass are true. true
-
true
JSF:JAVADOC:1882voidjakarta.faces.event.SystemEventListener.processEvent
- - ( SystemEvent )
- throws AbortProcessingException
-
if - lifecycle processing should cease for this request.true
-
true
JSF:JAVADOC:1883Listjakarta.faces.event.SystemEventListenerHolder.getListenersForEventClass
- - ( Class )
Return - a List of SystemEventListener instances that have been installed into - the class implementing this interface. true
-
true
JSF:JAVADOC:1884Objectjakarta.faces.event.ValueChangeEvent.getNewValue
-
Return - the current local value of the source UIComponent. true
-
true
JSF:JAVADOC:1885Objectjakarta.faces.event.ValueChangeEvent.getOldValue
-
Return - the previous local value of the source UIComponent. true
-
true
JSF:JAVADOC:1886booleanjakarta.faces.event.ValueChangeEvent.isAppropriateListener
- - ( FacesListener )
Return - true if this FacesListener is an instance of a listener class that - this event supports. Typically, this will be accomplished by an - "instanceof" check on the listener class. true
-
true
JSF:JAVADOC:1887voidjakarta.faces.event.ValueChangeEvent.processListener
- - ( FacesListener )
- - - Broadcast this FacesEvent to the specified FacesListener, by whatever - mechanism is appropriate. Typically, this will be accomplished by - calling an event processing method, and passing this FacesEvent as a - paramter. true
-
true
JSF:JAVADOC:1888voidjakarta.faces.event.ValueChangeEvent.processListener
- - ( FacesListener )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1889ValueChangeEventjakarta.faces.event.ValueChangeEvent.ValueChangeEvent
- - ( UIComponent ,
- Object ,
- Object )
- Construct a new event object from the specified source component, old - value, and new value. The default PhaseId for this event is - PhaseId#ANY_PHASE. true
-
true
JSF:JAVADOC:1890voidjakarta.faces.event.ValueChangeListener.processValueChange
- - ( ValueChangeEvent )
Invoked - when the value change described by the specified ValueChangeEvent - occurs. true
-
true
JSF:JAVADOC:1891voidjakarta.faces.event.ValueChangeListener.processValueChange
- - ( ValueChangeEvent )
- throws AbortProcessingException
-
Signal - the Jakarta Server Faces implementation that no further processing on the - current event should be performedtrue
-
true
JSF:JAVADOC:1892voidjakarta.faces.lifecycle.Lifecycle.addPhaseListener
- - ( PhaseListener )
- - Register a new PhaseListener instance that is interested in being - notified before and after the processing for standard phases of the - request processing lifecycle. true
-
true
JSF:JAVADOC:1893voidjakarta.faces.lifecycle.Lifecycle.addPhaseListener
- - ( PhaseListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:1894voidjakarta.faces.lifecycle.Lifecycle.execute
- - ( FacesContext )
Execute - all of the phases of the request processing lifecycle, up to but not - including the Render Response phase, as described in the Jakarta Server - Faces Specification, in the specified order. The processing flow can - be affected (by the application, by components, or by event listeners) - by calls to the renderResponse() or responseComplete() methods of the - FacesContext instance associated with the current request. true
-
true
JSF:JAVADOC:1895voidjakarta.faces.lifecycle.Lifecycle.execute
- - ( FacesContext )
- throws FacesException
-
if - thrown during the execution of the request processing lifecycletrue
-
true
JSF:JAVADOC:1896voidjakarta.faces.lifecycle.Lifecycle.execute
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:1897PhaseListener[]jakarta.faces.lifecycle.Lifecycle.getPhaseListeners
-
Return - the set of registered PhaseListeners for this Lifecycle instance. If - there are no registered listeners, a zero-length array is returned. true
-
true
JSF:JAVADOC:1898Lifecyclejakarta.faces.lifecycle.Lifecycle.Lifecycle
-

-
true
-
true
JSF:JAVADOC:1899voidjakarta.faces.lifecycle.Lifecycle.removePhaseListener
- - ( PhaseListener )
- - Deregister an existing PhaseListener instance that is no longer - interested in being notified before and after the processing for - standard phases of the request processing lifecycle. If no such - listener instance has been registered, no action is taken. true
-
true
JSF:JAVADOC:1900voidjakarta.faces.lifecycle.Lifecycle.removePhaseListener
- - ( PhaseListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:1901voidjakarta.faces.lifecycle.Lifecycle.render
- - ( FacesContext )
Execute - the Render Response phase of the request processing lifecycle, unless - the responseComplete() method has been called on the FacesContext - instance associated with the current request. true
-
true
JSF:JAVADOC:1902voidjakarta.faces.lifecycle.Lifecycle.render
- - ( FacesContext )
- throws FacesException
-
if an - exception is thrown during the execution of the request processing - lifecycletrue
-
true
JSF:JAVADOC:1903voidjakarta.faces.lifecycle.Lifecycle.render
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:1904voidjakarta.faces.lifecycle.LifecycleFactory.addLifecycle
- - ( String ,
- Lifecycle )
- - Register a new Lifecycle instance, associated with the specified - lifecycleId, to be supported by this LifecycleFactory. This method may - be called at any time, and makes the corresponding Lifecycle instance - available throughout the remaining lifetime of this web application. true
-
true
JSF:JAVADOC:1905voidjakarta.faces.lifecycle.LifecycleFactory.addLifecycle
- - ( String ,
- Lifecycle )
- throws IllegalArgumentException
-
if a - Lifecycle with the specified lifecycleId has already been registeredtrue
-
true
JSF:JAVADOC:1906voidjakarta.faces.lifecycle.LifecycleFactory.addLifecycle
- - ( String ,
- Lifecycle )
- throws NullPointerException
-
if - lifecycleId or lifecycle is nulltrue
-
true
JSF:JAVADOC:1907Lifecyclejakarta.faces.lifecycle.LifecycleFactory.getLifecycle
- - ( String )
Create - (if needed) and return a Lifecycle instance for the specified - lifecycle identifier. The set of available lifecycle identifiers is - available via the getLifecycleIds() method. Each call to - getLifecycle() for the same lifecycleId, from within the same web - application, must return the same Lifecycle instance. true
-
true
JSF:JAVADOC:1908Lifecyclejakarta.faces.lifecycle.LifecycleFactory.getLifecycle
- - ( String )
- throws IllegalArgumentException
-
if no - Lifecycle instance can be returned for the specified identifiertrue
-
true
JSF:JAVADOC:1909Lifecyclejakarta.faces.lifecycle.LifecycleFactory.getLifecycle
- - ( String )
- throws NullPointerException
-
if - lifecycleId is nulltrue
-
true
JSF:JAVADOC:1910Iteratorjakarta.faces.lifecycle.LifecycleFactory.getLifecycleIds
-
Return - an Iterator over the set of lifecycle identifiers supported by this - factory. This set must include the value specified by - LifecycleFactory.DEFAULT_LIFECYCLE. true
-
true
JSF:JAVADOC:1911LifecycleFactoryjakarta.faces.lifecycle.LifecycleFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:1912LifecycleFactoryjakarta.faces.lifecycle.LifecycleFactory.LifecycleFactory
-

-
true
-
true
JSF:JAVADOC:1913ArrayDataModeljakarta.faces.model.ArrayDataModel.ArrayDataModel
-
- - Construct a new ArrayDataModel with no specified wrapped data. true
-
true
JSF:JAVADOC:1914ArrayDataModeljakarta.faces.model.ArrayDataModel.ArrayDataModel
- - ( Object[] )
- - Construct a new ArrayDataModel wrapping the specified array. true
-
true
JSF:JAVADOC:1915intjakarta.faces.model.ArrayDataModel.getRowCount
-
If - there is wrappedData available, return the length of the array. If no - wrappedData is available, return -1. true
-
true
JSF:JAVADOC:1916intjakarta.faces.model.ArrayDataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:1917Objectjakarta.faces.model.ArrayDataModel.getRowData
-
If row - data is available, return the array element at the index specified by - rowIndex. If no wrapped data is available, return null. true
-
true
JSF:JAVADOC:1918Objectjakarta.faces.model.ArrayDataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:1919Objectjakarta.faces.model.ArrayDataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:1920intjakarta.faces.model.ArrayDataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1921intjakarta.faces.model.ArrayDataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:1922Objectjakarta.faces.model.ArrayDataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:1923booleanjakarta.faces.model.ArrayDataModel.isRowAvailable
-
Return - true if there is wrappedData available, and the current value of - rowIndex is greater than or equal to zero, and less than the length of - the array. Otherwise, return false. true
-
true
JSF:JAVADOC:1924booleanjakarta.faces.model.ArrayDataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:1925voidjakarta.faces.model.ArrayDataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:1926voidjakarta.faces.model.ArrayDataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:1927voidjakarta.faces.model.ArrayDataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:1928voidjakarta.faces.model.ArrayDataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:1929voidjakarta.faces.model.ArrayDataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:1930voidjakarta.faces.model.DataModel.addDataModelListener
- - ( DataModelListener )
Add a - new DataModelListener to the set interested in notifications from this - DataModel. true
-
true
JSF:JAVADOC:1931voidjakarta.faces.model.DataModel.addDataModelListener
- - ( DataModelListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:1932DataModeljakarta.faces.model.DataModel.DataModel
-

-
true
-
true
JSF:JAVADOC:1933DataModelListener[]jakarta.faces.model.DataModel.getDataModelListeners
-
Return - the set of DataModelListeners interested in notifications from this - DataModel. If there are no such listeners, an empty array is returned. - true
-
true
JSF:JAVADOC:1934intjakarta.faces.model.DataModel.getRowCount
-
Return - the number of rows of data objects represented by this DataModel. If - the number of rows is unknown, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1935intjakarta.faces.model.DataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:1936Objectjakarta.faces.model.DataModel.getRowData
-
Return - an object representing the data for the currenty selected row index. - If no wrappedData is available, return null. true
-
true
JSF:JAVADOC:1937Objectjakarta.faces.model.DataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:1938Objectjakarta.faces.model.DataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:1939intjakarta.faces.model.DataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1940intjakarta.faces.model.DataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:1941Objectjakarta.faces.model.DataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:1942booleanjakarta.faces.model.DataModel.isRowAvailable
-
Return - a flag indicating whether there is rowData available at the current - rowIndex. If no wrappedData is available, return false. true
-
true
JSF:JAVADOC:1943booleanjakarta.faces.model.DataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:1944Iteratorjakarta.faces.model.DataModel.iterator
-
Return - a read-only Iterator over the row data for this model. true
-
true
JSF:JAVADOC:1945voidjakarta.faces.model.DataModel.removeDataModelListener
- - ( DataModelListener )
Remove - an existing DataModelListener from the set interested in notifications - from this DataModel. true
-
true
JSF:JAVADOC:1946voidjakarta.faces.model.DataModel.removeDataModelListener
- - ( DataModelListener )
- throws NullPointerException
-
if - listener is nulltrue
-
true
JSF:JAVADOC:1947voidjakarta.faces.model.DataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:1948voidjakarta.faces.model.DataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:1949voidjakarta.faces.model.DataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:1950voidjakarta.faces.model.DataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:1951voidjakarta.faces.model.DataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:1952DataModelEventjakarta.faces.model.DataModelEvent.DataModelEvent
- - ( DataModel ,
- int ,
- Object )
- Construct an event object that is associated with the specified row - index and associated data. true
-
true
JSF:JAVADOC:1953DataModeljakarta.faces.model.DataModelEvent.getDataModel
-
Return - the DataModel that fired this event. true
-
true
JSF:JAVADOC:1954Objectjakarta.faces.model.DataModelEvent.getRowData
-
Return - the object representing the data for the specified row index, or null - for no associated row data. true
-
true
JSF:JAVADOC:1955intjakarta.faces.model.DataModelEvent.getRowIndex
-
Return - the row index for this event, or -1 for no specific row. true
-
true
JSF:JAVADOC:1956voidjakarta.faces.model.DataModelListener.rowSelected
- - ( DataModelEvent )
- Notification that a particular row index, with the associated row - data, has been selected for processing. true
-
true
JSF:JAVADOC:1957intjakarta.faces.model.ListDataModel.getRowCount
-
If - there is wrappedData available, return the length of the list. If no - wrappedData is available, return -1. true
-
true
JSF:JAVADOC:1958intjakarta.faces.model.ListDataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:1959Objectjakarta.faces.model.ListDataModel.getRowData
-
If row - data is available, return the array element at the index specified by - rowIndex. If no wrapped data is available, return null. true
-
true
JSF:JAVADOC:1960Objectjakarta.faces.model.ListDataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:1961Objectjakarta.faces.model.ListDataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:1962intjakarta.faces.model.ListDataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1963intjakarta.faces.model.ListDataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:1964Objectjakarta.faces.model.ListDataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:1965booleanjakarta.faces.model.ListDataModel.isRowAvailable
-
Return - true if there is wrappedData available, and the current value of - rowIndex is greater than or equal to zero, and less than the size of - the list. Otherwise, return false. true
-
true
JSF:JAVADOC:1966booleanjakarta.faces.model.ListDataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:1967ListDataModeljakarta.faces.model.ListDataModel.ListDataModel
-
- - Construct a new ListDataModel with no specified wrapped data. true
-
true
JSF:JAVADOC:1968ListDataModeljakarta.faces.model.ListDataModel.ListDataModel
- - ( List )
- - Construct a new ListDataModel wrapping the specified list. true
-
true
JSF:JAVADOC:1969voidjakarta.faces.model.ListDataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:1970voidjakarta.faces.model.ListDataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:1971voidjakarta.faces.model.ListDataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:1972voidjakarta.faces.model.ListDataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:1973voidjakarta.faces.model.ListDataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:1974intjakarta.faces.model.ResultDataModel.getRowCount
-
If - there is wrappedData available, return the length of the array - returned by calling getRows() on the underlying Result. If no - wrappedData is available, return -1. true
-
true
JSF:JAVADOC:1975intjakarta.faces.model.ResultDataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:1976SortedMapjakarta.faces.model.ResultDataModel.getRowData
-
If row - data is available, return the SortedMap array element at the index - specified by rowIndex of the array returned by calling getRows() on - the underlying Result. If no wrapped data is available, return null. - Note that, if a non-null Map is returned by this method, it will - contain the values of the columns for the current row, keyed by column - name. Column name comparisons must be performed in a case-insensitive - manner. true
-
true
JSF:JAVADOC:1977SortedMapjakarta.faces.model.ResultDataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:1978SortedMapjakarta.faces.model.ResultDataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:1979intjakarta.faces.model.ResultDataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1980intjakarta.faces.model.ResultDataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:1981Objectjakarta.faces.model.ResultDataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:1982booleanjakarta.faces.model.ResultDataModel.isRowAvailable
-
Return - true if there is wrappedData available, and the current value of - rowIndex is greater than or equal to zero, and less than the length of - the array returned by calling getRows() on the underlying Result. - Otherwise, return false. true
-
true
JSF:JAVADOC:1983booleanjakarta.faces.model.ResultDataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:1984ResultDataModeljakarta.faces.model.ResultDataModel.ResultDataModel
-
- - Construct a new ResultDataModel with no specified wrapped data. true
-
true
JSF:JAVADOC:1985ResultDataModeljakarta.faces.model.ResultDataModel.ResultDataModel
- - ( Result )
- - Construct a new ResultDataModel wrapping the specified Result. true
-
true
JSF:JAVADOC:1986voidjakarta.faces.model.ResultDataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:1987voidjakarta.faces.model.ResultDataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:1988voidjakarta.faces.model.ResultDataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:1989voidjakarta.faces.model.ResultDataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:1990voidjakarta.faces.model.ResultDataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:1991intjakarta.faces.model.ResultSetDataModel.getRowCount
-
Return - -1, since ResultSet does not provide a standard way to determine the - number of available rows without scrolling through the entire - ResultSet, and this can be very expensive if the number of rows is - large. true
-
true
JSF:JAVADOC:1992intjakarta.faces.model.ResultSetDataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:1993Mapjakarta.faces.model.ResultSetDataModel.getRowData
-
If row - data is available, return a Map representing the values of the columns - for the row specified by rowIndex, keyed by the corresponding column - names. If no wrapped data is available, return null. If a non-null Map - is returned, its behavior must correspond to the contract for a - mutable Map as described in the JavaDocs for AbstractMap, with the - following exceptions and specialized behavior: The Map, and any - supporting objects it returns, must perform all column name - comparisons in a case-insensitive manner. This case-insensitivity must - be implemented using a case-insensitive Comparator, such as - String.CASE_INSENSITIVE_ORDER. The following methods must throw - UnsupportedOperationException: clear(), remove(). The entrySet() - method must return a Set that has the following behavior: Throw - UnsupportedOperationException for any attempt to add or remove entries - from the Set, either directly or indirectly through an Iterator - returned by the Set. Updates to the value of an entry in this set must - write through to the corresponding column value in the underlying - ResultSet. The keySet() method must return a Set that throws - UnsupportedOperationException on any attempt to add or remove keys, - either directly or through an Iterator returned by the Set. The put() - method must throw IllegalArgumentException if a key value for which - containsKey() returns false is specified. However, if a key already - present in the Map is specified, the specified value must write - through to the corresponding column value in the underlying ResultSet. - The values() method must return a Collection that throws - UnsupportedOperationException on any attempt to add or remove values, - either directly or through an Iterator returned by the Collection. true
-
true
JSF:JAVADOC:1994Mapjakarta.faces.model.ResultSetDataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:1995Mapjakarta.faces.model.ResultSetDataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:1996intjakarta.faces.model.ResultSetDataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:1997intjakarta.faces.model.ResultSetDataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:1998Objectjakarta.faces.model.ResultSetDataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:1999booleanjakarta.faces.model.ResultSetDataModel.isRowAvailable
-
Return - true if there is wrappedData available, and the result of calling - absolute() on the underlying ResultSet, passing the current value of - rowIndex plus one (to account for the fact that ResultSet uses - one-relative indexing), returns true. Otherwise, return false. true
-
true
JSF:JAVADOC:2000booleanjakarta.faces.model.ResultSetDataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:2001ResultSetDataModeljakarta.faces.model.ResultSetDataModel.ResultSetDataModel
-
- - Construct a new ResultSetDataModel with no specified wrapped data. true
-
true
JSF:JAVADOC:2002ResultSetDataModeljakarta.faces.model.ResultSetDataModel.ResultSetDataModel
- - ( ResultSet )
- - Construct a new ResultSetDataModel wrapping the specified ResultSet. true
-
true
JSF:JAVADOC:2003voidjakarta.faces.model.ResultSetDataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:2004voidjakarta.faces.model.ResultSetDataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:2005voidjakarta.faces.model.ResultSetDataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:2006voidjakarta.faces.model.ResultSetDataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:2007voidjakarta.faces.model.ResultSetDataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:2008intjakarta.faces.model.ScalarDataModel.getRowCount
-
If - there is wrappedData available, return 1. If no wrappedData is - available, return -1. true
-
true
JSF:JAVADOC:2009intjakarta.faces.model.ScalarDataModel.getRowCount
-
- throws FacesException
-
if an - error occurs getting the row counttrue
-
true
JSF:JAVADOC:2010Objectjakarta.faces.model.ScalarDataModel.getRowData
-
If - wrapped data is available, return the wrapped data instance. - Otherwise, return null. true
-
true
JSF:JAVADOC:2011Objectjakarta.faces.model.ScalarDataModel.getRowData
-
- throws FacesException
-
if an - error occurs getting the row datatrue
-
true
JSF:JAVADOC:2012Objectjakarta.faces.model.ScalarDataModel.getRowData
-
- throws IllegalArgumentException
-
if now - row data is available at the currently specified row indextrue
-
true
JSF:JAVADOC:2013intjakarta.faces.model.ScalarDataModel.getRowIndex
-
Return - the zero-relative index of the currently selected row. If we are not - currently positioned on a row, or no wrappedData is available, return - -1. true
-
true
JSF:JAVADOC:2014intjakarta.faces.model.ScalarDataModel.getRowIndex
-
- throws FacesException
-
if an - error occurs getting the row indextrue
-
true
JSF:JAVADOC:2015Objectjakarta.faces.model.ScalarDataModel.getWrappedData
-
Return - the object representing the data wrapped by this DataModel, if any. true
-
true
JSF:JAVADOC:2016booleanjakarta.faces.model.ScalarDataModel.isRowAvailable
-
Return - true if there is wrappedData available, and the current value of - rowIndex is zero. Otherwise, return false. true
-
true
JSF:JAVADOC:2017booleanjakarta.faces.model.ScalarDataModel.isRowAvailable
-
- throws FacesException
-
if an - error occurs getting the row availabilitytrue
-
true
JSF:JAVADOC:2018ScalarDataModeljakarta.faces.model.ScalarDataModel.ScalarDataModel
-
- - Construct a new ScalarDataModel with no specified wrapped data. true
-
true
JSF:JAVADOC:2019ScalarDataModeljakarta.faces.model.ScalarDataModel.ScalarDataModel
- - ( Object )
- - Construct a new ScalarDataModel wrapping the specified scalar object. - - true
-
true
JSF:JAVADOC:2020voidjakarta.faces.model.ScalarDataModel.setRowIndex
- - ( int )
Set the - zero-relative index of the currently selected row, or -1 to indicate - that we are not positioned on a row. It is possible to set the row - index at a value for which the underlying data collection does not - contain any row data. Therefore, callers may use the isRowAvailable() - method to detect whether row data will be available for use by the - getRowData() method. If there is no wrappedData available when this - method is called, the specified rowIndex is stored (and may be - retrieved by a subsequent call to getRowData()), but no event is sent. - Otherwise, if the currently selected row index is changed by this - call, a DataModelEvent will be sent to the rowSelected() method of all - registered DataModelListeners. true
-
true
JSF:JAVADOC:2021voidjakarta.faces.model.ScalarDataModel.setRowIndex
- - ( int )
- throws FacesException
-
if an - error occurs setting the row indextrue
-
true
JSF:JAVADOC:2022voidjakarta.faces.model.ScalarDataModel.setRowIndex
- - ( int )
- throws IllegalArgumentException
-
if - rowIndex is less than -1true
-
true
JSF:JAVADOC:2023voidjakarta.faces.model.ScalarDataModel.setWrappedData
- - ( Object )
Set the - object representing the data collection wrapped by this DataModel. If - the specified data is null, detach this DataModel from any previously - wrapped data collection instead. If data is non-null, the currently - selected row index must be set to zero, and a DataModelEvent must be - sent to the rowSelected() method of all registered DataModelListeners - indicating that this row is now selected. true
-
true
JSF:JAVADOC:2024voidjakarta.faces.model.ScalarDataModel.setWrappedData
- - ( Object )
- throws ClassCastException
-
if data - is not of the appropriate type for this DataModel implementationtrue
-
true
JSF:JAVADOC:2025Stringjakarta.faces.model.SelectItem.getDescription
-
Return - a description of this item, for use in development tools. true
-
true
JSF:JAVADOC:2026Stringjakarta.faces.model.SelectItem.getLabel
-
Return - the label of this item, to be rendered visibly for the user. true
-
true
JSF:JAVADOC:2027Objectjakarta.faces.model.SelectItem.getValue
-
Return - the value of this item, to be delivered to the model if this item is - selected by the user. true
-
true
JSF:JAVADOC:2028booleanjakarta.faces.model.SelectItem.isDisabled
-
Return - the disabled flag for this item, which should modify the rendered - output to make this item unavailable for selection by the user if set - to true. true
-
true
JSF:JAVADOC:2029booleanjakarta.faces.model.SelectItem.isEscape
-
If and - only if this returns true, the code that renders this select item must - escape the label using escaping syntax appropriate to the content type - being rendered. true
-
true
JSF:JAVADOC:2030booleanjakarta.faces.model.SelectItem.isNoSelectionOption
-
Return - the value of the noSelectionOption property. If the value of this - property is true, the system interprets the option represented by this - SelectItem instance as representing a "no selection" option. See - UISelectOne#validateValue and UISelectMany#validateValue for usage. true
-
true
JSF:JAVADOC:2031SelectItemjakarta.faces.model.SelectItem.SelectItem
-
- Construct a SelectItem with no initialized property values. true
-
true
JSF:JAVADOC:2032SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object )
- Construct a SelectItem with the specified value. The label property - will be set to the value (converted to a String, if necessary), the - description property will be set to null, the disabled property will - be set to false, and the escape property will be set to ( true. true
-
true
JSF:JAVADOC:2033SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object ,
- String )
- Construct a SelectItem with the specified value and label. The - description property will be set to null, the disabled property will - be set to false, and the escape property will be set to true. true
-
true
JSF:JAVADOC:2034SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object ,
- String ,
- String )
- Construct a SelectItem instance with the specified value, label and - description. This disabled property will be set to false, and the - escape property will be set to true. true
-
true
JSF:JAVADOC:2035SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object ,
- String ,
- String ,
- boolean )
- Construct a SelectItem instance with the specified property values. - The escape property will be set to true. true
-
true
JSF:JAVADOC:2036SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object ,
- String ,
- String ,
- boolean ,
- boolean )
- Construct a SelectItem instance with the specified property values. true
-
true
JSF:JAVADOC:2037SelectItemjakarta.faces.model.SelectItem.SelectItem
- - ( Object ,
- String ,
- String ,
- boolean ,
- boolean ,
- boolean )
- Construct a SelectItem instance with the specified property values. true
-
true
JSF:JAVADOC:2038voidjakarta.faces.model.SelectItem.setDescription
- - ( String )
Set the - description of this item, for use in development tools. true
-
true
JSF:JAVADOC:2039voidjakarta.faces.model.SelectItem.setDisabled
- - ( boolean )
Set the - disabled flag for this item, which should modify the rendered output - to make this item unavailable for selection by the user if set to - true. true
-
true
JSF:JAVADOC:2040voidjakarta.faces.model.SelectItem.setEscape
- - ( boolean )
Set the - value of the escape property. See #isEscape. true
-
true
JSF:JAVADOC:2041voidjakarta.faces.model.SelectItem.setLabel
- - ( String )
Set the - label of this item, to be rendered visibly for the user. true
-
true
JSF:JAVADOC:2042voidjakarta.faces.model.SelectItem.setNoSelectionOption
- - ( boolean )
Set the - value of the noSelectionOption property. true
-
true
JSF:JAVADOC:2043voidjakarta.faces.model.SelectItem.setValue
- - ( Object )
Set the - value of this item, to be delivered to the model if this item is - selected by this user. true
-
true
JSF:JAVADOC:2044SelectItem[]jakarta.faces.model.SelectItemGroup.getSelectItems
-
Return - the set of subordinate SelectItems for this group. true
-
true
JSF:JAVADOC:2045SelectItemGroupjakarta.faces.model.SelectItemGroup.SelectItemGroup
-
- Construct a SelectItemGroup with no initialized property values. true
-
true
JSF:JAVADOC:2046SelectItemGroupjakarta.faces.model.SelectItemGroup.SelectItemGroup
- - ( String )
- Construct a SelectItemGroup with the specified label and no associated - selectItems. The value property will be set to a zero-length String, - the description property will be set to null, and the disabled - property will be set to false. true
-
true
JSF:JAVADOC:2047SelectItemGroupjakarta.faces.model.SelectItemGroup.SelectItemGroup
- - ( String ,
- String ,
- boolean ,
- SelectItem[] )
- Construct a SelectItemGroup with the specified properties. The value - property will be set to a zero-length String. true
-
true
JSF:JAVADOC:2048voidjakarta.faces.model.SelectItemGroup.setSelectItems
- - ( SelectItem[] )
Set the - set of subordinate SelectItems for this group. true
-
true
JSF:JAVADOC:2049voidjakarta.faces.model.SelectItemGroup.setSelectItems
- - ( SelectItem[] )
- throws NullPointerException
-
if - selectItems is nulltrue
-
true
JSF:JAVADOC:2050ClientBehaviorRendererjakarta.faces.render.ClientBehaviorRenderer.ClientBehaviorRenderer
-

-
true
-
true
JSF:JAVADOC:2051voidjakarta.faces.render.ClientBehaviorRenderer.decode
- - ( FacesContext ,
- UIComponent ,
- ClientBehavior )
Decode - any new state of this ClientBehavior from the request contained in the - specified FacesContext. During decoding, events may be enqueued for - later processing (by event listeners who have registered an interest), - by calling queueEvent(). true
-
true
JSF:JAVADOC:2052voidjakarta.faces.render.ClientBehaviorRenderer.decode
- - ( FacesContext ,
- UIComponent ,
- ClientBehavior )
- throws NullPointerException
-
if - context, component behavior is nulltrue
-
true
JSF:JAVADOC:2053Stringjakarta.faces.render.ClientBehaviorRenderer.getScript
- - ( ClientBehaviorContext ,
- ClientBehavior )
Return - the script that implements this ClientBehavior's client-side logic. - The default implementation returns null. - ClientBehaviorRenderer.getScript() implementations are allowed to - return null to indicate that no script is required for this particular - getScript() call. For example, a ClientBehaviorRenderer implementation - may return null if the associated ClientBehavior is disabled. true
-
true
JSF:JAVADOC:2054Stringjakarta.faces.render.FacesBehaviorRenderer.rendererType
-

-
true
-
true
JSF:JAVADOC:2055Stringjakarta.faces.render.FacesBehaviorRenderer.renderKitId
-
The - value of this annotation attribute is taken to be the render-kit-id in - which an instance of this class of Renderer must be installed. true
-
true
JSF:JAVADOC:2056Stringjakarta.faces.render.FacesRenderer.componentFamily
-
The - value of this annotation attribute is taken to be the component-family - which, in combination with #rendererType can be used to obtain a - reference to an instance of this Renderer by calling - jakarta.faces.render.RenderKit#getRenderer(java.lang.String, - java.lang.String). true
-
true
JSF:JAVADOC:2057Stringjakarta.faces.render.FacesRenderer.rendererType
-
The - value of this annotation attribute is taken to be the renderer-type - which, in combination with #componentFamily can be used to obtain a - reference to an instance of this Renderer by calling - jakarta.faces.render.RenderKit#getRenderer(java.lang.String, - java.lang.String). true
-
true
JSF:JAVADOC:2058Stringjakarta.faces.render.FacesRenderer.renderKitId
-
The - value of this annotation attribute is taken to be the render-kit-id in - which an instance of this class of Renderer must be installed. true
-
true
JSF:JAVADOC:2059Stringjakarta.faces.render.Renderer.convertClientId
- - ( FacesContext ,
- String )
Convert - the component generated client id to a form suitable for transmission - to the client. The default implementation returns the argument - clientId unchanged. true
-
true
JSF:JAVADOC:2060Stringjakarta.faces.render.Renderer.convertClientId
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - context or clientId is nulltrue
-
true
JSF:JAVADOC:2061voidjakarta.faces.render.Renderer.decode
- - ( FacesContext ,
- UIComponent )
Decode - any new state of the specified UIComponent from the request contained - in the specified FacesContext, and store that state on the - UIComponent. During decoding, events may be enqueued for later - processing (by event listeners that have registered an interest), by - calling queueEvent() on the associated UIComponent. true
-
true
JSF:JAVADOC:2062voidjakarta.faces.render.Renderer.decode
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2063voidjakarta.faces.render.Renderer.encodeBegin
- - ( FacesContext ,
- UIComponent )
Render - the beginning specified UIComponent to the output stream or writer - associated with the response we are creating. If the conversion - attempted in a previous call to getConvertedValue() for this component - failed, the state information saved during execution of decode() - should be used to reproduce the incorrect input. true
-
true
JSF:JAVADOC:2064voidjakarta.faces.render.Renderer.encodeBegin
- - ( FacesContext ,
- UIComponent )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:2065voidjakarta.faces.render.Renderer.encodeBegin
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2066voidjakarta.faces.render.Renderer.encodeChildren
- - ( FacesContext ,
- UIComponent )
Render - the child components of this UIComponent, following the rules - described for encodeBegin() to acquire the appropriate value to be - rendered. This method will only be called if the rendersChildren - property of this component is true. true
-
true
JSF:JAVADOC:2067voidjakarta.faces.render.Renderer.encodeChildren
- - ( FacesContext ,
- UIComponent )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:2068voidjakarta.faces.render.Renderer.encodeChildren
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2069voidjakarta.faces.render.Renderer.encodeEnd
- - ( FacesContext ,
- UIComponent )
Render - the ending of the current state of the specified UIComponent, - following the rules described for encodeBegin() to acquire the - appropriate value to be rendered. true
-
true
JSF:JAVADOC:2070voidjakarta.faces.render.Renderer.encodeEnd
- - ( FacesContext ,
- UIComponent )
- throws IOException
-
if an - input/output error occurs while renderingtrue
-
true
JSF:JAVADOC:2071voidjakarta.faces.render.Renderer.encodeEnd
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2072Objectjakarta.faces.render.Renderer.getConvertedValue
- - ( FacesContext ,
- UIComponent ,
- Object )
Attempt - to convert previously stored state information into an object of the - type required for this component (optionally using the registered - jakarta.faces.convert.Converter for this component, if there is one). If - conversion is successful, the new value should be returned from this - method; if not, a ConverterException should be thrown. true
-
true
JSF:JAVADOC:2073Objectjakarta.faces.render.Renderer.getConvertedValue
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ConverterException
-
if the - submitted value cannot be converted successfully.true
-
true
JSF:JAVADOC:2074Objectjakarta.faces.render.Renderer.getConvertedValue
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2075booleanjakarta.faces.render.Renderer.getRendersChildren
-
Return - a flag indicating whether this Renderer is responsible for rendering - the children the component it is asked to render. The default - implementation returns false. true
-
true
JSF:JAVADOC:2076Rendererjakarta.faces.render.Renderer.Renderer
-

-
true
-
true
JSF:JAVADOC:2077voidjakarta.faces.render.RenderKit.addClientBehaviorRenderer
- - ( String ,
- ClientBehaviorRenderer )
- - - - - Register the specified ClientBehaviorRenderer instance, associated - with the specified component type, to the set of - ClientBehaviorRenderers registered with this RenderKit, replacing any - previously registered ClientBehaviorRenderer for this type. true
-
true
JSF:JAVADOC:2078voidjakarta.faces.render.RenderKit.addClientBehaviorRenderer
- - ( String ,
- ClientBehaviorRenderer )
- throws NullPointerException
-
if type - or renderer is nulltrue
-
true
JSF:JAVADOC:2079voidjakarta.faces.render.RenderKit.addRenderer
- - ( String ,
- String ,
- Renderer )
- - - - - Register the specified Renderer instance, associated with the - specified component family and rendererType, to the set of Renderers - registered with this RenderKit, replacing any previously registered - Renderer for this combination of identifiers. true
-
true
JSF:JAVADOC:2080voidjakarta.faces.render.RenderKit.addRenderer
- - ( String ,
- String ,
- Renderer )
- throws NullPointerException
-
if - family or rendererType or renderer is nulltrue
-
true
JSF:JAVADOC:2081ResponseStreamjakarta.faces.render.RenderKit.createResponseStream
- - ( OutputStream )
Use the - provided OutputStream to create a new ResponseStream instance. true
-
true
JSF:JAVADOC:2082ResponseWriterjakarta.faces.render.RenderKit.createResponseWriter
- - ( Writer ,
- String ,
- String )
Use the - provided Writer to create a new ResponseWriter instance for the - specified (optional) content type, and character encoding. - - Implementors are advised to consult the getCharacterEncoding() method - of class jakarta.servlet.ServletResponse to get the required value for - the characterEncoding for this method. Since the Writer for this - response will already have been obtained (due to it ultimately being - passed to this method), we know that the character encoding cannot - change during the rendering of the response. true
-
true
JSF:JAVADOC:2083ResponseWriterjakarta.faces.render.RenderKit.createResponseWriter
- - ( Writer ,
- String ,
- String )
- throws IllegalArgumentException
-
if no - matching content type can be found in contentTypeList, no appropriate - content type can be found with the implementation dependent best fit - algorithm, or no matching character encoding can be found for the - argument characterEncoding.true
-
true
JSF:JAVADOC:2084ClientBehaviorRendererjakarta.faces.render.RenderKit.getClientBehaviorRenderer
- - ( String )
Return - the ClientBehaviorRenderer instance most recently registered for the - specified type, if any; otherwise, return null. true
-
true
JSF:JAVADOC:2085ClientBehaviorRendererjakarta.faces.render.RenderKit.getClientBehaviorRenderer
- - ( String )
- throws NullPointerException
-
if type - is nulltrue
-
true
JSF:JAVADOC:2086Iteratorjakarta.faces.render.RenderKit.getClientBehaviorRendererTypes
-
Return - an Iterator over the ClientBehaviorRenderer types. true
-
true
JSF:JAVADOC:2087Iteratorjakarta.faces.render.RenderKit.getComponentFamilies
-
Return - an Iterator over the component-family entries supported by this - RenderKit instance. The default implementation of this method returns - an empty Iterator true
-
true
JSF:JAVADOC:2088Rendererjakarta.faces.render.RenderKit.getRenderer
- - ( String ,
- String )
Return - the Renderer instance most recently registered for the specified - component family and rendererType, if any; otherwise, return null. true
-
true
JSF:JAVADOC:2089Rendererjakarta.faces.render.RenderKit.getRenderer
- - ( String ,
- String )
- throws NullPointerException
-
if - family or rendererType is nulltrue
-
true
JSF:JAVADOC:2090Iteratorjakarta.faces.render.RenderKit.getRendererTypes
- - ( String )
Return - an Iterator over the renderer-type entries for the given - component-family. If the specified componentFamily is not known to - this RenderKit implementation, return an empty Iterator The default - implementation of this method returns an empty Iterator true
-
true
JSF:JAVADOC:2091ResponseStateManagerjakarta.faces.render.RenderKit.getResponseStateManager
-
Return - an instance of ResponseStateManager to handle rendering technology - specific state management decisions. true
-
true
JSF:JAVADOC:2092RenderKitjakarta.faces.render.RenderKit.RenderKit
-

-
true
-
true
JSF:JAVADOC:2093voidjakarta.faces.render.RenderKitFactory.addRenderKit
- - ( String ,
- RenderKit )
- - - - Register the specified RenderKit instance, associated with the - specified renderKitId, to be supported by this RenderKitFactory, - replacing any previously registered RenderKit for this identifier. true
-
true
JSF:JAVADOC:2094voidjakarta.faces.render.RenderKitFactory.addRenderKit
- - ( String ,
- RenderKit )
- throws NullPointerException
-
if - renderKitId or renderKit is nulltrue
-
true
JSF:JAVADOC:2095RenderKitjakarta.faces.render.RenderKitFactory.getRenderKit
- - ( FacesContext ,
- String )
Return - a RenderKit instance for the specified render kit identifier, possibly - customized based on dynamic characteristics of the specified - FacesContext, if non-null. If there is no registered RenderKit for the - specified identifier, return null. The set of available render kit - identifiers is available via the getRenderKitIds() method. true
-
true
JSF:JAVADOC:2096RenderKitjakarta.faces.render.RenderKitFactory.getRenderKit
- - ( FacesContext ,
- String )
- throws IllegalArgumentException
-
if no - RenderKit instance can be returned for the specified identifiertrue
-
true
JSF:JAVADOC:2097RenderKitjakarta.faces.render.RenderKitFactory.getRenderKit
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if - renderKitId is nulltrue
-
true
JSF:JAVADOC:2098Iteratorjakarta.faces.render.RenderKitFactory.getRenderKitIds
-
Return - an Iterator over the set of render kit identifiers registered with - this factory. This set must include the value specified by - RenderKitFactory.HTML_BASIC_RENDER_KIT. true
-
true
JSF:JAVADOC:2099RenderKitFactoryjakarta.faces.render.RenderKitFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:2100RenderKitFactoryjakarta.faces.render.RenderKitFactory.RenderKitFactory
-

-
true
-
true
JSF:JAVADOC:2101voidjakarta.faces.render.RenderKitWrapper.addClientBehaviorRenderer
- - ( String ,
- ClientBehaviorRenderer )
The - default behavior of this method is to call - RenderKit#addClientBehaviorRenderer(String, ClientBehaviorRenderer) on - the wrapped RenderKit object. true
-
true
JSF:JAVADOC:2102voidjakarta.faces.render.RenderKitWrapper.addRenderer
- - ( String ,
- String ,
- Renderer )
The - default behavior of this method is to call - RenderKit#addRenderer(String, String, Renderer) on the wrapped - RenderKit object. true
-
true
JSF:JAVADOC:2103ResponseStreamjakarta.faces.render.RenderKitWrapper.createResponseStream
- - ( OutputStream )
The - default behavior of this method is to call - RenderKit#createResponseStream(java.io.OutputStream) on the wrapped - RenderKit object. true
-
true
JSF:JAVADOC:2104ResponseWriterjakarta.faces.render.RenderKitWrapper.createResponseWriter
- - ( Writer ,
- String ,
- String )
The - default behavior of this method is to call - RenderKit#createResponseWriter(java.io.Writer, String, String) on the - wrapped RenderKit object. true
-
true
JSF:JAVADOC:2105ClientBehaviorRendererjakarta.faces.render.RenderKitWrapper.getClientBehaviorRenderer
- - ( String )
The - default behavior of this method is to call - RenderKit#getClientBehaviorRenderer(String) on the wrapped RenderKit - object. true
-
true
JSF:JAVADOC:2106Iteratorjakarta.faces.render.RenderKitWrapper.getClientBehaviorRendererTypes
-
The - default behavior of this method is to call - jakarta.faces.render.RenderKit#getClientBehaviorRendererTypes() on the - wrapped RenderKit object. true
-
true
JSF:JAVADOC:2107Iteratorjakarta.faces.render.RenderKitWrapper.getComponentFamilies
-
The - default behavior of this method is to call - jakarta.faces.render.RenderKit#getComponentFamilies() on the wrapped - RenderKit object. true
-
true
JSF:JAVADOC:2108Rendererjakarta.faces.render.RenderKitWrapper.getRenderer
- - ( String ,
- String )
The - default behavior of this method is to call - RenderKit#getRenderer(String, String) on the wrapped RenderKit object. - - - true
-
true
JSF:JAVADOC:2109Iteratorjakarta.faces.render.RenderKitWrapper.getRendererTypes
- - ( String )
The - default behavior of this method is to call - RenderKit#getRendererTypes(String) on the wrapped RenderKit object. true
-
true
JSF:JAVADOC:2110ResponseStateManagerjakarta.faces.render.RenderKitWrapper.getResponseStateManager
-
The - default behavior of this method is to call - jakarta.faces.render.RenderKit#getResponseStateManager() on the wrapped - RenderKit object. true
-
true
JSF:JAVADOC:2111RenderKitjakarta.faces.render.RenderKitWrapper.getWrapped
-
A class - that implements this interface uses this method to return an instance - of the class being wrapped. true
-
true
JSF:JAVADOC:2112RenderKitWrapperjakarta.faces.render.RenderKitWrapper.RenderKitWrapper
-

-
true
-
true
JSF:JAVADOC:2113Objectjakarta.faces.render.ResponseStateManager.getComponentStateToRestore
- - ( FacesContext )
The - implementation must inspect the current request and return the - component state Object passed to it on a previous invocation of - writeState(). truetruetrue
JSF:JAVADOC:2114Objectjakarta.faces.render.ResponseStateManager.getState
- - ( FacesContext ,
- String )
The - implementation must inspect the current request and return an Object - representing the tree structure and component state passed in to a - previous invocation of - #writeState(jakarta.faces.context.FacesContext,java.lang.Object). For - backwards compatability with existing ResponseStateManager - implementations, the default implementation of this method calls - #getTreeStructureToRestore and #getComponentStateToRestore and creates - and returns a two element Object array with element zero containing - the structure property and element one containing the state property - of the SerializedView. true
-
true
JSF:JAVADOC:2115Objectjakarta.faces.render.ResponseStateManager.getTreeStructureToRestore
- - ( FacesContext ,
- String )
The - implementation must inspect the current request and return the tree - structure Object passed to it on a previous invocation of - writeState(). truetruetrue
JSF:JAVADOC:2116Stringjakarta.faces.render.ResponseStateManager.getViewState
- - ( FacesContext ,
- Object )
Return - the specified state as a String without any markup related to the - rendering technology supported by this ResponseStateManager. true
-
false
JSF:JAVADOC:2117booleanjakarta.faces.render.ResponseStateManager.isPostback
- - ( FacesContext )
Return - true if the current request is a postback. This method is leveraged - from the Restore View Phase to determine if - jakarta.faces.application.ViewHandler#restoreView or - jakarta.faces.application.ViewHandler#createView should be called. The - default implementation must return true if this ResponseStateManager - instance wrote out state on a previous request to which this request - is a postback, false otherwise. The implementation if this method for - the Standard HTML RenderKit must consult the - jakarta.faces.context.ExternalContext's requestParameterMap and return - true if and only if there is a key equal to the value of the symbolic - constant #VIEW_STATE_PARAM. For backwards compatability with - implementations of ResponseStateManager prior to JSF 1.2, a default - implementation is provided that consults the - jakarta.faces.context.ExternalContext's requestParameterMap and return - true if its size is greater than 0. true
-
true
JSF:JAVADOC:2118ResponseStateManagerjakarta.faces.render.ResponseStateManager.ResponseStateManager
-

-
true
-
true
JSF:JAVADOC:2119voidjakarta.faces.render.ResponseStateManager.writeState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2120voidjakarta.faces.render.ResponseStateManager.writeState
- - ( FacesContext ,
- Object )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2121voidjakarta.faces.render.ResponseStateManager.writeState
- - ( FacesContext ,
- SerializedView )
Take - the argument state and write it into the output using the current - ResponseWriter, which must be correctly positioned already. If the - jakarta.faces.application.StateManager.SerializedView is to be written - out to hidden fields, the implementation must take care to make all - necessary character replacements to make the Strings suitable for - inclusion as an HTTP request paramater. If the state saving method for - this application is - jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, the - implementation may encrypt the state to be saved to the client. We - recommend that the state be unreadable by the client, and also be - tamper evident. The reference implementation follows these - recommendations. truetruetrue
JSF:JAVADOC:2122voidjakarta.faces.render.ResponseStateManager.writeState
- - ( FacesContext ,
- SerializedView )
- throws IOException
-

-
truetruetrue
JSF:JAVADOC:2123BeanValidatorjakarta.faces.validator.BeanValidator.BeanValidator
-

-
true
-
true
JSF:JAVADOC:2124voidjakarta.faces.validator.BeanValidator.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:2125Stringjakarta.faces.validator.BeanValidator.getValidationGroups
-
Return - the validation groups passed to the Validation API when checking - constraints. If the validationGroupsArray attribute is omitted or - empty, the validation groups will be inherited from the branch - defaults, or if there are no branch defaults, the - jakarta.validation.groups.Default group will be used. true
-
true
JSF:JAVADOC:2126booleanjakarta.faces.validator.BeanValidator.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:2127booleanjakarta.faces.validator.BeanValidator.isTransient
-

-
true
-
true
JSF:JAVADOC:2128voidjakarta.faces.validator.BeanValidator.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:2129voidjakarta.faces.validator.BeanValidator.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2130Objectjakarta.faces.validator.BeanValidator.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:2131voidjakarta.faces.validator.BeanValidator.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:2132voidjakarta.faces.validator.BeanValidator.setValidationGroups
- - ( String )
A - comma-separated list of validation groups which are used to filter - which validations get checked by this validator. If the - validationGroupsArray attribute is omitted or is empty, the validation - groups will be inherited from the branch defaults or, if there are no - branch defaults, the jakarta.validation.groups.Default group will be - used. true
-
true
JSF:JAVADOC:2133voidjakarta.faces.validator.BeanValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Verify - that the value is valid according to the Bean Validation constraints. - - - - - - - - - - - - - - - - - Obtain a ValidatorFactory instance by calling - jakarta.validation.Validation#buildDefaultValidatorFactory. Let - validationGroupsArray be a Class [] representing validator groups set - on the component by the tag handler for this validator. The first - search component terminates the search for the validation groups - value. If no such value is found use the class name of - jakarta.validation.groups.Default as the value of the validation groups. - Let valueExpression be the return from calling - UIComponent#getValueExpression on the argument component, passing the - literal string “value” (without the quotes) as an - argument. If this application is running in an environment with a - Unified EL Implementation for Java EE6 or later, obtain the - ValueReference from valueExpression and let valueBaseClase be the - return from calling ValueReference.getBase() and valueProperty be the - return from calling ValueReference.getProperty(). If an earlier - version of the Unified EL is present, use the appropriate methods to - inspect valueExpression and derive values for valueBaseClass and - valueProperty. If no ValueReference can be obtained, take no action - and return. If ValueReference.getBase() return null, take no action - and return. Obtain the ValidatorContext from the ValidatorFactory. - Decorate the MessageInterpolator returned from - ValidatorFactory#getMessageInterpolator with one that leverages the - Locale returned from jakarta.faces.component.UIViewRoot#getLocale, and - store it in the ValidatorContext using - ValidatorContext#messageInterpolator. Obtain the - jakarta.validation.Validator instance from the validatorContext. Obtain - a jakarta.validation.BeanDescriptor from the jakarta.validation.Validator. - If hasConstraints() on the BeanDescriptor returns false, take no - action and return. Otherwise proceed. Call - jakarta.validation.Validator#validateValue, passing valueBaseClass, - valueProperty, the value argument, and validatorGroupsArray as - arguments. If the returned Set<ConstraintViolation> is - non-empty, for each element in the Set, create a FacesMessage where - the summary and detail are the return from calling - ConstraintViolation#getMessage. Capture all such FacesMessage - instances into a Collection and pass them to - ValidatorException#ValidatorException(java.util.Collection), throwing - the new exception. true
-
true
JSF:JAVADOC:2134voidjakarta.faces.validator.BeanValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:2135voidjakarta.faces.validator.DoubleRangeValidator.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:2136DoubleRangeValidatorjakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator
-
- - Construct a Validator with no preconfigured limits. true
-
true
JSF:JAVADOC:2137DoubleRangeValidatorjakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator
- - ( double )
- - Construct a Validator with the specified preconfigured limit. true
-
true
JSF:JAVADOC:2138DoubleRangeValidatorjakarta.faces.validator.DoubleRangeValidator.DoubleRangeValidator
- - ( double ,
- double )
- - Construct a Validator with the specified preconfigured limits. true
-
true
JSF:JAVADOC:2139booleanjakarta.faces.validator.DoubleRangeValidator.equals
- - ( Object )

-
true
-
true
JSF:JAVADOC:2140doublejakarta.faces.validator.DoubleRangeValidator.getMaximum
-
Return - the maximum value to be enforced by this Validator or Double.MAX_VALUE - if it has not been set. true
-
true
JSF:JAVADOC:2141doublejakarta.faces.validator.DoubleRangeValidator.getMinimum
-
Return - the minimum value to be enforced by this Validator, or - Double.MIN_VALUE if it has not been set. true
-
true
JSF:JAVADOC:2142intjakarta.faces.validator.DoubleRangeValidator.hashCode
-

-
true
-
true
JSF:JAVADOC:2143booleanjakarta.faces.validator.DoubleRangeValidator.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:2144booleanjakarta.faces.validator.DoubleRangeValidator.isTransient
-

-
true
-
true
JSF:JAVADOC:2145voidjakarta.faces.validator.DoubleRangeValidator.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:2146voidjakarta.faces.validator.DoubleRangeValidator.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2147Objectjakarta.faces.validator.DoubleRangeValidator.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:2148voidjakarta.faces.validator.DoubleRangeValidator.setMaximum
- - ( double )
Set the - maximum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2149voidjakarta.faces.validator.DoubleRangeValidator.setMinimum
- - ( double )
Set the - minimum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2150voidjakarta.faces.validator.DoubleRangeValidator.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:2151voidjakarta.faces.validator.DoubleRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Perform - the correctness checks implemented by this Validator against the - specified UIComponent. If any violations are found, a - ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a - validator to be fully compliant with Version 2 and later of the - specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An - application-wide is provided to allow validators designed for JSF 1.2 - to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS - must be set to false to enable this backwards compatibility behavior. - true
-
true
JSF:JAVADOC:2152voidjakarta.faces.validator.DoubleRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
if - validation failstrue
-
true
JSF:JAVADOC:2153voidjakarta.faces.validator.DoubleRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2154booleanjakarta.faces.validator.FacesValidator.isDefault
-
If - true, the validator id for this annotation is added to the list of - default validators by a call to - jakarta.faces.application.Application#addDefaultValidatorId. true
-
true
JSF:JAVADOC:2155Stringjakarta.faces.validator.FacesValidator.value
-
The - value of this annotation attribute is taken to be the validator-id - with which instances of this class of component can be instantiated by - calling - jakarta.faces.application.Application#createValidator(java.lang.String). - - true
-
true
JSF:JAVADOC:2156voidjakarta.faces.validator.LengthValidator.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:2157booleanjakarta.faces.validator.LengthValidator.equals
- - ( Object )

-
true
-
true
JSF:JAVADOC:2158intjakarta.faces.validator.LengthValidator.getMaximum
-
Return - the maximum length to be enforced by this Validator, or 0 if the - maximum has not been set. true
-
true
JSF:JAVADOC:2159intjakarta.faces.validator.LengthValidator.getMinimum
-
Return - the minimum length to be enforced by this Validator, or 0 if the - minimum has not been set. true
-
true
JSF:JAVADOC:2160intjakarta.faces.validator.LengthValidator.hashCode
-

-
true
-
true
JSF:JAVADOC:2161booleanjakarta.faces.validator.LengthValidator.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:2162booleanjakarta.faces.validator.LengthValidator.isTransient
-

-
true
-
true
JSF:JAVADOC:2163LengthValidatorjakarta.faces.validator.LengthValidator.LengthValidator
-
- - Construct a Validator with no preconfigured limits. true
-
true
JSF:JAVADOC:2164LengthValidatorjakarta.faces.validator.LengthValidator.LengthValidator
- - ( int )
- - Construct a Validator with the specified preconfigured limit. true
-
true
JSF:JAVADOC:2165LengthValidatorjakarta.faces.validator.LengthValidator.LengthValidator
- - ( int ,
- int )
- - Construct a Validator with the specified preconfigured limits. true
-
true
JSF:JAVADOC:2166voidjakarta.faces.validator.LengthValidator.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:2167voidjakarta.faces.validator.LengthValidator.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2168Objectjakarta.faces.validator.LengthValidator.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:2169voidjakarta.faces.validator.LengthValidator.setMaximum
- - ( int )
Set the - maximum length to be enforced by this Validator. true
-
true
JSF:JAVADOC:2170voidjakarta.faces.validator.LengthValidator.setMinimum
- - ( int )
Set the - minimum length to be enforced by this Validator. true
-
true
JSF:JAVADOC:2171voidjakarta.faces.validator.LengthValidator.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:2172voidjakarta.faces.validator.LengthValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Perform - the correctness checks implemented by this Validator against the - specified UIComponent. If any violations are found, a - ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a - validator to be fully compliant with Version 2 and later of the - specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An - application-wide is provided to allow validators designed for JSF 1.2 - to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS - must be set to false to enable this backwards compatibility behavior. - true
-
true
JSF:JAVADOC:2173voidjakarta.faces.validator.LengthValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
if - validation failstrue
-
true
JSF:JAVADOC:2174voidjakarta.faces.validator.LengthValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2175voidjakarta.faces.validator.LongRangeValidator.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:2176booleanjakarta.faces.validator.LongRangeValidator.equals
- - ( Object )

-
true
-
true
JSF:JAVADOC:2177longjakarta.faces.validator.LongRangeValidator.getMaximum
-
Return - the maximum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2178longjakarta.faces.validator.LongRangeValidator.getMinimum
-
Return - the minimum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2179intjakarta.faces.validator.LongRangeValidator.hashCode
-

-
true
-
true
JSF:JAVADOC:2180booleanjakarta.faces.validator.LongRangeValidator.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:2181booleanjakarta.faces.validator.LongRangeValidator.isTransient
-

-
true
-
true
JSF:JAVADOC:2182LongRangeValidatorjakarta.faces.validator.LongRangeValidator.LongRangeValidator
-
- - Construct a Validator with no preconfigured limits. true
-
true
JSF:JAVADOC:2183LongRangeValidatorjakarta.faces.validator.LongRangeValidator.LongRangeValidator
- - ( long )
- - Construct a Validator with the specified preconfigured limit. true
-
true
JSF:JAVADOC:2184LongRangeValidatorjakarta.faces.validator.LongRangeValidator.LongRangeValidator
- - ( long ,
- long )
- - Construct a Validator with the specified preconfigured limits. true
-
true
JSF:JAVADOC:2185voidjakarta.faces.validator.LongRangeValidator.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:2186voidjakarta.faces.validator.LongRangeValidator.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2187Objectjakarta.faces.validator.LongRangeValidator.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:2188voidjakarta.faces.validator.LongRangeValidator.setMaximum
- - ( long )
Set the - maximum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2189voidjakarta.faces.validator.LongRangeValidator.setMinimum
- - ( long )
Set the - minimum value to be enforced by this Validator. true
-
true
JSF:JAVADOC:2190voidjakarta.faces.validator.LongRangeValidator.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:2191voidjakarta.faces.validator.LongRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Perform - the correctness checks implemented by this Validator against the - specified UIComponent. If any violations are found, a - ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a - validator to be fully compliant with Version 2 and later of the - specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An - application-wide is provided to allow validators designed for JSF 1.2 - to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS - must be set to false to enable this backwards compatibility behavior. - true
-
true
JSF:JAVADOC:2192voidjakarta.faces.validator.LongRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
if - validation failstrue
-
true
JSF:JAVADOC:2193voidjakarta.faces.validator.LongRangeValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2194booleanjakarta.faces.validator.MethodExpressionValidator.isTransient
-
If - true, the Object implementing this interface must not participate in - state saving or restoring. true
-
true
JSF:JAVADOC:2195MethodExpressionValidatorjakarta.faces.validator.MethodExpressionValidator.MethodExpressionValidator
-

-
true
-
true
JSF:JAVADOC:2196MethodExpressionValidatorjakarta.faces.validator.MethodExpressionValidator.MethodExpressionValidator
- - ( MethodExpression )
- - - Construct a Validator that contains a MethodExpression. true
-
true
JSF:JAVADOC:2197voidjakarta.faces.validator.MethodExpressionValidator.restoreState
- - ( FacesContext ,
- Object )
Perform - any processing required to restore the state from the entries in the - state Object. If the class that implements this interface has - references to instances that also implement StateHolder (such as a - UIComponent with event handlers, validators, etc.) this method must - call the #restoreState method on all those instances as well. true
-
true
JSF:JAVADOC:2198voidjakarta.faces.validator.MethodExpressionValidator.restoreState
- - ( FacesContext ,
- Object )
- throws NullPointerException
-
if - either context or state are nulltrue
-
true
JSF:JAVADOC:2199Objectjakarta.faces.validator.MethodExpressionValidator.saveState
- - ( FacesContext )
Gets - the state of the instance as a Serializable Object. If the class that - implements this interface has references to instances that implement - StateHolder (such as a UIComponent with event handlers, validators, - etc.) this method must call the #saveState method on all those - instances as well. This method must not save the state of children and - facets. That is done via the jakarta.faces.application.StateManager This - method must not alter the state of the implementing object. In other - words, after executing this code: Object state = - component.saveState(facesContext); component should be the same as - before executing it. The return from this method must be Serializable - true
-
true
JSF:JAVADOC:2200Objectjakarta.faces.validator.MethodExpressionValidator.saveState
- - ( FacesContext )
- throws NullPointerException
-
if - context is nulltrue
-
true
JSF:JAVADOC:2201voidjakarta.faces.validator.MethodExpressionValidator.setTransient
- - ( boolean )
Denotes - whether or not the Object implementing this interface must or must not - participate in state saving or restoring. true
-
true
JSF:JAVADOC:2202voidjakarta.faces.validator.MethodExpressionValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Perform - the correctness checks implemented by this Validator against the - specified UIComponent. If any violations are found, a - ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a - validator to be fully compliant with Version 2 and later of the - specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An - application-wide is provided to allow validators designed for JSF 1.2 - to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS - must be set to false to enable this backwards compatibility behavior. - true
-
true
JSF:JAVADOC:2203voidjakarta.faces.validator.MethodExpressionValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
if - validation failstrue
-
true
JSF:JAVADOC:2204voidjakarta.faces.validator.MethodExpressionValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2205voidjakarta.faces.validator.RegexValidator.clearInitialState
-
Reset - the PartialStateHolder to a non-delta tracking state. true
-
true
JSF:JAVADOC:2206Stringjakarta.faces.validator.RegexValidator.getPattern
-
Return - the ValueExpression that yields the regular expression pattern when - evaluated. true
-
true
JSF:JAVADOC:2207booleanjakarta.faces.validator.RegexValidator.initialStateMarked
-
Return - true if delta state changes are being tracked, otherwise false true
-
true
JSF:JAVADOC:2208booleanjakarta.faces.validator.RegexValidator.isTransient
-

-
true
-
true
JSF:JAVADOC:2209voidjakarta.faces.validator.RegexValidator.markInitialState
-
The - runtime must ensure that the #markInitialState method is called on - each instance of this interface in the view at the appropriate time to - indicate the component is in its initial state. The implementor of the - interface must ensure that #initialStateMarked returns true from the - time markInitialState() is called until #clearInitialState is called, - after which time initialStateMarked() must return false. Also, during - the time that the instance returns true from initialStateMarked(), the - implementation must return only the state that has changed in its - implementation of StateHolder#saveState. true
-
true
JSF:JAVADOC:2210RegexValidatorjakarta.faces.validator.RegexValidator.RegexValidator
-

-
true
-
true
JSF:JAVADOC:2211voidjakarta.faces.validator.RegexValidator.restoreState
- - ( FacesContext ,
- Object )

-
true
-
true
JSF:JAVADOC:2212Objectjakarta.faces.validator.RegexValidator.saveState
- - ( FacesContext )

-
true
-
true
JSF:JAVADOC:2213voidjakarta.faces.validator.RegexValidator.setPattern
- - ( String )
The - Regular Expression property to validate against. true
-
true
JSF:JAVADOC:2214voidjakarta.faces.validator.RegexValidator.setTransient
- - ( boolean )

-
true
-
true
JSF:JAVADOC:2215voidjakarta.faces.validator.RegexValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- Validate a String against a regular expression pattern. The full regex - pattern must be matched in order to pass the validation. true
-
true
JSF:JAVADOC:2216voidjakarta.faces.validator.RegexValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:2217voidjakarta.faces.validator.RegexValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:2218RequiredValidatorjakarta.faces.validator.RequiredValidator.RequiredValidator
-

-
true
-
true
JSF:JAVADOC:2219voidjakarta.faces.validator.RequiredValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Verify - that the converted object value is not null. true
-
true
JSF:JAVADOC:2220voidjakarta.faces.validator.RequiredValidator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
{@inheritDoc}true
-
true
JSF:JAVADOC:2221voidjakarta.faces.validator.Validator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
Perform - the correctness checks implemented by this Validator against the - specified UIComponent. If any violations are found, a - ValidatorException will be thrown containing the - jakarta.faces.application.FacesMessage describing the failure. For a - validator to be fully compliant with Version 2 and later of the - specification, it must not fail validation on null or empty values - unless it is specifically intended to address null or empty values. An - application-wide is provided to allow validators designed for JSF 1.2 - to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS - must be set to false to enable this backwards compatibility behavior. - true
-
true
JSF:JAVADOC:2222voidjakarta.faces.validator.Validator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws ValidatorException
-
if - validation failstrue
-
true
JSF:JAVADOC:2223voidjakarta.faces.validator.Validator.validate
- - ( FacesContext ,
- UIComponent ,
- Object )
- throws NullPointerException
-
if - context or component is nulltrue
-
true
JSF:JAVADOC:2224FacesMessagejakarta.faces.validator.ValidatorException.getFacesMessage
-
Returns - the FacesMessage associated with the exception. If this instance was - created with a constructor that takes Collection, this method returns - the first message in the Collection true
-
true
JSF:JAVADOC:2225Collectionjakarta.faces.validator.ValidatorException.getFacesMessages
-
If this - instance was created with a constructor that takes Collection, this - method returns the passed collection, otherwise this method returns - null. true
-
true
JSF:JAVADOC:2226ValidatorExceptionjakarta.faces.validator.ValidatorException.ValidatorException
- - ( FacesMessage )
- Construct a new exception with the specified message and no root - cause. true
-
true
JSF:JAVADOC:2227ValidatorExceptionjakarta.faces.validator.ValidatorException.ValidatorException
- - ( Collection )
Allow - this one exception to contain multiple messages. true
-
true
JSF:JAVADOC:2228ValidatorExceptionjakarta.faces.validator.ValidatorException.ValidatorException
- - ( FacesMessage ,
- Throwable )
- Construct a new exception with the specified detail message and root - cause. true
-
true
JSF:JAVADOC:2229ValidatorExceptionjakarta.faces.validator.ValidatorException.ValidatorException
- - ( Collection ,
- Throwable )
Allow - this one exception to contain multiple messages, while passing on the - root cause to the superclass true
-
true
JSF:JAVADOC:2230voidjakarta.faces.view.AttachedObjectHandler.applyAttachedObject
- - ( FacesContext ,
- UIComponent )
Take - the argument parent and apply this attached object to it. The action - taken varies with class that implements one of the subinterfaces of - this interface. true
-
true
JSF:JAVADOC:2231Stringjakarta.faces.view.AttachedObjectHandler.getFor
-
Return - the value of the "for" attribute specified by the page author on the - tag for this AttachedObjectHandler. true
-
true
JSF:JAVADOC:2232Stringjakarta.faces.view.AttachedObjectTarget.getName
-
Returns - the name by which this attached object target is exposed to the page - author. true
-
true
JSF:JAVADOC:2233Listjakarta.faces.view.AttachedObjectTarget.getTargets
- - ( UIComponent )
Returns - the List that this AttachedObjectTarget exposes. Each attached object - exposed by the composite component author may point at multiple - UIComponent instances within the composite component. This method is - used by the - jakarta.faces.view.ViewDeclarationLanguage#retargetAttachedObjects - method to take the appropriate action on the attached object. true
-
true
JSF:JAVADOC:2234Stringjakarta.faces.view.BehaviorHolderAttachedObjectHandler.getEventName
-
Return - the client event name to which this behavior applies. true
-
true
JSF:JAVADOC:2235booleanjakarta.faces.view.BehaviorHolderAttachedObjectTarget.isDefaultEvent
-

-
true
-
true
JSF:JAVADOC:2236intjakarta.faces.view.Location.getColumn
-
Return - the estimated character column. true
-
true
JSF:JAVADOC:2237intjakarta.faces.view.Location.getLine
-
Return - the line number in the page for this location. true
-
true
JSF:JAVADOC:2238Stringjakarta.faces.view.Location.getPath
-
Return - the file path to the page represented by this location. true
-
true
JSF:JAVADOC:2239Locationjakarta.faces.view.Location.Location
- - ( String ,
- int ,
- int )

-
true
-
true
JSF:JAVADOC:2240Stringjakarta.faces.view.Location.toString
-

-
true
-
true
JSF:JAVADOC:2241UIViewRootjakarta.faces.view.StateManagementStrategy.restoreView
- - ( FacesContext ,
- String ,
- String )
Restore - the state of the view with information in the request. The default - implementation must perform the following algorithm or its semantic - equivalent. Build the view from the markup. For all components in the - view that do not have an explicitly assigned id in the markup, the - values of those ids must be the same as on an initial request for this - view. This view will not contain any components programmatically added - during the previous lifecycle run, and it will contain components that - were programmatically deleted on the previous lifecycle run. Both of - these cases must be handled. Call - jakarta.faces.render.ResponseStateManager#getState to obtain the data - structure returned from the previous call to #saveView. Visit the tree - using jakarta.faces.component.UIComponent#visitTree. For each node, call - jakarta.faces.component.UIComponent#restoreState, passing the state - saved corresponding to the current client id. Ensure that any - programmatically deleted components are removed. Ensure any - programmatically added components are added. The implementation must - ensure that the jakarta.faces.component.UIComponent#restoreState method - is called for each node in the tree, except for those that were - programmatically deleted on the previous run through the lifecycle. true
-
true
JSF:JAVADOC:2242Objectjakarta.faces.view.StateManagementStrategy.saveView
- - ( FacesContext )
Return - the state of the current view in an Object that implements - Serializable. The default implementation must perform the following - algorithm or its semantic equivalent. If the UIViewRoot of the current - view is marked transient, return null immediately. Traverse the view - and verify that each of the client ids are unique. Throw - IllegalStateException if more than one client id are the same. Visit - the tree using jakarta.faces.component.UIComponent#visitTree. For each - node, call jakarta.faces.component.UIComponent#saveState, saving the - returned Object in a way such that it can be restored given only its - client id. Special care must be taken to handle the case of components - that were added or deleted programmatically during this lifecycle - traversal, rather than by the VDL. The implementation must ensure that - the jakarta.faces.component.UIComponent#saveState method is called for - each node in the tree. The data structure used to save the state - obtained by executing the above algorithm must be Serializable, and - all of the elements within the data structure must also be - Serializable. true
-
true
JSF:JAVADOC:2243StateManagementStrategyjakarta.faces.view.StateManagementStrategy.StateManagementStrategy
-

-
true
-
true
JSF:JAVADOC:2244voidjakarta.faces.view.ViewDeclarationLanguage.buildView
- - ( FacesContext ,
- UIViewRoot )
Take - any actions specific to this VDL implementation to cause the argument - UIViewRoot which must have been created via a call to #createView, to - be populated with children. The Facelets implementation must insure - that markup comprising the view must be executed, with the - jakarta.faces.component.UIComponent instances in the view being - encountered in the same depth-first order as in other lifecycle - methods defined on UIComponent, and added to the view (but not - rendered) during the traversal. The runtime must guarantee that the - view must be fully populated before any of the following happen. The - jakarta.faces.event.PhaseListener#afterPhase method of any - PhaseListeners attached to the application is called The - jakarta.faces.component.UIViewRoot phase listener installed via - jakarta.faces.component.UIViewRoot#setAfterPhaseListener or - jakarta.faces.component.UIViewRoot#addPhaseListener are called. The - implementation must take no action if the argument root already has - non-metadata children. See section JSF.7.6.2.3 for the view metadata - specification. true
-
true
JSF:JAVADOC:2245voidjakarta.faces.view.ViewDeclarationLanguage.buildView
- - ( FacesContext ,
- UIViewRoot )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2246UIViewRootjakarta.faces.view.ViewDeclarationLanguage.createView
- - ( FacesContext ,
- String )
Create - a UIViewRoot from the VDL contained in the artifact referenced by the - argument viewId. See section JSF.7.6.2 for the specification of the - default implementation. true
-
true
JSF:JAVADOC:2247UIViewRootjakarta.faces.view.ViewDeclarationLanguage.createView
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:2248BeanInfojakarta.faces.view.ViewDeclarationLanguage.getComponentMetadata
- - ( FacesContext ,
- Resource )
Return - a reference to the component metadata for the composite component - represented by the argument componentResource, or null if the metadata - cannot be found. See section JSF.7.6.2 for the specification of the - default implementation. JSP implementations must throw - UnsupportedOperationException. true
-
true
JSF:JAVADOC:2249BeanInfojakarta.faces.view.ViewDeclarationLanguage.getComponentMetadata
- - ( FacesContext ,
- Resource )
- throws NullPointerException
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:2250BeanInfojakarta.faces.view.ViewDeclarationLanguage.getComponentMetadata
- - ( FacesContext ,
- Resource )
- throws FacesException
-
if there - is an error in obtaining the metadatatrue
-
true
JSF:JAVADOC:2251BeanInfojakarta.faces.view.ViewDeclarationLanguage.getComponentMetadata
- - ( FacesContext ,
- Resource )
- throws UnsupportedOperationException
-
if this - is a JSP VDL implementation.true
-
true
JSF:JAVADOC:2252Resourcejakarta.faces.view.ViewDeclarationLanguage.getScriptComponentResource
- - ( FacesContext ,
- Resource )
Take - implementation specific action to discover a Resource given the - argument componentResource. See section JSF.7.6.2 for the - specification of the default implementation. JSP implementations must - throw UnsupportedOperationException. true
-
true
JSF:JAVADOC:2253Resourcejakarta.faces.view.ViewDeclarationLanguage.getScriptComponentResource
- - ( FacesContext ,
- Resource )
- throws NullPointerException
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:2254Resourcejakarta.faces.view.ViewDeclarationLanguage.getScriptComponentResource
- - ( FacesContext ,
- Resource )
- throws FacesException
-
if there - is an error in obtaining the script component resourcetrue
-
true
JSF:JAVADOC:2255Resourcejakarta.faces.view.ViewDeclarationLanguage.getScriptComponentResource
- - ( FacesContext ,
- Resource )
- throws UnsupportedOperationException
-
if this - is a JSP VDL implementation.true
-
true
JSF:JAVADOC:2256StateManagementStrategyjakarta.faces.view.ViewDeclarationLanguage.getStateManagementStrategy
- - ( FacesContext ,
- String )
For - implementations that want to control the implementation of state - saving and restoring, the StateManagementStrategy allows them to do - so. Returning null indicates that the implementation wishes the - runtime to handle the state saving and restoring. Implementations that - provide the VDL for Facelets for JSF 2.0 and later must return - non-null from this method. true
-
true
JSF:JAVADOC:2257ViewMetadatajakarta.faces.view.ViewDeclarationLanguage.getViewMetadata
- - ( FacesContext ,
- String )
Return - a reference to the view metadata for the view represented by the - argument viewId, or null if the metadata cannot be found. See section - JSF.7.6.2 for the specification of the default implementation. - Facelets for JSF 2 implementation must return non-null. JSP - implementations must return null. true
-
true
JSF:JAVADOC:2258ViewMetadatajakarta.faces.view.ViewDeclarationLanguage.getViewMetadata
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:2259ViewMetadatajakarta.faces.view.ViewDeclarationLanguage.getViewMetadata
- - ( FacesContext ,
- String )
- throws FacesException
-
if there - is an error in obtaining the metadatatrue
-
true
JSF:JAVADOC:2260voidjakarta.faces.view.ViewDeclarationLanguage.renderView
- - ( FacesContext ,
- UIViewRoot )
Render - a view rooted at argumentview. See section JSF.7.6.2 for the - specification of the default implementation. true
-
true
JSF:JAVADOC:2261voidjakarta.faces.view.ViewDeclarationLanguage.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2262voidjakarta.faces.view.ViewDeclarationLanguage.renderView
- - ( FacesContext ,
- UIViewRoot )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:2263UIViewRootjakarta.faces.view.ViewDeclarationLanguage.restoreView
- - ( FacesContext ,
- String )
Restore - a UIViewRoot from a previously created view. See section JSF.7.6.2 for - the specification of the default implementation. true
-
true
JSF:JAVADOC:2264UIViewRootjakarta.faces.view.ViewDeclarationLanguage.restoreView
- - ( FacesContext ,
- String )
- throws NullPointerException
-
if any - of the arguments are nulltrue
-
true
JSF:JAVADOC:2265voidjakarta.faces.view.ViewDeclarationLanguage.retargetAttachedObjects
- - ( FacesContext ,
- UIComponent ,
- List )
- - - Assuming the component metadata for argument topLevelComponent has - been made available by an earlier call to - ViewDeclarationLanguage#getComponentMetadata, leverage the component - metadata for the purpose of re-targeting attached objects from the top - level composite component to the individual AttachedObjectTarget - instances inside the composite component. This method must be called - by the ViewDeclarationLanguage implementation when creating the - UIComponent tree when a composite component usage is encountered. An - algorithm semantically equivalent to the following must be - implemented. Obtain the metadata for the composite component. - Currently this entails getting the value of the - UIComponent#BEANINFO_KEY component attribute, which will be an - instance of BeanInfo. If the metadata cannot be found, log an error - message and return. Get the BeanDescriptor from the BeanInfo. Get the - value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the - BeanDescriptor's getValue() method. This will be a - List<AttachedObjectTarget>. Let this be targetList. For each - curHandler entry in the argument handlers Let forAttributeValue be the - return from AttachedObjectHandler#getFor. For each curTarget entry in - targetList, the first of the following items that causes a match will - take this action: For each UIComponent in the list returned from - curTarget.getTargets(), call curHandler.applyAttachedObject(), passing - the FacesContext and the UIComponent. and cause this inner loop to - terminate. If curHandler is an instance of - ActionSource2AttachedObjectHandler and curTarget is an instance of - ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to - curTargetName, consider it a match. If curHandler is an instance of - EditableValueHolderAttachedObjectHandler and curTarget is an instance - of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is - equal to curTargetName, consider it a match. If curHandler is an - instance of ValueHolderAttachedObjectHandler and curTarget is an - instance of ValueHolderAttachedObjectTarget, and curTarget.getName() - is equal to curTargetName, consider it a match. If curHandler is an - instance of BehaviorHolderAttachedObjectHandler and curTarget is an - instance of BehaviorHolderAttachedObjectTarget, and either of the - following conditions are true, curHandler.getEventName() is not null - and is equal to curTargetName. curHandler.getEventName() is null and - curTarget.isDefaultEvent() is true. consider it a match. The - implementation must support retargeting attached objects from the top - level compsite component to targets that are composite and - non-composite components. An implementation is provided that will - throw UnsupportedOperationException. A Faces implementation compliant - with version 2.0 and beyond of the specification must override this - method. true
-
true
JSF:JAVADOC:2266voidjakarta.faces.view.ViewDeclarationLanguage.retargetAttachedObjects
- - ( FacesContext ,
- UIComponent ,
- List )
- throws NullPointerException
-
if any - of the arguments are null.true
-
true
JSF:JAVADOC:2267voidjakarta.faces.view.ViewDeclarationLanguage.retargetMethodExpressions
- - ( FacesContext ,
- UIComponent )
- - Assuming the component metadata for argument topLevelComponent has - been made available by an earlier call to - ViewDeclarationLanguage#getComponentMetadata, leverage the component - metadata for the purpose of re-targeting any method expressions from - the top level component to the appropriate inner component. For each - attribute that is a MethodExpression (as indicated by the presence of - a "method-signature" attribute and the absence of a "type" attribute), - the following action must be taken: Get the value of the targets - attribute. If the value is a ValueExpression evaluate it. If there is - no targets attribute, let the name of the metadata element be the - evaluated value of the targets attribute. Interpret targets as a space - (not tab) separated list of ids. For each entry in the list: Find the - inner component of the topLevelComponent with the id equal to the - current list entry. For discussion, this component is called target. - If not found, log and error and continue to the next attribute. For - discussion the declared name of the attribute is called name. In the - attributes map of the topLevelComponent, look up the entry under the - key name. Assume the result is a ValueExpression. For discussion, this - is attributeValueExpression. If not found, log an error and continue - to the next attribute. If name is equal to the string "action", or - "actionListener" without the quotes, assume target is an - jakarta.faces.component.ActionSource2. If name is equal to the string - "validator", or "valueChangeListener" without the quotes, assume - target is an jakarta.faces.component.EditableValueHolder. Call - getExpressionString() on the attributeValueExpression and use that - string to create a MethodExpression of the appropriate signature for - name. If name is not equal to any of the previously listed strings, - call getExpressionString() on the attributeValueExpression and use - that string to create a MethodExpression where the signature is - created based on the value of the "method-signature" attribute of the - tag. Let the resultant MethodExpression be called - attributeMethodExpression for discussion. If name is equal to the - string "action" without the quotes, call - jakarta.faces.component.ActionSource2#setActionExpression on target, - passing attributeMethodExpression. If name is equal to the string - "actionListener" without the quotes, call - jakarta.faces.component.ActionSource#addActionListener on target, - passing attributeMethodExpression wrapped in a - jakarta.faces.event.MethodExpressionActionListener. If name is equal to - the string "validator" without the quotes, call - jakarta.faces.component.EditableValueHolder#addValidator on target, - passing attributeMethodExpression wrapped in a - jakarta.faces.validator.MethodExpressionValidator. If name is equal to - the string "valueChangeListener" without the quotes, call - jakarta.faces.component.EditableValueHolder#addValueChangeListener on - target, passing attributeMethodExpression wrapped in a - jakarta.faces.event.MethodExpressionValueChangeListener. Otherwise, - assume that the MethodExpression should be placed in the components - attribute set. The runtme must create the MethodExpression instance - based on the value of the "method-signature" attribute. An - implementation is provided that will throw - UnsupportedOperationException. A Faces implementation compliant with - version 2.0 and beyond of the specification must override this method. - true
-
true
JSF:JAVADOC:2268voidjakarta.faces.view.ViewDeclarationLanguage.retargetMethodExpressions
- - ( FacesContext ,
- UIComponent )
- throws NullPointerException
-
if - context or topLevelComponent is null.true
-
true
JSF:JAVADOC:2269ViewDeclarationLanguagejakarta.faces.view.ViewDeclarationLanguage.ViewDeclarationLanguage
-

-
true
-
true
JSF:JAVADOC:2270ViewDeclarationLanguagejakarta.faces.view.ViewDeclarationLanguageFactory.getViewDeclarationLanguage
- - ( String )
Return - the ViewDeclarationLanguage instance suitable for handling the VDL - contained in the page referenced by the argument viewId. The default - implementation must return a valid ViewDeclarationLanguage instance - for views written in either JSP or Facelets for JSF 2. true
-
true
JSF:JAVADOC:2271ViewDeclarationLanguagejakarta.faces.view.ViewDeclarationLanguageFactory.getViewDeclarationLanguage
- - ( String )
- throws NullPointerException
-
if - viewId is null.true
-
true
JSF:JAVADOC:2272ViewDeclarationLanguageFactoryjakarta.faces.view.ViewDeclarationLanguageFactory.getWrapped
-
If this - factory has been decorated, the implementation doing the decorating - may override this method to provide access to the implementation being - wrapped. A default implementation is provided that returns null. true
-
true
JSF:JAVADOC:2273ViewDeclarationLanguageFactoryjakarta.faces.view.ViewDeclarationLanguageFactory.ViewDeclarationLanguageFactory
-

-
true
-
true
JSF:JAVADOC:2274UIViewRootjakarta.faces.view.ViewMetadata.createMetadataView
- - ( FacesContext )
Creates - a new UIViewRoot containing only view parameter metadata. The - processing of building this UIViewRoot with metadata should not cause - any events to be published to the application. The implementation must - call FacesContext#setProcessingEvents passing false as the argument, - at the beginning of the method, and pass true to the same method at - the end. The implementation must ensure that this happens regardless - of ant exceptions that may be thrown. true
-
true
JSF:JAVADOC:2275Stringjakarta.faces.view.ViewMetadata.getViewId
-

-
true
-
true
JSF:JAVADOC:2276Collectionjakarta.faces.view.ViewMetadata.getViewParameters
- - ( UIViewRoot )
Utility - method to extract view metadata from the provided UIViewRoot. true
-
true
JSF:JAVADOC:2277ViewMetadatajakarta.faces.view.ViewMetadata.ViewMetadata
-

-
true
-
true
JSF:JAVADOC:2278Stringjakarta.faces.view.facelets.AttributeHandler.getAttributeName
- - ( FaceletContext )
Returns - the resolved literal String value of the attribute name after - evaluating EL. true
-
true
JSF:JAVADOC:2279Stringjakarta.faces.view.facelets.BehaviorConfig.getBehaviorId
-
Return - the value of the behavior-id. true
-
true
JSF:JAVADOC:2280BehaviorHandlerjakarta.faces.view.facelets.BehaviorHandler.BehaviorHandler
- - ( BehaviorConfig )

-
true
-
true
JSF:JAVADOC:2281Stringjakarta.faces.view.facelets.BehaviorHandler.getBehaviorId
-

-
true
-
true
JSF:JAVADOC:2282TagAttributejakarta.faces.view.facelets.BehaviorHandler.getEvent
-

-
true
-
true
JSF:JAVADOC:2283Stringjakarta.faces.view.facelets.BehaviorHandler.getEventName
-
Return - the client event name to which this behavior applies. true
-
true
JSF:JAVADOC:2284Stringjakarta.faces.view.facelets.ComponentConfig.getComponentType
-
- ComponentType to pass to the Application. Cannot be null. true
-
true
JSF:JAVADOC:2285Stringjakarta.faces.view.facelets.ComponentConfig.getRendererType
-
- RendererType to set on created UIComponent instances. true
-
true
JSF:JAVADOC:2286ComponentHandlerjakarta.faces.view.facelets.ComponentHandler.ComponentHandler
- - ( ComponentConfig )
- - - Leverage the TagHandlerDelegateFactory provided by the implementation - to create an instance of TagHandlerDelegate designed for use with - ComponentHandler. true
-
true
JSF:JAVADOC:2287ComponentConfigjakarta.faces.view.facelets.ComponentHandler.getComponentConfig
-

-
true
-
true
JSF:JAVADOC:2288booleanjakarta.faces.view.facelets.ComponentHandler.isNew
- - ( UIComponent )
- Determine if the passed component is not null and if it's new to the - tree. This operation can be used for determining if attributes should - be wired to the component. true
-
true
JSF:JAVADOC:2289voidjakarta.faces.view.facelets.ComponentHandler.onComponentCreated
- - ( FaceletContext ,
- UIComponent ,
- UIComponent )
This - method is guaranteed to be called after the component has been created - but before it has been populated with children. true
-
true
JSF:JAVADOC:2290voidjakarta.faces.view.facelets.ComponentHandler.onComponentPopulated
- - ( FaceletContext ,
- UIComponent ,
- UIComponent )
This - method is guaranteed to be called after the component has been - populated with children. true
-
true
JSF:JAVADOC:2291voidjakarta.faces.view.facelets.CompositeFaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
Calls - apply on any child handlers. true
-
true
JSF:JAVADOC:2292voidjakarta.faces.view.facelets.CompositeFaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2293CompositeFaceletHandlerjakarta.faces.view.facelets.CompositeFaceletHandler.CompositeFaceletHandler
- - ( FaceletHandler[] )

-
true
-
true
JSF:JAVADOC:2294FaceletHandler[]jakarta.faces.view.facelets.CompositeFaceletHandler.getHandlers
-
Returns - the array of child handlers contained by this handler. true
-
true
JSF:JAVADOC:2295Stringjakarta.faces.view.facelets.ConverterConfig.getConverterId
-
Return - the converter id to be used in instantiating this converter true
-
true
JSF:JAVADOC:2296ConverterHandlerjakarta.faces.view.facelets.ConverterHandler.ConverterHandler
- - ( ConverterConfig )

-
true
-
true
JSF:JAVADOC:2297Stringjakarta.faces.view.facelets.ConverterHandler.getConverterId
- - ( FaceletContext )

-
true
-
true
JSF:JAVADOC:2298voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.apply
- - ( FaceletContext ,
- UIComponent )
The - default implementation simply calls through to - TagHandlerDelegate#apply. true
-
true
JSF:JAVADOC:2299voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2300voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler
- - ( FaceletContext ,
- UIComponent )

-
true
-
true
JSF:JAVADOC:2301voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler
- - ( FaceletContext ,
- UIComponent )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2302voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler
- - ( FaceletContext ,
- UIComponent )
- throws FacesException
-

-
true
-
true
JSF:JAVADOC:2303voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler
- - ( FaceletContext ,
- UIComponent )
- throws ELException
-

-
true
-
true
JSF:JAVADOC:2304DelegatingMetaTagHandlerjakarta.faces.view.facelets.DelegatingMetaTagHandler.DelegatingMetaTagHandler
- - ( TagConfig )

-
true
-
true
JSF:JAVADOC:2305TagAttributejakarta.faces.view.facelets.DelegatingMetaTagHandler.getBinding
-

-
true
-
true
JSF:JAVADOC:2306Tagjakarta.faces.view.facelets.DelegatingMetaTagHandler.getTag
-

-
true
-
true
JSF:JAVADOC:2307TagAttributejakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagAttribute
- - ( String )

-
true
-
true
JSF:JAVADOC:2308Stringjakarta.faces.view.facelets.DelegatingMetaTagHandler.getTagId
-

-
true
-
true
JSF:JAVADOC:2309booleanjakarta.faces.view.facelets.DelegatingMetaTagHandler.isDisabled
- - ( FaceletContext )

-
true
-
true
JSF:JAVADOC:2310voidjakarta.faces.view.facelets.DelegatingMetaTagHandler.setAttributes
- - ( FaceletContext ,
- Object )
- Invoking/extending this method will cause the results of the created - MetaRuleset to auto-wire state to the passed instance. true
-
true
JSF:JAVADOC:2311FaceletContextjakarta.faces.view.facelets.FaceletContext.FaceletContext
-

-
true
-
true
JSF:JAVADOC:2312Stringjakarta.faces.view.facelets.FaceletContext.generateUniqueId
- - ( String )
- Generate a unique ID for the passed String true
-
true
JSF:JAVADOC:2313Objectjakarta.faces.view.facelets.FaceletContext.getAttribute
- - ( String )
Return - an attribute set by a previous call to #setAttribute. Support method - which is backed by the current VariableMapper true
-
true
JSF:JAVADOC:2314ExpressionFactoryjakarta.faces.view.facelets.FaceletContext.getExpressionFactory
-
The - ExpressionFactory to use within the Facelet this context is executing - upon. Must not be null. true
-
true
JSF:JAVADOC:2315FacesContextjakarta.faces.view.facelets.FaceletContext.getFacesContext
-
The - current FacesContext bound to this "request". Must not be null. true
-
true
JSF:JAVADOC:2316voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- String )
Include - another Facelet defined at some path, relative to the executing - context, not the current Facelet (same as include directive in JSP) true
-
true
JSF:JAVADOC:2317voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- String )
- throws IOException
-
if - unable to load relativePathtrue
-
true
JSF:JAVADOC:2318voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- String )
- throws FaceletException
-
if - unable to parse the markup loaded from relativePathtrue
-
true
JSF:JAVADOC:2319voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- String )
- throws FacesException
-
if - unable to create child UIComponent instancestrue
-
true
JSF:JAVADOC:2320voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- String )
- throws ELException
-
if any - of the expressions in the markup loaded from relativePath failtrue
-
true
JSF:JAVADOC:2321voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- URL )
Include - another Facelet defined at some path, absolute to this ClassLoader/OS - - true
-
true
JSF:JAVADOC:2322voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- URL )
- throws IOException
-
if - unable to load relativePathtrue
-
true
JSF:JAVADOC:2323voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- URL )
- throws FaceletException
-
if - unable to parse the markup loaded from relativePathtrue
-
true
JSF:JAVADOC:2324voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- URL )
- throws FacesException
-
if - unable to create child UIComponent instancestrue
-
true
JSF:JAVADOC:2325voidjakarta.faces.view.facelets.FaceletContext.includeFacelet
- - ( UIComponent ,
- URL )
- throws ELException
-
if any - of the expressions in the markup loaded from relativePath failtrue
-
true
JSF:JAVADOC:2326voidjakarta.faces.view.facelets.FaceletContext.setAttribute
- - ( String ,
- Object )
Support - method which is backed by the current VariableMapper. true
-
true
JSF:JAVADOC:2327voidjakarta.faces.view.facelets.FaceletContext.setFunctionMapper
- - ( FunctionMapper )
Set the - FunctionMapper to use in EL evaluation/creation. true
-
true
JSF:JAVADOC:2328voidjakarta.faces.view.facelets.FaceletContext.setVariableMapper
- - ( VariableMapper )
Set the - VariableMapper to use in EL evaluation/creation. true
-
true
JSF:JAVADOC:2329FaceletExceptionjakarta.faces.view.facelets.FaceletException.FaceletException
-
Create - an empty FaceletException. true
-
true
JSF:JAVADOC:2330FaceletExceptionjakarta.faces.view.facelets.FaceletException.FaceletException
- - ( String )
Create - a FaceletException with argument message as the message. true
-
true
JSF:JAVADOC:2331FaceletExceptionjakarta.faces.view.facelets.FaceletException.FaceletException
- - ( Throwable )
Wrap - argument cause within this FaceletException instance. true
-
true
JSF:JAVADOC:2332FaceletExceptionjakarta.faces.view.facelets.FaceletException.FaceletException
- - ( String ,
- Throwable )
Wrap - argument cause in a FaceletException instance, with a message given by - the argument message. true
-
true
JSF:JAVADOC:2333voidjakarta.faces.view.facelets.FaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
Process - changes on a particular UIComponent true
-
true
JSF:JAVADOC:2334voidjakarta.faces.view.facelets.FaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws IOException
-
if - unable to load relativePathtrue
-
true
JSF:JAVADOC:2335voidjakarta.faces.view.facelets.FaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws FaceletException
-
if - unable to parse the markup loaded from relativePathtrue
-
true
JSF:JAVADOC:2336voidjakarta.faces.view.facelets.FaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws FacesException
-
if - unable to create child UIComponent instancestrue
-
true
JSF:JAVADOC:2337voidjakarta.faces.view.facelets.FaceletHandler.apply
- - ( FaceletContext ,
- UIComponent )
- throws ELException
-
if any - of the expressions in the markup loaded from relativePath failtrue
-
true
JSF:JAVADOC:2338voidjakarta.faces.view.facelets.FaceletsAttachedObjectHandler.applyAttachedObject
- - ( FacesContext ,
- UIComponent )
Take - the necessary actions to apply the attached object represented by the - tag for the concrete subclass of this class to the argument parent. true
-
true
JSF:JAVADOC:2339FaceletsAttachedObjectHandlerjakarta.faces.view.facelets.FaceletsAttachedObjectHandler.FaceletsAttachedObjectHandler
- - ( TagConfig )
Call - through to super true
-
true
JSF:JAVADOC:2340Stringjakarta.faces.view.facelets.FaceletsAttachedObjectHandler.getFor
-
Return - the value of the "for" attribute. This enables the runtime to know to - which inner component this attached object should be retargeted. true
-
true
JSF:JAVADOC:2341Stringjakarta.faces.view.facelets.FacetHandler.getFacetName
- - ( FaceletContext )
Returns - the resolved literal String value of the facet name after evaluating - EL. true
-
true
JSF:JAVADOC:2342voidjakarta.faces.view.facelets.Metadata.applyMetadata
- - ( FaceletContext ,
- Object )
Take - the action prescribed in the JSF specification for this particular VDL - element attribute. true
-
true
JSF:JAVADOC:2343Metadatajakarta.faces.view.facelets.Metadata.Metadata
-

-
true
-
true
JSF:JAVADOC:2344PropertyDescriptorjakarta.faces.view.facelets.MetadataTarget.getProperty
- - ( String )
Return - a beans PropertyDescriptor for the property with name given by - argument name. true
-
true
JSF:JAVADOC:2345Classjakarta.faces.view.facelets.MetadataTarget.getPropertyType
- - ( String )
Return - a Class for the property with name given by argument name. true
-
true
JSF:JAVADOC:2346Methodjakarta.faces.view.facelets.MetadataTarget.getReadMethod
- - ( String )
Return - a Method for the getter of the property with name given by argument - name. true
-
true
JSF:JAVADOC:2347Classjakarta.faces.view.facelets.MetadataTarget.getTargetClass
-
Return - the Class of the metadata target. true
-
true
JSF:JAVADOC:2348Methodjakarta.faces.view.facelets.MetadataTarget.getWriteMethod
- - ( String )
Return - a Method for the setter of the property with name given by argument - name. true
-
true
JSF:JAVADOC:2349booleanjakarta.faces.view.facelets.MetadataTarget.isTargetInstanceOf
- - ( Class )
Return - true if the target for this metadata element is an instance of the - argument type. true
-
true
JSF:JAVADOC:2350MetadataTargetjakarta.faces.view.facelets.MetadataTarget.MetadataTarget
-

-
true
-
true
JSF:JAVADOC:2351Metadatajakarta.faces.view.facelets.MetaRule.applyRule
- - ( String ,
- TagAttribute ,
- MetadataTarget )
Return - an abstraction that takes appropriate action given the kind of rule - represented by the argument name, in the context of this particular - concrete subclass of MetaRule. The abstraction must encapsulate the - value from the argument attribute. true
-
true
JSF:JAVADOC:2352MetaRulejakarta.faces.view.facelets.MetaRule.MetaRule
-

-
true
-
true
JSF:JAVADOC:2353MetaRulesetjakarta.faces.view.facelets.MetaRuleset.add
- - ( Metadata )
Add - another Metadata to this ruleset, returning this. true
-
true
JSF:JAVADOC:2354MetaRulesetjakarta.faces.view.facelets.MetaRuleset.addRule
- - ( MetaRule )
Add - another MetaRule to this ruleset, returning this. true
-
true
JSF:JAVADOC:2355MetaRulesetjakarta.faces.view.facelets.MetaRuleset.alias
- - ( String ,
- String )
- Customize this MetaRuleset by removing the attribute named by argument - attribute and re-adding it under the name given by the argument - property, returning this. true
-
true
JSF:JAVADOC:2356Metadatajakarta.faces.view.facelets.MetaRuleset.finish
-
Take - actions to apply the rule. true
-
true
JSF:JAVADOC:2357MetaRulesetjakarta.faces.view.facelets.MetaRuleset.ignore
- - ( String )
- Customize this MetaRuleset instance to advise it to ignore the - attribute named by the attribute argument, returning this. true
-
true
JSF:JAVADOC:2358MetaRulesetjakarta.faces.view.facelets.MetaRuleset.ignoreAll
-
- Customize this MetaRuleset instance to advise it to ignore all - attributes, returning this. true
-
true
JSF:JAVADOC:2359MetaRulesetjakarta.faces.view.facelets.MetaRuleset.MetaRuleset
-

-
true
-
true
JSF:JAVADOC:2360MetaTagHandlerjakarta.faces.view.facelets.MetaTagHandler.MetaTagHandler
- - ( TagConfig )

-
true
-
true
JSF:JAVADOC:2361URLjakarta.faces.view.facelets.ResourceResolver.resolveUrl
- - ( String )
Returns - the URL of a Facelet template file. Called by the Facelets Runtime to - load a template file referred to in a Facelets page. true
-
true
JSF:JAVADOC:2362ResourceResolverjakarta.faces.view.facelets.ResourceResolver.ResourceResolver
-

-
true
-
true
JSF:JAVADOC:2363TagAttributesjakarta.faces.view.facelets.Tag.getAttributes
-
Return - an object encapsulating the TagAttributes specified on this element in - the view. true
-
true
JSF:JAVADOC:2364Stringjakarta.faces.view.facelets.Tag.getLocalName
-
Return - the XML local name of the tag. For example, would be "tag". true
-
true
JSF:JAVADOC:2365Locationjakarta.faces.view.facelets.Tag.getLocation
-
Return - the Location of this Tag instance in the Facelet view. true
-
true
JSF:JAVADOC:2366Stringjakarta.faces.view.facelets.Tag.getNamespace
-
Return - the resolved XML Namespace for this tag in the Facelets view. true
-
true
JSF:JAVADOC:2367Stringjakarta.faces.view.facelets.Tag.getQName
-
Return - the XML qualified name for this tag. For example, would be "my:tag". true
-
true
JSF:JAVADOC:2368Tagjakarta.faces.view.facelets.Tag.Tag
- - ( Location ,
- String ,
- String ,
- String ,
- TagAttributes )

-
true
-
true
JSF:JAVADOC:2369Tagjakarta.faces.view.facelets.Tag.Tag
- - ( Tag ,
- TagAttributes )

-
true
-
true
JSF:JAVADOC:2370Stringjakarta.faces.view.facelets.Tag.toString
-

-
true
-
true
JSF:JAVADOC:2371booleanjakarta.faces.view.facelets.TagAttribute.getBoolean
- - ( FaceletContext )
If - literal, return Boolean#getBoolean(java.lang.String) - Boolean.getBoolean(java.lang.String) passing our value, otherwise call - #getObject(FaceletContext, Class) getObject(FaceletContext, Class). true
-
true
JSF:JAVADOC:2372intjakarta.faces.view.facelets.TagAttribute.getInt
- - ( FaceletContext )
If - literal, call Integer#parseInt(java.lang.String) - Integer.parseInt(String), otherwise call #getObject(FaceletContext, - Class) getObject(FaceletContext, Class). true
-
true
JSF:JAVADOC:2373Stringjakarta.faces.view.facelets.TagAttribute.getLocalName
-
Local - name of this attribute true
-
true
JSF:JAVADOC:2374Locationjakarta.faces.view.facelets.TagAttribute.getLocation
-
The - location of this attribute in the FaceletContext true
-
true
JSF:JAVADOC:2375MethodExpressionjakarta.faces.view.facelets.TagAttribute.getMethodExpression
- - ( FaceletContext ,
- Class ,
- Class[] )
Create - a MethodExpression, using this attribute's value as the expression - String. true
-
true
JSF:JAVADOC:2376Stringjakarta.faces.view.facelets.TagAttribute.getNamespace
-
The - resolved Namespace for this attribute true
-
true
JSF:JAVADOC:2377Objectjakarta.faces.view.facelets.TagAttribute.getObject
- - ( FaceletContext )
- Delegates to getObject with Object.class as a param true
-
true
JSF:JAVADOC:2378Objectjakarta.faces.view.facelets.TagAttribute.getObject
- - ( FaceletContext ,
- Class )
If - literal, simply coerce our String literal value using an - ExpressionFactory, otherwise create a ValueExpression and evaluate it. - - - - true
-
true
JSF:JAVADOC:2379Stringjakarta.faces.view.facelets.TagAttribute.getQName
-
The - qualified name for this attribute true
-
true
JSF:JAVADOC:2380Stringjakarta.faces.view.facelets.TagAttribute.getValue
-
Return - the literal value of this attribute true
-
true
JSF:JAVADOC:2381Stringjakarta.faces.view.facelets.TagAttribute.getValue
- - ( FaceletContext )
If - literal, then return our value, otherwise delegate to getObject, - passing String.class. true
-
true
JSF:JAVADOC:2382ValueExpressionjakarta.faces.view.facelets.TagAttribute.getValueExpression
- - ( FaceletContext ,
- Class )
Create - a ValueExpression, using this attribute's literal value and the passed - expected type. true
-
true
JSF:JAVADOC:2383booleanjakarta.faces.view.facelets.TagAttribute.isLiteral
-
If this - TagAttribute is literal (not #{..} or ${..}) true
-
true
JSF:JAVADOC:2384TagAttributejakarta.faces.view.facelets.TagAttribute.TagAttribute
-

-
true
-
true
JSF:JAVADOC:2385TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( TagAttribute )

-
true
-
true
JSF:JAVADOC:2386TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( TagAttribute ,
- String )

-
true
-
true
JSF:JAVADOC:2387TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( TagAttribute ,
- Throwable )

-
true
-
true
JSF:JAVADOC:2388TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( TagAttribute ,
- String ,
- Throwable )

-
true
-
true
JSF:JAVADOC:2389TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( Tag ,
- TagAttribute )

-
true
-
true
JSF:JAVADOC:2390TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( Tag ,
- TagAttribute ,
- String )

-
true
-
true
JSF:JAVADOC:2391TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( Tag ,
- TagAttribute ,
- Throwable )

-
true
-
true
JSF:JAVADOC:2392TagAttributeExceptionjakarta.faces.view.facelets.TagAttributeException.TagAttributeException
- - ( Tag ,
- TagAttribute ,
- String ,
- Throwable )

-
true
-
true
JSF:JAVADOC:2393TagAttributejakarta.faces.view.facelets.TagAttributes.get
- - ( String )
Using - no namespace, find the TagAttribute true
-
true
JSF:JAVADOC:2394TagAttributejakarta.faces.view.facelets.TagAttributes.get
- - ( String ,
- String )
Find a - TagAttribute that matches the passed namespace and local name. true
-
true
JSF:JAVADOC:2395TagAttribute[]jakarta.faces.view.facelets.TagAttributes.getAll
-
Return - an array of all TagAttributes in this set true
-
true
JSF:JAVADOC:2396TagAttribute[]jakarta.faces.view.facelets.TagAttributes.getAll
- - ( String )
Get all - TagAttributes for the passed namespace true
-
true
JSF:JAVADOC:2397String[]jakarta.faces.view.facelets.TagAttributes.getNamespaces
-
A list - of Namespaces found in this set true
-
true
JSF:JAVADOC:2398TagAttributesjakarta.faces.view.facelets.TagAttributes.TagAttributes
-

-
true
-
true
JSF:JAVADOC:2399FaceletHandlerjakarta.faces.view.facelets.TagConfig.getNextHandler
-
The - next FaceletHandler (child or children) to be applied. This must never - be null. true
-
true
JSF:JAVADOC:2400Tagjakarta.faces.view.facelets.TagConfig.getTag
-
Return - the Tag representing this handler. true
-
true
JSF:JAVADOC:2401Stringjakarta.faces.view.facelets.TagConfig.getTagId
-
A - document-unique id, follows the convention "_tagId##" true
-
true
JSF:JAVADOC:2402Tagjakarta.faces.view.facelets.TagDecorator.decorate
- - ( Tag )
If - handled, return a new Tag instance, otherwise return null true
-
true
JSF:JAVADOC:2403TagExceptionjakarta.faces.view.facelets.TagException.TagException
- - ( Tag )
Wrap - the argument tag so the exception can reference its information. true
-
true
JSF:JAVADOC:2404TagExceptionjakarta.faces.view.facelets.TagException.TagException
- - ( Tag ,
- String )
Wrap - the argument tag so the exception can reference its information. true
-
true
JSF:JAVADOC:2405TagExceptionjakarta.faces.view.facelets.TagException.TagException
- - ( Tag ,
- Throwable )
Wrap - the argument tag so the exception can reference its information. true
-
true
JSF:JAVADOC:2406TagExceptionjakarta.faces.view.facelets.TagException.TagException
- - ( Tag ,
- String ,
- Throwable )
Wrap - the argument tag so the exception can reference its information. true
-
true
JSF:JAVADOC:2407TagHandlerjakarta.faces.view.facelets.TagHandler.TagHandler
- - ( TagConfig )
Every - TagHandler instance is associated with a Tag. Each Tag instance has a - TagAttributes property, which is simply a collection of TagAttribute - instances. Extract and save as protected instance variables the - TagConfig#getTagId, TagConfig#getTag and TagConfig#getNextHandler - returns from the argument TagConfig. This constructor is only called - when the Facelets View is compiled. true
-
true
JSF:JAVADOC:2408Stringjakarta.faces.view.facelets.TagHandler.toString
-

-
true
-
true
JSF:JAVADOC:2409voidjakarta.faces.view.facelets.TagHandlerDelegate.apply
- - ( FaceletContext ,
- UIComponent )
Called - by classes that implement jakarta.faces.view.facelets.FaceletHandler in - their implementation of apply(). true
-
true
JSF:JAVADOC:2410voidjakarta.faces.view.facelets.TagHandlerDelegate.apply
- - ( FaceletContext ,
- UIComponent )
- throws IOException
-

-
true
-
true
JSF:JAVADOC:2411MetaRulesetjakarta.faces.view.facelets.TagHandlerDelegate.createMetaRuleset
- - ( Class )
Return - a MetaRuleset particular to this kind of tag handler. Called from - classes that implement MetaTagHandler. true
-
true
JSF:JAVADOC:2412TagHandlerDelegatejakarta.faces.view.facelets.TagHandlerDelegate.TagHandlerDelegate
-

-
true
-
true
JSF:JAVADOC:2413TagHandlerDelegatejakarta.faces.view.facelets.TagHandlerDelegateFactory.createBehaviorHandlerDelegate
- - ( BehaviorHandler )
Create - and return a TagHandlerDelegate instance designed for use with - BehaviorHandler. true
-
true
JSF:JAVADOC:2414TagHandlerDelegatejakarta.faces.view.facelets.TagHandlerDelegateFactory.createComponentHandlerDelegate
- - ( ComponentHandler )
Create - and return a TagHandlerDelegate instance designed for use with - ComponentHandler. true
-
true
JSF:JAVADOC:2415TagHandlerDelegatejakarta.faces.view.facelets.TagHandlerDelegateFactory.createConverterHandlerDelegate
- - ( ConverterHandler )
Create - and return a TagHandlerDelegate instance designed for use with - ConverterHandler. true
-
true
JSF:JAVADOC:2416TagHandlerDelegatejakarta.faces.view.facelets.TagHandlerDelegateFactory.createValidatorHandlerDelegate
- - ( ValidatorHandler )
Create - and return a TagHandlerDelegate instance designed for use with - ValidatorHandler. true
-
true
JSF:JAVADOC:2417TagHandlerDelegateFactoryjakarta.faces.view.facelets.TagHandlerDelegateFactory.TagHandlerDelegateFactory
-

-
true
-
true
JSF:JAVADOC:2418Stringjakarta.faces.view.facelets.TextHandler.getText
-
Returns - the literal String value of the contained text. true
-
true
JSF:JAVADOC:2419Stringjakarta.faces.view.facelets.TextHandler.getText
- - ( FaceletContext )
Returns - the resolved literal String value of the contained text after - evaluating EL. true
-
true
JSF:JAVADOC:2420Stringjakarta.faces.view.facelets.ValidatorConfig.getValidatorId
-
Return - the validator-id associated with a particular validator in your - faces-config true
-
true
JSF:JAVADOC:2421ValidatorConfigjakarta.faces.view.facelets.ValidatorHandler.getValidatorConfig
-
Return - the TagConfig subclass used to configure this handler instance. true
-
true
JSF:JAVADOC:2422Stringjakarta.faces.view.facelets.ValidatorHandler.getValidatorId
- - ( FaceletContext )
- Retrieve the id of the validator that is to be created and added to - the parent EditableValueHolder. All subclasses should override this - method because it is important for Facelets to have a unique way of - identifying the validators that are added to this EditableValueHolder - and allows exclusions to work properly. An exclusion is a validator - declaration that has the attribute "disabled" which resolves to false, - instructing Facelets not to register a default validator with the same - id. true
-
true
JSF:JAVADOC:2423ValidatorHandlerjakarta.faces.view.facelets.ValidatorHandler.ValidatorHandler
- - ( ValidatorConfig )
- Construct this instance around the configuration information in - argument config true
-
true
JSF:JAVADOC:2424AttributeTagjakarta.faces.webapp.AttributeTag.AttributeTag
-

-
truetruetrue
JSF:JAVADOC:2425intjakarta.faces.webapp.AttributeTag.doEndTag
-

-
truetruetrue
JSF:JAVADOC:2426intjakarta.faces.webapp.AttributeTag.doEndTag
-
- throws JspException
-

-
truetruetrue
JSF:JAVADOC:2427intjakarta.faces.webapp.AttributeTag.doStartTag
-
- - - - Register the specified attribute name and value with the UIComponent - instance associated with our most immediately surrounding - UIComponentTag instance, if this UIComponent does not already have a - value for the specified attribute name. truetruetrue
JSF:JAVADOC:2428intjakarta.faces.webapp.AttributeTag.doStartTag
-
- throws JspException
-
if a JSP - error occurstruetruetrue
JSF:JAVADOC:2429voidjakarta.faces.webapp.AttributeTag.release
-
Release - references to any acquired resources. truetruetrue
JSF:JAVADOC:2430voidjakarta.faces.webapp.AttributeTag.setName
- - ( String )
Set the - attribute name. truetruetrue
JSF:JAVADOC:2431voidjakarta.faces.webapp.AttributeTag.setValue
- - ( String )
Set the - attribute value. truetruetrue
JSF:JAVADOC:2432ConverterELTagjakarta.faces.webapp.ConverterELTag.ConverterELTag
-

-
true
-
true
JSF:JAVADOC:2433intjakarta.faces.webapp.ConverterELTag.doStartTag
-
Create - a new instance of the specified Converter class, and register it with - the UIComponent instance associated with our most immediately - surrounding UIComponentClassicTagBase instance, if the UIComponent - instance was created by this execution of the containing JSP page. If - the localValue of the UIComponent is a String, attempt to convert it. - true
-
true
JSF:JAVADOC:2434intjakarta.faces.webapp.ConverterELTag.doStartTag
-
- throws JspException
-
if a JSP - error occurstrue
-
true
JSF:JAVADOC:2435ConverterTagjakarta.faces.webapp.ConverterTag.ConverterTag
-

-
truetruetrue
JSF:JAVADOC:2436intjakarta.faces.webapp.ConverterTag.doStartTag
-
Create - a new instance of the specified Converter class, and register it with - the UIComponent instance associated with our most immediately - surrounding UIComponentTag instance, if the UIComponent instance was - created by this execution of the containing JSP page. If the - localValue of the UIComponent is a String, attempt to convert it. truetruetrue
JSF:JAVADOC:2437intjakarta.faces.webapp.ConverterTag.doStartTag
-
- throws JspException
-
if a JSP - error occurstruetruetrue
JSF:JAVADOC:2438voidjakarta.faces.webapp.ConverterTag.release
-
Release - references to any acquired resources. truetruetrue
JSF:JAVADOC:2439voidjakarta.faces.webapp.ConverterTag.setBinding
- - ( String )
Set the - expression that will be used to create a ValueExpression that - references a backing bean property of the Converter instance to be - created. truetruetrue
JSF:JAVADOC:2440voidjakarta.faces.webapp.ConverterTag.setBinding
- - ( String )
- throws JspException
-
if a JSP - error occurstruetruetrue
JSF:JAVADOC:2441voidjakarta.faces.webapp.ConverterTag.setConverterId
- - ( String )
Set the - identifer of the Converter instance to be created. truetruetrue
JSF:JAVADOC:2442voidjakarta.faces.webapp.FacesServlet.destroy
-
Release - all resources acquired at startup time. true
-
true
JSF:JAVADOC:2443FacesServletjakarta.faces.webapp.FacesServlet.FacesServlet
-

-
true
-
true
JSF:JAVADOC:2444ServletConfigjakarta.faces.webapp.FacesServlet.getServletConfig
-
Return - the ServletConfig instance for this servlet. true
-
true
JSF:JAVADOC:2445Stringjakarta.faces.webapp.FacesServlet.getServletInfo
-
Return - information about this Servlet. true
-
true
JSF:JAVADOC:2446voidjakarta.faces.webapp.FacesServlet.init
- - ( ServletConfig )
Acquire - the factory instances we will require. true
-
true
JSF:JAVADOC:2447voidjakarta.faces.webapp.FacesServlet.init
- - ( ServletConfig )
- throws ServletException
-
if, for - any reason, the startup of this Faces application failed. This - includes errors in the config file that is parsed before or during the - processing of this init() method.true
-
true
JSF:JAVADOC:2448voidjakarta.faces.webapp.FacesServlet.service
- - ( ServletRequest ,
- ServletResponse )
Process - an incoming request, and create the corresponding response according - to the following specification. If the request and response arguments - to this method are not instances of HttpServletRequest and - HttpServletResponse, respectively, the results of invoking this method - are undefined. This method must respond to requests that start with - the following strings by invoking the sendError method on the response - argument (cast to HttpServletResponse), passing the code - HttpServletResponse.SC_NOT_FOUND as the argument. /WEB-INF/ /WEB-INF - /META-INF/ /META-INF If none of the cases described above in the - specification for this method apply to the servicing of this request, - the following action must be taken to service the request. Acquire a - FacesContext instance for this request. Acquire the ResourceHandler - for this request by calling - jakarta.faces.application.Application#getResourceHandler. Call - jakarta.faces.application.ResourceHandler#isResourceRequest. If this - returns true call - jakarta.faces.application.ResourceHandler#handleResourceRequest. If this - returns false, call jakarta.faces.lifecycle.Lifecycle#execute followed - by jakarta.faces.lifecycle.Lifecycle#render. If a - jakarta.faces.FacesException is thrown in either case, extract the cause - from the FacesException. If the cause is null extract the message from - the FacesException, put it inside of a new ServletException instance, - and pass the FacesException instance as the root cause, then rethrow - the ServletException instance. If the cause is an instance of - ServletException, rethrow the cause. If the cause is an instance of - IOException, rethrow the cause. Otherwise, create a new - ServletException instance, passing the message from the cause, as the - first argument, and the cause itself as the second argument. In a - finally block, jakarta.faces.context.FacesContext#release must be - called. true
-
true
JSF:JAVADOC:2449voidjakarta.faces.webapp.FacesServlet.service
- - ( ServletRequest ,
- ServletResponse )
- throws IOException
-
if an - input/output error occurs during processingtrue
-
true
JSF:JAVADOC:2450voidjakarta.faces.webapp.FacesServlet.service
- - ( ServletRequest ,
- ServletResponse )
- throws ServletException
-
if a - servlet error occurs during processingtrue
-
true
JSF:JAVADOC:2451intjakarta.faces.webapp.FacetTag.doStartTag
-
Return - EVAL_BODY_INCLUDE to cause nested body content to be evaluated. true
-
true
JSF:JAVADOC:2452intjakarta.faces.webapp.FacetTag.doStartTag
-
- throws JspException
-

-
true
-
true
JSF:JAVADOC:2453FacetTagjakarta.faces.webapp.FacetTag.FacetTag
-

-
true
-
true
JSF:JAVADOC:2454Stringjakarta.faces.webapp.FacetTag.getName
-
Return - the name to be assigned to this facet. true
-
true
JSF:JAVADOC:2455voidjakarta.faces.webapp.FacetTag.release
-
Release - any resources allocated by this tag instance. true
-
true
JSF:JAVADOC:2456voidjakarta.faces.webapp.FacetTag.setName
- - ( String )
Set the - name to be assigned to this facet. true
-
true
JSF:JAVADOC:2457ExceptionHandlerjakarta.faces.webapp.PreJsf2ExceptionHandlerFactory.getExceptionHandler
-
Create - and return a A new ExceptionHandler instance. The implementation must - return an ExceptionHandler instance suitable for the environment. For - example, in some cases it may be desirable for an ExceptionHandler to - write error information to the response instead of throwing exceptions - as in the case of Ajax applications. true
-
true
JSF:JAVADOC:2458PreJsf2ExceptionHandlerFactoryjakarta.faces.webapp.PreJsf2ExceptionHandlerFactory.PreJsf2ExceptionHandlerFactory
-

-
true
-
true
JSF:JAVADOC:2459UIComponentBodyTagjakarta.faces.webapp.UIComponentBodyTag.UIComponentBodyTag
-

-
truetruetrue
JSF:JAVADOC:2460intjakarta.faces.webapp.UIComponentClassicTagBase.doAfterBody
-
Perform - any processing necessary to handle the content implications of CASE 4 - in the class description. Return result from #getDoAfterBodyValue true
-
true
JSF:JAVADOC:2461intjakarta.faces.webapp.UIComponentClassicTagBase.doAfterBody
-
- throws JspException
-
if an - error is encounteredtrue
-
true
JSF:JAVADOC:2462intjakarta.faces.webapp.UIComponentClassicTagBase.doEndTag
-
Perform - any processing necessary to handle the content implications of CASE 3 - in the class description. The default implementation, which is - intended to be sufficient for most components, calls - #createVerbatimComponentFromBodyContent on this instance and adds it - as a child of the component for this tag's component at the end of the - child list. In addition, the following housekeeping steps are taken. - Retrieve from the UIComponent the set of component ids of child - components created by UIComponentTag instances the last time this page - was processed (if any). Compare it to the list of children created - during this page processing pass, and remove all children present in - the old list but not the new. Save the new list as a component - attribute so that it gets saved as part of the component's state. - Retrieve from the UIComponent the set of facet names of facets created - by UIComponentTag instances the last time this page was processed (if - any). Compare it to the list of facets created during this page - processing pass, and remove all facets present in the old list but not - the new. Save the new list as a component attribute so that it gets - saved as part of the component's state. Release all references to the - component, and pop it from the component stack for this response, - removing the stack if this was the outermost component. The flag value - to be returned is acquired by calling the getDoEndValue() method, - which tag subclasses may override if they do not want the default - value. true
-
true
JSF:JAVADOC:2463intjakarta.faces.webapp.UIComponentClassicTagBase.doEndTag
-
- throws JspException
-
if an - error occurstrue
-
true
JSF:JAVADOC:2464voidjakarta.faces.webapp.UIComponentClassicTagBase.doInitBody
-
Prepare - for evaluation of the body. This method is invoked by the JSP page - implementation object after setBodyContent() and before the first time - the body is to be evaluated. This method will not be invoked for empty - tags or for non-empty tags whose doStartTag() method returns SKIP_BODY - or EVAL_BODY_INCLUDE. true
-
true
JSF:JAVADOC:2465voidjakarta.faces.webapp.UIComponentClassicTagBase.doInitBody
-
- throws JspException
-
if an - error is encounteredtrue
-
true
JSF:JAVADOC:2466intjakarta.faces.webapp.UIComponentClassicTagBase.doStartTag
-
Perform - any processing necessary to find (or create) the UIComponent instance - in the view corresponding to this tag instance in the page and, if and - only if a component was created, insert it into the tree at the proper - location as expected by the page author. Secondarily, cause a - transient UIOutput component to be created and placed in the tree - before the UIComponent instance for this tag. The value of this - UIOutput component must include anything covered by CASE 1 or CASE 2 - in the class description. The default implementation, which is - intended to be sufficient for most components, implements this - secondary requirement by calling #getParentUIComponentClassicTagBase, - and calling #createVerbatimComponentFromBodyContent on the result. It - then adds the returned component to the tree before the actual - component for this tag instance instance by calling - #addVerbatimBeforeComponent. Before returning, the component is pushed - onto the component stack for this response to enable the - #getParentUIComponentClassicTagBase method to work properly. The flag - value to be returned is acquired by calling the getDoStartValue() - method, which tag subclasses may override if they do not want the - default value. true
-
true
JSF:JAVADOC:2467intjakarta.faces.webapp.UIComponentClassicTagBase.doStartTag
-
- throws JspException
-
if an - error occurstrue
-
true
JSF:JAVADOC:2468BodyContentjakarta.faces.webapp.UIComponentClassicTagBase.getBodyContent
-

-
true
-
true
JSF:JAVADOC:2469UIComponentjakarta.faces.webapp.UIComponentClassicTagBase.getComponentInstance
-
Return - the UIComponent instance that is associated with this tag instance. - This method is designed to be used by tags nested within this tag, and - only returns useful results between the execution of doStartTag() and - doEndTag() on this tag instance. true
-
true
JSF:JAVADOC:2470booleanjakarta.faces.webapp.UIComponentClassicTagBase.getCreated
-
Return - true if we dynamically created a new component instance during - execution of this tag. This method is designed to be used by tags - nested within this tag, and only returns useful results between the - execution of doStartTag() and doEndTag() on this tag instance. true
-
true
JSF:JAVADOC:2471Stringjakarta.faces.webapp.UIComponentClassicTagBase.getJspId
-

-
true
-
true
JSF:JAVADOC:2472Tagjakarta.faces.webapp.UIComponentClassicTagBase.getParent
-
Return - the Tag that is the parent of this instance. true
-
true
JSF:JAVADOC:2473UIComponentClassicTagBasejakarta.faces.webapp.UIComponentClassicTagBase.getParentUIComponentClassicTagBase
- - ( PageContext )
Locate - and return the nearest enclosing UIComponentClassicTagBase if any; - otherwise, return null. true
-
true
JSF:JAVADOC:2474JspWriterjakarta.faces.webapp.UIComponentClassicTagBase.getPreviousOut
-
Get the - JspWriter from our BodyContent. true
-
true
JSF:JAVADOC:2475voidjakarta.faces.webapp.UIComponentClassicTagBase.release
-
Release - any resources allocated during the execution of this tag handler. true
-
true
JSF:JAVADOC:2476voidjakarta.faces.webapp.UIComponentClassicTagBase.setBodyContent
- - ( BodyContent )
Set the - bodyContent for this tag handler. This method is invoked by the JSP - page implementation object at most once per action invocation, before - doInitiBody(). This method will not be invoked for empty tags or for - non-empty tags whose doStartTag() method returns SKIP_BODY or - EVAL_BODY_INCLUDE. true
-
true
JSF:JAVADOC:2477voidjakarta.faces.webapp.UIComponentClassicTagBase.setId
- - ( String )
Set the - component identifier for our component. If the argument begins with - UIViewRoot#UNIQUE_ID_PREFIX throw an IllegalArgumentException true
-
true
JSF:JAVADOC:2478voidjakarta.faces.webapp.UIComponentClassicTagBase.setId
- - ( String )
- throws IllegalArgumentException
-
if the - argument is non-null and starts with UIViewRoot#UNIQUE_ID_PREFIX.true
-
true
JSF:JAVADOC:2479voidjakarta.faces.webapp.UIComponentClassicTagBase.setJspId
- - ( String )
Defined - on JspIdConsumer. This method is called by the container before - #doStartTag. The argument is guaranteed to be unique within the page. - IMPLEMENTATION NOTE: This method will detect where we are in an - include and assign a unique ID for each include in a particular - 'logical page'. This allows us to avoid possible duplicate ID - situations for included pages that have components without explicit - IDs. true
-
true
JSF:JAVADOC:2480voidjakarta.faces.webapp.UIComponentClassicTagBase.setPageContext
- - ( PageContext )
Set the - PageContext of the page containing this tag instance. true
-
true
JSF:JAVADOC:2481voidjakarta.faces.webapp.UIComponentClassicTagBase.setParent
- - ( Tag )
Set the - Tag that is the parent of this instance. true
-
true
JSF:JAVADOC:2482UIComponentClassicTagBasejakarta.faces.webapp.UIComponentClassicTagBase.UIComponentClassicTagBase
-

-
true
-
true
JSF:JAVADOC:2483voidjakarta.faces.webapp.UIComponentELTag.release
-
Release - any resources allocated during the execution of this tag handler. true
-
true
JSF:JAVADOC:2484voidjakarta.faces.webapp.UIComponentELTag.setBinding
- - ( ValueExpression )
Set the - value expression for our component. true
-
true
JSF:JAVADOC:2485voidjakarta.faces.webapp.UIComponentELTag.setBinding
- - ( ValueExpression )
- throws JspException
-
if an - error occurstrue
-
true
JSF:JAVADOC:2486voidjakarta.faces.webapp.UIComponentELTag.setRendered
- - ( ValueExpression )
Set an - override for the rendered attribute. true
-
true
JSF:JAVADOC:2487UIComponentELTagjakarta.faces.webapp.UIComponentELTag.UIComponentELTag
-

-
true
-
true
JSF:JAVADOC:2488UIComponentTagjakarta.faces.webapp.UIComponentTag.getParentUIComponentTag
- - ( PageContext )
Locate - and return the nearest enclosing UIComponentTag if any; otherwise, - return null. truetruetrue
JSF:JAVADOC:2489booleanjakarta.faces.webapp.UIComponentTag.isValueReference
- - ( String )
Return - true if the specified value conforms to the syntax requirements of a - value binding expression. Such expressions ` * may be used on most - component tag attributes to signal a desire for deferred evaluation of - the attribute or property value to be set on the underlying - UIComponent. truetruetrue
JSF:JAVADOC:2490booleanjakarta.faces.webapp.UIComponentTag.isValueReference
- - ( String )
- throws NullPointerException
-
if value - is nulltruetruetrue
JSF:JAVADOC:2491voidjakarta.faces.webapp.UIComponentTag.release
-
Release - any resources allocated during the execution of this tag handler. truetruetrue
JSF:JAVADOC:2492voidjakarta.faces.webapp.UIComponentTag.setBinding
- - ( String )
Set the - value binding expression for our component. truetruetrue
JSF:JAVADOC:2493voidjakarta.faces.webapp.UIComponentTag.setBinding
- - ( String )
- throws JspException
-

-
truetruetrue
JSF:JAVADOC:2494voidjakarta.faces.webapp.UIComponentTag.setBinding
- - ( String )
- throws IllegalArgumentException
-
if the - specified binding is not a valid value binding expression.truetruetrue
JSF:JAVADOC:2495voidjakarta.faces.webapp.UIComponentTag.setRendered
- - ( String )
Set an - override for the rendered attribute. truetruetrue
JSF:JAVADOC:2496UIComponentTagjakarta.faces.webapp.UIComponentTag.UIComponentTag
-

-
truetruetrue
JSF:JAVADOC:2497UIComponentjakarta.faces.webapp.UIComponentTagBase.getComponentInstance
-
Return - the UIComponent instance that is associated with this tag instance. - This method is designed to be used by tags nested within this tag, and - only returns useful results between the execution of doStartTag() and - doEndTag() on this tag instance. true
-
true
JSF:JAVADOC:2498Stringjakarta.faces.webapp.UIComponentTagBase.getComponentType
-
Return - the component type for the component that is or will be bound to this - tag. This value can be passed to - jakarta.faces.application.Application#createComponent to create the - UIComponent instance for this tag. Subclasses must override this - method to return the appropriate value. true
-
true
JSF:JAVADOC:2499booleanjakarta.faces.webapp.UIComponentTagBase.getCreated
-
Return - true if we dynamically created a new component instance during - execution of this tag. This method is designed to be used by tags - nested within this tag, and only returns useful results between the - execution of doStartTag() and doEndTag() on this tag instance. true
-
true
JSF:JAVADOC:2500Stringjakarta.faces.webapp.UIComponentTagBase.getRendererType
-
Return - the rendererType property that selects the Renderer to be used for - encoding this component, or null to ask the component to render itself - directly. Subclasses must override this method to return the - appropriate value. true
-
true
JSF:JAVADOC:2501voidjakarta.faces.webapp.UIComponentTagBase.setId
- - ( String )
Set the - component identifier for the component corresponding to this tag - instance. If the argument begins with - jakarta.faces.component.UIViewRoot#UNIQUE_ID_PREFIX throw an - IllegalArgumentException true
-
true
JSF:JAVADOC:2502voidjakarta.faces.webapp.UIComponentTagBase.setId
- - ( String )
- throws IllegalArgumentException
-
if the - argument is non-null and starts with - jakarta.faces.component.UIViewRoot#UNIQUE_ID_PREFIX.true
-
true
JSF:JAVADOC:2503UIComponentTagBasejakarta.faces.webapp.UIComponentTagBase.UIComponentTagBase
-

-
true
-
true
JSF:JAVADOC:2504intjakarta.faces.webapp.ValidatorELTag.doStartTag
-
Create - a new instance of the specified Validator class, and register it with - the UIComponent instance associated with our most immediately - surrounding UIComponentTagBase instance, if the UIComponent instance - was created by this execution of the containing JSP page. true
-
true
JSF:JAVADOC:2505intjakarta.faces.webapp.ValidatorELTag.doStartTag
-
- throws JspException
-
if a JSP - error occurstrue
-
true
JSF:JAVADOC:2506ValidatorELTagjakarta.faces.webapp.ValidatorELTag.ValidatorELTag
-

-
true
-
true
JSF:JAVADOC:2507intjakarta.faces.webapp.ValidatorTag.doStartTag
-
Create - a new instance of the specified Validator class, and register it with - the UIComponent instance associated with our most immediately - surrounding UIComponentTag instance, if the UIComponent instance was - created by this execution of the containing JSP page. truetruetrue
JSF:JAVADOC:2508intjakarta.faces.webapp.ValidatorTag.doStartTag
-
- throws JspException
-
if a JSP - error occurstruetruetrue
JSF:JAVADOC:2509voidjakarta.faces.webapp.ValidatorTag.release
-
Release - references to any acquired resources. truetruetrue
JSF:JAVADOC:2510voidjakarta.faces.webapp.ValidatorTag.setBinding
- - ( String )
Set the - expression that will be used to create a ValueExpression that - references a backing bean property of the Validator instance to be - created. truetruetrue
JSF:JAVADOC:2511voidjakarta.faces.webapp.ValidatorTag.setBinding
- - ( String )
- throws JspException
-
if a JSP - error occurstruetruetrue
JSF:JAVADOC:2512voidjakarta.faces.webapp.ValidatorTag.setValidatorId
- - ( String )
Set the - identifer of the Validator instance to be created. truetruetrue
JSF:JAVADOC:2513ValidatorTagjakarta.faces.webapp.ValidatorTag.ValidatorTag
-

-
truetruetrue
- - diff --git a/install/jsf/docs/assertions/JakartaServerFacesSpecAssertions.html b/install/jsf/docs/assertions/JakartaServerFacesSpecAssertions.html deleted file mode 100644 index 95aa73f542..0000000000 --- a/install/jsf/docs/assertions/JakartaServerFacesSpecAssertions.html +++ /dev/null @@ -1,6022 +0,0 @@ - - - - - -Specification Assertion Detail - - -
-
-

Jakarta Server Faces 3.0
- Specification Assertion Detail -

-
- - - - - - - - - - - -
TotalsTotalActiveDeprecatedRemoved
- # of Assertions - 65365300
- # of Required Assertions - 65365300
- # of Optional Assertions - 0000
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IDChapterSectionDescriptionRequiredDependencyImplementation SpecificDefined byStatusTestable
JSF:SPEC:122.1 - The JSF implementation must perform the following tasks during - the Restore View phase of the request processing lifecycle: - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.122.1 - Examine the FacesContext instance for the current - request. If it already contains a UIViewRoot: - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.1.122.1 - Set the locale on the UIViewRoot to the value - returned by getRequestLocale() method on the - ExternalContext for this request - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.1.222.1 - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValue() method on - this ValueExpression, passing the component - instance on which it was found. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.1.322.1 - Take no further action during this phase, and - return. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.222.1 - Derive the view identifier that corresponds to this - request, as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.2.122.1 - If prefix mapping (such as /faces/*) is - used for FacesServlet, the viewId is set from - the extra path information of the request - URI. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.2.222.1 - If suffix mapping (such as *.faces) is used for - FacesServlet, the viewId is set from the servlet - path information of the request URI, after - replacing the suffix with the value of the - context initialization parameter named by the - symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no - such context initialization parameter is - present, use the value of the symbolic constant - ViewHandler.DEFAULT_SUFIX as the replacement - suffix). - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.2.322.1 - If no view identifier can be derived, throw an - exception. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.322.1 - Determine if this request is a postback or initial - request by executing the following algorithm. Find the - render-kit-id for the current request by calling - calculateRenderKitId() on the Application's ViewHandler. - Get the RenderKit's ResponseStateManager and call its - isPostback() method, passin gthe current FacesContext - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.422.1 - A request that is a non-postback request must call - FacesContext.renderResponse() to cause intervening - phases to be skipped. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.522.1 - If the request is a postback, call - ViewHandler.restoreView() passing the FacesCOntext - isntance for the current request and the derived view - identifier, and returning a UIViewRoot for the restored - view. If the return from ViewHandler.restoreView() is - null, throw a FacesException with an appropriate error - message. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.5.122.1 - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValeu() method on - this ValueExpression, passing the component - instance on which it was found. Do this in a - parent-first fashion, calling setValue() method - and then traversing the children. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.622.1 - If the request is a non-postback, call - ViewHandler.createView(), passing the FacesContext - instance for the current request and the derived view - identifier. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1.722.1 - Store the restored or created UIViewRoot in the - FacesContext - true -
-
falsetechnologyactivetrue
JSF:SPEC:222.2 - During the Apply Request Values phase, the JSF implementation - must call the processDecodes() method of the UIViewRoot of the - component tree. - true -
-
falsetechnologyactivetrue
JSF:SPEC:322.2 - During the decoding of request values, some components perform - special processing: - true -
-
falsetechnologyactivetrue
JSF:SPEC:3.122.2 - Components that implement ActionSource, which recognize - that they were activated, will queue an ActionEvent. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3.1.122.2 - The event will be delivered at the end of Apply - Request Values phase if the immediate property - is true - true -
-
falsetechnologyactivetrue
JSF:SPEC:3.1.222.2 - The event will be delivered at the end of Invoke - Application phase if the immediate property is - false - true -
-
falsetechnologyactivetrue
JSF:SPEC:3.222.2 - Components that implement EditableValueHolder, and whose - immediate property is set to true, will cause the - conversion and validation processing that normally - happens during Process Validations phase to occur during - Apply Requst Values phase instead. - true -
-
falsetechnologyactivetrue
JSF:SPEC:422.2 - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called - responseComplete() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - terminate the lifecycle processing of the current request. - true -
-
falsetechnologyactivetrue
JSF:SPEC:522.2 - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and terminate the - lifecycle processing of the current request. - true -
-
falsetechnologyactivetrue
JSF:SPEC:622.2 - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, did not call - responseComplete() or renderResponse() on the FacesContext - instance for the current request, the implementation must - proceed to the Process Validations phase. - true -
-
falsetechnologyactivetrue
JSF:SPEC:722.3 - During the Process Validations phase of the request processing - lifecycle, the JSF implementation must call the - processValidators() method of the UIViewRoot of the tree. - true -
-
falsetechnologyactivetrue
JSF:SPEC:822.3 - If any of the validate() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and transfer control to - the Render Response phase of the request processing lifecycle. - Otherwise, control must proceed to the Update Model Values - phase. - true -
-
falsetechnologyactivetrue
JSF:SPEC:922.4 - During the Update Model Values phase, the JSF implementation - must call the processUpdates() method of the UIViewRoot - component of the tree. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1022.4 - If any of the updateModel() methods that was invoked, - or an event listener that processed a queued event, called - renderResponse() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - transfer control to the Render Response phase of the request - processing lifecycle. Otherwise, control must proceed to the - Invoke Application phase. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1122.5 - The implementation must ensure that the processApplication() - method of the UIViewRoot instance is called. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11.122.5 - The default behavior of this method will be to broadcast - any queued events that specify a phase identifier of - PhaseId.INVOKE_APPLICATION. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1222.6 - During the Render Response phase All JSF implementations - must conform to the following requirements. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12.122.6 - JSF implementations must provide a default ViewHandler - implementation that performs a - RequestDispatcher.forward() call to a web application - resource whose context-relative path is equal to the - view identifier of the component tree - true -
-
falsetechnologyactivetrue
JSF:SPEC:12.222.6 - During the rendering process, additional components may - be added to the component tree based on information - available to the ViewHandler implementation. However, - before adding a new component, the ViewHandler - implementation must first check for the existence of the - corresponding component in the component tree. If the - component already exists (perhaps because a previous - phase has pre-created one or more components), the - existing component’s properties and attributes must be - utilized. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12.322.6 - Under no circumstances should a component be selected - for rendering when its parent component, or any of its - ancestors in the component tree, has its rendersChildren - property set to true. In such cases, the parent or - ancestor component must render the content of this child - component when the parent or ancestor was selected. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1323 - For each queued event, the broadcast() method of the source - UIComponent must be called to broadcast the event to all event - listeners who have registered an interest, on this source - component for events of the specified type, after which the - event is removed from the event queue. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1423 - It is also possible for event listeners to cause additional - events to be enqueued for processing during the current phase - of the request processing lifecycle. Such events must be - broadcast in the order they were enqueued, after all originally - queued events have been broadcast, before the lifecycle - management method returns. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1524.2.1 - The UIViewRoot instance returned by the createView() method must - minimally contain a single UIViewRoot provided by the JSF - implementation, which must encapsulate any - implementation-specific component management that is required. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1624.2.1 - The caller of ViewHandler.createView() must cause the - FacesContext to be populated with the new UIViewRoot. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1724.2.2 - The default ViewHandler must call calculateRenderKitId() on - itself and set the result into the UIViewRoot’s renderKitId - property. - true -
-
falsetechnologyactivetrue
JSF:SPEC:1824.2.4 - Once the view has been created and configured, the FacesContext - instance for this request must be made aware of it by calling - setViewRoot(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:1925.2.1 - The create ViewHandler’s createView() method must cause the - active Locale to be determined by looking at the user’s - preferences combined with the application’s stated supported - locales. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2025.2.2 - At the beginning of the render-response phase, the ViewHandler - must ensure that the response Locale is set to be that of the - UIViewRoot, for example by calling ServletResponse.setLocale() - when running in the servlet environment. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2125.2.2 - At the end of the render-response phase, the ViewHandler must - store the response character encoding used by the underlying - response object (e.g., the servlet or portlet response) in the - session (if and only if a session already exists) under a well - known, implementation-dependent key - true -
-
falsetechnologyactivetrue
JSF:SPEC:21.125.2.2 - On a subsequent postback, before any of the - ExternalContext methods for accessing request - parameters are invoked, the ViewHandler must examine the - Content-Type header to read the charset attribute and - use its value to set it as the request encoding for the - underlying request object. If the Content-Type header - doesn't contain a charset attribute, the encoding - previously stored in the session (if and only if a - session already exists), must be used to set the - encoding for the underlying request object. - true -
-
falsetechnologyactivetrue
JSF:SPEC:21.225.2.2 - If no character encoding is found, the request encoding - must be left unmodified. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2225.2.4 - A JSF implementation must provide a jakarta.faces.Messages - ResourceBundle containing all of the necessary keys for the - standard messages. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.125.2.4 - jakarta.faces.component.UIInput.CONVERSION -- - {0}: Conversion error occurred - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.225.2.4 - jakarta.faces.component.UIInput.REQUIRED -- - {0}: Validation Error: Value is required - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.325.2.4 - jakarta.faces.component.UIInput.UPDATE -- - {0}: An error occurred when processing your submitted - information - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.425.2.4 - jakarta.faces.component.UISelectOne.INVALID -- - {0}: Validation Error: Value is not valid - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.525.2.4 - jakarta.faces.component.UISelectMany.INVALID -- - {0}: Validation Error: Value is not valid - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.625.2.4 - jakarta.faces.converter.BigDecimalConverter.DECIMAL={2}: - ''{0}'' must be a signed decimal number. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.725.2.4 - jakarta.faces.converter.BigDecimalConverter.DECIMAL_detail - ={2}: ''{0}'' must be asigned decimal number consisting - of zero or more digits, that may be followed by a - decimal point and fraction. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.825.2.4 - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER - ={2}: ''{0}'' must be a number consisting of one or more - digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.925.2.4 - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER_ - detail={2}: ''{0}'' must be a number consisting of one - or more digits. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1025.2.4 - jakarta.faces.converter.BooleanConverter.BOOLEAN={1}: - ''{0}'' must be 'true' or 'false'. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1125.2.4 - jakarta.faces.converter.BooleanConverter.BOOLEAN_detail - ={1}: ''{0}'' must be 'true' or 'false'. Any value other - than 'true' will evaluate to 'false'. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1225.2.4 - jakarta.faces.converter.ByteConverter.BYTE={2}: ''{0}'' - must be a number between 0 and 255. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1325.2.4 - jakarta.faces.converter.ByteConverter.BYTE_detail={2}: - ''{0}'' must be a number between 0 and 255. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1425.2.4 - jakarta.faces.converter.CharacterConverter.CHARACTER={1}: - ''{0}'' must be a valid character. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1525.2.4 - jakarta.faces.converter.CharacterConverter.CHARACTER_ - detail={1}: ''{0}'' must be a valid ASCII character. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1625.2.4 - jakarta.faces.converter.DateTimeConverter.DATE={2}: - ''{0}'' could not be understood as a date. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1725.2.4 - jakarta.faces.converter.DateTimeConverter.DATE_detail={2}: - ''{0}'' could not be understood as a date. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1825.2.4 - jakarta.faces.converter.DateTimeConverter.TIME={2}: - ''{0}'' could not be understood as a time. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.1925.2.4 - jakarta.faces.converter.DateTimeConverter.TIME_detail={2}: - ''{0}'' could not be understood as a time. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2025.2.4 - jakarta.faces.converter.DateTimeConverter.DATETIME={2}: - ''{0}'' could not be understood as a date and time. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2125.2.4 - jakarta.faces.converter.DateTimeConverter.DATETIME_detail= - {2}: ''{0}'' could not be understood as a date and time. - Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2225.2.4 - jakarta.faces.converter.DateTimeConverter.PATTERN_TYPE= - {1}: A 'pattern' or 'type' attribute must be specified - to convert the value ''{0}''. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2325.2.4 - jakarta.faces.converter.DoubleConverter.DOUBLE={2}: - ''{0}'' must be a number consisting of one or more - digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2425.2.4 - jakarta.faces.converter.DoubleConverter.DOUBLE_detail={2}: - ''{0}'' must be a number between 4.9E-324 and - 1.7976931348623157E308 Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2525.2.4 - jakarta.faces.converter.EnumConverter.ENUM={2}: ''{0}'' - must be convertible to an enum. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2625.2.4 - jakarta.faces.converter.EnumConverter.ENUM_detail={2}: - ''{0}'' must be convertible to an enum from the enum - that contains the constant ''{1}''. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2725.2.4 - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS={1}: - ''{0}'' must be convertible to an enum from the enum, - but no enum class provided. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2825.2.4 - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS_detail - ={1}: ''{0}'' must be convertible to an enum from the - enum, but no enum class provided. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.2925.2.4 - jakarta.faces.converter.FloatConverter.FLOAT={2}: ''{0}'' - must be a number consisting of one or more digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3025.2.4 - jakarta.faces.converter.FloatConverter.FLOAT_detail={2}: - ''{0}'' must be a number between 1.4E-45 and - 3.4028235E38 Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3125.2.4 - jakarta.faces.converter.IntegerConverter.INTEGER={2}: - ''{0}'' must be a number consisting of one or more - digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3225.2.4 - jakarta.faces.converter.IntegerConverter.INTEGER_detail= - {2}: ''{0}'' must be a number between -2147483648 - and 2147483647 Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3325.2.4 - jakarta.faces.converter.LongConverter.LONG={2}: ''{0}'' - must be a number consisting of one or more digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3425.2.4 - jakarta.faces.converter.LongConverter.LONG_detail={2}: - ''{0}'' must be a number between -9223372036854775808 - to 9223372036854775807 Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3525.2.4 - jakarta.faces.converter.NumberConverter.CURRENCY={2}: - ''{0}'' could not be understood as a currency value. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3625.2.4 - jakarta.faces.converter.NumberConverter.CURRENCY_detail= - {2}: ''{0}'' could not be understood as a currency value. - Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3725.2.4 - jakarta.faces.converter.NumberConverter.PERCENT={2}: - ''{0}'' could not be understood as a percentage. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3825.2.4 - jakarta.faces.converter.NumberConverter.PERCENT_detail= - {2}: ''{0}'' could not be understood as a percentage. - Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.3925.2.4 - jakarta.faces.converter.NumberConverter.NUMBER={2}: - ''{0}'' is not a number. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4025.2.4 - jakarta.faces.converter.NumberConverter.NUMBER_detail={2}: - ''{0}'' is not a number. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4125.2.4 - jakarta.faces.converter.NumberConverter.PATTERN={2}: - ''{0}'' is not a number pattern. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4225.2.4 - jakarta.faces.converter.NumberConverter.PATTERN_detail= - {2}: ''{0}'' is not a number pattern. Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4325.2.4 - jakarta.faces.converter.ShortConverter.SHORT={2}: ''{0}'' - must be a number consisting of one or more digits. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4425.2.4 - jakarta.faces.converter.ShortConverter.SHORT_detail={2}: - ''{0}'' must be a number between -32768 and 32767 - Example: {1} - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4525.2.4 - jakarta.faces.converter.STRING={1}: Could not convert - ''{0}'' to a string. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4625.2.4 - jakarta.faces.validator.DoubleRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4725.2.4 - jakarta.faces.validator.DoubleRangeValidator.MINIMUM -- - {1}: Validation Error: Value is less than allowable - minimum of ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4825.2.4 - jakarta.faces.validator.DoubleRangeValidator.NOT_IN_RANGE - -- {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.4925.2.4 - jakarta.faces.validator.DoubleRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5025.2.4 - jakarta.faces.validator.LengthValidator.MAXIMUM -- {1}: - Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5125.2.4 - jakarta.faces.validator.LengthValidator.MINIMUM -- {1}: - Validation Error: Value is less than allowable minimum - of ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5225.2.4 - jakarta.faces.validator.LongRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5325.2.4 - jakarta.faces.validator.LongRangeValidator.MINIMUM -- {1}: - Validation Error Value is less than allowable minimum of - ‘’{0}’’ - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5425.2.4 - jakarta.faces.validator.LongRangeValidator.NOT_IN_RANGE= - {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - true -
-
falsetechnologyactivetrue
JSF:SPEC:22.5525.2.4 - jakarta.faces.validator.LongRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - true -
-
falsetechnologyactivetrue
JSF:SPEC:2325.2.4 - These ResourceBundle keys must be used to look up the necessary - values to create a localized FacesMessage instance. Note that - the value of the summary and detail keys in the ResourceBundle - may contain parameter substitution tokens, which must be - substituted with the appropriate values using - java.text.MessageFormat. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2425.2.4 - The following algorithm must be used to create a FacesMessage - instance given a message key. - true -
-
falsetechnologyactivetrue
JSF:SPEC:24.125.2.4 - Call getMessageBundle() on the Application instance for - this web application, to determine if the application - has defined a resource bundle name. If so, load that - ResourceBundle and look for the message there. - true -
-
falsetechnologyactivetrue
JSF:SPEC:24.225.2.4 - If not there, look in the jakarta.faces.Messages - resource bundle. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2525.3.1 - A custom component that extends UIComponent directly, and does - not extend any of the standard components must implement - StateHolder manually. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2625.3.1 - A custom component that does extend from one of the standard - components and maintains its own state, in addition to the state - maintained by the superclass must take special care to implement - StateHolder correctly. Notably, calls to saveState() must not - alter the state in any way. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2731.1 - Every User Interface component may be named by a component - identifier, which (if utilized) must be unique among the - components that share a common naming container parent in a - component tree. - true -
-
falsetechnologyactivetrue
JSF:SPEC:2831.1 - Component identifiers must conform to the following rules: - true -
-
falsetechnologyactivefalse
JSF:SPEC:28.131.1 - They must start with a letter (as defined by the - Character.isLetter() method). - true -
-
falsetechnologyactivetrue
JSF:SPEC:28.231.1 - Subsequent characters may be letters (as defined by the - Character.isLetter() method), digits as defined by the - Character.isDigit() method, dashes (‘-’), and - underscores (‘_’). - true -
-
falsetechnologyactivetrue
JSF:SPEC:2931.4 - The implementation of setValueExpression must detemine if the - expression is a literal by calling - ValueExpression.isLiteralText() on the expression argument. - true -
-
falsetechnologyactivetrue
JSF:SPEC:29.131.4 - If the expression argument is literal text, then - ValueExpression.getValue() must be called on the - expression argument. - true -
-
falsetechnologyactivetrue
JSF:SPEC:29.231.4 - The result must be used as the value argument, along - with the name argument to this component - getAttributes().put(name,value) method call. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3031.4 - For the standard component classes defined by this - specification, all attributes, and all properties other than id - and parent, are value expression enabled. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3131.5 - The specified ValueExpression must point to a read-write - JavaBeans property of type UIComponent(or appropriate subclass). - Such a component binding is used at two different times - during the processing of a Faces Request: - true -
-
falsetechnologyactivetrue
JSF:SPEC:31.131.5 - When a component instance is first created (typically by - virtue of being referenced by a UIComponentELTag in a - JSP page), the JSF implementation will retrieve the - ValueExpression for the name binding, and call - getValue() on it. - true -
-
falsetechnologyactivetrue
JSF:SPEC:31.1.131.5 - If this call returns a non-null UIComponent - value (because the JavaBean programmatically - instantiated and configured a component - already), that instance will be added to the - component tree that is being created. - true -
-
falsetechnologyactivetrue
JSF:SPEC:31.1.231.5 - If the call returns null, a new component - instance will be created, added to the component - tree, and setValue() will be called on the - ValueBinding (which will cause the property on - the JavaBean to be set to the newly created - component instance). - true -
-
falsetechnologyactivetrue
JSF:SPEC:31.231.5 - When a component tree is recreated during the Restore - View phase of the request processing lifecycle, for each - component that has a ValueExpression associated with the - name “binding”, setValue() will be called on it, passing - the recreated component instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3231.7 - The UIComponent.getChildren() method returns a mutable List. - The returned List implementation must support all of the - required and optional methods of the List interface, as well as - update the parent property of children that are added and - removed, as described in the Javadocs for this method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3331.7 - If there are no children, the getChildCount() method must - return 0. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3431.7 - The getChildCount() must not cause the creation of a child - component list, so it is preferred over calling - getChildren().size() when there are no children. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3531.10 - The Map returned by getAttributes() must also support - attribute-property transparency, which operates as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:35.131.10 - When the get() method is called, if the specified - attribute name matches the name of a readable JavaBeans - property on the component implementation class, the - value returned will be acquired by calling the - appropriate property getter method, and wrapping Java - primitive values (such as int) in their corresponding - wrapper classes (such as java.lang.Integer) if - necessary. If the specified attribute name does not - match the name of a readable JavaBeans property on the - component implementation class, consult the internal - data-structure to in which generic attributes are - stored. If no entry exists in the internal - data-structure, see if there is a ValueExpression for - this attribute name by calling getValueExpression(), - passing the attribute name as the key. If a - ValueExpression exists, call getValue() on it, returning - the result. If an ELException is thrown wrap it in a - FacesException and re-throw it. - true -
-
falsetechnologyactivetrue
JSF:SPEC:35.231.10 - When the put() method is called, if the specified - attribute name matches the name of a writable JavaBeans - property on the component implementation class, the - appropriate property setter method will be called. If - the specified attribute name does not match the name of - a writable JavaBeans property, simply put the value in - the data-structure for generic attributes. - true -
-
falsetechnologyactivetrue
JSF:SPEC:35.331.10 - When the remove() method is called, if the specified - attribute name matches the name of a JavaBeans property - on the component, an IllegalArgumentException must be - thrown. - true -
-
falsetechnologyactivetrue
JSF:SPEC:35.431.10 - When the containsKey() method is called, if the - specified attribute name matches the name of a JavaBeans - property, return false. Otherwise, return true if and - only if the specified attribute name exists in the - internal data-structure for the generic attributes. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3631.10 - The following converter id values must be registered to create - instances of the specified Converter implementation classes: - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.133.3 - jakarta.faces.BigDecimal -- An instance of - jakarta.faces.convert.BigDecimalConverter (or a subclass - of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.233.3 - jakarta.faces.BigInteger -- An instance of - jakarta.faces.convert.BigIntegerConverter (or a subclass - of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.333.3 - jakarta.faces.Boolean -- An instance of - jakarta.faces.convert.BooleanConverter (or a subclass - of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.433.3 - jakarta.faces.Byte -- An instance of - jakarta.faces.convert.ByteConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.533.3 - jakarta.faces.Character -- An instance of - jakarta.faces.convert.CharacterConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.633.3 - jakarta.faces.DateTime -- An instance of - jakarta.faces.convert.DateTimeConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.733.3 - jakarta.faces.Double -- An instance of - jakarta.faces.convert.DoubleConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.833.3 - jakarta.faces.Float -- An instance of - jakarta.faces.convert.FloatConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.933.3 - jakarta.faces.Integer -- An instance of - jakarta.faces.convert.IntegerConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.1033.3 - jakarta.faces.Long -- An instance of - jakarta.faces.convert.LongConverter (or a subclass of this - class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.1133.3 - jakarta.faces.Number -- An instance of - jakarta.faces.convert.NumberConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:36.1233.3 - jakarta.faces.Short -- An instance of - jakarta.faces.convert.ShortConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:3733.3 - A JSF implementation must register converters for all of the - following classes using the by-type registration mechanism: - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.133.3 - java.math.BigDecimal, and java.math.BigDecimal.TYPE -- - An instance of jakarta.faces.convert.BigDecimalConverter - (or a subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.233.3 - java.math.BigInteger, and java.math.BigInteger.TYPE -- - An instance of jakarta.faces.convert.BigIntegerConverter - (or a subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.333.3 - java.lang.Boolean, and java.lang.Boolean.TYPE -- An - instance of jakarta.faces.convert.BooleanConverter - (or a subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.433.3 - java.lang.Byte, and java.lang.Byte.TYPE -- An instance - of jakarta.faces.convert.ByteConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.533.3 - java.lang.Character, and java.lang.Character.TYPE -- An - instance of jakarta.faces.convert.CharacterConverter - (or a subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.633.3 - java.lang.Double, and java.lang.Double.TYPE -- An - instance of jakarta.faces.convert.DoubleConverter (or a - subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.733.3 - java.lang.Float, and java.lang.Float.TYPE -- An instance - of jakarta.faces.convert.FloatConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.833.3 - java.lang.Integer, and java.lang.Integer.TYPE -- An - instance of jakarta.faces.convert.IntegerConverter (or a - subclass of this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.933.3 - java.lang.Long, and java.lang.Long.TYPE -- An instance - of jakarta.faces.convert.LongConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.1033.3 - java.lang.Short, and java.lang.Short.TYPE -- An instance - of jakarta.faces.convert.ShortConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:37.1133.3 - java.lang.Enum, and java.lang.Enum.TYPE -- An instance - of jakarta.faces.convert.EnumConverter (or a subclass of - this class). - true -
-
falsetechnologyactivetrue
JSF:SPEC:3833.3 - A compliant implementation must allow the registration of a - converter for class java.lang.String and java.lang.String.TYPE - that will be used to convert values for these types. - true -
-
falsetechnologyactivetrue
JSF:SPEC:3934.5 - A concrete UIComponent subclass that emits events of a - particular type must include public methods to register and - deregister a listener implementation. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4035.5 - The following standard Validator implementations (in the - jakarta.faces.validator package) are provided: - true -
-
falsetechnologyactivetrue
JSF:SPEC:40.134.5 - DoubleRangeValidator—Checks the local value of a - component, which must be of any numeric type, against - specified maximum and/or minimum values. Standard - identifier is “jakarta.faces.DoubleRange”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:40.234.5 - LengthValidator—Checks the length (i.e. number of - characters) of the local value of a component, which - must be of type String, against maximum and/or minimum - values. Standard identifier is “jakarta.faces.Length”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:40.334.5 - LongRangeValidator—Checks the local value of a - component, which must be of any numeric type convertible - to long, against maximum and/or minimum values. Standard - identifier is “jakarta.faces.LongRange”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:40.434.5 - MethodExpressionValidator—Wraps a MethodExpression and - interprets it as pointing to a method that performs - validation. Any exception thrown when the expression - is invoked is wrapped in a ValidatorException in similar - fashion as the above validators. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4141 - The implementation for each standard UIComponent class - must specify two public static final String constant values: - true -
-
falsetechnologyactivetrue
JSF:SPEC:41.141 - COMPONENT_TYPE -- The standard component type identifier - under which the corresponding component class is - registered with the Application object for this - application. This value may be used as a parameter to - the createComponent() method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:41.241 - COMPONENT_FAMILY -- The standard component family - identifier used to select an appropriate Renderer for - this component. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4241.1.2 - UIColumn specializes the behavior of render-independent - properties inherited from the parent class as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:42.141.1.2 - The default value of the family property must be set to - “jakarta.faces.Column”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:42.241.1.2 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4341.2.2 - UICommand components specialize the behavior of - renderindependent properties inherited from the parent class as - follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:43.141.2.2 - The default value of the family property must be set to - “jakarta.faces.Command”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:43.241.2.2 - The default value of the rendererType property must be - set to “jakarta.faces.Button”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4441.3.2 - UIData specializes the behavior of render-independent properties - inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:44.141.3.2 - The default value of the family property must be set to - “jakarta.faces.Data”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:44.241.3.2 - The default value of the rendererType property must be - set to “jakarta.faces.Table”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4541.3.2 - A DataModel wrapper instance must automatically be provided by - the JSF implementation if the current value is of one of the - following types: - true -
-
falsetechnologyactivetrue
JSF:SPEC:45.141.3.2 - java.util.List - true -
-
falsetechnologyactivetrue
JSF:SPEC:45.241.3.2 - Array of java.util.Object - true -
-
falsetechnologyactivetrue
JSF:SPEC:45.341.3.2 - java.sql.ResultSet (which therefore also supports - javax.sql.RowSet) - true -
-
falsetechnologyactivetrue
JSF:SPEC:45.441.3.2 - jakarta.servlet.jsp.jstl.sql.Result - true -
-
falsetechnologyactivetrue
JSF:SPEC:45.541.3.2 - Any other Java object is wrapped by a DataModel instance - with a single row - true -
-
falsetechnologyactivetrue
JSF:SPEC:4641.3.3 - UIData specializes the behavior of the processDecodes(), - processValidators(), and processUpdates() methods inherited from - its parent as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:46.141.3.3 - For each of these methods, the UIData implementation - must iterate over each row in the underlying data model, - starting with the row identified by the first property, - for the number of rows indicated by the rows property, - by calling the setRowIndex() method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:46.241.3.3 - When iteration is complete, set the rowIndex property of - this component, and of the underlying DataModel, to - zero, and remove any request attribute exposed via the - var property. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4741.4.1 - The encodeEnd() method of the renderer for UIForm must call - ViewHandler.writeState() before writing out the markup for the - closing tag of the form. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4841.4.2 - UIForm specializes the behavior of render-independent properties - inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:48.141.4.2 - The default value of the family property must be set to - “jakarta.faces.Form”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:48.241.4.2 - The default value of the rendererType property must be - set to “jakarta.faces.Form”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:4941.4.3 - The setSubmitted() method of each UIForm instance in the view - must be called during the Apply Request Values phase of the - request processing lifecycle, during the processing performed by - the UIComponent.decode() method. If this UIForm instance - represents the form actually being submitted on this request, - the parameter must be set to true; otherwise, it must be set to - false. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5041.4.3 - The value of a UIForm's submitted property must not be saved as - part of its state. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5141.4.3 - The saveState() method of UIForm must call setSubmitted(false) - before calling super.saveState(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:5241.4.3 - Override the parent method to ensure that children of this - UIForm instance in the view have the form’s clientId prepended - to their clientIds if and only if the form’s prependId property - is true. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5341.5.2 - UIGraphic specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:53.141.5.2 - The default value of the family property must be set to - “jakarta.faces.Graphic”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:53.241.5.2 - The default value of the rendererType property must be - set to “jakarta.faces.Image”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5441.6.2 - UIInput specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:54.141.6.2 - The default value of the family property must be set to - “jakarta.faces.Input”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:54.241.6.2 - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:54.341.6.2 - The Converter specified by the converter property (if - any) must also be used to perform String->Object - conversions during decoding. - true -
-
falsetechnologyactivetrue
JSF:SPEC:54.441.6.2 - If the value property has an associated ValueExpression, - the setValue() method of that ValueExpression will be - called during the Update Model Values phase of the - request processing lifecycle to push the local value of - the component back to the corresponding model bean - property. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5541.7.2 - UIMessage specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:55.141.7.2 - The default value of the family property must be set to - “jakarta.faces.Message”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:55.241.7.2 - The default value of the rendererType property must be - set to “jakarta.faces.Message”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5641.9.2 - UIOutput specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:56.141.9.2 - The default value of the family property must be set to - “jakarta.faces.Output”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:56.241.9.2 - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5741.10.2 - UIPanel specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:57.141.10.2 - The default value of the family property must be set to - “jakarta.faces.Panel”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:57.241.10.2 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5841.11.2 - UIParameter specializes the behavior of renderindependent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:58.141.11.2 - The default value of the family property must be set to - “jakarta.faces.Parameter”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:58.241.11.2 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:5941.12.2 - UISelectBoolean specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:59.141.12.2 - The default value of the family property must be set to - “jakarta.faces.SelectBoolean”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:59.241.12.2 - The default value of the rendererType property must be - set to “jakarta.faces.Checkbox”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6041.13.2 - UISelectItem specializes the behavior of renderindependent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:60.141.13.2 - The default value of the family property must be set to - “jakarta.faces.SelectItem”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:60.241.13.2 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:60.341.13.2 - If the value property is non-null, it must contain a - SelectItem instance used to configure the selection item - specified by this component. - true -
-
falsetechnologyactivetrue
JSF:SPEC:60.441.13.2 - If the value property is a value expression, it must - point at a SelectItem instance used to configure the - selection item specified by this component. - true -
-
falsetechnologyactivetrue
JSF:SPEC:60.541.13.2 - If the value property is null, and there is no - corresponding value expression, the itemDescription, - itemDisabled, itemLabel and itemValue properties must be - used to construct a new SelectItem representing the - selection item specified by this component. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6141.14.2 - UISelectItems specializes the behavior of renderindependent - properties inherited - true -
-
falsetechnologyactivetrue
JSF:SPEC:61.141.14.2 - The default value of the family property must be set to - “jakarta.faces.SelectItems”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:61.241.14.2 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:61.341.14.2 - If the value property (or the value returned by a value - expression associated with the value property) is - non-null, it must contain a SelectItem bean, an array of - SelectItem beans, a Collection of SelectItem beans, or a - Map, where each map entry is used to construct a - SelectItem bean with the key as the label property of - the bean, and the value as the value property of the - bean (which must be of the same basic type as the value - of the parent component’s value). - true -
-
falsetechnologyactivetrue
JSF:SPEC:6241.15.3 - UISelectMany must provide a specialized validate() method which - ensures that any decoded values are valid options (from the - nested UISelectItem and UISelectItems children). - true -
-
falsetechnologyactivetrue
JSF:SPEC:6341.16.2 - UISelectOne specializes the behavior of renderindependent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:63.141.16.2 - The default value of the family property must be set to - “jakarta.faces.SelectOne”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:63.241.16.2 - The default value of the rendererType property must be - set to “jakarta.faces.Menu”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6441.16.3 - UISelectOne must provide a specialized validate() method which - ensures that any decoded value is a valid option (from the - nested UISelectItem and UISelectItems children). - true -
-
falsetechnologyactivetrue
JSF:SPEC:6541.17.3 - UIViewRoot specializes the behavior of render-independent - properties inherited from the parent component as follows: - true -
-
falsetechnologyactivetrue
JSF:SPEC:65.141.17.3 - The default value of the family property must be set to - “jakarta.faces.ViewRoot”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:65.241.17.3 - The default value of the rendererType property must be - set to null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6642.1.4 - The JSF implementation must provide concrete implementations of - DataModel (in the jakarta.faces.model package) for the following - data wrapping scenarios: - true -
-
falsetechnologyactivetrue
JSF:SPEC:66.142.1.4 - ArrayDataModel -- Wrap an array of Java objects. - true -
-
falsetechnologyactivetrue
JSF:SPEC:66.242.1.4 - ListDataModel -- Wrap a java.util.List of Java objects. - true -
-
falsetechnologyactivetrue
JSF:SPEC:66.342.1.4 - ResultDataModel -- Wrap an object of type - jakarta.servlet.jsp.jstl.sql.Result (the query results - from JSTL’s SQL tag library) - true -
-
falsetechnologyactivetrue
JSF:SPEC:66.442.1.4 - ResultSetDataModel -- Wrap an object of type - java.sql.ResultSet (which therefore means that - javax.sql.RowSet instances are also supported). - true -
-
falsetechnologyactivetrue
JSF:SPEC:66.542.1.4 - ScalarDataModel -- Wrap a single Java object in what - appears to be a one-row data set. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6753 - It is an error to specify a managed bean class that does not - exist, or that cannot be instantiated with a public, zero-args - constructor. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6853 - It is an error to specify a <property-name> element for a - property that does not exist, or does not have a public setter - method, on the specified managed bean class. - true -
-
falsetechnologyactivetrue
JSF:SPEC:6953 - It is an error to specify a value element that cannot be - converted to the type required by a managed property, or that, - when evaluated, results in a value that cannot be converted to - the type required by a managed property. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7053 - If the type of the property referenced by the - <managed-property> element is a Java enum, the contents of - the <value> element must be a String that yields a valid - return from java.lang.Enum.valueOf(PROPERTY_CLASS, VALUE) where - PROPERTY_CLASS is the java.lang.Class for the property and VALUE - is the contents of <value> element in the application - configuration resource. If any exception is thrown from - Enum.valueOf() it is an error. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7153 - It is an error for a managed bean created through The Managed - Bean Creation Facility to have a property that points at an - object stored in a scope with a (potentially) shorter life span. - Specifically, this means, for an object created with the - specified <managed-bean-scope>, then <value> - evaluations can only point at created objects with the specified - managed bean scope: - - ■ none -- none - ■ application -- none, application - ■ session -- none, application, session - ■ request -- none, application, session, request - true -
-
falsetechnologyactivetrue
JSF:SPEC:7253 - Data accessed via an implicit object is also defined to be in a - scope. The following implicit objects are considered to be in - request scope: - - ■ cookie - ■ facesContext - ■ header - ■ headerValues - ■ param - ■ paramValues - ■ request - ■ requestScope - ■ view - true -
-
falsetechnologyactivetrue
JSF:SPEC:7353 - The only implicit objects in session scope are session and - sessionScope. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7453 - The following implicit objects are considered to be in - application scope: - - ■ application - ■ applicationScope - ■ initParam - true -
-
falsetechnologyactivetrue
JSF:SPEC:7553 - It is an error to configure cyclic references between managed - beans. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7653 - Managed bean names must conform to the syntax of a Java language - identifier. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7753 - <null-value/> -- An empty element indicating that this property - must be explicitly initialized to null. This element is not allowed if - the underlying property is of a Java primitive type. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7853 - Each <managed-property> element contains the following elements - used to configure the execution of the corresponding property setter - call: - true -
-
falsetechnologyactivefalse
JSF:SPEC:78.153 - <property-name> -- The property name of the property to be - configured. - true -
-
falsetechnologyactivetrue
JSF:SPEC:78.253 - <map-entries> -- A set of key/value pairs used to - initialize the contents of a property of type java.util.Map. - true -
-
falsetechnologyactivetrue
JSF:SPEC:78.353 - <null-value/> -- An empty element indicating that this - property must be explicitly initialized to null. This element is - not allowed if the underlying property is of a Java primitive - type. - true -
-
falsetechnologyactivetrue
JSF:SPEC:78.453 - <value> -- A String value that will have any leading and - trailing spaces stripped, and then be converted prior to - setting it to this value. - true -
-
falsetechnologyactivetrue
JSF:SPEC:78.553 - <list-entries> -- A set of values used to initialize the - contents of a property of type array or java.util.List. - true -
-
falsetechnologyactivetrue
JSF:SPEC:7953 - The initialization of bean properties from <map-entries> elements - must adhere to the following algorithm: - true -
-
falsetechnologyactivefalse
JSF:SPEC:79.153 - Call the property getter. If the getter returns null or doesn't - exist, create a java.util.HashMap, otherwise - use the returned java.util.Map. - true -
-
falsetechnologyactivetrue
JSF:SPEC:79.253 - Add all entries defined by nested <map-entry> elements in - the order they are listed, converting key values defined by - nested <key> elements to the type defined by <keyclass> - and entry values defined by nested <value> elements to the - type defined by <value-class>. - true -
-
falsetechnologyactivetrue
JSF:SPEC:79.353 - If a value is given as a value expression, evaluate the - reference and store the result, converting to <value-class> - if necessary. If <key-class> and/or <value-class> - are not defined, use java.lang.String. Add null for each - <null-value> element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:79.453 - If a new java.util.Map was created, set the property by calling - the setter method, or log an error if there is no setter method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8053 - The initialization of bean properties from <list-entries> elements - must adhere to the following algorithm: - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.153 - Call the property getter, If the getter returns null or doesn't - exist, create a java.util.ArrayList, otherwise use the returned - Object (an array or a java.util.List). - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.253 - add all elements defined by nested <value> elements in the - order they are listed, converting values defined by nested - <value> elements to the type defined by <value-class>. - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.353 - If a value is given as a value expression, evaluate the - reference and store the result, converting to <valueclass> - if necessary. If a <value-class> is not defined, use the - value as-is (i.e., as a java.lang.String). Add null for each - <null-value> element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.453 - If an array was returned, create a java.util.ArrayList and copy - all elements from the returned array to the new List, wrapping - elements of a primitive type. - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.553 - If a new java.util.List was created, and the property is of type - List, set the property by calling the setter method, or log an - error if there is no setter method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.653 - If a new java.util.List was created, and the property is a java - array, convert the List into an array of the property type, and - set it by calling the setter method, or log an error if there is - no setter method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:80.753 - If a new java.util.List was created, convert the List - to an array of the proper type for the property and set the - property by calling the setter method, or log an error if there - is no setter method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8154 - Here is a summary of the valid injection annotations one may use - in a managed bean. - - @Resource - @Resources - @EJB - @EJBs - @WebServiceRef - @WebServiceRefs - @PersistenceContext - @PersistenceContexts - @PersistenceUnit - @PersistenceUnits - true -
-
falsetechnologyactivetrue
JSF:SPEC:8254.1 - JSF implementations running in a Java EE 5 compliant container must - support attaching the @PostConstruct and @PreDestroy annotations to aid - in awareness of the managedbean lifecycle. - true -
-
falsetechnologyactivetrue
JSF:SPEC:82.154.1 - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PostConstruct, must be called - by the JSF implementation after resource injection is performed - (if any) but before the bean is placed into scope. - true -
-
falsetechnologyactivetrue
JSF:SPEC:82.254.1 - If the method throws an unchecked exception, the JSF - implementation must not put the managed-bean into service and - further methods on that managed bean instance must not be - called. - true -
-
falsetechnologyactivetrue
JSF:SPEC:82.354.1 - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PreDestroy, must be called by - the JSF implementation before the bean is removed from its scope - or before the scope itself is destroyed, whichever comes first. - This annotation must be supported in all cases where the above - @PostConstruct annotation is supported. - true -
-
falsetechnologyactivetrue
JSF:SPEC:82.454.1 - If the method throws an unchecked exception, the JSF - implementation may log it, but the exception must not otherwise - alter the execution. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8361.1 - The JSF implementation must ensure that the Application instance - for the current web application is available via this method, as - a convenient alternative to lookup via an ApplicationFactory. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8461.2 - Upon creation of the ELContext instance, the implementation must - take the following action: - true -
-
falsetechnologyactivefalse
JSF:SPEC:84.161.2 - Call the ELContext.putContext(java.lang.Class, - java.lang.Object) method on the instance, passing in - FacesContext.class and the this reference for the - FacesContext instance itself. - true -
-
falsetechnologyactivetrue
JSF:SPEC:84.261.2 - If the Collection returned by - jakarta.faces.Application.getELContextListeners() is - non-empty, create an instance of ELContextEvent and pass - it to each ELContextListener instance in the Collection - by calling the ELContextListener.contextCreated - (jakarta.el.ELContextEvent) method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8561.3 - The ExternalContext abstract class must be implemented along - with the FacesContext class, and must be accessible via the - getExternalContext method in FacesContext. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8661.3 - The dispatch() must use a RequestDispatcher provided by the - application context object to incorporate content from a - specified context-relative resource. The redirect() method must - cause an HTTP Redirect to be sent to the client. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8761.5 - The getClientIdsWithMessages() method must return an Iterator - over the client identifiers for which at least one Message has - been queued. This method must be implemented so the clientIds - are returned in the order of calls to addMessage(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:8861.8 - In some circumstances, it is possible that both renderResponse() - and responseComplete() might have been called for the request. - In this case, the JSF implementation must respect the - responseComplete() call (if it was made) before checking to see - if renderResponse() was called. - true -
-
falsetechnologyactivetrue
JSF:SPEC:8961.9 - The getCurrentInstance() method may be called by any Java class - in the current web application to retrieve an instance of the - FacesContext for this request. The JSF implementation must - ensure that this value is set correctly before - FacesContextFactory returns a FacesContext instance, - and that the value is maintained in a thread-safe manner. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9065 - A single instance of jakarta.faces.context.FacesContextFactory - must be made available to each JSF-based web application - running in a servlet or portlet container. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9171.1 - The JSF implementation must provide a default implementation - ActionListener that performs the following functions: - true -
-
falsetechnologyactivefalse
JSF:SPEC:91.171.1 - The processAction() method must call - FacesContext.renderResponse() in order to bypass any - intervening lifecycle phases, once the method returns. - true -
-
falsetechnologyactivetrue
JSF:SPEC:91.271.1 - The processAction() method must next determine the - logical outcome of this event, as follows: - true -
-
falsetechnologyactivefalse
JSF:SPEC:91.2.171.1 - If the originating component has a non-null - action property, retrieve the MethodBinding and - call invoke() to perform the application- - specified processing in this action method. If - the method returns non-null, call toString() on - the result and use the value returned as the - logical outcome. - true -
-
falsetechnologyactivetrue
JSF:SPEC:91.2.271.1 - The default logical outcome is null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9271.7 - If a call is made to setViewHandler() after the first time the - Render Response phase has executed, the call must be ignored by - the implementation. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9371.8 - The default implementation simply returns the ExpressionFactory - from the JSP container by calling JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext) - .getExpressionFactory(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:9471.10 - The "public UIComponent createComponent(ValueExpression - componentExpression, FacesContext context, - String componentType);" method has the following behavior: - true -
-
falsetechnologyactivefalse
JSF:SPEC:94.171.10 - Call the getValue() method on the specified - ValueExpression, in the context of the specified - FacesContext. If this results in a non-null UIComponent - instance, return it as the value of this method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:94.271.10 - If the getValue() call did not return a component - instance, create a new component instance of the - specified component type, pass the new component to the - setValue() method of the specified ValueExpression, and - return it. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9574.2 - The default NavigationHandler implementation must behave as if - it were performing the following algorithm (although optimized - implementation techniques may be utilized): - true -
-
falsetechnologyactivefalse
JSF:SPEC:95.174.2 - If the logical outcome value passed to the - handleNavigation() method is null, do not scan for - matching rules. This is an indication that the current - view should be redisplayed. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.274.2 - Find a <navigation-rule> element for which the - view identifier (of the view in the FacesContext - instance for the current request) matches the - <from-view-id> matching pattern of the - <navigation-rule>. Rule instances are considered - in the following order: - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.2.174.2 - An exact match of the view identifier against a - <from-view-id> pattern that does not end with an - asterisk (“*”) character. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.2.274.2 - For <from-view-id> patterns that end with an - asterisk, an exact match on characters preceding the - asterisk against the prefix of the view id. If the - patterns for multiple navigation rules match, pick the - longest matching prefix first. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.2.374.2 - If there is a <navigation-rule> with a - <from-view-id> pattern of only an asterisk3, it - matches any view identifier. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.374.2 - From the <avigation-case> elements nested within the - matching <navigationrule> element, locate a matching - navigation case by matching the <from-action> and - <from-outcome> values against the corresponding parameter - values passed in to the handleNavigation() method. Navigation - cases are checked in the following order: - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.3.174.2 - Cases specifying both a <from-action> value and a - <from-outcome> value are matched against the - action expression and outcome parameters passed to the - handleNavigation() method (both parameters must be not - null, and both must be equal to the corresponding - condition values, in order to match). - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.3.274.2 - Cases that specify only a <from-outcome> value are - matched against the outcome parameter passed to the - handleNavigation() method (which must be not null, - and equal to the corresponding condition value, to - match). - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.3.374.2 - Cases that specify only a <from-action> value are - matched against the action expression parameter passed - to the handleNavigation() method (which must be not - null, and equal to the corresponding condition value, to - match). - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.474.2 - If a matching <navigation-case> element was located, and - the <redirect/> element was not specified in this - <navigation-case> (or the application is running in a - Portlet environment, where redirects are not possible), use the - <to-view-id> element of the matching case to request a new - UIViewRoot instance from the ViewHandler instance for this - application, and pass it to the setViewRoot() method of the - FacesContext instance for the current request. Then, exit the - algorithm. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.574.2 - If a matching <navigation-case> element was located, the - <redirect/> element was specified in this - <navigation-case>, and the application is not running in a - Portlet environment, use the <to-view-id> element of the - matching case to construct a context-relative path that - corresponds to that view id, cause the current response to - perform an HTTP redirect to this path, and call - responseComplete() on the FacesContext instance for the current - request. - true -
-
falsetechnologyactivetrue
JSF:SPEC:95.674.2 - If no matching <navigation-case> element was located, - return to Step 1 and find the next matching - <navigation-rule> element (if any). If there are no more - matching rule elements, return without changing the current - view. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9675.2 - The calculateCharacterEncoding() method must fulfill the following - responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:96.175.2 - Examine the Content-Type request header. If it has a charset - parameter extract it and return it. - true -
-
falsetechnologyactivetrue
JSF:SPEC:96.275.2 - If not, test for the existence of a session by calling - getSession(false) on the ExternalContext for this FacesContext. - If the session is non-null, look in the Map returned by the - getSessionMap() method of the ExternalContext for a value under - the key given by the value of the symbolic constant - jakarta.faces.application.ViewHandler.CHARACTER_ENCODING_KEY. If a - value is found, convert it to a String and return it. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9775.2 - The calculateLocale() method must fulfill the following - responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:97.175.2 - Attempt to match one of the locales returned by the getLocales() - method of the ExternalContext instance for this request, against - the supported locales for this application as defined in the - application configuration resources. Matching is performed by - the algorithm described in Section JSTL.8.3.2 of the JSTL - Specification. If a match is found, return the corresponding - Locale object. - true -
-
falsetechnologyactivetrue
JSF:SPEC:97.275.2 - Otherwise, if the application has specified a default locale in - the application configuration resources, return the - corresponding Locale object. - true -
-
falsetechnologyactivetrue
JSF:SPEC:97.375.2 - Otherwise, return the value returned by calling - Locale.getDefault(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:9875.2 - The calculateRenderKitId() method must fulfill the following - responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:98.175.2 - Return the value of the request parameter named by the symbolic - constant ResponseStateManager.RENDER_KIT_ID_PARAM if it is not - null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:98.275.2 - Otherwise, return the value returned by - Application.getDefaultRenderKitId() if it is not null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:98.375.2 - Otherwise, return the value specified by the symbolic constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - true -
-
falsetechnologyactivetrue
JSF:SPEC:9975.2 - The createView() method must fulfill the following responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:99.175.2 - Calculate the viewId that corresponds to this request, as - follows: - true -
-
falsetechnologyactivefalse
JSF:SPEC:99.1.175.2 - If prefix mapping (such as “/faces/*”) is used for - FacesServlet, the viewId is set from the extra path - information of the request URI. - true -
-
falsetechnologyactivetrue
JSF:SPEC:99.1.275.2 - If suffix mapping (such as “*.faces”) is used for - FacesServlet, the viewId is set from the servlet path - information of the request URI, after replacing the - suffix with the value of the context initialization - parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no such - context initialization parameter is present, use the - value of the symbolic constant - ViewHandler.DEFAULT_SUFFIX as the replacement suffix). - true -
-
falsetechnologyactivetrue
JSF:SPEC:99.275.2 - If no viewId could be identified, or the viewId is exactly equal - to the servlet mapping, call the redirect() method of the - ExternalContext instance for this request, passing the context - path of this web application. - true -
-
falsetechnologyactivetrue
JSF:SPEC:99.375.2 - Create a new UIViewRoot object instance - true -
-
falsetechnologyactivetrue
JSF:SPEC:99.475.2 - Conditionally copy the renderKitId and locale from any current - view for the current request (as described in the Javadocs for - createView()). - true -
-
falsetechnologyactivetrue
JSF:SPEC:99.575.2 - Return the newly created UIViewRoot. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10075.2 - The getActionURL() method must fulfill the following responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:100.175.2 - If the specified viewId does not start with a “/”, throw - IllegalArgumentException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:100.275.2 - If prefix mapping (such as “/faces/*”) is used for FacesServlet, - prepend the context path of the current application, and the - specified prefix, to the specified viewId and return the - completed value. For example “/cardemo/faces/chooseLocale.jsp”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:100.375.2 - If suffix mapping (such as “*.faces”) is used for FacesServlet, - and the specified viewId ends with the specified suffix, - replacing the suffix with the value specified by the context - initialization parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_NAME (if no such context - initialization parameter is present, use the value of the - symbolic constant ViewHandler.DEFAULT_SUFFIX as the replacement - suffix), prefix this value with the context path for the current - web application, and return the result. For example - “/cardemo/chooseLocale.faces” - true -
-
falsetechnologyactivetrue
JSF:SPEC:10175.2 - The getResourceURL() method must fulfill the following responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:101.175.2 - If the specified path starts with a “/”, prefix it with the - context path for the current web application, and return the - result. - true -
-
falsetechnologyactivetrue
JSF:SPEC:101.275.2 - Otherwise, return the specified path value unchanged. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10275.2 - The initView() method must fulfill the following responsibilities: - Call calculateCharacterEncoding(). If the result is non-null pass the - result to the setRequestCharacterEncoding() method of the - ExternalContext for this FacesContext. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10375.2 - The renderView() method must fulfill the following responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:103.175.2 - If the current request is a ServletRequest, call the set() - method of the jakarta.servlet.jsp.jstl.core.Config class, passing - the current ServletRequest, the symbolic constant - Config.FMT_LOCALE, and the locale property of the specfied - UIViewRoot. This configures JSTL with the application’s - preferred locale for rendering this response. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.275.2 - Update the JSTL locale attribute in request scope so that JSTL - picks up the new locale from the UIViewRoot. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.375.2 - Create a wrapper around the current response from the - ExternalContext and set it as the new response in the - ExternalContext. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.475.2 - Execute the JSP page to build the view by treating the viewId as - a context-relative path(starting with a slash character), by - passing it to the dispatch() method of the ExternalContext - associated with this request. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.575.2 - Restore the original response into the ExternalContext. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.675.2 - If the FacesContext has a non-null ResponseWriter create a new - writer using its cloneWithWriter() method, passing the - response’s Writer as the argument. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.775.2 - Set the new ResponseWriter into the FacesContext, saving the - old one aside. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.875.2 - Call saveView() on the StateManager for this application, saving - the result in a thread-safe manner for use in the writeState() - method of ViewHandler. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.975.2 - Call startDocument() on the ResponseWriter. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.1075.2 - Call encodeAll() on the UIViewRoot. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.1175.2 - Output any content in the wrapped response from above to the - response, removing the wrapped response from the thread-safe - storage. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.1275.2 - Call endDocument() on the ResponseWriter. - true -
-
falsetechnologyactivetrue
JSF:SPEC:103.1375.2 - If the old ResponseWriter was not null, place the old - ResponseWriter back into the FacesContext. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10475.2 - The restoreView() method must fulfill the following responsibilities: - true -
-
falsetechnologyactivefalse
JSF:SPEC:104.175.2 - Calculate the viewId that corresponds to this request using the - “The ViewId derivation algorithm”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:104.275.2 - If no viewId could be identified, return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:104.375.2 - Call the restoreView() method of the associated StateManager, - passing the FacesContext instance for the current request and - the calculated viewId, and return the returned UIViewRoot, - which may be null - true -
-
falsetechnologyactivetrue
JSF:SPEC:10575.2 - The writeState() method must Obtain the saved state stored in a - thread-safe manner during the invocation of renderView() and pass it to - the writeState() method of the StateManager for this application. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10676.3 - The "public Object saveView(FacesContext context)" method causes the - tree structure and component state of the view contained in the argument - FacesContext to be collected, stored, and returned in a java.lang.Object - instance that must implement java.io.Serializable. If null is returned - from this method, there is no state tosave. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10776.5 - The "public boolean isSavingStateInClient(FacesContext context)" method - will Return true if and only if the value of the ServletContext init - parameter named by the value of the constant - StateManager.STATE_SAVING_METHOD_PARAM_NAME is equal to the value of the - constant STATE_SAVING_METHOD_CLIENT. Return false otherwise. - true -
-
falsetechnologyactivetrue
JSF:SPEC:10881.0 - A JSF implementation must provide a default RenderKit instance - (named by the render kit identifier associated with the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT) that is utilized if no other - RenderKit is selected. - true -
-
falsetechnologyactivefalse
JSF:SPEC:10981.0 - The RenderKit must support a value for the contentTypeList argument that - comes straight from the Accept HTTP header, and therefore requires - parsing according to the specification of the Accept header. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11083.0 - The "getState(FacesContext context)" implementation must inspect the - current request and return the component tree state Object passed to it - on a previous invocation of writeState(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:11183.0 - The ResponseStateManager.RENDER_KIT_ID_PARAM identifier must not be - written if: - true -
-
falsetechnologyactivefalse
JSF:SPEC:111.183.0 - it is the default render kit identifier as returned by - Application.getDefaultRenderKitId(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:111.283.0 - the render kit identifier is the value of - RenderKitFactory.HTML_BASIC_RENDER_KIT and - Application.getDefaultRenderKitId() returns null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11284.0 - A single instance of jakarta.faces.render.RenderKitFactory must be made - available to each JSFbased web application running in a servlet or - portlet container. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11384.0 - Every JSF implementation must provide a RenderKit instance for a default - render kit identifier that is designated by the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11484.0 - The returned Iterator from getRenderKitIds() must include the value - specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11585.0 - As with the standard components in the jakarta.faces.component package, - each HTML component implementation class must define a static public - final String constant named COMPONENT_TYPE, whose value is “jakarta.faces.” - concatenated with the class name. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11685.0 - HTML components, must not define a COMPONENT_FAMILY constant, or - override the getFamily() method they inherit from their superclass. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11794.0 - All JSF implementations must provide a tag library containing core - actions (described below) that are independent of a particular - RenderKit.The corresponding tag library descriptor must meet the - following requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:117.194.0 - Must declare a tag library version (tlib-version) value of 1.2. - true -
-
falsetechnologyactivetrue
JSF:SPEC:117.294.0 - Must declare a URI (uri) value of http://java.sun.com/jsf/core. - true -
-
falsetechnologyactivetrue
JSF:SPEC:117.394.0 - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the Jakarta Server Pages Specification - (version 2.1). - true -
-
falsetechnologyactivetrue
JSF:SPEC:11894.1 - If the f:actionListener tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ActionSource, or the specified listener class does not - implement jakarta.faces.event.ActionListener, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:11994.3 - If the f:convertDateTime tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException - true -
-
falsetechnologyactivetrue
JSF:SPEC:12094.3 - The implementation class for f:convertDateTime must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:120.194.3 - Must extend jakarta.faces.webapp.ConverterTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:120.294.3 - createConverter() method must, if binding is non-null, - call getValue() on it to obtain a reference to the - Converter instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.DateTimeConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:120.394.3 - If the createConverter()method has an exception thrown, rethrow - the exception as a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:120.494.3 - If dateStyle is specified but timeStyle is not specified, - default to date. - true -
-
falsetechnologyactivetrue
JSF:SPEC:120.594.3 - If dateStyle is not specified but timeStyle is specified, - default to time. - true -
-
falsetechnologyactivetrue
JSF:SPEC:120.694.3 - If both dateStyle and timeStyle are specified, default to both. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12194.4 - If the f:convertNumber tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12294.4 - The implementation class for the f:convertNumber action must meet the - following requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:122.194.4 - Must extend jakarta.faces.webapp.ConverterTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:122.294.4 - The createConverter() method, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.NumberConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:122.394.4 - If there was an exception thrown, rethrow the exception as a - JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:122.494.4 - Call the createConverter() method of the Application - instance for this application, passing converter id - “jakarta.faces.Number”. If the binding attribute was also set, - store the converter instance by calling binding.setValue(). It - must then cast the returned instance to - jakarta.faces.convert.NumberConverter and configure its properties - based on the specified attributes for this custom action, and - return the configured instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12394.5 - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ValueHolder, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12494.5 - The implementation class for f:converter action must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:124.194.5 - Must extend jakarta.faces.webapp.ConverterJspTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:124.294.5 - The createConverter() method must, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, register it by calling - setConverter(). If there was an exception thrown, rethrow - the exception as a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:124.394.5 - Use the converterId attribute if the converter instance could - not be created from the binding attribute. If the converterId - attribute is set, call the createConverter() method of the - Application instance for this application, passing converter id - specified by their converterId attribute. If the binding - attribute was also set, store the converter instance by calling - binding.setValue(). Register the converter instance by calling - setConverter(). If there was an exception thrown, rethrow the - exception as a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12594.6 - f:facet tag must be nested inside a UIComponent custom action. - Exactly one UIComponent custom action must be nested inside this custom action - (although the nested component custom action could itself have nested children). - true -
-
falsetechnologyactivetrue
JSF:SPEC:12694.6 - Exactly one UIComponent custom action must be nested inside this custom - action(although the nested component custom action could itself have - nested children). - true -
-
falsetechnologyactivetrue
JSF:SPEC:12794.6 - The implementation class of the f:facet tag must be, or extend, - jakarta.faces.webapp.FacetTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12894.7 - f:loadBundle tag must be nested inside an f:view tag custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:12994.8 - f:param tag must be nested inside a UIComponent custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13094.8 - The implementation class for f:param tag this action must meet the - following requirements: - true -
-
falsetechnologyactivetrue
JSF:SPEC:130.194.8 - Must extend jakarta.faces.UIComponentELTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:130.294.8 - The getComponentType() method must return “Parameter”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:130.384.8 - The getRendererType() method must return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13194.9 - f:phaseListener tag must be nested inside a UIViewRoot custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13294.9 - The specified listener class for f:phaseListener must implement - jakarta.faces.event.PhaseListener. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13394.9 - type and/or binding must be specified for the phaseListener impl. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13494.10 - f:selectItem must be nested inside a UIComponent custom action - that creates a UISelectMany or UISelectOne component instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13594.10 - The implementation class for this action must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:135.194.10 - Must extend jakarta.faces.UIComponentELTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:135.294.10 - The getComponentType() method must return “SelectItem”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:135.394.10 - The getRendererType() method must return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13694.11 - Must be nested inside a UIComponent custom action that creates a - UISelectMany or UISelectOne component instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13794.11 - The implementation class for the f:selectItems action must meet - the following requirements: - true -
-
falsetechnologyactivetrue
JSF:SPEC:137.194.11 - Must extend jakarta.faces.UIComponentELTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:137.294.11 - The getComponentType() method must return - “jakarta.faces.SelectItems”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:137.394.11 - The getRendererType() method must return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13894.12 - f:setPropertyActionListener must be nested inside a UIComponent custom - action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:13994.12 - The corresponding UIComponent implementation class for - f:setPropertyActionListener must implement ActionSource, and therefore - define a public addActionListener() method that accepts an - ActionListener parameter. - true -
-
falsetechnologyactivetrue
JSF:SPEC:140 - The tag implementation must only create and register the ActionListener - instance the first time the component for this tag is created - true -
-
falsetechnologyactivetrue
JSF:SPEC:14194.12 - When the listener executes, call getValue() on the "value" - ValueExpression. Pass the result to a call to setValue() on the "target" - ValueExpression - true -
-
falsetechnologyactivetrue
JSF:SPEC:14294.12 - This tag creates no output to the page currently being created. It is - used solely for the side effect of ActionListener creation and addition. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14394.12 - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ActionSource, or the specified listener class does not implement - jakarta.faces.event.ActionListener, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14494.13 - f:subview must be nested inside a f:view custom action although this - custom action might be in a page that is including the page containing - the f:subview custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14594.13 - f:subview must not contain an f:view custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14694.13 - f:subview must have an id attribute whose value is unique within the - scope of the parent naming container. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14794.13 - The implementation class for f:subview must extend - jakarta.faces.UIComponentELTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14894.13 - The implementation class's getComponentType() method must return - “NamingContainer”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:14994.13 - The implementation class's getRendererType() method must return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15094.14 - If the f:validateDoubleRange tag is not nested inside a UIComponent - custom action, or the UIComponent implementation class does not - correctly implement EditableValueHolder throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15194.14 - The implementation class for the f:validateDoubleRange action must meet - the following requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:151.194.14 - Must extend jakarta.faces.webapp.ValidatorTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:151.294.14 - The createValidator() method must, If binding is non-null, - create a ValueBinding by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator.class as the expectedType - argument. - true -
-
falsetechnologyactivetrue
JSF:SPEC:151.394.14 - use the validatorId if the validator instance could not be - created from the binding attribute. - true -
-
falsetechnologyactivetrue
JSF:SPEC:151.494.14 - If there is an exception thrown, rethrow the exception as a - JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15294.15 - If the f:validateLength tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15394.15 - The implementation class for this action must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:153.194.15 - Must extend jakarta.faces.webapp.ValidatorTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:153.294.15 - If binding is non-null, create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - true -
-
falsetechnologyactivetrue
JSF:SPEC:153.394.15 - Use the validatorId if the validator instance could not be - created from the binding attribute. Call the createValidator() - method of the Application instance for this application, - true -
-
falsetechnologyactivetrue
JSF:SPEC:153.494.15 - If there was an exception thrown, rethrow the exception - as a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15494.16 - f:validateLongRange must be nested inside a EditableValueHolder custom - action whose value is (or is convertible to) a long. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15594.16 - f:validateLongRange must specify either the maximum attribute, the - minimum attribute, or both. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15694.16 - For f:validateLongRange if both limits are specified, the maximum limit - must be greater than the minimum limit. - true -
-
falsetechnologyactivetrue
JSF:SPEC:15794.16 - If the f:validateLongRange tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException - true -
-
falsetechnologyactivetrue
JSF:SPEC:15894.16 - The implementation class for the f:validateLongRange action must meet - the following requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:158.194.16 - Must extend jakarta.faces.webapp.ValidatorTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:158.294.16 - The createValidator() method must, if binding is non-null, - create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - true -
-
falsetechnologyactivetrue
JSF:SPEC:158.394.16 - The createValidator() method must, use the validatorId if the - validator instance could not be created from the binding - attribute. - true -
-
falsetechnologyactivetrue
JSF:SPEC:158.494.16 - If there is an exception thrown, rethrow the exception as a - JspException - true -
-
falsetechnologyactivetrue
JSF:SPEC:15994.17 - f:validator tag must be nested inside a UIComponent custom action whose - component class implements EditableValueHolder. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16094.17 - validatorId and/or binding must be specified. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16194.17 - If the f:validator tag is not nested inside a UIComponent custom action, - or the UIComponent implementation class does not correctly implement - EditableValueHolder throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16294.17 - The implementation class for the f:validator action must meet the - following requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:162.194.17 - Must extend jakarta.faces.webapp.ValidatorJspTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:162.294.17 - The createValidator() method must, if binding is non-null, - call binding.getValue() to obtain a reference to the - Validator instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:162.394.17 - The createValidator() method must, use the validatorId attribute - if the validator instance could not be created from the binding - attribute. - true -
-
falsetechnologyactivetrue
JSF:SPEC:162.494.17 - The createValidator() method must, If there was an exception - thrown, rethrow the exception as a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16394.18 - f:valueChangeListener must be nested inside a UIComponent custom action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16494.18 - The corresponding UIComponent implementation class for - f:valueChangeListener must implement EditableValueHolder, and therefore - define a public addValueChangeListener() method that accepts an - ValueChangeListener parameter. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16594.18 - The specified listener class for f:valueChangeListener must implement - jakarta.faces.event.ValueChangeListener. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16694.18 - type and/or binding must be specified. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16794.18 - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - EditableValueHolder, or the specified listener class does not implement - jakarta.faces.event.ValueChangeListener, throw a JspException. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16894.19 - f:verbatim must be implemented as a UIComponentBodyTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:16994.19 - The rendererType property for the f:verbatim tag's UIOutput component - must be set to “jakarta.faces.Text” - true -
-
falsetechnologyactivetrue
JSF:SPEC:17094.19 - The f:verbatim tag's transient property must be set to true. - true -
-
falsetechnologyactivetrue
JSF:SPEC:17194.19 - The value (or value binding, if it is an expression) of the escape - attribute must be passed on to the renderer as the value the escape - attribute on the UIOutput component. - true -
-
falsetechnologyactivetrue
JSF:SPEC:17294.20 - Any JSP-created response using actions from the JSF Core Tag Library, - as well as actions extending jakarta.faces.webapp.UIComponentELTag from - other tag libraries, must be nested inside an occurrence of the - f:view action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:17394.20 - The implementation class for the f:view action must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:173.194.20 - Must extend jakarta.faces.UIComponentBodyTag. - true -
-
falsetechnologyactivetrue
JSF:SPEC:173.294.20 - The getComponentType() method must return “ViewRoot”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:173.394.20 - The getRendererType() method must return null. - true -
-
falsetechnologyactivetrue
JSF:SPEC:17495.0 - The tag library descriptor for this tag library must meet the following - requirements: - true -
-
falsetechnologyactivefalse
JSF:SPEC:174.195.0 - Must declare a tag library version (tlib-version) value of - 1.2. - true -
-
falsetechnologyactivetrue
JSF:SPEC:174.295.0 - Must declare a URI tag value of - http://java.sun.com/jsf/html. - true -
-
falsetechnologyactivetrue
JSF:SPEC:174.395.0 - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the Jakarta Server Pages Specification - (version 1.2). - true -
-
falsetechnologyactivetrue
JSF:SPEC:17595.0 - The custom actions defined in this tag library must specify the - following return values for the getComponentType() and getRendererType() - methods, respectively: - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.195.0 - Action column: - getComponentType()- returns jakarta.faces.Column - getRendererType()- returns (null)* - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.295.0 - Action commandButton: - getComponentType()- returns jakarta.faces.HtmlCommandButton - getRendererType()- returns jakarta.faces.Button - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.395.0 - Action commandLink: - getComponentType()- returns jakarta.faces.HtmlCommandLink - getRendererType()- returns jakarta.faces.Link - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.495.0 - Action dataTable: - getComponentType()- returns jakarta.faces.HtmlDataTable - getRendererType()- returns jakarta.faces.Table - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.595.0 - Action form: - getComponentType()- returns jakarta.faces.HtmlForm - getRendererType()- returns jakarta.faces.Form - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.695.0 - Action graphicImage: - getComponentType()- returns jakarta.faces.HtmlGraphicImage - getRendererType()- returns jakarta.faces.Image - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.795.0 - Action inputHidden: - getComponentType()- returns jakarta.faces.HtmlInputHidden - getRendererType()- returns jakarta.faces.Hidden - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.895.0 - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.9 - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1095.0 - Action inputText: - getComponentType()- returns jakarta.faces.HtmlInputText - getRendererType()- returns jakarta.faces.Text - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1195.0 - Action inputTextarea: - getComponentType()- returns jakarta.faces.HtmlInputTextarea - getRendererType()- returns jakarta.faces.Textarea - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1295.0 - Action message: - getComponentType()- returns jakarta.faces.HtmlMessage - getRendererType()- returns jakarta.faces.Message - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1395.0 - Action messages: - getComponentType()- returns jakarta.faces.HtmlMessages - getRendererType()- returns jakarta.faces.Messages - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1495.0 - Action outputFormat: - getComponentType()- returns jakarta.faces.HtmlOutputFormat - getRendererType()- returns jakarta.faces.Format - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1595.0 - Action outputLabel: - getComponentType()- returns jakarta.faces.HtmlOutputLabel - getRendererType()- returns jakarta.faces.Label - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1695.0 - Action outputLink: - getComponentType()- returns jakarta.faces.HtmlOutputLink - getRendererType()- returns jakarta.faces.Link - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1795.0 - Action outputText: - getComponentType()- returns jakarta.faces.HtmlOutputText - getRendererType()- returns jakarta.faces.Text - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1895.0 - Action panelGrid: - getComponentType()- returns jakarta.faces.HtmlPanelGrid - getRendererType()- returns jakarta.faces.Grid - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.1995.0 - Action panelGroup: - getComponentType()- returns jakarta.faces.HtmlPanelGroup - getRendererType()- returns jakarta.faces.Group - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2095.0 - Action selectBooleanCheckbox: - getComponentType()- - returns jakarta.faces.HtmlSelectBooleanCheckbox - getRendererType()- returns jakarta.faces.Checkbox - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2195.0 - Action selectManyListbox: - getComponentType()- returns jakarta.faces.HtmlSelectManyListbox - getRendererType()- returns jakarta.faces.Listbox - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2295.0 - Action selectManyMenu: - getComponentType()- returns jakarta.faces.HtmlSelectManyMenu - getRendererType()- returns jakarta.faces.Menu - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2395.0 - Action selectOneListbox: - getComponentType()- returns jakarta.faces.HtmlSelectOneListbox - getRendererType()- returns jakarta.faces.Listbox - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2495.0 - Action selectOneMenu: - getComponentType()- returns jakarta.faces.HtmlSelectOneMenu - getRendererType()- returns jakarta.faces.Menu - true -
-
falsetechnologyactivetrue
JSF:SPEC:175.2595.0 - Action selectOneRadio: - getComponentType()- returns jakarta.faces.HtmlSelectOneRadio - getRendererType()- returns jakarta.faces.Radio - true -
-
falsetechnologyactivetrue
JSF:SPEC:17695.0 - The tag library descriptor for this tag library (and the corresponding - tag handler implementation classes) must meet the following - requirements: - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.195.0 - The attributes for the tags, both in the TLD and in the - associated tag handlers, must conform exactly to the type, name, - and description given in the TLDDocs for the - html_basic tag library. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.295.0 - If the type of the attribute is jakarta.el.MethodExpression, the - TLD for the attribute must contain a <deferred-method> - with a nested <method-signature>, inside of which is the - method signature for that MethodExpression, as given in the - TLDDocs. The JavaBeans setter method in the tag handler for the - tag must be of type jakarta.el.MethodExpression. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.395.0 - Any attributes listed in the TLDDocs with a request-time value - of true must specify an <rtexprvalue> of true in the TLD. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.495.0 - The following action must be taken to handle the value of the - converter property. If isLiteralText() on the converter property - returns true, get the value of the property and treat it as a - converterId by passing it as the argument to the - createConverter() method of the Application instance for this - webapp, then pass the created Converter to the setConverter() - method of the component for this tag. If isLiteralText() on the - converter property returns false, call setValueExpression() on - the component, passing “converter” as the name of the - ValueExpression and the ValueExpression instance as the value. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.595.0 - For a non-null action attribute on custom actions related to - ActionSource2 components (commandButton, commandLink), the - setProperties() method of the tag handler implementation class - must pass the value of the action attribtue, which is a - MethodExpression, to the component’s setActionExpression() - method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.695.0 - For other non-null attributes that correspond to - MethodExpression attributes on the underlying components - (actionListener, validator, valueChangeListener), the - setProperties() method of the tag handler implementation class - must store that instance as the value of the corresponding - component property. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.795.0 - For any non-null id, scope, or var attribute, the - setProperties() method of the tag handler implementation class - must simply set the value of the corresponding component - attribute. - true -
-
falsetechnologyactivetrue
JSF:SPEC:176.895.0 - For all other non-null attributes, the setProperties() of the - tag handler implementation class method must, if the - attribute.isLiteralText() returns true, set the corresponding - attribute on the underlying component (after performing any - necessary type conversion). Otherwise, call the - setValueExpression() method on the underlying component, - passing the attribute name and the ValueExpression‘ instance as - parameters. - true -
-
falsetechnologyactivetrue
JSF:SPEC:177103.1 - Facelet pages are authored in XHTML. The runtime must support all XHTML - pages that confirm with the XHTML-1.0-Transitional DTD, as described at - http://www.w3.org/TR/xhtml1/#a_dtd_XHTML-1.0-Transitional - true -
-
falsetechnologyactivetrue
JSF:SPEC:178103.2 - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page. - <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:prefix="namespace_uri"> - true -
-
falsetechnologyactivetrue
JSF:SPEC:179103.2 - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page - true -
-
falsetechnologyactivefalse
JSF:SPEC:179.1103.2 - Via declaration in the web.xml, as specified in Section11.1.3 - “Application Configuration Parameters” - true -
-
falsetechnologyactivetrue
JSF:SPEC:179.2103.2 - Via auto discovery by placing the tag library discriptor file - within a jar on the web application classpath, naming the - file so that it ends with “.taglib.xml”, without the quotes, - and placing the file in the META-INF directory in the jar file - true -
-
falsetechnologyactivetrue
JSF:SPEC:180103.2 - Failure to parse, process and otherwise interpret any of the tag - library files discovered must cause the application to fail to deploy - and must cause an informative error message to be logged. - true -
-
falsetechnologyactivetrue
JSF:SPEC:181103.3.1 - The runtime must support the following two ways of declaring a - composite component library. - true -
-
falsetechnologyactivefalse
JSF:SPEC:181.1103.3.1 - If a facelet taglibrary is declared in an XHTML page with a - namespace starting with the string - “http://java.sun.com/jsf/composite/” (without the quotes), - the remainder of the namespace declaration is taken as the name - of a resource library as described in Section2.6.1.4 “Libraries - of Localized and Versioned Resources - true -
-
falsetechnologyactivetrue
JSF:SPEC:181.2103.3.1 - the runtime must also support the <composite-library-name> - element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:182103.3.2 - If, during the process of building the view, the facelet runtime - encounters an element in the page using the prefix for the namespace of - a composite component library, the runtime must create a Resource - instance with a library property equal to the library name derived in - Section10.3.3.1 “Declaring a composite component library for use in a - Facelet page”and call the variant of application.createComponent() that - takes a Resource. - true -
-
falsetechnologyactivetrue
JSF:SPEC:183103.3.2 - After causing the top level component to be instantiated, the runtime - must create a UIComponent with component- family of jakarta.faces.Panel - and renderer-type jakarta.faces.Group to be installed as a facet of the - top level component under the facet name - UIComponent.COMPOSITE_FACET_NAME. - true -
-
falsetechnologyactivetrue
JSF:SPEC:184103.3.3 - The runtime must support the use of composite: tag library in the - defining page pointed to by the Resource derived as specified in - Section10.3.3.2 “Creating an instance of a top level component” - true -
-
falsetechnologyactivetrue
JSF:SPEC:185103.3.3 - The runtime must ensure that all UIComponent children in the composite - component definition within the defining page are placed as children of - the UIComponent.COMPOSITE_FACET_NAME facet of the top level facet - true -
-
falsetechnologyactivetrue
JSF:SPEC:186103.3.3 - The runtime must ensure that all such attributes are copied to the - attributes map of the top level component instance in the following - manner. - true -
-
falsetechnologyactivefalse
JSF:SPEC:186.1103.3.3 - Obtain a reference to the ExpressionFactory, for discussion - called expressionFactory. - true -
-
falsetechnologyactivetrue
JSF:SPEC:186.2103.3.3 - Let the value of the attribute in the using page be value. - true -
-
falsetechnologyactivetrue
JSF:SPEC:186.3103.3.3 - If value is “id” or “binding” without the quotes, skip to the - next attribute. - true -
-
falsetechnologyactivetrue
JSF:SPEC:186.4103.3.3 - f the value of the attribute starts with “#{“ (without the - quotes) call expressionFactory.createValueExpression(elContext, - value, Object.class) - true -
-
falsetechnologyactivetrue
JSF:SPEC:186.5103.3.3 - If the value of the attribute does not start with “#{“, call - expressionFactory.createValueExpression(value, Object.class) - true -
-
falsetechnologyactivetrue
JSF:SPEC:186.6103.3.3 - If there already is a key in the map for value, inspect the type - of the value at that key. If the type is MethodExpression take - no action. - true -
-
falsetechnologyactivetrue
JSF:SPEC:187103.3.3 - If the type of the attribute is a MethodExpression, the code that - takes the value of the attribute and creates an actual - MethodExpression instance around it must take the following special - action. - true -
-
falsetechnologyactivefalse
JSF:SPEC:187.1103.3.3 - Obtain a reference to the current composite component by calling - UIComponent.getCurrentCompositeComponent(). - true -
-
falsetechnologyactivetrue
JSF:SPEC:187.2103.3.3 - Look in the attribute of the component for a key under the value - attrName. - true -
-
falsetechnologyactivetrue
JSF:SPEC:187.3103.3.3 - There must be a value and it must be of type MethodExpression. - If either of these conditions are false allow the ensuing - exception to be thrown. - true -
-
falsetechnologyactivetrue
JSF:SPEC:187.4103.3.3 - Call invoke() on the discovered MethodExpression, passing the - arguments passed to our invoke() method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:188104.1.1 - The String value for identifiers specified for execute and render may be - specified as a search expression as outlined in the JavaDocs for - UIComponent.findComponent.The implementation must resolve these - identifiers as specified for UIComponent.findComponent. - true -
-
falsetechnologyactivetrue
JSF:SPEC:189104.1.1 - A TagAttibuteException must be thrown if an “event” attribute value is - specified that does not match the events supported by the component - type. - true -
-
falsetechnologyactivetrue
JSF:SPEC:190104.1.1 - The event attribute that is specified, must be one of the events - returned from the ClientBehaviorHolder component implementation of - ClientBehaviorHolder.getEventNames. - true -
-
falsetechnologyactivetrue
JSF:SPEC:191104.1.1 - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - true -
-
falsetechnologyactivetrue
JSF:SPEC:192104.1.1 - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - true -
-
falsetechnologyactivetrue
JSF:SPEC:193104.1.1 - The "Description" tag handler must create an instance of - jakarta.faces.component.behavior.AjaxBehavior instance using the tag - attribute values. - true -
-
falsetechnologyactivetrue
JSF:SPEC:194104.1.1 - If teh "Description" tag is nested within a single ClientBehaviorHolder - component: - true -
-
falsetechnologyactivefalse
JSF:SPEC:194.1104.1.1 - If the event attribute is not specified, determine the event by - calling the component’s getDefaultEventName method. If that - returns null, throw an exception. - true -
-
falsetechnologyactivetrue
JSF:SPEC:194.2104.1.1 - If the event attribute is specified, ensure that it is a valid - event - that is one of the events contained in the Collection - returned from getEventNames method. If it does not exist in this - Collection, throw an exception. - true -
-
falsetechnologyactivetrue
JSF:SPEC:194.3104.1.1 - Add the AjaxBehavior to the component by calling the addBehavior - method, passing the event and AjaxBehavior instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:195105 - When the VDL calls for the creation of a UIComponent instance, after - calling Application.createComponent() to instantiate the component - instance, and after calling setRendererType() on the newly instantiated - component instance, the following action must be taken. - true -
-
falsetechnologyactivefalse
JSF:SPEC:195.1104.1.1 - Obtain the Renderer for this component. If no Renderer is - present, ignore the following steps. - true -
-
falsetechnologyactivetrue
JSF:SPEC:195.2104.1.1 - Call getClass() on the Renderer instance and inspect if the - ListenerFor annotation is present. If so, inspect if the - Renderer instance implements ComponentSystemEventListener. If - neither of these conditions are true, ignore the following - steps. - true -
-
falsetechnologyactivetrue
JSF:SPEC:195.3104.1.1 - Obtain the value of the systemEventClass() property of the - ListenerFor annotation on the Renderer instance. - true -
-
falsetechnologyactivetrue
JSF:SPEC:195.4104.1.1 - Call subscribeToEvent() on the UIComponent instance from which - the Renderer instance was obtained, using the systemEventClass - from the annotation as the second argument, and the Renderer - instance as the third argument. - true -
-
falsetechnologyactivetrue
JSF:SPEC:196111.1 - This servlet must be defined, in the deployment descriptor of an - application that wishes to employ this portable mechanism. - The servlet name, denoted as faces-servlet-name above, may be any - desired value; however, the same value must be used as teh servlet-name - in the servlet mapping. - true -
-
falsetechnologyactivetrue
JSF:SPEC:197111.2 - JSF implementations must support web application that define a - <servlet-mapping> that maps any valid url-pattern to the - FacesServlet. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198111.3 - JSF implementations are required to support the following application - configuration parameter names: - true -
-
falsetechnologyactivefalse
JSF:SPEC:198.1111.3 - jakarta.faces.CONFIG_FILES -- Comma-delimited list of - context-relative resource paths under which the JSF - implementation will look for application configuration - resources before loading a configuration resource named - “/WEB-INF/faces-config.xml” - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.2111.3 - jakarta.faces.DEFAULT_SUFFIX -- The default suffix for - extension-mapped resources that contain JSF components. If not - specified, the default value “.jsp” must be used. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.3111.3 - jakarta.faces.FACELETS_SUFFIX -- Allow the web application to - define an alternate suffix for Facelet based XHTML pages - containing JSF content. See the javadocs for the symbolic - constant ViewHandler.FACELETS_SUFFIX_PARAM_NAME for the - complete specification. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.4111.3 - jakarta.faces.LIFECYCLE_ID -- Lifecycle identifier of the - Lifecycle instance to be used when processing JSF requests for - this web application. If not specified, the JSF default - instance, identified by LifecycleFactory.DEFAULT_LIFECYCLE, must - be used. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.5111.3 - jakarta.faces.STATE_SAVING_METHOD -- The location where state - information is saved. Valid values are “server” (typically saved - in HttpSession) and “client (typically saved as a hidden field - in the subsequent form submit). If not specified, the default - value “server” must be used. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.6111.3 - jakarta.faces.PARTIAL_STATE_SAVING --The ServletContext init - parameter consulted by the runtime to determine if the partial - state saving mechanism should be used. If undefined, the runtime - must determine the version level of the application. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.6.1111.3 - For applications versioned at 1.2 and under, the runtime - must not use the partial state saving mechanism. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.6.2111.3 - For applications versioned at 2.0 and above, the runtime - must use the partial state saving mechanism. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.7111.3 - jakarta.faces.FULL_STATE_SAVING_VIEW_IDS -- The runtime must - interpret the value of this parameter as a comma separated list - of view IDs, each of which must have their state saved using the - state saving mechanism specified in JSF 1.2. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.8111.3 - jakarta.faces.PROJECT_STAGE -- A human readable string describing - where this particular JSF application is in the software - development lifecycle. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.9111.3 - jakarta.faces.DISABLE_FACELET_JSF_VIEWHANDLER -- If this param is - set, and calling toLowerCase().equals("true") on a String - representation of its value returns true, the default - ViewHandler must behave as specified in the latest 1.2 version - of this specification. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.10111.3 - jakarta.faces.FACELETS_LIBRARIES -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - paths, starting with “/” (without the quotes). - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.11111.3 - jakarta.faces.FACELETS_VIEW_MAPPINGS -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - strings that is used to forcibly declare that certain pages in - the application must be interpreted as using Facelets, - regardless of their extension. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.12111.3 - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL -- - If this param is set, and calling toLowerCase().equals("true") - on a String representation of its value returns true, any - implementation of UIInput.validate() must take the following - additional action. context parameter value is true (ignoring - case), and UIInput.getSubmittedValue() returns a zero-length - String call UIInput.setSubmittedValue(null) and continue - processing using null as the current submitted value - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.13111.3 - jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZO - NE -- If this param is set, and calling toLowerCase().equals( - "true") on a String representation of its value returns true, - Application.createConverter() must guarantee that the default - for the timezone of all jakarta.faces.convert.DateTimeConverter - instances must be equal to TimeZone.getDefault() instead of - “GMT”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.14111.3 - jakarta.faces.VALIDATE_EMPTY_FIELDS -- If this param is set, and - calling toLowerCase().equals("true") on a String representation - of its value returns true, all submitted fields will be - validated - true -
-
falsetechnologyactivetrue
JSF:SPEC:198.15111.3 - jakarta.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR -- If this - param is set, and calling toLowerCase().equals("true") on a - String representation of its value returns true, the runtime - must not automatically add the validator with validator-id equal - to the value of the symbolic constant - jakarta.faces.validator.VALIDATOR_ID to the list of default - validators. - true -
-
falsetechnologyactivetrue
JSF:SPEC:199112.6.1 - JSF implementations must also include implementations of the several - factory classes. In order to be dynamically instantiated according to - the algorithm defined above, the factory implementation class must - include a public, no-arguments constructor. - true -
-
falsetechnologyactivetrue
JSF:SPEC:200112.6.1 - jakarta.faces.FactoryFinder implements the standard discovery algorithm - for all factory objects specified in the Jakarta Server Faces APIs. - For a given factory class name, a corresponding implementation class is - searched for based on the following algorithm. Items are listed in order - of decreasing search precedence: - true -
-
falsetechnologyactivefalse
JSF:SPEC:200.1112.6.1 - If a default Jakarta Server Faces configuration file - (/WEB-INF/faces-config.xml) is bundled into the web application, - and it contains a factory entry of the given factory class name, - that factory class is used. - true -
-
falsetechnologyactivetrue
JSF:SPEC:200.2112.6.1 - If the Jakarta Server Faces configuration resource(s) named by the - jakarta.faces.CONFIG_FILES ServletContext init parameter (if any) - contain any factory entries of the given factory class name, - those factories are used, with the last one taking precedence. - true -
-
falsetechnologyactivetrue
JSF:SPEC:200.3112.6.1 - If there are any META-INF/faces-config.xml resources bundled any - JAR files in the web ServletContext’s resource paths, the - factory entries of the given factory class name in those files - are used, with the last one taking precedence. - true -
-
falsetechnologyactivetrue
JSF:SPEC:200.4112.6.1 - If a META-INF/services/{factory-class-name} resource is visible - to the web application class loader for the calling application - (typically as a result of being present in the manifest of a - JAR file), its first line is read and assumed to be the name of - the factory implementation class to use. - true -
-
falsetechnologyactivetrue
JSF:SPEC:200.5112.6.1 - If none of the above steps yield a match, the Jakarta Server Faces - implementation specific class is used. - true -
-
falsetechnologyactivetrue
JSF:SPEC:201112.6.1 - For each of the public static final String fields on the class - FactoryFinder whose field names end with the string “_FACTORY” - (without the quotes), the implementation must provide an implementation - of the corresponding Factory class using the algorithm described earlier - in this section. - true -
-
falsetechnologyactivetrue
JSF:SPEC:202112.6.2 - The FacesServlet implementation class must also declare two static - public final String constants whose value is a context initialization - parameter that affects the behavior of the servlet - true -
-
falsetechnologyactivefalse
JSF:SPEC:202.1112.6.2 - CONFIG_FILES_ATTR -- the context initialization attribute that - may optionally contain a comma-delimited list of context - relative resources (in addition to /WEB-INF/facesconfig. xml - which is always processed if it is present) to be processed. - The value of this constant must be “jakarta.faces.CONFIG_FILES”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:202.2112.6.2 - LIFECYCLE_ID_ATTR -- the lifecycle identifier of the Lifecycle - instance to be used for processing requests to this application, - if an instance other than the default is required. The value of - this constant must be “jakarta.faces.LIFECYCLE_ID”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:203112.6.3 - UIComponentELTag is an implementation of - jakarta.servlet.jsp.tagext.BodyTag, and must be the base class for any JSP - custom action that corresponds to a JSF UIComponent. - true -
-
falsetechnologyactivetrue
JSF:SPEC:204113.1 - The faces implementation must now provide the attributetag class. - true -
-
falsetechnologyactivetrue
JSF:SPEC:205114.2 - the JSF implementation must process zero or more application - configuration resources, located according to the following algorithm: - true -
-
falsetechnologyactivefalse
JSF:SPEC:205.1114.2 - Search for all resources named “META-INF/faces-config.xml” in the - ServletContext resource paths for this web application, and load - each as a JSF configuration resource (in reverse order of the - order in which they are returned by getResources() on the - current Thread’s ContextClassLoader). - true -
-
falsetechnologyactivetrue
JSF:SPEC:205.2114.2 - Check for the existence of a context initialization parameter - named jakarta.faces.CONFIG_FILES. If it exists, treat it as a - comma-delimited list of context relative resource paths - (starting with a “/”), and load each of the specfied resources. - true -
-
falsetechnologyactivetrue
JSF:SPEC:205.3114.2 - Check for the existence of a web application configuration - resource named “/WEBINF/faces-config.xml”, and load it if the - resource exists. - true -
-
falsetechnologyactivetrue
JSF:SPEC:206114.2 - The runtime must publish the - jakarta.faces.event.PostConstructApplicationEvent immediately after all - application configuration resources have been processed. - true -
-
falsetechnologyactivetrue
JSF:SPEC:207114.2 - XML parsing errors detected during the loading of an application - resource file are fatal to application startup, and must cause the - application to not be made available by the container. - true -
-
falsetechnologyactivetrue
JSF:SPEC:208114.2 - JSF implementations that are part of a Java EE technology compliant - implementation are required to validate the application resource file - against the XML schema for structural correctness. The validation is not - required for JSF implementations that are not part of a Java EE - technology-compliant implementation. - true -
-
falsetechnologyactivetrue
JSF:SPEC:209114.3 - Application configuration resources must conform to the XML schema - shown in Appendix 1.1. In addition, they must include the following - schema declaration. - true -
-
falsetechnologyactivetrue
JSF:SPEC:210114.4 - Application configuration resources that are written to run on JSF 2.0 - must include the following schema declaration... - true -
-
falsetechnologyactivetrue
JSF:SPEC:211114.4 - Application configuration resources that are written to run on JSF 1.2 - must include the following schema declaration... - true -
-
falsetechnologyactivetrue
JSF:SPEC:212114.4 - Application configuration resources that are written to run on JSF 1.1 - must include the following schema declaration... - true -
-
falsetechnologyactivetrue
JSF:SPEC:213114.4 - Application configuration resources that are written to run on JSF 1.0 - must include the following schema declaration... - true -
-
falsetechnologyactivetrue
JSF:SPEC:214114.6 - The runtime must support the decorator design pattern as specified - below for the following artifacts. - true -
-
falsetechnologyactivetrue
JSF:SPEC:215114.7 - If an <name> element is present, it must be considered for the - ordering of decoratable artifacts (unless the duplicate name exception - applies, as described below). - true -
-
falsetechnologyactivefalse
JSF:SPEC:215.1114.7 - Absolute ordering: an <absolute-ordering> element in the - applicationFacesConfig - true -
-
falsetechnologyactivetrue
JSF:SPEC:215.2114.7 - Relative ordering: an <ordering> element within a file in - the applicationConfigurationResources - true -
-
falsetechnologyactivetrue
JSF:SPEC:216114.7 - The preceding example illustrates some, but not all, of the following - principles. - true -
-
falsetechnologyactivefalse
JSF:SPEC:216.1114.7 - <before> means the document must be ordered before the - document with the name matching the name specified within the - nested <name> element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.2114.7 - <after> means the document must be ordered after the - document with the name matching the name specified within the - nested <name> element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.3114.7 - There is a special element <others /> which may be included - zero or one time within the <before> or <after> element, - or zero or one time directly within the <absolute-ordering> - element. The <others /> element must be handled as follows. - true -
-
falsetechnologyactivefalse
JSF:SPEC:216.3.1114.7 - If the <before> element contains a nested - <others />, the document will be moved to the - beginning of the list of sorted documents. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.3.2114.7 - If the <after> element contains a nested - <others />, the document will be moved to the end of - the list of sorted documents. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.3.3114.7 - Within a <before> or <after> element, if an - <tothers /> element is present, but is not the only - <name> element within its parent element, the other - elements within that parent must be considered in the - ordering process. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.3.4114.7 - If the <others /> element appears directly within - the <absolute-ordering> element, the runtime must - ensure that any application configuration resources in - applicationConfigurationResources not explicitly named - in the <absolute-ordering> section are included at - that point in the processing order. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.4114.7 - If a faces-config file does not have an <ordering> or - <absolute-ordering> element the artifacts are assumed to not - have any ordering dependency. - true -
-
falsetechnologyactivetrue
JSF:SPEC:216.5114.7 - If the runtime discovers circular references, an informative - message must be logged, and the application must fail to deploy. - Again, one course of action the user may take is to use absolute - ordering in the applicationFacesConfig. - true -
-
falsetechnologyactivefalse
JSF:SPEC:217115.1 - If the <faces-config>> element in the WEB-INF/faces-config.xml file - contains metadata-complete attribute whose value is “true”, the - implementation must not perform annotation scanning on any classes - except for those classes provided by the implementation itself. - true -
-
falsetechnologyactivetrue
JSF:SPEC:218115.1 - If the runtime discovers a conflict between an entry in the Application - Configuration Resources and an annotation, the entry in the Application - Configuration Resources takes precedence. - true -
-
falsetechnologyactivetrue
JSF:SPEC:219115.1 - All classes in WEB-INF/classes must be scanned. - true -
-
falsetechnologyactivetrue
JSF:SPEC:220115.1 - For every jar in the application's WEB-INF/lib directory, if the jar - contains a “META-INF/faces-config.xml” file or a file that matches the - regular expression “META-INF/.*faces-config.xml” (even an empty one), - all classes in that jar must be scanned. - true -
-
falsetechnologyactivetrue
JSF:SPEC:221121 - Upon receipt of each JSF-destined request to this web application, - the JSF implementation must acquire a reference to the Lifecycle - instance for this web application, and call its execute() and render() - methods to perform the request processing lifecycle. - true -
-
falsetechnologyactivetrue
JSF:SPEC:222123 - Any exceptions thrown during the beforePhase() listeners must be caught - and published to the ExceptionHandler. - true -
-
falsetechnologyactivetrue
JSF:SPEC:223123 - Any exceptions thrown during the execution of the actual lifecycle - phase, that reach the runtime code that implements the JSF lifecycle - phase, must be caught and and published to the ExceptionHandler - true -
-
falsetechnologyactivetrue
JSF:SPEC:224123 - Any exceptions thrown during the afterPhase() liseteners must be caught - and published to the ExceptionHandler. - true -
-
falsetechnologyactivetrue
JSF:SPEC:225131 - There must be a single JavaScript resource that exists with the resource - identifier jsf.js - true -
-
falsetechnologyactivetrue
JSF:SPEC:226131 - The jsf.js must exist under the resource library jakarta.faces, following - the conventions in Section 2.6 “Resource Handling”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:227132 - If the OpenAjax library is available, libraries must register themselves - using OpenAjax.registerLibrary() at the time when the JavaScript files - are fetched and parsed by the browser’s JavaScript engine. - true -
-
falsetechnologyactivetrue
JSF:SPEC:228132 - Any implementation that intends to use the Jakarta Server Faces 2.0 JavaScript - API must define a top level JavaScript object name jsf, whose type is a - JavaScript associative array. Within that top level JavaScript object, - found in the OpenAjax Hub, there must be a property named ajax.. - true -
-
falsetechnologyactivetrue
JSF:SPEC:229133.2 - All Ajax requests must be put into a client side request queue before - they are sent to the server to ensure Ajax requests are processed in the - order they are sent. - true -
-
falsetechnologyactivetrue
JSF:SPEC:230133.2 - After a request is sent, the Ajax request callback function must remove - the request from the queue (also known as dequeuing). If the request - completed successfully, it must be removed from the queue. If there was - an error, the client must be notified, but the request must still be - removed from the queue - true -
-
falsetechnologyactivetrue
JSF:SPEC:231133.3.3 - The Ajax request callback function is called when the Ajax - request/response interaction is complete. This function must perform the - following actions: - true -
-
falsetechnologyactivefalse
JSF:SPEC:231.1133.3.1 - If the return status is >= 200 and < 300, send a “complete” - event following Section13.3.5.3 “Sending Events”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:231.2133.3.1 - If the return status is outside the range mentioned above, send - a “complete” event following Section13.3.5.3 “Sending Events”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:231.3133.3.1 - Regardless of whether the request completed successfully or not: - true -
-
falsetechnologyactivefalse
JSF:SPEC:231.3.1133.3.1 - remove the completed requests (Ajax readystate 4) from - the request queue (dequeue) - specifically the requests - that have been on the queue the longest. - true -
-
falsetechnologyactivetrue
JSF:SPEC:231.3.2133.3.1 - find the next oldest unprocessed (Ajax readystate 0) - request on the queue, and send it. The implementation - must ensure that the request that is sent does not enter - the queue again. - true -
-
falsetechnologyactivetrue
JSF:SPEC:232133.4 - The implementation of jsf.ajax.response must handle the response as - outlined in the JavaScript documentation for jsf.ajax.response. The - elements in the response must be processed in the - order they appear in the response. - true -
-
falsetechnologyactivetrue
JSF:SPEC:233133.5.2 - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance with the - events outlined in SectionTABLE14-3 “Events”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:234133.5.3 - The implementation must send events to the runtime as follows: - true -
-
falsetechnologyactivefalse
JSF:SPEC:234.1133.5.3 - Construct a data payload for events using the properties - described in SectionTABLE14-4 “Event Data Payload” - true -
-
falsetechnologyactivetrue
JSF:SPEC:234.2133.5.3 - If an event handler function was registered with the “onevent” - attribute (Section13.3.5.1 “Monitoring Events For An Ajax - Request”) call it passing the data payload. - true -
-
falsetechnologyactivetrue
JSF:SPEC:234.3133.5.3 - If any event handling functions were registered with the - “addOnEvent” function (Section13.3.5.2 “Monitoring Events - For All Ajax Requests”) call them passing the data payload. - true -
-
falsetechnologyactivetrue
JSF:SPEC:235133.6.1 - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance when the - request status code from the server is as outlined in SectionTABLE14-5 - “Errors”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:236133.6.2 - The implementation must ensure the JavaScript function that is - registered must be called in accordance with the errors outlined in - SectionTABLE14-5 “Errors”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:237133.6.3 - The implementation must signal errors to the runtime as follows: - true -
-
falsetechnologyactivefalse
JSF:SPEC:237.1133.6.3 - Construct a data payload for errors using the properties - described in SectionTABLE14-6 “Error Data Payload”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:237.2133.6.3 - If an error handler function was registered with the “onerror” - attribute (Section13.3.6.1 “Handling Errors For An Ajax - Request”) call it passing the data payload. - true -
-
falsetechnologyactivetrue
JSF:SPEC:237.3133.6.3 - If any error handling functions were registered with the - “addOnError” function (Section13.3.6.2 “Handling Errors For All - Ajax Requests”) call them passing the data payload. - true -
-
falsetechnologyactivetrue
JSF:SPEC:237.4133.6.3 - If the project stage is “development” (see Section14.5 - “Determining An Application’s Project Stage”) use JavaScript - “alert” to signal the error(s). - true -
-
falsetechnologyactivetrue
JSF:SPEC:238133.7 - Jakarta Server Faces Ajax frameworks must ensure exception information is - written to the response in the format: - true -
-
falsetechnologyactivefalse
JSF:SPEC:238.1133.7 - Extract the “class” from the “Throwable” object and write that - as the contents of error-name in the response. - true -
-
falsetechnologyactivetrue
JSF:SPEC:238.2133.7 - Extract the “cause” from the “Throwable” object if it is - available and write that as the contents of error-message in the - response. If “cause” is not available, write the string returned - from “Throwable.getMessage()”. - true -
-
falsetechnologyactivetrue
JSF:SPEC:238.3133.7 - Implementations must ensure that an ExceptionHandler suitable - for writing exceptions to the partial response is installed if - the current request required an Ajax response - (PartialViewContext.isAjaxRequest() returns true). - true -
-
falsetechnologyactivetrue
JSF:SPEC:239134.2 - The UIViewRoot processDecodes, processValidators and processUpdates - methods must determine if the request is a partial request using the - FacesContext.isPartialRequest() method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:240134.3 - The UIViewRoot getRendersChildren and encodeChildren methods must - determine if the request is an Ajax request using the - FacesContext.isAjaxRequest() method. - true -
-
falsetechnologyactivetrue
JSF:SPEC:241134.4 - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - true -
-
falsetechnologyactivetrue
JSF:SPEC:242134.4 - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - true -
-
falsetechnologyactivetrue
JSF:SPEC:243142 - The jsf.ajax.request function is responsible for sending an Ajax request - to the server. The requirements for this function are as follows: - true -
-
falsetechnologyactivefalse
JSF:SPEC:243.1142 - The request must be sent asynchronously - true -
-
falsetechnologyactivetrue
JSF:SPEC:243.2142 - The request must be sent with method type POST - true -
-
falsetechnologyactivetrue
JSF:SPEC:243.3142 - The request URL will be the form action attribute - true -
-
falsetechnologyactivetrue
JSF:SPEC:243.4142 - All requests will be queued with the use of a client side - request queue to help ensure request ordering - true -
-
falsetechnologyactivetrue
JSF:SPEC:244142.1 - It must be a DOM element object or a string identifier for a DOM - element. - true -
-
falsetechnologyactivetrue
JSF:SPEC:245142.4 - The request header must be set with the name Faces-Request and the value - partial/ajax. - true -
-
falsetechnologyactivetrue
JSF:SPEC:246143 - The specifics details of this function’s operation must follow the - jsf.ajax.response JavaScript documentation. - true -
-
falsetechnologyactivetrue
JSF:SPEC:247145 - This function must return the constant representing the current state of - the running application in a typical product development lifecycle. The - returned value must be the value returned from the server side method - jakarta.faces.application.Application.getProjectStage() - true -
-
falsetechnologyactivetrue
- - diff --git a/install/jsf/docs/index.html b/install/jsf/docs/index.html deleted file mode 100644 index 263d7311f3..0000000000 --- a/install/jsf/docs/index.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - Welcome to the Jakarta EE Server Faces TCK - - - -
-

Welcome to the Jakarta EE Server Faces Test Compatibility - Kit, Version 3.0

-

Your Starting Point

-
-
-

Jakarta EE Server Faces TCK 3.0 Documentation

-

The Jakarta EE Server Faces TCK 3.0 documentation includes the following: -

- -

JT Harness Documentation

-

The online version of the JT Harness version 5.0 documentation is - available here.

-
-

-
Copyright 2017, 2021 Oracle and/or its affiliates. All - rights reserved.
- -

- - diff --git a/install/jsf/other/testsuite.jtt b/install/jsf/other/testsuite.jtt deleted file mode 100644 index 928d74b818..0000000000 --- a/install/jsf/other/testsuite.jtt +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# -classpath=$TS_HOME/lib/tsharness.jar -testsuite=com.sun.ts.lib.harness.TS -name=JavaServer Faces TCK/2.3 diff --git a/internal/docs/jsf/JSFJavadocAssertions-2_2.xml b/internal/docs/jsf/JSFJavadocAssertions-2_2.xml deleted file mode 100644 index b0bd78fbe5..0000000000 --- a/internal/docs/jsf/JSFJavadocAssertions-2_2.xml +++ /dev/null @@ -1,31362 +0,0 @@ - - - - - - 3090 - 2939 - JSF - JSF:JAVADOC:JSF - JavaServer Faces - 2.2 - - - - - - JSF:JAVADOC:1 - Construct a new exception with no detail message or root cause. - jakarta.faces - FacesException - - - - JSF:JAVADOC:2 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces - FacesException - - - java.lang.String - - - - - JSF:JAVADOC:3 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces - FacesException - - - java.lang.Throwable - - - - - JSF:JAVADOC:4 - Construct a new exception with the specified detail message and root cause. - jakarta.faces - FacesException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:5 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces - FacesException - - - - JSF:JAVADOC:6 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces - FacesWrapper - - - - JSF:JAVADOC:8 - if the web application class loader cannot be identified - jakarta.faces - FactoryFinder - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:9 - if factoryName does not identify a standard JavaServer Faces factory name - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:10 - if there is no configured factory implementation class for the specified factory name - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:11 - if factoryname is null - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:12 - Release any references to factory instances associated with the class loader for the calling web application. This method must be called during of web application shutdown. - jakarta.faces - FactoryFinder - - - - JSF:JAVADOC:13 - if the web application class loader cannot be identified - jakarta.faces - FactoryFinder - - jakarta.faces.FacesException - - - - JSF:JAVADOC:14 - This method will store the argument factoryName/implName mapping in such a way that #getFactory will find this mapping when searching for a match. This method has no effect if getFactory() has already been called looking for a factory for this factoryName. This method can be used by implementations to store a factory mapping while parsing the Faces configuration file - jakarta.faces - FactoryFinder - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:15 - if factoryName does not identify a standard JavaServer Faces factory name - jakarta.faces - FactoryFinder - - - java.lang.String - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:16 - if factoryname is null - jakarta.faces - FactoryFinder - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:17 - Register a new mapping of behavior id to the name of the corresponding Behavior class. This allows subsequent calls to createBehavior() to serve as a factory for Behavior instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:18 - if behaviorId or behaviorClass is null - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:19 - Register a new mapping of component type to the name of the corresponding UIComponent class. This allows subsequent calls to createComponent() to serve as a factory for UIComponent instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:20 - if componentType or componentClass is null - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:21 - Register a new mapping of converter id to the name of the corresponding Converter class. This allows subsequent calls to createConverter() to serve as a factory for Converter instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:22 - if converterId or converterClass is null - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:23 - Register a new converter class that is capable of performing conversions for the specified target class. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.String - - - - - JSF:JAVADOC:24 - if targetClass or converterClass is null - jakarta.faces.application - Application - - - java.lang.Class - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:26 - Provide a way for Faces applications to register an ELContextListener that will be notified on creation of ELContext instances. This listener will be called once per request. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - ELContextListener - - - - - JSF:JAVADOC:27 - Cause an the argument resolver to be added to the resolver chain as specified in section JSF.5.5.1 of the JavaServer Faces Specification. It is not possible to remove an ELResolver registered with this method, once it has been registered. It is illegal to register an ELResolver after the application has received any requests from the client. If an attempt is made to register a listener after that time, an IllegalStateException must be thrown. This restriction is in place to allow the JSP container to optimize for the common case where no additional ELResolvers are in the chain, aside from the standard ones. It is permissible to add ELResolvers before or after initialization to a CompositeELResolver that is already in the chain. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - ELResolver - - - - - JSF:JAVADOC:28 - Register a new mapping of validator id to the name of the corresponding Validator class. This allows subsequent calls to createValidator() to serve as a factory for Validator instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:29 - if validatorId or validatorClass is null - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:30 - - jakarta.faces.application - Application - - - - JSF:JAVADOC:31 - Instantiate and return a new Behavior instance of the class specified by a previous call to addBehavior() for the specified behavior id. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:32 - if the Behavior cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:33 - if behaviorId is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:34 - Instantiate and return a new UIComponent instance of the class specified by a previous call to addComponent() for the specified component type. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or ResourceDependency must be taken on the component, before it is returned from this method. This variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to be returned for any of the afore mentioned annotations. Such inspection is the province of #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, String, String). - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:35 - if a UIComponent of the specified type cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:36 - if componentType is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:37 - Wrap the argument componentBinding in an implementation of ValueExpression and call through to #createComponent(jakarta.el.ValueExpression,jakarta.faces.context.FacesContext,java.lang.String). - jakarta.faces.application - Application - - - jakarta.faces.el.ValueBinding - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:38 - if a UIComponent cannot be created - jakarta.faces.application - Application - - - jakarta.faces.el.ValueBinding - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:39 - if any parameter is null - jakarta.faces.application - Application - - - jakarta.faces.el.ValueBinding - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:40 - Call the getValue() method on the specified ValueExpression. If it returns a UIComponent instance, return it as the value of this method. If it does not, instantiate a new UIComponent instance of the specified component type, pass the new component to the setValue() method of the specified ValueExpression, and return it. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or ResourceDependency must be taken on the component, before it is returned from this method. This variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to be returned for any of the afore mentioned annotations. Such inspection is the province of #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, String, String). - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:41 - if a UIComponent cannot be created - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:42 - if any parameter is null A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:43 - Like #createComponent(ValueExpression, FacesContext, String) except the Renderer for the component to be returned must be inspected for the annotations mentioned in #createComponent(ValueExpression, FacesContext, String) as specified in the documentation for that method. The Renderer instance to inspect must be obtained by calling FacesContext#getRenderKit and calling jakarta.faces.render.RenderKit#getRenderer on the result, passing the argument componentType as the first argument and the result of calling UIComponent#getFamily on the newly created component as the second argument. If no such Renderer can be found, a message must be logged with a helpful error message. Otherwise, UIComponent#setRendererType must be called on the newly created UIComponent instance, passing the argument rendererType as the argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:44 - if a UIComponent cannot be created - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:45 - if any of the parameters componentExpression, context, or componentType are null - jakarta.faces.application - Application - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:46 - Like #createComponent(String) except the Renderer for the component to be returned must be inspected for the annotations mentioned in #createComponent(ValueExpression, FacesContext, String) as specified in the documentation for that method. The Renderer instance to inspect must be obtained by calling FacesContext#getRenderKit and calling jakarta.faces.render.RenderKit#getRenderer on the result, passing the argument componentType as the first argument and the result of calling UIComponent#getFamily on the newly created component as the second argument. If no such Renderer can be found, a message must be logged with a helpful error message. Otherwise, UIComponent#setRendererType must be called on the newly created UIComponent instance, passing the argument rendererType as the argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:47 - if a UIComponent cannot be created - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:48 - if any of the parameters context, or componentType are null - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:50 - if a UIComponent from the Resource cannot be created - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - jakarta.faces.FacesException - - - - JSF:JAVADOC:51 - if any parameter is null - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - <code>NullPointerException</code> - - - - JSF:JAVADOC:52 - if unable, for any reason, to obtain a ViewDeclarationLanguage instance as described above. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.NullPointerException - - - - JSF:JAVADOC:53 - Instantiate and return a new Converter instance of the class specified by a previous call to addConverter() for the specified converter id. If the toLowerCase() of the String represenation of the value of the "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, passing the return from TimeZone.getDefault(). The argument converter must be inspected for the presence of the jakarta.faces.application.ResourceDependency annotation. If the ResourceDependency annotation is present, the action described in ResourceDependency must be taken. If the ResourceDependency annotation is not present, the argument converter must be inspected for the presence of the jakarta.faces.application.ResourceDependencies annotation. If the ResourceDependencies annotation is present, the action described in ResourceDependencies must be taken. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:54 - if the Converter cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:55 - if converterId is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:56 - Instantiate and return a new Converter instance of the class that has registered itself as capable of performing conversions for objects of the specified type. If no such Converter class can be identified, return null. To locate an appropriate Converter class, the following algorithm is performed, stopping as soon as an appropriate Converter class is found: Locate a Converter registered for the target class itself. Locate a Converter registered for interfaces that are implemented by the target class (directly or indirectly). Locate a Converter registered for the superclass (if any) of the target class, recursively working up the inheritance hierarchy. If the Converter has a single argument constructor that accepts a Class, instantiate the Converter using that constructor, passing the argument targetClass as the sole argument. Otherwise, simply use the zero-argument constructor. If the toLowerCase() of the String represenation of the value of the "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, passing the return from TimeZone.getDefault(). - jakarta.faces.application - Application - - - java.lang.Class - - - - - JSF:JAVADOC:57 - if the Converter cannot be created - jakarta.faces.application - Application - - - java.lang.Class - - jakarta.faces.FacesException - - - - JSF:JAVADOC:58 - if targetClass is null - jakarta.faces.application - Application - - - java.lang.Class - - java.lang.NullPointerException - - - - JSF:JAVADOC:59 - Call #getExpressionFactory then call ExpressionFactory#createMethodExpression, passing the given arguments, and wrap the result in a MethodBinding implementation, returning it. - jakarta.faces.application - Application - - - java.lang.String - java.lang.Class[] - - - - - JSF:JAVADOC:60 - if the specified ref has invalid syntax - jakarta.faces.application - Application - - - java.lang.String - java.lang.Class[] - - jakarta.faces.el.ReferenceSyntaxException - - - - JSF:JAVADOC:61 - if ref is null - jakarta.faces.application - Application - - - java.lang.String - java.lang.Class[] - - java.lang.NullPointerException - - - - JSF:JAVADOC:62 - Instantiate and return a new Validator instance of the class specified by a previous call to addValidator() for the specified validator id. The argument validator must be inspected for the presence of the jakarta.faces.application.ResourceDependency annotation. If the ResourceDependency annotation is present, the action described in ResourceDependency must be taken. If the ResourceDependency annotation is not present, the argument validator must be inspected for the presence of the jakarta.faces.application.ResourceDependencies annotation. If the ResourceDependencies annotation is present, the action described in ResourceDependencies must be taken. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:63 - if a Validator of the specified id cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:64 - if validatorId is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:65 - Call #getExpressionFactory then call ExpressionFactory#createValueExpression, passing the argument ref, Object.class for the expectedType, and null, for the fnMapper. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:66 - if the specified ref has invalid syntax - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.el.ReferenceSyntaxException - - - - JSF:JAVADOC:67 - if ref is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:68 - Get a value by evaluating an expression. Call #getExpressionFactory then call ExpressionFactory#createValueExpression passing the argument expression and expectedType. Call FacesContext#getELContext and pass it to ValueExpression#getValue, returning the result. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - - - - JSF:JAVADOC:69 - - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - ELException - - - - JSF:JAVADOC:71 - Return an Iterator over the set of currently registered behavior ids for this Application. - jakarta.faces.application - Application - - - - JSF:JAVADOC:72 - Return an Iterator over the set of currently defined component types for this Application. - jakarta.faces.application - Application - - - - JSF:JAVADOC:73 - Return an Iterator over the set of currently registered converter ids for this Application. - jakarta.faces.application - Application - - - - JSF:JAVADOC:74 - Return an Iterator over the set of Class instances for which Converter classes have been explicitly registered. - jakarta.faces.application - Application - - - - JSF:JAVADOC:75 - Return the default Locale for this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - JSF:JAVADOC:76 - Return the renderKitId to be used for rendering this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - JSF:JAVADOC:77 - Return an immutable Map over the set of currently registered default validator IDs and their class name for this Application. An implementation is provided that returns Collections.emptyMap so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - JSF:JAVADOC:78 - If no calls have been made to #addELContextListener, this method must return an empty array. Otherwise, return an array representing the list of listeners added by calls to #addELContextListener. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - JSF:JAVADOC:79 - Return the singleton ELResolver instance to be used for all EL resolution. This is actually an instance of jakarta.el.CompositeELResolver that must contain the following ELResolver instances in the following order: ELResolver instances declared using the element in the application configuration resources. An implementation that wraps the head of the legacy VariableResolver chain, as per section VariableResolver ChainWrapper in Chapter JSF.5 in the spec document. An implementation that wraps the head of the legacy PropertyResolver chain, as per section PropertyResolver ChainWrapper in Chapter JSF.5 in the spec document. Any ELResolver instances added by calls to #addELResolver. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - - JSF:JAVADOC:80 - Return the ExpressionFactory instance for this application. This instance is used by the convenience method #evaluateExpressionGet. The implementation must return the ExpressionFactory from the JSP container by calling JspFactory.getDefaultFactory().getJspApplicationContext(servletContext).getExpressionFactory(). An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - JSF:JAVADOC:81 - Return the fully qualified class name of the ResourceBundle to be used for JavaServer Faces messages for this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - JSF:JAVADOC:82 - Return the NavigationHandler instance that will be passed the outcome returned by any invoked application action for this web application. If not explicitly set, a default implementation must be provided that performs the functions described in the NavigationHandler class description. - jakarta.faces.application - Application - - - - JSF:JAVADOC:83 - Return the project stage for the currently running application instance. The default value is ProjectStage#Production The implementation of this method must perform the following algorithm or an equivalent with the same end result to determine the value to return. If the value has already been determined by a previous call to this method, simply return that value. Look for a JNDI environment entry under the key given by the value of ProjectStage#PROJECT_STAGE_JNDI_NAME (return type of java.lang.String). If found, continue with the algorithm below, otherwise, look for an entry in the initParamMap of the ExternalContext from the current FacesContext with the key given by the value of ProjectStage#PROJECT_STAGE_PARAM_NAME If a value is found, see if an enum constant can be obtained by calling ProjectStage.valueOf(), passing the value from the initParamMap. If this succeeds without exception, save the value and return it. If not found, or any of the previous attempts to discover the enum constant value have failed, log a descriptive error message, assign the value as ProjectStage.Production and return it. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - - JSF:JAVADOC:84 - Return a PropertyResolver instance that wraps the ELResolver instance that Faces provides to the unified EL for the resolution of expressions that appear programmatically in an application. Note that this no longer returns the default PropertyResolver since that class is now a no-op that aids in allowing custom PropertyResolvers to affect the EL resolution process. - jakarta.faces.application - Application - - - - JSF:JAVADOC:85 - Find a ResourceBundle as defined in the application configuration resources under the specified name. If a ResourceBundle was defined for the name, return an instance that uses the locale of the current jakarta.faces.component.UIViewRoot. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:86 - if a bundle was defined, but not resolvable - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:87 - if ctx == null || name == null - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:88 - Return the singleton, stateless, thread-safe ResourceHandler for this application. The JSF implementation must support the following techniques for declaring an alternate implementation of ResourceHandler. The ResourceHandler implementation is declared in the application configuration resources by giving the fully qualified class name as the value of the element within the element. In all of the above cases, the runtime must employ the decorator pattern as for every other pluggable artifact in JSF. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - - JSF:JAVADOC:89 - Return the StateManager instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. If not explicitly set, a default implementation must be provided that performs the functions described in the StateManager description in the JavaServer Faces Specification. - jakarta.faces.application - Application - - - - JSF:JAVADOC:90 - Return an Iterator over the supported Locales for this appication. - jakarta.faces.application - Application - - - - JSF:JAVADOC:91 - Return an Iterator over the set of currently registered validator ids for this Application. - jakarta.faces.application - Application - - - - JSF:JAVADOC:92 - Return the VariableResolver that wraps the ELResolver instance that Faces provides to the unified EL for the resolution of expressions that appear programmatically in an application. The implementation of the VariableResolvermust pass null as the base argument for any methods invoked on the underlying ELResolver. Note that this method no longer returns the default VariableResolver, since that class now is a no-op that aids in allowing custom VariableResolvers to affect the EL resolution process. - jakarta.faces.application - Application - - - - JSF:JAVADOC:93 - Return the ViewHandler instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. If not explicitly set, a default implementation must be provided that performs the functions described in the ViewHandler description in the JavaServer Faces Specification. - jakarta.faces.application - Application - - - - JSF:JAVADOC:94 - If jakarta.faces.context.FacesContext#isProcessingEvents() is true and there are one or more listeners for events of the type represented by systemEventClass, call those listeners, passing source as the source of the event. The implementation should be as fast as possible in determining whether or not a listener for the given systemEventClass and source has been installed, and should return immediately once such a determination has been made. The implementation of publishEvent must honor the requirements stated in #subscribeToEvent regarding the storage and retrieval of listener instances. Specifically, if #subscribeToEvent(Class,Class,SystemEventListener) was called, the sourceClass argument must match exactly the Class of the source argument in the call to publishEvent(). The implementation must not do any inheritance hierarachy inspection when looking for a match between the sourceClass passed to #subscribeToEvent(Class,Class,SystemEventListener) and the sourceClass passed to publishEvent() in order to find any listeners to which the event should be published. In the case where the Class of the source argument does not match the Class of the sourceClass used when the listener was subscribed using subscribeToEvent(), #publishEvent(FacesContext,Class,Class,Object) can be used to provide the Class used to perform the listener lookup and match. The default implementation must implement an algorithm semantically equivalent to the following to locate listener instances and to invoke them. If the source argument implements jakarta.faces.event.SystemEventListenerHolder, call jakarta.faces.event.SystemEventListenerHolder#getListenersForEventClass on it, passing the systemEventClass argument. If the list is not empty, perform algorithm traverseListenerList on the list. If any view level listeners have been installed by previous calls to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the jakarta.faces.component.UIViewRoot, perform algorithm traverseListenerList on the list of listeners for that event installed on the UIViewRoot. If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. If the act of invoking the processListener method causes an jakarta.faces.event.AbortProcessingException to be thrown, processing of the listeners must be aborted, no further processing of the listeners for this event must take place, and the exception must be logged with Level.SEVERE. Algorithm traverseListenerList: For each listener in the list, Call jakarta.faces.event.SystemEventListener#isListenerForSource, passing the source argument. If this returns false, take no action on the listener. Otherwise, if the event to be passed to the listener instances has not yet been constructed, construct the event, passing source as the argument to the one-argument constructor that takes an Object. This same event instance must be passed to all listener instances. Call jakarta.faces.event.SystemEvent#isAppropriateListener, passing the listener instance as the argument. If this returns false, take no action on the listener. Call jakarta.faces.event.SystemEvent#processListener, passing the listener instance. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Object - - - - - JSF:JAVADOC:95 - if either context, systemEventClass or source is null - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:96 - This method functions exactly like #publishEvent(FacesContext,Class,Object), except the run-time must use the argument sourceBaseType to find the matching listener instead of using the Class of the source argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Class - java.lang.Object - - - - - JSF:JAVADOC:98 - Remove the argument listener from the list of ELContextListeners. If listener is null, no exception is thrown and no action is performed. If listener is not in the list, no exception is thrown and no action is performed. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - ELContextListener - - - - - JSF:JAVADOC:99 - Set the default ActionListener to be registered for all jakarta.faces.component.ActionSource components. - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:100 - if listener is null - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:101 - Set the default Locale for this application. - jakarta.faces.application - Application - - - java.util.Locale - - - - - JSF:JAVADOC:102 - if locale is null - jakarta.faces.application - Application - - - java.util.Locale - - java.lang.NullPointerException - - - - JSF:JAVADOC:103 - Set the renderKitId to be used to render this application. Unless the client has provided a custom ViewHandler that supports the use of multiple jakarta.faces.render.RenderKit instances in the same application, this method must only be called at application startup, before any Faces requests have been processed. This is a limitation of the current Specification, and may be lifted in a future release. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:104 - Set the fully qualified class name of the ResourceBundle to be used for JavaServer Faces messages for this application. See the JavaDocs for the java.util.ResourceBundle class for more information about the syntax for resource bundle names. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:105 - if bundle is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:106 - Set the NavigationHandler instance that will be passed the outcome returned by any invoked application action for this web application. - jakarta.faces.application - Application - - - jakarta.faces.application.NavigationHandler - - - - - JSF:JAVADOC:107 - if handler is null - jakarta.faces.application - Application - - - jakarta.faces.application.NavigationHandler - - java.lang.NullPointerException - - - - JSF:JAVADOC:108 - Set the PropertyResolver instance that will be utilized to resolve method and value bindings. This method is now deprecated but the implementation must cause the argument to be set as the head of the legacy PropertyResolver chain, replacing any existing value that was set from the application configuration resources. It is illegal to call this method after the application has received any requests from the client. If an attempt is made to register a listener after that time it must have no effect. - jakarta.faces.application - Application - - - jakarta.faces.el.PropertyResolver - - - - - JSF:JAVADOC:109 - if resolver is null - jakarta.faces.application - Application - - - jakarta.faces.el.PropertyResolver - - java.lang.NullPointerException - - - - JSF:JAVADOC:110 - if called after the first request to the jakarta.faces.webapp.FacesServlet has been serviced. - jakarta.faces.application - Application - - - jakarta.faces.el.PropertyResolver - - java.lang.IllegalStateException - - - - JSF:JAVADOC:111 - Set the ResourceHandler instance that will be utilized for rendering the markup for resources, and for satisfying client requests to serve up resources. - jakarta.faces.application - Application - - - jakarta.faces.application.ResourceHandler - - - - - JSF:JAVADOC:112 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - Application - - - jakarta.faces.application.ResourceHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:113 - if resourceHandler is null - jakarta.faces.application - Application - - - jakarta.faces.application.ResourceHandler - - java.lang.NullPointerException - - - - JSF:JAVADOC:114 - Set the StateManager instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. - jakarta.faces.application - Application - - - jakarta.faces.application.StateManager - - - - - JSF:JAVADOC:115 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - Application - - - jakarta.faces.application.StateManager - - java.lang.IllegalStateException - - - - JSF:JAVADOC:116 - if manager is null - jakarta.faces.application - Application - - - jakarta.faces.application.StateManager - - java.lang.NullPointerException - - - - JSF:JAVADOC:117 - Set the Locale instances representing the supported Locales for this application. - jakarta.faces.application - Application - - - java.util.Collection - - - - - JSF:JAVADOC:118 - if the argument newLocales is null. - jakarta.faces.application - Application - - - java.util.Collection - - java.lang.NullPointerException - - - - JSF:JAVADOC:119 - Set the VariableResolver instance that will be consulted to resolve method and value bindings. This method is now deprecated but the implementation must cause the argument to be set as the head of the legacy VariableResolver chain, replacing any existing value that was set from the application configuration resources. It is illegal to call this method after the application has received any requests from the client. If an attempt is made to register a listener after that time it must have no effect. - jakarta.faces.application - Application - - - jakarta.faces.el.VariableResolver - - - - - JSF:JAVADOC:120 - if resolver is null - jakarta.faces.application - Application - - - jakarta.faces.el.VariableResolver - - java.lang.NullPointerException - - - - JSF:JAVADOC:121 - if called after the first request to the jakarta.faces.webapp.FacesServlet has been serviced. - jakarta.faces.application - Application - - - jakarta.faces.el.VariableResolver - - java.lang.IllegalStateException - - - - JSF:JAVADOC:122 - Set the ViewHandler instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. - jakarta.faces.application - Application - - - jakarta.faces.application.ViewHandler - - - - - JSF:JAVADOC:123 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - Application - - - jakarta.faces.application.ViewHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:124 - if handler is null - jakarta.faces.application - Application - - - jakarta.faces.application.ViewHandler - - java.lang.NullPointerException - - - - JSF:JAVADOC:126 - if any combination of systemEventClass, or listener are null. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:127 - Install the listener instance referenced by argument listener into application as a listener for events of type systemEventClass. The default implementation simply calls through to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) passing null as the sourceClass argument A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:128 - if any combination of systemEventClass, or listener are null. - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:130 - if any combination of context, systemEventClass, or listener are null. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:132 - if any combination of context, systemEventClass, or listener are null. http://java.sun.com/javaee/javaserverfaces/reference/api/index.html - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:133 - - jakarta.faces.application - ApplicationFactory - - - - JSF:JAVADOC:134 - Create (if needed) and return an Application instance for this web application. - jakarta.faces.application - ApplicationFactory - - - - JSF:JAVADOC:135 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.application - ApplicationFactory - - - - JSF:JAVADOC:136 - Replace the Application instance that will be returned for this web application. - jakarta.faces.application - ApplicationFactory - - - jakarta.faces.application.Application - - - - - JSF:JAVADOC:137 - if application is null. - jakarta.faces.application - ApplicationFactory - - - jakarta.faces.application.Application - - java.lang.NullPointerException - - - - JSF:JAVADOC:138 - The default behavior of this method is to call Application#addBehavior(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:139 - The default behavior of this method is to call Application#addComponent(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:140 - The default behavior of this method is to call Application#addConverter(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:141 - The default behavior of this method is to call Application#addConverter(Class, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.String - - - - - JSF:JAVADOC:142 - The default behavior of this method is to call Application#addDefaultValidatorId(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:143 - The default behavior of this method is to call Application#addELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - ELContextListener - - - - - JSF:JAVADOC:144 - The default behavior of this method is to call Application#addELResolver(jakarta.el.ELResolver) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - ELResolver - - - - - JSF:JAVADOC:145 - The default behavior of this method is to call Application#addValidator(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:146 - - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:147 - The default behavior of this method is to call Application#createBehavior(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:148 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:149 - The default behavior of this method is to call Application#createComponent(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:150 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:153 - The default behavior of this method is to call Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:154 - - jakarta.faces.application - ApplicationWrapper - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:155 - The default behavior of this method is to call Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:156 - The default behavior of this method is to call Application#createComponent(jakarta.faces.context.FacesContext, String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:157 - The default behavior of this method is to call Application#createComponent(jakarta.faces.context.FacesContext, Resource) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:158 - The default behavior of this method is to call Application#createConverter(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:159 - The default behavior of this method is to call Application#createConverter(Class) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - - - - - JSF:JAVADOC:162 - The default behavior of this method is to call Application#createValidator(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:163 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:164 - The default behavior of this method is to call Application#createValueBinding(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:165 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.el.ReferenceSyntaxException - - - - JSF:JAVADOC:168 - The default behavior of this method is to call Application#getActionListener on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:169 - The default behavior of this method is to call Application#getBehaviorIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:170 - The default behavior of this method is to call Application#getComponentTypes on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:171 - The default behavior of this method is to call Application#getConverterIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:172 - The default behavior of this method is to call Application#getConverterTypes on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:173 - The default behavior of this method is to call Application#getDefaultLocale on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:174 - The default behavior of this method is to call Application#getDefaultRenderKitId on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:175 - The default behavior of this method is to call Application#getDefaultValidatorInfo on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:176 - The default behavior of this method is to call Application#getELContextListeners on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:177 - The default behavior of this method is to call Application#getELResolver on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:178 - The default behavior of this method is to call Application#getExpressionFactory on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:179 - The default behavior of this method is to call Application#getMessageBundle on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:180 - The default behavior of this method is to call Application#getNavigationHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:181 - The default behavior of this method is to call Application#getProjectStage on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:183 - The default behavior of this method is to call Application#getResourceBundle(jakarta.faces.context.FacesContext, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:184 - The default behavior of this method is to call Application#getResourceHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:185 - The default behavior of this method is to call Application#getStateManager on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:186 - The default behavior of this method is to call Application#getSupportedLocales on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:187 - The default behavior of this method is to call Application#getValidatorIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:189 - The default behavior of this method is to call Application#getViewHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:190 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:191 - The default behavior of this method is to call Application#publishEvent(jakarta.faces.context.FacesContext, Class, Object) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Object - - - - - JSF:JAVADOC:192 - The default behavior of this method is to call Application#publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Class - java.lang.Object - - - - - JSF:JAVADOC:193 - The default behavior of this method is to call Application#removeELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - ELContextListener - - - - - JSF:JAVADOC:194 - The default behavior of this method is to call Application#setActionListener(jakarta.faces.event.ActionListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:195 - The default behavior of this method is to call Application#setDefaultLocale(java.util.Locale) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.util.Locale - - - - - JSF:JAVADOC:196 - The default behavior of this method is to call Application#setDefaultRenderKitId(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:197 - The default behavior of this method is to call Application#setMessageBundle(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - JSF:JAVADOC:198 - The default behavior of this method is to call Application#setNavigationHandler(NavigationHandler) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.NavigationHandler - - - - - JSF:JAVADOC:200 - The default behavior of this method is to call Application#setResourceHandler(ResourceHandler) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ResourceHandler - - - - - JSF:JAVADOC:201 - The default behavior of this method is to call Application#setStateManager(StateManager) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.StateManager - - - - - JSF:JAVADOC:202 - The default behavior of this method is to call Application#setSupportedLocales(java.util.Collection) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.util.Collection - - - - - JSF:JAVADOC:204 - The default behavior of this method is to call Application#setViewHandler(ViewHandler) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ViewHandler - - - - - JSF:JAVADOC:205 - The default behavior of this method is to call Application#subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:206 - The default behavior of this method is to call Application#subscribeToEvent(Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:207 - The default behavior of this method is to call Application#unsubscribeFromEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:208 - The default behavior of this method is to call Application#unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:209 - - jakarta.faces.application - ConfigurableNavigationHandler - - - - JSF:JAVADOC:210 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:211 - if context is null - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:212 - Return a Map where the keys are values and the values are Set where each element in the Set is a NavigationCase that applies to that . The implementation must support live modifications to this Map. - jakarta.faces.application - ConfigurableNavigationHandler - - - - JSF:JAVADOC:214 - if this method is called after this instance has been released - jakarta.faces.application - ConfigurableNavigationHandler - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:215 - Construct a new jakarta.faces.application.FacesMessage with no initial values. The severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:216 - Construct a new jakarta.faces.application.FacesMessage with just a summary. The detail is null, the severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - JSF:JAVADOC:217 - Construct a new jakarta.faces.application.FacesMessage with the specified initial values. The severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:218 - Construct a new FacesMessage with the specified initial values. - jakarta.faces.application - FacesMessage - - - jakarta.faces.application.FacesMessage.FacesMessage.Severity - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:219 - Return the localized detail text. If no localized detail text has been defined for this message, return the localized summary text instead. - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:220 - Return the severity level. - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:221 - Return the localized summary text. - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:222 - - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:223 - Marks this message as having been rendered to the client. - jakarta.faces.application - FacesMessage - - - - JSF:JAVADOC:224 - Set the localized detail text. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - JSF:JAVADOC:225 - Set the severity level. - jakarta.faces.application - FacesMessage - - - jakarta.faces.application.FacesMessage.FacesMessage.Severity - - - - - JSF:JAVADOC:226 - if the specified severity level is not one of the supported values - jakarta.faces.application - FacesMessage - - - jakarta.faces.application.FacesMessage.FacesMessage.Severity - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:227 - Set the localized summary text. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - JSF:JAVADOC:228 - Compare this jakarta.faces.application.FacesMessage.Severity instance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. - jakarta.faces.application - FacesMessage.Severity - - - java.lang.Object - - - - - JSF:JAVADOC:229 - Return the ordinal value of this FacesMessage.Severity instance. - jakarta.faces.application - FacesMessage.Severity - - - - JSF:JAVADOC:230 - Return a String representation of this FacesMessage.Severity instance. - jakarta.faces.application - FacesMessage.Severity - - - - JSF:JAVADOC:231 - - jakarta.faces.application - NavigationCase - - - java.lang.Object - - - - - JSF:JAVADOC:232 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:233 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:234 - Construct an absolute URL suitable for a bookmarkable link to this NavigationCase instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the url. This URL may include view parameters specified as metadata within the view. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:235 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:237 - exceptions encountered during the process of evaluating the expression or obtaining its value. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - any - - - - JSF:JAVADOC:238 - Return the for this - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:239 - Return the for this - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:240 - Return the of the inside which this is nested. - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:241 - Return the parameters to be included for navigation cases requiring a redirect. If no parameters are defined, null will be returned. The keys in the Map are parameter names. For each key, the corresponding value is a List of unconverted values. - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:242 - Construct an absolute URL suitable for a "redirect" to this NavigationCase instance using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:243 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:244 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:245 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:246 - Evaluates the for this - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:247 - Test if this navigation case has an associated element. - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:248 - - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:249 - Return the value for this . This will be true if the view parametets should be encoded into the redirect URL (only applies to redirect case) - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:250 - Return the value for this . This will be true if the new view should be navigated to via a jakarta.faces.context.ExternalContext#redirect(String) - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:251 - Construct a new NavigationCase based on the provided arguments. See section JSF.7.4.2 for how a NavigationCase is used by the standard ConfigurableNavigationHandler - jakarta.faces.application - NavigationCase - - - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.util.Map - boolean - boolean - - - - - JSF:JAVADOC:252 - - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:253 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:254 - if context is null - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:255 - - jakarta.faces.application - NavigationHandler - - - - JSF:JAVADOC:256 - - jakarta.faces.application - ProjectStage - - - java.lang.String - - - - - JSF:JAVADOC:257 - - jakarta.faces.application - ProjectStage - - - - JSF:JAVADOC:258 - Return the MIME content-type for this resource. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:259 - If the current request is a resource request, (that is, ResourceHandler#isResourceRequest returns true), return an InputStream containing the bytes of the resource. Otherwise, throw an IOException. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:260 - if the current request is not a resource request. - jakarta.faces.application - Resource - - java.io.IOException - - - - JSF:JAVADOC:261 - Return the libraryName for this resource. May be null. The libraryName for a resource is an optional String that indicates membership in a "resource library". All resources with the same libraryName belong to the same "resource library". The "resource library" concept allows disambiguating resources that have the same resourceName. See ResourceHandler for more information. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:263 - Return the resourceName for this resource. Will never be null. All Resource instances must have a resourceName. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:264 - Returns a mutable Map whose entries will be sent as response headers during ResourceHandler#handleResourceRequest. The entries in this map must not persist beyond the scope of a single request. Any modifications made to the map after the resource has been served will be ignored by the run-time. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:265 - Return an actual URL instance that refers to this resource instance. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:266 - - jakarta.faces.application - Resource - - - - JSF:JAVADOC:267 - Set the MIME content-type for this resource. The default implementation performs no validation on the argument. - jakarta.faces.application - Resource - - - java.lang.String - - - - - JSF:JAVADOC:268 - Set the libraryName for this resource. - jakarta.faces.application - Resource - - - java.lang.String - - - - - JSF:JAVADOC:269 - Set the resourceName for this resource. - jakarta.faces.application - Resource - - - java.lang.String - - - - - JSF:JAVADOC:270 - if argument resourceName is null. - jakarta.faces.application - Resource - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:271 - Call through to #getRequestPath and return the result. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:273 - - jakarta.faces.application - ResourceDependencies - - - - JSF:JAVADOC:274 - The libraryName in which the resource pointed to by this ResourceDependency resides. If not specified, defaults to the empty string. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - JSF:JAVADOC:275 - The resourceName of the resource pointed to by this ResourceDependency. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - JSF:JAVADOC:276 - The value given for this attribute will be passed as the "target" argument to jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.String). If this attribute is specified, jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) must be called instead, as described above. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - JSF:JAVADOC:278 - if resourceName is null. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:280 - if resourceName is null - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - - <code>NullPointerException</code> - - - - JSF:JAVADOC:282 - if resourceName is null. - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - java.lang.String - - <code>NullPointerException</code> - - - - JSF:JAVADOC:283 - Return the renderer-type for a jakarta.faces.render.Renderer that is capable of rendering this resource. The default implementation must return values according to the following table. If no renderer-type can be determined, null must be returned. example resource name renderer-type mycomponent.js jakarta.faces.resource.Script mystyle.css jakarta.faces.resource.Stylesheet - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - JSF:JAVADOC:284 - This method specifies the contract for satisfying resource requests. This method is called from jakarta.faces.webapp.FacesServlet#service after that method determines the current request is a resource request by calling #isResourceRequest. Thus, handleResourceRequest may assume that the current request is a resource request. The default implementation must implement an algorithm semantically identical to the following algorithm. For discussion, in all cases when a status code is to be set, this spec talks only using the Servlet API, but it is understood that in a portlet environment the appropriate equivalent API must be used. If the resourceIdentifier ends with any of the extensions listed in the value of the #RESOURCE_EXCLUDES_PARAM_NAME init parameter, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Extract the resourceName from the resourceIdentifier by taking the substring of resourceIdentifier that starts at #RESOURCE_IDENTIFIER.length() + 1 and goes to the end of resourceIdentifier. If no resourceName can be extracted, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Extract the libraryName from the request by looking in the request parameter map for an entry under the key "ln", without the quotes. If found, use its value as the libraryName. If resourceName and libraryName are present, call #createResource(String, String) to create the Resource. If only resourceName is present, call #createResource(String) to create the Resource. If the Resource cannot be successfully created, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Call Resource#userAgentNeedsUpdate. If this method returns false, HttpServletRequest.SC_NOT_MODIFIED must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Pass the result of Resource#getContentType to HttpServletResponse.setContentType. Call Resource#getResponseHeaders. For each entry in this Map, call HttpServletResponse.setHeader(), passing the key as the first argument and the value as the second argument. Call Resource#getInputStream and serve up the bytes of the resource to the response. Call HttpServletResponse.setContentLength() passing the byte count of the resource. If an IOException is thrown during any of the previous steps, log a descriptive, localized message, including the resourceName and libraryName (if present). Then, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. In all cases in this method, any streams, channels, sockets, or any other IO resources must be closed before this method returns. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:285 - - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:286 - Return true if the current request is a resource request. This method is called by jakarta.faces.webapp.FacesServlet#service to determine if this request is a view request or a resource request. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:288 - - jakarta.faces.application - ResourceHandler - - - - JSF:JAVADOC:289 - The default behavior of this method is to call ResourceHandler#createResource(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:290 - The default behavior of this method is to call ResourceHandler#createResource(String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:291 - The default behavior of this method is to call ResourceHandler#createResource(String, String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:292 - The default behavior of this method is to call ResourceHandler#getRendererTypeForResourceName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:293 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ResourceHandlerWrapper - - - - JSF:JAVADOC:294 - The default behavior of this method is to call ResourceHandler#handleResourceRequest(jakarta.faces.context.FacesContext) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:295 - - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:296 - The default behavior of this method is to call ResourceHandler#isResourceRequest(jakarta.faces.context.FacesContext) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:297 - The default behavior of this method is to call ResourceHandler#libraryExists(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:298 - - jakarta.faces.application - ResourceHandlerWrapper - - - - JSF:JAVADOC:299 - The default behavior of this method is to call Resource#getInputStream on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:300 - - jakarta.faces.application - ResourceWrapper - - java.io.IOException - - - - JSF:JAVADOC:301 - The default behavior of this method is to call Resource#getRequestPath on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:302 - The default behavior of this method is to call Resource#getResponseHeaders on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:303 - The default behavior of this method is to call Resource#getURL on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:304 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:305 - - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:306 - The default behavior of this method is to call Resource#userAgentNeedsUpdate on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:307 - Convenience method to return the view state as a String with no RenderKit specific markup. This default implementation of this method will call #saveView(jakarta.faces.context.FacesContext) and passing the result to and returning the resulting value from ResponseStateManager#getViewState(jakarta.faces.context.FacesContext, Object). - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:308 - - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:309 - if context is null. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:311 - if renderKitId is null. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:312 - Return the tree structure and component state information for the view contained in the specified FacesContext instance as an object of type StateManager.SerializedView. If there is no state information to be saved, return null instead. Components may opt out of being included in the serialized view by setting their transient property to true. This must cause the component itself, as well as all of that component's children and facets, to be omitted from the saved tree structure and component state information. This method must also enforce the rule that, for components with non-null ids, all components that are descendants of the same nearest NamingContainer must have unique identifiers. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:313 - if more than one component or facet within the same NamingContainer in this view has the same non-null component id - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:315 - if more than one component or facet within the same NamingContainer in this view has the same non-null component id - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:316 - - jakarta.faces.application - StateManager - - - - JSF:JAVADOC:317 - Save the state represented in the specified state Object instance, in an implementation dependent manner. This method will typically simply delegate the actual writing to the writeState() method of the ResponseStateManager instance provided by the RenderKit being used to render this view. This method assumes that the caller has positioned the ResponseWriter at the correct position for the saved state to be written. For backwards compatability with existing StateManager implementations, the default implementation of this method checks if the argument is an instance of Object [] of length greater than or equal to two. If so, it creates a SerializedView instance with the tree structure coming from element zero and the component state coming from element one and calls through to #writeState(jakarta.faces.context.FacesContext,jakarta.faces.application.StateManager.SerializedView). If not, does nothing. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:318 - - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - JSF:JAVADOC:319 - Save the state represented in the specified SerializedView isntance, in an implementation dependent manner. This method must consult the context initialization parameter named by the symbolic constant StateManager.STATE_SAVING_METHOD_PARAM_NAME to determine whether state should be saved on the client or the server. If not present, client side state saving is assumed. If the init parameter indicates that client side state saving should be used, this method must delegate the actual writing to the writeState() method of the ResponseStateManager instance provided by the RenderKit being used to render this view. This method assumes that the caller has positioned the ResponseWriter at the correct position for the saved state to be written. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - - - - JSF:JAVADOC:320 - - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - java.io.IOException - - - - JSF:JAVADOC:321 - - jakarta.faces.application - StateManager.SerializedView - - - - JSF:JAVADOC:322 - - jakarta.faces.application - StateManager.SerializedView - - - - JSF:JAVADOC:323 - - jakarta.faces.application - StateManager.SerializedView - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:324 - The default behavior of this method is to call StateManager#getViewState(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:325 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - StateManagerWrapper - - - - JSF:JAVADOC:326 - The default behavior of this method is to call StateManager#isSavingStateInClient(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:327 - The default behavior of this method is to call StateManager#restoreView(jakarta.faces.context.FacesContext, String, String) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:328 - The default behavior of this method is to call StateManager#saveSerializedView(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:329 - The default behavior of this method is to call StateManager#saveView(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:330 - - jakarta.faces.application - StateManagerWrapper - - - - JSF:JAVADOC:331 - The default behavior of this method is to call StateManager#writeState(jakarta.faces.context.FacesContext, java.lang.Object) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:332 - - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - JSF:JAVADOC:333 - The default behavior of this method is to call StateManager#writeState(jakarta.faces.context.FacesContext, jakarta.faces.application.StateManager.SerializedView) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - - - - JSF:JAVADOC:334 - - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - java.io.IOException - - - - JSF:JAVADOC:335 - Return the message for this exception prepended with the view identifier if the view identifier is not null, otherwise, return the message. - jakarta.faces.application - ViewExpiredException - - - - JSF:JAVADOC:336 - Return the view identifier of this exception, or null if the view identifier is nonexistent or unknown. - jakarta.faces.application - ViewExpiredException - - - - JSF:JAVADOC:337 - Construct a new exception with no detail message or root cause. - jakarta.faces.application - ViewExpiredException - - - - JSF:JAVADOC:338 - Construct a new exception with the specified view identifier. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - - - - - JSF:JAVADOC:339 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:340 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.application - ViewExpiredException - - - java.lang.Throwable - java.lang.String - - - - - JSF:JAVADOC:341 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - java.lang.Throwable - java.lang.String - - - - - JSF:JAVADOC:342 - Returns the correct character encoding to be used for this request. The following algorithm is employed. Examine the Content-Type request header. If it has a charset parameter, extract it and return that as the encoding. If no charset parameter was found, check for the existence of a session by calling ExternalContext#getSession(boolean) passing false as the argument. If that method returns true, get the session Map by calling ExternalContext#getSessionMap and look for a value under the key given by the value of the symbolic constant ViewHandler#CHARACTER_ENCODING_KEY. If present, return the value, converted to String. Otherwise, return null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:343 - Returns an appropriate Locale to use for this and subsequent requests for the current client. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:344 - if context is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:345 - Return an appropriate renderKitId for this and subsequent requests from the current client. It is an error for this method to return null. The default return value is jakarta.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:346 - if context is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:347 - Create and return a new UIViewRoot instance initialized with information from the argument FacesContext and viewId. Locate the ViewDeclarationLanguage implementation for the VDL used in the view. The argument viewId must be converted to a physical viewId that can refer to an actual resource suitable for use by the ViewDeclarationLanguage ViewDeclarationLanguage#createView, which must be called by this method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:348 - if context is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:351 - if viewId is not valid for this ViewHandler, or does not start with "/". - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:352 - if context or viewId is null. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:355 - If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a request to the toExternalForm() of that URL will select the argument path for direct rendering. If the specified path starts with a slash, it must be treated as context relative; otherwise, it must be treated as relative to the action URL of the current view. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:356 - if viewId is not valid for this ViewHandler. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:357 - if context or path is null. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:358 - Return the ViewDeclarationLanguage instance used for this ViewHandler instance. The default implementation must use jakarta.faces.view.ViewDeclarationLanguageFactory#getViewDeclarationLanguage to obtain the appropriate ViewDeclarationLanguage implementation for the argument viewId. Any exceptions thrown as a result of invoking that method must not be swallowed. The default implementation of this method returns null. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:359 - Initialize the view for the request processing lifecycle. This method must be called at the beginning of the Restore View Phase of the Request Processing Lifecycle. It is responsible for performing any per-request initialization necessary to the operation of the lifycecle. The default implementation must perform the following actions. If ExternalContext#getRequestCharacterEncoding returns null, call #calculateCharacterEncoding and pass the result, if non-null, into the ExternalContext#setRequestCharacterEncoding method. If ExternalContext#getRequestCharacterEncoding returns non-null take no action. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:360 - if a problem occurs setting the encoding, such as the UnsupportedEncodingException thrown by the underlying Servlet or Portlet technology when the encoding is not supported. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:361 - Perform whatever actions are required to render the response view to the response object associated with the current FacesContext. Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage for the viewId of the argument viewToRender and call its ViewDeclarationLanguage#renderView method, returning the result and not swallowing any exceptions thrown by that method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:362 - if an input/output error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:363 - if a servlet error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - jakarta.faces.FacesException - - - - JSF:JAVADOC:364 - if context or viewToRender is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.lang.NullPointerException - - - - JSF:JAVADOC:365 - Perform whatever actions are required to restore the view associated with the specified FacesContext and viewId. It may delegate to the restoreView of the associated StateManager to do the actual work of restoring the view. If there is no available state for the specified viewId, return null. Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage for this viewId and call its ViewDeclarationLanguage#restoreView method, returning the result and not swallowing any exceptions thrown by that method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:366 - if context is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:367 - if a servlet error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:368 - - jakarta.faces.application - ViewHandler - - - - JSF:JAVADOC:369 - Take any appropriate action to either immediately write out the current state information (by calling StateManager#writeState, or noting where state information should later be written. This method must do nothing if the current request is an Ajax request. When responding to Ajax requests, the state is obtained by calling StateManager#getViewState and then written into the Ajax response during final encoding (jakarta.faces.component.UIViewRoot#encodeEnd. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:370 - if an input/output error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:371 - if context is null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:372 - The default behavior of this method is to call ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:373 - The default behavior of this method is to call ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:374 - The default behavior of this method is to call ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:375 - The default behavior of this method is to call ViewHandler#createView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:376 - The default behavior of this method is to call ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:377 - The default behavior of this method is to call ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:378 - The default behavior of this method is to call ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - JSF:JAVADOC:379 - The default behavior of this method is to call ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - JSF:JAVADOC:380 - The default behavior of this method is to call ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:381 - The default behavior of this method is to call ViewHandler#getViewDeclarationLanguage on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:382 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ViewHandlerWrapper - - - - JSF:JAVADOC:383 - The default behavior of this method is to call ViewHandler#initView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:384 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:385 - The default behavior of this method is to call ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:386 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:387 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - jakarta.faces.FacesException - - - - JSF:JAVADOC:388 - The default behavior of this method is to call ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:389 - - jakarta.faces.application - ViewHandlerWrapper - - - - JSF:JAVADOC:390 - The default behavior of this method is to call ViewHandler#writeState(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:391 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:392 - Add a new ActionListener to the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:393 - if listener is null - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:394 - If the implementing class also implements ActionSource2, the implementation of this method must call through to ActionSource2#getActionExpression and examine the result. If the result came from a previous call to #setAction, extract the MethodBinding from it and return it. Otherwise, wrap the returned jakarta.el.MethodExpression in a MethodBinding implementation, and return it. If the implementing class does not implement ActionSource2, return the MethodBindingpointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. - jakarta.faces.component - ActionSource - - - - JSF:JAVADOC:395 - If #setActionListener was not previously called for this instance, this method must return null. If it was called, this method must return the exact MethodBinding instance that was passed to #setActionListener. The method to be invoked, if this UIComponent is activated by the user, will be called during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending upon the value of the immediate property. - jakarta.faces.component - ActionSource - - - - JSF:JAVADOC:396 - Return the set of registered ActionListeners for this ActionSource instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - ActionSource - - - - JSF:JAVADOC:397 - Return a flag indicating that the default ActionListener provided by the JavaServer Faces implementation should be executed immediately (that is, during Apply Request Values phase of the request processing lifecycle), rather than waiting until the Invoke Application phase. The default value for this property must be false. - jakarta.faces.component - ActionSource - - - - JSF:JAVADOC:398 - Remove an existing ActionListener (if any) from the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:399 - if listener is null - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:400 - If the implementing class also implements ActionSource2, the implementation of this method must wrap the argument action in a class that implements jakarta.el.MethodExpression and call through to ActionSource2#setActionExpression, passing the wrapped action. If the implementing class does not implement ActionSource2, set the MethodBinding pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Any method referenced by such an expression must be public, with a return type of String, and accept no parameters. - jakarta.faces.component - ActionSource - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:401 - Wrap the argument actionListener in an implementation of ActionListener and store it in the internal data structure that backs the #getActionListeners method, taking care to over-write any instance that was stored by a previous call to setActionListener. Any method referenced by such an expression must be public, with a return type of void, and accept a single parameter of type ActionEvent. - jakarta.faces.component - ActionSource - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:402 - Set the "immediate execution" flag for this UIComponent. - jakarta.faces.component - ActionSource - - - boolean - - - - - JSF:JAVADOC:403 - Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Note that it's possible that the returned MethodExpression is just a wrapper around a MethodBinding instance whith was set by a call to ActionSource#setAction. This makes it possible for the default ActionListener to continue to work properly with older components. - jakarta.faces.component - ActionSource2 - - - - JSF:JAVADOC:404 - Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Any method referenced by such an expression must be public, with a return type of String, and accept no parameters. - jakarta.faces.component - ActionSource2 - - - MethodExpression - - - - - JSF:JAVADOC:405 - This method will be called by an implementation of UIComponent#invokeOnComponent and must be passed the component with the clientId given as an argument to invokeOnComponent. At the point in time when this method is called, the argument target is guaranteed to be in the proper state with respect to its ancestors in the View. - jakarta.faces.component - ContextCallback - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:406 - Add a Validator instance to the set associated with this component. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.validator.Validator - - - - - JSF:JAVADOC:407 - if validator is null - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - JSF:JAVADOC:408 - Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - - - - JSF:JAVADOC:409 - if listener is null - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:411 - If #setValidator was not previously called for this instance, this method must return null. If it was called, this method must return the exact MethodBinding instance that was passed to #setValidator. This method will be called during the Process Validations or Apply Request Values phases (depending on the value of the immediate property). - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:412 - Return the set of registered Validators for this component instance. If there are no registered validators, a zero-length array is returned. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:413 - If #setValueChangeListener was not previously called for this instance, this method must return null. If it was called, this method must return the exact MethodBinding instance that was passed to #setValueChangeListener. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:414 - Return the set of registered ValueChangeListeners for this component instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:415 - Return the "immediate" state for this component. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:416 - Return the "local value set" state for this component. Calls to setValue() automatically reset this property to true. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:417 - Return the "required field" state for this component. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:418 - Return a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:419 - Remove a Validator instance from the set associated with this component, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.validator.Validator - - - - - JSF:JAVADOC:420 - Remove an existing ValueChangeListener (if any) from the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - - - - JSF:JAVADOC:421 - if listener is null - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:422 - Convenience method to reset this component's value to the un-initialized state. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:423 - Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents will be delivered in that phase as well. The default value for this property must be false. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - JSF:JAVADOC:424 - Sets the "local value set" state for this component. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - JSF:JAVADOC:425 - Set the "required field" state for this component. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - JSF:JAVADOC:427 - Set a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - JSF:JAVADOC:428 - Wrap the argument validatorBinding in an implementation of jakarta.faces.validator.Validator and store it in the internal data structure that backs the #getValidators method, taking care to over-write any instance that was stored by a previous call to setValidator. The argument method will be called during the Process Validations or Apply Request Values phases (depending on the value of the immediate property). Any method referenced by such an expression must be public, with a return type of void, and accept parameters of type jakarta.faces.context.FacesContext, UIComponent, and Object. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:429 - Wrap the argument valueChangeMethod in an implementation of ValueChangeListener and store it in the internal data structure that backs the #getValueChangeListeners method, taking care to over-write any instance that was stored by a previous call to setValueChangeListener. This argument method will be called during the Process Validations or Apply Request Values phases (depending on the value of the immediate property). Any method referenced by such an expression must be public, with a return type of void, and accept a parameter of type jakarta.faces.event.ValueChangeEvent. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:431 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.component - PartialStateHolder - - - - JSF:JAVADOC:432 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.component - PartialStateHolder - - - - JSF:JAVADOC:433 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.component - PartialStateHolder - - - - JSF:JAVADOC:434 - Store the specified value in a List that is internal to the StateHelper. It's important to note for delta tracking that any modifications to the internal List be made through this method or StateHelper#remove(java.io.Serializable, Object). - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - JSF:JAVADOC:435 - Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - JSF:JAVADOC:436 - Performs the same logic as #eval(java.io.Serializable) } but if no value is found, this will return the specified defaultValue - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - JSF:JAVADOC:437 - Return the value currently associated with the specified key if any. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - JSF:JAVADOC:438 - Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - JSF:JAVADOC:439 - Store the specified mapKey/value in a Map that is internal to the helper, and return the previously stored value. The Map will then be associated with key. It's important to note for delta tracking that any modifications to the internal Map be made through this method or StateHelper#remove(java.io.Serializable, Object). - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:440 - Remove the key/value pair from the helper, returning the value previously stored under this key. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - JSF:JAVADOC:441 - Remove a value from the inner data structure. Look in the inner data structure for the value at the given key. If the value is a Map, remove and return the value under the key given by the valueOrKey argument. If the value is a Collection, simply remove the value given by the argument valueOrKey and return null. - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - JSF:JAVADOC:442 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.component - StateHolder - - - - JSF:JAVADOC:445 - Gets the state of the instance as a Serializable Object. If the class that implements this interface has references to instances that implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #saveState method on all those instances as well. This method must not save the state of children and facets. That is done via the jakarta.faces.application.StateManager This method must not alter the state of the implementing object. In other words, after executing this code: Object state = component.saveState(facesContext); component should be the same as before executing it. The return from this method must be Serializable - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:446 - if context is null - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:447 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.component - StateHolder - - - boolean - - - - - JSF:JAVADOC:448 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIColumn - - - - JSF:JAVADOC:449 - Return the footer facet of the column (if any). A convenience method for getFacet("footer"). - jakarta.faces.component - UIColumn - - - - JSF:JAVADOC:450 - Return the header facet of the column (if any). A convenience method for getFacet("header"). - jakarta.faces.component - UIColumn - - - - JSF:JAVADOC:451 - Set the footer facet of the column. A convenience method for getFacets().put("footer", footer). - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:452 - if footer is null - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:453 - Set the header facet of the column. A convenience method for getFacets().put("header", header). - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:454 - if header is null - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:455 - Create a new UIColumn instance with default property values. - jakarta.faces.component - UIColumn - - - - JSF:JAVADOC:456 - - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:457 - {@inheritDoc} - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:458 - In addition to to the default UIComponent#broadcast processing, pass the ActionEvent being broadcast to the method referenced by actionListener (if any), and to the default ActionListener registered on the jakarta.faces.application.Application. - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:459 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:460 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:461 - if event is null - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:462 - - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:463 - Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Note that it's possible that the returned MethodExpression is just a wrapper around a MethodBinding instance whith was set by a call to ActionSource#setAction. This makes it possible for the default ActionListener to continue to work properly with older components. - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:464 - - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:465 - - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:466 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:467 - Returns the value property of the UICommand. This is most often rendered as a label. - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:468 - The immediate flag. - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:469 - Intercept queueEvent and take the following action. If the event is an ActionEvent, obtain the UIComponent instance from the event. If the component is an ActionSource obtain the value of its "immediate" property. If it is true, mark the phaseId for the event to be PhaseId.APPLY_REQUEST_VALUES otherwise, mark the phaseId to be PhaseId.INVOKE_APPLICATION. The event must be passed on to super.queueEvent() before returning from this method. - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:470 - - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:471 - {@inheritDoc} - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:472 - - jakarta.faces.component - UICommand - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:473 - Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Any method referenced by such an expression must be public, with a return type of String, and accept no parameters. - jakarta.faces.component - UICommand - - - MethodExpression - - - - - JSF:JAVADOC:474 - - jakarta.faces.component - UICommand - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:475 - - jakarta.faces.component - UICommand - - - boolean - - - - - JSF:JAVADOC:476 - Sets the value property of the UICommand. This is most often rendered as a label. - jakarta.faces.component - UICommand - - - java.lang.Object - - - - - JSF:JAVADOC:477 - Create a new UICommand instance with default property values. - jakarta.faces.component - UICommand - - - - JSF:JAVADOC:479 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:480 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:481 - if event is null - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:482 - An implementation of PartialStateHolder#clearInitialState, this method is called by the runtime to tell the instance to stop tracking state changes. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:483 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:484 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:485 - If this component returns true from #isRendered, take the following action. Render this component and all its children that return true from isRendered(), regardless of the value of the #getRendersChildren flag. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:486 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:487 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:488 - If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. Call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call jakarta.faces.application.Application#publishEvent, passing jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered property is false, call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and return immediately. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:489 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:490 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:491 - If our rendered property is true, render the child UIComponents of this UIComponent. This method will only be called if the rendersChildren property is true. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this UIComponent, iterate over each of the children of this component and call #encodeAll(jakarta.faces.context.FacesContext). - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:492 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:493 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:494 - If our rendered property is true, render the ending of the current state of this UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. before returning regardless of the value of the rendered property. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:495 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:496 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:498 - if an intermediate identifier in a search expression identifies a UIComponent that is not a NamingContainer - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:499 - if expr is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:500 - Return a mutable Map representing the attributes (and properties, see below) associated wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. If the attribute name specified as a key matches a property of this UIComponent's implementation class, the following methods will have special behavior: containsKey - Return false. get() - If the property is readable, call the getter method and return the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the property is not writeable, or an attempt is made to set a property of primitive type to null, throw IllegalArgumentException. remove - Throw IllegalArgumentException. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:501 - Return the number of child UIComponents that are associated with this UIComponent. If there are no children, this method must return 0. The method must not cause the creation of a child component list. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:503 - Enable EL to access the clientId of a component. This is particularly useful in combination with the component and cc implicit objects. A default implementation is provided that simply calls FacesContext#getCurrentInstance and then calls through to #getClientId(FacesContext). - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:504 - Return a client-side identifier for this component, generating one if necessary. The associated Renderer, if any, will be asked to convert the clientId to a form suitable for transmission to the client. The return from this method must be the same value throughout the lifetime of the instance, unless the id property of the component is changed, or the component is placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these cases, consecutive calls to this method must always return the same value. The implementation must follow these steps in determining the clientId: Find the closest ancestor to this component in the view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the result as the parentId local variable. Call #getId on this component and save the result as the myId local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + myId. Call Renderer#convertClientId, passing myId, and return the result. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:505 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:506 - Finds the nearest composite component parent of the specified component. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:507 - Allow components that implement NamingContainer to selectively disable prepending their clientId to their descendent's clientIds by breaking the prepending logic into a seperately callable method. See #getClientId for usage. By default, this method will call through to #getClientId and return the result. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:508 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:509 - Return the UIComponent instance that is currently processing. This is equivalent to evaluating the EL expression "#{component}" and doing a getValue operation on the resultant ValueExpression. This method must return null if there is no currently processing UIComponent - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:510 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:511 - Return the closest ancestor component, relative to the component returned from #getCurrentComponent, that is a composite component, or null if no such component exists. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:512 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:513 - Convenience method to return the named facet, if it exists, or null otherwise. If the requested facet does not exist, the facets Map must not be created. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:514 - Return the number of facet UIComponents that are associated with this UIComponent. If there are no facets, this method must return 0. The method must not cause the creation of a facet component map. For backwards compatability with classes that extend UIComponent directly, a default implementation is provided that simply calls #getFacets and then calls the size() method on the returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:515 - Return a mutable Map representing the facet UIComponents associated with this UIComponent, keyed by facet name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component must be set to this component instance. If the parent property of the component was already non-null, the component must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property of the facet must be set to null. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:516 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. The returned Iterator must not support the remove() operation. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:517 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:518 - Return the component identifier of this UIComponent. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:521 - Starting with "this", return the closest component in the ancestry that is a NamingContainer or null if none can be found. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:522 - Return the parent UIComponent of this UIComponent, if any. A component must allow child components to be added to and removed from the list of children of this component, even though the child component returns null from getParent( ). - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:523 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:524 - Return a flag indicating whether this component is responsible for rendering its child components. The default implementation in UIComponentBase#getRendersChildren tries to find the renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the result. If it doesn't, it returns false. As of version 1.2 of the JavaServer Faces Specification, component authors are encouraged to return true from this method and rely on UIComponentBase#encodeChildren. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:525 - Return a Map of the ResourceBundle for this component. A component may have a ResourceBundle associated with it. This bundle may contain localized properties relating to instances of this component. The default implementation first looks for a ResourceBundle with a base name equal to the fully qualified class name of the current UIComponent this and Locale equal to the Locale of the current UIViewRoot. If no such bundle is found, and the component is a composite component, let resourceName be the resourceName of the Resource for this composite component, replacing the file extension with ".properties". Let libraryName be the libraryName of the the Resource for this composite component. Call jakarta.faces.application.ResourceHandler#createResource(java.lang.String,java.lang.String), passing the derived resourceName and libraryName. Note that this will automatically allow for the localization of the ResourceBundle due to the localization facility implemented in createResource, which is specified in section JSF.2.6.1.3 of the spec prose document. If the resultant Resource exists and can be found, the InputStream for the resource is used to create a ResourceBundle. If either of the two previous steps for obtaining the ResourceBundle for this component is successful, the ResourceBundle is wrapped in a Map and returned. Otherwise Collections.EMPTY_MAP is returned. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:526 - Call through to #getValueExpression and examine the result. If the result is an instance of the wrapper class mandated in #setValueBinding, extract the ValueBinding instance and return it. Otherwise, wrap the result in an implementation of ValueBinding, and return it. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:527 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:528 - Return the ValueExpression used to calculate the value for the specified attribute or property name, if any. This method must be overridden and implemented for components that comply with JSF 1.2 and later. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:529 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:530 - An implementation of PartialStateHolder#initialStateMarked, this method is called by the runtime to test if the PartialStateHolder#markInitialState method was called. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:532 - if the argument Callback throws an Exception, it is wrapped in a FacesException and re-thrown. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - JSF:JAVADOC:533 - if any of the arguments are null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - java.lang.NullPointerException - - - - JSF:JAVADOC:534 - Return true if component is a composite component, otherwise false. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:535 - if component is null - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:536 - Return true if this component is within the view hierarchy otherwise false - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:537 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:538 - An implementation of PartialStateHolder#markInitialState, this method is called by the runtime to indicate that the instance should start tracking changes to its state. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:539 - Pop the current UIComponent from the FacesContext attributes map so that the previous UIComponent, if any, becomes the current component. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:540 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:541 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. Call #popComponentFromEL from inside of a finally block, just before returning. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:542 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:544 - - jakarta.faces.component - UIComponent - - - jakarta.faces.event.ComponentSystemEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:545 - Perform the component tree processing required by the Restore View phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the restoreState() method of this component. Call UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:546 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:547 - Perform the component tree processing required by the state saving portion of the Render Response phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. consult the transient property of this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(), skipping children and facets that are transient. Ensure that #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of this component. Encapsulate the child state and your state into a Serializable Object and return it. This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:548 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:549 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:550 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:552 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:553 - Push the current UIComponent this to the FacesContext attribute map using the key #CURRENT_COMPONENT saving the previous UIComponent associated with #CURRENT_COMPONENT for a subsequent call to #popComponentFromEL. This method and popComponentFromEL() form the basis for the contract that enables the EL Expression "#{component}" to resolve to the "current" component that is being processed in the lifecycle. The requirements for when pushComponentToEL() and popComponentFromEL() must be called are specified as needed in the javadoc for this class. After pushComponentToEL() returns, a call to #getCurrentComponent must return this UIComponent instance until popComponentFromEL() is called, after which point the previous UIComponent instance will be returned from getCurrentComponent() - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:554 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:555 - Queue an event for broadcast at the end of the current request processing lifecycle phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() method of the parent UIComponent. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:556 - if this component is not a descendant of a UIViewRoot - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalStateException - - - - JSF:JAVADOC:557 - if event is null - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:558 - Set the component identifier of this UIComponent (if any). Component identifiers must obey the following syntax restrictions: Must not be a zero-length String. First character must be a letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that this restriction is NOT enforced by the setId() implementation): The specified identifier must be unique among all the components (including facets) that are descendents of the nearest ancestor UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is no such ancestor that is a NamingContainer. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:559 - if id is not syntactically valid - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:560 - Updates the status as to whether or not this component is currently within the view hierarchy. This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponent - - - boolean - - - - - JSF:JAVADOC:562 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIComponent - - - boolean - - - - - JSF:JAVADOC:563 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:564 - Wrap the argument binding in an implementation of ValueExpression and call through to #setValueExpression. - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:565 - if name is one of id or parent - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:566 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:567 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. The implementation must call ValueExpression#isLiteralText on the argument expression. If isLiteralText() returns true, invoke ValueExpression#getValue on the argument expression and pass the result as the value parameter in a call to this.#getAttributes().put(name, value) where name is the argument name. If an exception is thrown as a result of calling ValueExpression#getValue, wrap it in a jakarta.faces.FacesException and re-throw it. If isLiteralText() returns false, simply store the un-evaluated expression argument in the collection of ValueExpressions under the key given by the argument name. This method must be overridden and implemented for components that comply with JSF 1.2 and later. - jakarta.faces.component - UIComponent - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:568 - if name is one of id or parent - jakarta.faces.component - UIComponent - - - java.lang.String - ValueExpression - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:569 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:572 - - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:576 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.component.behavior.ClientBehavior - - - - - JSF:JAVADOC:578 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:579 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:580 - if event is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:581 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:582 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:583 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:584 - If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. Call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call jakarta.faces.application.Application#publishEvent, passing jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered property is false, call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and return immediately. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:585 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:586 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:587 - If our rendered property is true, render the child UIComponents of this UIComponent. This method will only be called if the rendersChildren property is true. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this UIComponent, iterate over each of the children of this component and call #encodeAll(jakarta.faces.context.FacesContext). - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:588 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:589 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:590 - If our rendered property is true, render the ending of the current state of this UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. before returning regardless of the value of the rendered property. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:591 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:592 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:594 - if an intermediate identifier in a search expression identifies a UIComponent that is not a NamingContainer - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:595 - if expr is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:596 - Return a mutable Map representing the attributes (and properties, see below) associated wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. If the attribute name specified as a key matches a property of this UIComponent's implementation class, the following methods will have special behavior: containsKey - Return false. get() - If the property is readable, call the getter method and return the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the property is not writeable, or an attempt is made to set a property of primitive type to null, throw IllegalArgumentException. remove - Throw IllegalArgumentException. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:597 - Return the number of child UIComponents that are associated with this UIComponent. If there are no children, this method must return 0. The method must not cause the creation of a child component list. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:599 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getClientBehaviors. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must add an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:600 - Return a client-side identifier for this component, generating one if necessary. The associated Renderer, if any, will be asked to convert the clientId to a form suitable for transmission to the client. The return from this method must be the same value throughout the lifetime of the instance, unless the id property of the component is changed, or the component is placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these cases, consecutive calls to this method must always return the same value. The implementation must follow these steps in determining the clientId: Find the closest ancestor to this component in the view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the result as the parentId local variable. Call #getId on this component and save the result as the myId local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + myId. Call Renderer#convertClientId, passing myId, and return the result. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:601 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:602 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:603 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:604 - Convenience method to return the named facet, if it exists, or null otherwise. If the requested facet does not exist, the facets Map must not be created. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - JSF:JAVADOC:605 - Return the number of facet UIComponents that are associated with this UIComponent. If there are no facets, this method must return 0. The method must not cause the creation of a facet component map. For backwards compatability with classes that extend UIComponent directly, a default implementation is provided that simply calls #getFacets and then calls the size() method on the returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:606 - Return a mutable Map representing the facet UIComponents associated with this UIComponent, keyed by facet name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component must be set to this component instance. If the parent property of the component was already non-null, the component must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property of the facet must be set to null. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:607 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. The returned Iterator must not support the remove() operation. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:608 - Return the component identifier of this UIComponent. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:609 - Return the parent UIComponent of this UIComponent, if any. A component must allow child components to be added to and removed from the list of children of this component, even though the child component returns null from getParent( ). - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:610 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:611 - Return a flag indicating whether this component is responsible for rendering its child components. The default implementation in UIComponentBase#getRendersChildren tries to find the renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the result. If it doesn't, it returns false. As of version 1.2 of the JavaServer Faces Specification, component authors are encouraged to return true from this method and rely on UIComponentBase#encodeChildren. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:612 - - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - JSF:JAVADOC:613 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:614 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - JSF:JAVADOC:615 - {@inheritDoc} - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - JSF:JAVADOC:616 - if any of the arguments are null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - java.lang.NullPointerException - - - - JSF:JAVADOC:617 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:618 - - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:619 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#markInitialState on the attached object. - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:620 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. Call #popComponentFromEL from inside of a finally block, just before returning. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:621 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:622 - Perform the component tree processing required by the Restore View phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the restoreState() method of this component. Call UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:623 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:624 - Perform the component tree processing required by the state saving portion of the Render Response phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. consult the transient property of this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(), skipping children and facets that are transient. Ensure that #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of this component. Encapsulate the child state and your state into a Serializable Object and return it. This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:625 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:626 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:627 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:629 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:630 - Queue an event for broadcast at the end of the current request processing lifecycle phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() method of the parent UIComponent. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:631 - if this component is not a descendant of a UIViewRoot - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalStateException - - - - JSF:JAVADOC:632 - if event is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:633 - This method is called by UIComponent subclasses that need to restore the objects they saved using #saveAttachedState. This method is tightly coupled with #saveAttachedState. This method supports restoring all attached objects types supported by #saveAttachedState. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:634 - if the object is not previously returned by #saveAttachedState. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.IllegalStateException - - - - JSF:JAVADOC:635 - if context is null. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:636 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:637 - This method is called by UIComponent subclasses that want to save one or more attached objects. It is a convenience method that does the work of saving attached objects that may or may not implement the StateHolder interface. Using this method implies the use of #restoreAttachedState to restore the attached objects. This method supports saving attached objects of the following type: Objects, null values, and Collections of these objects. If any contained objects are not Collections and do not implement StateHolder, they must have zero-argument public constructors. The exact structure of the returned object is undefined and opaque, but will be serializable. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:638 - if the context argument is null. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:639 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:640 - Set the component identifier of this UIComponent (if any). Component identifiers must obey the following syntax restrictions: Must not be a zero-length String. First character must be a letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that this restriction is NOT enforced by the setId() implementation): The specified identifier must be unique among all the components (including facets) that are descendents of the nearest ancestor UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is no such ancestor that is a NamingContainer. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - JSF:JAVADOC:641 - if id is not syntactically valid - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:643 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIComponentBase - - - boolean - - - - - JSF:JAVADOC:644 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - JSF:JAVADOC:645 - - jakarta.faces.component - UIComponentBase - - - boolean - - - - - JSF:JAVADOC:646 - - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:647 - if name is one of id or parent - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:648 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:649 - - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:650 - Override the default UIComponentBase#broadcast processing to unwrap any wrapped FacesEvent and reset the current row index, before the event is actually broadcast. For events that we did not wrap (in queueEvent()), default processing will occur. - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:651 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:652 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:653 - if event is null - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:654 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:655 - In addition to the default behavior, ensure that any saved per-row state for our child input components is discarded unless it is needed to rerender the current page with errors. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:656 - if an input/output error occurs while rendering - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:657 - if context is null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:658 - Return a client identifier for this component that includes the current value of the rowIndex property, if it is not set to -1. This implies that multiple calls to getClientId() may return different results, but ensures that child components can themselves generate row-specific client identifiers (since UIData is a NamingContainer). - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:659 - if context is null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:660 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:661 - Return the zero-relative row number of the first row to be displayed. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:662 - Return the footer facet of this component (if any). A convenience method for getFacet("footer"). - jakarta.faces.component - UIData - - - - JSF:JAVADOC:663 - Return the header facet of this component (if any). A convenience method for getFacet("header"). - jakarta.faces.component - UIData - - - - JSF:JAVADOC:664 - Return the number of rows in the underlying data model. If the number of available rows is unknown, return -1. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:665 - if an error occurs getting the row count - jakarta.faces.component - UIData - - jakarta.faces.FacesException - - - - JSF:JAVADOC:666 - Return the data object representing the data for the currently selected row index, if any. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:667 - if an error occurs getting the row data - jakarta.faces.component - UIData - - jakarta.faces.FacesException - - - - JSF:JAVADOC:668 - if now row data is available at the currently specified row index - jakarta.faces.component - UIData - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:669 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, return -1. This property is not enabled for value binding expressions. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:670 - if an error occurs getting the row index - jakarta.faces.component - UIData - - jakarta.faces.FacesException - - - - JSF:JAVADOC:671 - Return the number of rows to be displayed, or zero for all remaining rows in the table. The default value of this property is zero. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:673 - Return the request-scope attribute under which the data object for the current row will be exposed when iterating. This property is not enabled for value binding expressions. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:674 - Override behavior from UIComponentBase#invokeOnComponent to provide special care for positioning the data properly before finding the component and invoking the callback on it. If the argument clientId is equal to this.getClientId() simply invoke the contextCallback, passing the context argument and this as arguments, and return true. If the argument clientId is not equal to this.getClientId(), inspect each of the facet children of this UIData instance and for each one, compare its clientId with the argument clientId. If there is a match, invoke the contextCallback, passing the context argument and this as arguments, and return true. Otherwise, attempt to extract a rowIndex from the clientId. For example, if the argument clientId was form:data:3:customerHeader the rowIndex would be 3. Let this value be called newIndex. The current rowIndex of this instance must be saved aside and restored before returning in all cases, regardless of the outcome of the search or if any exceptions are thrown in the process. The implementation of this method must never return true if setting the rowIndex of this instance to be equal to newIndex causes this instance to return false from #isRowAvailable. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - JSF:JAVADOC:675 - {@inheritDoc} Also throws FacesException if any exception is thrown when deriving the rowIndex from the argument clientId. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - JSF:JAVADOC:676 - if any of the arguments are null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - java.lang.NullPointerException - - - - JSF:JAVADOC:677 - Return a flag indicating whether there is rowData available at the current rowIndex. If no wrappedData is available, return false. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:678 - if an error occurs getting the row availability - jakarta.faces.component - UIData - - jakarta.faces.FacesException - - - - JSF:JAVADOC:679 - Override the default UIComponentBase#processDecodes processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processDecodes() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processDecodes() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processDecodes() method for each such child. Set the current rowIndex to -1. Call the decode() method of this component. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:680 - if context is null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:681 - Override the default UIComponentBase#processUpdates processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processUpdates() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processUpdates() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processUpdates() method for each such child. Set the current rowIndex to -1. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:682 - if context is null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:683 - Override the default UIComponentBase#processValidators processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processValidators() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processValidators() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processValidators() method for each such child. Set the current rowIndex to -1. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:684 - if context is null - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:685 - Override the default UIComponentBase#queueEvent processing to wrap any queued events in a wrapper so that we can reset the current row index in broadcast(). - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:686 - if this component is not a descendant of a UIViewRoot - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalStateException - - - - JSF:JAVADOC:687 - if event is null - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:688 - Set the zero-relative row number of the first row to be displayed. - jakarta.faces.component - UIData - - - int - - - - - JSF:JAVADOC:689 - if first is negative - jakarta.faces.component - UIData - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:690 - Set the footer facet of this component. A convenience method for getFacets().put("footer", footer). - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:691 - if footer is null - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:692 - Set the header facet of this component. A convenience method for getFacets().put("header", header). - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:693 - if header is null - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:695 - if an error occurs setting the row index - jakarta.faces.component - UIData - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:696 - if rowIndex is less than -1 - jakarta.faces.component - UIData - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:697 - Set the number of rows to be displayed, or zero for all remaining rows in the table. - jakarta.faces.component - UIData - - - int - - - - - JSF:JAVADOC:698 - if rows is negative - jakarta.faces.component - UIData - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:699 - Set the value of the UIData. This value must either be be of type DataModel, or a type that can be adapted into a DataModel. - jakarta.faces.component - UIData - - - java.lang.Object - - - - - JSF:JAVADOC:700 - If "name" is something other than "value", "var", or "rowIndex", rely on the superclass conversion from ValueBinding to ValueExpression. - jakarta.faces.component - UIData - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:701 - if name is one of id, parent, var, or rowIndex - jakarta.faces.component - UIData - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:702 - if name is null - jakarta.faces.component - UIData - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:703 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. In addition, if a ValueExpression is set for the value property, remove any synthesized DataModel for the data previously bound to this component. - jakarta.faces.component - UIData - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:704 - if name is one of id, parent, var, or rowIndex - jakarta.faces.component - UIData - - - java.lang.String - ValueExpression - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:705 - if name is null - jakarta.faces.component - UIData - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:706 - Set the request-scope attribute under which the data object for the current row wil be exposed when iterating. - jakarta.faces.component - UIData - - - java.lang.String - - - - - JSF:JAVADOC:707 - Create a new UIData instance with default property values. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:709 - if any of the parameters are null. - jakarta.faces.component - UIData - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - java.lang.NullPointerException - - - - JSF:JAVADOC:711 - Override the UIComponent#getContainerClientId to allow users to disable this form from prepending its clientId to its descendent's clientIds depending on the value of this form's #isPrependId property. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:712 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIForm - - - - JSF:JAVADOC:713 - The prependId flag. - jakarta.faces.component - UIForm - - - - JSF:JAVADOC:715 - Override UIComponent#processDecodes to ensure that the form is decoded before its children. This is necessary to allow the submitted property to be correctly set. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:716 - if context is null - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:717 - Override UIComponent#processUpdates to ensure that the children of this UIForm instance are only processed if #isSubmitted returns true. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:718 - if context is null - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:719 - Override UIComponent#processValidators to ensure that the children of this UIForm instance are only processed if #isSubmitted returns true. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:720 - if context is null - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:721 - - jakarta.faces.component - UIForm - - - boolean - - - - - JSF:JAVADOC:723 - Create a new UIForm instance with default property values. - jakarta.faces.component - UIForm - - - - JSF:JAVADOC:725 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIGraphic - - - - JSF:JAVADOC:726 - Return the image URL for this UIGraphic. This method is a typesafe alias for getValue(). - jakarta.faces.component - UIGraphic - - - - JSF:JAVADOC:727 - Returns the value property of the UIGraphic. This will typically be rendered as an URL. - jakarta.faces.component - UIGraphic - - - - JSF:JAVADOC:728 - Return any ValueBinding set for value if a ValueBinding for url is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - JSF:JAVADOC:729 - if name is null - jakarta.faces.component - UIGraphic - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:730 - Return any ValueExpression set for value if a ValueExpression for url is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - JSF:JAVADOC:731 - if name is null - jakarta.faces.component - UIGraphic - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:732 - Set the image URL for this UIGraphic. This method is a typesafe alias for setValue(). - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - JSF:JAVADOC:733 - Sets the value property of the UIGraphic. This will typically be rendered as an URL. - jakarta.faces.component - UIGraphic - - - java.lang.Object - - - - - JSF:JAVADOC:734 - Store any ValueBinding specified for url under value instead; otherwise, perform the default superclass processing for this method. In all cases, the superclass is relied on to convert the ValueBinding to a ValueExpression. - jakarta.faces.component - UIGraphic - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:735 - if name is null - jakarta.faces.component - UIGraphic - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:736 - Store any ValueExpression specified for url under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UIGraphic - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:737 - if name is null - jakarta.faces.component - UIGraphic - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:738 - Create a new UIGraphic instance with default property values. - jakarta.faces.component - UIGraphic - - - - JSF:JAVADOC:739 - Add a Validator instance to the set associated with this UIInput. - jakarta.faces.component - UIInput - - - jakarta.faces.validator.Validator - - - - - JSF:JAVADOC:740 - if validator is null - jakarta.faces.component - UIInput - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - JSF:JAVADOC:741 - Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - - - - JSF:JAVADOC:742 - if listener is null - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:743 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:744 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:745 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:746 - If there has been a call to #setConverterMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "converterMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:747 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:748 - If there has been a call to #setRequiredMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "requiredMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:749 - Return the submittedValue value of this UIInput component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:750 - Return a MethodBinding pointing at a method that will be called during Process Validations phase of the request processing lifecycle, to validate the current value of this component. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:751 - If there has been a call to #setValidatorMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "validatorMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:752 - Return the set of registered Validators for this UIInput instance. If there are no registered validators, a zero-length array is returned. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:753 - If #setValueChangeListener was not previously called for this instance, this method must return null. If it was called, this method must return the exact MethodBinding instance that was passed to #setValueChangeListener. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:754 - Return the set of registered ValueChangeListeners for this UIInput instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:755 - - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - JSF:JAVADOC:756 - Return the "immediate" state for this component. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:757 - Return the "local value set" state for this component. Calls to setValue() automatically reset this property to true. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:758 - Return the "required field" state for this component. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:759 - Return a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:760 - In addition to the actions taken in UIOutput when PartialStateHolder#markInitialState() is called, check if any of the installed Validators are PartialStateHolders and if so, call jakarta.faces.component.PartialStateHolder#markInitialState() as appropriate. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:761 - Specialized decode behavior on top of that provided by the superclass. In addition to the standard processDecodes behavior inherited from UIComponentBase, calls validate() if the the immediate property is true; if the component is invalid afterwards or a RuntimeException is thrown, calls FacesContext#renderResponse. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:762 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:763 - In addition to the standard processUpdates behavior inherited from UIComponentBase, calls updateModel(). If the component is invalid afterwards, calls FacesContext#renderResponse. If a RuntimeException is thrown during update processing, calls FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:764 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:765 - In addition to the standard processValidators behavior inherited from UIComponentBase, calls validate() if the immediate property is false (which is the default); if the component is invalid afterwards, calls FacesContext#renderResponse. If a RuntimeException is thrown during validation processing, calls FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:766 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:767 - Remove a Validator instance from the set associated with this UIInput, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIInput - - - jakarta.faces.validator.Validator - - - - - JSF:JAVADOC:768 - Remove an existing ValueChangeListener (if any) from the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - - - - JSF:JAVADOC:769 - if listener is null - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:771 - - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:772 - - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:773 - Override any ValueExpression set for the "converterMessage" with the literal argument provided to this method. Subsequent calls to #getConverterMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - JSF:JAVADOC:774 - Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents will be delivered in that phase as well. The default value for this property must be false. - jakarta.faces.component - UIInput - - - boolean - - - - - JSF:JAVADOC:775 - Sets the "local value set" state for this component. - jakarta.faces.component - UIInput - - - boolean - - - - - JSF:JAVADOC:776 - Set the "required field" state for this component. - jakarta.faces.component - UIInput - - - boolean - - - - - JSF:JAVADOC:777 - Override any ValueExpression set for the "requiredMessage" with the literal argument provided to this method. Subsequent calls to #getRequiredMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - JSF:JAVADOC:778 - Set the submittedValue value of this UIInput component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - JSF:JAVADOC:779 - Set a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - UIInput - - - boolean - - - - - JSF:JAVADOC:780 - Set a MethodBinding pointing at a method that will be called during Process Validations phase of the request processing lifecycle, to validate the current value of this component. Any method referenced by such an expression must be public, with a return type of void, and accept parameters of type FacesContext, UIComponent, and Object. - jakarta.faces.component - UIInput - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:781 - Override any ValueExpression set for the "validatorMessage" with the literal argument provided to this method. Subsequent calls to #getValidatorMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - JSF:JAVADOC:782 - Set the value of this UIComponent (if any). - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - JSF:JAVADOC:783 - - jakarta.faces.component - UIInput - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:784 - Create a new UIInput instance with default property values. - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:785 - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the localValueSet property of this component is false, take no further action. If no ValueExpression for value exists, take no further action. Call setValue() method of the ValueExpression to update the value that the ValueExpression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the localValueSet property of this UIInput to false. If the setValue() method throws an Exception: Enqueue an error message. Create a FacesMessage with the id #UPDATE_MESSAGE_ID. Create a UpdateModelException, passing the FacesMessage and the caught exception to the constructor. Create an ExceptionQueuedEventContext, passing the FacesContext, the UpdateModelException, this component instance, and PhaseId#UPDATE_MODEL_VALUES to its constructor. Call FacesContext#getExceptionHandler and then call ExceptionHandler#processEvent, passing the ExceptionQueuedEventContext. Set the valid property of this UIInput to false. The exception must not be re-thrown. This enables tree traversal to continue for this lifecycle phase, as in all the other lifecycle phases. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:786 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:788 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:789 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:791 - - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:792 - Return the flag indicating whether the detail property of the associated message(s) should be displayed. Defaults to true. - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:793 - Return the flag indicating whether the summary property of the associated message(s) should be displayed. Defaults to false. - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:795 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - JSF:JAVADOC:796 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - JSF:JAVADOC:797 - Set the flag indicating whether the summary property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - JSF:JAVADOC:798 - Create a new UIMessage instance with default property values. - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:799 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:800 - Return the client identifier of the component for which this component represents associated message(s) (if any). - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:801 - Return the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. Mutually exclusive with the "for" property which takes precedence. Defaults to false. - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:802 - - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:803 - Return the flag indicating whether the detail property of the associated message(s) should be displayed. Defaults to false. - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:804 - Return the flag indicating whether the summary property of the associated message(s) should be displayed. Defaults to true. - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:805 - Set the client identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed. - jakarta.faces.component - UIMessages - - - java.lang.String - - - - - JSF:JAVADOC:806 - Set the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. - jakarta.faces.component - UIMessages - - - boolean - - - - - JSF:JAVADOC:807 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - JSF:JAVADOC:808 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - JSF:JAVADOC:809 - Set the flag indicating whether the summary property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - JSF:JAVADOC:810 - Create a new UIMessages instance with default property values. - jakarta.faces.component - UIMessages - - - - JSF:JAVADOC:811 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:812 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UINamingContainer - - - - JSF:JAVADOC:813 - Return the character used to separate segments of a clientId. The implementation must determine if there is a with the value given by the value of the symbolic constant #SEPARATOR_CHAR_PARAM_NAME. If there is a value for this param, the first character of the value must be returned from this method. Otherwise, the value of the symbolic constant NamingContainer#SEPARATOR_CHAR must be returned. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:814 - Create a new UINamingContainer instance with default property values. - jakarta.faces.component - UINamingContainer - - - - JSF:JAVADOC:816 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIOutcomeTarget - - - - JSF:JAVADOC:817 - Returns the outcome property of the UIOutcomeTarget. This value is passed to the jakarta.faces.application.NavigationHandler when resolving the target url of this component. - jakarta.faces.component - UIOutcomeTarget - - - - JSF:JAVADOC:818 - Return whether or not the view parameters should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - - JSF:JAVADOC:819 - Set whether or not the page parameters should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - boolean - - - - - JSF:JAVADOC:820 - Sets the outcome property of the UIOutcomeTarget. This value is passed to the NavigationHandler when resolving the target url of this component. - jakarta.faces.component - UIOutcomeTarget - - - java.lang.String - - - - - JSF:JAVADOC:821 - Create a new UIOutcomeTarget instance with default property values. - jakarta.faces.component - UIOutcomeTarget - - - - JSF:JAVADOC:822 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:823 - Return the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:824 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:825 - Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:827 - In addition to the actions taken in UIComponentBase when PartialStateHolder#markInitialState() is called, check if the installed Converter is a PartialStateHolder and if it is, call jakarta.faces.component.PartialStateHolder#markInitialState() on it. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:828 - - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:829 - - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:830 - Set the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - UIOutput - - - jakarta.faces.convert.Converter - - - - - JSF:JAVADOC:831 - Set the value of this UIComponent (if any). - jakarta.faces.component - UIOutput - - - java.lang.Object - - - - - JSF:JAVADOC:832 - Create a new UIOutput instance with default property values. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:833 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIPanel - - - - JSF:JAVADOC:834 - Create a new UIPanel instance with default property values. - jakarta.faces.component - UIPanel - - - - JSF:JAVADOC:835 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIParameter - - - - JSF:JAVADOC:836 - Return the optional parameter name for this parameter. - jakarta.faces.component - UIParameter - - - - JSF:JAVADOC:837 - Returns the value property of the UIParameter. - jakarta.faces.component - UIParameter - - - - JSF:JAVADOC:838 - Return the value of the disable directive for this component. This directive determines whether the parameter value should be disabled by assigning it a null value. If true, the value set on this component is ignored. - jakarta.faces.component - UIParameter - - - - JSF:JAVADOC:839 - Sets the disable property of the UIParameter. - jakarta.faces.component - UIParameter - - - boolean - - - - - JSF:JAVADOC:840 - Set the optional parameter name for this parameter. - jakarta.faces.component - UIParameter - - - java.lang.String - - - - - JSF:JAVADOC:841 - Sets the value property of the\ UIParameter. - jakarta.faces.component - UIParameter - - - java.lang.Object - - - - - JSF:JAVADOC:842 - Create a new UIParameter instance with default property values. - jakarta.faces.component - UIParameter - - - - JSF:JAVADOC:843 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UISelectBoolean - - - - JSF:JAVADOC:844 - Return any ValueBinding set for value if a ValueBinding for selected is requested; otherwise, perform the default superclass processing for this method. Rely on the superclass implementation to wrap the returned ValueExpression in a ValueBinding. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - - - - - JSF:JAVADOC:845 - if name is null - jakarta.faces.component - UISelectBoolean - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:846 - Return any ValueExpression set for value if a ValueExpression for selected is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - - - - - JSF:JAVADOC:847 - if name is null - jakarta.faces.component - UISelectBoolean - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:848 - Return the local value of the selected state of this component. This method is a typesafe alias for getValue(). - jakarta.faces.component - UISelectBoolean - - - - JSF:JAVADOC:849 - Set the local value of the selected state of this component. This method is a typesafe alias for setValue(). - jakarta.faces.component - UISelectBoolean - - - boolean - - - - - JSF:JAVADOC:850 - Store any ValueBinding specified for selected under value instead; otherwise, perform the default superclass processing for this method. Rely on the superclass implementation to wrap the argument ValueBinding in a ValueExpression. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:851 - if name is null - jakarta.faces.component - UISelectBoolean - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:852 - Store any ValueExpression specified for selected under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:853 - if name is null - jakarta.faces.component - UISelectBoolean - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:854 - Create a new UISelectBoolean instance with default property values. - jakarta.faces.component - UISelectBoolean - - - - JSF:JAVADOC:855 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:856 - Return the description for this selection item. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:857 - Return the localized label for this selection item. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:858 - Return the server value for this selection item. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:859 - Returns the value property of the UISelectItem. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:860 - Return the disabled setting for this selection item. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:861 - Return the escape setting for the label of this selection item. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:862 - Return the value of the noSelectionOption property. If the value of this property is true, the system interprets the option represented by this UISelectItem instance as representing a "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:863 - Set the description for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.String - - - - - JSF:JAVADOC:864 - Set the disabled value for this selection item. - jakarta.faces.component - UISelectItem - - - boolean - - - - - JSF:JAVADOC:865 - Set the escape value for the label of this selection item. - jakarta.faces.component - UISelectItem - - - boolean - - - - - JSF:JAVADOC:866 - Set the localized label for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.String - - - - - JSF:JAVADOC:867 - Set the server value for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.Object - - - - - JSF:JAVADOC:868 - Set the value of the noSelectionOption property. - jakarta.faces.component - UISelectItem - - - boolean - - - - - JSF:JAVADOC:869 - Sets the value property of the UISelectItem. - jakarta.faces.component - UISelectItem - - - java.lang.Object - - - - - JSF:JAVADOC:870 - Create a new UISelectItem instance with default property values. - jakarta.faces.component - UISelectItem - - - - JSF:JAVADOC:871 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UISelectItems - - - - JSF:JAVADOC:872 - Returns the value property of the UISelectItems. - jakarta.faces.component - UISelectItems - - - - JSF:JAVADOC:873 - Sets the value property of the UISelectItems. - jakarta.faces.component - UISelectItems - - - java.lang.Object - - - - - JSF:JAVADOC:874 - Create a new UISelectItems instance with default property values. - jakarta.faces.component - UISelectItems - - - - JSF:JAVADOC:875 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UISelectMany - - - - JSF:JAVADOC:876 - Return the currently selected values, or null if there are no currently selected values. This is a typesafe alias for getValue(). - jakarta.faces.component - UISelectMany - - - - JSF:JAVADOC:877 - Return any ValueBinding set for value if a ValueBinding for selectedValues is requested; otherwise, perform the default superclass processing for this method. This method relies on the superclass to provide the ValueExpression to ValueBinding wrapping. - jakarta.faces.component - UISelectMany - - - java.lang.String - - - - - JSF:JAVADOC:878 - if name is null - jakarta.faces.component - UISelectMany - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:879 - Return any ValueExpression set for value if a ValueExpression for selectedValues is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectMany - - - java.lang.String - - - - - JSF:JAVADOC:880 - if name is null - jakarta.faces.component - UISelectMany - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:881 - Set the currently selected values, or null to indicate that there are no currently selected values. This is a typesafe alias for setValue(). - jakarta.faces.component - UISelectMany - - - java.lang.Object[] - - - - - JSF:JAVADOC:882 - Store any ValueBinding specified for selectedValues under value instead; otherwise, perform the default superclass processing for this method. This method relies on the superclass to wrap the argument ValueBinding in a ValueExpression. - jakarta.faces.component - UISelectMany - - - java.lang.String - jakarta.faces.el.ValueBinding - - - - - JSF:JAVADOC:883 - if name is null - jakarta.faces.component - UISelectMany - - - java.lang.String - jakarta.faces.el.ValueBinding - - java.lang.NullPointerException - - - - JSF:JAVADOC:884 - Store any ValueExpression specified for selectedValues under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectMany - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:885 - if name is null - jakarta.faces.component - UISelectMany - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:886 - Create a new UISelectMany instance with default property values. - jakarta.faces.component - UISelectMany - - - - JSF:JAVADOC:887 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UISelectOne - - - - JSF:JAVADOC:888 - Create a new UISelectOne instance with default property values. - jakarta.faces.component - UISelectOne - - - - JSF:JAVADOC:889 - Override behavior from superclass to pull a value from the incoming request parameter map under the name given by #getName and store it with a call to UIInput#setSubmittedValue. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:890 - Called specially by UIViewRoot#encodeEnd, this method simply sets the submitted value to be the return from #getStringValue. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:891 - - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:892 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIViewParameter - - - - JSF:JAVADOC:893 - Return the request parameter name from which the value is retrieved. - jakarta.faces.component - UIViewParameter - - - - JSF:JAVADOC:894 - If the value of this parameter comes from a ValueExpression return the value of the expression, otherwise, return the local value. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:895 - Manually perform standard conversion steps to get a string value from the value expression. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:896 - - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:898 - Return false. The immediate setting is not relevant for view parameters and must be assumed to be false. - jakarta.faces.component - UIViewParameter - - - - JSF:JAVADOC:899 - Specialize superclass behavior to treat null differently. In this class, a null value along with the "required" flag being set to true will cause a validation failure. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:900 - Set the request parameter name from which the value is retrieved. - jakarta.faces.component - UIViewParameter - - - java.lang.String - - - - - JSF:JAVADOC:901 - PENDING (docs) Interesting that submitted value isn't saved by the parent - jakarta.faces.component - UIViewParameter - - - java.lang.Object - - - - - JSF:JAVADOC:902 - Create a new UIViewParameter instance with default property values. - jakarta.faces.component - UIViewParameter - - - - JSF:JAVADOC:903 - Call through to superclass UIInput#updateModel then take the additional action of pushing the value into request scope if and only if the value is not a value expression, is valid, and the local value was set on this lifecycle execution. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:904 - Return the UIViewParameter to which this instance refers. If the current viewId is the same as the viewId passed to our constructor, use the index passed to the constructor to find the actual UIViewParameter instance and return it. Otherwise, call StateHolder#restoreState on the saved state and return the result. - jakarta.faces.component - UIViewParameter.Reference - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:905 - Construct a reference to a UIViewParameter. This constructor cause the StateHolder#saveState method to be called on argument UIViewParameter. - jakarta.faces.component - UIViewParameter.Reference - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewParameter - int - java.lang.String - - - - - JSF:JAVADOC:906 - Add argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The default implementation must call through to #addComponentResource(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.String). - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:907 - Add argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The component must be added using the following algorithm: If the target argument is null, look for a target attribute on the component. If there is no target attribute, set target to be the default value head Call #getComponentResources to obtain the child list for the given target. If the component ID of componentResource matches the the ID of a resource that has allready been added, remove the old resource. Add the component resource to the list. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:908 - Add the argument newPhaseListener to the list of PhaseListeners on this UIViewRoot. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:909 - Broadcast any events that have been queued. First broadcast events that have been queued for PhaseId#ANY_PHASE. Then broadcast ane events that have been queued for the current phase. In both cases, UIComponent#pushComponentToEL must be called before the event is broadcast, and UIComponent#popComponentFromEL must be called after the return from the broadcast, even in the case of an exception. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:911 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this UIViewRoot. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:912 - Override the default UIComponentBase#encodeBegin behavior. If #getBeforePhaseListener returns non-null, invoke it, passing a PhaseEvent for the PhaseId#RENDER_RESPONSE phase. If the internal list populated by calls to #addPhaseListener is non-empty, any listeners in that list must have their PhaseListener#beforePhase method called, passing the PhaseEvent. Any errors that occur during invocation of any of the the beforePhase listeners must be logged and swallowed. After listeners are invoked call superclass processing. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:913 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:914 - If jakarta.faces.context.PartialViewContext#isAjaxRequest returns true, perform partial rendering by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#RENDER_RESPONSE. If jakarta.faces.context.PartialViewContext#isAjaxRequest returns false, delegate to the parent jakarta.faces.component.UIComponentBase#encodeChildren method. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:915 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:916 - If #getAfterPhaseListener returns non-null, invoke it, passing a PhaseEvent for the PhaseId#RENDER_RESPONSE phase. Any errors that occur during invocation of the afterPhase listener must be logged and swallowed. If the current view has view parameters, as indicated by a non-empty and non-UnsupportedOperationException throwing return from jakarta.faces.view.ViewDeclarationLanguage#getViewMetadata(jakarta.faces.context.FacesContext, String), call UIViewParameter#encodeAll on each parameter. If calling getViewParameters() causes UnsupportedOperationException to be thrown, the exception must be silently swallowed. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:917 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - JSF:JAVADOC:918 - Return the MethodExpression that will be invoked after this view is rendered. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:919 - Return the MethodExpression that will be invoked before this view is rendered. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:921 - if target or context is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:922 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:923 - Return the Locale to be used in localizing the response being created for this view. Algorithm: If we have a locale ivar, return it. If we have a value expression for "locale", get its value. If the value is null, return the result of calling jakarta.faces.application.ViewHandler#calculateLocale. If the value is an instance of java.util.Locale return it. If the value is a String, convert it to a java.util.Locale and return it. If there is no value expression for "locale", return the result of calling jakarta.faces.application.ViewHandler#calculateLocale. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:924 - Return an unmodifiable list of the PhaseListener instances attached to this UIViewRoot instance. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:925 - Return the render kit identifier of the jakarta.faces.render.RenderKit associated with this view. Unless explicitly set, as in jakarta.faces.application.ViewHandler#createView, the returned value will be null. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:926 - Call UIComponentBase#getRendersChildren If jakarta.faces.context.PartialViewContext#isAjaxRequest returns true this method must return true. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:927 - Return the view identifier for this view. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:928 - Return the SystemEventListener instances registered on this UIComponent instance that are interested in events of type eventClass. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - - - - - JSF:JAVADOC:929 - if argument systemEvent is null. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - - java.lang.NullPointerException - - - - JSF:JAVADOC:930 - This implementation simply calls through to #getViewMap(boolean), passing true as the argument, and returns the result. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:933 - Broadcast any events that have been queued for the Invoke Application phase of the request processing lifecycle and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:934 - if context is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:935 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#APPLY_REQUEST_VALUES if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processDecodes if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase#processDecodes behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:936 - if context is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:938 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#UPDATE_MODEL_VALUES if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processUpdates if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:939 - if context is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:940 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#PROCESS_VALIDATIONS if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processValidators if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase#processValidators behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:941 - if context is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:942 - Override the default UIComponentBase#queueEvent behavior to accumulate the queued events for later broadcasting. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:943 - if this component is not a descendant of a UIViewRoot - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalStateException - - - - JSF:JAVADOC:944 - if event is null - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:945 - Remove argument component, which is assumed to represent a resource instance, as a resource to this view. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:946 - Remove argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The component must be removed using the following algorithm: If the target argument is null, look for a target attribute on the component. If there is no target attribute, set target to be the default value head Call #getComponentResources to obtain the child list for the given target. Remove the component resource from the child list. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:947 - If the argument toRemove is in the list of PhaseListeners for this instance, it must be removed. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:948 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:949 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:950 - Allow an arbitrary method to be called for the "afterPhase" event as the UIViewRoot runs through its lifecycle. This method will be called for all phases including PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, this approach doesn't allow for only receiving PhaseEvents for a given phase. The method must conform to the signature of PhaseListener#afterPhase. - jakarta.faces.component - UIViewRoot - - - MethodExpression - - - - - JSF:JAVADOC:951 - Allow an arbitrary method to be called for the "beforePhase" event as the UIViewRoot runs through its lifecycle. This method will be called for all phases except PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, this approach doesn't allow for only receiving PhaseEvents for a given phase. The method must conform to the signature of PhaseListener#beforePhase. - jakarta.faces.component - UIViewRoot - - - MethodExpression - - - - - JSF:JAVADOC:952 - Overridden to take no action. - jakarta.faces.component - UIViewRoot - - - boolean - - - - - JSF:JAVADOC:953 - Set the Locale to be used in localizing the response being created for this view. - jakarta.faces.component - UIViewRoot - - - java.util.Locale - - - - - JSF:JAVADOC:954 - Set the render kit identifier of the jakarta.faces.render.RenderKit associated with this view. This method may be called at any time between the end of Apply Request Values phase of the request processing lifecycle (i.e. when events are being broadcast) and the beginning of the Render Response phase. - jakarta.faces.component - UIViewRoot - - - java.lang.String - - - - - JSF:JAVADOC:955 - Set the view identifier for this view. - jakarta.faces.component - UIViewRoot - - - java.lang.String - - - - - JSF:JAVADOC:956 - Install the listener instance referenced by argument listener into the UIViewRoot as a listener for events of type systemEventClass. Note that installed listeners are not maintained as part of the UIViewRoot's state. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:957 - if systemEventClass or listener are null. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:958 - Create a new UIViewRoot instance with default property values. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:959 - Remove the listener instance referenced by argument listener from the UIViewRoot as a listener for events of type systemEventClass. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:960 - if systemEventClass or listener are null. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:961 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UniqueIdVendor - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:962 - Return the FacesMessage passed to the constructor. - jakarta.faces.component - UpdateModelException - - - - JSF:JAVADOC:963 - Store the argument facesMessage so it may be returned from #getFacesMessage and pass the argument cause to the super constructor. - jakarta.faces.component - UpdateModelException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - JSF:JAVADOC:964 - Return the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - ValueHolder - - - - JSF:JAVADOC:965 - Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression. - jakarta.faces.component - ValueHolder - - - - JSF:JAVADOC:967 - Set the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - ValueHolder - - - jakarta.faces.convert.Converter - - - - - JSF:JAVADOC:968 - Set the value of this UIComponent (if any). - jakarta.faces.component - ValueHolder - - - java.lang.Object - - - - - JSF:JAVADOC:969 - Add the specified AjaxBehaviorListener to the set of listeners registered to receive event notifications from this AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - - - - JSF:JAVADOC:970 - if listener is null - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:971 - - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:972 - Return a non-empty Collection of component identifiers that will be used to identify components that should be processed during the execute phase of the request processing lifecycle. Note that the returned collection may be unmodifiable. Modifications should be performed by calling #setExecute. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:973 - This method returns an unmodifiable Set containing the ClientBehaviorHint SUBMITTING. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:974 - Return the String of JavaScript function name that will be used to identify the client callback function that should be run in the event of an error. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:975 - Return the String of JavaScript function name that will be used to identify the client callback function that should be run on the occurance of a client-side event. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:976 - Return a non-empty Collection of component identifiers that will be used to identify components that should be processed during the render phase of the request processing lifecycle. Note that the returned collection may be unmodifiable. Modifications should be performed by calling #setRender. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:977 - Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The default implementation returns null. Subclasses should either override this method to return a string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and perform script rendering locally in the ClientBehavior implementation. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:978 - Returns the ValueExpression used to calculate the value for the specified property name, if any. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - JSF:JAVADOC:979 - if name is null - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:980 - Return the disabled status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:982 - Tests whether the immediate attribute is specified. Returns true if the immediate attribute is specified, either as a locally set property or as a value expression. This information allows an associated client behavior renderer to fall back on the parent component's immediate status when immediate is not explicitly specified on the AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:983 - Remove the specified AjaxBehaviorListener from the set of listeners registered to receive event notifications from this AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - - - - JSF:JAVADOC:984 - if listener is null - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:985 - Implementation of jakarta.faces.component.StateHolder#restoreState. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:986 - Implementation of jakarta.faces.component.StateHolder#saveState. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:987 - Sets the disabled status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - JSF:JAVADOC:988 - Sets the component identifiers that will be used to identify components that should be processed during the execute phase of the request processing lifecycle. - jakarta.faces.component.behavior - AjaxBehavior - - - java.util.Collection - - - - - JSF:JAVADOC:989 - Sets the immediate status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - JSF:JAVADOC:990 - Sets the JavaScript function name that will be used to identify the client callback function that should be run in the event of an error. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - JSF:JAVADOC:991 - Sets the JavaScript function name that will be used to identify the client callback function that should be run in response to event activity. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - JSF:JAVADOC:992 - Sets the component identifiers that will be used to identify components that should be processed during the render phase of the request processing lifecycle. - jakarta.faces.component.behavior - AjaxBehavior - - - java.util.Collection - - - - - JSF:JAVADOC:993 - Sets the ValueExpression used to calculate the value for the specified property name. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - ValueExpression - - - - - JSF:JAVADOC:994 - if name is null - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - JSF:JAVADOC:995 - Broadcast the specified BehaviorEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. - jakarta.faces.component.behavior - Behavior - - - jakarta.faces.event.BehaviorEvent - - - - - JSF:JAVADOC:996 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component.behavior - Behavior - - - jakarta.faces.event.BehaviorEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:997 - if the implementation class of this BehaviorEvent is not supported by this component - jakarta.faces.component.behavior - Behavior - - - jakarta.faces.event.BehaviorEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:998 - if event is null - jakarta.faces.component.behavior - Behavior - - - jakarta.faces.event.BehaviorEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:999 - - jakarta.faces.component.behavior - BehaviorBase - - - - JSF:JAVADOC:1000 - Default implementation of Behavior#broadcast. Delivers the specified BehaviorEvent to all registered BehaviorListener event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were registered (added). - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - - - - JSF:JAVADOC:1001 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1002 - if the implementation class of this BehaviorEvent is not supported by this component - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1003 - if event is null - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:1004 - Clears the initial state flag, causing the behavior to revert from partial to full state saving. - jakarta.faces.component.behavior - BehaviorBase - - - - JSF:JAVADOC:1005 - Implementation of jakarta.faces.component.PartialStateHolder#initialStateMarked. - jakarta.faces.component.behavior - BehaviorBase - - - - JSF:JAVADOC:1006 - Implementation of jakarta.faces.component.StateHolder#isTransient. - jakarta.faces.component.behavior - BehaviorBase - - - - JSF:JAVADOC:1007 - Implementation of jakarta.faces.component.PartialStateHolder#markInitialState. - jakarta.faces.component.behavior - BehaviorBase - - - - JSF:JAVADOC:1008 - Implementation of jakarta.faces.component.StateHolder#restoreState. - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1009 - Implementation of jakarta.faces.component.StateHolder#saveState. - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1010 - Implementation of jakarta.faces.component.StateHolder#setTransient. - jakarta.faces.component.behavior - BehaviorBase - - - boolean - - - - - JSF:JAVADOC:1011 - Decode any new state of this ClientBehavior from the request contained in the specified FacesContext. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). Default implementation delegates decoding to jakarta.faces.render.ClientBehaviorRenderer#decode(FacesContext, UIComponent, ClientBehavior) - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1012 - if context or component is null. - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:1013 - Returns hints that describe the behavior of the ClientBehavior implementation. The hints may impact how Renderers behave in the presence of Behaviors. For example, when a Behavior that specifies ClientBehaviorHint.SUBMITTING is present, the Renderer may choose to alternate the scripts that it generates itself. - jakarta.faces.component.behavior - ClientBehavior - - - - JSF:JAVADOC:1014 - Return the script that implements this ClientBehavior's client-side logic. ClientBehavior.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehavior implementation may return null if the Behavior is disabled. - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.component.behavior.ClientBehaviorContext - - - - - JSF:JAVADOC:1015 - if behaviorContext is null - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.component.behavior.ClientBehaviorContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1016 - - jakarta.faces.component.behavior - ClientBehaviorBase - - - - JSF:JAVADOC:1017 - Default implementation of of ClientBehavior#decode. If a ClientBehaviorRenderer is available for the specified behavior renderer type, this method delegates to the ClientBehaviorRenderer's decode() method. Otherwise, no decoding is performed. - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1018 - if context or component is null. - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:1019 - Default implementation of ClientBehavior#getHints(). By default, no hints are specified, and this method returns an empty, umodifiable set. - jakarta.faces.component.behavior - ClientBehaviorBase - - - - JSF:JAVADOC:1020 - Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The default implementation returns null. Subclasses should either override this method to return a string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and perform script rendering locally in the ClientBehavior implementation. - jakarta.faces.component.behavior - ClientBehaviorBase - - - - JSF:JAVADOC:1021 - Default implementation of of ClientBehavior#getScript. If a ClientBehaviorRenderer is available for the specified behavior renderer type, this method delegates to the ClientBehaviorRenderer#getScript method. Otherwise, this method returns null. - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.component.behavior.ClientBehaviorContext - - - - - JSF:JAVADOC:1022 - if behaviorContext is null - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.component.behavior.ClientBehaviorContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1023 - - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1024 - Creates a ClientBehaviorContext instance. - jakarta.faces.component.behavior - ClientBehaviorContext - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - java.lang.String - java.util.Collection - - - - - JSF:JAVADOC:1025 - if context, component or eventName is null - jakarta.faces.component.behavior - ClientBehaviorContext - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - java.lang.String - java.util.Collection - - java.lang.NullPointerException - - - - JSF:JAVADOC:1026 - Returns the UIComponent that is requesting the ClientBehavior script. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1027 - Returns the name of the behavior event for which the ClientBehavior script is being requested. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1028 - Returns the FacesContext for the current request. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1029 - Returns parameters that "submitting" ClientBehavior implementations should include when posting back data into the Faces lifecycle. If no parameters are specified, this method returns an empty (non-null) collection. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1030 - Returns an id for use as the ClientBehavior source. ClientBehavior implementations that submit back to the Faces lifecycle are required to identify which component triggered the ClientBehavior-initiated request via the jakarta.faces.source request parameter. In most cases, th source id can be trivially derived from the element to which the behavior's client-side script is attached - ie. the source id is typically the id of this element. However, in components which produce more complex content, the behavior script may not be able to determine the correct id to use for the jakarta.faces.source value. The ClientBehaviorContext#getSourceId method allows the component to pass this information into the ClientBehavior#getScript implementation. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - JSF:JAVADOC:1031 - Creates a Parameter instance. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:1032 - Returns the Parameter's name. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - - JSF:JAVADOC:1033 - Returns the Parameter's value. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - - JSF:JAVADOC:1034 - - jakarta.faces.component.behavior - ClientBehaviorHint - - - java.lang.String - - - - - JSF:JAVADOC:1035 - - jakarta.faces.component.behavior - ClientBehaviorHint - - - - JSF:JAVADOC:1037 - Returns a non-null, unmodifiable Map that contains the the ClientBehaviors that have been attached to the component implementing this interface. The keys in this Map are event names defined by #getEventNames. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - JSF:JAVADOC:1038 - Returns the default event name for this ClientBehaviorHolder implementation. This must be one of the event names returned by #getEventNames or null if the component does not have a default event. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - JSF:JAVADOC:1039 - Returns a non-null, unmodifiable Collection containing the names of the logical events supported by the component implementing this interface. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - JSF:JAVADOC:1040 - - jakarta.faces.component.behavior - FacesBehavior - - - - JSF:JAVADOC:1042 - Returns a VisitContext instance that is initialized with the specified ids and hintsfor use with UIComponent#visitTree. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.context.FacesContext - java.util.Collection - java.util.Set - - - - - JSF:JAVADOC:1043 - Creates a VisitContext instance for use with UIComponent#visitTree UIComponent.visitTree(). This method can be used to obtain a VisitContext instance when all components should be visited with the default visit hints. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1044 - Returns the FacesContext for the current request. - jakarta.faces.component.visit - VisitContext - - - - JSF:JAVADOC:1046 - Returns the ids of the components to visit. In the case of a full tree visit, this method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a modifiable collection containing the client ids of the components that should be visited. - jakarta.faces.component.visit - VisitContext - - - - JSF:JAVADOC:1047 - Given a jakarta.faces.component.NamingContainer component, returns the client ids of any components underneath the NamingContainer that should be visited. This method is called by NamingContainer visitTree() implementations to determine whether the NamingContainer contains components to be visited. In the case where no such components exist, the NamingContainer can short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating components such as UIData may be able to use the returned ids to determine which iterated states (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those rows that contain visit targets need to be traversed. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1049 - Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.component.UIComponent - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:1050 - - jakarta.faces.component.visit - VisitContext - - - - JSF:JAVADOC:1051 - Return a new VisitContext instance. - jakarta.faces.component.visit - VisitContextFactory - - - jakarta.faces.context.FacesContext - java.util.Collection - java.util.Set - - - - - JSF:JAVADOC:1052 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.component.visit - VisitContextFactory - - - - JSF:JAVADOC:1053 - - jakarta.faces.component.visit - VisitContextFactory - - - - JSF:JAVADOC:1054 - Returns the FacesContext for the current request. - jakarta.faces.component.visit - VisitContextWrapper - - - - JSF:JAVADOC:1056 - Returns the ids of the components to visit. In the case of a full tree visit, this method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a modifiable collection containing the client ids of the components that should be visited. - jakarta.faces.component.visit - VisitContextWrapper - - - - JSF:JAVADOC:1057 - Given a jakarta.faces.component.NamingContainer component, returns the client ids of any components underneath the NamingContainer that should be visited. This method is called by NamingContainer visitTree() implementations to determine whether the NamingContainer contains components to be visited. In the case where no such components exist, the NamingContainer can short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating components such as UIData may be able to use the returned ids to determine which iterated states (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those rows that contain visit targets need to be traversed. - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1059 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.component.visit - VisitContextWrapper - - - - JSF:JAVADOC:1060 - Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.UIComponent - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:1061 - - jakarta.faces.component.visit - VisitContextWrapper - - - - JSF:JAVADOC:1062 - - jakarta.faces.component.visit - VisitHint - - - java.lang.String - - - - - JSF:JAVADOC:1063 - - jakarta.faces.component.visit - VisitHint - - - - JSF:JAVADOC:1064 - - jakarta.faces.component.visit - VisitResult - - - java.lang.String - - - - - JSF:JAVADOC:1065 - - jakarta.faces.component.visit - VisitResult - - - - JSF:JAVADOC:1066 - - jakarta.faces.context - ExceptionHandler - - - - JSF:JAVADOC:1067 - Return the first ExceptionQueuedEvent handled by this handler. - jakarta.faces.context - ExceptionHandler - - - - JSF:JAVADOC:1068 - The default implementation must return an Iterable over all ExceptionQueuedEvents that have been handled by the #handle method. - jakarta.faces.context - ExceptionHandler - - - - JSF:JAVADOC:1069 - Unwrap the argument t until the unwrapping encounters an Object whose getClass() is not equal to FacesException.class or jakarta.el.ELException.class. If there is no root cause, null is returned. - jakarta.faces.context - ExceptionHandler - - - java.lang.Throwable - - - - - JSF:JAVADOC:1070 - if argument t is null. - jakarta.faces.context - ExceptionHandler - - - java.lang.Throwable - - java.lang.NullPointerException - - - - JSF:JAVADOC:1071 - Return an Iterable over all ExceptionQueuedEvents that have not yet been handled by the #handle method. - jakarta.faces.context - ExceptionHandler - - - - JSF:JAVADOC:1072 - Take action to handle the Exception instances residing inside the ExceptionQueuedEvent instances that have been queued by calls to Application().publishEvent(ExceptionQueuedEvent.class, eventContext). The requirements of the default implementation are detailed in section JSF.6.2.1. - jakarta.faces.context - ExceptionHandler - - - - JSF:JAVADOC:1073 - if and only if a problem occurs while performing the algorithm to handle the Exception, not as a means of conveying a handled Exception itself. - jakarta.faces.context - ExceptionHandler - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1074 - - jakarta.faces.context - ExceptionHandler - - - java.lang.Object - - - - - JSF:JAVADOC:1075 - - jakarta.faces.context - ExceptionHandler - - - jakarta.faces.event.SystemEvent - - - - - JSF:JAVADOC:1076 - - jakarta.faces.context - ExceptionHandler - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1077 - - jakarta.faces.context - ExceptionHandlerFactory - - - - JSF:JAVADOC:1078 - Create and return a A new ExceptionHandler instance. The implementation must return an ExceptionHandler instance suitable for the environment. For example, in some cases it may be desirable for an ExceptionHandler to write error information to the response instead of throwing exceptions as in the case of Ajax applications. - jakarta.faces.context - ExceptionHandlerFactory - - - - JSF:JAVADOC:1079 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.context - ExceptionHandlerFactory - - - - JSF:JAVADOC:1080 - - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1081 - The default behavior of this method is to call ExceptionHandler#getHandledExceptionQueuedEvent() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1082 - The default behavior of this method is to call ExceptionHandler#getHandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1083 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#getRootCause(Throwable) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - java.lang.Throwable - - - - - JSF:JAVADOC:1084 - The default behavior of this method is to call ExceptionHandler#getUnhandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1085 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1086 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#handle() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - JSF:JAVADOC:1087 - - jakarta.faces.context - ExceptionHandlerWrapper - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1088 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#isListenerForSource(Object) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:1089 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#processEvent(jakarta.faces.event.SystemEvent) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - jakarta.faces.event.SystemEvent - - - - - JSF:JAVADOC:1090 - - jakarta.faces.context - ExceptionHandlerWrapper - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1092 - if the properties Map is not-null and not empty and contains any keys that are not one of the keys listed above. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - java.util.Map - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1093 - Add the given name and value to the response header. Servlet:This must be performed by calling the javax.servlet.http.HttpServletResponse addHeader method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:1095 - if an input/output error occurs - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1096 - thrown if a ServletException occurs - jakarta.faces.context - ExternalContext - - - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1100 - if url is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1102 - Return the specified name, after prefixing it with a namespace that ensures that it will be unique within the context of a particular page. Servlet: The input value must be returned unchanged. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1105 - if url is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1107 - Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable resource in the current application. Servlet: This must be the value returned by the javax.servlet.http.HttpServletResponse method encodeURL(url). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1108 - if url is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1109 - - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1110 - Return a mutable Map representing the application scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of application scope attributes. Particularly the clear(), remove(), put(), putAll(), and get() operations must take the appropriate action on the underlying data structure. For any of the Map methods that cause an element to be removed from the underlying data structure, the following action regarding managed-beans must be taken. If the element to be removed is a managed-bean, and it has one or more public no-argument void return methods annotated with jakarta.annotation.PreDestroy, each such method must be called before the element is removed from the underlying data structure. Elements that are not managed-beans, but do happen to have methods with that annotation must not have those methods called on removal. Any exception thrown by the PreDestroy annotated methods must by caught and not rethrown. The exception may be logged. It is valid to call this method during application startup or shutdown. If called at startup or shutdown time, this method returns a Map that is backed by the same container context instance (ServletContext or PortletContext) as the one returned by calling getApplicationMap() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the set of attributes available via the javax.servlet.ServletContext methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1111 - Return the name of the authentication scheme used to authenticate the current user, if any; otherwise, return null. For standard authentication schemes, the returned value will match one of the following constants: BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, or FORM_AUTH. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getAuthType(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1112 - Return the application environment object instance for the current appication. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this returns the same container context instance (ServletContext or PortletContext) as the one returned when calling getContext() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the current application's javax.servlet.ServletContext instance. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1113 - Return the name of the container context for this application. Return the result of calling getServletContextName() on the ServletContext instance for this application. It is valid to call this method during application startup or shutdown. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1114 - Return the threadsafe Flash for this application. The default implementation will throw UnsupportedOperationException. Compliant JSF runtimes must provide an implementation of this method. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1115 - Return the value of the specified application initialization parameter (if any). Servlet: This must be the result of the javax.servlet.ServletContext method getInitParameter(name). It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the actual container context to return the init parameter value. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1116 - if name is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1117 - Return an immutable Map whose keys are the set of application initialization parameter names configured for this application, and whose values are the corresponding parameter values. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns a Map that is backed by the same container context instance (ServletContext or PortletContext) as the one returned by calling getInitParameterMap() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This result must be as if it were synthesized by calling the javax.servlet.ServletContext method getInitParameterNames, and putting each configured parameter name/value pair into the result. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1118 - Returns the MIME type of the specified file or null if the MIME type is not known. The MIME type is determined by the container. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getMimeType() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getMimeType() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the value returned by the javax.servlet.ServletContext method getMimeType(). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1119 - Returns a String containing the real path for a given virtual path. Servlet: This must be the value returned by the javax.servlet.ServletContext method getRealPath(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1120 - Return the login name of the user making the current request if any; otherwise, return null. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getRemoteUser(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1121 - Return the environment-specific object instance for the current request. Servlet: This must be the current request's javax.servlet.http.HttpServletRequest instance. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1122 - Return the character encoding currently being used to interpret this request. Servlet: This must return the value returned by the javax.servlet.ServletRequest method getCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1123 - Return the result of calling getContentLenth() on the ServletRequest instance for this request. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1124 - Return the MIME Content-Type for this request. If not available, return null. Servlet: This must return the value returned by the javax.servlet.ServletRequest method getContentType(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1125 - Return the portion of the request URI that identifies the web application context for this request. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getContextPath(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1126 - Return an immutable Map whose keys are the set of cookie names included in the current request, and whose values (of type javax.servlet.http.Cookie) are the first (or only) cookie for each cookie name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getCookies(), unless null was returned, in which case this must be a zero-length array. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1127 - Return an immutable Map whose keys are the set of request header names included in the current request, and whose values (of type String) are the first (or only) value for each header name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must be performed in a case insensitive manner. Servlet: This must be the set of headers available via the javax.servlet.http.HttpServletRequest methods getHeader() and getHeaderNames(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1128 - Return an immutable Map whose keys are the set of request header names included in the current request, and whose values (of type String[]) are all of the value for each header name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must be performed in a case insensitive manner. Servlet: This must be the set of headers available via the javax.servlet.http.HttpServletRequest methods getHeaders() and getHeaderNames(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1129 - Return the preferred Locale in which the client will accept content. Servlet: This must be the value returned by the javax.servlet.ServletRequest method getLocale(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1130 - Return an Iterator over the preferred Locales specified in the request, in decreasing order of preference. Servlet: This must be an Iterator over the values returned by the javax.servlet.ServletRequest method getLocales(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1131 - Return a mutable Map representing the request scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of request scope attributes. Particularly the clear(), remove(), put(), putAll(), and get() operations must take the appropriate action on the underlying data structure. For any of the Map methods that cause an element to be removed from the underlying data structure, the following action regarding managed-beans must be taken. If the element to be removed is a managed-bean, and it has one or more public no-argument void return methods annotated with jakarta.annotation.PreDestroy, each such method must be called before the element is removed from the underlying data structure. Elements that are not managed-beans, but do happen to have methods with that annotation must not have those methods called on removal. Any exception thrown by the PreDestroy annotated methods must by caught and not rethrown. The exception may be logged. Servlet: This must be the set of attributes available via the javax.servlet.ServletRequest methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1132 - Return an immutable Map whose keys are the set of request parameters names included in the current request, and whose values (of type String) are the first (or only) value for each parameter name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Servlet: This must be the set of parameters available via the javax.servlet.ServletRequest methods getParameter() and getParameterNames(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1133 - Return an Iterator over the names of all request parameters included in the current request. Servlet: This must be an Iterator over the values returned by the javax.servlet.ServletRequest method getParameterNames(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1134 - Return an immutable Map whose keys are the set of request parameters names included in the current request, and whose values (of type String[]) are all of the values for each parameter name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Servlet: This must be the set of parameters available via the javax.servlet.ServletRequest methods getParameterValues() and getParameterNames(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1135 - Return the extra path information (if any) included in the request URI; otherwise, return null. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getPathInfo(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1136 - Returns the name of the scheme used to make this request, for example, http, https, or ftp. Servlet: This must be the value returned by the javax.servlet.ServletRequest method getScheme(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1137 - Returns the host name of the server to which the request was sent. Servlet: This must be the value returned by the javax.servlet.ServletRequest method getServerName(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1138 - Returns the port number to which the request was sent. Servlet: This must be the value returned by the javax.servlet.ServletRequest method getServerPort(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1139 - Return the servlet path information (if any) included in the request URI; otherwise, return null. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getServletPath(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1140 - Return a URL for the application resource mapped to the specified path, if it exists; otherwise, return null. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResource() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResource() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the value returned by the javax.servlet.ServletContext method getResource(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1141 - if the specified path is not in the correct form - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.net.MalformedURLException - - - - JSF:JAVADOC:1142 - if path is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1143 - Return an InputStream for an application resource mapped to the specified path, if it exists; otherwise, return null. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResourceAsStream() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResourceAsStream() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the value returned by the javax.servlet.ServletContext method getResourceAsStream(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1144 - if path is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1145 - Return the Set of resource paths for all application resources whose resource path starts with the specified argument. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResourcePaths() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResourcePaths() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be the value returned by the javax.servlet.ServletContext method getResourcePaths(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1146 - if path is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1147 - Return the environment-specific object instance for the current response. Servlet: This is the current request's javax.servlet.http.HttpServletResponse instance. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1148 - Return the buffer size for the current response. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse getBufferSize method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1149 - Returns the name of the character encoding (MIME charset) used for the body sent in this response. Servlet: This must return the value returned by the javax.servlet.ServletResponse method getCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1150 - Return the MIME Content-Type for this response. If not available, return null. Servlet: This must return the value returned by the javax.servlet.ServletResponse method getContentType(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1151 - Returns an OutputStream suitable for writing binary data to the user-agent. Servlet: This must return the value returned by the javax.servlet.ServletResponse method getOutputStream(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1152 - - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - JSF:JAVADOC:1153 - Returns a Writer suitable for writing character data to the user-agent. Servlet: This must return the value returned by the javax.servlet.ServletResponse#getWriter. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1154 - - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - JSF:JAVADOC:1155 - If the create parameter is true, create (if necessary) and return a session instance associated with the current request. If the create parameter is false return any existing session instance associated with the current request, or return null if there is no such session. Servlet: This must return the result of calling getSession(create) on the underlying javax.servlet.http.HttpServletRequest instance. - jakarta.faces.context - ExternalContext - - - boolean - - - - - JSF:JAVADOC:1157 - Return the Principal object containing the name of the current authenticated user, if any; otherwise, return null. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method getUserPrincipal(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1158 - Invalidates this session then unbinds any objects bound to it. Servlet: This must be the value returned by the javax.servlet.http.HttpSession method invalidate(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1159 - Check if the current response has been committed. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse isCommitted method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1160 - Return true if the currently authenticated user is included in the specified role. Otherwise, return false. Servlet: This must be the value returned by the javax.servlet.http.HttpServletRequest method isUserInRole(role). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1161 - if role is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1162 - Log the specified message to the application object. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this calls the log() method on the same container context instance (ServletContext or PortletContext) as the one used during a call to log() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be performed by calling the javax.servlet.ServletContext method log(String). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1163 - if message is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1164 - Log the specified message and exception to the application object. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this calls the log() method on the same container context instance (ServletContext or PortletContext) as the one used when calling log() on the ExternalContext returned by the FacesContext during an actual request. Servlet: This must be performed by calling the javax.servlet.ServletContext method log(String,Throwable). - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1165 - if message or exception is null - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.Throwable - - java.lang.NullPointerException - - - - JSF:JAVADOC:1166 - Redirect a request to the specified URL, and cause the responseComplete() method to be called on the FacesContext instance for the current request. The implementation must determine if the request is an Ajax request by obtaining a PartialViewContext instance from the FacesContext and calling PartialViewContext#isAjaxRequest(). Servlet: For non Ajax requests, this must be accomplished by calling the javax.servlet.http.HttpServletResponse method sendRedirect(). For Ajax requests, the implementation must: Get a PartialResponseWriter instance from the FacesContext. Call #setResponseContentType with text/xml Call #setResponseCharacterEncoding with UTF-8 Call #addResponseHeader with Cache-Control, no-cache Call PartialResponseWriter#startDocument Call PartialResponseWriter#redirect with the url argument. Call PartialResponseWriter#endDocument - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1167 - if an input/output error occurs - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1168 - if the specified url is relative - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1169 - if, in a portlet environment, the current response object is a RenderResponse instead of an ActionResponse - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1170 - if, in a servlet environment, the current response has already been committed - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1171 - Flushes the buffered response content to the client. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse flushBuffer method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1172 - - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - JSF:JAVADOC:1173 - Resets the current response. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse reset method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1174 - Sends an HTTP status code with message. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse sendError method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - java.lang.String - - - - - JSF:JAVADOC:1175 - - jakarta.faces.context - ExternalContext - - - int - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1176 - Set the environment-specific request to be returned by subsequent calls to #getRequest. This may be used to install a wrapper for the request. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.Object - - - - - JSF:JAVADOC:1177 - Overrides the name of the character encoding used in the body of this request. Calling this method after the request has been accessed will have no no effect, unless a Reader or Stream has been obtained from the request, in which case an IllegalStateException is thrown. Servlet: This must call through to the javax.servlet.ServletRequest method setCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1178 - if this is not a valid encoding - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.UnsupportedEncodingException - - - - JSF:JAVADOC:1179 - Set the environment-specific response to be returned by subsequent calls to #getResponse. This may be used to install a wrapper for the response. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.Object - - - - - JSF:JAVADOC:1180 - Set the buffer size for the current response. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse setBufferSize method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - JSF:JAVADOC:1181 - Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. Servlet: This must call through to the javax.servlet.ServletResponse method setCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1182 - Set the content length of the response. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse setContentLength method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - JSF:JAVADOC:1183 - Sets the content type of the response being sent to the client, if the response has not been committed yet. Servlet: This must call setContentType() on the underlying javax.servlet.ServletResponse instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1184 - Set the response header with the given name and value. Servlet:This must be performed by calling the javax.servlet.http.HttpServletResponse setHeader method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:1185 - Sets the HTTP status code for the response. Servlet: This must be performed by calling the javax.servlet.http.HttpServletResponse setStatus method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - JSF:JAVADOC:1186 - - jakarta.faces.context - ExternalContextFactory - - - - JSF:JAVADOC:1187 - Create (if needed) and return an ExternalContext instance that is initialized for the processing of the specified request and response objects, for this web application. - jakarta.faces.context - ExternalContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1188 - if a ExternalContext cannot be constructed for the specified parameters - jakarta.faces.context - ExternalContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1189 - if any of the parameters are null - jakarta.faces.context - ExternalContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1190 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.context - ExternalContextFactory - - - - JSF:JAVADOC:1191 - The default behavior of this method is to call ExternalContext#addResponseCookie(String, String, Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1192 - The default behavior of this method is to call ExternalContext#addResponseHeader(String,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:1193 - The default behavior of this method is to call ExternalContext#dispatch(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1194 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1195 - The default behavior of this method is to call ExternalContext#encodeActionURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1196 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#encodeBookmarkableURL(String, java.util.Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1197 - The default behavior of this method is to call ExternalContext#encodeNamespace(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1200 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#encodeRedirectURL(String, java.util.Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1201 - The default behavior of this method is to call ExternalContext#encodeResourceURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1202 - - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1203 - The default behavior of this method is to call ExternalContext#getApplicationMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1204 - The default behavior of this method is to call ExternalContext#getAuthType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1205 - The default behavior of this method is to call ExternalContext#getContext on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1206 - The default behavior of this method is to call ExternalContext#getContextName on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1207 - The default behavior of this method is to call ExternalContext#getFlash() on the wrapped ExternalContext object.</p? - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1208 - The default behavior of this method is to call ExternalContext#getInitParameter(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1209 - The default behavior of this method is to call ExternalContext#getInitParameterMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1210 - The default behavior of this method is to call ExternalContext#getMimeType(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1211 - The default behavior of this method is to call ExternalContext#getRealPath(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1212 - The default behavior of this method is to call ExternalContext#getRemoteUser on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1213 - The default behavior of this method is to call ExternalContext#getRequest on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1214 - The default behavior of this method is to call ExternalContext#getRequestCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1215 - The default behavior of this method is to call ExternalContext#getRequestContentLength on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1216 - The default behavior of this method is to call ExternalContext#getRequestContentType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1217 - The default behavior of this method is to call ExternalContext#getRequestContextPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1218 - The default behavior of this method is to call ExternalContext#getRequestCookieMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1219 - The default behavior of this method is to call ExternalContext#getRequestHeaderMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1220 - The default behavior of this method is to call ExternalContext#getRequestHeaderValuesMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1221 - The default behavior of this method is to call ExternalContext#getRequestLocale on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1222 - The default behavior of this method is to call ExternalContext#getRequestLocales on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1223 - The default behavior of this method is to call ExternalContext#getRequestMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1224 - The default behavior of this method is to call ExternalContext#getRequestParameterMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1225 - The default behavior of this method is to call ExternalContext#getRequestParameterNames on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1226 - The default behavior of this method is to call ExternalContext#getRequestParameterValuesMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1227 - The default behavior of this method is to call ExternalContext#getRequestPathInfo on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1228 - The default behavior of this method is to call ExternalContext#getRequestScheme on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1229 - The default behavior of this method is to call ExternalContext#getRequestServerName on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1230 - The default behavior of this method is to call ExternalContext#getRequestServerPort on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1231 - The default behavior of this method is to call ExternalContext#getRequestServletPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1232 - The default behavior of this method is to call ExternalContext#getResource(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1233 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.net.MalformedURLException - - - - JSF:JAVADOC:1234 - The default behavior of this method is to call ExternalContext#getResourceAsStream(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1235 - The default behavior of this method is to call ExternalContext#getResourcePaths(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1236 - The default behavior of this method is to call ExternalContext#getResponse on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1237 - The default behavior of this method is to call ExternalContext#getResponseBufferSize() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1238 - The default behavior of this method is to call ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1239 - The default behavior of this method is to call ExternalContext#getResponseContentType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1240 - The default behavior of this method is to call ExternalContext#getResponseOutputStream on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1241 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - JSF:JAVADOC:1242 - The default behavior of this method is to call ExternalContext#getResponseOutputWriter on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1243 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - JSF:JAVADOC:1244 - The default behavior of this method is to call ExternalContext#getSession(boolean) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - boolean - - - - - JSF:JAVADOC:1246 - The default behavior of this method is to call ExternalContext#getUserPrincipal on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1247 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1248 - The default behavior of this method is to call ExternalContext#invalidateSession on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1249 - The default behavior of this method is to call ExternalContext#isResponseCommitted() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1250 - The default behavior of this method is to call ExternalContext#isUserInRole(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1251 - The default behavior of this method is to call ExternalContext#log(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1252 - The default behavior of this method is to call ExternalContext#log(String, Throwable) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1253 - The default behavior of this method is to call ExternalContext#redirect(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1254 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1255 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#responseFlushBuffer() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1256 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - JSF:JAVADOC:1257 - The default behavior of this method is to call ExternalContext#responseReset() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1258 - The default behavior of this method is to call ExternalContext#responseSendError(int,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - java.lang.String - - - - - JSF:JAVADOC:1259 - - jakarta.faces.context - ExternalContextWrapper - - - int - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1260 - The default behavior of this method is to call ExternalContext#setRequest(Object) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:1261 - The default behavior of this method is to call ExternalContext#setRequestCharacterEncoding(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1262 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.UnsupportedEncodingException - - - - JSF:JAVADOC:1263 - The default behavior of this method is to call ExternalContext#setResponse(Object) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:1264 - The default behavior of this method is to call ExternalContext#setResponseBufferSize(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - JSF:JAVADOC:1265 - The default behavior of this method is to call ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1266 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#setResponseContentLength(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - JSF:JAVADOC:1267 - The default behavior of this method is to call ExternalContext#setResponseContentType(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1268 - The default behavior of this method is to call ExternalContext#setResponseHeader(String,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:1269 - The default behavior of this method is to call ExternalContext#setResponseStatus(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - JSF:JAVADOC:1270 - Append a jakarta.faces.application.FacesMessage to the set of messages associated with the specified client identifier, if clientId is not null. If clientId is null, this jakarta.faces.application.FacesMessage is assumed to not be associated with any specific component instance. - jakarta.faces.context - FacesContext - - - java.lang.String - jakarta.faces.application.FacesMessage - - - - - JSF:JAVADOC:1271 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - java.lang.String - jakarta.faces.application.FacesMessage - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1272 - if message is null - jakarta.faces.context - FacesContext - - - java.lang.String - jakarta.faces.application.FacesMessage - - java.lang.NullPointerException - - - - JSF:JAVADOC:1273 - - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1274 - Return the Application instance associated with this web application. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, returns the correct current jakarta.faces.application.Application instance. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1275 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1276 - Return a mutable Map representing the attributes associated wth this FacesContext instance. This Map is useful to store attributes that you want to go out of scope when the Faces lifecycle for the current request ends, which is not always the same as the request ending, especially in the case of Servlet filters that are invoked after the Faces lifecycle for this request completes. Accessing this Map does not cause any events to fire, as is the case with the other maps: for request, session, and application scope. When #release() is invoked, the attributes must be cleared. The Map returned by this method is not associated with the request. If you would like to get or set request attributes, see ExternalContext#getRequestMap. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1277 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1278 - Return an Iterator over the client identifiers for which at least one jakarta.faces.application.FacesMessage has been queued. If there are no such client identifiers, an empty Iterator is returned. If any messages have been queued that were not associated with any specific client identifier, a null value will be included in the iterated values. The elements in the Iterator must be returned in the order in which they were added with #addMessage. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1279 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1280 - Return the FacesContext instance for the request that is being processed by the current thread. If called during application initialization or shutdown, any method documented as "valid to call this method during application startup or shutdown" must be supported during application startup or shutdown time. The result of calling a method during application startup or shutdown time that does not have this designation is undefined. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1281 - Return the value last set on this FacesContext instance when #setCurrentPhaseId was called. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1282 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1283 - Return the ELContext instance for this FacesContext instance. This ELContext instance has the same lifetime and scope as the FacesContext instance with which it is associated, and may be created lazily the first time this method is called for a given FacesContext instance. Upon creation of the ELContext instance, the implementation must take the following action: Call the ELContext#putContext method on the instance, passing in FacesContext.class and the this reference for the FacesContext instance itself. If the Collection returned by jakarta.faces.application.Application#getELContextListeners is non-empty, create an instance of jakarta.el.ELContextEvent and pass it to each jakarta.el.ELContextListener instance in the Collection by calling the jakarta.el.ELContextListener#contextCreated method. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1284 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1285 - Return the ExceptionHandler for this request. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1286 - Return the ExternalContext instance for this FacesContext instance. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns an ExternalContext instance with the special behaviors indicated in the javadoc for that class. Methods document as being valid to call during application startup or shutdown must be supported. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1287 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1289 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1290 - Like #getMessages, but returns a List, enabling use from EL expressions. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1291 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1292 - Like #getMessages(java.lang.String), but returns a List of messages for the component with client id matching argument clientId. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - java.lang.String - - - - - JSF:JAVADOC:1293 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1294 - Return an Iterator over the jakarta.faces.application.FacesMessages that have been queued, whether or not they are associated with any specific client identifier. If no such messages have been queued, return an empty Iterator. The elements of the Iterator must be returned in the order in which they were added with calls to #addMessage. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1295 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1296 - Return an Iterator over the jakarta.faces.application.FacesMessages that have been queued that are associated with the specified client identifier (if clientId is not null), or over the jakarta.faces.application.FacesMessages that have been queued that are not associated with any specific client identifier (if clientId is null). If no such messages have been queued, return an empty Iterator. The elements of the Iterator must be returned in the order in which they were added with calls to #addMessage. - jakarta.faces.context - FacesContext - - - java.lang.String - - - - - JSF:JAVADOC:1297 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1298 - Return the PartialViewContext for this request. The PartialViewContext is used to control the processing of specified components during the execute portion of the request processing lifecycle (known as partial processing) and the rendering of specified components (known as partial rendering). This method must return a new PartialViewContext if one does not already exist. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1299 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1300 - Return the RenderKit instance for the render kit identifier specified on our UIViewRoot, if there is one. If there is no current UIViewRoot, if the UIViewRoot does not have a specified renderKitId, or if there is no RenderKit for the specified identifier, return null instead. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1301 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1302 - Return true if the renderResponse() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1303 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1304 - Return true if the responseComplete() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1305 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1306 - Return the ResponseStream to which components should direct their binary output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1307 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1308 - Return the ResponseWriter to which components should direct their character-based output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1309 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1310 - Return the root component that is associated with the this request. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns a new UIViewRoot with its locale set to Locale.getDefault(). - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1311 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1312 - This utility method simply returns the result of jakarta.faces.render.ResponseStateManager#isPostback(FacesContext). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1313 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1314 - Returns a flag indicating whether or not the runtime should publish events when asked to do so. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1315 - Return true if the current ProjectStage as returned by the Application instance is equal to stage, otherwise return false - jakarta.faces.context - FacesContext - - - jakarta.faces.application.ProjectStage - - - - - JSF:JAVADOC:1316 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - jakarta.faces.application.ProjectStage - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1317 - if stage is null - jakarta.faces.context - FacesContext - - - jakarta.faces.application.ProjectStage - - java.lang.NullPointerException - - - - JSF:JAVADOC:1318 - Return true if the validationFailed() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1319 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1320 - Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown. If a call was made to #getAttributes during the processing for this request, the implementation must call clear() on the Map returned from getAttributes(), and then de-allocate the data-structure behind that Map. The implementation must call #setCurrentInstance passing null to remove the association between this thread and this dead FacesContext instance. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1321 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1322 - Signal the JavaServer faces implementation that, as soon as the current phase of the request processing lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1323 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1324 - Signal the JavaServer Faces implementation that the HTTP response for this request has already been generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1325 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1326 - The implementation must call this method at the earliest possble point in time after entering into a new phase in the request processing lifecycle. - jakarta.faces.context - FacesContext - - - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1327 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1328 - Set the ExceptionHandler for this request. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ExceptionHandler - - - - - JSF:JAVADOC:1329 - Allows control of wheter or not the runtime will publish events when Application#publishEvent(FacesContext, Class, Object) or Application#publishEvent(FacesContext, Class, Class, Object) is called. - jakarta.faces.context - FacesContext - - - boolean - - - - - JSF:JAVADOC:1330 - Set the ResponseStream to which components should direct their binary output. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseStream - - - - - JSF:JAVADOC:1331 - if responseStream is null - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseStream - - java.lang.NullPointerException - - - - JSF:JAVADOC:1332 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseStream - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1333 - Set the ResponseWriter to which components should direct their character-based output. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseWriter - - - - - JSF:JAVADOC:1334 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseWriter - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1335 - if responseWriter is null - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseWriter - - java.lang.NullPointerException - - - - JSF:JAVADOC:1337 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIViewRoot - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1338 - if root is null - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIViewRoot - - java.lang.NullPointerException - - - - JSF:JAVADOC:1339 - Sets a flag which indicates that a conversion or validation error occurred while processing the inputs. Inputs consist of either page parameters or form bindings. This flag can be read using #isValidationFailed. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1340 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1341 - - jakarta.faces.context - FacesContextFactory - - - - JSF:JAVADOC:1342 - Create (if needed) and return a FacesContext instance that is initialized for the processing of the specified request and response objects, utilizing the specified Lifecycle instance, for this web application. The implementation of this method must ensure that calls to the getCurrentInstance() method of FacesContext, from the same thread that called this method, will return the same FacesContext instance until the release() method is called on that instance. The implementation must call ExternalContextFactory#getExternalContext to produce the ExternalContext for the FacesContext instance. The default implementation must call ExceptionHandlerFactory#getExceptionHandler and make it so the return from that method is what gets returned from a call to FacesContext#getExceptionHandler on the returned FacesContext instance. - jakarta.faces.context - FacesContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - jakarta.faces.lifecycle.Lifecycle - - - - - JSF:JAVADOC:1343 - if a FacesContext cannot be constructed for the specified parameters - jakarta.faces.context - FacesContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - jakarta.faces.lifecycle.Lifecycle - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1344 - if any of the parameters are null - jakarta.faces.context - FacesContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - jakarta.faces.lifecycle.Lifecycle - - java.lang.NullPointerException - - - - JSF:JAVADOC:1345 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.context - FacesContextFactory - - - - JSF:JAVADOC:1346 - The default behavior of this method is to call FacesContext#addMessage(String, FacesMessage) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - jakarta.faces.application.FacesMessage - - - - - JSF:JAVADOC:1347 - - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1348 - The default behavior of this method is to call FacesContext#getApplication() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1349 - The default behavior of this method is to call FacesContext#getAttributes() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1350 - The default behavior of this method is to call jakarta.faces.context.FacesContext#getClientIdsWithMessages() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1351 - The default behavior of this method is to call FacesContext#getCurrentPhaseId() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1352 - The default behavior of this method is to call FacesContext#getELContext() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1353 - The default behavior of this method is to call FacesContext#getExceptionHandler() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1354 - The default behavior of this method is to call FacesContext#getExternalContext() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1355 - The default behavior of this method is to call FacesContext#getMaximumSeverity() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1356 - The default behavior of this method is to call FacesContext#getMessageList() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1357 - The default behavior of this method is to call FacesContext#getMessageList(String) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1358 - The default behavior of this method is to call FacesContext#getMessages() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1359 - The default behavior of this method is to call FacesContext#getMessages(String) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1360 - The default behavior of this method is to call FacesContext#getPartialViewContext() ()} on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1361 - The default behavior of this method is to call FacesContext#getRenderKit() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1362 - The default behavior of this method is to call FacesContext#getRenderResponse() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1363 - The default behavior of this method is to call FacesContext#getResponseComplete() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1364 - The default behavior of this method is to call FacesContext#getResponseStream() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1365 - The default behavior of this method is to call FacesContext#getResponseWriter() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1366 - The default behavior of this method is to call FacesContext#getViewRoot() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1367 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1368 - The default behavior of this method is to call FacesContext#isPostback() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1369 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isProcessingEvents() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1370 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isProjectStage(jakarta.faces.application.ProjectStage) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.application.ProjectStage - - - - - JSF:JAVADOC:1371 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isValidationFailed on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1372 - The default behavior of this method is to call FacesContext#release() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1373 - The default behavior of this method is to call FacesContext#renderResponse() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1374 - The default behavior of this method is to call FacesContext#responseComplete() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1375 - The default behavior of this method is to call FacesContext#setCurrentPhaseId(PhaseId) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1376 - The default behavior of this method is to call FacesContext#setExceptionHandler(ExceptionHandler) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ExceptionHandler - - - - - JSF:JAVADOC:1377 - The default behavior of this method is to call FacesContext#setProcessingEvents(boolean) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - boolean - - - - - JSF:JAVADOC:1378 - The default behavior of this method is to call FacesContext#setResponseStream(ResponseStream) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ResponseStream - - - - - JSF:JAVADOC:1379 - The default behavior of this method is to call FacesContext#setResponseWriter(ResponseWriter) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ResponseWriter - - - - - JSF:JAVADOC:1380 - The default behavior of this method is to call FacesContext#setViewRoot(UIViewRoot) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:1381 - The default behavior of this method is to call jakarta.faces.context.FacesContext#validationFailed() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:1382 - Called after the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle. - jakarta.faces.context - Flash - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1383 - Called before the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle. - jakarta.faces.context - Flash - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1384 - - jakarta.faces.context - Flash - - - - JSF:JAVADOC:1387 - Causes a value stored with a previous call to #putNow, its EL equivalent, or to the request Map, to be promoted to the flash so that is available on the next traversal through the lifecycle on this session. - jakarta.faces.context - Flash - - - java.lang.String - - - - - JSF:JAVADOC:1388 - Puts a value in the flash so that it can be accessed on this traversal of the lifecycle, rather than on the next traversal. This is simply an alias for putting a value in the request map. EL Usage Example Value of \#{flash.now.bar}, should be barValue. - jakarta.faces.context - Flash - - - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:1389 - Setter for keepMessages JavaBeans property. See #isKeepMessages. - jakarta.faces.context - Flash - - - boolean - - - - - JSF:JAVADOC:1390 - Setting this property to true indicates that the next request on this session will be a redirect. Recall that on a redirect, the server sends a special response to the client instructing it to issue a new request to a specific URI. The implementation must insure that reading the value of this property on that request will return true. EL Usage Example - jakarta.faces.context - Flash - - - boolean - - - - - JSF:JAVADOC:1391 - Write a delete operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1392 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1393 - Write the end of a partial response. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1394 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1395 - Write the end of an error. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1396 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1397 - Write the end of an eval operation. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1398 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1399 - Write the end of an extension operation. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1400 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1401 - Write the end of an insert operation. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1402 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1403 - Write the end of an update operation. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1404 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1405 - Return the wrapped ResponseWriter instance. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1406 - Create a PartialResponseWriter. - jakarta.faces.context - PartialResponseWriter - - - jakarta.faces.context.ResponseWriter - - - - - JSF:JAVADOC:1407 - Write a redirect operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1408 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1409 - Write the start of a partial response. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1410 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1411 - Write the start of an error. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1412 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1413 - Write the start of an eval operation. - jakarta.faces.context - PartialResponseWriter - - - - JSF:JAVADOC:1414 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1415 - Write the start of an extension operation. - jakarta.faces.context - PartialResponseWriter - - - java.util.Map - - - - - JSF:JAVADOC:1416 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.util.Map - - java.io.IOException - - - - JSF:JAVADOC:1417 - Write the start of an insert operation where the contents will be inserted after the specified target node. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1418 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1419 - Write the start of an insert operation where the contents will be inserted before the specified target node. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1420 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1421 - Write the start of an update operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1422 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1423 - Write an attribute update operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1424 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - java.util.Map - - java.io.IOException - - - - JSF:JAVADOC:1425 - Return a Collection of client identifiers from the current request with the request parameter name #PARTIAL_EXECUTE_PARAM_NAME. If there is no such request parameter, return an empty Collection. These client identifiers are used to identify components that will be processed during the execute phase of the request processing lifecycle. The returned Collection is mutable. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1426 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1427 - Return the ResponseWriter to which components should direct their output for partial view rendering. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1428 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1429 - Return a Collection of client identifiers from the current request with the request parameter name #PARTIAL_RENDER_PARAM_NAME. If there is no such request parameter, return an empty Collection. These client identifiers are used to identify components that will be processed during the render phase of the request processing lifecycle. The returned Collection is mutable. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1430 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1431 - Return true if the request header Faces-Request is present with the value partial/ajax. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1432 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1433 - Return true if #isAjaxRequest returns true and #PARTIAL_EXECUTE_PARAM_NAME is present in the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1434 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1435 - Return true #isAjaxRequest returns true or if the request header Faces-Request is present with the value partial/process. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1436 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1437 - Return true if #isAjaxRequest returns true and #PARTIAL_RENDER_PARAM_NAME is present in the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1438 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1439 - - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1440 - Perform lifecycle processing on components during the indicated phaseId. Only those components with identifiers existing in the Collection returned from #getExecuteIds and #getRenderIds will be processed. - jakarta.faces.context - PartialViewContext - - - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1441 - Release any resources associated with this PartialViewContext instance. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:1442 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1443 - Dynamically indicate that this is a partial request. - jakarta.faces.context - PartialViewContext - - - boolean - - - - - JSF:JAVADOC:1444 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - - boolean - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1445 - Indicate the entire view must be rendered if renderAll is true. - jakarta.faces.context - PartialViewContext - - - boolean - - - - - JSF:JAVADOC:1446 - if this method is called after this instance has been released - jakarta.faces.context - PartialViewContext - - - boolean - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1447 - Create (if needed) and return a PartialViewContext instance that is initialized using the current FacesContext instance. - jakarta.faces.context - PartialViewContextFactory - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1448 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - PartialViewContextFactory - - - - JSF:JAVADOC:1449 - - jakarta.faces.context - PartialViewContextFactory - - - - JSF:JAVADOC:1450 - The default behavior of this method is to call PartialViewContext#getExecuteIds() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1451 - The default behavior of this method is to call PartialViewContext#getPartialResponseWriter() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1452 - The default behavior of this method is to call PartialViewContext#getRenderIds() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1453 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1454 - The default behavior of this method is to call PartialViewContext#isAjaxRequest() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1455 - The default behavior of this method is to call PartialViewContext#isExecuteAll() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1456 - The default behavior of this method is to call PartialViewContext#isPartialRequest() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1457 - The default behavior of this method is to call PartialViewContext#isRenderAll() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1458 - - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1459 - The default behavior of this method is to call PartialViewContext#processPartial(PhaseId) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1460 - The default behavior of this method is to call PartialViewContext#release() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:1461 - The default behavior of this method is to call PartialViewContext#setRenderAll(boolean) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - boolean - - - - - JSF:JAVADOC:1462 - - jakarta.faces.context - ResponseStream - - - - JSF:JAVADOC:1463 - Create and return a new instance of this ResponseWriter, using the specified Writer as the output destination. - jakarta.faces.context - ResponseWriter - - - java.io.Writer - - - - - JSF:JAVADOC:1464 - Close an XML CDATA block. The default implementation of this method takes no action when invoked. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1465 - if input/output error occures - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1466 - Write whatever text should end a response. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1467 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1469 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1470 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1471 - Flush any ouput buffered by the output method to the underlying Writer or OutputStream. This method will not flush the underlying Writer or OutputStream; it simply clears any values buffered by this ResponseWriter. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1472 - - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1473 - Return the character encoding (such as "ISO-8859-1") for this ResponseWriter. Please see the IANA for a list of character encodings. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1474 - Return the content type (such as "text/html") for this ResponseWriter. Note: this must not include the "charset=" suffix. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1475 - - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1476 - Open an XML CDATA block. Note that XML does not allow nested CDATA blocks, though this method does not enforce that constraint. The default implementation of this method takes no action when invoked. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1477 - if input/output error occures - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1478 - Write whatever text should begin a response. - jakarta.faces.context - ResponseWriter - - - - JSF:JAVADOC:1479 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - JSF:JAVADOC:1481 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:1482 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:1483 - Write an attribute name and corresponding value, after converting that text to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1484 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1485 - if this method is called when there is no currently open element - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1486 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1487 - Write a comment containing the specified text, after converting that text to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - - - - JSF:JAVADOC:1488 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.io.IOException - - - - JSF:JAVADOC:1489 - if comment is null - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1490 - Write an object, after converting it to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1491 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1492 - if text is null - jakarta.faces.context - ResponseWriter - - - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1493 - Write an object, after converting it to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. This method is equivalent to #writeText(java.lang.Object,java.lang.String) but adds a component property to allow custom ResponseWriter implementations to associate a component with an arbitrary portion of text. The default implementation simply ignores the component argument and calls through to #writeText(java.lang.Object,java.lang.String) - jakarta.faces.context - ResponseWriter - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1494 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1495 - if text is null - jakarta.faces.context - ResponseWriter - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1496 - Write text from a character array, after any performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - - - - JSF:JAVADOC:1497 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.io.IOException - - - - JSF:JAVADOC:1498 - if the calculated starting or ending position is outside the bounds of the character array - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.lang.IndexOutOfBoundsException - - - - JSF:JAVADOC:1499 - if text is null - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.lang.NullPointerException - - - - JSF:JAVADOC:1501 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1502 - if this method is called when there is no currently open element - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1503 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1504 - The default behavior of this method is to call ResponseWriter#cloneWithWriter(java.io.Writer) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.io.Writer - - - - - JSF:JAVADOC:1505 - The default behavior of this method is to call ResponseWriter#close() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1506 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1507 - The default behavior of this method is to call ResponseWriter#endCDATA on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1508 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1509 - The default behavior of this method is to call ResponseWriter#endDocument() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1510 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1511 - The default behavior of this method is to call ResponseWriter#endElement(String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1512 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1513 - The default behavior of this method is to call ResponseWriter#flush() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1514 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1515 - The default behavior of this method is to call ResponseWriter#getCharacterEncoding() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1516 - The default behavior of this method is to call ResponseWriter#getContentType() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1517 - Return the instance that we are wrapping. As of version 2, this method is public. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1518 - - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1519 - The default behavior of this method is to call ResponseWriter#startCDATA on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1520 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1521 - The default behavior of this method is to call ResponseWriter#startDocument() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - JSF:JAVADOC:1522 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - JSF:JAVADOC:1523 - The default behavior of this method is to call ResponseWriter#startElement(String, jakarta.faces.component.UIComponent) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1524 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:1525 - The default behavior of this method is to call ResponseWriter#write(char[], int, int) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - - - - JSF:JAVADOC:1526 - - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - java.io.IOException - - - - JSF:JAVADOC:1527 - The default behavior of this method is to call ResponseWriter#writeAttribute(String, Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1528 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1529 - The default behavior of this method is to call ResponseWriter#writeComment(Object) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:1530 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - - java.io.IOException - - - - JSF:JAVADOC:1531 - The default behavior of this method is to call ResponseWriter#writeText(Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1532 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1533 - The default behavior of this method is to call ResponseWriter#writeText(Object, UIComponent, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1534 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1535 - The default behavior of this method is to call ResponseWriter#writeText(char[], int, int) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - - - - JSF:JAVADOC:1536 - - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - java.io.IOException - - - - JSF:JAVADOC:1537 - The default behavior of this method is to call ResponseWriter#writeURIAttribute(String, Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1538 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:1539 - - jakarta.faces.convert - BigDecimalConverter - - - - JSF:JAVADOC:1540 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1541 - if conversion cannot be successfully performed - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1542 - if context or component is null - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1543 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1544 - if conversion cannot be successfully performed - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1545 - if context or component is null - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1546 - - jakarta.faces.convert - BigIntegerConverter - - - - JSF:JAVADOC:1547 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1548 - if conversion cannot be successfully performed - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1549 - if context or component is null - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1550 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1551 - if conversion cannot be successfully performed - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1552 - if context or component is null - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1553 - - jakarta.faces.convert - BooleanConverter - - - - JSF:JAVADOC:1554 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1555 - if conversion cannot be successfully performed - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1556 - if context or component is null - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1557 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1558 - if conversion cannot be successfully performed - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1559 - if context or component is null - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1560 - - jakarta.faces.convert - ByteConverter - - - - JSF:JAVADOC:1561 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1562 - if conversion cannot be successfully performed - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1563 - if context or component is null - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1564 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1565 - if conversion cannot be successfully performed - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1566 - if context or component is null - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1567 - - jakarta.faces.convert - CharacterConverter - - - - JSF:JAVADOC:1568 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1569 - if conversion cannot be successfully performed - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1570 - if context or component is null - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1571 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1572 - if conversion cannot be successfully performed - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1573 - if context or component is null - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1574 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1575 - if conversion cannot be successfully performed - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1576 - if context or component is null - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1577 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1578 - if conversion cannot be successfully performed - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1579 - if context or component is null - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1580 - Construct a new exception with no detail message or root cause. - jakarta.faces.convert - ConverterException - - - - JSF:JAVADOC:1581 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.convert - ConverterException - - - java.lang.String - - - - - JSF:JAVADOC:1582 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.convert - ConverterException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1583 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.convert - ConverterException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1584 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.convert - ConverterException - - - jakarta.faces.application.FacesMessage - - - - - JSF:JAVADOC:1585 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.convert - ConverterException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - JSF:JAVADOC:1586 - Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there. - jakarta.faces.convert - ConverterException - - - - JSF:JAVADOC:1587 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1588 - - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1589 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1590 - if conversion cannot be successfully performed - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1591 - if context or component is null - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1592 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1593 - if conversion cannot be successfully performed - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1594 - if context or component is null - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1595 - Return the style to be used to format or parse dates. If not set, the default value, default, is returned. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1596 - Return the Locale to be used when parsing or formatting dates and times. If not explicitly set, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request is returned. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1597 - Return the format pattern to be used when formatting and parsing dates and times. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1598 - Return the style to be used to format or parse times. If not set, the default value, default, is returned. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1599 - Return the TimeZone used to interpret a time value. If not explicitly set, the default time zone of GMT returned. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1600 - Return the type of value to be formatted or parsed. If not explicitly set, the default type, date is returned. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1601 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1602 - - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1603 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - DateTimeConverter - - - - JSF:JAVADOC:1604 - - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1605 - - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1606 - Set the style to be used to format or parse dates. Valid values are default, short, medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - JSF:JAVADOC:1607 - Set the Locale to be used when parsing or formatting dates and times. If set to null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - DateTimeConverter - - - java.util.Locale - - - - - JSF:JAVADOC:1608 - Set the format pattern to be used when formatting and parsing dates and times. Valid values are those supported by java.text.SimpleDateFormat. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - JSF:JAVADOC:1609 - Set the style to be used to format or parse times. Valid values are default, short, medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - JSF:JAVADOC:1610 - Set the TimeZone used to interpret a time value. - jakarta.faces.convert - DateTimeConverter - - - java.util.TimeZone - - - - - JSF:JAVADOC:1611 - - jakarta.faces.convert - DateTimeConverter - - - boolean - - - - - JSF:JAVADOC:1612 - Set the type of value to be formatted or parsed. Valid values are both, date, or time. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - JSF:JAVADOC:1613 - - jakarta.faces.convert - DoubleConverter - - - - JSF:JAVADOC:1614 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1615 - if conversion cannot be successfully performed - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1616 - if context or component is null - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1617 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1618 - if conversion cannot be successfully performed - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1619 - if context or component is null - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1620 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - EnumConverter - - - - JSF:JAVADOC:1621 - - jakarta.faces.convert - EnumConverter - - - - JSF:JAVADOC:1622 - - jakarta.faces.convert - EnumConverter - - - java.lang.Class - - - - - JSF:JAVADOC:1623 - Convert the value argument to one of the enum constants of the class provided in our constructor. If no target class argument has been provided to the constructor of this instance, throw a ConverterException containing the #ENUM_NO_CLASS_ID message with proper parameters. If the value argument is null or it has a length of zero, return null. Otherwise, perform the equivalent of Enum.valueOf using target class and value and return the Object. If the conversion fails, throw a ConverterException containing the #ENUM_ID message with proper parameters. - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1624 - {@inheritDoc} - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1625 - {@inheritDoc} - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1626 - Convert the enum constant given by the value argument into a String. If no target class argument has been provided to the constructor of this instance, throw a ConverterException containing the #ENUM_NO_CLASS_ID message with proper parameters. If the value argument is null, return null. If the value is an instance of the provided target class, return its string value by casting it to a java.lang.Enum and returning the result of calling the name() method. Otherwise, throw a ConverterException containing the #ENUM_ID message with proper parameters. - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1627 - {@inheritDoc} - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1628 - {@inheritDoc} - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1629 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - EnumConverter - - - - JSF:JAVADOC:1630 - - jakarta.faces.convert - EnumConverter - - - - JSF:JAVADOC:1631 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - EnumConverter - - - - JSF:JAVADOC:1632 - - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1633 - - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1634 - - jakarta.faces.convert - EnumConverter - - - boolean - - - - - JSF:JAVADOC:1635 - The value of this annotation attribute is taken to be the converter-for-class with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.Class). - jakarta.faces.convert - FacesConverter - - - - JSF:JAVADOC:1637 - - jakarta.faces.convert - FloatConverter - - - - JSF:JAVADOC:1638 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1639 - if conversion cannot be successfully performed - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1640 - if context or component is null - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1641 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1642 - if conversion cannot be successfully performed - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1643 - if context or component is null - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1644 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1645 - if conversion cannot be successfully performed - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1646 - if context or component is null - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1647 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1648 - if conversion cannot be successfully performed - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1649 - if context or component is null - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1650 - - jakarta.faces.convert - IntegerConverter - - - - JSF:JAVADOC:1651 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1652 - if conversion cannot be successfully performed - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1653 - if context or component is null - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1654 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1655 - if conversion cannot be successfully performed - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1656 - if context or component is null - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1657 - - jakarta.faces.convert - LongConverter - - - - JSF:JAVADOC:1658 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1659 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1660 - if conversion cannot be successfully performed - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1661 - if context or component is null - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1662 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1663 - if conversion cannot be successfully performed - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1664 - if context or component is null - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1665 - Return the ISO 4217 currency code used by getAsString() with a type of currency. If not set, the value used will be based on the formatting Locale. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1666 - Return the currency symbol used by getAsString() with a type of currency. If not set, the value used will be based on the formatting Locale. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1667 - Return the Locale to be used when parsing numbers. If this value is null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1668 - Return the maximum number of digits getAsString() should render in the fraction portion of the result. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1669 - Return the maximum number of digits getAsString() should render in the integer portion of the result. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1670 - Return the minimum number of digits getAsString() should render in the fraction portion of the result. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1671 - Return the minimum number of digits getAsString() should render in the integer portion of the result. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1672 - Return the format pattern to be used when formatting and parsing numbers. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1673 - Return the number type to be used when formatting and parsing numbers. If not modified, the default type is number. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1674 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1675 - Return true if getAsString should include grouping separators if necessary. If not modified, the default value is true. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1676 - Return true if only the integer portion of the given value should be returned from getAsObject(). If not modified, the default value is false. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1677 - - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1678 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1679 - - jakarta.faces.convert - NumberConverter - - - - JSF:JAVADOC:1680 - - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1681 - - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1682 - Set the ISO 4217 currency code used by getAsString() with a type of currency. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - JSF:JAVADOC:1683 - Set the currency symbol used by getAsString() with a type of currency. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - JSF:JAVADOC:1684 - Set the flag indicating whether getAsString() should include grouping separators if necessary. - jakarta.faces.convert - NumberConverter - - - boolean - - - - - JSF:JAVADOC:1685 - Set to true if only the integer portion of the given value should be returned from getAsObject(). - jakarta.faces.convert - NumberConverter - - - boolean - - - - - JSF:JAVADOC:1686 - Set the Locale to be used when parsing numbers. If set to null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - NumberConverter - - - java.util.Locale - - - - - JSF:JAVADOC:1687 - Set the maximum number of digits getAsString() should render in the fraction portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - JSF:JAVADOC:1688 - Set the maximum number of digits getAsString() should render in the integer portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - JSF:JAVADOC:1689 - Set the minimum number of digits getAsString() should render in the fraction portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - JSF:JAVADOC:1690 - Set the minimum number of digits getAsString() should render in the integer portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - JSF:JAVADOC:1691 - Set the format pattern to be used when formatting and parsing numbers. Valid values are those supported by java.text.DecimalFormat. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - JSF:JAVADOC:1692 - - jakarta.faces.convert - NumberConverter - - - boolean - - - - - JSF:JAVADOC:1693 - Set the number type to be used when formatting and parsing numbers. Valid values are currency, number, or percent. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - JSF:JAVADOC:1694 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:1695 - if conversion cannot be successfully performed - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1696 - if context or component is null - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1697 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:1698 - if conversion cannot be successfully performed - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:1699 - if context or component is null - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1700 - - jakarta.faces.convert - ShortConverter - - - - JSF:JAVADOC:1701 - - jakarta.faces.el - CompositeComponentExpressionHolder - - - java.lang.String - - - - - JSF:JAVADOC:1702 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - EvaluationException - - - - JSF:JAVADOC:1703 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - EvaluationException - - - java.lang.String - - - - - JSF:JAVADOC:1704 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - EvaluationException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1705 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - EvaluationException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1706 - Return the (possibly null) expression String, with leading and trailing delimiters, from which this MethodBinding was built. The default implementation returns null. - jakarta.faces.el - MethodBinding - - - - JSF:JAVADOC:1707 - Return the Java class representing the return type from the method identified by this method binding expression. - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1708 - if no suitable method can be found - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.MethodNotFoundException - - - - JSF:JAVADOC:1709 - if context is null - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1710 - Return the return value (if any) resulting from a call to the method identified by this method binding expression, passing it the specified parameters, relative to the specified FacesContext. - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - java.lang.Object[] - - - - - JSF:JAVADOC:1711 - if an exception is thrown by the called method (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - java.lang.Object[] - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1712 - if no suitable method can be found - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - java.lang.Object[] - - jakarta.faces.el.MethodNotFoundException - - - - JSF:JAVADOC:1713 - if context is null - jakarta.faces.el - MethodBinding - - - jakarta.faces.context.FacesContext - java.lang.Object[] - - java.lang.NullPointerException - - - - JSF:JAVADOC:1714 - - jakarta.faces.el - MethodBinding - - - - JSF:JAVADOC:1715 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - MethodNotFoundException - - - - JSF:JAVADOC:1716 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - MethodNotFoundException - - - java.lang.String - - - - - JSF:JAVADOC:1717 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - MethodNotFoundException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1718 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - MethodNotFoundException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1719 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - PropertyNotFoundException - - - - JSF:JAVADOC:1720 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - PropertyNotFoundException - - - java.lang.String - - - - - JSF:JAVADOC:1721 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - PropertyNotFoundException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1722 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - PropertyNotFoundException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1723 - Return the java.lang.Class representing the type of the specified property. An instance of any Object of that type my be set as the value of that property, as long as the property is not read-only. The actual value of the property, if non-null, is guaranteed to be an instance of this type, or an instance of a subclass of this type. This method is also useful for discovering the type of Objects that may be set as the value of the property. For a bean base object, the property is coerced to a String and used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1724 - if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1725 - if the specified bean base object property does not exist or if base or property is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1726 - Return the java.lang.Class representing the type of the specified index. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - JSF:JAVADOC:1727 - if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1728 - if the index is out of bounds or if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1729 - Return the value of the specified property from the specified base object. For a bean base object, the property is coerced to a String and used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1730 - if an exception is thrown while getting the property value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1731 - if the specified property for a bean base object does not exist or is not readable - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1732 - Return the value at the specified index of the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - JSF:JAVADOC:1733 - if an exception is thrown while getting the property value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1734 - if the index is out of bounds or if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1735 - Checks if the specified property is read-only. For a bean base object, the property is coerced to a String and used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1736 - if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1737 - if the specified bean base object property does not exist or if base or property is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1738 - Checks if the specified index is read-only. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - JSF:JAVADOC:1739 - if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1740 - if the index is out of bounds or if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1741 - - jakarta.faces.el - PropertyResolver - - - - JSF:JAVADOC:1742 - Set the specified value of the specified property on the specified base object. For a bean base object, the property is coerced to a String and used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1743 - if an exception is thrown while setting the property value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1744 - if the specified bean base object property does not exist or is not writeable, or if base or name is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.Object - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1745 - Set the value at the specified index of the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - - - - JSF:JAVADOC:1746 - if an exception is thrown while setting the property value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1747 - if the index is out of bounds or if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1748 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - ReferenceSyntaxException - - - - JSF:JAVADOC:1749 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.String - - - - - JSF:JAVADOC:1750 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1751 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1752 - Return the (possibly null) expression String, including the delimiters, from which this ValueBinding was built. - jakarta.faces.el - ValueBinding - - - - JSF:JAVADOC:1753 - Return the type of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1754 - if an exception is thrown while getting the description of the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1755 - if a specified property name does not exist - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1756 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1757 - Return the value of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1758 - if an exception is thrown while getting the value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1759 - if a specified property name does not exist, or is not readable - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1760 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1761 - Return true if the specified property of the specified property is known to be immutable; otherwise, return false. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1762 - if an exception is thrown while getting the description of the property (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1763 - if a specified property name does not exist - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1764 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1765 - Set the value of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1766 - if an exception is thrown while setting the value (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1767 - if a specified property name does not exist, or is not writeable - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - JSF:JAVADOC:1768 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:1769 - - jakarta.faces.el - ValueBinding - - - - JSF:JAVADOC:1770 - Resolve the specified variable name, and return the corresponding object, if any; otherwise, return null. - jakarta.faces.el - VariableResolver - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:1771 - if an exception is thrown while resolving the variable name (the thrown exception must be included as the cause property of this exception) - jakarta.faces.el - VariableResolver - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.el.EvaluationException - - - - JSF:JAVADOC:1772 - if context or name is null - jakarta.faces.el - VariableResolver - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1773 - - jakarta.faces.el - VariableResolver - - - - JSF:JAVADOC:1774 - Construct a new exception with no detail message or root cause. - jakarta.faces.event - AbortProcessingException - - - - JSF:JAVADOC:1775 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.String - - - - - JSF:JAVADOC:1776 - Construct a new exception with the specified root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.Throwable - - - - - JSF:JAVADOC:1777 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:1778 - Construct a new event object from the specified source component and action command. - jakarta.faces.event - ActionEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1779 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - ActionEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1780 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - ActionEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1781 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionEvent - - - jakarta.faces.event.FacesListener - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1782 - Invoked when the action described by the specified ActionEvent occurs. - jakarta.faces.event - ActionListener - - - jakarta.faces.event.ActionEvent - - - - - JSF:JAVADOC:1783 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionListener - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1784 - Construct a new event object from the specified source component and Ajax behavior. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - JSF:JAVADOC:1785 - Return true if this FacesListener is an instance of a the appropriate listener class that this event supports. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1786 - Broadcast this event instance to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this instance as a parameter. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1787 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.event.FacesListener - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1788 - - jakarta.faces.event - AjaxBehaviorListener - - - jakarta.faces.event.AjaxBehaviorEvent - - - - - JSF:JAVADOC:1789 - if lifecycle processing should cease for this request. - jakarta.faces.event - AjaxBehaviorListener - - - jakarta.faces.event.AjaxBehaviorEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1790 - Construct a new event object from the specified source component and behavior. - jakarta.faces.event - BehaviorEvent - - - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - JSF:JAVADOC:1791 - Return the source Behavior that sent this event. - jakarta.faces.event - BehaviorEvent - - - - JSF:JAVADOC:1792 - Pass the argument component to the superclass constructor. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1793 - the source UIComponent that sent this event. - jakarta.faces.event - ComponentSystemEvent - - - - JSF:JAVADOC:1794 - When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true. - jakarta.faces.event - ComponentSystemEventListener - - - jakarta.faces.event.ComponentSystemEvent - - - - - JSF:JAVADOC:1795 - if lifecycle processing should cease for this request. - jakarta.faces.event - ComponentSystemEventListener - - - jakarta.faces.event.ComponentSystemEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1796 - Instantiate a new ExceptionQueuedEvent that indicates the argument ExceptionQueuedEventContext occurred. - jakarta.faces.event - ExceptionQueuedEvent - - - jakarta.faces.event.ExceptionQueuedEventContext - - - - - JSF:JAVADOC:1797 - Return the ExceptionQueuedEventContext for this event instance. - jakarta.faces.event - ExceptionQueuedEvent - - - - JSF:JAVADOC:1798 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - - - - - JSF:JAVADOC:1799 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1800 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component, during the lifecycle phase phaseId. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - jakarta.faces.component.UIComponent - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1801 - A Map of attributes relevant to the context of this ExceptionQueuedEvent. - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1802 - Return the UIComponent which was being processed when the exception was thrown. If none or not available, this will be null. - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1803 - - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1804 - Return the exception property. - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1805 - Return a List that contains a single entry, the jakarta.faces.context.ExceptionHandler for the current request. - jakarta.faces.event - ExceptionQueuedEventContext - - - java.lang.Class - - - - - JSF:JAVADOC:1806 - Return the PhaseId which was being processed when the exception was thrown. If none or not available, this will be null. - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1807 - - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1808 - - jakarta.faces.event - ExceptionQueuedEventContext - - - - JSF:JAVADOC:1809 - Construct a new event object from the specified source component. - jakarta.faces.event - FacesEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1810 - Return the source UIComponent that sent this event. - jakarta.faces.event - FacesEvent - - - - JSF:JAVADOC:1811 - Return the identifier of the request processing phase during which this event should be delivered. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE, which is the default value. - jakarta.faces.event - FacesEvent - - - - JSF:JAVADOC:1812 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1813 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1814 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.FacesListener - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1815 - Convenience method to queue this event for broadcast at the end of the current request processing lifecycle phase. - jakarta.faces.event - FacesEvent - - - - JSF:JAVADOC:1816 - if the source component for this event is not a descendant of a UIViewRoot - jakarta.faces.event - FacesEvent - - java.lang.IllegalStateException - - - - JSF:JAVADOC:1817 - Set the PhaseId during which this event will be delivered. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.PhaseId - - - - - JSF:JAVADOC:1818 - phaseId is null. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1819 - The kind of object that emits events of the type given by the value of the #systemEventClass attribute. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.event - ListenerFor - - - - JSF:JAVADOC:1820 - The kind of system event for which this class will be installed as a listener. The implementation only supports exact matches on the Class and must not honor subclass relationships. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.event - ListenerFor - - - - JSF:JAVADOC:1821 - - jakarta.faces.event - ListenersFor - - - - JSF:JAVADOC:1822 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionActionListener - - - - JSF:JAVADOC:1823 - - jakarta.faces.event - MethodExpressionActionListener - - - - JSF:JAVADOC:1824 - Construct a ValueChangeListener that contains a MethodExpression. To accomodate method expression targets that take no arguments instead of taking an ActionEvent argument, the implementation of this class must take the argument methodExpressionOneArg, extract its expression string, and create another MethodExpression whose expected param types match those of a zero argument method. The usage requirements for both of these MethodExpression instances are described in #processAction. - jakarta.faces.event - MethodExpressionActionListener - - - MethodExpression - - - - - JSF:JAVADOC:1825 - - jakarta.faces.event - MethodExpressionActionListener - - - MethodExpression - MethodExpression - - - - - JSF:JAVADOC:1826 - Call through to the MethodExpression passed in our constructor. First, try to invoke the MethodExpression passed to the constructor of this instance, passing the argument ActionEvent as the argument. If a MethodNotFoundException is thrown, call to the zero argument MethodExpression derived from the MethodExpression passed to the constructor of this instance. If that fails for any reason, throw an AbortProcessingException, including the cause of the failure. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.event.ActionEvent - - - - - JSF:JAVADOC:1827 - {@inheritDoc} - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1828 - {@inheritDoc} - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.event.ActionEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:1829 - Both MethodExpression instances described in the constructor must be restored. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1830 - Both MethodExpression instances described in the constructor must be saved. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1831 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionActionListener - - - boolean - - - - - JSF:JAVADOC:1832 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionValueChangeListener - - - - JSF:JAVADOC:1833 - - jakarta.faces.event - MethodExpressionValueChangeListener - - - - JSF:JAVADOC:1834 - Construct a ValueChangeListener that contains a MethodExpression.To accomodate method expression targets that take no arguments instead of taking a ValueChangeEvent argument, the implementation of this class must take the argument methodExpressionOneArg, extract its expression string, and create another MethodExpression whose expected param types match those of a zero argument method. The usage requirements for both of these MethodExpression instances are described in #processValueChange. - jakarta.faces.event - MethodExpressionValueChangeListener - - - MethodExpression - - - - - JSF:JAVADOC:1835 - Construct a ValueChangeListener that contains a MethodExpression. - jakarta.faces.event - MethodExpressionValueChangeListener - - - MethodExpression - MethodExpression - - - - - JSF:JAVADOC:1836 - Call through to the MethodExpression passed in our constructor. First, try to invoke the MethodExpression passed to the constructor of this instance, passing the argument ValueChangeEvent as the argument. If a MethodNotFoundException is thrown, call to the zero argument MethodExpression derived from the MethodExpression passed to the constructor of this instance. If that fails for any reason, throw an AbortProcessingException, including the cause of the failure. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - - - - JSF:JAVADOC:1837 - {@inheritDoc} - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1839 - Both MethodExpression instances described in the constructor must be restored. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:1840 - Both MethodExpression instances described in the constructor must be saved. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1841 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionValueChangeListener - - - boolean - - - - - JSF:JAVADOC:1842 - The value of this annotation attribute is taken to be the short name for the jakarta.faces.event.ComponentSystemEvent. If the value of this attribute is ommitted, the following algorithm must be used by the code that processes this annotation to determine its value. Get the unqualified class name (e.g., UserLoginEvent) Strip off the trailing "Event", if present (e.g., UserLogin) Convert the first character to lower-case (e.g., userLogin) Prepend the package name to the lower-cased name. - jakarta.faces.event - NamedEvent - - - - JSF:JAVADOC:1843 - Return the FacesContext for the request being processed. - jakarta.faces.event - PhaseEvent - - - - JSF:JAVADOC:1844 - Return the PhaseId representing the current request processing lifecycle phase. - jakarta.faces.event - PhaseEvent - - - - JSF:JAVADOC:1845 - Construct a new event object from the specified parameters. The specified Lifecycle will be the source of this event. - jakarta.faces.event - PhaseEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.event.PhaseId - jakarta.faces.lifecycle.Lifecycle - - - - - JSF:JAVADOC:1846 - Compare this PhaseId instance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. - jakarta.faces.event - PhaseId - - - java.lang.Object - - - - - JSF:JAVADOC:1847 - Return the ordinal value of this PhaseId instance. - jakarta.faces.event - PhaseId - - - - JSF:JAVADOC:1848 - Return a String representation of this PhaseId instance. - jakarta.faces.event - PhaseId - - - - JSF:JAVADOC:1849 - Handle a notification that the processing for a particular phase has just been completed. - jakarta.faces.event - PhaseListener - - - jakarta.faces.event.PhaseEvent - - - - - JSF:JAVADOC:1850 - Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin. - jakarta.faces.event - PhaseListener - - - jakarta.faces.event.PhaseEvent - - - - - JSF:JAVADOC:1851 - Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases. - jakarta.faces.event - PhaseListener - - - - JSF:JAVADOC:1852 - Returns true if and only if the argument listener is an instance of SystemEventListener. - jakarta.faces.event - PostAddToViewEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1853 - Instantiate a new PostAddToViewEvent that indicates the argument component was just added to the view. - jakarta.faces.event - PostAddToViewEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1855 - The source Application that sent this event. - jakarta.faces.event - PostConstructApplicationEvent - - - - JSF:JAVADOC:1856 - Constructs a new AppliationPostConstructEvent for this application. - jakarta.faces.event - PostConstructApplicationEvent - - - jakarta.faces.application.Application - - - - - JSF:JAVADOC:1857 - Return the ScopeContext for this event. - jakarta.faces.event - PostConstructCustomScopeEvent - - - - JSF:JAVADOC:1858 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext was just created. - jakarta.faces.event - PostConstructCustomScopeEvent - - - jakarta.faces.event.ScopeContext - - - - - JSF:JAVADOC:1859 - Instantiate a new PostConstructViewMapEvent that indicates the argument root was just associated with its view map. - jakarta.faces.event - PostConstructViewMapEvent - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:1860 - Instantiate a new PostRestoreStateEvent that indicates the argument component just had its state restored. - jakarta.faces.event - PostRestoreStateEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1861 - - jakarta.faces.event - PostRestoreStateEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1862 - - jakarta.faces.event - PostValidateEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1863 - The source Application that sent this event. - jakarta.faces.event - PreDestroyApplicationEvent - - - - JSF:JAVADOC:1864 - Constructs a new PreDestroyApplicationEvent for this application. - jakarta.faces.event - PreDestroyApplicationEvent - - - jakarta.faces.application.Application - - - - - JSF:JAVADOC:1865 - Return the ScopeContext for this event. - jakarta.faces.event - PreDestroyCustomScopeEvent - - - - JSF:JAVADOC:1866 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext is about to end. - jakarta.faces.event - PreDestroyCustomScopeEvent - - - jakarta.faces.event.ScopeContext - - - - - JSF:JAVADOC:1867 - Instantiate a new ViewMapDestroydEvent that indicates the argument root just had its associated view map destroyed. - jakarta.faces.event - PreDestroyViewMapEvent - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:1868 - Returns true if and only if the argument listener is an instance of SystemEventListener. - jakarta.faces.event - PreRemoveFromViewEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1869 - Instantiate a new BeforeRemoveFromView that indicates the argument component is about to be removed from the view. - jakarta.faces.event - PreRemoveFromViewEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1870 - Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered. - jakarta.faces.event - PreRenderComponentEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1871 - Instantiate a new PreRenderViewEvent that indicates the argument root is about to be rendered. - jakarta.faces.event - PreRenderViewEvent - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:1872 - - jakarta.faces.event - PreValidateEvent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1873 - Return the scope itself, exposed as a Map. - jakarta.faces.event - ScopeContext - - - - JSF:JAVADOC:1874 - Return the name of this custom scope. - jakarta.faces.event - ScopeContext - - - - JSF:JAVADOC:1875 - Construct this structure with the supplied arguments. - jakarta.faces.event - ScopeContext - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1877 - Broadcast this event instance to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this instance as a paramter. - jakarta.faces.event - SystemEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1878 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - SystemEvent - - - jakarta.faces.event.FacesListener - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1879 - Pass the argument source to the superclass constructor. - jakarta.faces.event - SystemEvent - - - java.lang.Object - - - - - JSF:JAVADOC:1880 - This method must return true if and only if this listener instance is interested in receiving events from the instance referenced by the source parameter. - jakarta.faces.event - SystemEventListener - - - java.lang.Object - - - - - JSF:JAVADOC:1881 - When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true. - jakarta.faces.event - SystemEventListener - - - jakarta.faces.event.SystemEvent - - - - - JSF:JAVADOC:1882 - if lifecycle processing should cease for this request. - jakarta.faces.event - SystemEventListener - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1883 - Return a List of SystemEventListener instances that have been installed into the class implementing this interface. - jakarta.faces.event - SystemEventListenerHolder - - - java.lang.Class - - - - - JSF:JAVADOC:1884 - Return the current local value of the source UIComponent. - jakarta.faces.event - ValueChangeEvent - - - - JSF:JAVADOC:1885 - Return the previous local value of the source UIComponent. - jakarta.faces.event - ValueChangeEvent - - - - JSF:JAVADOC:1886 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1887 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:1888 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.event.FacesListener - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1889 - Construct a new event object from the specified source component, old value, and new value. The default PhaseId for this event is PhaseId#ANY_PHASE. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.component.UIComponent - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:1890 - Invoked when the value change described by the specified ValueChangeEvent occurs. - jakarta.faces.event - ValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - - - - JSF:JAVADOC:1891 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:1892 - Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:1893 - if listener is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:1894 - Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in the JavaServer Faces Specification, in the specified order. The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1895 - if thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1896 - if context is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1897 - Return the set of registered PhaseListeners for this Lifecycle instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.lifecycle - Lifecycle - - - - JSF:JAVADOC:1898 - - jakarta.faces.lifecycle - Lifecycle - - - - JSF:JAVADOC:1899 - Deregister an existing PhaseListener instance that is no longer interested in being notified before and after the processing for standard phases of the request processing lifecycle. If no such listener instance has been registered, no action is taken. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:1900 - if listener is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:1901 - Execute the Render Response phase of the request processing lifecycle, unless the responseComplete() method has been called on the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1902 - if an exception is thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1903 - if context is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:1904 - Register a new Lifecycle instance, associated with the specified lifecycleId, to be supported by this LifecycleFactory. This method may be called at any time, and makes the corresponding Lifecycle instance available throughout the remaining lifetime of this web application. - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - - - - JSF:JAVADOC:1905 - if a Lifecycle with the specified lifecycleId has already been registered - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1906 - if lifecycleId or lifecycle is null - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - java.lang.NullPointerException - - - - JSF:JAVADOC:1907 - Create (if needed) and return a Lifecycle instance for the specified lifecycle identifier. The set of available lifecycle identifiers is available via the getLifecycleIds() method. Each call to getLifecycle() for the same lifecycleId, from within the same web application, must return the same Lifecycle instance. - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - - - - JSF:JAVADOC:1908 - if no Lifecycle instance can be returned for the specified identifier - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1909 - if lifecycleId is null - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:1910 - Return an Iterator over the set of lifecycle identifiers supported by this factory. This set must include the value specified by LifecycleFactory.DEFAULT_LIFECYCLE. - jakarta.faces.lifecycle - LifecycleFactory - - - - JSF:JAVADOC:1911 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.lifecycle - LifecycleFactory - - - - JSF:JAVADOC:1912 - - jakarta.faces.lifecycle - LifecycleFactory - - - - JSF:JAVADOC:1913 - Construct a new ArrayDataModel with no specified wrapped data. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1914 - Construct a new ArrayDataModel wrapping the specified array. - jakarta.faces.model - ArrayDataModel - - - java.lang.Object[] - - - - - JSF:JAVADOC:1915 - If there is wrappedData available, return the length of the array. If no wrappedData is available, return -1. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1916 - if an error occurs getting the row count - jakarta.faces.model - ArrayDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1917 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1918 - if an error occurs getting the row data - jakarta.faces.model - ArrayDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1919 - if now row data is available at the currently specified row index - jakarta.faces.model - ArrayDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1920 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1921 - if an error occurs getting the row index - jakarta.faces.model - ArrayDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1922 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1923 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the length of the array. Otherwise, return false. - jakarta.faces.model - ArrayDataModel - - - - JSF:JAVADOC:1924 - if an error occurs getting the row availability - jakarta.faces.model - ArrayDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1925 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ArrayDataModel - - - int - - - - - JSF:JAVADOC:1926 - if an error occurs setting the row index - jakarta.faces.model - ArrayDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1927 - if rowIndex is less than -1 - jakarta.faces.model - ArrayDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1928 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ArrayDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:1929 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - ArrayDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:1930 - Add a new DataModelListener to the set interested in notifications from this DataModel. - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - - - - JSF:JAVADOC:1931 - if listener is null - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:1932 - - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1933 - Return the set of DataModelListeners interested in notifications from this DataModel. If there are no such listeners, an empty array is returned. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1934 - Return the number of rows of data objects represented by this DataModel. If the number of rows is unknown, or no wrappedData is available, return -1. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1935 - if an error occurs getting the row count - jakarta.faces.model - DataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1936 - Return an object representing the data for the currenty selected row index. If no wrappedData is available, return null. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1937 - if an error occurs getting the row data - jakarta.faces.model - DataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1938 - if now row data is available at the currently specified row index - jakarta.faces.model - DataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1939 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1940 - if an error occurs getting the row index - jakarta.faces.model - DataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1941 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1942 - Return a flag indicating whether there is rowData available at the current rowIndex. If no wrappedData is available, return false. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1943 - if an error occurs getting the row availability - jakarta.faces.model - DataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1944 - Return a read-only Iterator over the row data for this model. - jakarta.faces.model - DataModel - - - - JSF:JAVADOC:1945 - Remove an existing DataModelListener from the set interested in notifications from this DataModel. - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - - - - JSF:JAVADOC:1946 - if listener is null - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:1947 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - DataModel - - - int - - - - - JSF:JAVADOC:1948 - if an error occurs setting the row index - jakarta.faces.model - DataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1949 - if rowIndex is less than -1 - jakarta.faces.model - DataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1950 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - DataModel - - - java.lang.Object - - - - - JSF:JAVADOC:1951 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - DataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:1952 - Construct an event object that is associated with the specified row index and associated data. - jakarta.faces.model - DataModelEvent - - - jakarta.faces.model.DataModel - int - java.lang.Object - - - - - JSF:JAVADOC:1953 - Return the DataModel that fired this event. - jakarta.faces.model - DataModelEvent - - - - JSF:JAVADOC:1954 - Return the object representing the data for the specified row index, or null for no associated row data. - jakarta.faces.model - DataModelEvent - - - - JSF:JAVADOC:1955 - Return the row index for this event, or -1 for no specific row. - jakarta.faces.model - DataModelEvent - - - - JSF:JAVADOC:1956 - Notification that a particular row index, with the associated row data, has been selected for processing. - jakarta.faces.model - DataModelListener - - - jakarta.faces.model.DataModelEvent - - - - - JSF:JAVADOC:1957 - If there is wrappedData available, return the length of the list. If no wrappedData is available, return -1. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1958 - if an error occurs getting the row count - jakarta.faces.model - ListDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1959 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1960 - if an error occurs getting the row data - jakarta.faces.model - ListDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1961 - if now row data is available at the currently specified row index - jakarta.faces.model - ListDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1962 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1963 - if an error occurs getting the row index - jakarta.faces.model - ListDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1964 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1965 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the size of the list. Otherwise, return false. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1966 - if an error occurs getting the row availability - jakarta.faces.model - ListDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1967 - Construct a new ListDataModel with no specified wrapped data. - jakarta.faces.model - ListDataModel - - - - JSF:JAVADOC:1968 - Construct a new ListDataModel wrapping the specified list. - jakarta.faces.model - ListDataModel - - - java.util.List - - - - - JSF:JAVADOC:1969 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ListDataModel - - - int - - - - - JSF:JAVADOC:1970 - if an error occurs setting the row index - jakarta.faces.model - ListDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1971 - if rowIndex is less than -1 - jakarta.faces.model - ListDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1972 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ListDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:1973 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - ListDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:1974 - If there is wrappedData available, return the length of the array returned by calling getRows() on the underlying Result. If no wrappedData is available, return -1. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1976 - If row data is available, return the SortedMap array element at the index specified by rowIndex of the array returned by calling getRows() on the underlying Result. If no wrapped data is available, return null. Note that, if a non-null Map is returned by this method, it will contain the values of the columns for the current row, keyed by column name. Column name comparisons must be performed in a case-insensitive manner. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1978 - if now row data is available at the currently specified row index - jakarta.faces.model - ResultDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1979 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1980 - if an error occurs getting the row index - jakarta.faces.model - ResultDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1981 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1982 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the length of the array returned by calling getRows() on the underlying Result. Otherwise, return false. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1984 - Construct a new ResultDataModel with no specified wrapped data. - jakarta.faces.model - ResultDataModel - - - - JSF:JAVADOC:1985 - Construct a new ResultDataModel wrapping the specified Result. - jakarta.faces.model - ResultDataModel - - - Result - - - - - JSF:JAVADOC:1986 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ResultDataModel - - - int - - - - - JSF:JAVADOC:1987 - if an error occurs setting the row index - jakarta.faces.model - ResultDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1988 - if rowIndex is less than -1 - jakarta.faces.model - ResultDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1989 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ResultDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:1990 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - ResultDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:1991 - Return -1, since ResultSet does not provide a standard way to determine the number of available rows without scrolling through the entire ResultSet, and this can be very expensive if the number of rows is large. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:1992 - if an error occurs getting the row count - jakarta.faces.model - ResultSetDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1993 - If row data is available, return a Map representing the values of the columns for the row specified by rowIndex, keyed by the corresponding column names. If no wrapped data is available, return null. If a non-null Map is returned, its behavior must correspond to the contract for a mutable Map as described in the JavaDocs for AbstractMap, with the following exceptions and specialized behavior: The Map, and any supporting objects it returns, must perform all column name comparisons in a case-insensitive manner. This case-insensitivity must be implemented using a case-insensitive Comparator, such as String.CASE_INSENSITIVE_ORDER. The following methods must throw UnsupportedOperationException: clear(), remove(). The entrySet() method must return a Set that has the following behavior: Throw UnsupportedOperationException for any attempt to add or remove entries from the Set, either directly or indirectly through an Iterator returned by the Set. Updates to the value of an entry in this set must write through to the corresponding column value in the underlying ResultSet. The keySet() method must return a Set that throws UnsupportedOperationException on any attempt to add or remove keys, either directly or through an Iterator returned by the Set. The put() method must throw IllegalArgumentException if a key value for which containsKey() returns false is specified. However, if a key already present in the Map is specified, the specified value must write through to the corresponding column value in the underlying ResultSet. The values() method must return a Collection that throws UnsupportedOperationException on any attempt to add or remove values, either directly or through an Iterator returned by the Collection. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:1994 - if an error occurs getting the row data - jakarta.faces.model - ResultSetDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1995 - if now row data is available at the currently specified row index - jakarta.faces.model - ResultSetDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1996 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:1997 - if an error occurs getting the row index - jakarta.faces.model - ResultSetDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:1998 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:1999 - Return true if there is wrappedData available, and the result of calling absolute() on the underlying ResultSet, passing the current value of rowIndex plus one (to account for the fact that ResultSet uses one-relative indexing), returns true. Otherwise, return false. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:2000 - if an error occurs getting the row availability - jakarta.faces.model - ResultSetDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2001 - Construct a new ResultSetDataModel with no specified wrapped data. - jakarta.faces.model - ResultSetDataModel - - - - JSF:JAVADOC:2002 - Construct a new ResultSetDataModel wrapping the specified ResultSet. - jakarta.faces.model - ResultSetDataModel - - - java.sql.ResultSet - - - - - JSF:JAVADOC:2003 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ResultSetDataModel - - - int - - - - - JSF:JAVADOC:2004 - if an error occurs setting the row index - jakarta.faces.model - ResultSetDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2005 - if rowIndex is less than -1 - jakarta.faces.model - ResultSetDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2006 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ResultSetDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:2007 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - ResultSetDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:2008 - If there is wrappedData available, return 1. If no wrappedData is available, return -1. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2010 - If wrapped data is available, return the wrapped data instance. Otherwise, return null. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2012 - if now row data is available at the currently specified row index - jakarta.faces.model - ScalarDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2013 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2014 - if an error occurs getting the row index - jakarta.faces.model - ScalarDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2015 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2016 - Return true if there is wrappedData available, and the current value of rowIndex is zero. Otherwise, return false. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2018 - Construct a new ScalarDataModel with no specified wrapped data. - jakarta.faces.model - ScalarDataModel - - - - JSF:JAVADOC:2019 - Construct a new ScalarDataModel wrapping the specified scalar object. - jakarta.faces.model - ScalarDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:2020 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ScalarDataModel - - - int - - - - - JSF:JAVADOC:2021 - if an error occurs setting the row index - jakarta.faces.model - ScalarDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2022 - if rowIndex is less than -1 - jakarta.faces.model - ScalarDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2023 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ScalarDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:2024 - if data is not of the appropriate type for this DataModel implementation - jakarta.faces.model - ScalarDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:2025 - Return a description of this item, for use in development tools. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2026 - Return the label of this item, to be rendered visibly for the user. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2027 - Return the value of this item, to be delivered to the model if this item is selected by the user. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2028 - Return the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2029 - If and only if this returns true, the code that renders this select item must escape the label using escaping syntax appropriate to the content type being rendered. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2030 - Return the value of the noSelectionOption property. If the value of this property is true, the system interprets the option represented by this SelectItem instance as representing a "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2031 - Construct a SelectItem with no initialized property values. - jakarta.faces.model - SelectItem - - - - JSF:JAVADOC:2032 - Construct a SelectItem with the specified value. The label property will be set to the value (converted to a String, if necessary), the description property will be set to null, the disabled property will be set to false, and the escape property will be set to ( true. - jakarta.faces.model - SelectItem - - - java.lang.Object - - - - - JSF:JAVADOC:2033 - Construct a SelectItem with the specified value and label. The description property will be set to null, the disabled property will be set to false, and the escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:2034 - Construct a SelectItem instance with the specified value, label and description. This disabled property will be set to false, and the escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2035 - Construct a SelectItem instance with the specified property values. The escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - - - - - JSF:JAVADOC:2036 - Construct a SelectItem instance with the specified property values. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - boolean - - - - - JSF:JAVADOC:2037 - Construct a SelectItem instance with the specified property values. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - boolean - boolean - - - - - JSF:JAVADOC:2038 - Set the description of this item, for use in development tools. - jakarta.faces.model - SelectItem - - - java.lang.String - - - - - JSF:JAVADOC:2039 - Set the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true. - jakarta.faces.model - SelectItem - - - boolean - - - - - JSF:JAVADOC:2040 - Set the value of the escape property. See #isEscape. - jakarta.faces.model - SelectItem - - - boolean - - - - - JSF:JAVADOC:2041 - Set the label of this item, to be rendered visibly for the user. - jakarta.faces.model - SelectItem - - - java.lang.String - - - - - JSF:JAVADOC:2042 - Set the value of the noSelectionOption property. - jakarta.faces.model - SelectItem - - - boolean - - - - - JSF:JAVADOC:2043 - Set the value of this item, to be delivered to the model if this item is selected by this user. - jakarta.faces.model - SelectItem - - - java.lang.Object - - - - - JSF:JAVADOC:2044 - Return the set of subordinate SelectItems for this group. - jakarta.faces.model - SelectItemGroup - - - - JSF:JAVADOC:2045 - Construct a SelectItemGroup with no initialized property values. - jakarta.faces.model - SelectItemGroup - - - - JSF:JAVADOC:2046 - Construct a SelectItemGroup with the specified label and no associated selectItems. The value property will be set to a zero-length String, the description property will be set to null, and the disabled property will be set to false. - jakarta.faces.model - SelectItemGroup - - - java.lang.String - - - - - JSF:JAVADOC:2047 - Construct a SelectItemGroup with the specified properties. The value property will be set to a zero-length String. - jakarta.faces.model - SelectItemGroup - - - java.lang.String - java.lang.String - boolean - jakarta.faces.model.SelectItem[] - - - - - JSF:JAVADOC:2048 - Set the set of subordinate SelectItems for this group. - jakarta.faces.model - SelectItemGroup - - - jakarta.faces.model.SelectItem[] - - - - - JSF:JAVADOC:2049 - if selectItems is null - jakarta.faces.model - SelectItemGroup - - - jakarta.faces.model.SelectItem[] - - java.lang.NullPointerException - - - - JSF:JAVADOC:2050 - - jakarta.faces.render - ClientBehaviorRenderer - - - - JSF:JAVADOC:2051 - Decode any new state of this ClientBehavior from the request contained in the specified FacesContext. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.render - ClientBehaviorRenderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.ClientBehavior - - - - - JSF:JAVADOC:2052 - if context, component behavior is null - jakarta.faces.render - ClientBehaviorRenderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.ClientBehavior - - java.lang.NullPointerException - - - - JSF:JAVADOC:2053 - Return the script that implements this ClientBehavior's client-side logic. The default implementation returns null. ClientBehaviorRenderer.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehaviorRenderer implementation may return null if the associated ClientBehavior is disabled. - jakarta.faces.render - ClientBehaviorRenderer - - - jakarta.faces.component.behavior.ClientBehaviorContext - jakarta.faces.component.behavior.ClientBehavior - - - - - JSF:JAVADOC:2054 - - jakarta.faces.render - FacesBehaviorRenderer - - - - JSF:JAVADOC:2055 - The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of Renderer must be installed. - jakarta.faces.render - FacesBehaviorRenderer - - - - JSF:JAVADOC:2056 - The value of this annotation attribute is taken to be the component-family which, in combination with #rendererType can be used to obtain a reference to an instance of this Renderer by calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - jakarta.faces.render - FacesRenderer - - - - JSF:JAVADOC:2057 - The value of this annotation attribute is taken to be the renderer-type which, in combination with #componentFamily can be used to obtain a reference to an instance of this Renderer by calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - jakarta.faces.render - FacesRenderer - - - - JSF:JAVADOC:2058 - The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of Renderer must be installed. - jakarta.faces.render - FacesRenderer - - - - JSF:JAVADOC:2059 - Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument clientId unchanged. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2060 - if context or clientId is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2061 - Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling queueEvent() on the associated UIComponent. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2062 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2063 - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2064 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2065 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2066 - Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property of this component is true. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2067 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2068 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2069 - Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2070 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2071 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2072 - Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). If conversion is successful, the new value should be returned from this method; if not, a ConverterException should be thrown. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2073 - if the submitted value cannot be converted successfully. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:2074 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2075 - Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false. - jakarta.faces.render - Renderer - - - - JSF:JAVADOC:2076 - - jakarta.faces.render - Renderer - - - - JSF:JAVADOC:2077 - Register the specified ClientBehaviorRenderer instance, associated with the specified component type, to the set of ClientBehaviorRenderers registered with this RenderKit, replacing any previously registered ClientBehaviorRenderer for this type. - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.ClientBehaviorRenderer - - - - - JSF:JAVADOC:2078 - if type or renderer is null - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.ClientBehaviorRenderer - - java.lang.NullPointerException - - - - JSF:JAVADOC:2079 - Register the specified Renderer instance, associated with the specified component family and rendererType, to the set of Renderers registered with this RenderKit, replacing any previously registered Renderer for this combination of identifiers. - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - jakarta.faces.render.Renderer - - - - - JSF:JAVADOC:2080 - if family or rendererType or renderer is null - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - jakarta.faces.render.Renderer - - java.lang.NullPointerException - - - - JSF:JAVADOC:2081 - Use the provided OutputStream to create a new ResponseStream instance. - jakarta.faces.render - RenderKit - - - java.io.OutputStream - - - - - JSF:JAVADOC:2082 - Use the provided Writer to create a new ResponseWriter instance for the specified (optional) content type, and character encoding. Implementors are advised to consult the getCharacterEncoding() method of class javax.servlet.ServletResponse to get the required value for the characterEncoding for this method. Since the Writer for this response will already have been obtained (due to it ultimately being passed to this method), we know that the character encoding cannot change during the rendering of the response. - jakarta.faces.render - RenderKit - - - java.io.Writer - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2083 - if no matching content type can be found in contentTypeList, no appropriate content type can be found with the implementation dependent best fit algorithm, or no matching character encoding can be found for the argument characterEncoding. - jakarta.faces.render - RenderKit - - - java.io.Writer - java.lang.String - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2084 - Return the ClientBehaviorRenderer instance most recently registered for the specified type, if any; otherwise, return null. - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - JSF:JAVADOC:2085 - if type is null - jakarta.faces.render - RenderKit - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2086 - Return an Iterator over the ClientBehaviorRenderer types. - jakarta.faces.render - RenderKit - - - - JSF:JAVADOC:2087 - Return an Iterator over the component-family entries supported by this RenderKit instance. The default implementation of this method returns an empty Iterator - jakarta.faces.render - RenderKit - - - - JSF:JAVADOC:2088 - Return the Renderer instance most recently registered for the specified component family and rendererType, if any; otherwise, return null. - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2089 - if family or rendererType is null - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2090 - Return an Iterator over the renderer-type entries for the given component-family. If the specified componentFamily is not known to this RenderKit implementation, return an empty Iterator The default implementation of this method returns an empty Iterator - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - JSF:JAVADOC:2091 - Return an instance of ResponseStateManager to handle rendering technology specific state management decisions. - jakarta.faces.render - RenderKit - - - - JSF:JAVADOC:2092 - - jakarta.faces.render - RenderKit - - - - JSF:JAVADOC:2093 - Register the specified RenderKit instance, associated with the specified renderKitId, to be supported by this RenderKitFactory, replacing any previously registered RenderKit for this identifier. - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - - - - JSF:JAVADOC:2094 - if renderKitId or renderKit is null - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - java.lang.NullPointerException - - - - JSF:JAVADOC:2095 - Return a RenderKit instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specified FacesContext, if non-null. If there is no registered RenderKit for the specified identifier, return null. The set of available render kit identifiers is available via the getRenderKitIds() method. - jakarta.faces.render - RenderKitFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2096 - if no RenderKit instance can be returned for the specified identifier - jakarta.faces.render - RenderKitFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2097 - if renderKitId is null - jakarta.faces.render - RenderKitFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2098 - Return an Iterator over the set of render kit identifiers registered with this factory. This set must include the value specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - jakarta.faces.render - RenderKitFactory - - - - JSF:JAVADOC:2099 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.render - RenderKitFactory - - - - JSF:JAVADOC:2100 - - jakarta.faces.render - RenderKitFactory - - - - JSF:JAVADOC:2101 - The default behavior of this method is to call RenderKit#addClientBehaviorRenderer(String, ClientBehaviorRenderer) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - jakarta.faces.render.ClientBehaviorRenderer - - - - - JSF:JAVADOC:2102 - The default behavior of this method is to call RenderKit#addRenderer(String, String, Renderer) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - java.lang.String - jakarta.faces.render.Renderer - - - - - JSF:JAVADOC:2103 - The default behavior of this method is to call RenderKit#createResponseStream(java.io.OutputStream) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.io.OutputStream - - - - - JSF:JAVADOC:2104 - The default behavior of this method is to call RenderKit#createResponseWriter(java.io.Writer, String, String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.io.Writer - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2105 - The default behavior of this method is to call RenderKit#getClientBehaviorRenderer(String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2106 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getClientBehaviorRendererTypes() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - JSF:JAVADOC:2107 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getComponentFamilies() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - JSF:JAVADOC:2108 - The default behavior of this method is to call RenderKit#getRenderer(String, String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2109 - The default behavior of this method is to call RenderKit#getRendererTypes(String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2110 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getResponseStateManager() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - JSF:JAVADOC:2111 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.render - RenderKitWrapper - - - - JSF:JAVADOC:2112 - - jakarta.faces.render - RenderKitWrapper - - - - JSF:JAVADOC:2113 - The implementation must inspect the current request and return the component state Object passed to it on a previous invocation of writeState(). - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2115 - The implementation must inspect the current request and return the tree structure Object passed to it on a previous invocation of writeState(). - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2116 - Return the specified state as a String without any markup related to the rendering technology supported by this ResponseStateManager. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2118 - - jakarta.faces.render - ResponseStateManager - - - - JSF:JAVADOC:2121 - Take the argument state and write it into the output using the current ResponseWriter, which must be correctly positioned already. If the jakarta.faces.application.StateManager.SerializedView is to be written out to hidden fields, the implementation must take care to make all necessary character replacements to make the Strings suitable for inclusion as an HTTP request paramater. If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, the implementation may encrypt the state to be saved to the client. We recommend that the state be unreadable by the client, and also be tamper evident. The reference implementation follows these recommendations. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - - - - JSF:JAVADOC:2122 - - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - jakarta.faces.application.StateManager.StateManager.SerializedView - - java.io.IOException - - - - JSF:JAVADOC:2123 - - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2124 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2125 - Return the validation groups passed to the Validation API when checking constraints. If the validationGroupsArray attribute is omitted or empty, the validation groups will be inherited from the branch defaults, or if there are no branch defaults, the jakarta.validation.groups.Default group will be used. - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2126 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2127 - - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2128 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - BeanValidator - - - - JSF:JAVADOC:2129 - - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2130 - - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2131 - - jakarta.faces.validator - BeanValidator - - - boolean - - - - - JSF:JAVADOC:2132 - A comma-separated list of validation groups which are used to filter which validations get checked by this validator. If the validationGroupsArray attribute is omitted or is empty, the validation groups will be inherited from the branch defaults or, if there are no branch defaults, the jakarta.validation.groups.Default group will be used. - jakarta.faces.validator - BeanValidator - - - java.lang.String - - - - - JSF:JAVADOC:2134 - {@inheritDoc} - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2135 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2136 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2137 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - JSF:JAVADOC:2138 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - DoubleRangeValidator - - - double - double - - - - - JSF:JAVADOC:2139 - - jakarta.faces.validator - DoubleRangeValidator - - - java.lang.Object - - - - - JSF:JAVADOC:2140 - Return the maximum value to be enforced by this Validator or Double.MAX_VALUE if it has not been set. - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2141 - Return the minimum value to be enforced by this Validator, or Double.MIN_VALUE if it has not been set. - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2142 - - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2143 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2144 - - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2145 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - DoubleRangeValidator - - - - JSF:JAVADOC:2146 - - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2147 - - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2148 - Set the maximum value to be enforced by this Validator. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - JSF:JAVADOC:2149 - Set the minimum value to be enforced by this Validator. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - JSF:JAVADOC:2150 - - jakarta.faces.validator - DoubleRangeValidator - - - boolean - - - - - JSF:JAVADOC:2151 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for JSF 1.2 to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2152 - if validation fails - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2153 - if context or component is null - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2154 - If true, the validator id for this annotation is added to the list of default validators by a call to jakarta.faces.application.Application#addDefaultValidatorId. - jakarta.faces.validator - FacesValidator - - - - JSF:JAVADOC:2156 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2157 - - jakarta.faces.validator - LengthValidator - - - java.lang.Object - - - - - JSF:JAVADOC:2158 - Return the maximum length to be enforced by this Validator, or 0 if the maximum has not been set. - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2159 - Return the minimum length to be enforced by this Validator, or 0 if the minimum has not been set. - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2160 - - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2161 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2162 - - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2163 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2164 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - LengthValidator - - - int - - - - - JSF:JAVADOC:2165 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - LengthValidator - - - int - int - - - - - JSF:JAVADOC:2166 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - LengthValidator - - - - JSF:JAVADOC:2167 - - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2168 - - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2169 - Set the maximum length to be enforced by this Validator. - jakarta.faces.validator - LengthValidator - - - int - - - - - JSF:JAVADOC:2170 - Set the minimum length to be enforced by this Validator. - jakarta.faces.validator - LengthValidator - - - int - - - - - JSF:JAVADOC:2171 - - jakarta.faces.validator - LengthValidator - - - boolean - - - - - JSF:JAVADOC:2172 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for JSF 1.2 to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2173 - if validation fails - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2174 - if context or component is null - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2175 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2176 - - jakarta.faces.validator - LongRangeValidator - - - java.lang.Object - - - - - JSF:JAVADOC:2177 - Return the maximum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2178 - Return the minimum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2179 - - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2180 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2181 - - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2182 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2183 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - JSF:JAVADOC:2184 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - LongRangeValidator - - - long - long - - - - - JSF:JAVADOC:2185 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - LongRangeValidator - - - - JSF:JAVADOC:2186 - - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2187 - - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2188 - Set the maximum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - JSF:JAVADOC:2189 - Set the minimum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - JSF:JAVADOC:2190 - - jakarta.faces.validator - LongRangeValidator - - - boolean - - - - - JSF:JAVADOC:2191 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for JSF 1.2 to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2192 - if validation fails - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2193 - if context or component is null - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2194 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.validator - MethodExpressionValidator - - - - JSF:JAVADOC:2195 - - jakarta.faces.validator - MethodExpressionValidator - - - - JSF:JAVADOC:2196 - Construct a Validator that contains a MethodExpression. - jakarta.faces.validator - MethodExpressionValidator - - - MethodExpression - - - - - JSF:JAVADOC:2199 - Gets the state of the instance as a Serializable Object. If the class that implements this interface has references to instances that implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #saveState method on all those instances as well. This method must not save the state of children and facets. That is done via the jakarta.faces.application.StateManager This method must not alter the state of the implementing object. In other words, after executing this code: Object state = component.saveState(facesContext); component should be the same as before executing it. The return from this method must be Serializable - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2200 - if context is null - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:2201 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.validator - MethodExpressionValidator - - - boolean - - - - - JSF:JAVADOC:2202 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for JSF 1.2 to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2203 - if validation fails - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2204 - if context or component is null - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2205 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2206 - Return the ValueExpression that yields the regular expression pattern when evaluated. - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2207 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2208 - - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2209 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2210 - - jakarta.faces.validator - RegexValidator - - - - JSF:JAVADOC:2211 - - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2212 - - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2213 - The Regular Expression property to validate against. - jakarta.faces.validator - RegexValidator - - - java.lang.String - - - - - JSF:JAVADOC:2214 - - jakarta.faces.validator - RegexValidator - - - boolean - - - - - JSF:JAVADOC:2215 - Validate a String against a regular expression pattern. The full regex pattern must be matched in order to pass the validation. - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2216 - {@inheritDoc} - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2217 - {@inheritDoc} - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2218 - - jakarta.faces.validator - RequiredValidator - - - - JSF:JAVADOC:2219 - Verify that the converted object value is not null. - jakarta.faces.validator - RequiredValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2220 - {@inheritDoc} - jakarta.faces.validator - RequiredValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2221 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for JSF 1.2 to work with JSF 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2222 - if validation fails - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - JSF:JAVADOC:2223 - if context or component is null - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2224 - Returns the FacesMessage associated with the exception. If this instance was created with a constructor that takes Collection, this method returns the first message in the Collection - jakarta.faces.validator - ValidatorException - - - - JSF:JAVADOC:2225 - If this instance was created with a constructor that takes Collection, this method returns the passed collection, otherwise this method returns null. - jakarta.faces.validator - ValidatorException - - - - JSF:JAVADOC:2226 - Construct a new exception with the specified message and no root cause. - jakarta.faces.validator - ValidatorException - - - jakarta.faces.application.FacesMessage - - - - - JSF:JAVADOC:2227 - Allow this one exception to contain multiple messages. - jakarta.faces.validator - ValidatorException - - - java.util.Collection - - - - - JSF:JAVADOC:2228 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.validator - ValidatorException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - JSF:JAVADOC:2229 - Allow this one exception to contain multiple messages, while passing on the root cause to the superclass - jakarta.faces.validator - ValidatorException - - - java.util.Collection - java.lang.Throwable - - - - - JSF:JAVADOC:2230 - Take the argument parent and apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface. - jakarta.faces.view - AttachedObjectHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2231 - Return the value of the "for" attribute specified by the page author on the tag for this AttachedObjectHandler. - jakarta.faces.view - AttachedObjectHandler - - - - JSF:JAVADOC:2232 - Returns the name by which this attached object target is exposed to the page author. - jakarta.faces.view - AttachedObjectTarget - - - - JSF:JAVADOC:2233 - Returns the List that this AttachedObjectTarget exposes. Each attached object exposed by the composite component author may point at multiple UIComponent instances within the composite component. This method is used by the jakarta.faces.view.ViewDeclarationLanguage#retargetAttachedObjects method to take the appropriate action on the attached object. - jakarta.faces.view - AttachedObjectTarget - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2234 - Return the client event name to which this behavior applies. - jakarta.faces.view - BehaviorHolderAttachedObjectHandler - - - - JSF:JAVADOC:2235 - - jakarta.faces.view - BehaviorHolderAttachedObjectTarget - - - - JSF:JAVADOC:2236 - Return the estimated character column. - jakarta.faces.view - Location - - - - JSF:JAVADOC:2237 - Return the line number in the page for this location. - jakarta.faces.view - Location - - - - JSF:JAVADOC:2238 - Return the file path to the page represented by this location. - jakarta.faces.view - Location - - - - JSF:JAVADOC:2239 - - jakarta.faces.view - Location - - - java.lang.String - int - int - - - - - JSF:JAVADOC:2240 - - jakarta.faces.view - Location - - - - JSF:JAVADOC:2243 - - jakarta.faces.view - StateManagementStrategy - - - - JSF:JAVADOC:2245 - - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:2247 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2249 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.NullPointerException - - - - JSF:JAVADOC:2250 - if there is an error in obtaining the metadata - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2251 - if this is a JSP VDL implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.UnsupportedOperationException - - - - JSF:JAVADOC:2253 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.NullPointerException - - - - JSF:JAVADOC:2254 - if there is an error in obtaining the script component resource - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2255 - if this is a JSP VDL implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.UnsupportedOperationException - - - - JSF:JAVADOC:2256 - For implementations that want to control the implementation of state saving and restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the implementation wishes the runtime to handle the state saving and restoring. Implementations that provide the VDL for Facelets for JSF 2.0 and later must return non-null from this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2258 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2259 - if there is an error in obtaining the metadata - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2261 - - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:2262 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.lang.NullPointerException - - - - JSF:JAVADOC:2264 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2265 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting attached objects from the top level composite component to the individual AttachedObjectTarget instances inside the composite component. This method must be called by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite component usage is encountered. An algorithm semantically equivalent to the following must be implemented. Obtain the metadata for the composite component. Currently this entails getting the value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the BeanDescriptor's getValue() method. This will be a List<AttachedObjectTarget>. Let this be targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the following items that causes a match will take this action: For each UIComponent in the list returned from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the UIComponent. and cause this inner loop to terminate. If curHandler is an instance of ActionSource2AttachedObjectHandler and curTarget is an instance of ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of BehaviorHolderAttachedObjectHandler and curTarget is an instance of BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support retargeting attached objects from the top level compsite component to targets that are composite and non-composite components. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - - - - JSF:JAVADOC:2266 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - java.lang.NullPointerException - - - - JSF:JAVADOC:2267 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting any method expressions from the top level component to the appropriate inner component. For each attribute that is a MethodExpression (as indicated by the presence of a "method-signature" attribute and the absence of a "type" attribute), the following action must be taken: Get the value of the targets attribute. If the value is a ValueExpression evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For each entry in the list: Find the inner component of the topLevelComponent with the id equal to the current list entry. For discussion, this component is called target. If not found, log and error and continue to the next attribute. For discussion the declared name of the attribute is called name. In the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error and continue to the next attribute. If name is equal to the string "action", or "actionListener" without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to the string "validator", or "valueChangeListener" without the quotes, assume target is an jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression of the appropriate signature for name. If name is not equal to any of the previously listed strings, call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression where the signature is created based on the value of the "method-signature" attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for discussion. If name is equal to the string "action" without the quotes, call jakarta.faces.component.ActionSource2#setActionExpression on target, passing attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on target, passing attributeMethodExpression wrapped in a jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string "valueChangeListener" without the quotes, call jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. Otherwise, assume that the MethodExpression should be placed in the components attribute set. The runtme must create the MethodExpression instance based on the value of the "method-signature" attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2268 - if context or topLevelComponent is null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2269 - - jakarta.faces.view - ViewDeclarationLanguage - - - - JSF:JAVADOC:2271 - if viewId is null. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2272 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - - JSF:JAVADOC:2273 - - jakarta.faces.view - ViewDeclarationLanguageFactory - - - - JSF:JAVADOC:2274 - Creates a new UIViewRoot containing only view parameter metadata. The processing of building this UIViewRoot with metadata should not cause any events to be published to the application. The implementation must call FacesContext#setProcessingEvents passing false as the argument, at the beginning of the method, and pass true to the same method at the end. The implementation must ensure that this happens regardless of ant exceptions that may be thrown. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2275 - - jakarta.faces.view - ViewMetadata - - - - JSF:JAVADOC:2276 - Utility method to extract view metadata from the provided UIViewRoot. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2277 - - jakarta.faces.view - ViewMetadata - - - - JSF:JAVADOC:2278 - Returns the resolved literal String value of the attribute name after evaluating EL. - jakarta.faces.view.facelets - AttributeHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2279 - Return the value of the behavior-id. - jakarta.faces.view.facelets - BehaviorConfig - - - - JSF:JAVADOC:2280 - - jakarta.faces.view.facelets - BehaviorHandler - - - jakarta.faces.view.facelets.BehaviorConfig - - - - - JSF:JAVADOC:2281 - - jakarta.faces.view.facelets - BehaviorHandler - - - - JSF:JAVADOC:2282 - - jakarta.faces.view.facelets - BehaviorHandler - - - - JSF:JAVADOC:2283 - Return the client event name to which this behavior applies. - jakarta.faces.view.facelets - BehaviorHandler - - - - JSF:JAVADOC:2284 - ComponentType to pass to the Application. Cannot be null. - jakarta.faces.view.facelets - ComponentConfig - - - - JSF:JAVADOC:2285 - RendererType to set on created UIComponent instances. - jakarta.faces.view.facelets - ComponentConfig - - - - JSF:JAVADOC:2286 - Leverage the TagHandlerDelegateFactory provided by the implementation to create an instance of TagHandlerDelegate designed for use with ComponentHandler. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.ComponentConfig - - - - - JSF:JAVADOC:2287 - - jakarta.faces.view.facelets - ComponentHandler - - - - JSF:JAVADOC:2288 - Determine if the passed component is not null and if it's new to the tree. This operation can be used for determining if attributes should be wired to the component. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2289 - This method is guaranteed to be called after the component has been created but before it has been populated with children. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2290 - This method is guaranteed to be called after the component has been populated with children. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2291 - Calls apply on any child handlers. - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2292 - - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2293 - - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletHandler[] - - - - - JSF:JAVADOC:2294 - Returns the array of child handlers contained by this handler. - jakarta.faces.view.facelets - CompositeFaceletHandler - - - - JSF:JAVADOC:2295 - Return the converter id to be used in instantiating this converter - jakarta.faces.view.facelets - ConverterConfig - - - - JSF:JAVADOC:2296 - - jakarta.faces.view.facelets - ConverterHandler - - - jakarta.faces.view.facelets.ConverterConfig - - - - - JSF:JAVADOC:2297 - - jakarta.faces.view.facelets - ConverterHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2298 - The default implementation simply calls through to TagHandlerDelegate#apply. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2299 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2301 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2302 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2303 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - ELException - - - - JSF:JAVADOC:2304 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - JSF:JAVADOC:2305 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - JSF:JAVADOC:2306 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - JSF:JAVADOC:2307 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - java.lang.String - - - - - JSF:JAVADOC:2308 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - JSF:JAVADOC:2309 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2310 - Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Object - - - - - JSF:JAVADOC:2311 - - jakarta.faces.view.facelets - FaceletContext - - - - JSF:JAVADOC:2312 - Generate a unique ID for the passed String - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - - - - - JSF:JAVADOC:2313 - Return an attribute set by a previous call to #setAttribute. Support method which is backed by the current VariableMapper - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - - - - - JSF:JAVADOC:2314 - The ExpressionFactory to use within the Facelet this context is executing upon. Must not be null. - jakarta.faces.view.facelets - FaceletContext - - - - JSF:JAVADOC:2315 - The current FacesContext bound to this "request". Must not be null. - jakarta.faces.view.facelets - FaceletContext - - - - JSF:JAVADOC:2316 - Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP) - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - - - - JSF:JAVADOC:2317 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:2318 - if unable to parse the markup loaded from relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.view.facelets.FaceletException - - - - JSF:JAVADOC:2320 - if any of the expressions in the markup loaded from relativePath fail - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - ELException - - - - JSF:JAVADOC:2321 - Include another Facelet defined at some path, absolute to this ClassLoader/OS - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - - - - JSF:JAVADOC:2322 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - java.io.IOException - - - - JSF:JAVADOC:2323 - if unable to parse the markup loaded from relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - jakarta.faces.view.facelets.FaceletException - - - - JSF:JAVADOC:2325 - if any of the expressions in the markup loaded from relativePath fail - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - ELException - - - - JSF:JAVADOC:2326 - Support method which is backed by the current VariableMapper. - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:2327 - Set the FunctionMapper to use in EL evaluation/creation. - jakarta.faces.view.facelets - FaceletContext - - - FunctionMapper - - - - - JSF:JAVADOC:2328 - Set the VariableMapper to use in EL evaluation/creation. - jakarta.faces.view.facelets - FaceletContext - - - VariableMapper - - - - - JSF:JAVADOC:2329 - Create an empty FaceletException. - jakarta.faces.view.facelets - FaceletException - - - - JSF:JAVADOC:2330 - Create a FaceletException with argument message as the message. - jakarta.faces.view.facelets - FaceletException - - - java.lang.String - - - - - JSF:JAVADOC:2331 - Wrap argument cause within this FaceletException instance. - jakarta.faces.view.facelets - FaceletException - - - java.lang.Throwable - - - - - JSF:JAVADOC:2332 - Wrap argument cause in a FaceletException instance, with a message given by the argument message. - jakarta.faces.view.facelets - FaceletException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:2333 - Process changes on a particular UIComponent - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2334 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2335 - if unable to parse the markup loaded from relativePath - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - jakarta.faces.view.facelets.FaceletException - - - - JSF:JAVADOC:2337 - if any of the expressions in the markup loaded from relativePath fail - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - ELException - - - - JSF:JAVADOC:2338 - Take the necessary actions to apply the attached object represented by the tag for the concrete subclass of this class to the argument parent. - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2339 - Call through to super - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - JSF:JAVADOC:2340 - Return the value of the "for" attribute. This enables the runtime to know to which inner component this attached object should be retargeted. - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - - JSF:JAVADOC:2341 - Returns the resolved literal String value of the facet name after evaluating EL. - jakarta.faces.view.facelets - FacetHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2342 - Take the action prescribed in the JSF specification for this particular VDL element attribute. - jakarta.faces.view.facelets - Metadata - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Object - - - - - JSF:JAVADOC:2343 - - jakarta.faces.view.facelets - Metadata - - - - JSF:JAVADOC:2344 - Return a beans PropertyDescriptor for the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - JSF:JAVADOC:2345 - Return a Class for the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - JSF:JAVADOC:2346 - Return a Method for the getter of the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - JSF:JAVADOC:2347 - Return the Class of the metadata target. - jakarta.faces.view.facelets - MetadataTarget - - - - JSF:JAVADOC:2348 - Return a Method for the setter of the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - JSF:JAVADOC:2349 - Return true if the target for this metadata element is an instance of the argument type. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.Class - - - - - JSF:JAVADOC:2350 - - jakarta.faces.view.facelets - MetadataTarget - - - - JSF:JAVADOC:2351 - Return an abstraction that takes appropriate action given the kind of rule represented by the argument name, in the context of this particular concrete subclass of MetaRule. The abstraction must encapsulate the value from the argument attribute. - jakarta.faces.view.facelets - MetaRule - - - java.lang.String - jakarta.faces.view.facelets.TagAttribute - jakarta.faces.view.facelets.MetadataTarget - - - - - JSF:JAVADOC:2352 - - jakarta.faces.view.facelets - MetaRule - - - - JSF:JAVADOC:2353 - Add another Metadata to this ruleset, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - jakarta.faces.view.facelets.Metadata - - - - - JSF:JAVADOC:2354 - Add another MetaRule to this ruleset, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - jakarta.faces.view.facelets.MetaRule - - - - - JSF:JAVADOC:2355 - Customize this MetaRuleset by removing the attribute named by argument attribute and re-adding it under the name given by the argument property, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2356 - Take actions to apply the rule. - jakarta.faces.view.facelets - MetaRuleset - - - - JSF:JAVADOC:2357 - Customize this MetaRuleset instance to advise it to ignore the attribute named by the attribute argument, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - java.lang.String - - - - - JSF:JAVADOC:2358 - Customize this MetaRuleset instance to advise it to ignore all attributes, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - - JSF:JAVADOC:2359 - - jakarta.faces.view.facelets - MetaRuleset - - - - JSF:JAVADOC:2360 - - jakarta.faces.view.facelets - MetaTagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - JSF:JAVADOC:2361 - Returns the URL of a Facelet template file. Called by the Facelets Runtime to load a template file referred to in a Facelets page. - jakarta.faces.view.facelets - ResourceResolver - - - java.lang.String - - - - - JSF:JAVADOC:2362 - - jakarta.faces.view.facelets - ResourceResolver - - - - JSF:JAVADOC:2363 - Return an object encapsulating the TagAttributes specified on this element in the view. - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2364 - Return the XML local name of the tag. For example, would be "tag". - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2365 - Return the Location of this Tag instance in the Facelet view. - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2366 - Return the resolved XML Namespace for this tag in the Facelets view. - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2367 - Return the XML qualified name for this tag. For example, would be "my:tag". - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2368 - - jakarta.faces.view.facelets - Tag - - - jakarta.faces.view.Location - java.lang.String - java.lang.String - java.lang.String - jakarta.faces.view.facelets.TagAttributes - - - - - JSF:JAVADOC:2369 - - jakarta.faces.view.facelets - Tag - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttributes - - - - - JSF:JAVADOC:2370 - - jakarta.faces.view.facelets - Tag - - - - JSF:JAVADOC:2371 - If literal, return Boolean#getBoolean(java.lang.String) Boolean.getBoolean(java.lang.String) passing our value, otherwise call #getObject(FaceletContext, Class) getObject(FaceletContext, Class). - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2372 - If literal, call Integer#parseInt(java.lang.String) Integer.parseInt(String), otherwise call #getObject(FaceletContext, Class) getObject(FaceletContext, Class). - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2373 - Local name of this attribute - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2374 - The location of this attribute in the FaceletContext - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2375 - Create a MethodExpression, using this attribute's value as the expression String. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - java.lang.Class[] - - - - - JSF:JAVADOC:2376 - The resolved Namespace for this attribute - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2377 - Delegates to getObject with Object.class as a param - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2378 - If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - - - - - JSF:JAVADOC:2379 - The qualified name for this attribute - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2380 - Return the literal value of this attribute - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2381 - If literal, then return our value, otherwise delegate to getObject, passing String.class. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2382 - Create a ValueExpression, using this attribute's literal value and the passed expected type. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - - - - - JSF:JAVADOC:2383 - If this TagAttribute is literal (not #{..} or ${..}) - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2384 - - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2385 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - - - - - JSF:JAVADOC:2386 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.String - - - - - JSF:JAVADOC:2387 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.Throwable - - - - - JSF:JAVADOC:2388 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:2389 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - - - - - JSF:JAVADOC:2390 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.String - - - - - JSF:JAVADOC:2391 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.Throwable - - - - - JSF:JAVADOC:2392 - - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:2393 - Using no namespace, find the TagAttribute - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - - - - - JSF:JAVADOC:2394 - Find a TagAttribute that matches the passed namespace and local name. - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2395 - Return an array of all TagAttributes in this set - jakarta.faces.view.facelets - TagAttributes - - - - JSF:JAVADOC:2396 - Get all TagAttributes for the passed namespace - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - - - - - JSF:JAVADOC:2397 - A list of Namespaces found in this set - jakarta.faces.view.facelets - TagAttributes - - - - JSF:JAVADOC:2398 - - jakarta.faces.view.facelets - TagAttributes - - - - JSF:JAVADOC:2399 - The next FaceletHandler (child or children) to be applied. This must never be null. - jakarta.faces.view.facelets - TagConfig - - - - JSF:JAVADOC:2400 - Return the Tag representing this handler. - jakarta.faces.view.facelets - TagConfig - - - - JSF:JAVADOC:2401 - A document-unique id, follows the convention "_tagId##" - jakarta.faces.view.facelets - TagConfig - - - - JSF:JAVADOC:2402 - If handled, return a new Tag instance, otherwise return null - jakarta.faces.view.facelets - TagDecorator - - - jakarta.faces.view.facelets.Tag - - - - - JSF:JAVADOC:2403 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - - - - - JSF:JAVADOC:2404 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.String - - - - - JSF:JAVADOC:2405 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.Throwable - - - - - JSF:JAVADOC:2406 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:2407 - Every TagHandler instance is associated with a Tag. Each Tag instance has a TagAttributes property, which is simply a collection of TagAttribute instances. Extract and save as protected instance variables the TagConfig#getTagId, TagConfig#getTag and TagConfig#getNextHandler returns from the argument TagConfig. This constructor is only called when the Facelets View is compiled. - jakarta.faces.view.facelets - TagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - JSF:JAVADOC:2408 - - jakarta.faces.view.facelets - TagHandler - - - - JSF:JAVADOC:2410 - - jakarta.faces.view.facelets - TagHandlerDelegate - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2411 - Return a MetaRuleset particular to this kind of tag handler. Called from classes that implement MetaTagHandler. - jakarta.faces.view.facelets - TagHandlerDelegate - - - java.lang.Class - - - - - JSF:JAVADOC:2412 - - jakarta.faces.view.facelets - TagHandlerDelegate - - - - JSF:JAVADOC:2413 - Create and return a TagHandlerDelegate instance designed for use with BehaviorHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.BehaviorHandler - - - - - JSF:JAVADOC:2414 - Create and return a TagHandlerDelegate instance designed for use with ComponentHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ComponentHandler - - - - - JSF:JAVADOC:2415 - Create and return a TagHandlerDelegate instance designed for use with ConverterHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ConverterHandler - - - - - JSF:JAVADOC:2416 - Create and return a TagHandlerDelegate instance designed for use with ValidatorHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ValidatorHandler - - - - - JSF:JAVADOC:2417 - - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - - JSF:JAVADOC:2418 - Returns the literal String value of the contained text. - jakarta.faces.view.facelets - TextHandler - - - - JSF:JAVADOC:2419 - Returns the resolved literal String value of the contained text after evaluating EL. - jakarta.faces.view.facelets - TextHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2420 - Return the validator-id associated with a particular validator in your faces-config - jakarta.faces.view.facelets - ValidatorConfig - - - - JSF:JAVADOC:2421 - Return the TagConfig subclass used to configure this handler instance. - jakarta.faces.view.facelets - ValidatorHandler - - - - JSF:JAVADOC:2422 - Retrieve the id of the validator that is to be created and added to the parent EditableValueHolder. All subclasses should override this method because it is important for Facelets to have a unique way of identifying the validators that are added to this EditableValueHolder and allows exclusions to work properly. An exclusion is a validator declaration that has the attribute "disabled" which resolves to false, instructing Facelets not to register a default validator with the same id. - jakarta.faces.view.facelets - ValidatorHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2423 - Construct this instance around the configuration information in argument config - jakarta.faces.view.facelets - ValidatorHandler - - - jakarta.faces.view.facelets.ValidatorConfig - - - - - JSF:JAVADOC:2424 - - jakarta.faces.webapp - AttributeTag - - - - JSF:JAVADOC:2425 - - jakarta.faces.webapp - AttributeTag - - - - JSF:JAVADOC:2426 - - jakarta.faces.webapp - AttributeTag - - JspException - - - - JSF:JAVADOC:2427 - Register the specified attribute name and value with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if this UIComponent does not already have a value for the specified attribute name. - jakarta.faces.webapp - AttributeTag - - - - JSF:JAVADOC:2428 - if a JSP error occurs - jakarta.faces.webapp - AttributeTag - - JspException - - - - JSF:JAVADOC:2429 - Release references to any acquired resources. - jakarta.faces.webapp - AttributeTag - - - - JSF:JAVADOC:2430 - Set the attribute name. - jakarta.faces.webapp - AttributeTag - - - java.lang.String - - - - - JSF:JAVADOC:2431 - Set the attribute value. - jakarta.faces.webapp - AttributeTag - - - java.lang.String - - - - - JSF:JAVADOC:2432 - - jakarta.faces.webapp - ConverterELTag - - - - JSF:JAVADOC:2433 - Create a new instance of the specified Converter class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentClassicTagBase instance, if the UIComponent instance was created by this execution of the containing JSP page. If the localValue of the UIComponent is a String, attempt to convert it. - jakarta.faces.webapp - ConverterELTag - - - - JSF:JAVADOC:2434 - if a JSP error occurs - jakarta.faces.webapp - ConverterELTag - - JspException - - - - JSF:JAVADOC:2435 - - jakarta.faces.webapp - ConverterTag - - - - JSF:JAVADOC:2436 - Create a new instance of the specified Converter class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page. If the localValue of the UIComponent is a String, attempt to convert it. - jakarta.faces.webapp - ConverterTag - - - - JSF:JAVADOC:2437 - if a JSP error occurs - jakarta.faces.webapp - ConverterTag - - JspException - - - - JSF:JAVADOC:2438 - Release references to any acquired resources. - jakarta.faces.webapp - ConverterTag - - - - JSF:JAVADOC:2439 - Set the expression that will be used to create a ValueExpression that references a backing bean property of the Converter instance to be created. - jakarta.faces.webapp - ConverterTag - - - java.lang.String - - - - - JSF:JAVADOC:2440 - if a JSP error occurs - jakarta.faces.webapp - ConverterTag - - - java.lang.String - - JspException - - - - JSF:JAVADOC:2441 - Set the identifer of the Converter instance to be created. - jakarta.faces.webapp - ConverterTag - - - java.lang.String - - - - - JSF:JAVADOC:2442 - Release all resources acquired at startup time. - jakarta.faces.webapp - FacesServlet - - - - JSF:JAVADOC:2443 - - jakarta.faces.webapp - FacesServlet - - - - JSF:JAVADOC:2444 - Return the ServletConfig instance for this servlet. - jakarta.faces.webapp - FacesServlet - - - - JSF:JAVADOC:2445 - Return information about this Servlet. - jakarta.faces.webapp - FacesServlet - - - - JSF:JAVADOC:2446 - Acquire the factory instances we will require. - jakarta.faces.webapp - FacesServlet - - - ServletConfig - - - - - JSF:JAVADOC:2447 - if, for any reason, the startup of this Faces application failed. This includes errors in the config file that is parsed before or during the processing of this init() method. - jakarta.faces.webapp - FacesServlet - - - ServletConfig - - ServletException - - - - JSF:JAVADOC:2449 - if an input/output error occurs during processing - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - java.io.IOException - - - - JSF:JAVADOC:2450 - if a servlet error occurs during processing - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - ServletException - - - - JSF:JAVADOC:2451 - Return EVAL_BODY_INCLUDE to cause nested body content to be evaluated. - jakarta.faces.webapp - FacetTag - - - - JSF:JAVADOC:2452 - - jakarta.faces.webapp - FacetTag - - JspException - - - - JSF:JAVADOC:2453 - - jakarta.faces.webapp - FacetTag - - - - JSF:JAVADOC:2454 - Return the name to be assigned to this facet. - jakarta.faces.webapp - FacetTag - - - - JSF:JAVADOC:2455 - Release any resources allocated by this tag instance. - jakarta.faces.webapp - FacetTag - - - - JSF:JAVADOC:2456 - Set the name to be assigned to this facet. - jakarta.faces.webapp - FacetTag - - - java.lang.String - - - - - JSF:JAVADOC:2457 - Create and return a A new ExceptionHandler instance. The implementation must return an ExceptionHandler instance suitable for the environment. For example, in some cases it may be desirable for an ExceptionHandler to write error information to the response instead of throwing exceptions as in the case of Ajax applications. - jakarta.faces.webapp - PreJsf2ExceptionHandlerFactory - - - - JSF:JAVADOC:2458 - - jakarta.faces.webapp - PreJsf2ExceptionHandlerFactory - - - - JSF:JAVADOC:2459 - - jakarta.faces.webapp - UIComponentBodyTag - - - - JSF:JAVADOC:2460 - Perform any processing necessary to handle the content implications of CASE 4 in the class description. Return result from #getDoAfterBodyValue - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2461 - if an error is encountered - jakarta.faces.webapp - UIComponentClassicTagBase - - JspException - - - - JSF:JAVADOC:2462 - Perform any processing necessary to handle the content implications of CASE 3 in the class description. The default implementation, which is intended to be sufficient for most components, calls #createVerbatimComponentFromBodyContent on this instance and adds it as a child of the component for this tag's component at the end of the child list. In addition, the following housekeeping steps are taken. Retrieve from the UIComponent the set of component ids of child components created by UIComponentTag instances the last time this page was processed (if any). Compare it to the list of children created during this page processing pass, and remove all children present in the old list but not the new. Save the new list as a component attribute so that it gets saved as part of the component's state. Retrieve from the UIComponent the set of facet names of facets created by UIComponentTag instances the last time this page was processed (if any). Compare it to the list of facets created during this page processing pass, and remove all facets present in the old list but not the new. Save the new list as a component attribute so that it gets saved as part of the component's state. Release all references to the component, and pop it from the component stack for this response, removing the stack if this was the outermost component. The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2463 - if an error occurs - jakarta.faces.webapp - UIComponentClassicTagBase - - JspException - - - - JSF:JAVADOC:2464 - Prepare for evaluation of the body. This method is invoked by the JSP page implementation object after setBodyContent() and before the first time the body is to be evaluated. This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2465 - if an error is encountered - jakarta.faces.webapp - UIComponentClassicTagBase - - JspException - - - - JSF:JAVADOC:2466 - Perform any processing necessary to find (or create) the UIComponent instance in the view corresponding to this tag instance in the page and, if and only if a component was created, insert it into the tree at the proper location as expected by the page author. Secondarily, cause a transient UIOutput component to be created and placed in the tree before the UIComponent instance for this tag. The value of this UIOutput component must include anything covered by CASE 1 or CASE 2 in the class description. The default implementation, which is intended to be sufficient for most components, implements this secondary requirement by calling #getParentUIComponentClassicTagBase, and calling #createVerbatimComponentFromBodyContent on the result. It then adds the returned component to the tree before the actual component for this tag instance instance by calling #addVerbatimBeforeComponent. Before returning, the component is pushed onto the component stack for this response to enable the #getParentUIComponentClassicTagBase method to work properly. The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2467 - if an error occurs - jakarta.faces.webapp - UIComponentClassicTagBase - - JspException - - - - JSF:JAVADOC:2468 - - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2469 - Return the UIComponent instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2470 - Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2471 - - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2472 - Return the Tag that is the parent of this instance. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2473 - Locate and return the nearest enclosing UIComponentClassicTagBase if any; otherwise, return null. - jakarta.faces.webapp - UIComponentClassicTagBase - - - PageContext - - - - - JSF:JAVADOC:2474 - Get the JspWriter from our BodyContent. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2475 - Release any resources allocated during the execution of this tag handler. - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2476 - Set the bodyContent for this tag handler. This method is invoked by the JSP page implementation object at most once per action invocation, before doInitiBody(). This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - jakarta.faces.webapp - UIComponentClassicTagBase - - - BodyContent - - - - - JSF:JAVADOC:2477 - Set the component identifier for our component. If the argument begins with UIViewRoot#UNIQUE_ID_PREFIX throw an IllegalArgumentException - jakarta.faces.webapp - UIComponentClassicTagBase - - - java.lang.String - - - - - JSF:JAVADOC:2478 - if the argument is non-null and starts with UIViewRoot#UNIQUE_ID_PREFIX. - jakarta.faces.webapp - UIComponentClassicTagBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2479 - Defined on JspIdConsumer. This method is called by the container before #doStartTag. The argument is guaranteed to be unique within the page. IMPLEMENTATION NOTE: This method will detect where we are in an include and assign a unique ID for each include in a particular 'logical page'. This allows us to avoid possible duplicate ID situations for included pages that have components without explicit IDs. - jakarta.faces.webapp - UIComponentClassicTagBase - - - java.lang.String - - - - - JSF:JAVADOC:2480 - Set the PageContext of the page containing this tag instance. - jakarta.faces.webapp - UIComponentClassicTagBase - - - PageContext - - - - - JSF:JAVADOC:2481 - Set the Tag that is the parent of this instance. - jakarta.faces.webapp - UIComponentClassicTagBase - - - Tag - - - - - JSF:JAVADOC:2482 - - jakarta.faces.webapp - UIComponentClassicTagBase - - - - JSF:JAVADOC:2483 - Release any resources allocated during the execution of this tag handler. - jakarta.faces.webapp - UIComponentELTag - - - - JSF:JAVADOC:2484 - Set the value expression for our component. - jakarta.faces.webapp - UIComponentELTag - - - ValueExpression - - - - - JSF:JAVADOC:2485 - if an error occurs - jakarta.faces.webapp - UIComponentELTag - - - ValueExpression - - JspException - - - - JSF:JAVADOC:2486 - Set an override for the rendered attribute. - jakarta.faces.webapp - UIComponentELTag - - - ValueExpression - - - - - JSF:JAVADOC:2487 - - jakarta.faces.webapp - UIComponentELTag - - - - JSF:JAVADOC:2488 - Locate and return the nearest enclosing UIComponentTag if any; otherwise, return null. - jakarta.faces.webapp - UIComponentTag - - - PageContext - - - - - JSF:JAVADOC:2489 - Return true if the specified value conforms to the syntax requirements of a value binding expression. Such expressions ` * may be used on most component tag attributes to signal a desire for deferred evaluation of the attribute or property value to be set on the underlying UIComponent. - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - - - - JSF:JAVADOC:2490 - if value is null - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2491 - Release any resources allocated during the execution of this tag handler. - jakarta.faces.webapp - UIComponentTag - - - - JSF:JAVADOC:2492 - Set the value binding expression for our component. - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - - - - JSF:JAVADOC:2493 - - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - JspException - - - - JSF:JAVADOC:2494 - if the specified binding is not a valid value binding expression. - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2495 - Set an override for the rendered attribute. - jakarta.faces.webapp - UIComponentTag - - - java.lang.String - - - - - JSF:JAVADOC:2496 - - jakarta.faces.webapp - UIComponentTag - - - - JSF:JAVADOC:2497 - Return the UIComponent instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - UIComponentTagBase - - - - JSF:JAVADOC:2498 - Return the component type for the component that is or will be bound to this tag. This value can be passed to jakarta.faces.application.Application#createComponent to create the UIComponent instance for this tag. Subclasses must override this method to return the appropriate value. - jakarta.faces.webapp - UIComponentTagBase - - - - JSF:JAVADOC:2499 - Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - UIComponentTagBase - - - - JSF:JAVADOC:2500 - Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value. - jakarta.faces.webapp - UIComponentTagBase - - - - JSF:JAVADOC:2501 - Set the component identifier for the component corresponding to this tag instance. If the argument begins with jakarta.faces.component.UIViewRoot#UNIQUE_ID_PREFIX throw an IllegalArgumentException - jakarta.faces.webapp - UIComponentTagBase - - - java.lang.String - - - - - JSF:JAVADOC:2502 - if the argument is non-null and starts with jakarta.faces.component.UIViewRoot#UNIQUE_ID_PREFIX. - jakarta.faces.webapp - UIComponentTagBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2503 - - jakarta.faces.webapp - UIComponentTagBase - - - - JSF:JAVADOC:2504 - Create a new instance of the specified Validator class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTagBase instance, if the UIComponent instance was created by this execution of the containing JSP page. - jakarta.faces.webapp - ValidatorELTag - - - - JSF:JAVADOC:2505 - if a JSP error occurs - jakarta.faces.webapp - ValidatorELTag - - JspException - - - - JSF:JAVADOC:2506 - - jakarta.faces.webapp - ValidatorELTag - - - - JSF:JAVADOC:2507 - Create a new instance of the specified Validator class, and register it with the UIComponent instance associated with our most immediately surrounding UIComponentTag instance, if the UIComponent instance was created by this execution of the containing JSP page. - jakarta.faces.webapp - ValidatorTag - - - - JSF:JAVADOC:2508 - if a JSP error occurs - jakarta.faces.webapp - ValidatorTag - - JspException - - - - JSF:JAVADOC:2509 - Release references to any acquired resources. - jakarta.faces.webapp - ValidatorTag - - - - JSF:JAVADOC:2510 - Set the expression that will be used to create a ValueExpression that references a backing bean property of the Validator instance to be created. - jakarta.faces.webapp - ValidatorTag - - - java.lang.String - - - - - JSF:JAVADOC:2511 - if a JSP error occurs - jakarta.faces.webapp - ValidatorTag - - - java.lang.String - - JspException - - - - JSF:JAVADOC:2512 - Set the identifer of the Validator instance to be created. - jakarta.faces.webapp - ValidatorTag - - - java.lang.String - - - - - JSF:JAVADOC:2513 - - jakarta.faces.webapp - ValidatorTag - - - - JSF:JAVADOC:49 - Instantiate and return a new UIComponent instance from the argument Resource. An algorithm semantically equivalent to the following must be followed to instantiate the UIComponent to return. Obtain a reference to the ViewDeclarationLanguage for this Application instance by calling ViewHandler#getViewDeclarationLanguage, passing the viewId found by calling jakarta.faces.component.UIViewRoot#getViewId on the jakarta.faces.component.UIViewRoot in the argument FacesContext. Obtain a reference to the composite component metadata for this composite component by calling ViewDeclarationLanguage#getComponentMetadata, passing the facesContext and componentResource arguments to this method. This version of JSF specification uses JavaBeans as the API to the component metadata. Determine if the component author declared a componentType for this component instance by obtaining the BeanDescriptor from the component metadata and calling its getValue() method, passing UIComponent#COMPOSITE_COMPONENT_TYPE_KEY as the argument. If non-null, the result must be a ValueExpression whose value is the component-type of the UIComponent to be created for this Resource component. Call through to #createComponent(java.lang.String) to create the component. Otherwise, determine if a script based component for this Resource can be found by calling ViewDeclarationLanguage#getScriptComponentResource. If the result is non-null, and is a script written in one of the languages listed in JSF.4.3 of the specification prose document, create a UIComponent instance from the script resource. Otherwise, let library-name be the return from calling Resource#getLibraryName on the argument componentResource and resource-name be the return from calling Resource#getResourceName on the argument componentResource. Create a fully qualified Java class name by removing any file extension from resource-name and let fqcn be library-name + "." + resource-name. If a class with the name of fqcn cannot be found, take no action and continue to the next step. If any of InstantiationException, IllegalAccessException, or ClassCastException are thrown, wrap the exception in a FacesException and re-throw it. If any other exception is thrown, log the exception and continue to the next step. If none of the previous steps have yielded a UIComponent instance, call #createComponent(java.lang.String) passing "jakarta.faces.NamingContainer" as the argument. Call UIComponent#setRendererType on the UIComponent instance, passing "jakarta.faces.Composite" as the argument. Store the argument Resource in the attributes Map of the UIComponent under the key, Resource#COMPONENT_RESOURCE_KEY. Store composite component metadata in the attributes Map of the UIComponent under the key, UIComponent#BEANINFO_KEY. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor annotation. If this annotation is present, the action listed in jakarta.faces.event.ListenerFor must be taken on the component, before it is returned from this method. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:97 - if any arguments except for sourceBaseType are null - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Class - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:410 - Return the submittedValue value of this component. This method should only be used by the encodeBegin() and/or encodeEnd() methods of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - jakarta.faces.component - EditableValueHolder - - - - JSF:JAVADOC:426 - Set the submittedValue value of this component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - jakarta.faces.component - EditableValueHolder - - - java.lang.Object - - - - - JSF:JAVADOC:443 - Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #restoreState method on all those instances as well. If the state argument is null, take no action and return. - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:444 - if context is null. - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:478 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. If the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the jakarta.faces.component.behavior.Behavior for the event. Call jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the Behavior instance. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:502 - Return a mutable List representing the child UIComponents associated with this component. The returned implementation must support all of the standard and optional List methods, plus support the following additional requirements: The List implementation must implement the java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any attempt to add an object that does not implement UIComponent must throw a ClassCastException. Whenever a new child component is added, the parent property of the child must be set to this component instance. If the parent property of the child was already non-null, the child must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing child component is removed, the parent property of the child must be set to null. After the child component has been added to the view, jakarta.faces.application.Application#publishEvent must be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly added component as the second argument if any the following cases are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:519 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - - - - - JSF:JAVADOC:531 - Starting at this component in the View hierarchy, search for a component with a clientId equal to the argument clientId and, if found, call the ContextCallback#invokeContextCallback method on the argument callback, passing the current FacesContext and the found component as arguments. This method is similar to #findComponent but it does not support the leading UINamingContainer#getSeparatorChar syntax for searching from the root of the View. The default implementation will first check if this.getClientId() is equal to the argument clientId. If so, first call #pushComponentToEL, then call the ContextCallback#invokeContextCallback method on the argument callback, passing through the FacesContext argument and passing this as the component argument. Then call #popComponentFromEL. If an Exception is thrown by the callback, wrap it in a FacesException and re-throw it. Otherwise, return true. Otherwise, for each component returned by #getFacetsAndChildren, call invokeOnComponent() passing the arguments to this method, in order. The first time invokeOnComponent() returns true, abort traversing the rest of the Iterator and return true. When calling ContextCallback#invokeContextCallback the implementation of this method must guarantee that the state of the component passed to the callback correctly reflects the component's position in the View hierarchy with respect to any state found in the argument clientId. For example, an iterating component such as UIData will need to set its row index to correctly reflect the argument clientId before finding the appropriate child component backed by the correct row. When the callback returns, either normally or by throwing an Exception the implementation of this method must restore the state of the view to the way it was before invoking the callback. If none of the elements from #getFacetsAndChildren returned true from invokeOnComponent(), return false. Simple usage example to find a component by clientId. private UIComponent found = null; private void doFind(FacesContext context, String clientId) { context.getViewRoot().invokeOnComponent(context, clientId, new ContextCallback() { public void invokeContextCallback(FacesContext context, UIComponent component) { found = component; } }); } - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - JSF:JAVADOC:551 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:561 - Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, for this node, and then the children of this node. Then, once the re-parenting has occurred, a jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for the node's children, but only if any of the following conditions are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:570 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - JSF:JAVADOC:573 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - JSF:JAVADOC:577 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. If the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the jakarta.faces.component.behavior.Behavior for the event. Call jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the Behavior instance. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:598 - Return a mutable List representing the child UIComponents associated with this component. The returned implementation must support all of the standard and optional List methods, plus support the following additional requirements: The List implementation must implement the java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any attempt to add an object that does not implement UIComponent must throw a ClassCastException. Whenever a new child component is added, the parent property of the child must be set to this component instance. If the parent property of the child was already non-null, the child must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing child component is removed, the parent property of the child must be set to null. After the child component has been added to the view, jakarta.faces.application.Application#publishEvent must be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly added component as the second argument if any the following cases are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW - jakarta.faces.component - UIComponentBase - - - - JSF:JAVADOC:628 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:642 - Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, for this node, and then the children of this node. Then, once the re-parenting has occurred, a jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for the node's children, but only if any of the following conditions are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:694 - Set the zero relative index of the current row, or -1 to indicate that no row is currently selected, by implementing the following algorithm. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. To support transient state among descendents, please consult the specification for #setRowStatePreserved, which details the requirements for setRowIndex() when the rowStatePreserved JavaBeans property is set to true. Save current state information for all descendant components (as described below). Store the new row index, and pass it on to the DataModel associated with this UIData instance. If the new rowIndex value is -1: If the var property is not null, remove the corresponding request scope attribute (if any). Reset the state information for all descendant components (as described below). If the new rowIndex value is not -1: If the var property is not null, call getRowData() and expose the resulting data object as a request scope attribute whose key is the var property value. Reset the state information for all descendant components (as described below). To save current state information for all descendant components, UIData must maintain per-row information for each descendant as follows: If the descendant is an instance of EditableValueHolder, save the state of its localValue property. If the descendant is an instance of EditableValueHolder, save the state of the localValueSet property. If the descendant is an instance of EditableValueHolder, save the state of the valid property. If the descendant is an instance of EditableValueHolder, save the state of the submittedValue property. To restore current state information for all descendant components, UIData must reference its previously stored information for the current rowIndex and call setters for each descendant as follows: If the descendant is an instance of EditableValueHolder, restore the value property. If the descendant is an instance of EditableValueHolder, restore the state of the localValueSet property. If the descendant is an instance of EditableValueHolder, restore the state of the valid property. If the descendant is an instance of EditableValueHolder, restore the state of the submittedValue property. - jakarta.faces.component - UIData - - - int - - - - - JSF:JAVADOC:710 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. If the prependId property has the value false, this method must call createUniqueId on the next ancestor UniqueIdVendor. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:714 - Returns the current value of the submitted property. The default value is false. See #setSubmitted for details. This property must be kept as a transient property using the UIComponent#getTransientStateHelper. - jakarta.faces.component - UIForm - - - - JSF:JAVADOC:722 - If this UIForm instance (as opposed to other forms in the page) is experiencing a submit during this request processing lifecycle, this method must be called, with true as the argument, during the UIComponent#decode for this UIForm instance. If this UIForm instance is not experiencing a submit, this method must be called, with false as the argument, during the UIComponent#decode for this UIForm instance. The value of a UIForm's submitted property must not be saved as part of its state. This property must be kept as a transient property using the UIComponent#getTransientStateHelper. - jakarta.faces.component - UIForm - - - boolean - - - - - JSF:JAVADOC:790 - Return the Identifier of the component for which to render error messages. If this component is within the same NamingContainer as the target component, this must be the component identifier. Otherwise, it must be an absolute component identifier (starting with ":"). See the UIComponent#findComponent for more information. - jakarta.faces.component - UIMessage - - - - JSF:JAVADOC:794 - Set the identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed. - jakarta.faces.component - UIMessage - - - java.lang.String - - - - - JSF:JAVADOC:826 - Gets the value of this UIComponent. If validation failed, as indicated by jakarta.faces.context.FacesContext#isValidationFailed returning true, always return the local value. Otherwise, first, consult the local value property of this component. If non-null return it. If null, see if we have a ValueExpression for the value property. If so, return the result of evaluating the property, otherwise return null. Note that because the specification for UIComponent#setValueBinding requires a call through to UIComponent#setValueExpression, legacy tags will continue to work. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:937 - The default implementation must call UIComponentBase#processRestoreState from within a try block. The try block must have a finally block that ensures that no FacesEvents remain in the event queue. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:966 - Gets the value of this UIComponent. If validation failed, as indicated by jakarta.faces.context.FacesContext#isValidationFailed returning true, always return the local value. Otherwise, first, consult the local value property of this component. If non-null return it. If null, see if we have a ValueExpression for the value property. If so, return the result of evaluating the property, otherwise return null. Note that because the specification for UIComponent#setValueBinding requires a call through to UIComponent#setValueExpression, legacy tags will continue to work. - jakarta.faces.component - ValueHolder - - - - JSF:JAVADOC:1156 - Return a mutable Map representing the session scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of session scope attributes. Particularly the clear(), remove(), put(), and get() operations must take the appropriate action on the underlying data structure. Accessing attributes via this Map must cause the creation of a session associated with the current request, if such a session does not already exist. For any of the Map methods that cause an element to be removed from the underlying data structure, the following action regarding managed-beans must be taken. If the element to be removed is a managed-bean, and it has one or more public no-argument void return methods annotated with jakarta.annotation.PreDestroy, each such method must be called before the element is removed from the underlying data structure. Elements that are not managed-beans, but do happen to have methods with that annotation must not have those methods called on removal. Any exception thrown by the PreDestroy annotated methods must by caught and not rethrown. The exception may be logged. Servlet: This must be the set of attributes available via the javax.servlet.http.HttpSession methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:1198 - The default behavior of this method is to call ExternalContext#encodePartialActionURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - JSF:JAVADOC:1245 - The default behavior of this method is to call ExternalContext#getSessionMap() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:1288 - Return the maximum severity level recorded on any jakarta.faces.application.FacesMessages that has been queued, whether or not they are associated with any specific jakarta.faces.component.UIComponent. If no such messages have been queued, return null. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:1336 - Set the root component that is associated with this request. This method can be called by the application handler (or a class that the handler calls), during the Invoke Application phase of the request processing lifecycle and during the Restore View phase of the request processing lifecycle (especially when a new root component is created). In the present version of the specification, implementations are not required to enforce this restriction, though a future version of the specification may require enforcement. If the current UIViewRoot is non-null, and calling equals() on the argument root, passing the current UIViewRoot returns false, the clear method must be called on the Map returned from UIViewRoot#getViewMap. - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:1500 - Write a URI attribute name and corresponding value, after converting that text to a String (if necessary), and after performing any encoding or escaping appropriate to the markup language being rendered. When rendering in a WWW environment, the escaping conventions established in the W3C URI spec document must be followed. In particular, spaces ' ' must be encoded as %20 and not the plus character '+'. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - - - - JSF:JAVADOC:1876 - Return true if this FacesListener is an instance of a the appropriate listener class that this event supports. The default implementation returns true if the listener is a ComponentSystemEventListener. - jakarta.faces.event - SystemEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:2197 - Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #restoreState method on all those instances as well. If the state argument is null, take no action and return. - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2198 - if context is null. - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2241 - Restore the state of the view with information in the request. The default implementation must perform the following algorithm or its semantic equivalent. As in the case of restore view on an initial request, the view metadata must be restored and properly handled as well. Obtain the ViewMetadata for the current viewId, and from that call ViewMetadata#createMetadataView. Store the resultant UIViewRoot in the FacesContext. Obtain the state of the UIViewRoot from the state Object returned from jakarta.faces.render.ResponseStateManager#getState and pass that to UIViewRoot#restoreViewScopeState. Build the view from the markup. For all components in the view that do not have an explicitly assigned id in the markup, the values of those ids must be the same as on an initial request for this view. This view will not contain any components programmatically added during the previous lifecycle run, and it will contain components that were programmatically deleted on the previous lifecycle run. Both of these cases must be handled. Call jakarta.faces.render.ResponseStateManager#getState to obtain the data structure returned from the previous call to #saveView. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For each node, call jakarta.faces.component.UIComponent#restoreState, passing the state saved corresponding to the current client id. Ensure that any programmatically deleted components are removed. Ensure any programmatically added components are added. The implementation must ensure that the jakarta.faces.component.UIComponent#restoreState method is called for each node in the tree, except for those that were programmatically deleted on the previous run through the lifecycle. - jakarta.faces.view - StateManagementStrategy - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2244 - Take any actions specific to this VDL implementation to cause the argument UIViewRoot which must have been created via a call to #createView, to be populated with children. The Facelets implementation must insure that markup comprising the view must be executed, with the jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) during the traversal. The runtime must guarantee that the view must be fully populated before any of the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners attached to the application is called The jakarta.faces.component.UIViewRoot phase listener installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated with children, the view must still be re-built, but care must be taken to ensure that the existing components are correctly paired up with their VDL counterparts in the VDL page. Also, any system events that would normally be generated during the adding or removing of components from the view must be temporarily disabled during the creation of the view and then re-enabled when the view has been built. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2270 - Return the ViewDeclarationLanguage instance suitable for handling the VDL contained in the page referenced by the argument viewId. The default implementation must return a valid ViewDeclarationLanguage instance for views written in either JSP, Faces XML Views, or Facelets for JSF 2. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - java.lang.String - - - - - JSF:JAVADOC:2300 - Invoke the apply() method on this instance's TagHandler#nextHandler. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2514 - if called after the first request to the jakarta.faces.webapp.FacesServlet has been serviced. - jakarta.faces.application - Application - - - ELResolver - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2515 - - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - JSF:JAVADOC:2516 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2517 - if context is null - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2518 - Return a Map where the keys are values and the values are Set where each element in the Set is a NavigationCase that applies to that . The implementation must support live modifications to this Map. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - JSF:JAVADOC:2519 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - JSF:JAVADOC:2520 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2521 - if context is null - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2523 - if this method is called after this instance has been released - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2525 - if resourceId is null. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2526 - The default behavior of this method is to call ResourceHandler#createResourceFromId(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2527 - The default behavior of this method is to call Resource#getContentType() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:2528 - The default behavior of this method is to call Resource#getLibraryName() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:2529 - The default behavior of this method is to call Resource#getResourceName() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - JSF:JAVADOC:2530 - The default behavior of this method is to call Resource#setContentType(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2531 - The default behavior of this method is to call Resource#setLibraryName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2532 - The default behavior of this method is to call Resource#setResourceName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2534 - The default behavior of this method is to call ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2535 - Return the value currently associated with the specified key if any. - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - - - - - JSF:JAVADOC:2536 - Performs the same logic as #getTransient } but if no value is found, this will return the specified defaultValue - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:2537 - Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - java.lang.Object - - - - - JSF:JAVADOC:2538 - Restore the "transient state" using the object passed as state. If the state argument is null clear any previous transient state if any and return. - jakarta.faces.component - TransientStateHolder - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2539 - Return the object containing related "transient states". that could be used later to restore the "transient state". - jakarta.faces.component - TransientStateHolder - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2540 - Return the TransientStateHelper instance for this UIComponent instance. The default implementation simply calls through to #getTransientStateHelper(boolean) passing true as the argument. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:2541 - Return the TransientStateHelper instance for this UIComponent instance. - jakarta.faces.component - UIComponent - - - boolean - - - - - JSF:JAVADOC:2542 - For components that need to support the concept of transient state, this method will restore any state saved on a prior call to #saveTransientState. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2543 - For components that need to support the concept of transient state, this method will save any state that is known to be transient in nature. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2544 - Return the SystemEventListener instances registered on this UIComponent instance that are interested in events of type eventClass. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - - - - - JSF:JAVADOC:2545 - if argument eventClass is null. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - - java.lang.NullPointerException - - - - JSF:JAVADOC:2546 - Install the listener instance referenced by argument componentListener as a listener for events of type eventClass originating from this specific instance of UIComponent. The default implementation creates an inner SystemEventListener instance that wraps argument componentListener as the listener argument. This inner class must call through to the argument componentListener in its implementation of SystemEventListener#processEvent and its implementation of SystemEventListener#isListenerForSource must return true if the instance class of this UIComponent is assignable from the argument to isListenerForSource. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - JSF:JAVADOC:2547 - if any of the arguments are null. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:2548 - Remove the listener instance referenced by argument componentListener as a listener for events of type eventClass originating from this specific instance of UIComponent. When doing the comparison to determine if an existing listener is equal to the argument componentListener (and thus must be removed), the equals() method on the existing listener must be invoked, passing the argument componentListener, rather than the other way around. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - JSF:JAVADOC:2549 - if any of the arguments are null. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - <code>NullPointerException</code> - - - - JSF:JAVADOC:2550 - Return the value of the rowStatePreserved JavaBeans property. See #setRowStatePreserved. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:2551 - Override the base class method to take special action if the method is being invoked when StateManager#IS_BUILDING_INITIAL_STATE is true and the rowStatePreserved JavaBeans property for this instance is true. The additional action taken is to traverse the descendents and save their state without regard to any particular row value. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:2552 - - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2553 - - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2554 - If this property is set to true, the UIData must take steps to ensure that modifications to its iterated children will be preserved on a per-row basis. This allows applications to modify component properties, such as the style-class, for a specific row, rather than having such modifications apply to all rows. To accomplish this, UIData must call StateHolder#saveState and TransientStateHolder#saveTransientState on its children to capture their state on exiting each row. When re-entering the row, StateHolder#restoreState and TransientStateHolder#restoreTransientState must be called in order to reinitialize the children to the correct state for the new row. All of this action must take place during the processing of #setRowIndex. Users should consider enabling this feature for cases where it is necessary to modify properties of UIData's children in a row-specific way. Note, however, that row-level state saving/restoring does add overhead. As such, this feature should be used judiciously. - jakarta.faces.component - UIData - - - boolean - - - - - JSF:JAVADOC:2555 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:2556 - Enable the method invocation specified by this component instance to return a value that performs navigation, similar in spirit to UICommand#broadcast. Take no action and return immediately if any of the following conditions are true. The response has already been marked as complete. The current UIViewRoot is different from the event's source's UIViewRoot. Save a local reference to the viewId of the current UIViewRoot. For discussion, let this reference be viewIdBeforeAction. Obtain the ActionListener from the jakarta.faces.application.Application. Wrap the current FacesContext in an implementation of jakarta.faces.context.FacesContextWrapper that overrides the FacesContext#renderResponse method such that it takes no action. Set the current FacesContext to be the FacesContextWrapper instance. Make it so a call to #isProcessingBroadcast on the current FacesContext will return true. This is necessary because the jakarta.faces.application.NavigationHandler will call this method to determine if the navigation is happening as the result of a UIViewAction. Invoke ActionListener#processAction. In a finally block, restore the original FacesContext, make it so a call to #isProcessingBroadcast on the current context will return false and discard the wrapper. If the response has been marked as complete during the invocation of processAction(), take no further action and return. Otherwise, compare viewIdBeforeAction with the viewId of the UIViewRoot on the FacesContext after the invocation of processAction(). If the two viewIds are the same and no more UIViewAction events have been queued by a call to #decode, call FacesContext#renderResponse and return. It is possible to detect the case where no more UIViewAction events have been queued because the number of such events queued has been noted in the specification for #decode. Otherwise, execute the lifecycle on the new UIViewRoot. - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - - - - JSF:JAVADOC:2557 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:2558 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2559 - if event is null - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2561 - - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2562 - - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2563 - - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2564 - - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2565 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2566 - Returns the name of the lifecycle phase in which the action is to be queued. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2567 - If the value of the component's immediate attribute is true, the action will be invoked during the Apply Request Values JSF lifecycle phase. Otherwise, the action will be invoked during the Invoke Application phase, the default behavior. The phase can be set explicitly in the phase attribute, which takes precedence over the immediate attribute. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2568 - If true this component will operate on postback. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2569 - Returns true if the current request processing lifecycle is in the midst of processing the broadcast of an event queued during a call to #decode. The implementation of #broadcast is responsible for ensuring that calls to this method accurately reflect this fact. - jakarta.faces.component - UIViewAction - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2570 - Return true if this component should take the actions specified in the #decode method. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2571 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.ActionListener - - - - - JSF:JAVADOC:2572 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:2573 - - jakarta.faces.component - UIViewAction - - - MethodExpression - - - - - JSF:JAVADOC:2574 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.el.MethodBinding - - - - - JSF:JAVADOC:2575 - - jakarta.faces.component - UIViewAction - - - boolean - - - - - JSF:JAVADOC:2576 - Controls whether or not this component operates on postback. - jakarta.faces.component - UIViewAction - - - boolean - - - - - JSF:JAVADOC:2577 - Attempt to set the lifecycle phase in which this instance will queue its ActionEvent. Pass the argument phase to PhaseId#phaseIdValueOf. If the result is not one of the following values, FacesException must be thrown. PhaseId#APPLY_REQUEST_VALUESPhaseId#PROCESS_VALIDATIONSPhaseId#UPDATE_MODEL_VALUESPhaseId#INVOKE_APPLICATION If set, this value takes precedence over the immediate flag. - jakarta.faces.component - UIViewAction - - - java.lang.String - - - - - JSF:JAVADOC:2578 - Sets the if property of this component. - jakarta.faces.component - UIViewAction - - - boolean - - - - - JSF:JAVADOC:2579 - Create a new UIViewAction instance with default property values. - jakarta.faces.component - UIViewAction - - - - JSF:JAVADOC:2580 - Restore ViewScope state. This is needed to allow the use of view scoped beans for EL-expressions in the template from which the component tree is built. For example: . - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:2581 - Return the name of the container context for this application. Servlet: Return the result of calling getContextPath() on the ServletContext instance for this application. It is valid to call this method during application startup or shutdown. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:2582 - Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be set with the #setSessionMaxInactiveInterval method. A return value of zero or less indicates that the session will never timeout. Servlet: This must return the result of calling getMaxInactiveInterval on the underlying javax.servlet.http.HttpServletRequest instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:2583 - Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. Servlet: This must return the result of calling isSecure on the underlying javax.servlet.http.HttpServletRequest instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:2584 - Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. An interval value of zero or less indicates that the session should never timeout. Servlet: This must call setMaxInactiveInterval on the underlying javax.servlet.http.HttpServletRequest instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - JSF:JAVADOC:2585 - The default behavior of this method is to call ExternalContext#getApplicationContextPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:2586 - The default behavior of this method is to call ExternalContext#getSessionMaxInactiveInterval() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:2587 - The default behavior of this method is to call ExternalContext#isSecure on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:2588 - The default behavior of this method is to call ExternalContext#setSessionMaxInactiveInterval(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - JSF:JAVADOC:2589 - Return a flag indicating if the resources associated with this FacesContext instance have been released. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:2590 - The default behavior of this method is to call FacesContext#isReleased on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:2591 - The default behavior of this method is to call PartialViewContext#setPartialRequest(boolean) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - boolean - - - - - JSF:JAVADOC:2592 - - jakarta.faces.event - ActionListenerWrapper - - - - JSF:JAVADOC:2593 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.event - ActionListenerWrapper - - - - JSF:JAVADOC:2594 - Invoked when the action described by the specified ActionEvent occurs. - jakarta.faces.event - ActionListenerWrapper - - - jakarta.faces.event.ActionEvent - - - - - JSF:JAVADOC:2595 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionListenerWrapper - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - JSF:JAVADOC:2596 - Return true if the argument FacesListener is an instance of the appropriate listener class that this event supports. The default implementation returns true if the listener is a ComponentSystemEventListener or if super.isAppropriateListener() returns true. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:2597 - Return the name of this phase. - jakarta.faces.event - PhaseId - - - - JSF:JAVADOC:2598 - Return a PhaseId representation of the arcument phase. - jakarta.faces.event - PhaseId - - - java.lang.String - - - - - JSF:JAVADOC:2599 - if argument phase is null. - jakarta.faces.event - PhaseId - - - java.lang.String - - <code>NullPointerException</code> - - - - JSF:JAVADOC:2600 - if the PhaseId corresponding to the argument phase cannot be found. - jakarta.faces.event - PhaseId - - - java.lang.String - - <code>FacesException</code> - - - - JSF:JAVADOC:2601 - Returns a non-null String that can be used to identify this view declaration language. The default implementation returns the fully qualified class name of the view declaration language implementation. Subclasses may override to provide a more meaningful id. - jakarta.faces.view - ViewDeclarationLanguage - - - - JSF:JAVADOC:2603 - Take any actions specific to this VDL implementation to cause the argument UIViewRoot which must have been created via a call to #createView, to be populated with children. The Facelets implementation must insure that markup comprising the view must be executed, with the jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) during the traversal. The runtime must guarantee that the view must be fully populated before any of the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners attached to the application is called The jakarta.faces.component.UIViewRoot phase listener installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated with children, the view must still be re-built, but care must be taken to ensure that the existing components are correctly paired up with their VDL counterparts in the VDL page. Also, any system events that would normally be generated during the adding or removing of components from the view must be temporarily disabled during the creation of the view and then re-enabled when the view has been built. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2604 - - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:2606 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2608 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.NullPointerException - - - - JSF:JAVADOC:2609 - if there is an error in obtaining the metadata - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2610 - if this is a JSP VDL implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.UnsupportedOperationException - - - - JSF:JAVADOC:2611 - Returns a non-null String that can be used to identify this view declaration language. The default implementation returns the fully qualified class name of the view declaration language implementation. Subclasses may override to provide a more meaningful id. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - JSF:JAVADOC:2613 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.NullPointerException - - - - JSF:JAVADOC:2614 - if there is an error in obtaining the script component resource - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2615 - if this is a JSP VDL implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - java.lang.UnsupportedOperationException - - - - JSF:JAVADOC:2616 - For implementations that want to control the implementation of state saving and restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the implementation wishes the runtime to handle the state saving and restoring. Implementations that provide the VDL for Facelets for JSF 2.0 and later must return non-null from this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2618 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2619 - if there is an error in obtaining the metadata - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2620 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - JSF:JAVADOC:2622 - - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - JSF:JAVADOC:2623 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.lang.NullPointerException - - - - JSF:JAVADOC:2625 - if any of the arguments are null - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2626 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting attached objects from the top level composite component to the individual AttachedObjectTarget instances inside the composite component. This method must be called by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite component usage is encountered. An algorithm semantically equivalent to the following must be implemented. Obtain the metadata for the composite component. Currently this entails getting the value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the BeanDescriptor's getValue() method. This will be a List<AttachedObjectTarget>. Let this be targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the following items that causes a match will take this action: For each UIComponent in the list returned from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the UIComponent. and cause this inner loop to terminate. If curHandler is an instance of ActionSource2AttachedObjectHandler and curTarget is an instance of ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of BehaviorHolderAttachedObjectHandler and curTarget is an instance of BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support retargeting attached objects from the top level compsite component to targets that are composite and non-composite components. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - - - - JSF:JAVADOC:2627 - if any of the arguments are null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - java.lang.NullPointerException - - - - JSF:JAVADOC:2628 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting any method expressions from the top level component to the appropriate inner component. For each attribute that is a MethodExpression (as indicated by the presence of a "method-signature" attribute and the absence of a "type" attribute), the following action must be taken: Get the value of the targets attribute. If the value is a ValueExpression evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For each entry in the list: Find the inner component of the topLevelComponent with the id equal to the current list entry. For discussion, this component is called target. If not found, log and error and continue to the next attribute. For discussion the declared name of the attribute is called name. In the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error and continue to the next attribute. If name is equal to the string "action", or "actionListener" without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to the string "validator", or "valueChangeListener" without the quotes, assume target is an jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression of the appropriate signature for name. If name is not equal to any of the previously listed strings, call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression where the signature is created based on the value of the "method-signature" attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for discussion. If name is equal to the string "action" without the quotes, call jakarta.faces.component.ActionSource2#setActionExpression on target, passing attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on target, passing attributeMethodExpression wrapped in a jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string "valueChangeListener" without the quotes, call jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. Otherwise, assume that the MethodExpression should be placed in the components attribute set. The runtme must create the MethodExpression instance based on the value of the "method-signature" attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2629 - if context or topLevelComponent is null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2630 - - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - JSF:JAVADOC:2633 - - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2635 - - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - jakarta.faces.view.facelets.FaceletException - - - - JSF:JAVADOC:2636 - - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - ELException - - - - JSF:JAVADOC:2637 - - jakarta.faces.view.facelets - Facelet - - - - JSF:JAVADOC:2638 - - jakarta.faces.view.facelets - FaceletCache - - - - JSF:JAVADOC:2639 - Returns a cached Facelet instance. If no instance is available, it will be created using the Facelet MemberFactory and stored in the cache. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - JSF:JAVADOC:2640 - - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.io.IOException - - - - JSF:JAVADOC:2641 - if argument url is null. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.lang.NullPointerException - - - - JSF:JAVADOC:2642 - Returns a cached View Metadata Facelet instance. If no instance is available, it will be created using the View Metadata Facelet MemberFactory and stored in the cache. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - JSF:JAVADOC:2643 - - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.io.IOException - - - - JSF:JAVADOC:2644 - if argument url is null. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.lang.NullPointerException - - - - JSF:JAVADOC:2645 - Determines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - JSF:JAVADOC:2646 - if argument url is null. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.lang.NullPointerException - - - - JSF:JAVADOC:2647 - Determines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - JSF:JAVADOC:2648 - if argument url is null. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.lang.NullPointerException - - - - JSF:JAVADOC:2649 - Create a Facelet or View Metadata Facelet (depending on the type of factory this is) for the argument URL. - jakarta.faces.view.facelets - FaceletCache.MemberFactory - - - java.net.URL - - - - - JSF:JAVADOC:2650 - - jakarta.faces.view.facelets - FaceletCache.MemberFactory - - - java.net.URL - - java.io.IOException - - - - JSF:JAVADOC:2651 - if argument key is null. - jakarta.faces.view.facelets - FaceletCache.MemberFactory - - - java.net.URL - - java.lang.NullPointerException - - - - JSF:JAVADOC:2652 - - jakarta.faces.view.facelets - FaceletCacheFactory - - - - JSF:JAVADOC:2653 - - jakarta.faces.view.facelets - FaceletCacheFactory - - - - JSF:JAVADOC:2654 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.view.facelets - FaceletCacheFactory - - - - JSF:JAVADOC:151 - The default behavior of this method is to call Application#createComponent(jakarta.faces.el.ValueBinding, jakarta.faces.context.FacesContext, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.el.ValueBinding - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:152 - - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.el.ValueBinding - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - JSF:JAVADOC:160 - The default behavior of this method is to call Application#createMethodBinding(String, Class[]) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.Class[] - - - - - JSF:JAVADOC:161 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.Class[] - - jakarta.faces.el.ReferenceSyntaxException - - - - JSF:JAVADOC:166 - The default behavior of this method is to call Application#evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - - - - JSF:JAVADOC:167 - - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - ELException - - - - JSF:JAVADOC:182 - The default behavior of this method is to call Application#getPropertyResolver on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:188 - The default behavior of this method is to call Application#getVariableResolver on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:199 - The default behavior of this method is to call Application#setPropertyResolver(jakarta.faces.el.PropertyResolver) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.el.PropertyResolver - - - - - JSF:JAVADOC:203 - The default behavior of this method is to call Application#setVariableResolver(jakarta.faces.el.VariableResolver) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.el.VariableResolver - - - - - JSF:JAVADOC:2114 - The implementation must inspect the current request and return an Object representing the tree structure and component state passed in to a previous invocation of #writeState(jakarta.faces.context.FacesContext,java.lang.Object). If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, writeState() will have encrypted the state in a tamper evident manner. If the state fails to decrypt, or decrypts but indicates evidence of tampering, a jakarta.faces.application.ProtectedViewException must be thrown. For backwards compatability with existing ResponseStateManager implementations, the default implementation of this method calls #getTreeStructureToRestore and #getComponentStateToRestore and creates and returns a two element Object array with element zero containing the structure property and element one containing the state property of the SerializedView. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2120 - if the state argument is not an array of length 2. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - JSF:JAVADOC:2560 - Override behavior from the superclass to queue an ActionEvent that may result in the invocation of the action or any actionListeners that may be associated with this instance. Take no action if any of the following conditions are true: The current request is a postback and the instance has been configured to not operate on postback. See #isOnPostback. The condition stated in the if property evaluates to false. See #isRendered. Instantiate an ActionEvent, passing this component instance as the source. Set the phaseId property of the ActionEvent as follows. If this component instance has been configured with a specific lifecycle phase with a call to #setPhase use that as the phaseId If the value of the immediate property is true, use PhaseId#APPLY_REQUEST_VALUES. Otherwise, use PhaseId#INVOKE_APPLICATION. Queue the event with a call to #queueEvent. Keep track of the number of events that are queued in this way on this run through the lifecycle. This information is necessary during processing in #broadcast. - jakarta.faces.component - UIViewAction - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2678 - if called after the first request to the jakarta.faces.webapp.FacesServlet has been serviced. - jakarta.faces.application - ApplicationWrapper - - - ELResolver - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2679 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ResourceHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2680 - if resourceHandler is null - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ResourceHandler - - java.lang.NullPointerException - - - - JSF:JAVADOC:2681 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.StateManager - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2682 - if manager is null - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.StateManager - - java.lang.NullPointerException - - - - JSF:JAVADOC:2683 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ViewHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2684 - if manager is null - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ViewHandler - - java.lang.NullPointerException - - - - JSF:JAVADOC:2685 - - jakarta.faces.application - ProtectedViewException - - - java.lang.Throwable - - - - - JSF:JAVADOC:2686 - - jakarta.faces.application - ProtectedViewException - - - java.lang.String - java.lang.Throwable - - - - - JSF:JAVADOC:2687 - - jakarta.faces.application - ProtectedViewException - - - java.lang.String - - - - - JSF:JAVADOC:2688 - - jakarta.faces.application - ProtectedViewException - - - - JSF:JAVADOC:2692 - The default behavior of this method is to call ViewHandler#addProtectedView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2693 - The default behavior of this method is to call ViewHandler#getProtectedViewsUnmodifiable on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - - JSF:JAVADOC:2694 - The default behavior of this method is to call ViewHandler#removeProtectedView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2695 - Before calling the corresponding method on the superclass, verify that there is a current component so that EL expressions that start with #{component} or #{cc} operate as expected. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.event.FacesListener - - - - - JSF:JAVADOC:2700 - Returns the delay value, or null if no value was set. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:2701 - If less than delay milliseconds elapses between calls to request() only the most recent one is sent and all other requests are discarded. The default value of this option is 300. If the value of delay is the literal string 'none' without the quotes, no delay is used. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - JSF:JAVADOC:2702 - - jakarta.faces.event - PostKeepFlashValueEvent - - - - JSF:JAVADOC:2703 - Instantiate a new PostKeepFlashValueEvent that indicates the argument key was just kept in the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostKeepFlashValueEvent - - - java.lang.String - - - - - JSF:JAVADOC:2704 - - jakarta.faces.event - PostPutFlashValueEvent - - - - JSF:JAVADOC:2705 - Instantiate a new PostPutFlashValueEvent that indicates the argument key was just put to the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostPutFlashValueEvent - - - java.lang.String - - - - - JSF:JAVADOC:2706 - Instantiate a new PreClearFlashEvent that indicates the argument key was just put to the flash. - jakarta.faces.event - PreClearFlashEvent - - - java.util.Map - - - - - JSF:JAVADOC:2707 - - jakarta.faces.event - PreRemoveFlashValueEvent - - - - JSF:JAVADOC:2708 - Instantiate a new PreRemoveFlashValueEvent that indicates the argument key will be removed from the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PreRemoveFlashValueEvent - - - java.lang.String - - - - - JSF:JAVADOC:310 - The functionality of this method is now handled by jakarta.faces.view.StateManagementStrategy#restoreView. Restore the tree structure and the component state of the view for the specified viewId, in an implementation dependent manner, and return the restored UIViewRoot. If there is no saved state information available for this viewId, return null instead. This method must consult the context initialization parameter named by the symbolic constant StateManager.STATE_SAVING_METHOD_PARAM_NAME to determine whether state should be saved on the client or the server. If not present, client side state saving is assumed. If the init parameter indicates that client side state saving should be used, this method must call the getTreeStructureToRestore() and (if the previous method call returned a non-null value) getComponentStateToRestore() methods of the ResponseStateManager instance provided by the RenderKit responsible for this view. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:314 - The functionality of this method is now handled by jakarta.faces.view.StateManagementStrategy#saveView. Return an opaque Object containing sufficient information for this same instance to restore the state of the current UIViewRoot on a subsequent request. The returned object must implement java.io.Serializable. If there is no state information to be saved, return null instead. Components may opt out of being included in the serialized view by setting their transient property to true. This must cause the component itself, as well as all of that component's children and facets, to be omitted from the saved tree structure and component state information. This method must also enforce the rule that, for components with non-null ids, all components that are descendants of the same nearest NamingContainer must have unique identifiers. For backwards compatability with existing StateManager implementations, the default implementation of this method calls #saveSerializedView and creates and returns a two element Object array with element zero containing the structure property and element one containing the state property of the SerializedView. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1838 - if the argument valueChangeEvent is null. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - java.lang.NullPointerException - - - - JSF:JAVADOC:7 - Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class, based on the discovery algorithm described in the class description. The standard injectionProvider and wrappers in JSF all implement the interface FacesWrapper. If the returned Object is an implementation of one of the standard injectionProvider, it must be legal to cast it to an instance of FacesWrapper and call FacesWrapper#getWrapped on the instance. - jakarta.faces - FactoryFinder - - - java.lang.String - - - - - JSF:JAVADOC:2709 - Assume that the submitted value is always a string, but the return type from this method is Object.. - jakarta.faces.component - UIViewParameter - - - - JSF:JAVADOC:2710 - - jakarta.faces.component.visit - ComponentModification - - - - JSF:JAVADOC:2711 - - jakarta.faces.component.visit - ComponentModification - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2712 - - jakarta.faces.component.visit - ComponentModification - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2713 - - jakarta.faces.component.visit - ComponentModificationManager - - - - JSF:JAVADOC:2714 - - jakarta.faces.component.visit - ComponentModificationManager - - - - JSF:JAVADOC:2715 - - jakarta.faces.component.visit - ComponentModificationManager - - - - JSF:JAVADOC:2716 - - jakarta.faces.component.visit - ComponentModificationManager - - - jakarta.faces.component.visit.ComponentModification - - - - - JSF:JAVADOC:2719 - Return the jakarta.faces.component.visit.ComponentModificationManager for this single run through the JSF request processing lifecycle. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:2720 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2721 - The default behavior of this method is to call FacesContext#getComponentModificationManager on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:430 - The value of this annotation attribute is taken to be the component-type with which instances of this class of component can be instantiated by calling jakarta.faces.application.Application#createComponent(java.lang.String). If no value is specified, or the value is null, the value is taken to be the return of calling getSimpleName on the class to which this annotation is attached and lowercasing the first character. If more than one component with this derived name is found, the results are undefined. - jakarta.faces.component - FacesComponent - - - - JSF:JAVADOC:497 - Search for and return the UIComponent with an id that matches the specified search expression (if any), according to the algorithm described below. WARNING: The found UIComponent instance, if any, is returned without regard for its tree traversal context. Retrieving an EL-bound attribute from the component is not safe. EL expressions can contain implicit objects, such as #{component}, which assume they are being evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of implicit objects outside of a tree traversal context produces undefined results. See #invokeOnComponent for a method that does correctly account for the tree traversal context when operating on the found UIComponent instance. #invokeOnComponent is also useful to find components given a simple clientId. Component identifiers are required to be unique within the scope of the closest ancestor NamingContainer that encloses this component (which might be this component itself). If there are no NamingContainer components in the ancestry of this component, the root component in the tree is treated as if it were a NamingContainer, whether or not its class actually implements the NamingContainer interface. A search expression consists of either an identifier (which is matched exactly against the id property of a UIComponent, or a series of such identifiers linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should operates as follows, though alternate alogrithms may be used as long as the end result is the same: Identify the UIComponent that will be the base for searching, by stopping as soon as one of the following conditions is met: If the search expression begins with the the separator character (called an "absolute" search expression), the base will be the root UIComponent of the component tree. The leading separator character will be stripped off, and the remainder of the search expression will be treated as a "relative" search expression as described below. Otherwise, if this UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no NamingContainer is encountered) the root UIComponent will be the base. The search expression (possibly modified in the previous step) is now a "relative" search expression that will be used to locate the component (if any) that has an id that matches, within the scope of the base component. The match is performed as follows: If the search expression is a simple identifier, this value is compared to the id property, and then recursively through the facets and children of the base UIComponent (except that if a descendant NamingContainer is found, its own facets and children are not searched). If the search expression includes more than one identifier separated by the separator character, the first identifier is used to locate a NamingContainer by the rules in the previous bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the remainder of the search expression. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - JSF:JAVADOC:593 - Search for and return the UIComponent with an id that matches the specified search expression (if any), according to the algorithm described below. WARNING: The found UIComponent instance, if any, is returned without regard for its tree traversal context. Retrieving an EL-bound attribute from the component is not safe. EL expressions can contain implicit objects, such as #{component}, which assume they are being evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of implicit objects outside of a tree traversal context produces undefined results. See #invokeOnComponent for a method that does correctly account for the tree traversal context when operating on the found UIComponent instance. #invokeOnComponent is also useful to find components given a simple clientId. Component identifiers are required to be unique within the scope of the closest ancestor NamingContainer that encloses this component (which might be this component itself). If there are no NamingContainer components in the ancestry of this component, the root component in the tree is treated as if it were a NamingContainer, whether or not its class actually implements the NamingContainer interface. A search expression consists of either an identifier (which is matched exactly against the id property of a UIComponent, or a series of such identifiers linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should operates as follows, though alternate alogrithms may be used as long as the end result is the same: Identify the UIComponent that will be the base for searching, by stopping as soon as one of the following conditions is met: If the search expression begins with the the separator character (called an "absolute" search expression), the base will be the root UIComponent of the component tree. The leading separator character will be stripped off, and the remainder of the search expression will be treated as a "relative" search expression as described below. Otherwise, if this UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no NamingContainer is encountered) the root UIComponent will be the base. The search expression (possibly modified in the previous step) is now a "relative" search expression that will be used to locate the component (if any) that has an id that matches, within the scope of the base component. The match is performed as follows: If the search expression is a simple identifier, this value is compared to the id property, and then recursively through the facets and children of the base UIComponent (except that if a descendant NamingContainer is found, its own facets and children are not searched). If the search expression includes more than one identifier separated by the separator character, the first identifier is used to locate a NamingContainer by the rules in the previous bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the remainder of the search expression. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - JSF:JAVADOC:672 - Return the value of the UIData. This value must either be be of type DataModel, or a type that can be adapted into a DataModel. UIData will automatically adapt the following types: Arrays java.util.List java.sql.ResultSet javax.servlet.jsp.jstl.sql.Result java.util.Collection All other types will be adapted using the ScalarDataModel class, which will treat the object as a single row of data. - jakarta.faces.component - UIData - - - - JSF:JAVADOC:1101 - The purpose of this method is to generate a query string from the collection of Parameter objects provided by the parameters argument and append that query string to the baseUrl. This method must be able to encode the parameters to a baseUrl that may or may not have existing query parameters. The parameter values should be encoded appropriately for the environment so that the resulting URL can be used as the target of a link (e.g., in an href attribute) in a JSF response. It's possible for an ExternalContext implementation to override this method in any way that would make the URL bookmarkable in that environment. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:1104 - Return the input URL, after performing any rewriting needed to ensure that it can be used in a partial page submission (ajax request) to correctly identify an addressable action in the current application. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. Servlet:Returns the same encoded URL as the #encodeActionURL(String url) method. Portlet:Returns an encoded URL that, upon HTTP POST, will invoke the RESOURCE_PHASE of the portlet lifecycle. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:1106 - The purpose of this method is to generate a query string from the collection of Parameter objects provided by the parameters argument and append that query string to the baseUrl. This method must be able to encode the parameters to a baseUrl that may or may not have existing query parameters. The parameter values should be encoded appropriately for the environment so that the resulting URL can be used as the target of a redirect. It's possible for an ExternalContext implementation to override this method to accomodate the definition of redirect for that environment. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:2155 - The value of this annotation attribute is taken to be the validator-id with which instances of this class of component can be instantiated by calling jakarta.faces.application.Application#createValidator(java.lang.String). If no value is specified, or the value is null, the value is taken to be the return of calling getSimpleName on the class to which this annotation is attached and lowercasing the first character. If more than one validator with this derived name is found, the results are undefined. - jakarta.faces.validator - FacesValidator - - - - JSF:JAVADOC:708 - Override the behavior in UIComponent#visitTree to handle iteration correctly. If the UIComponent#isVisitable method of this instance returns false, take no action and return. Call UIComponent#pushComponentToEL and invoke the visit callback on this UIData instance as described in UIComponent#visitTree. Let the result of the invoctaion be visitResult. If visitResult is VisitResult#COMPLETE, take no further action and return true. Otherwise, determine if we need to visit our children. The default implementation calls VisitContext#getSubtreeIdsToVisit passing this as the argument. If the result of that call is non-empty, let doVisitChildren be true. If doVisitChildren is true and visitResult is VisitResult#ACCEPT, take the following action. If this component has facets, call UIComponent#getFacets on this instance and invoke the values() method. For each UIComponent in the returned Map, call UIComponent#visitTree. If this component has children, for each UIColumn child: Call VisitContext#invokeVisitCallback on that UIColumn instance. If such a call returns true, terminate visiting and return true from this method. If the child UIColumn has facets, call UIComponent#visitTree on each one. Take no action on non-UIColumn children. Save aside the result of a call to #getRowIndex. For each child component of this UIData that is also an instance of UIColumn, Iterate over the rows. Let rowsToProcess be the return from #getRows. Let rowIndex be the return from #getFirst - 1. While the number of rows processed is less than rowsToProcess, take the following actions. Call #setRowIndex, passing the current row index. If #isRowAvailable returns false, take no further action and return false. Call UIComponent#visitTree on each of the children of this UIColumn instance. Call #popComponentFromEL and restore the saved row index with a call to #setRowIndex. Return false to allow the visiting to continue. - jakarta.faces.component - UIData - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:2696 - Compliant implementations must return a cryptographically strong token for use to protect views in this application. For backwards compatability with earlier revisions, a default implementation is provided that simply returns null. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2725 - If the value of this attribute is true, the runtime must create a Facelet tag handler, that extends from jakarta.faces.view.facelets.ComponentHandler, suitable for use in pages under the tag library with namespace given by the value of the #namespace attribute. - jakarta.faces.component - FacesComponent - - - - JSF:JAVADOC:2726 - If the value of the #createTag attribute is true, the value of this attribute is taken to be the tag library namespace into which this component is placed. - jakarta.faces.component - FacesComponent - - - - JSF:JAVADOC:2727 - If the value of the #createTag attribute is true, the runtime must use this value as the tag name for including an instance of the component annotated with this annotation in a view. If this attribute is not specified on a usage of this annotation, the simple name of the class on which this annotation is declared, with the first character lowercased, is taken to be the value. - jakarta.faces.component - FacesComponent - - - - JSF:JAVADOC:2728 - Return the ClientWindow set in a preceding call to #setClientWindow, or null if no such call has been made. - jakarta.faces.context - ExternalContext - - - - JSF:JAVADOC:2729 - Return the id of the current session or the empty string if no session has been created and the create parameter is false. Servlet: If create is true, obtain a reference to the HttpSession for the current request (creating the session if necessary) and return its id. If create is false, obtain a reference to the current session, if one exists, and return its id. If no session exists, return the empty string. - jakarta.faces.context - ExternalContext - - - boolean - - - - - JSF:JAVADOC:2730 - Associate this instance with a ClientWindow. - jakarta.faces.context - ExternalContext - - - jakarta.faces.lifecycle.ClientWindow - - - - - JSF:JAVADOC:2731 - The default behavior of this method is to call ExternalContext#getClientWindow on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - JSF:JAVADOC:2732 - The default behavior of this method is to call ExternalContext#getSessionId(boolean) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - boolean - - - - - JSF:JAVADOC:2733 - The default behavior of this method is to call ExternalContext#setClientWindow on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - jakarta.faces.lifecycle.ClientWindow - - - - - JSF:JAVADOC:2734 - Return the result of calling UINamingContainer#getSeparatorChar, passing this as the argument. Note that this enables accessing the value of this property from the EL expression #{facesContext.namingContainerSeparatorChar}. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:2735 - The default behavior of this method is to call FacesContext#getNamingContainerSeparatorChar() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:2736 - - jakarta.faces.context - FlashFactory - - - - JSF:JAVADOC:2738 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.context - FlashFactory - - - - JSF:JAVADOC:2739 - The default behavior of this method is to call Flash#clear() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2740 - The default behavior of this method is to call Flash#containsKey(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:2741 - The default behavior of this method is to call Flash#containsValue(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:2742 - The default behavior of this method is to call Flash#doPostPhaseActions(FacesContext) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2743 - The default behavior of this method is to call Flash#doPrePhaseActions(FacesContext) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2744 - The default behavior of this method is to call Flash#entrySet() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2745 - - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2746 - The default behavior of this method is to call Flash#get(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:2747 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2748 - The default behavior of this method is to call Flash#isEmpty() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2749 - The default behavior of this method is to call Flash#isKeepMessages() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2750 - The default behavior of this method is to call Flash#isRedirect() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2751 - The default behavior of this method is to call Flash#keep(String) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2752 - The default behavior of this method is to call Flash#keySet() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2753 - The default behavior of this method is to call Flash#put on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:2754 - The default behavior of this method is to call Flash#putAll(Map) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.util.Map - - - - - JSF:JAVADOC:2755 - The default behavior of this method is to call Flash#putNow(String, Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - java.lang.Object - - - - - JSF:JAVADOC:2756 - The default behavior of this method is to call Flash#remove(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:2757 - The default behavior of this method is to call Flash#setKeepMessages(boolean) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - boolean - - - - - JSF:JAVADOC:2758 - The default behavior of this method is to call Flash#setRedirect(boolean) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - boolean - - - - - JSF:JAVADOC:2759 - The default behavior of this method is to call Flash#size() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2760 - The default behavior of this method is to call Flash#values() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - JSF:JAVADOC:2761 - - jakarta.faces.lifecycle - ClientWindow - - - - JSF:JAVADOC:2765 - Return a String value that uniquely identifies this ClientWindow within the scope of the current session. See #decode for the specification of how to derive this value. - jakarta.faces.lifecycle - ClientWindow - - - - JSF:JAVADOC:2768 - Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:2769 - if listener is null - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:2771 - Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in the JavaServer Faces Specification, in the specified order. The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2772 - if thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2773 - if context is null - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:2774 - Return the set of registered PhaseListeners for this Lifecycle instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.lifecycle - LifecycleWrapper - - - - JSF:JAVADOC:2775 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.lifecycle - LifecycleWrapper - - - - JSF:JAVADOC:2776 - - jakarta.faces.lifecycle - LifecycleWrapper - - - - JSF:JAVADOC:2777 - Deregister an existing PhaseListener instance that is no longer interested in being notified before and after the processing for standard phases of the request processing lifecycle. If no such listener instance has been registered, no action is taken. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - - - - JSF:JAVADOC:2778 - if listener is null - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - java.lang.NullPointerException - - - - JSF:JAVADOC:2779 - Execute the Render Response phase of the request processing lifecycle, unless the responseComplete() method has been called on the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2780 - if an exception is thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2781 - if context is null - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - JSF:JAVADOC:2782 - Construct a new CollectionDataModel with no specified wrapped data. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2783 - Construct a new CollectionDataModel wrapping the specified list. - jakarta.faces.model - CollectionDataModel - - - java.util.Collection - - - - - JSF:JAVADOC:2784 - If there is wrappedData available, return the length of the list. If no wrappedData is available, return -1. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2785 - if an error occurs getting the row count - jakarta.faces.model - CollectionDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2786 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2787 - if an error occurs getting the row data - jakarta.faces.model - CollectionDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2788 - if now row data is available at the currently specified row index - jakarta.faces.model - CollectionDataModel - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:2789 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2790 - if an error occurs getting the row index - jakarta.faces.model - CollectionDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2791 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2792 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the size of the list. Otherwise, return false. - jakarta.faces.model - CollectionDataModel - - - - JSF:JAVADOC:2793 - if an error occurs getting the row availability - jakarta.faces.model - CollectionDataModel - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2794 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - CollectionDataModel - - - int - - - - - JSF:JAVADOC:2795 - if an error occurs setting the row index - jakarta.faces.model - CollectionDataModel - - - int - - jakarta.faces.FacesException - - - - JSF:JAVADOC:2796 - if rowIndex is less than -1 - jakarta.faces.model - CollectionDataModel - - - int - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:236 - Evaluates the for this , if any. The expression to be evaluated is passed into the constructor as a string. When the expression is evaluated, its value must be coerced into a boolean per the normal EL coercion rules. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:279 - Create an instance of Resource with a resourceName given by the value of the argument resourceName that is a member of the library named by the argument libraryName. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType. The algorithm specified in section JSF.2.6.1.4 of the spec prose document linked in the overview summary must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:281 - Create an instance of Resource with a resourceName given by the value of the argument resourceName that is a member of the library named by the argument libraryName that claims to have the content-type given by the argument content-type. The algorithm specified in section JSF.2.6.1.4 of the spec prose document linked in the overview summary must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:287 - Return true if the resource library named by the argument libraryName can be found. If there is a localePrefix for this application, as defined in #LOCALE_PREFIX, first look for the library with the prefix. If no such library is found, look for the library without the prefix. This allows developers to avoid duplication of files. For example, consider the case where the developer wants to have a resource library containing a localized image resource and a non-localized script resource. By checking both locations for the existence of the library, along with other spec changes in section 2.6.1.4, this scenario is enabled. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - JSF:JAVADOC:1091 - Adds the cookie represented by the arguments to the response. Servlet: This must be accomplished by calling the javax.servlet.http.HttpServletResponse method addCookie(). The Cookie argument must be constructed by passing the name and value parameters. If the properties arugument is non-null and not empty, the Cookie instance must be initialized as described below. Key in "values" Map Expected type of value. Name of setter method on Cookie instance to be set with the value from the Map. comment String setComment domain String setDomain maxAge Integer setMaxAge secure Boolean setSecure path String setPath httpOnly Boolean setHttpOnly The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:2242 - Return the state of the current view in an Object that implements Serializable and can be passed to java.io.ObjectOutputStream.writeObject() without causing a java.io.NotSerializableException to be thrown. The default implementation must perform the following algorithm or its semantic equivalent, explicitly performing all the steps listed here. If the UIViewRoot of the current view is marked transient, return null immediately. Traverse the view and verify that each of the client ids are unique. Throw IllegalStateException if more than one client id are the same. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For each node, call jakarta.faces.component.UIComponent#saveState, saving the returned Object in a way such that it can be restored given only its client id. Special care must be taken to handle the case of components that were added or deleted programmatically during this lifecycle traversal, rather than by the VDL. The implementation must ensure that the jakarta.faces.component.UIComponent#saveState method is called for each node in the tree. The data structure used to save the state obtained by executing the above algorithm must be Serializable, and all of the elements within the data structure must also be Serializable. - jakarta.faces.view - StateManagementStrategy - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2524 - Create an instance of Resource given the argument resourceId. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType The resource must be identified according to the specification in JSF.2.6.1.3 of the spec prose document linked in the overview summary. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - JSF:JAVADOC:1636 - The value of this annotation attribute is taken to be the converter-id with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.String). - jakarta.faces.convert - FacesConverter - - - - JSF:JAVADOC:2801 - Called by the flow system to cause the flow to be inspected for navigation rules. For backward compatibility with earlier implementations, an empty method is provided. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - JSF:JAVADOC:2802 - Called by the flow system to cause the flow to be inspected for navigation rules. For backward compatibility with earlier implementations, an empty method is provided. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - JSF:JAVADOC:125 - Install the listener instance referenced by argument listener into the application as a listener for events of type systemEventClass that originate from objects of type sourceClass. If argument sourceClass is non-null, sourceClass and systemEventClass must be used to store the argument listener in the application in such a way that the listener can be quickly looked up by the implementation of #publishEvent given systemEventClass and an instance of the Class referenced by sourceClass. If argument sourceClass is null, the listener must be discoverable by the implementation of #publishEvent given only systemEventClass. It is valid to call this method during the processing of an event which was subscribed to by a previous call to this method. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:129 - Remove the listener instance referenced by argument listener from the application as a listener for events of type systemEventClass that originate from objects of type sourceClass. See #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) for the specification of how the listener is stored, and therefore, how it must be removed. See #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an additional requirement regarding when it is valid to call this method. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:131 - Remove the listener instance referenced by argument listener from the application as a listener for events of type systemEventClass. The default implementation simply calls through to #unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) passing null as the sourceClass argument See #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an additional requirement regarding when it is valid to call this method. - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - JSF:JAVADOC:910 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within the non-NamingContainer child sub-trees of this UIViewRoot. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:2632 - The passed UIComponent parent will be populated/restored in accordance with the Facelets chapter in the spec prose document. - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2762 - The implementation is responsible for examining the incoming request and extracting the value that must be returned from the #getId method. If #CLIENT_WINDOW_MODE_PARAM_NAME is "none" this method must not be invoked. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate an id that uniquely identifies this ClientWindow within the scope of the current session. This value must be encrypted with a key stored in the http session and made available to return from the #getId method. The value must be suitable for inclusion as a hidden field or query parameter. If a value is found, decrypt it using the key from the session and make it available for return from #getId. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2767 - Create or restore the ClientWindow to be used to display the jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation for ClientWindow for an overview of the feature. If the value of the ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME configuration parameter is "none" without the quotes, this method must take no action. Otherwise, call jakarta.faces.context.ExternalContext#getClientWindow(). If the result is null, create a new instance of ClientWindow and call ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2770 - Create or restore the ClientWindow to be used to display the jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation for ClientWindow for an overview of the feature. If the value of the ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME configuration parameter is "none" without the quotes, this method must take no action. Otherwise, call jakarta.faces.context.ExternalContext#getClientWindow(). If the result is null, create a new instance of ClientWindow and call ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2797 - Set the wrapped data. - jakarta.faces.model - CollectionDataModel - - - java.lang.Object - - - - - JSF:JAVADOC:2798 - if data is non-null and is not a Collection - jakarta.faces.model - CollectionDataModel - - - java.lang.Object - - java.lang.ClassCastException - - - - JSF:JAVADOC:2803 - - jakarta.faces - ApplicationConfigurationResourceDocumentPopulator - - - - JSF:JAVADOC:2809 - - jakarta.faces.component.visit - ComponentModificationManager - - - jakarta.faces.context.FacesContext - java.util.Collection - - - - - JSF:JAVADOC:2810 - - jakarta.faces.component.visit - ComponentModificationManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2814 - if an error occurs getting the row count - jakarta.faces.model - ResultDataModel - - FacesException - - - - JSF:JAVADOC:2815 - if an error occurs getting the row data - jakarta.faces.model - ResultDataModel - - FacesException - - - - JSF:JAVADOC:2816 - if an error occurs getting the row availability - jakarta.faces.model - ResultDataModel - - FacesException - - - - JSF:JAVADOC:2817 - if an error occurs getting the row count - jakarta.faces.model - ScalarDataModel - - FacesException - - - - JSF:JAVADOC:2818 - if an error occurs getting the row data - jakarta.faces.model - ScalarDataModel - - FacesException - - - - JSF:JAVADOC:2819 - if an error occurs getting the row availability - jakarta.faces.model - ScalarDataModel - - FacesException - - - - JSF:JAVADOC:2820 - - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - FacesException - - - - JSF:JAVADOC:2821 - if unable to create child UIComponent instances - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - FacesException - - - - JSF:JAVADOC:2822 - if unable to create child UIComponent instances - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - FacesException - - - - JSF:JAVADOC:2823 - if unable to create child UIComponent instances - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - FacesException - - - - JSF:JAVADOC:2825 - Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this method is called before any FaceletHandlers for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.Tag - - - - - JSF:JAVADOC:2827 - Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this method is called before any FaceletHandlers for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided. - jakarta.faces.view.facelets - TagAttributes - - - jakarta.faces.view.facelets.Tag - - - - - JSF:JAVADOC:1094 - Dispatch a request to the specified resource to create output for this response. Servlet: This must be accomplished by calling the javax.servlet.ServletContext method getRequestDispatcher(path), and calling the forward() method on the resulting object. If the call to getRequestDisatcher(path) returns null, send aServletResponse SC_NOT_FOUND error code. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:25 - Register a validator by its id that is applied to all UIInput components in a view. The validator to most often serve this role is the BeanValidator. The usage contract for this method assumes that the validator has been registered using the normal ???by-id??? registration mechanism. An implementation is provided that takes no action so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - java.lang.String - - - - - JSF:JAVADOC:213 - A convenience method to signal the JavaServer Faces implementation to perform navigation with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as the "from viewId" and the "from action" is null. - jakarta.faces.application - ConfigurableNavigationHandler - - - java.lang.String - - - - - JSF:JAVADOC:349 - Derive and return the viewId from the current request, or the argument input by following the algorithm defined in specification section JSF.7.6.2. The default implementation of this method simply returns rawViewId unchanged. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:350 - If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a request to the toExternalForm() of that URL will select the argument viewId for traversing the JSF lifecycle. Please see section JSF.7.6.2 for the complete specification. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:353 - Return a JSF action URL derived from the viewId argument that is suitable to be used as the target of a link in a JSF response. Compiliant implementations must implement this method as specified in section JSF.7.6.2. The default implementation simply calls through to #getActionURL, passing the arguments context and viewId. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - JSF:JAVADOC:543 - The default implementation performs the following action. If the argument event is an instance of PostRestoreStateEvent, call this.#getValueExpression passing the literal string ???binding???, without the quotes, as the argument. If the result is non-null, set the value of the ValueExpression to be this. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.ComponentSystemEvent - - - - - JSF:JAVADOC:575 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:724 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UIForm - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:770 - Convenience method to reset this component's value to the un-initialized state. This method does the following: Call UIOutput#setValue. Call #setSubmittedValue passing null. Call #setLocalValueSet passing false. Call #setValid passing true. Upon return from this call if the instance had a ValueBinding associated with it for the "value" property, this binding is evaluated when UIOutput#getValue is called. Otherwise, null is returned from getValue(). - jakarta.faces.component - UIInput - - - - JSF:JAVADOC:815 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - JSF:JAVADOC:932 - Override superclass method to always return true because a UIViewRoot is defined to always be in a view. - jakarta.faces.component - UIViewRoot - - - - JSF:JAVADOC:981 - Return the immediate status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:1036 - Attaches a ClientBehavior to the component implementing this interface for the specified event. Valid event names for a UIComponent implementation are defined by ClientBehaviorHolder.getEventNames(). - jakarta.faces.component.behavior - ClientBehaviorHolder - - - java.lang.String - jakarta.faces.component.behavior.ClientBehavior - - - - - JSF:JAVADOC:1041 - This method is called during component tree visits by VisitContext#invokeVisitCallback VisitContext.invokeVisitCallback() to visit the specified component. At the point in time when this method is called, the argument target is guaranteed to be in the proper state with respect to its ancestors in the View. - jakarta.faces.component.visit - VisitCallback - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:1045 - Returns hints that influence the behavior of the tree visit. Interested parties, such as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a particular hint is present by calling VisitContext.getHints().contains(), passing in one of the hints defined by VisitHint. - jakarta.faces.component.visit - VisitContext - - - - JSF:JAVADOC:1048 - if component is not an instance of NamingContainer - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1055 - Returns hints that influence the behavior of the tree visit. Interested parties, such as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a particular hint is present by calling VisitContext.getHints().contains(), passing in one of the hints defined by VisitHint. - jakarta.faces.component.visit - VisitContextWrapper - - - - JSF:JAVADOC:1058 - if component is not an instance of NamingContainer - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - JSF:JAVADOC:1385 - Return the value of this JavaBeans property for the flash for this session. This value determines whether or not any jakarta.faces.application.FacesMessage instances queued in the current jakarta.faces.context.FacesContext must be preserved so they are accessible on the next traversal of the lifecycle on this session, regardless of the request being a redirect after post, or a normal postback. Map accesses for the special key ???keepMessages??? must return the value of this JavaBeans property. EL Usage Example First page Next page Any messages present on the first page must be displayed on this page. - jakarta.faces.context - Flash - - - - JSF:JAVADOC:1386 - Return the value of this property for the flash for this session. This must be false unless: #setRedirect was called for the current lifecycle traversal with true as the argument. The current lifecycle traversal for this session is in the ???execute??? phase and the previous traversal had #setRedirect called with true as the argument. - jakarta.faces.context - Flash - - - - JSF:JAVADOC:1468 - Write the end of an element, after closing any open element created by a call to startElement(). Elements must be closed in the inverse order from which they were opened; it is an error to do otherwise. If the argument component's pass through attributes includes an attribute of the name given by the value of the symbolic constant jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, instead of the value passed as the first parameter to this method. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:1480 - Write the start of an element, up to and including the element name. Once this method has been called, clients can call the writeAttribute() or writeURIAttribute() methods to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), endDocument(), close(), flush(), or write(). If the argument component's pass through attributes includes an attribute of the name given by the value of the symbolic constant jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, instead of the value passed as the first parameter to this method. Care must be taken so that this value is not also rendered when any other pass through attributes on this component are rendered. - jakarta.faces.context - ResponseWriter - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2117 - Return true if the current request is a postback. This method is leveraged from the Restore View Phase to determine if jakarta.faces.application.ViewHandler#restoreView or jakarta.faces.application.ViewHandler#createView should be called. The default implementation must return true if this ResponseStateManager instance wrote out state on a previous request to which this request is a postback, false otherwise. The implementation of this method for the Standard HTML RenderKit must consult the jakarta.faces.context.ExternalContext's requestParameterMap and return true if and only if there is a key equal to the value of the symbolic constant #VIEW_STATE_PARAM. For backwards compatability with implementations of ResponseStateManager prior to JSF 1.2, a default implementation is provided that consults the jakarta.faces.context.ExternalContext's requestParameterMap and return true if its size is greater than 0. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2133 - Verify that the value is valid according to the Bean Validation constraints. Obtain a ValidatorFactory instance by calling jakarta.validation.Validation#buildDefaultValidatorFactory. Let validationGroupsArray be a Class [] representing validator groups set on the component by the tag handler for this validator. The first search component terminates the search for the validation groups value. If no such value is found use the class name of jakarta.validation.groups.Default as the value of the validation groups. Let valueExpression be the return from calling UIComponent#getValueExpression on the argument component, passing the literal string ???value??? (without the quotes) as an argument. If this application is running in an environment with a Unified EL Implementation for Java EE6 or later, obtain the ValueReference from valueExpression and let valueBaseClase be the return from calling ValueReference.getBase() and valueProperty be the return from calling ValueReference.getProperty(). If an earlier version of the Unified EL is present, use the appropriate methods to inspect valueExpression and derive values for valueBaseClass and valueProperty. If no ValueReference can be obtained, take no action and return. If ValueReference.getBase() return null, take no action and return. Obtain the ValidatorContext from the ValidatorFactory. Decorate the MessageInterpolator returned from ValidatorFactory#getMessageInterpolator with one that leverages the Locale returned from jakarta.faces.component.UIViewRoot#getLocale, and store it in the ValidatorContext using ValidatorContext#messageInterpolator. Obtain the jakarta.validation.Validator instance from the validatorContext. Obtain a jakarta.validation.BeanDescriptor from the jakarta.validation.Validator. If hasConstraints() on the BeanDescriptor returns false, take no action and return. Otherwise proceed. Call jakarta.validation.Validator#validateValue, passing valueBaseClass, valueProperty, the value argument, and validatorGroupsArray as arguments. If the returned Set<ConstraintViolation> is non-empty, for each element in the Set, create a FacesMessage where the summary and detail are the return from calling ConstraintViolation#getMessage. Capture all such FacesMessage instances into a Collection and pass them to ValidatorException#ValidatorException(java.util.Collection), throwing the new exception. - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2246 - Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2248 - Return a reference to the component metadata for the composite component represented by the argument componentResource, or null if the metadata cannot be found. See section JSF.7.7.2 for the specification of the default implementation. JSP implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:2252 - Take implementation specific action to discover a Resource given the argument componentResource. See section JSF.7.7.2 for the specification of the default implementation. JSP implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:2257 - Return a reference to the view metadata for the view represented by the argument viewId, or null if the metadata cannot be found. See section JSF.7.7.2 for the specification of the default implementation. Facelets for JSF 2 implementation must return non-null. JSP implementations must return null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2260 - Render a view rooted at argumentview. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2263 - Restore a UIViewRoot from a previously created view. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:920 - Return an unmodifiable List of UIComponents for the provided target agrument. Each component in the List is assumed to represent a resource instance. The default implementation must use an algorithm equivalent to the the following. Locate the facet for the component by calling getFacet() using target as the argument. If the facet is not found, create the facet by calling context.getApplication().createComponent(). The argument to this method must refer to a component that extends UIPanel and overrides the encodeAll() method to take no action. This is necessary to prevent component resources from being inadvertently rendered. Set the id of the facet to be a string created by prepending the literal string ???jakarta_faces_location_??? (without the quotes) to the value of the target argument Add the facet to the facets Map using target as the key return the children of the facet - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:931 - Returns a Map that acts as the interface to the data store that is the "view scope", or, if this instance does not have such a Map and the create argument is true, creates one and returns it. This map must be instantiated lazily and cached for return from subsequent calls to this method on this UIViewRoot instance. jakarta.faces.application.Application#publishEvent must be called, passing PostConstructViewMapEvent.class as the first argument and this UIViewRoot instance as the second argument. The returned Map must be implemented such that calling clear() on the Map causes jakarta.faces.application.Application#publishEvent to be called, passing PreDestroyViewMapEvent.class as the first argument and this UIViewRoot instance as the second argument. Depending upon application configuration, objects stored in the view map may need to be Serializable. In general, it is a good idea to ensure that any objects stored in the view map are Serializable. For reasons made clear in jakarta.faces.view.ViewScoped, this map must ultimately be stored in the session. For this reason, a true value for the create argument will force the session to be created with a call to jakarta.faces.context.ExternalContext#getSession(boolean). See FacesContext#setViewRoot for the specification of when the clear() method must be called. - jakarta.faces.component - UIViewRoot - - - boolean - - - - - JSF:JAVADOC:2522 - A convenience method to signal the JavaServer Faces implementation to perform navigation with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as the "from viewId" and the "from action" is null. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2533 - Derive and return the viewId from the current request, or the argument input by following the algorithm defined in specification section JSF.7.6.2. Note that unlike deriveViewId(), this method does not require that a physical view be present. The default implementation of this method simply returns rawViewId unchanged. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2605 - Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2607 - Return a reference to the component metadata for the composite component represented by the argument componentResource, or null if the metadata cannot be found. See section JSF.7.7.2 for the specification of the default implementation. JSP implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:2612 - Take implementation specific action to discover a Resource given the argument componentResource. See section JSF.7.7.2 for the specification of the default implementation. JSP implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - JSF:JAVADOC:2617 - Return a reference to the view metadata for the view represented by the argument viewId, or null if the metadata cannot be found. See section JSF.7.7.2 for the specification of the default implementation. Facelets for JSF 2 implementation must return non-null. JSP implementations must return null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2621 - Render a view rooted at argumentview. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2624 - Restore a UIViewRoot from a previously created view. See section JSF.7.7.2 for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:354 - Return a JSF action URL derived from the viewId argument that is suitable to be used by the NavigationHandler to issue a redirect request to the URL using a NonFaces request. Compliant implementations must implement this method as specified in section JSF.7.6.2. The default implementation simply calls through to #getActionURL, passing the arguments context and viewId. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - JSF:JAVADOC:2689 - Add the argument urlPattern to the thread safe Set of protected views for this application. Compliant implementations make it so a subsequent call to #getProtectedViewsUnmodifiable contains the argument. The runtime must support calling this method at any time after application startup. The default implementation takes no action. - jakarta.faces.application - ViewHandler - - - java.lang.String - - - - - JSF:JAVADOC:2690 - Return an unmodifiable Set of the protected views currently known to this ViewHandler instance. Compliant implementations must return a Set that is the concatenation of the contents of all the elements within all the in all of the application configuration resources in the current application. The runtime must support calling this method at any time after application startup. The default implementation returns an unmodifiable empty Set. - jakarta.faces.application - ViewHandler - - - - JSF:JAVADOC:2691 - Remove the argument urlPattern from the thread safe Set of protected views for this application, if present in the Set. If the argument urlPattern is not present in the Set, this method has no effect. Compliant implementations must make it so a subsequent call to #getProtectedViewsUnmodifiable does not contain the argument. The runtime must support calling this method at any time after application startup. Returns true if this Set contained the argument. The default implementation takes no action and returns false. - jakarta.faces.application - ViewHandler - - - java.lang.String - - - - - JSF:JAVADOC:2448 - Process an incoming request, and create the corresponding response according to the following specification. If the request and response arguments to this method are not instances of HttpServletRequest and HttpServletResponse, respectively, the results of invoking this method are undefined. This method must respond to requests that contain the following strings by invoking the sendError method on the response argument (cast to HttpServletResponse), passing the code HttpServletResponse.SC_NOT_FOUND as the argument. /WEB-INF/ /WEB-INF /META-INF/ /META-INF If none of the cases described above in the specification for this method apply to the servicing of this request, the following action must be taken to service the request. Acquire a FacesContext instance for this request. Acquire the ResourceHandler for this request by calling jakarta.faces.application.Application#getResourceHandler. Call jakarta.faces.application.ResourceHandler#isResourceRequest. If this returns true call jakarta.faces.application.ResourceHandler#handleResourceRequest. If this returns false, call jakarta.faces.lifecycle.Lifecycle#attachWindow followed by jakarta.faces.lifecycle.Lifecycle#execute followed by jakarta.faces.lifecycle.Lifecycle#render. If a jakarta.faces.FacesException is thrown in either case, extract the cause from the FacesException. If the cause is null extract the message from the FacesException, put it inside of a new ServletException instance, and pass the FacesException instance as the root cause, then rethrow the ServletException instance. If the cause is an instance of ServletException, rethrow the cause. If the cause is an instance of IOException, rethrow the cause. Otherwise, create a new ServletException instance, passing the message from the cause, as the first argument, and the cause itself as the second argument. The implementation must make it so jakarta.faces.context.FacesContext#release is called within a finally block as late as possible in the processing for the JSF related portion of this request. - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - - - - JSF:JAVADOC:2602 - Tests whether a physical resource corresponding to the specified viewId exists. The default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate the physical resource. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2631 - Tests whether a physical resource corresponding to the specified viewId exists. The default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate the physical resource. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:277 - Create an instance of Resource given the argument resourceName. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType The algorithm specified in section JSF.2.6.1.4 of the spec prose document linked in the overview summary must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. For historical reasons, this method operate correctly when the argument resourceName is of the form libraryName/resourceName, even when resourceName contains '/' characters. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - JSF:JAVADOC:2799 - Return the thread-safe singleton FlowHandler for this application. For implementations declaring compliance with version 2.2 of the specification, this method must never return null, even if the application has no flows. This is necessary to enable dynamic flow creation during the application's lifetime. All implementations that declare compliance with version 2.2 of the specification must implement this method. For the purpose of backward compatibility with environments that extend Application but do not override this method, an implementation is provided that returns null. Due to the decoratable nature of Application, code calling this method should always check for a null return. - jakarta.faces.application - Application - - - - JSF:JAVADOC:2800 - Return the thread-safe singleton FlowHandler for this application. For implementations declaring compliance with version 2.2 of the specification, this method must never return null, even if the application has no flows. This is necessary to enable dynamic flow creation during the application's lifetime. All implementations that declare compliance with version 2.2 of the specification must implement this method. For the purpose of backward compatibility with environments that extend Application but do not override this method, an implementation is provided that returns null. Due to the decoratable nature of Application, code calling this method should always check for a null return. - jakarta.faces.application - ApplicationWrapper - - - - JSF:JAVADOC:272 - Return true if the user-agent requesting this resource needs an update. If the If-Modified-Since HTTP header is available for this request, its value must be consulted, as specified in Section 14.25 of IETF RFC 2616, to determine the result. Returns false if the user-agent does not need an update for this resource. - jakarta.faces.application - Resource - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2409 - Called by classes that implement jakarta.faces.view.facelets.FaceletHandler in their implementation of apply(). If the argument comp is new to the view, for each tag attribute declared to be in the pass through attribute namespace, set the name and value of the attribute into the pass through attributes map of the component. See UIComponent#getPassThroughAttributes(boolean) . See the VDLDocs for the namespace URI of the pass through attribute namespace. Attributes whose value is a ValueExpression must remain un-evaluated and stored in the map as ValueExpression instances. - jakarta.faces.view.facelets - TagHandlerDelegate - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:787 - Perform the following algorithm to validate the local value of this UIInput. Retrieve the submitted value with #getSubmittedValue. If this returns null, exit without further processing. (This indicates that no value was submitted for this component.) If the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context parameter value is true (ignoring case), and getSubmittedValue() returns a zero-length String call #setSubmittedValue, passing null as the argument and continue processing using null as the current submitted value. Convert the submitted value into a "local value" of the appropriate data type by calling #getConvertedValue. If conversion fails: Enqueue an appropriate error message by calling the addMessage() method on the FacesContext. Set the valid property on this component to false Validate the property by calling #validateValue. If the valid property of this component is still true, retrieve the previous value of the component (with getValue()), store the new local value using setValue(), and reset the submitted value to null with a call to #setSubmittedValue passing null as the argument. If the local value is different from the previous value of this component, as determined by a call to #compareValues, fire a ValueChangeEvent to be broadcast to all interested listeners. Application components implementing UIInput that wish to perform validation with logic embedded in the component should perform their own correctness checks, and then call the super.validate() method to perform the standard processing described above. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:1099 - Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable action in the current application. Encoding the jakarta.faces.lifecycle.ClientWindow Call jakarta.faces.lifecycle.ClientWindow#isClientWindowRenderModeEnabled(jakarta.faces.context.FacesContext) . If the result is false take no further action and return the rewritten URL. If the result is true, call #getClientWindow(). If the result is non-null, call jakarta.faces.lifecycle.ClientWindow#getId() and append the id to the query string of the URL, making the necessary allowances for a pre-existing query string or no query-string. Call jakarta.faces.lifecycle.ClientWindow#getQueryURLParameters. If the result is non-null, for each parameter in the map, unconditionally add that parameter to the URL. The name of the query string parameter is given by the value of the constant jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. Servlet: This must be the value returned by the javax.servlet.http.HttpServletResponse method encodeURL(url). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - JSF:JAVADOC:2119 - Take the argument state and write it into the output using the current ResponseWriter, which must be correctly positioned already. Call FacesContext#getViewRoot(). Call jakarta.faces.component.UIComponent#isTransient() returns true, take implementation specific action so that the following call to #isStateless returns true and return. Otherwise, proceed as follows. If the state is to be written out to hidden fields, the implementation must take care to make all necessary character replacements to make the Strings suitable for inclusion as an HTTP request paramater. If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, the implementation must encrypt the state to be saved to the client in a tamper evident manner. If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_SERVER, and the current request is an Ajax request jakarta.faces.context.PartialViewContext#isAjaxRequest returns true), use the current view state identifier if it is available (do not generate a new identifier). Write out the render kit identifier associated with this ResponseStateManager implementation with the name as the value of the String constant ResponseStateManager.RENDER_KIT_ID_PARAM. The render kit identifier must not be written if: it is the default render kit identifier as returned by jakarta.faces.application.Application#getDefaultRenderKitId() or the render kit identfier is the value of jakarta.faces.render.RenderKitFactory.HTML_BASIC_RENDER_KIT and jakarta.faces.application.Application#getDefaultRenderKitId() returns null. For backwards compatability with existing ResponseStateManager implementations, the default implementation of this method checks if the argument is an instance of SerializedView. If so, it calls through to #writeState(jakarta.faces.context.FacesContext,jakarta.faces.application.StateManager.SerializedView). If not, it expects the state to be a two element Object array. It creates an instance of SerializedView and stores the state as the treeStructure, and passes it to #writeState(jakarta.faces.context.FacesContext,jakarta.faces.application.StateManager.SerializedView). The jakarta.faces.lifecycle.ClientWindow must be written using these steps. Call jakarta.faces.context.ExternalContext#getClientWindow. If the result is null, take no further action regarding the ClientWindow. If the result is non-null, write a hidden field whose name is #CLIENT_WINDOW_PARAM and whose id is jakarta.faces.ClientWindow where is the currently configured UINamingContainer.getSeparatorChar(). is the return from UIViewRoot.getContainerClientId() on the view from whence this state originated. is a number that must be unique within this view, but must not be included in the view state. The value of the field is implementation dependent but must uniquely identify this window within the user's session. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - JSF:JAVADOC:262 - Return a path to this resource such that, when the browser resolves it against the base URI for the view that includes the resource, and issues a GET request to the resultant fully qualified URL, the bytes of the resource are returned in response. The default implementation must implement the following algorithm. For discussion, the return result from this method will be called result. Get the context-root for this web application, not ending in slash. For discussion this will be called contextRoot. Discover if the FacesServlet is prefix or extension mapped, and the value of the mapping (including the leading '.' in the case of extension mapping). For discussion, this will be facesServletMapping. If prefix mapped, result must be result = contextRoot + '/' + facesServletMapping + ResourceHandler#RESOURCE_IDENTIFIER + '/' + #getResourceName If extension mapped, result must be result = contextRoot + ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName + facesServletMapping Build up a string, called resourceMetaData which is an & separated string of name=value pairs suitable for inclusion in a URL query string. If #getLibraryName returns non-null, resourceMetaData must include "ln=" + the return from #getLibraryName If there is a localePrefix for this application, as defined in ResourceHandler#LOCALE_PREFIX, resourceMetaData must include "loc=" + the localePrefix. If this resource is contained in a resource library contract, resourceMetaData must include "con=" + the name of the resource library contract. Append "?" + resourceMetaData to result. Make it portlet safe by passing the result through ViewHandler#getResourceURL. - jakarta.faces.application - Resource - - - - JSF:JAVADOC:2804 - Service providers that implement this service must be called by the JSF runtime exactly once for each implementation, at startup, before any requests have been serviced. Before calling the #populateApplicationConfigurationResource method, the runtime must ensure that the Document argument is empty aside from being pre-configured to be in the proper namespace for an Application Configuration Resources file. Implementations of this service must ensure that any changes made to the argument Document conform to that schema as defined in the specification. The JSF runtime is not required to validate the Document after control returns from the service implementation, though it may do so. Ordering of Artifacts If the document is made to contain an element, as specified in the section Ordering of Artifacts in the specification prose document, the document will be prioritized accordingly. Otherwise, the runtime must place the document in the list of other Application Configuration Resources documents at the "lowest" priority, meaning any conflicts that may arise between the argument document and any other Application Configuration Resources are resolved in favor of the other document. - jakarta.faces - ApplicationConfigurationResourceDocumentPopulator - - - org.w3c.dom.Document - - - - - JSF:JAVADOC:2805 - This is a convenience method that simply calls #getPassThroughAttributes(boolean), passing true as the argument. This method must never return null. - jakarta.faces.component - UIComponent - - - - JSF:JAVADOC:2806 - This method has the same specification as #getPassThroughAttributes() except that it is allowed to return null if and only if the argument create is false and no pass through attribute data structure exists for this instance. The returned Map implementation must support all of the standard and optional Map methods, plus support the following additional requirements. The Map implementation must implement java.io.Serializable. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw an IllegalArgumentException. - jakarta.faces.component - UIComponent - - - boolean - - - - - JSF:JAVADOC:2808 - This method has the same specification as #getPassThroughAttributes() except that it is allowed to return null if and only if the argument create is false and no pass through attribute data structure exists for this instance. The returned Map implementation must support all of the standard and optional Map methods, plus support the following additional requirements. The Map implementation must implement java.io.Serializable. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw an IllegalArgumentException. - jakarta.faces.component - UIComponentBase - - - boolean - - - - - JSF:JAVADOC:2824 - A reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns null. - jakarta.faces.view.facelets - TagAttribute - - - - JSF:JAVADOC:2826 - A reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns null. - jakarta.faces.view.facelets - TagAttributes - - - - JSF:JAVADOC:2828 - Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements of the faces flows feature. - jakarta.faces.application - Application - - - jakarta.faces.flow.FlowHandler - - - - - JSF:JAVADOC:2829 - if {code newHandler is {null} - jakarta.faces.application - Application - - - jakarta.faces.flow.FlowHandler - - NullPounterException - - - - JSF:JAVADOC:2830 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - Application - - - jakarta.faces.flow.FlowHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2831 - Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements of the faces flows feature. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.flow.FlowHandler - - - - - JSF:JAVADOC:2832 - if {code newHandler is {null} - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.flow.FlowHandler - - NullPounterException - - - - JSF:JAVADOC:2833 - if this method is called after at least one request has been processed by the Lifecycle instance for this application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.flow.FlowHandler - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2834 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. Implementations that comply the version of the specification in which this method was introduced must override this method. For compatibility with decorated implementations that comply with an earlier version of the specification, an implementation is provided that simply calls through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2835 - if context is null - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2836 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. Implementations that comply the version of the specification in which this method was introduced must override this method. For compatibility with decorated implementations that comply with an earlier version of the specification, an implementation is provided that simply calls through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2837 - if context is null - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2838 - If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations must override this method to return the value defined in the corresponding application configuration resources element. The base implementation returns the empty string. - jakarta.faces.application - NavigationCase - - - - JSF:JAVADOC:2839 - Construct a new NavigationCase based on the provided arguments. See section JSF.7.4.2 for how a NavigationCase is used by the standard ConfigurableNavigationHandler - jakarta.faces.application - NavigationCase - - - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.util.Map - boolean - boolean - - - - - JSF:JAVADOC:2840 - - jakarta.faces.application - NavigationCaseWrapper - - - java.lang.Object - - - - - JSF:JAVADOC:2841 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2842 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:2843 - Construct an absolute URL suitable for a bookmarkable link to this NavigationCase instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the url. This URL may include view parameters specified as metadata within the view. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2844 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:2845 - Evaluates the for this , if any. The expression to be evaluated is passed into the constructor as a string. When the expression is evaluated, its value must be coerced into a boolean per the normal EL coercion rules. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2846 - exceptions encountered during the process of evaluating the expression or obtaining its value. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - any - - - - JSF:JAVADOC:2847 - Return the for this - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2848 - Return the for this - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2849 - Return the of the inside which this is nested. - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2850 - Return the parameters to be included for navigation cases requiring a redirect. If no parameters are defined, null will be returned. The keys in the Map are parameter names. For each key, the corresponding value is a List of unconverted values. - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2851 - Construct an absolute URL suitable for a "redirect" to this NavigationCase instance using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2852 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:2853 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2854 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - JSF:JAVADOC:2855 - If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations must override this method to return the value defined in the corresponding application configuration resources element. The base implementation returns the empty string. - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2856 - Evaluates the for this - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2857 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2858 - Test if this navigation case has an associated element. - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2859 - - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2860 - Return the value for this . This will be true if the view parametets should be encoded into the redirect URL (only applies to redirect case) - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2861 - Return the value for this . This will be true if the new view should be navigated to via a jakarta.faces.context.ExternalContext#redirect(String) - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2862 - - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2863 - - jakarta.faces.application - NavigationCaseWrapper - - - - JSF:JAVADOC:2864 - Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler implementations that conform to an earlier version of the specification, an implementation is provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2865 - if context is null - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2866 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - NavigationHandlerWrapper - - - - JSF:JAVADOC:2867 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2868 - if context is null - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2869 - Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler implementations that conform to an earlier version of the specification, an implementation is provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - JSF:JAVADOC:2870 - if context is null - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2871 - - jakarta.faces.application - NavigationHandlerWrapper - - - - JSF:JAVADOC:2872 - Create an instance of Resource given the argument resourceName, which may contain "/" characters. The jakarta.faces.view.ViewDeclarationLanguage calls this method when it needs to load a view from a persistent store, such as a filesystem. This method is functionality equivalent to #createResource(java.lang.String), but all callsites that need to load VDL views must use this method so that classes that want to decorate the ResourceHandler in order to only affect the loading of views may do so without affecting the processing of other kinds of resources, such as scripts and stylesheets. A jakarta.faces.context.FacesContext must be present before calling this method. To preserve compatibility with prior revisions of the specification, a default implementation must be provided that calls #createResource(java.lang.String). PENDING(edburns): I think we need to put an additional check in to avoid returning false hits from this method when a viewResource happens to be named the same as one of the templates in a resource library contract. Perhaps we could set some kind of flag in the tag handler of all facelet tags that are valid for using resource library contracts (maybe just ui:composition and ui:decorate) and make it so the getResourceLibraryContracts part of this method only takes effect if that flag is set? Call FacesContext#getResourceLibraryContracts. If the result is non-null and not empty, for each value in the list, treat the value as the name of a resource library contract. If the argument resoureName exists as a resource in the resource library contract, return it. Otherwise, return the resource (not in the resource library contract), if found. Otherwise, return null. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2873 - if resourceName is null. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2874 - Return true if the argument url contains the string given by the value of the constant ResourceHandler#RESOURCE_IDENTIFIER, false otherwise. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - JSF:JAVADOC:2875 - if the argument url is null. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2876 - The default behavior of this method is to call ResourceHandler#createViewResource on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2877 - The default behavior of this method is to call ResourceHandler#isResourceURL on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2879 - Return whether or not the client window should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - - JSF:JAVADOC:2880 - Set whether or not the client window should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - boolean - - - - - JSF:JAVADOC:2881 - Convenience method to reset this component's value to the un-initialized state. - jakarta.faces.component - UIOutput - - - - JSF:JAVADOC:2882 - Visit the clientIds and, if the component is an instance of EditableValueHolder, call its EditableValueHolder#resetValue method. Use #visitTree to do the visiting. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.util.Collection - - - - - JSF:JAVADOC:2883 - Return the resetValues status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:2884 - Tests whether the resetValues attribute is specified. Returns true if the resetValues attribute is specified, either as a locally set property or as a value expression. - jakarta.faces.component.behavior - AjaxBehavior - - - - JSF:JAVADOC:2885 - Set the resetValues status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - JSF:JAVADOC:2886 - Return the list of resource library contracts that have been calculated to be appropriate for use with this view, or null if there are no such resource library contracts. The list returned by this method must be immutable. For backward compatibility with implementations of the specification prior to when this method was introduced, an implementation is provided that returns null. Implementations compliant with the version in which this method was introduced must implement this method as specified. - jakarta.faces.context - FacesContext - - - - JSF:JAVADOC:2887 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2888 - Set the resource library contracts calculated as valid to use with this view. The implementation must copy the contents of the incoming List into an immutable List for return from #getResourceLibraryContracts. If the argument is null or empty, the action taken is the same as if the argument is null: a subsequent call to getResourceLibraryContracts returns null. This method may only be called during the processing of jakarta.faces.view.ViewDeclarationLanguage#createView and during the VDL tag handler for the tag corresponding to an instance of UIViewRoot. For backward compatibility with implementations of the specification prior to when this method was introduced, an implementation is provided that takes no action. Implementations compliant with the version in which this method was introduced must implement this method as specified. - jakarta.faces.context - FacesContext - - - java.util.List - - - - - JSF:JAVADOC:2889 - if this method is called after this instance has been released - jakarta.faces.context - FacesContext - - - java.util.List - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2890 - The default behavior of this method is to call FacesContext#getResourceLibraryContracts on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - JSF:JAVADOC:2891 - The default behavior of this method is to call FacesContext#setResourceLibraryContracts on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.util.List - - - - - JSF:JAVADOC:2892 - Create (if needed) and return a Flash instance for this web application. - jakarta.faces.context - FlashFactory - - - boolean - - - - - JSF:JAVADOC:2893 - Return true if the incoming request has a parameter named by the value of #RESET_VALUES_PARAM_NAME and that value is true. To preserve backward compatibility with custom implementations that may have extended from an earlier version of this class, an implementation is provided that returns false. A compliant implementation must override this method to take the specified action. - jakarta.faces.context - PartialViewContext - - - - JSF:JAVADOC:2894 - The default behavior of this method is to call PartialViewContext#isResetValues() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - JSF:JAVADOC:2895 - Write a string containing the markup specific doctype. No escaping is performed. The default implementation simply calls through to #write(java.lang.String) . The implementation makes no checks if this is the correct place in the response to have a doctype, nor does it prevent the doctype from being written more than once. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:2896 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:2897 - Write a string containing the markup specific preamble. No escaping is performed. The default implementation simply calls through to #write(java.lang.String) . The implementation makes no checks if this is the correct place in the response to have a preamble, nor does it prevent the preamble from being written more than once. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - JSF:JAVADOC:2898 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:2899 - The default behavior of this method is to call ResponseWriter#writeDoctype on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2900 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:2901 - The default behavior of this method is to call ResponseWriter#writePreamble on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - JSF:JAVADOC:2902 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - JSF:JAVADOC:2903 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first before rendering those URLs. The caller must call #enableClientWindowRenderMode(jakarta.faces.context.FacesContext) from a finally block after rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2904 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first after rendering those URLs. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2905 - This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL. This guarantees custom ClientWindow implementations that they will have the opportunity to insert any additional client window specific information in any case where a URL is generated, such as the rendering of hyperlinks. The default implementation of this method returns the null. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2906 - Methods that append the ClientWindow to generated URLs must call this method to see if they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - JSF:JAVADOC:2907 - Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument clientId unchanged. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2908 - if context or clientId is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2909 - Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling queueEvent() on the associated UIComponent. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2910 - if context or component is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2911 - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2912 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2913 - if context or component is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2914 - Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property of this component is true. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2915 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2916 - if context or component is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2917 - Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - JSF:JAVADOC:2918 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - JSF:JAVADOC:2919 - if context or component is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - JSF:JAVADOC:2920 - Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). If conversion is successful, the new value should be returned from this method; if not, a ConverterException should be thrown. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - JSF:JAVADOC:2921 - if the submitted value cannot be converted successfully. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - JSF:JAVADOC:2922 - if context or component is null - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - JSF:JAVADOC:2923 - Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false. - jakarta.faces.render - RendererWrapper - - - - JSF:JAVADOC:2924 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.render - RendererWrapper - - - - JSF:JAVADOC:2925 - - jakarta.faces.render - RendererWrapper - - - - JSF:JAVADOC:2926 - If the preceding call to #writeState(jakarta.faces.context.FacesContext, java.lang.Object) was stateless, return true. If the preceding call to writeState() was stateful, return false. Otherwise throw IllegalStateException. To preserve backward compatibility with custom implementations that may have extended from an earlier version of this class, an implementation is provided that returns false. A compliant implementation must override this method to take the specified action. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2927 - if the argument context is null. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - JSF:JAVADOC:2928 - if this method is invoked and the statefulness of the preceding call to #writeState(jakarta.faces.context.FacesContext, java.lang.Object) cannot be determined. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.IllegalStateException - - - - JSF:JAVADOC:2929 - Return the list of resource library contracts that will be made available for use in the view specified by the argument viewId. If no match is found, return an empty list. See section JSF.7.7.2 for the specification of the default implementation. For backward compatibility with prior implementations, an implementation is provided that returns null, but any implementation compliant with the version of the specification in which this method was introduced must implement it as specified in JSF.7.7.2. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2930 - Create a component given a ViewDeclarationLanguage specific tag library URI and tag name. The runtime must support this method operating for the Facelets VDL. Other kinds of ViewDeclarationLanguage may be supported but are not required to be supported. For backward compatibility with decorated ViewDeclrationLanguage implementations that do not override this method, a default implementation is provided that returns null. However, any implementation that is compliant with the version of the specification in which this method was introduced must implement this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:2931 - if context, taglibURI, or tagName are null - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - java.lang.NullPointerException - - - - JSF:JAVADOC:2932 - Return the list of resource library contracts that will be made available for use in the view specified by the argument viewId. If no match is found, return an empty list. See section JSF.7.7.2 for the specification of the default implementation. For backward compatibility with prior implementations, an implementation is provided that returns null, but any implementation compliant with the version of the specification in which this method was introduced must implement it as specified in JSF.7.7.2. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - JSF:JAVADOC:2933 - Create a component given a ViewDeclarationLanguage specific tag library URI and tag name. The runtime must support this method operating for the Facelets VDL. Other kinds of ViewDeclarationLanguage may be supported but are not required to be supported. For backward compatibility with decorated ViewDeclrationLanguage implementations that do not override this method, a default implementation is provided that returns null. However, any implementation that is compliant with the version of the specification in which this method was introduced must implement this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - - - - JSF:JAVADOC:2934 - if context, taglibURI, or tagName are null - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - java.lang.NullPointerException - - - - JSF:JAVADOC:2935 - Utility method to extract view metadata from the provided UIViewRoot. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2936 - Utility method to determine if the the provided UIViewRoot has metadata. The default implementation will return true if the provided UIViewRoot has a facet named UIViewRoot#METADATA_FACET_NAME and that facet has children. It will return false otherwise. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - JSF:JAVADOC:2937 - Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so. A null return from this method will cause the TagHandlerDelegate for instance to create the component instead. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - JSF:JAVADOC:2938 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns null. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - - - - - - - - - - - - JSF:JAVADOC:70 - Return the default ActionListener to be registered for all jakarta.faces.component.ActionSource components in this application. If not explicitly set, a default implementation must be provided that performs the functions as specified in the section titled "ActionListener Property" in the chapter titled "Application Integration" of the spec prose document. Note that the specification for the default ActionListener contiues to call for the use of a deprecated property (action) and class (MethodBinding). Unfortunately, this is necessary because the default ActionListener must continue to work with components that do not implement jakarta.faces.component.ActionSource2, and only implement jakarta.faces.component.ActionSource. - jakarta.faces.application - Application - - - - - - - - JSF:JAVADOC:1103 - if name is null - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2655 - - jakarta.faces.view.facelets - FaceletFactory - - - - - JSF:JAVADOC:2656 - Return a Facelet instance as specified by the file at the passed URI. - jakarta.faces.view.facelets - FaceletFactory - - - java.lang.String - - - - - - JSF:JAVADOC:2657 - - jakarta.faces.view.facelets - FaceletFactory - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:2658 - - jakarta.faces.view.facelets - FaceletFactory - - - java.net.URL - - - - - - JSF:JAVADOC:2659 - - jakarta.faces.view.facelets - FaceletFactory - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:2660 - - jakarta.faces.view.facelets - FaceletFactory - - - java.lang.String - - - - - - JSF:JAVADOC:2661 - - jakarta.faces.view.facelets - FaceletFactory - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:2662 - - jakarta.faces.view.facelets - FaceletFactory - - - java.net.URL - - - - - - JSF:JAVADOC:2663 - - jakarta.faces.view.facelets - FaceletFactory - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:2664 - - jakarta.faces.view.facelets - FaceletFactory - - - - - JSF:JAVADOC:2666 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - jakarta.faces.view.facelets.FaceletFactory - - - - - - JSF:JAVADOC:2667 - Return a Facelet instance as specified by the file at the passed URI. - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2668 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:2669 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.net.URL - - - - - - JSF:JAVADOC:2670 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:2671 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2672 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:2673 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.net.URL - - - - - - JSF:JAVADOC:2674 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:2675 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - - - JSF:JAVADOC:2677 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - - - JSF:JAVADOC:2697 - Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so. A null return from this method will cause the TagHandlerDelegate for instance to create the component instead. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:2698 - - jakarta.faces.view.facelets - FaceletFactory - - - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:2699 - - jakarta.faces.view.facelets - FaceletFactoryWrapper - - - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:2722 - Create an instance of Resource given the argument resourceName, which may contain "/" characters. The jakarta.faces.view.ViewDeclarationLanguage calls this method when it needs to load a view from a persistent store, such as a filesystem. This method is functionality equivalent to #createResource(java.lang.String), but all callsites that need to load VDL views must use this method so that classes that want to decorate the ResourceHandler in order to only affect the loading of views may do so without affecting the processing of other kinds of resources, such as scripts and stylesheets. A jakarta.faces.context.FacesContext must be present before calling this method. To preserve compatibility with prior revisions of the specification, a default implementation must be provided that calls #createResource(java.lang.String). - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2723 - if resourceName is null. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2724 - The default behavior of this method is to call ResourceHandler#createViewResource(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2737 - Create (if needed) and return a Flash instance for this web application. - jakarta.faces.context - FlashFactory - - - jakarta.faces.context.ExternalContext - boolean - - - - - - JSF:JAVADOC:2807 - Return a data structure containing the attributes of this component that should be rendered directly to the output without interpretation by the jakarta.faces.render.Renderer. This method must never return . The returned implementation must support all of the standard and optional methods, plus support the following additional requirements. The implementation must implement . Any attempt to add a key or value must throw a . Any attempt to add a key that is not a must throw an . - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2811 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first before rendering those URLs. The caller must call #enableClientWindowUrlQueryParameter(jakarta.faces.context.FacesContext) from a finally block after rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2812 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first after rendering those URLs. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2813 - Methods that append the ClientWindow to generated URLs must call this method to see if they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2878 - If there is a local value, return it, otherwise return the result of calling super.getVaue(). - jakarta.faces.component - UIInput - - - - - - - - JSF:JAVADOC:2939 - - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2940 - Obtain the current jakarta.faces.lifecycle.ClientWindow from the jakarta.faces.context.ExternalContext. Get the window's id and append "_" and the return from #getId. Return the result. - jakarta.faces.flow - Flow - - - jakarta.faces.lifecycle.ClientWindow - - - - - - JSF:JAVADOC:2941 - Return the immutable application unique identifier for the document in which the argument flow is defined. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2942 - Return the MethodExpression that must be called by the runtime as the last thing that happens before exiting this flow. Any FlowScoped beans declared for this flow must remain in scope until after control returns from the method referenced by this MethodExpression. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2943 - Return the FlowCallNode that represents calling the targetFlow from this flow, or null if targetFlow cannot be reached from this flow. - jakarta.faces.flow - Flow - - - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:2944 - Return an immutable data structure containing all the flow call nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2945 - Return the immutable id for this Flow. This must be unique within the defining document (such as an Application Configuration Resources file), but need not be unique within the entire application. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2946 - Return an immutable data structure containing the inbound parameters that have been declared for this flow. See FlowHandler#transition for the specification of how these parameters are used. Inbound parameters are associated with a specific flow instance, while outbound parameters are associated with a FlowCallNode that causes the transition to a new flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2947 - Return the MethodExpression that must be called by the runtime immediately after activating any FlowScoped beans declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2948 - Return an immutable data structure containing all the method call nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2949 - - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2950 - - jakarta.faces.flow - Flow - - - java.lang.String - - - - - - JSF:JAVADOC:2951 - Return an immutable data structure containing all of the return nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2952 - Return the immutable id for the default node that should be activated when this flow is entered. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2953 - Return an immutable data structure containing all of the switch nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2954 - Return an immutable data structure containing all of the view nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:2955 - - jakarta.faces.flow - FlowCallNode - - - - - JSF:JAVADOC:2956 - - jakarta.faces.flow - FlowCallNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2957 - - jakarta.faces.flow - FlowCallNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2958 - - jakarta.faces.flow - FlowCallNode - - - - - JSF:JAVADOC:2959 - Add the argument Flow to the collection of Flows known to the current application. The implementation must be thread safe. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:2960 - if any of the parameters are null - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2961 - if there is already a flow with the same id as the argument Flow within the scope of the definingDocument. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - java.lang.IllegalStateException - - - - - JSF:JAVADOC:2962 - if the id of the flow to add is null or the empty string. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - java.lang.IllegalArgumentException - - - - - JSF:JAVADOC:2963 - if the definingDocumentId of the toAdd is null. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - java.lang.IllegalArgumentException - - - - - JSF:JAVADOC:2964 - Allow for flow transitions in the case of components rendered by the renderers from component-family jakarta.faces.OutcomeTarget. These transitions must happen at the front of the request processing lifecycle due to the HTTP GET based nature of such components. Therefore, this method is called from jakarta.faces.lifecycle.Lifecycle#attachWindow. Let flowId be the value in the request parameter map for the parameter whose name is given by the value of #FLOW_ID_REQUEST_PARAM_NAME. Let toFlowDocumentId be the value in the request parameter map for the paramater whose name is given by the value of #TO_FLOW_DOCUMENT_ID_REQUEST_PARAM_NAME. If toFlowDocumentId is null, take no action and return. Otherwise, let sourceFlow be the return from #getCurrentFlow(jakarta.faces.context.FacesContext). A null value indicates there is no current flow, which will be the case if this navigation is trying to enter a flow. If flowId is not null and toFlowDocumentId is not equal to the value of #NULL_FLOW, let targetFlow be the result of calling #getFlow(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), passing toFlowDocumentId and flowId as the last two arguments, respectively. If the result is non-null, let flowCallNode be the return from calling Flow#getFlowCall on the sourceFlow, passing targetFlow as the argument. Otherwise, targetFlow and flowCallNode must remain null, indicating that this is a flow return. Call FacesContext#getViewRoot() and let toViewId be the the return from calling jakarta.faces.component.UIViewRoot#getViewId on it. Call, #transition, passing the arguments gathered in the preceding algorithm. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2965 - if context is null. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2966 - - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:2967 - Return the currently active Flow for the argument FacesContext, or null if no flow is active. A Flow must always be associated with exactly one jakarta.faces.lifecycle.ClientWindow, but a ClientWindow may have multiple Flows. If #setReturnMode had been called with true as the argument before invoking this method, return the preceding flow on the stack instead of the actual current flow, or null if there is no preceding flow. Otherwise, return the current flow. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2968 - if any of the parameters are null - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2969 - Convenience overload that calls FacesContext#getCurrentInstance() and then calls through to #getCurrentFlow(jakarta.faces.context.FacesContext). - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:2970 - Return the Map that backs the #{flowScope} EL implicit object or null if no flow is currently active. - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:2971 - Return the Flow whose id is equivalent to the argument id, within the scope of the argument definingDocument. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2972 - if any of the parameters are null - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2973 - Return the last displayed viewId for the current flow, as returned by #getCurrentFlow(jakarta.faces.context.FacesContext), or null if there is no current flow. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2974 - if context is null - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2975 - Return true if and only if the flow referenced by the argument definingDocument and id is currently active. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2976 - if any of the parameters are null - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2977 - Enable the correct handling of navigation when processing a return node. The default jakarta.faces.application.NavigationHandler specification requires calling this method with true before processing the navigation rules for the flow return, and calling this method with false, from a finally block, immediately afterward. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - boolean - - - - - - JSF:JAVADOC:2978 - if context is null. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - boolean - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2979 - Perform a transition in the flow graph for the current user's jakarta.faces.lifecycle.ClientWindow. Obtain references to the Flow instances corresponding to the origin and destination arguments. If the origin Flow is equal to the destination Flow, take no action and return null. Otherwise, if the outboundCallNode argument is non-null save aside the outbound parameters. For discussion evaluatedParams is a data structure that stores the evaluated values of any outbound parameters. It is necessary to evaluate these values before popping any flow scopes because the values may refer to scoped instances that need to be passed to the target flow, but will not be available once the new scope is activated. Save aside the outbound parameters using the following algorithm. If the outboundParameters property of outboundCallNode is non-null and not empty, and the inboundParameters property of the target flow is non-null and not empty, for each entry in the outbound parameters whose name matches an entry in the inbound parameters, evaluate the value of the parameter, and put the evaluated value into evaluatedParams under the corresponding name. Otherwise, consider evaluatedParams to be empty. If the destination Flow is a sub-flow of the origin Flow push the destination Flow onto the flow data structure and return the destination Flow. Otherwise, pop the current Flow from the flow data structure. If the destination Flow is non-null, make the destination Flow the current flow, pushing it onto the data structure. If evaluatedParams is not empty, for each entry, find the corresponding parameter in the target flow's inbound parameters and call its setValue method, passing the value from evaluatedParams. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - jakarta.faces.flow.Flow - jakarta.faces.flow.FlowCallNode - java.lang.String - - - - - - JSF:JAVADOC:2980 - if context or toViewId is null. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - jakarta.faces.flow.Flow - jakarta.faces.flow.FlowCallNode - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2981 - Create the singleton instance of FlowHandler. - jakarta.faces.flow - FlowHandlerFactory - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2982 - - jakarta.faces.flow - FlowHandlerFactory - - - - - JSF:JAVADOC:2983 - Create the singleton instance of FlowHandler. - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2984 - - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - - - JSF:JAVADOC:2985 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - - - JSF:JAVADOC:2986 - - jakarta.faces.flow - FlowNode - - - - - JSF:JAVADOC:2987 - - jakarta.faces.flow - FlowNode - - - - - JSF:JAVADOC:2988 - If not empty, declare the defining document id within which the Flow referenced by #value is unique. If empty the, the runtime assumes that all flow ids are unique within the scope of the application. - jakarta.faces.flow - FlowScoped - - - - - JSF:JAVADOC:2989 - Must be equivalent to the Flow#getId of a defined flow for this application. - jakarta.faces.flow - FlowScoped - - - - - JSF:JAVADOC:2990 - Return the MethodExpression to be invoked to when control passes to this node. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:2991 - Return the outcome to be used in the event of a null return from the method. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:2992 - Return the parameters to be passed to the method. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:2993 - - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:2994 - Return the name of the parameter - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:2995 - Return a ValueExpression for the value of the parameter. Depending on the context, this expression may only ever be evaluated in a "get" operation. - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:2996 - - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:2997 - Return the fromOutcome to be used when control passes to this return node. - jakarta.faces.flow - ReturnNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2998 - if context is null. - jakarta.faces.flow - ReturnNode - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - JSF:JAVADOC:2999 - - jakarta.faces.flow - ReturnNode - - - - - JSF:JAVADOC:3000 - Return true if this case should be taken, false otherwise. - jakarta.faces.flow - SwitchCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3001 - Return the outcome to be used if #getCondition return true. - jakarta.faces.flow - SwitchCase - - - - - JSF:JAVADOC:3002 - - jakarta.faces.flow - SwitchCase - - - - - JSF:JAVADOC:3003 - Return the cases in this switch. - jakarta.faces.flow - SwitchNode - - - - - JSF:JAVADOC:3004 - Return the default outcome in this switch. - jakarta.faces.flow - SwitchNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3005 - - jakarta.faces.flow - SwitchNode - - - - - JSF:JAVADOC:3006 - Return the immutable VDL document id for this view node. This is normally the path to the VDL page that defines this view node. This must be unique within the flow. - jakarta.faces.flow - ViewNode - - - - - JSF:JAVADOC:3007 - - jakarta.faces.flow - ViewNode - - - - - JSF:JAVADOC:3008 - A MethodExpression that will be invoked when the flow is exited. - jakarta.faces.flow.builder - FlowBuilder - - - MethodExpression - - - - - - JSF:JAVADOC:3009 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - MethodExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3010 - - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:3011 - Define a flow call node. This node will cause the specified flow to be called, passing parameters if necessary. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3012 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3013 - Called as the last step in flow definition, this method must perform any implementation specific initialization and return the built Flow. If called more than one time during a given flow building process, the second and subsequent invocations must take no action and return the built flow. - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:3014 - if the #id method had not been called prior to this method being called. - jakarta.faces.flow.builder - FlowBuilder - - java.lang.IllegalStateException - - - - - JSF:JAVADOC:3015 - Set the defining document id and flow id of this flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:3016 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3017 - A parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - ValueExpression - - - - - - JSF:JAVADOC:3018 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3019 - A MethodExpression that will be invoked when the flow is entered. - jakarta.faces.flow.builder - FlowBuilder - - - MethodExpression - - - - - - JSF:JAVADOC:3020 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - MethodExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3021 - Define a method call node. This node will cause the specified method to be invoked, passing parameters if necessary. The return from the method is used as the outcome for where to go next in the flow. If the method is a void method, the default outcome is used. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3022 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3023 - Define a particular combination of conditions that must match for this case to be executed, and the view id of the component tree that should be selected next. - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:3024 - Define a return node. This node will cause the specified outcome to be returned to the calling flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3025 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3026 - Define a particular list of cases that will be inspected in the order they are defined to determine where to go next in the flow graph. If none of the cases match, the outcome from the default case is chosen. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3027 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3028 - Define a view node in a flow graph. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:3029 - if any of the parameters are null - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3030 - - jakarta.faces.flow.builder - FlowCallBuilder - - - - - JSF:JAVADOC:3031 - Define the flow reference of the called flow. - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:3032 - if any of the parameters are null - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3033 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - FlowCallBuilder - - - - - JSF:JAVADOC:3034 - Define an outbound parameter for the flow call. - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - ValueExpression - - - - - - JSF:JAVADOC:3035 - if any of the parameters are null - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3036 - If the method is a void method, or the method returns null, this can be used to specify what value should be passed to runtime when the method returns. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3037 - if any of the parameters are null - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3038 - If the method is a void method, or the method returns null, this can be used to specify what value should be passed to runtime when the method returns. - jakarta.faces.flow.builder - MethodCallBuilder - - - ValueExpression - - - - - - JSF:JAVADOC:3039 - if any of the parameters are null - jakarta.faces.flow.builder - MethodCallBuilder - - - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3040 - Set the method expression of this method call node. The method signature of the argument methodExpression must match the number and type of the parameters passed in the #parameters method. - jakarta.faces.flow.builder - MethodCallBuilder - - - MethodExpression - - - - - - JSF:JAVADOC:3041 - if any of the parameters are null - jakarta.faces.flow.builder - MethodCallBuilder - - - MethodExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3042 - Set the method expression of this method call node. The method signature of the argument methodExpression must match the number and type of the parameters passed in the #parameters method. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - java.lang.Class[] - - - - - - JSF:JAVADOC:3043 - if any of the parameters are null - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - java.lang.Class[] - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3044 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - MethodCallBuilder - - - - - JSF:JAVADOC:3045 - - jakarta.faces.flow.builder - MethodCallBuilder - - - - - JSF:JAVADOC:3046 - Set the parameters of the method call node. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.util.List - - - - - - JSF:JAVADOC:3047 - if any of the parameters are null - jakarta.faces.flow.builder - MethodCallBuilder - - - java.util.List - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3048 - Set the if of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3049 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3050 - Set the if of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - ValueExpression - - - - - - JSF:JAVADOC:3051 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3052 - Set the from-action of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3053 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3054 - Set the from-outcome of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3055 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3056 - Set the from-view-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3057 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3058 - - jakarta.faces.flow.builder - NavigationCaseBuilder - - - - - JSF:JAVADOC:3059 - Create a redirect within this navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - - - JSF:JAVADOC:3060 - Set the to-flow-document-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3061 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3062 - Set the to-view-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3063 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3064 - Indicates the current redirect should include view parameters. - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - - - JSF:JAVADOC:3065 - - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - - - JSF:JAVADOC:3066 - Add a parameter to the redirect. - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:3067 - if any of the parameters are null - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3068 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - NodeBuilder - - - - - JSF:JAVADOC:3069 - Set the outcome of the current return node. - jakarta.faces.flow.builder - ReturnBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3070 - if any of the parameters are null - jakarta.faces.flow.builder - ReturnBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3071 - Set the outcome of the current return node. - jakarta.faces.flow.builder - ReturnBuilder - - - ValueExpression - - - - - - JSF:JAVADOC:3072 - if any of the parameters are null - jakarta.faces.flow.builder - ReturnBuilder - - - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3073 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - ReturnBuilder - - - - - JSF:JAVADOC:3074 - - jakarta.faces.flow.builder - ReturnBuilder - - - - - JSF:JAVADOC:3075 - Set the default outcome of the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3076 - if any of the parameters are null - jakarta.faces.flow.builder - SwitchBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3077 - Set the default outcome of the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - ValueExpression - - - - - - JSF:JAVADOC:3078 - if any of the parameters are null - jakarta.faces.flow.builder - SwitchBuilder - - - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3079 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:3080 - - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:3081 - Create a switch case in the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:3082 - Set the if in the previously created switch case. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - ValueExpression - - - - - - JSF:JAVADOC:3083 - if any of the parameters are null - jakarta.faces.flow.builder - SwitchCaseBuilder - - - ValueExpression - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3084 - Set the outcome in the previously created switch case. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:3085 - if any of the parameters are null - jakarta.faces.flow.builder - SwitchCaseBuilder - - - java.lang.String - - java.lang.NullPointerException - - - - - JSF:JAVADOC:3086 - Create a new case in the current switch. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - - - JSF:JAVADOC:3087 - - jakarta.faces.flow.builder - SwitchCaseBuilder - - - - - JSF:JAVADOC:3088 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - ViewBuilder - - - - - JSF:JAVADOC:3089 - - jakarta.faces.flow.builder - ViewBuilder - - - - - diff --git a/internal/docs/jsf/JSFJavadocAssertions_2.3.xml b/internal/docs/jsf/JSFJavadocAssertions_2.3.xml deleted file mode 100644 index 7cafe39f9c..0000000000 --- a/internal/docs/jsf/JSFJavadocAssertions_2.3.xml +++ /dev/null @@ -1,28764 +0,0 @@ - - - - - - - -2219 -1 -JSF -JSF 2.3 -Java Server Faces -2.3 - - -1 - - Construct a new exception with no detail message or root cause. - - -jakarta.faces -FacesException - - - -2 - - Construct a new exception with the specified detail message and no root cause. - - -jakarta.faces -FacesException - - -java.lang.String - - - - -3 - - Construct a new exception with the specified root cause. - The detail message will be set to (cause == null ? null : cause.toString() - -jakarta.faces -FacesException - - -java.lang.Throwable - - - - -4 - - Construct a new exception with the specified detail message and root cause. - - -jakarta.faces -FacesException - - -java.lang.String -java.lang.Throwable - - - - -5 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces -FacesException - - - -6 - - Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class, based on the discovery algorithm described in the class description. - - -jakarta.faces -FactoryFinder - - -java.lang.String - - - - -7 -if the web application class loader cannot be identified -jakarta.faces -FactoryFinder - - -java.lang.String - -jakarta.faces.FacesException - - - -8 -if factoryName does not identify a standard JavaServer Faces factory name -jakarta.faces -FactoryFinder - - -java.lang.String - -java.lang.IllegalArgumentException - - - -9 -if there is no configured factory implementation class for the specified factory name -jakarta.faces -FactoryFinder - - -java.lang.String - -java.lang.IllegalStateException - - - -10 -if factoryname is null -jakarta.faces -FactoryFinder - - -java.lang.String - -java.lang.NullPointerException - - - -11 - - Release any references to factory instances associated with the class loader for the calling web application. - This method should be called as apart of web application shutdown in a container where the JavaServer Faces API classes are part of the container itself, rather than being included inside the web application. - -jakarta.faces -FactoryFinder - - - -12 -if the web application class loader cannot be identified -jakarta.faces -FactoryFinder - -jakarta.faces.FacesException - - - -13 - -jakarta.faces.application -Action - - - -14 - - - Perform the task that is encapsulated in this Action instance, and return a String value that is a logical description of the outcome of performing that task. - Exceptions encountered during the performance of the task should be encapsulated into appropriate return values. - -jakarta.faces.application -Action - - - -15 - -jakarta.faces.application -Application - - - -16 - - - - Return the ActionListener that will be the default ActionListener to be registered with relevant components during the Reconstitute Component Tree phase of the request processing lifecycle. - - The default implementation will perform the following functions: The getPhaseId() method of this listener instance must return PhaseId.INVOKE_APPLICATION. If the source component has a non-null action property, return that value. If the source component has a non-null actionRef property, evaluate this value reference to retrieve the corresponding object. If there is no such corresponding object, or if this object does not implement Action, throw an IllegalArgumentException. Call the invoke() method of the returned object, and return the return value from that method call. - -jakarta.faces.application -Application - - - -17 - - - - Return the NavigationHandler instance that will be passed the outcome returned by any invoked Action for this web application. - - The default implementation must provide the behavior described in the NavigationHandler class description. - -jakarta.faces.application -Application - - - -18 - - - Return the PropertyResolver instance that will be utilized to resolve action and valus references. - - The default implementation must provide the behavior described in the PropertyResolver class description. - -jakarta.faces.application -Application - - - -19 - - - Return a ValueBinding for the specified action or value reference expression, which may be used to manipulate the corresponding property value later. - - - - - - - - - The returned ValueBinding instance must utilize the PropertyResolver and VariableResolver instances registered with this Application instance at the time that the ValueBinding instance was initially created. For maximum performance, implementations of Application may, but are not required to, cache ValueBinding instances in order to avoid repeated parsing of the reference expression. However, under no circumstances may a particular ValueBinding instance be shared across multiple web applications. - -jakarta.faces.application -Application - - -java.lang.String - - - - -20 -if the specified ref has invalid syntax -jakarta.faces.application -Application - - -java.lang.String - -jakarta.faces.el.ReferenceSyntaxException - - - -21 -if ref is null -jakarta.faces.application -Application - - -java.lang.String - -java.lang.NullPointerException - - - -22 - - - Return the VariableResolver instance that will be utilized to resolve action and value references. - - The default implementation must provide the behavior described in the VariableResolver class description. - -jakarta.faces.application -Application - - - -23 - - - Replace the default ActionListener that will be registered with relevant components during the Reconstitute Component Tree phase of the requset processing lifecycle. - This listener must return PhaseId.INVOKE_APPLICATION from its getPhaseId() method. - -jakarta.faces.application -Application - - -jakarta.faces.event.ActionListener - - - - -24 -if the specified listener does not return PhaseId.INVOKE_APPLICATION from its getPhaseId() method -jakarta.faces.application -Application - - -jakarta.faces.event.ActionListener - -java.lang.IllegalArgumentException - - - -25 -if listener is null -jakarta.faces.application -Application - - -jakarta.faces.event.ActionListener - -java.lang.NullPointerException - - - -26 - - - - Set the NavigationHandler instance that will be passed the outcome returned by any invoked Action for this web application. - - -jakarta.faces.application -Application - - -jakarta.faces.application.NavigationHandler - - - - -27 -if handler is null -jakarta.faces.application -Application - - -jakarta.faces.application.NavigationHandler - -java.lang.NullPointerException - - - -28 - - - Set the PropertyResolver instance that will be utilized to resolve action and value references. - - -jakarta.faces.application -Application - - -jakarta.faces.el.PropertyResolver - - - - -29 -if resolver is null -jakarta.faces.application -Application - - -jakarta.faces.el.PropertyResolver - -java.lang.NullPointerException - - - -30 - - - Set the VariableResolver instance that will be utilized to resolve action and value references. - - -jakarta.faces.application -Application - - -jakarta.faces.el.VariableResolver - - - - -31 -if resolver is null -jakarta.faces.application -Application - - -jakarta.faces.el.VariableResolver - -java.lang.NullPointerException - - - -32 - -jakarta.faces.application -ApplicationFactory - - - -33 - - - Create (if needed) and return an Application instance for this web application. - - -jakarta.faces.application -ApplicationFactory - - - -34 - - - Replace the Application instance that will be returned for this web application. - - -jakarta.faces.application -ApplicationFactory - - -jakarta.faces.application.Application - - - - -35 - - - - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed Action. - - -jakarta.faces.application -NavigationHandler - - -jakarta.faces.context.FacesContext -java.lang.String - - - - -36 -if context or outcome is null -jakarta.faces.application -NavigationHandler - - -jakarta.faces.context.FacesContext -java.lang.String - -java.lang.NullPointerException - - - -37 - -jakarta.faces.application -NavigationHandler - - - -38 - -jakarta.faces.component -AttributeDescriptor - - - -39 - - Return a brief description of this attribute, useful when rendering help text in a tool, localized for the default Locale for this instance of the Java Virtual Machine. - - -jakarta.faces.component -AttributeDescriptor - - - -40 - - Return a brief description of this attribute, useful when rendering help text in a tool, localized for the specified Locale. - - -jakarta.faces.component -AttributeDescriptor - - -java.util.Locale - - - - -41 -if locale is null -jakarta.faces.component -AttributeDescriptor - - -java.util.Locale - -java.lang.NullPointerException - - - -42 - - Return a short displayable name of this attribute, useful in constructing the user interface of a tool, localized for the default Locale for this instance of the Java Virtual Machine. - - -jakarta.faces.component -AttributeDescriptor - - - -43 - - Return a short displayable name of this attribute, useful in constructing the user interface of a tool, localized for the specified Locale. - - -jakarta.faces.component -AttributeDescriptor - - -java.util.Locale - - - - -44 -if locale is null -jakarta.faces.component -AttributeDescriptor - - -java.util.Locale - -java.lang.NullPointerException - - - -45 - - Return the attribute name of the attribute described by this AttributeDescriptor. - - -jakarta.faces.component -AttributeDescriptor - - - -46 - - Return the Java class representing the data type of the legal values for this attribute. - - -jakarta.faces.component -AttributeDescriptor - - - -47 - - - Add the specified UIComponent to the namespace of this naming container. - - -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - - - - -48 -if the specified component does not have a componentId -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -49 -if the component identifier of the specified component is not unique within the namespace of this naming container -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalStateException - - - -50 -if component is null -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -51 - - - Find and return a UIComponent in this namespace, if it is present; otherwise return null. - - - - If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - -jakarta.faces.component -NamingContainer - - -java.lang.String - - - - -52 -if name is malformed -jakarta.faces.component -NamingContainer - - -java.lang.String - -java.lang.IllegalArgumentException - - - -53 -if name is null -jakarta.faces.component -NamingContainer - - -java.lang.String - -java.lang.NullPointerException - - - -54 - - Generate an identifier for a component, suitable for communication to a client. - The identifier returned from this method must be unique within this namespace. - -jakarta.faces.component -NamingContainer - - - -55 - - - Remove the specified UIComponent from the namespace of this naming container, if it is present. - - -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - - - - -56 -if the specified component does not have a componentId -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -57 -if component is null -jakarta.faces.component -NamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -58 - - - Add the specified UIComponent to the namespace of this naming container. - - -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - - - - -59 -if the specified component does not have a componentId -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -60 -if the component identifier of the specified component is not unique within the namespace of this naming container -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - -java.lang.IllegalStateException - - - -61 -if component is null -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -62 - - - Find and return a UIComponent in this namespace, if it is present; otherwise return null. - - - - If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - -jakarta.faces.component -NamingContainerSupport - - -java.lang.String - - - - -63 -if name is malformed -jakarta.faces.component -NamingContainerSupport - - -java.lang.String - -java.lang.IllegalArgumentException - - - -64 -if name is null -jakarta.faces.component -NamingContainerSupport - - -java.lang.String - -java.lang.NullPointerException - - - -65 - - Generate an identifier for a component, suitable for communication to a client. - The identifier returned from this method must be unique within this namespace. - -jakarta.faces.component -NamingContainerSupport - - - -66 - -jakarta.faces.component -NamingContainerSupport - - - -67 - - - Remove the specified UIComponent from the namespace of this naming container, if it is present. - - -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - - - - -68 -if the specified component does not have a componentId -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -69 -if component is null -jakarta.faces.component -NamingContainerSupport - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -70 - - Return a description of this item, for use in development tools. - -jakarta.faces.component -SelectItem - - - -71 - - Return the label of this item, to be rendered visibly for the user. - -jakarta.faces.component -SelectItem - - - -72 - - Return the value of this item, to be returned as a request parameter if this item is selected by the user. - -jakarta.faces.component -SelectItem - - - -73 - - Construct a UISelectItem instance with the specified property values. - - -jakarta.faces.component -SelectItem - - -java.lang.Object -java.lang.String -java.lang.String - - - - -74 - - - - Add a new ActionListener to the set of listeners interested in being notified when ActionEvents occur. - - -jakarta.faces.component -UICommand - - -jakarta.faces.event.ActionListener - - - - -75 -if listener is null -jakarta.faces.component -UICommand - - -jakarta.faces.event.ActionListener - -java.lang.NullPointerException - - - -76 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UICommand - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -77 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UICommand - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -78 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UICommand - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -79 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UICommand - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -80 -if event or phaseId is null -jakarta.faces.component -UICommand - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -81 - - - Queue an ActionEvent for processing during the next event processing cycle. - - -jakarta.faces.component -UICommand - - -jakarta.faces.context.FacesContext - - - - -82 - - - Return the literal action outcome value to be returned to the jakarta.faces.event.ActionListener processing application level events for this application. - - -jakarta.faces.component -UICommand - - - -83 - - - Return the action reference expression pointing at the jakarta.faces.application.Action to be invoked, if this component is activated by the user, during Invoke Application phase of the request processing lifecycle. - - -jakarta.faces.component -UICommand - - - -84 - - - Return the command name for this UICommand. - - -jakarta.faces.component -UICommand - - - -85 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UICommand - - - -86 - - - - Remove an existing ActionListener (if any) from the set of listeners interested in being notified when ActionEvents occur. - - -jakarta.faces.component -UICommand - - -jakarta.faces.event.ActionListener - - - - -87 -if listener is null -jakarta.faces.component -UICommand - - -jakarta.faces.event.ActionListener - -java.lang.NullPointerException - - - -88 - - Set the literal action outcome value for this component. - - -jakarta.faces.component -UICommand - - -java.lang.String - - - - -89 - - - Set the action reference expression pointing at the jakarta.faces.application.Action to be invoked, if this component is activated by the user, during Invoke Application phase of the request processing lifecycle. - - -jakarta.faces.component -UICommand - - -java.lang.String - - - - -90 - - - Set the command name for this UICommand. - - -jakarta.faces.component -UICommand - - -java.lang.String - - - - -91 - - - Create a new UICommand instance with default property values. - - -jakarta.faces.component -UICommand - - - -92 - - Override the default behavior and perform no model update. - - -jakarta.faces.component -UICommand - - -jakarta.faces.context.FacesContext - - - - -93 -if the modelReference property has invalid syntax for an expression -jakarta.faces.component -UICommand - - -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -94 -if context is null -jakarta.faces.component -UICommand - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -95 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -96 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -97 -if component is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -98 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -99 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -100 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -101 -if component is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -102 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -103 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -104 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -105 -if validator is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -106 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -107 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -108 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -109 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -110 -if component is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -111 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -112 -if an input/output error occurs during decoding -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -113 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -114 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -115 -if an input/output error occurs while rendering -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -116 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -117 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -118 -if an input/output error occurs while rendering -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -119 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -120 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -121 -if an input/output error occurs while rendering -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -122 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -123 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -124 -if expr is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -125 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -126 -if name is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -127 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -128 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int - - - - -129 -if index is out of range ((index = size())) -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -130 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -131 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -132 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -133 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -134 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -135 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -136 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -137 -if name is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -138 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -139 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -140 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -141 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -142 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -143 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -144 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -145 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -146 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - - -147 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -148 -if an input/output error occurs during decoding -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -149 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -150 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -151 -if an input/output error occurs during processing -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -152 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -153 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -154 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -155 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -156 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -157 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -158 -if an input/output error occurs during processing -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -159 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -160 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int - - - - -161 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -162 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -163 -if component is not a child of this component -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -164 -if component is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -165 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -166 -if name is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -167 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -168 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -169 -if name represents a read-only property of this component -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -170 -if name is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -171 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -172 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -173 -if componentId is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -174 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -175 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -176 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -177 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -178 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -179 - - Set the current validity state of this component. - - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -180 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -181 -if context is null -jakarta.faces.component -UICommand.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -182 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - - - - -183 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -184 -if component is null -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -185 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIComponent - - -int -jakarta.faces.component.UIComponent - - - - -186 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponent - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -187 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIComponent - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -188 -if component is null -jakarta.faces.component -UIComponent - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -189 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIComponent - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -190 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIComponent - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -191 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIComponent - - -jakarta.faces.validator.Validator - - - - -192 -if validator is null -jakarta.faces.component -UIComponent - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -193 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIComponent - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -194 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIComponent - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -195 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIComponent - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -196 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIComponent - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -197 -if event or phaseId is null -jakarta.faces.component -UIComponent - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -198 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIComponent - - - -199 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIComponent - - - -200 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIComponent - - - -201 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - - - - -202 -if component is null -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -203 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -204 -if an input/output error occurs during decoding -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -205 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -206 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -207 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -208 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -209 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -210 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -211 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -212 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -213 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -214 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -215 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -216 -if expr is null -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.NullPointerException - - - -217 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -218 -if name is null -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.NullPointerException - - - -219 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIComponent - - - -220 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIComponent - - -int - - - - -221 -if index is out of range ((index = size())) -jakarta.faces.component -UIComponent - - -int - -java.lang.IndexOutOfBoundsException - - - -222 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIComponent - - - -223 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIComponent - - - -224 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -225 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -226 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIComponent - - - -227 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIComponent - - - -228 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIComponent - - - -229 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -230 -if name is null -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.NullPointerException - - - -231 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIComponent - - - -232 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIComponent - - - -233 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIComponent - - - -234 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIComponent - - - -235 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIComponent - - - -236 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIComponent - - - -237 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIComponent - - - -238 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIComponent - - - -239 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIComponent - - - -240 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -241 -if an input/output error occurs during decoding -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -242 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -243 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -244 -if an input/output error occurs during processing -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -245 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -246 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -247 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -248 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -249 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -250 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -251 -if an input/output error occurs during processing -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -252 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -253 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIComponent - - -int - - - - -254 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIComponent - - -int - -java.lang.IndexOutOfBoundsException - - - -255 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - - - - -256 -if component is not a child of this component -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -257 -if component is null -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -258 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -259 -if name is null -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.NullPointerException - - - -260 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIComponent - - -jakarta.faces.validator.Validator - - - - -261 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIComponent - - -java.lang.String -java.lang.Object - - - - -262 -if name represents a read-only property of this component -jakarta.faces.component -UIComponent - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -263 -if name is null -jakarta.faces.component -UIComponent - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -264 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -265 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.IllegalArgumentException - - - -266 -if componentId is null -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.NullPointerException - - - -267 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponent - - -java.lang.String - -java.lang.IllegalArgumentException - - - -268 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -269 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIComponent - - -jakarta.faces.component.UIComponent - - - - -270 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIComponent - - -boolean - - - - -271 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIComponent - - -java.lang.String - - - - -272 - - Set the current validity state of this component. - - -jakarta.faces.component -UIComponent - - -boolean - - - - -273 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -274 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -275 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - - - - -276 -if context is null -jakarta.faces.component -UIComponent - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -277 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - - - - -278 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -279 -if component is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -280 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIComponentBase - - -int -jakarta.faces.component.UIComponent - - - - -281 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponentBase - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -282 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIComponentBase - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -283 -if component is null -jakarta.faces.component -UIComponentBase - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -284 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIComponentBase - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -285 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIComponentBase - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -286 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.validator.Validator - - - - -287 -if validator is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -288 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -289 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIComponentBase - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -290 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIComponentBase - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -291 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIComponentBase - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -292 -if event or phaseId is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -293 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIComponentBase - - - -294 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIComponentBase - - - -295 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIComponentBase - - - -296 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - - - - -297 -if component is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -298 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -299 -if an input/output error occurs during decoding -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -300 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -301 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -302 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -303 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -304 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -305 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -306 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -307 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -308 -if an input/output error occurs while rendering -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -309 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -310 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -311 -if expr is null -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.NullPointerException - - - -312 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -313 -if name is null -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.NullPointerException - - - -314 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIComponentBase - - - -315 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIComponentBase - - -int - - - - -316 -if index is out of range ((index = size())) -jakarta.faces.component -UIComponentBase - - -int - -java.lang.IndexOutOfBoundsException - - - -317 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIComponentBase - - - -318 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIComponentBase - - - -319 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -320 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -321 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIComponentBase - - - -322 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIComponentBase - - - -323 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIComponentBase - - - -324 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -325 -if name is null -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.NullPointerException - - - -326 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIComponentBase - - - -327 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIComponentBase - - - -328 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIComponentBase - - - -329 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIComponentBase - - - -330 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIComponentBase - - - -331 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIComponentBase - - - -332 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIComponentBase - - - -333 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIComponentBase - - - -334 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIComponentBase - - - -335 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -336 -if an input/output error occurs during decoding -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -337 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -338 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -339 -if an input/output error occurs during processing -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -340 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -341 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -342 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -343 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -344 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -345 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -346 -if an input/output error occurs during processing -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -347 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -348 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIComponentBase - - -int - - - - -349 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIComponentBase - - -int - -java.lang.IndexOutOfBoundsException - - - -350 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - - - - -351 -if component is not a child of this component -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -352 -if component is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -353 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -354 -if name is null -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.NullPointerException - - - -355 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.validator.Validator - - - - -356 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIComponentBase - - -java.lang.String -java.lang.Object - - - - -357 -if name represents a read-only property of this component -jakarta.faces.component -UIComponentBase - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -358 -if name is null -jakarta.faces.component -UIComponentBase - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -359 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -360 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.IllegalArgumentException - - - -361 -if componentId is null -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.NullPointerException - - - -362 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIComponentBase - - -java.lang.String - -java.lang.IllegalArgumentException - - - -363 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -364 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.component.UIComponent - - - - -365 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIComponentBase - - -boolean - - - - -366 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIComponentBase - - -java.lang.String - - - - -367 - - Set the current validity state of this component. - - -jakarta.faces.component -UIComponentBase - - -boolean - - - - -368 - -jakarta.faces.component -UIComponentBase - - - -369 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -370 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -371 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - - - - -372 -if context is null -jakarta.faces.component -UIComponentBase - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -373 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIForm - - - -374 - - - Return the form name for this UIForm. - - -jakarta.faces.component -UIForm - - - -375 - - - Set the form name for this UIForm. - - -jakarta.faces.component -UIForm - - -java.lang.String - - - - -376 - - - Create a new UIForm instance with default property values. - - -jakarta.faces.component -UIForm - - - -377 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -378 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -379 -if component is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -380 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -381 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -382 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -383 -if component is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -384 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -385 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -386 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -387 -if validator is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -388 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -389 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -390 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -391 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -392 -if event or phaseId is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -393 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -394 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -395 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -396 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -397 -if component is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -398 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -399 -if an input/output error occurs during decoding -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -400 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -401 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -402 -if an input/output error occurs while rendering -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -403 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -404 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -405 -if an input/output error occurs while rendering -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -406 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -407 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -408 -if an input/output error occurs while rendering -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -409 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -410 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -411 -if expr is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -412 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -413 -if name is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -414 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -415 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int - - - - -416 -if index is out of range ((index = size())) -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -417 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -418 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -419 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -420 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -421 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -422 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -423 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -424 -if name is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -425 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -426 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -427 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -428 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -429 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -430 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -431 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -432 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -433 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - - -434 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -435 -if an input/output error occurs during decoding -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -436 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -437 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -438 -if an input/output error occurs during processing -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -439 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -440 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -441 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -442 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -443 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -444 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -445 -if an input/output error occurs during processing -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -446 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -447 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int - - - - -448 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -449 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -450 -if component is not a child of this component -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -451 -if component is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -452 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -453 -if name is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -454 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -455 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -456 -if name represents a read-only property of this component -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -457 -if name is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -458 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -459 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -460 -if componentId is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -461 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -462 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -463 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -464 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -465 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -466 - - Set the current validity state of this component. - - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -467 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -468 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -469 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -470 -if context is null -jakarta.faces.component -UIForm.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -471 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIGraphic - - - -472 - - - Return the image URL for this UIGraphic. - - -jakarta.faces.component -UIGraphic - - - -473 - - - Set the image URL for this UIGraphic. - - -jakarta.faces.component -UIGraphic - - -java.lang.String - - - - -474 - - - Create a new UIGraphic instance with default property values. - - -jakarta.faces.component -UIGraphic - - - -475 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -476 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -477 -if component is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -478 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -479 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -480 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -481 -if component is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -482 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -483 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -484 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -485 -if validator is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -486 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -487 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -488 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -489 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -490 -if event or phaseId is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -491 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -492 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -493 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -494 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -495 -if component is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -496 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -497 -if an input/output error occurs during decoding -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -498 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -499 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -500 -if an input/output error occurs while rendering -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -501 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -502 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -503 -if an input/output error occurs while rendering -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -504 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -505 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -506 -if an input/output error occurs while rendering -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -507 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -508 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -509 -if expr is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -510 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -511 -if name is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -512 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -513 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int - - - - -514 -if index is out of range ((index = size())) -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -515 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -516 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -517 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -518 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -519 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -520 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -521 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -522 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -523 -if name is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -524 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -525 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -526 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -527 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -528 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -529 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -530 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -531 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -532 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - - -533 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -534 -if an input/output error occurs during decoding -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -535 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -536 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -537 -if an input/output error occurs during processing -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -538 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -539 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -540 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -541 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -542 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -543 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -544 -if an input/output error occurs during processing -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -545 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -546 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int - - - - -547 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -548 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -549 -if component is not a child of this component -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -550 -if component is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -551 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -552 -if name is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -553 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -554 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -555 -if name represents a read-only property of this component -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -556 -if name is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -557 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -558 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -559 -if componentId is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -560 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -561 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -562 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -563 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -564 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -565 - - Set the current validity state of this component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -566 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -567 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -568 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -569 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -570 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -571 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -572 -if context is null -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -573 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - - -574 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - - -575 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -576 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIGraphic.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -577 - - - - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UIInput - - -jakarta.faces.event.ValueChangedListener - - - - -578 -if listener is null -jakarta.faces.component -UIInput - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -579 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIInput - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -580 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIInput - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -581 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIInput - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -582 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIInput - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -583 -if event or phaseId is null -jakarta.faces.component -UIInput - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -584 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIInput - - - -585 - - - Return the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UIInput - - - -586 - - - - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UIInput - - -jakarta.faces.event.ValueChangedListener - - - - -587 -if listener is null -jakarta.faces.component -UIInput - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -588 - - - Set the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UIInput - - -java.lang.Object - - - - -589 - - - Create a new UIInput instance with default property values. - - -jakarta.faces.component -UIInput - - - -590 - - - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. - - - - - - - - - If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - -jakarta.faces.component -UIInput - - -jakarta.faces.context.FacesContext - - - - -591 -if the valueRef property has invalid syntax for an expression -jakarta.faces.component -UIInput - - -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -592 -if context is null -jakarta.faces.component -UIInput - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -593 - - - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - - -jakarta.faces.component -UIInput - - -jakarta.faces.context.FacesContext - - - - -594 -if context is null -jakarta.faces.component -UIInput - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -595 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -596 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -597 -if component is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -598 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -599 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -600 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -601 -if component is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -602 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -603 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -604 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -605 -if validator is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -606 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -607 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -608 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -609 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -610 -if component is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -611 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -612 -if an input/output error occurs during decoding -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -613 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -614 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -615 -if an input/output error occurs while rendering -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -616 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -617 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -618 -if an input/output error occurs while rendering -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -619 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -620 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -621 -if an input/output error occurs while rendering -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -622 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -623 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -624 -if expr is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -625 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -626 -if name is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -627 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -628 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int - - - - -629 -if index is out of range ((index = size())) -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -630 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -631 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -632 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -633 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -634 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -635 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -636 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -637 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -638 -if name is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -639 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -640 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -641 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -642 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -643 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -644 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -645 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -646 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -647 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - - -648 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -649 -if an input/output error occurs during decoding -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -650 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -651 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -652 -if an input/output error occurs during processing -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -653 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -654 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -655 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -656 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -657 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -658 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -659 -if an input/output error occurs during processing -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -660 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -661 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int - - - - -662 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -663 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -664 -if component is not a child of this component -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -665 -if component is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -666 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -667 -if name is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -668 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -669 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -670 -if name represents a read-only property of this component -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -671 -if name is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -672 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -673 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -674 -if componentId is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -675 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -676 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -677 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -678 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -679 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -680 - - Set the current validity state of this component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -681 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -682 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -683 -if context is null -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -684 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - - -685 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - - -686 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -687 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIInput.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -688 - - - Add the specified UIComponent to the namespace of this naming container. - - -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - - - - -689 -if the specified component does not have a componentId -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -690 -if the component identifier of the specified component is not unique within the namespace of this naming container -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalStateException - - - -691 -if component is null -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -692 - - - Find and return a UIComponent in this namespace, if it is present; otherwise return null. - - - - If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - -jakarta.faces.component -UINamingContainer - - -java.lang.String - - - - -693 -if name is malformed -jakarta.faces.component -UINamingContainer - - -java.lang.String - -java.lang.IllegalArgumentException - - - -694 -if name is null -jakarta.faces.component -UINamingContainer - - -java.lang.String - -java.lang.NullPointerException - - - -695 - - Generate an identifier for a component, suitable for communication to a client. - The identifier returned from this method must be unique within this namespace. - -jakarta.faces.component -UINamingContainer - - - -696 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UINamingContainer - - - -697 - - - Remove the specified UIComponent from the namespace of this naming container, if it is present. - - -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - - - - -698 -if the specified component does not have a componentId -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -699 -if component is null -jakarta.faces.component -UINamingContainer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -700 - -jakarta.faces.component -UINamingContainer - - - -701 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -702 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -703 -if component is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -704 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -705 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -706 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -707 -if component is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -708 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -709 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -710 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -711 -if validator is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -712 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -713 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -714 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -715 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -716 -if event or phaseId is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -717 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -718 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -719 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -720 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -721 -if component is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -722 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -723 -if an input/output error occurs during decoding -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -724 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -725 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -726 -if an input/output error occurs while rendering -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -727 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -728 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -729 -if an input/output error occurs while rendering -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -730 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -731 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -732 -if an input/output error occurs while rendering -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -733 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -734 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -735 -if expr is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -736 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -737 -if name is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -738 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -739 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int - - - - -740 -if index is out of range ((index = size())) -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -741 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -742 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -743 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -744 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -745 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -746 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -747 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -748 -if name is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -749 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -750 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -751 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -752 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -753 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -754 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -755 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -756 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -757 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - -758 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -759 -if an input/output error occurs during decoding -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -760 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -761 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -762 -if an input/output error occurs during processing -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -763 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -764 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -765 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -766 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -767 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -768 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -769 -if an input/output error occurs during processing -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -770 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -771 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int - - - - -772 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -773 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -774 -if component is not a child of this component -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -775 -if component is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -776 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -777 -if name is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -778 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -779 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -780 -if name represents a read-only property of this component -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -781 -if name is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -782 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -783 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -784 -if componentId is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -785 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -786 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -787 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -788 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -789 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -790 - - Set the current validity state of this component. - - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -791 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -792 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -793 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -794 -if context is null -jakarta.faces.component -UINamingContainer.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -795 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UIOutput - - -jakarta.faces.context.FacesContext - - - - -796 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UIOutput - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -797 -if context is null -jakarta.faces.component -UIOutput - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -798 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIOutput - - - -799 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UIOutput - - - -800 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIOutput - - - -801 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UIOutput - - -java.lang.Object - - - - -802 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIOutput - - -java.lang.String - - - - -803 - - - Create a new UIOutput instance with default property values. - - -jakarta.faces.component -UIOutput - - - -804 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -805 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -806 -if component is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -807 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -808 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -809 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -810 -if component is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -811 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -812 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -813 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -814 -if validator is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -815 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -816 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -817 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -818 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -819 -if event or phaseId is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -820 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -821 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -822 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -823 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -824 -if component is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -825 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -826 -if an input/output error occurs during decoding -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -827 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -828 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -829 -if an input/output error occurs while rendering -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -830 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -831 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -832 -if an input/output error occurs while rendering -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -833 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -834 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -835 -if an input/output error occurs while rendering -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -836 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -837 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -838 -if expr is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -839 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -840 -if name is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -841 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -842 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int - - - - -843 -if index is out of range ((index = size())) -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -844 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -845 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -846 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -847 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -848 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -849 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -850 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -851 -if name is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -852 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -853 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -854 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -855 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -856 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -857 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -858 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -859 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -860 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - - -861 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -862 -if an input/output error occurs during decoding -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -863 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -864 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -865 -if an input/output error occurs during processing -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -866 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -867 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -868 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -869 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -870 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -871 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -872 -if an input/output error occurs during processing -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -873 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -874 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int - - - - -875 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -876 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -877 -if component is not a child of this component -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -878 -if component is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -879 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -880 -if name is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -881 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -882 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -883 -if name represents a read-only property of this component -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -884 -if name is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -885 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -886 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -887 -if componentId is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -888 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -889 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -890 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -891 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -892 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -893 - - Set the current validity state of this component. - - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -894 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -895 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -896 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -897 -if context is null -jakarta.faces.component -UIOutput.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -898 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIPanel - - - -899 - - Return true to indicate that this component takes responsibility for rendering its children. - - -jakarta.faces.component -UIPanel - - - -900 - - - Create a new UIPanel instance with default property values. - - -jakarta.faces.component -UIPanel - - - -901 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -902 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -903 -if component is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -904 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -905 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -906 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -907 -if component is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -908 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -909 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -910 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -911 -if validator is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -912 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -913 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -914 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -915 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -916 -if event or phaseId is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -917 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -918 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -919 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -920 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -921 -if component is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -922 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -923 -if an input/output error occurs during decoding -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -924 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -925 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -926 -if an input/output error occurs while rendering -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -927 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -928 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -929 -if an input/output error occurs while rendering -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -930 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -931 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -932 -if an input/output error occurs while rendering -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -933 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -934 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -935 -if expr is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -936 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -937 -if name is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -938 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -939 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int - - - - -940 -if index is out of range ((index = size())) -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -941 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -942 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -943 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -944 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -945 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -946 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -947 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -948 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -949 -if name is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -950 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -951 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -952 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -953 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -954 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -955 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -956 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -957 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - - -958 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -959 -if an input/output error occurs during decoding -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -960 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -961 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -962 -if an input/output error occurs during processing -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -963 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -964 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -965 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -966 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -967 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -968 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -969 -if an input/output error occurs during processing -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -970 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -971 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int - - - - -972 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -973 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -974 -if component is not a child of this component -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -975 -if component is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -976 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -977 -if name is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -978 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -979 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -980 -if name represents a read-only property of this component -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -981 -if name is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -982 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -983 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -984 -if componentId is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -985 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -986 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -987 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -988 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -989 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -990 - - Set the current validity state of this component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -991 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -992 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -993 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -994 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -995 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -996 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -997 -if context is null -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -998 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - - -999 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - - -1000 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1001 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIPanel.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1002 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIParameter - - - -1003 - - Return the optional parameter name for this parameter. - - -jakarta.faces.component -UIParameter - - - -1004 - - - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - - -jakarta.faces.component -UIParameter - - - -1005 - - Set the optional parameter name for this parameter. - - -jakarta.faces.component -UIParameter - - -java.lang.String - - - - -1006 - - - Create a new UIParameter instance with default property values. - - -jakarta.faces.component -UIParameter - - - -1007 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1008 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1009 -if component is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1010 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1011 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1012 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1013 -if component is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1014 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1015 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1016 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1017 -if validator is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1018 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1019 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1020 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1021 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1022 -if event or phaseId is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1023 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1024 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1025 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1026 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1027 -if component is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1028 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1029 -if an input/output error occurs during decoding -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1030 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1031 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1032 -if an input/output error occurs while rendering -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1033 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1034 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1035 -if an input/output error occurs while rendering -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1036 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1037 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1038 -if an input/output error occurs while rendering -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1039 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1040 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1041 -if expr is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1042 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1043 -if name is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1044 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1045 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1046 -if index is out of range ((index = size())) -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1047 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1048 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1049 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1050 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1051 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1052 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1053 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1054 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1055 -if name is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1056 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1057 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1058 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1059 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1060 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1061 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1062 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1063 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - - -1064 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1065 -if an input/output error occurs during decoding -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1066 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1067 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1068 -if an input/output error occurs during processing -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1069 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1070 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1071 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1072 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1073 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1074 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1075 -if an input/output error occurs during processing -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1076 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1077 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1078 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1079 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1080 -if component is not a child of this component -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1081 -if component is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1082 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1083 -if name is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1084 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1085 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1086 -if name represents a read-only property of this component -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1087 -if name is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1088 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1089 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1090 -if componentId is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1091 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1092 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1093 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1094 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1095 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1096 - - Set the current validity state of this component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1097 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1098 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1099 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1100 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1101 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1102 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1103 -if context is null -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1104 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - - -1105 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - - -1106 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1107 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UIParameter.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1108 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectBoolean - - - -1109 - - Return the local value of the selected state of this component. - - -jakarta.faces.component -UISelectBoolean - - - -1110 - - Set the local value of the selected state of this component. - - -jakarta.faces.component -UISelectBoolean - - -boolean - - - - -1111 - - - Create a new UISelectBoolean instance with default property values. - - -jakarta.faces.component -UISelectBoolean - - - -1112 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1113 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1114 -if component is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1115 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1116 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1117 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1118 -if component is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1119 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1120 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1121 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1122 -if validator is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1123 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1124 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1125 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1126 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1127 -if component is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1128 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1129 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1130 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1131 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1132 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1133 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1134 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1135 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1136 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1137 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1138 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1139 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1140 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1141 -if expr is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1142 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1143 -if name is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1144 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1145 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1146 -if index is out of range ((index = size())) -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1147 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1148 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1149 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1150 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1151 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1152 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1153 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1154 -if name is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1155 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1156 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1157 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1158 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1159 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1160 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1161 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1162 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1163 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - -1164 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1165 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1166 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1167 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1168 -if an input/output error occurs during processing -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1169 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1170 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1171 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1172 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1173 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1174 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1175 -if an input/output error occurs during processing -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1176 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1177 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1178 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1179 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1180 -if component is not a child of this component -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1181 -if component is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1182 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1183 -if name is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1184 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1185 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1186 -if name represents a read-only property of this component -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1187 -if name is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1188 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1189 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1190 -if componentId is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1191 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1192 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1193 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1194 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1195 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1196 - - Set the current validity state of this component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1197 - - - - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1198 -if listener is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1199 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1200 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1201 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1202 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1203 -if event or phaseId is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1204 - - - Return the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - - -1205 - - - - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1206 -if listener is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1207 - - - Set the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -java.lang.Object - - - - -1208 - - - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. - - - - - - - - - If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1209 -if the valueRef property has invalid syntax for an expression -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -1210 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1211 - - - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1212 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1213 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1214 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1215 -if context is null -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1216 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - - -1217 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - - -1218 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - - -1219 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1220 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectBoolean.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1221 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectItem - - - -1222 - - Return the description for this selection item. - - -jakarta.faces.component -UISelectItem - - - -1223 - - Return the localized label for this selection item. - - -jakarta.faces.component -UISelectItem - - - -1224 - - Return the server value for this selection item. - - -jakarta.faces.component -UISelectItem - - - -1225 - - - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - - -jakarta.faces.component -UISelectItem - - - -1226 - - Set the description for this selection item. - - -jakarta.faces.component -UISelectItem - - -java.lang.String - - - - -1227 - - Set the localized label for this selection item. - - -jakarta.faces.component -UISelectItem - - -java.lang.String - - - - -1228 - - Set the server value for this selection item. - - -jakarta.faces.component -UISelectItem - - -java.lang.String - - - - -1229 - -jakarta.faces.component -UISelectItem - - - -1230 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1231 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1232 -if component is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1233 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1234 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1235 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1236 -if component is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1237 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1238 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1239 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1240 -if validator is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1241 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1242 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1243 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1244 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1245 -if event or phaseId is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1246 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1247 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1248 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1249 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1250 -if component is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1251 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1252 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1253 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1254 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1255 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1256 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1257 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1258 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1259 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1260 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1261 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1262 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1263 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1264 -if expr is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1265 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1266 -if name is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1267 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1268 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1269 -if index is out of range ((index = size())) -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1270 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1271 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1272 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1273 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1274 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1275 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1276 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1277 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1278 -if name is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1279 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1280 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1281 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1282 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1283 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1284 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1285 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1286 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - - -1287 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1288 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1289 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1290 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1291 -if an input/output error occurs during processing -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1292 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1293 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1294 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1295 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1296 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1297 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1298 -if an input/output error occurs during processing -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1299 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1300 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1301 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1302 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1303 -if component is not a child of this component -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1304 -if component is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1305 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1306 -if name is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1307 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1308 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1309 -if name represents a read-only property of this component -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1310 -if name is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1311 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1312 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1313 -if componentId is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1314 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1315 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1316 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1317 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1318 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1319 - - Set the current validity state of this component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1320 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1321 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1322 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1323 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1324 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1325 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1326 -if context is null -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1327 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - - -1328 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - - -1329 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1330 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectItem.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1331 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectItems - - - -1332 - - - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - - -jakarta.faces.component -UISelectItems - - - -1333 - -jakarta.faces.component -UISelectItems - - - -1334 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1335 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1336 -if component is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1337 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1338 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1339 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1340 -if component is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1341 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1342 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1343 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1344 -if validator is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1345 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1346 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1347 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1348 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1349 -if event or phaseId is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1350 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1351 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1352 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1353 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1354 -if component is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1355 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1356 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1357 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1358 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1359 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1360 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1361 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1362 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1363 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1364 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1365 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1366 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1367 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1368 -if expr is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1369 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1370 -if name is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1371 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1372 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1373 -if index is out of range ((index = size())) -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1374 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1375 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1376 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1377 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1378 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1379 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1380 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1381 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1382 -if name is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1383 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1384 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1385 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1386 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1387 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1388 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1389 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1390 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - - -1391 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1392 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1393 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1394 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1395 -if an input/output error occurs during processing -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1396 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1397 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1398 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1399 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1400 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1401 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1402 -if an input/output error occurs during processing -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1403 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1404 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1405 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1406 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1407 -if component is not a child of this component -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1408 -if component is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1409 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1410 -if name is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1411 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1412 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1413 -if name represents a read-only property of this component -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1414 -if name is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1415 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1416 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1417 -if componentId is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1418 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1419 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1420 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1421 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1422 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1423 - - Set the current validity state of this component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1424 - - - Update the model data associated with this UIComponent, if any. - - - The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1425 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1426 - - Perform any correctness checks that this component wishes to perform on itself. - - - This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1427 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1428 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1429 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1430 -if context is null -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1431 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - - -1432 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - - -1433 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1434 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectItems.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1435 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectMany - - - -1436 - - Return the currently selected items, or null if there are no currently selected items. - - -jakarta.faces.component -UISelectMany - - - -1437 - - Set the currently selected items, or null to indicate that there are no currently selected items. - - -jakarta.faces.component -UISelectMany - - -java.lang.Object[] - - - - -1438 - - - Create a new UISelectMany instance with default property values. - - -jakarta.faces.component -UISelectMany - - - -1439 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1440 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1441 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1442 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1443 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1444 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1445 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1446 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1447 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1448 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1449 -if validator is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1450 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1451 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1452 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1453 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1454 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1455 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1456 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1457 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1458 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1459 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1460 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1461 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1462 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1463 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1464 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1465 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1466 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1467 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1468 -if expr is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1469 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1470 -if name is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1471 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1472 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1473 -if index is out of range ((index = size())) -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1474 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1475 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1476 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1477 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1478 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1479 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1480 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1481 -if name is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1482 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1483 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1484 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1485 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1486 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1487 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1488 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1489 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1490 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - - -1491 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1492 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1493 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1494 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1495 -if an input/output error occurs during processing -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1496 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1497 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1498 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1499 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1500 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1501 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1502 -if an input/output error occurs during processing -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1503 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1504 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1505 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1506 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1507 -if component is not a child of this component -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1508 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1509 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1510 -if name is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1511 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1512 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1513 -if name represents a read-only property of this component -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1514 -if name is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1515 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1516 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1517 -if componentId is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1518 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1519 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1520 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1521 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1522 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1523 - - Set the current validity state of this component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1524 - - - - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1525 -if listener is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1526 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1527 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1528 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1529 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1530 -if event or phaseId is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1531 - - - Return the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - - -1532 - - - - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1533 -if listener is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1534 - - - Set the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -java.lang.Object - - - - -1535 - - - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. - - - - - - - - - If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1536 -if the valueRef property has invalid syntax for an expression -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -1537 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1538 - - - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1539 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1540 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1541 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1542 -if context is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1543 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - - -1544 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - - -1545 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - - -1546 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1547 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1548 - - - Add the specified UIComponent to the namespace of this naming container. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - - - - -1549 -if the specified component does not have a componentId -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1550 -if the component identifier of the specified component is not unique within the namespace of this naming container -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalStateException - - - -1551 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1552 - - - Find and return a UIComponent in this namespace, if it is present; otherwise return null. - - - - If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -java.lang.String - - - - -1553 -if name is malformed -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1554 -if name is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1555 - - Generate an identifier for a component, suitable for communication to a client. - The identifier returned from this method must be unique within this namespace. - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - - -1556 - - - Remove the specified UIComponent from the namespace of this naming container, if it is present. - - -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - - - - -1557 -if the specified component does not have a componentId -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1558 -if component is null -jakarta.faces.component -UISelectMany.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1559 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectOne - - - -1560 - - Return the currently selected item, or null if there is no currently selected item. - - -jakarta.faces.component -UISelectOne - - - -1561 - - Set the currently selected item, or null to indicate that there is no currently selected item. - - -jakarta.faces.component -UISelectOne - - -java.lang.Object - - - - -1562 - - - Create a new UISelectOne instance with default property values. - - -jakarta.faces.component -UISelectOne - - - -1563 - - - Append the specified UIComponent to the end of the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1564 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1565 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1566 - - - Insert the specified UIComponent at the specified position in the child list for this component. - If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - - - - -1567 -if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1568 -if the index is out of range ((index < 0) || (index > size())) -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.IndexOutOfBoundsException - - - -1569 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1570 - - - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. - The newly added facet will have its parent property set to this component. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - - - - -1571 -if the either of the facetName or facet arguments are null. -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1572 - - - - Add a Validator instance to the set associated with this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1573 -if validator is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - -java.lang.NullPointerException - - - -1574 - - - Remove all child UIComponents from the child list. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1575 - - - Remove all facet UIComponents from this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1576 - - - Clear any Validators that have been registered for processing by this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1577 - - - - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1578 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1579 - - - - - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1580 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1581 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1582 - - - - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. - If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1583 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1584 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1585 - - - - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property is true. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1586 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1587 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1588 - - - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1589 -if an input/output error occurs while rendering -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1590 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1591 - - - Find the UIComponent named by the specified expression, if any is found. - - - This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1592 -if expr is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1593 - - Return the value of the attribute with the specified name (if any); otherwise, return null. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1594 -if name is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1595 - - - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1596 - - - Return the UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1597 -if index is out of range ((index = size())) -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1598 - - - Return the number of UIComponents on the child list for this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1599 - - - - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. - If this component has no children, an empty Iterator is returned. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1600 - - Return a client-side identifier for this component, generating one if necessary. - - Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1601 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1602 - - - Return the identifier of this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1603 - - - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1604 - - - Return the facet UIComponent associated with the specified name, if any. - Otherwise, return null. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1605 -if name is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1606 - - - - Return an Iterator over the names of the facet UIComponents of this UIComponent. - If this component has no facets, an empty Iterator is returned. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1607 - - - - Return an Iterator over the facet followed by child UIComponents of this UIComponent. - Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1608 - - - Return the parent UIComponent of this UIComponent, if any. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1609 - - - - Return the Renderer type for this UIComponent (if any). - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1610 - - Return a flag indicating whether this component is responsible for rendering its child components. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1611 - - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1612 - - - - Return an Iterator over the Validators associated with this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1613 - - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1614 - - Return the current validity state of this component. - The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - - -1615 - - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1616 -if an input/output error occurs during decoding -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1617 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1618 - - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. - - Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1619 -if an input/output error occurs during processing -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1620 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1621 - - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1622 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1623 - - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. - - - - - Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1624 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1625 - - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. - The default implementation of this method does nothing. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - - - - -1626 -if an input/output error occurs during processing -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1627 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1628 - - Remove the child UIComponent at the specified position in the child list for this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int - - - - -1629 -if the index is out of range ((index < 0) || (index >= size())) -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -int - -java.lang.IndexOutOfBoundsException - - - -1630 - - - Remove the child UIComponent from the child list for this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1631 -if component is not a child of this component -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1632 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1633 - - - Remove the facet UIComponent associated with the specified name, if there is one. - The removed facet will have its parent property cleared. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1634 -if name is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1635 - - - - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. - Otherwise, do nothing. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.validator.Validator - - - - -1636 - - Set the new value of the attribute with the specified name, replacing any existing value for that name. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - - - - -1637 -if name represents a read-only property of this component -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalArgumentException - - - -1638 -if name is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1639 - - - Set the identifier of this UIComponent. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1640 -if componentId is zero length or contains invalid characters -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1641 -if componentId is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1642 -if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1643 - - - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1644 - - Set the parent UIComponent of this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -jakarta.faces.component.UIComponent - - - - -1645 - - - Set the rendered property of this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1646 - - - - Set the Renderer type for this UIComponent, or null for components that render themselves. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -java.lang.String - - - - -1647 - - Set the current validity state of this component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIComponentBase} - - -boolean - - - - -1648 - - - - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1649 -if listener is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1650 - - - - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. - The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - - - - -1651 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -jakarta.faces.event.AbortProcessingException - - - -1652 -if the implementation class of this FacesEvent is not supported by this component -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalArgumentException - - - -1653 -if PhaseId.ANY_PHASE is passed for the phase identifier -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.IllegalStateException - - - -1654 -if event or phaseId is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.FacesEvent -jakarta.faces.event.PhaseId - -java.lang.NullPointerException - - - -1655 - - - Return the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - - -1656 - - - - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - - - - -1657 -if listener is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.event.ValueChangedListener - -java.lang.NullPointerException - - - -1658 - - - Set the previous value of this UIInput component. - - This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -java.lang.Object - - - - -1659 - - - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. - - - - - - - - - If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1660 -if the valueRef property has invalid syntax for an expression -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -1661 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1662 - - - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - - - - -1663 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIInput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1664 - - Evaluate and return the current value of this component, according to the following algorithm. - - - - - If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - - - - -1665 -if a problem occurs evaluating the value reference expression -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -EvaluationException - - - -1666 -if context is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1667 - - - Return the component type of this UIComponent. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - - -1668 - - - Return the local value of this UIInput component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - - -1669 - - - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - - -1670 - - - Set the local value of this UIInput component. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - -java.lang.Object - - - - -1671 - - - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UIOutput} - - -java.lang.String - - - - -1672 - - - Add the specified UIComponent to the namespace of this naming container. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - - - - -1673 -if the specified component does not have a componentId -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1674 -if the component identifier of the specified component is not unique within the namespace of this naming container -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalStateException - - - -1675 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1676 - - - Find and return a UIComponent in this namespace, if it is present; otherwise return null. - - - - If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -java.lang.String - - - - -1677 -if name is malformed -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1678 -if name is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -java.lang.String - -java.lang.NullPointerException - - - -1679 - - Generate an identifier for a component, suitable for communication to a client. - The identifier returned from this method must be unique within this namespace. - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - - -1680 - - - Remove the specified UIComponent from the namespace of this naming container, if it is present. - - -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - - - - -1681 -if the specified component does not have a componentId -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1682 -if component is null -jakarta.faces.component -UISelectOne.{jakarta.faces.component.UISelectBase} - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1683 - - - Append a FacesEvent to the set of events that should be processed at the end of the current phase of the request processing lifecycle. - - -jakarta.faces.context -FacesContext - - -jakarta.faces.event.FacesEvent - - - - -1684 -if event is null -jakarta.faces.context -FacesContext - - -jakarta.faces.event.FacesEvent - -java.lang.NullPointerException - - - -1685 - - - - Append a Message to the set of messages associated with the specified UIComponent, if component is not null. - - If component is null, this Message is assumed to not be associated with any specific component instance. - -jakarta.faces.context -FacesContext - - -jakarta.faces.component.UIComponent -jakarta.faces.context.Message - - - - -1686 -if message is null -jakarta.faces.context -FacesContext - - -jakarta.faces.component.UIComponent -jakarta.faces.context.Message - -java.lang.NullPointerException - - - -1687 - -jakarta.faces.context -FacesContext - - - -1688 - - - Return the FacesContext instance for the request that is being processed by the current thread. - - -jakarta.faces.context -FacesContext - - - -1689 - - - Return an Iterator over the FacesEvents that have been queued, in the order that they were queued. - The Iterator returned by this method must support the following functionality: The remove() operation may be utilized by the JSF implementation to remove the current event when it has been completely handled. Event handlers may add new events to the list while it is being iterated over, by calling addFacesEvent(). If no events have been queued, an empty Iterator must be returned. - -jakarta.faces.context -FacesContext - - - -1690 - - Return the HttpSession instance for the session associated with the current request (if any); otherwise, return null. - - -jakarta.faces.context -FacesContext - - - -1691 - - Return the Locale to be used in localizing the response being created for this FacesContext. - - -jakarta.faces.context -FacesContext - - - -1692 - - - - Return the maximum severity level recorded on any Messages that has been queued, whether or not they are associated with any specific UIComponent. - If no such messages have been queued, return a value less than Message.SEVERITY_INFO. - -jakarta.faces.context -FacesContext - - - -1693 - - - - Return an Iterator over the Messages that have been queued, whether or not they are associated with any specific UIComponent. - If no such messages have been queued, return an empty Iterator. - -jakarta.faces.context -FacesContext - - - -1694 - - - - - - Return an Iterator over the Messages that have been queued that are associated with the specified UIComponent, (if component is not null), or over the Messages that have been queued that are not associated with any specific UIComponent (if component is null). - If no such messages have been queued, return an empty Iterator. - -jakarta.faces.context -FacesContext - - -jakarta.faces.component.UIComponent - - - - -1695 - - - Return the ResponseStream to which components should direct their binary output. - Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - -jakarta.faces.context -FacesContext - - - -1696 - - - Return the ResponseWriter to which components should direct their character-based output. - Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - -jakarta.faces.context -FacesContext - - - -1697 - - Return the ServletContext object for the web application associated with this request. - - -jakarta.faces.context -FacesContext - - - -1698 - - Return the ServletRequest object representing the current request that is being processed. - - -jakarta.faces.context -FacesContext - - - -1699 - - Return the ServletResponse object representing the current response that is being rendered. - - -jakarta.faces.context -FacesContext - - - -1700 - - - Return the component Tree that is associated with the this request. - - -jakarta.faces.context -FacesContext - - - -1701 - - Release any resources associated with this FacesContext instance. - - Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. - -jakarta.faces.context -FacesContext - - - -1702 - - Signal the JavaSerer faces implementation that, as soon as the current phase of the request processing lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet. - - -jakarta.faces.context -FacesContext - - - -1703 - - Signal the JavaServer Faces implementation that the HTTP response for this request has already been generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. - - -jakarta.faces.context -FacesContext - - - -1704 - - Set the Locale to be used in localizing the response being created for this FacesContext. - If not set, the default Locale for our servlet container will be used. - -jakarta.faces.context -FacesContext - - -java.util.Locale - - - - -1705 - - - Set the ResponseStream to which components should direct their binary output. - -jakarta.faces.context -FacesContext - - -jakarta.faces.context.ResponseStream - - - - -1706 -if responseStream is null -jakarta.faces.context -FacesContext - - -jakarta.faces.context.ResponseStream - -java.lang.NullPointerException - - - -1707 - - - Set the ResponseWriter to which components should direct their character-based output. - -jakarta.faces.context -FacesContext - - -jakarta.faces.context.ResponseWriter - - - - -1708 -if responseWriter is null -jakarta.faces.context -FacesContext - - -jakarta.faces.context.ResponseWriter - -java.lang.NullPointerException - - - -1709 - - - Set the component Tree that is associated with this request. - This method can only be called by the application handler (or a class that the handler calls), and only during the Invoke Application phase of the request processing lifecycle. - -jakarta.faces.context -FacesContext - - -jakarta.faces.tree.Tree - - - - -1710 -if this method is called more than once without a call to release() in beween -jakarta.faces.context -FacesContext - - -jakarta.faces.tree.Tree - -java.lang.IllegalStateException - - - -1711 -if tree is null -jakarta.faces.context -FacesContext - - -jakarta.faces.tree.Tree - -java.lang.NullPointerException - - - -1712 - -jakarta.faces.context -FacesContextFactory - - - -1713 - - - - Create (if needed) and return a FacesContext instance that is initialized for the processing of the specified request and response objects, utilizing the specified Lifecycle instance, for this web application. - - -jakarta.faces.context -FacesContextFactory - - -ServletContext -ServletRequest -ServletResponse -jakarta.faces.lifecycle.Lifecycle - - - - -1714 -if a FacesContext cannot be constructed for the specified parameters -jakarta.faces.context -FacesContextFactory - - -ServletContext -ServletRequest -ServletResponse -jakarta.faces.lifecycle.Lifecycle - -jakarta.faces.FacesException - - - -1715 -if any of the parameters are null -jakarta.faces.context -FacesContextFactory - - -ServletContext -ServletRequest -ServletResponse -jakarta.faces.lifecycle.Lifecycle - -java.lang.NullPointerException - - - -1716 - - - Return the localized detail text for this Message (if any). - This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it. - -jakarta.faces.context -Message - - - -1717 - - - Return the severity level of this Message. - - -jakarta.faces.context -Message - - - -1718 - - - Return the localized summary text for this Message. - This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected. - -jakarta.faces.context -Message - - - -1719 - - - Return the localized detail text for this Message (if any). - This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it. - -jakarta.faces.context -MessageImpl - - - -1720 - - - Return the severity level of this Message. - - -jakarta.faces.context -MessageImpl - - - -1721 - - - Return the localized summary text for this Message. - This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected. - -jakarta.faces.context -MessageImpl - - - -1722 - - - Construct a new Message with no initial values. - -jakarta.faces.context -MessageImpl - - - -1723 - - - Construct a new Message with the specified initial values. - - -jakarta.faces.context -MessageImpl - - -int -java.lang.String -java.lang.String - - - - -1724 - - Set the localized detail text. - - -jakarta.faces.context -MessageImpl - - -java.lang.String - - - - -1725 - - Set the severity level. - - -jakarta.faces.context -MessageImpl - - -int - - - - -1726 -if the specified severity level is not one of the supported values -jakarta.faces.context -MessageImpl - - -int - -java.lang.IllegalArgumentException - - - -1727 - - Set the localized summary text. - - -jakarta.faces.context -MessageImpl - - -java.lang.String - - - - -1728 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String - - - - -1729 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String - -java.lang.NullPointerException - - - -1730 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object[] - - - - -1731 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object[] - -java.lang.NullPointerException - - - -1732 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object - - - - -1733 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1734 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object - - - - -1735 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object - -java.lang.NullPointerException - - - -1736 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object -java.lang.Object - - - - -1737 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object -java.lang.Object - -java.lang.NullPointerException - - - -1738 - - - - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - - -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object -java.lang.Object -java.lang.Object - - - - -1739 -if context or messageId is null -jakarta.faces.context -MessageResources - - -jakarta.faces.context.FacesContext -java.lang.String -java.lang.Object -java.lang.Object -java.lang.Object -java.lang.Object - -java.lang.NullPointerException - - - -1740 - -jakarta.faces.context -MessageResources - - - -1741 - - - - Register a new MessageResources instance, associated with the specified messageResourcesId, to be supported by this MessageResourcesFactory. - - This method may be called at any time, and makes the corresponding MessageResources instance available throughout the remaining lifetime of this web application. - -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String -jakarta.faces.context.MessageResources - - - - -1742 -if messageResourcesId is already registered in this MessageResourcesFactory -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String -jakarta.faces.context.MessageResources - -java.lang.IllegalArgumentException - - - -1743 -if messageResourcesId or messageResources is null -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String -jakarta.faces.context.MessageResources - -java.lang.NullPointerException - - - -1744 - - - Create (if needed) and return a MessageResources instance for the specified message resources identifier. - The set of available message resources identifiers is available via the getMessageResourcesIds() method. Each call to getMessageResources() for the same messageResourcesId, from within the same web application, must return the same MessageResources instance. - -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String - - - - -1745 -if no MessageResources instance can be returned for the specified identifier -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1746 -if messageResourcesId is null -jakarta.faces.context -MessageResourcesFactory - - -java.lang.String - -java.lang.NullPointerException - - - -1747 - - Return an Iterator over the set of message resource identifiers supported by this factory. - This Iterator must include the standard identifiers described above. - -jakarta.faces.context -MessageResourcesFactory - - - -1748 - -jakarta.faces.context -MessageResourcesFactory - - - -1749 - -jakarta.faces.context -ResponseStream - - - -1750 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - - -1751 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - -java.io.IOException - - - -1752 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - - -1753 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - -java.io.IOException - - - -1754 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -int - - - - -1755 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -int - -java.io.IOException - - - -1756 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -byte[] - - - - -1757 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -byte[] - -java.io.IOException - - - -1758 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -byte[] -int -int - - - - -1759 - -jakarta.faces.context -ResponseStream.{java.io.OutputStream} - - -byte[] -int -int - -java.io.IOException - - - -1760 - - Write whatever text should end a response. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - - -1761 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - -java.io.IOException - - - -1762 - - Write the end of an element, after closing any open element created by a call to startElement(). - -jakarta.faces.context -ResponseWriter - - -java.lang.String - - - - -1763 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.String - -java.io.IOException - - - -1764 -if name is null -jakarta.faces.context -ResponseWriter - - -java.lang.String - -java.lang.NullPointerException - - - -1765 - -jakarta.faces.context -ResponseWriter - - - -1766 - - Write whatever text should begin a response. - - -jakarta.faces.context -ResponseWriter - - - -1767 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - -java.io.IOException - - - -1768 - - Write the start of an element, up to and including the element name. - Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - -jakarta.faces.context -ResponseWriter - - -java.lang.String - - - - -1769 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.String - -java.io.IOException - - - -1770 -if name is null -jakarta.faces.context -ResponseWriter - - -java.lang.String - -java.lang.NullPointerException - - - -1771 - - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - - - - -1772 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -1773 -if this method is called when there is no currently open element -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -1774 -if name or value is null -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1775 - - Write a comment containing the specified text, after converting that text to a String if necessary. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - -java.lang.Object - - - - -1776 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.Object - -java.io.IOException - - - -1777 -if comment is null -jakarta.faces.context -ResponseWriter - - -java.lang.Object - -java.lang.NullPointerException - - - -1778 - - Write an object (after converting it to a String, if necessary), after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - -java.lang.Object - - - - -1779 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.Object - -java.io.IOException - - - -1780 -if text is null -jakarta.faces.context -ResponseWriter - - -java.lang.Object - -java.lang.NullPointerException - - - -1781 - - Write a single character, after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - -char - - - - -1782 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -char - -java.io.IOException - - - -1783 - - Write text from a character array, after escaping it properly. - This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - -char[] - - - - -1784 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -char[] - -java.io.IOException - - - -1785 -if text is null -jakarta.faces.context -ResponseWriter - - -char[] - -java.lang.NullPointerException - - - -1786 - - Write text from a character array, after escaping it properly for this method. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.context -ResponseWriter - - -char[] -int -int - - - - -1787 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -char[] -int -int - -java.io.IOException - - - -1788 -if the calculated starting or ending position is outside the bounds of the character array -jakarta.faces.context -ResponseWriter - - -char[] -int -int - -java.lang.IndexOutOfBoundsException - - - -1789 -if text is null -jakarta.faces.context -ResponseWriter - - -char[] -int -int - -java.lang.NullPointerException - - - -1790 - - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - - - - -1791 -if an input/output error occurs -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -1792 -if this method is called when there is no currently open element -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -1793 -if name or value is null -jakarta.faces.context -ResponseWriter - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1794 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - - -1795 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - -java.io.IOException - - - -1796 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - - -1797 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - -java.io.IOException - - - -1798 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -int - - - - -1799 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -int - -java.io.IOException - - - -1800 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -char[] - - - - -1801 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -char[] - -java.io.IOException - - - -1802 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -char[] -int -int - - - - -1803 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -char[] -int -int - -java.io.IOException - - - -1804 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -java.lang.String - - - - -1805 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -java.lang.String - -java.io.IOException - - - -1806 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -java.lang.String -int -int - - - - -1807 - -jakarta.faces.context -ResponseWriter.{java.io.Writer} - - -java.lang.String -int -int - -java.io.IOException - - - -1808 - - - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - - -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.String - - - - -1809 -if conversion cannot be successfully performed -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.String - -jakarta.faces.convert.ConverterException - - - -1810 -if context or component is null -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.String - -java.lang.NullPointerException - - - -1811 - - - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - - -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.Object - - - - -1812 -if conversion cannot be successfully performed -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.Object - -jakarta.faces.convert.ConverterException - - - -1813 -if context or component is null -jakarta.faces.convert -Converter - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent -java.lang.Object - -java.lang.NullPointerException - - - -1814 - - Construct a new exception with no detail message or root cause. - - -jakarta.faces.convert -ConverterException - - - -1815 - - Construct a new exception with the specified detail message and no root cause. - - -jakarta.faces.convert -ConverterException - - -java.lang.String - - - - -1816 - - Construct a new exception with the specified root cause. - The detail message will be set to (cause == null ? null : cause.toString() - -jakarta.faces.convert -ConverterException - - -java.lang.Throwable - - - - -1817 - - Construct a new exception with the specified detail message and root cause. - - -jakarta.faces.convert -ConverterException - - -java.lang.String -java.lang.Throwable - - - - -1818 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces.convert -ConverterException.{jakarta.faces.FacesException} - - - -1819 - - - Register a new Converter instance with the specified converterId, to be supported by this ConverterFactory. - - This method may be called at any time, and makes the corresponding Converter instance available throughout the remaining lifetime of this web application. - -jakarta.faces.convert -ConverterFactory - - -java.lang.String -jakarta.faces.convert.Converter - - - - -1820 -if a Converter with the specified converterId has already been registered -jakarta.faces.convert -ConverterFactory - - -java.lang.String -jakarta.faces.convert.Converter - -java.lang.IllegalArgumentException - - - -1821 -if converterId or converter is null -jakarta.faces.convert -ConverterFactory - - -java.lang.String -jakarta.faces.convert.Converter - -java.lang.NullPointerException - - - -1822 - - - Register a new Converter instance that knows how to perform conversions to and from the specified object class. - - This method may be called at any time, and makes the corresponding Converter instance available throughout the remaining lifetime of this web application. - -jakarta.faces.convert -ConverterFactory - - -java.lang.Class -jakarta.faces.convert.Converter - - - - -1823 -if clazz or converter is null -jakarta.faces.convert -ConverterFactory - - -java.lang.Class -jakarta.faces.convert.Converter - -java.lang.NullPointerException - - - -1824 - -jakarta.faces.convert -ConverterFactory - - - -1825 - - - Create (if needed) and return a Converter instance that may be used to perform Object-to-String and String-to-Object conversions for objects of the specified class. - - - - A search of the registered Converters is performed in the following order: An exact match on the original class. An exact match on one of the interfaces directly implemented by the original class, checked in the order they are returned by Class.getInterfaces(). Recursively for each superclass of the original class: An exact match on this superclass. An exact match on one of the interfaces directly implemented by this superclass. If a Converter is discovered during the search described above, it is returned; otherwise null is returned. Each call to getConverter() for the same clazz, from within the same web application, must return the same Converter instance. - -jakarta.faces.convert -ConverterFactory - - -java.lang.Class - - - - -1826 -if clazz is null -jakarta.faces.convert -ConverterFactory - - -java.lang.Class - -java.lang.NullPointerException - - - -1827 - - - Create (if needed) and return a Converter instance that may be used to perform Object-to-String and String-to-Object conversions for web applications based on JavaServer Faces. - - - The set of available converter identifiers is available via the getConverterIds() method. If no Converter has been registered for the specified converter identifier, return null. Each call to getConverter() for the same converterId, from within the same web application, must return the same Converter instance. - -jakarta.faces.convert -ConverterFactory - - -java.lang.String - - - - -1828 -if converterId is null -jakarta.faces.convert -ConverterFactory - - -java.lang.String - -java.lang.NullPointerException - - - -1829 - - - Return an Iterator over the set of classes for which we have registered Converters in this factory. - - -jakarta.faces.convert -ConverterFactory - - - -1830 - - Return an Iterator over the set of converter identifiers supported by this factory. - - -jakarta.faces.convert -ConverterFactory - - - -1831 - - Construct a new exception with no detail message or root cause. - - -jakarta.faces.el -EvaluationException - - - -1832 - - Construct a new exception with the specified detail message and no root cause. - - -jakarta.faces.el -EvaluationException - - -java.lang.String - - - - -1833 - - Construct a new exception with the specified root cause. - The detail message will be set to (cause == null ? null : cause.toString() - -jakarta.faces.el -EvaluationException - - -java.lang.Throwable - - - - -1834 - - Construct a new exception with the specified detail message and root cause. - - -jakarta.faces.el -EvaluationException - - -java.lang.String -java.lang.Throwable - - - - -1835 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces.el -EvaluationException.{jakarta.faces.FacesException} - - - -1836 - - Construct a new exception with no detail message or root cause. - - -jakarta.faces.el -PropertyNotFoundException - - - -1837 - - Construct a new exception with the specified detail message and no root cause. - - -jakarta.faces.el -PropertyNotFoundException - - -java.lang.String - - - - -1838 - - Construct a new exception with the specified root cause. - The detail message will be set to (cause == null ? null : cause.toString() - -jakarta.faces.el -PropertyNotFoundException - - -java.lang.Throwable - - - - -1839 - - Construct a new exception with the specified detail message and root cause. - - -jakarta.faces.el -PropertyNotFoundException - - -java.lang.String -java.lang.Throwable - - - - -1840 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces.el -PropertyNotFoundException.{jakarta.faces.FacesException} - - - -1841 - - Return the java.lang.Class representing the type of the specified property of the specified base object, if it can be determined; otherwise return null. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - - - - -1842 -if the specified property name does not exist -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -jakarta.faces.el.PropertyNotFoundException - - - -1843 -if base or name is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -java.lang.NullPointerException - - - -1844 - - Return the java.lang.Class representing the type of value at the specified index of the specified base object, or null if this value is null. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - - - - -1845 -if some other exception occurs -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -jakarta.faces.el.PropertyNotFoundException - - - -1846 -if thrown by the underlying accessed to the indexed property -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.IndexOutOfBoundsException - - - -1847 -if base is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.NullPointerException - - - -1848 - - Return the value of the property with the specified name from the specified base object. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - - - - -1849 -if the specified property name does not exist, or is not readable -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -jakarta.faces.el.PropertyNotFoundException - - - -1850 -if base or name is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -java.lang.NullPointerException - - - -1851 - - Return the value at the specified index of the specified base object. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - - - - -1852 -if some other exception occurs -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -jakarta.faces.el.PropertyNotFoundException - - - -1853 -if thrown by the underlying access to the base object -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.IndexOutOfBoundsException - - - -1854 -if base is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.NullPointerException - - - -1855 - - Return true if the specified property of the specified base object is known to be immutable; otherwise, return false. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - - - - -1856 -if the specified property name does not exist -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -jakarta.faces.el.PropertyNotFoundException - - - -1857 -if base or name is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String - -java.lang.NullPointerException - - - -1858 - - Return true if the value at the specified index of the specified base object is known to be immutable; otherwise, return false. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - - - - -1859 -if some other exception occurs -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -jakarta.faces.el.PropertyNotFoundException - - - -1860 -if thrown by the underlying accessed to the indexed property -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.IndexOutOfBoundsException - - - -1861 -if base is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int - -java.lang.NullPointerException - - - -1862 - -jakarta.faces.el -PropertyResolver - - - -1863 - - Set the specified value of the property with the specified name on the specified base object. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String -java.lang.Object - - - - -1864 -if the specified property name does not exist, or is not writeable -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String -java.lang.Object - -jakarta.faces.el.PropertyNotFoundException - - - -1865 -if base or name is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -1866 - - Set the value at the specified index of the specified base object. - - -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int -java.lang.Object - - - - -1867 -if some other exception occurs -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int -java.lang.Object - -jakarta.faces.el.PropertyNotFoundException - - - -1868 -if thrown by the underlying access to the base object -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int -java.lang.Object - -java.lang.IndexOutOfBoundsException - - - -1869 -if base is null -jakarta.faces.el -PropertyResolver - - -java.lang.Object -int -java.lang.Object - -java.lang.NullPointerException - - - -1870 - - Construct a new exception with no detail message or root cause. - - -jakarta.faces.el -ReferenceSyntaxException - - - -1871 - - Construct a new exception with the specified detail message and no root cause. - - -jakarta.faces.el -ReferenceSyntaxException - - -java.lang.String - - - - -1872 - - Construct a new exception with the specified root cause. - The detail message will be set to (cause == null ? null : cause.toString() - -jakarta.faces.el -ReferenceSyntaxException - - -java.lang.Throwable - - - - -1873 - - Construct a new exception with the specified detail message and root cause. - - -jakarta.faces.el -ReferenceSyntaxException - - -java.lang.String -java.lang.Throwable - - - - -1874 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces.el -ReferenceSyntaxException.{jakarta.faces.FacesException} - - - -1875 - - - - Return the type of the property represented by this ValueBinding, relative to the specified FacesContext. - - -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - - - - -1876 -if the specified property name does not exist, or is not writeable -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -jakarta.faces.el.PropertyNotFoundException - - - -1877 -if context is null -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1878 - - - - Return the value of the property represented by this ValueBinding, relative to the specified FacesContext. - - -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - - - - -1879 -if the specified property name does not exist, or is not readable -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -jakarta.faces.el.PropertyNotFoundException - - - -1880 -if context is null -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1881 - - Return true if the specified property of the specified property is known to be immutable; otherwise, return false. - - -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - - - - -1882 -if the specified property name does not exist -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -jakarta.faces.el.PropertyNotFoundException - - - -1883 -if context is null -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1884 - - - - Set the value of the property represented by this ValueBinding, relative to the specified FacesContext. - - -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext -java.lang.Object - - - - -1885 -if the specified property name does not exist, or is not writeable -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext -java.lang.Object - -jakarta.faces.el.PropertyNotFoundException - - - -1886 -if context is null -jakarta.faces.el -ValueBinding - - -jakarta.faces.context.FacesContext -java.lang.Object - -java.lang.NullPointerException - - - -1887 - -jakarta.faces.el -ValueBinding - - - -1888 - - Resolve the specified variable name, and return the corresponding object, if any; otherwise, return null. - - -jakarta.faces.el -VariableResolver - - -jakarta.faces.context.FacesContext -java.lang.String - - - - -1889 -if context or name is null -jakarta.faces.el -VariableResolver - - -jakarta.faces.context.FacesContext -java.lang.String - -java.lang.NullPointerException - - - -1890 - -jakarta.faces.el -VariableResolver - - - -1891 - -jakarta.faces.event -AbortProcessingException - - - -1892 - - Return the cause of this exception, or null if the cause is nonexistent or unknown. - - -jakarta.faces.event -AbortProcessingException.{jakarta.faces.FacesException} - - - -1893 - - Construct a new event object from the specified source component and action command. - - -jakarta.faces.event -ActionEvent - - -jakarta.faces.component.UIComponent -java.lang.String - - - - -1894 - - Return the String identifying the command that was activated. - - -jakarta.faces.event -ActionEvent - - - -1895 - - - Return the source UIComponent that sent this event. - -jakarta.faces.event -ActionEvent.{jakarta.faces.event.FacesEvent} - - - -1896 - - - Invoked when the action described by the specified ActionEvent occurs. - - -jakarta.faces.event -ActionListener - - -jakarta.faces.event.ActionEvent - - - - -1897 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.event -ActionListener - - -jakarta.faces.event.ActionEvent - -jakarta.faces.event.AbortProcessingException - - - -1898 - - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. - - - Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - -jakarta.faces.event -ActionListener.{jakarta.faces.event.FacesListener} - - - -1899 - - Construct a new event object from the specified source component. - - -jakarta.faces.event -FacesEvent - - -jakarta.faces.component.UIComponent - - - - -1900 - - - Return the source UIComponent that sent this event. - -jakarta.faces.event -FacesEvent - - - -1901 - - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. - - - Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - -jakarta.faces.event -FacesListener - - - -1902 - - - Compare this PhaseId instance to the specified one. - Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. - -jakarta.faces.event -PhaseId - - -java.lang.Object - - - - -1903 - - - Return the ordinal value of this PhaseId instance. - - -jakarta.faces.event -PhaseId - - - -1904 - - - Return a String representation of this PhaseId instance. - - -jakarta.faces.event -PhaseId - - - -1905 - - - Return the current local value of the source UIComponent. - - -jakarta.faces.event -ValueChangedEvent - - - -1906 - - - Return the previous local value of the source UIComponent. - - -jakarta.faces.event -ValueChangedEvent - - - -1907 - - Construct a new event object from the specified source component, old value, and new value. - - -jakarta.faces.event -ValueChangedEvent - - -jakarta.faces.component.UIComponent -java.lang.Object -java.lang.Object - - - - -1908 - - - Return the source UIComponent that sent this event. - -jakarta.faces.event -ValueChangedEvent.{jakarta.faces.event.FacesEvent} - - - -1909 - - - Invoked when the value change described by the specified ValueChangedEvent occurs. - - -jakarta.faces.event -ValueChangedListener - - -jakarta.faces.event.ValueChangedEvent - - - - -1910 -Signal the JavaServer Faces implementation that no further processing on the current event should be performed -jakarta.faces.event -ValueChangedListener - - -jakarta.faces.event.ValueChangedEvent - -jakarta.faces.event.AbortProcessingException - - - -1911 - - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. - - - Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - -jakarta.faces.event -ValueChangedListener.{jakarta.faces.event.FacesListener} - - - -1912 - - Execute all of the phases of the request processing lifecycle, as described in the JavaServer Faces Specification, in the specified order. - - The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.context.FacesContext - - - - -1913 -if thrown during the execution of the request processing lifecycle -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.context.FacesContext - -jakarta.faces.FacesException - - - -1914 -if context is null -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1915 - - - Return the ViewHandler instance that will be utilized during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.lifecycle -Lifecycle - - - -1916 - -jakarta.faces.lifecycle -Lifecycle - - - -1917 - - - Set the ViewHandler instance that will be utilized during the Render Response phase of the request processing lifecycle. - - -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.lifecycle.ViewHandler - - - - -1918 -if this method is called after at least one request has been processed by this Lifecycle instance -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.lifecycle.ViewHandler - -java.lang.IllegalStateException - - - -1919 -if handler is null -jakarta.faces.lifecycle -Lifecycle - - -jakarta.faces.lifecycle.ViewHandler - -java.lang.NullPointerException - - - -1920 - - - Register a new Lifecycle instance, associated with the specified lifecycleId, to be supported by this LifecycleFactory. - - This method may be called at any time, and makes the corresponding Lifecycle instance available throughout the remaining lifetime of this web application. - -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String -jakarta.faces.lifecycle.Lifecycle - - - - -1921 -if a Lifecycle with the specified lifecycleId has already been registered -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String -jakarta.faces.lifecycle.Lifecycle - -java.lang.IllegalArgumentException - - - -1922 -if lifecycleId or lifecycle is null -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String -jakarta.faces.lifecycle.Lifecycle - -java.lang.NullPointerException - - - -1923 - - - Create (if needed) and return a Lifecycle instance for the specified lifecycle identifier. - - The set of available lifecycle identifiers is available via the getLifecycleIds() method. Each call to getLifecycle() for the same lifecycleId, from within the same web application, must return the same Lifecycle instance. - -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String - - - - -1924 -if no Lifecycle instance can be returned for the specified identifier -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1925 -if lifecycleId is null -jakarta.faces.lifecycle -LifecycleFactory - - -java.lang.String - -java.lang.NullPointerException - - - -1926 - - Return an Iterator over the set of lifecycle identifiers supported by this factory. - This set must include the value specified by LifecycleFactory.DEFAULT_LIFECYCLE. - -jakarta.faces.lifecycle -LifecycleFactory - - - -1927 - -jakarta.faces.lifecycle -LifecycleFactory - - - -1928 - - - Perform whatever actions are required to render the response component tree to the ServletResponse associated with the specified FacesContext. - - -jakarta.faces.lifecycle -ViewHandler - - -jakarta.faces.context.FacesContext - - - - -1929 -if an input/output error occurs -jakarta.faces.lifecycle -ViewHandler - - -jakarta.faces.context.FacesContext - -java.io.IOException - - - -1930 -if a servlet error occurs -jakarta.faces.lifecycle -ViewHandler - - -jakarta.faces.context.FacesContext - -ServletException - - - -1931 -if context is null -jakarta.faces.lifecycle -ViewHandler - - -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1932 - - - - - Decode the current state of the specified UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). - - - If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the value property of this component to true. If conversion is not successful: Save the state information (inside the component) in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect). Add an appropriate conversion failure error message by calling addMessage() on the specified FacesContext. Set the valid property of this component to false. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling addFacesEvent() on the associated FacesContext. - -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -1933 -if an input/output error occurs while decoding -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.io.IOException - - - -1934 -if context or component is null -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1935 - - - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. - If the conversion attempted in a previous call to decode for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling component.currentValue(), and rendering the value as appropriate. - -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -1936 -if an input/output error occurs while rendering -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.io.IOException - - - -1937 -if context or component is null -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1938 - - - Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - This method will only be called if the rendersChildren property of this component is true. - -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -1939 -if an input/output error occurs while rendering -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.io.IOException - - - -1940 -if context or component is null -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1941 - - - Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - - -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -1942 -if an input/output error occurs while rendering -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.io.IOException - - - -1943 -if context or component is null -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1944 - - - Return an AttributeDescriptor for the specified attribute name, as supported for the specified component class. - - -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent -java.lang.String - - - - -1945 -if the specified component class is not supported -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent -java.lang.String - -java.lang.IllegalArgumentException - - - -1946 -if the specified attribute name is not supported for the specified component class -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent -java.lang.String - -java.lang.IllegalArgumentException - - - -1947 -if component or name is null -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent -java.lang.String - -java.lang.NullPointerException - - - -1948 - - - Return an AttributeDescriptor for the specified attribute name, as supported for the specified component type. - - -jakarta.faces.render -Renderer - - -java.lang.String -java.lang.String - - - - -1949 -if the specified component type is not supported -jakarta.faces.render -Renderer - - -java.lang.String -java.lang.String - -java.lang.IllegalArgumentException - - - -1950 -if the specified attribute name is not supported for the specified component type -jakarta.faces.render -Renderer - - -java.lang.String -java.lang.String - -java.lang.IllegalArgumentException - - - -1951 -if type or name is null -jakarta.faces.render -Renderer - - -java.lang.String -java.lang.String - -java.lang.NullPointerException - - - -1952 - - - Return an Iterator over the names of the supported attributes for the specified UIComponent implementation class. - If no attributes are supported, an empty Iterator is returned. - -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent - - - - -1953 -if the specified component class is not supported -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent - -java.lang.IllegalArgumentException - - - -1954 -if component is null -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1955 - - Return an Iterator over the names of the supported attributes for the specified component type. - If no attributes are supported, an empty Iterator is returned. - -jakarta.faces.render -Renderer - - -java.lang.String - - - - -1956 -if the specified component type is not supported -jakarta.faces.render -Renderer - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1957 -if type is null -jakarta.faces.render -Renderer - - -java.lang.String - -java.lang.NullPointerException - - - -1958 - - Generate and return a new client-side identifier for the specified component. - - -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -1959 -if context or component is null -jakarta.faces.render -Renderer - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1960 - -jakarta.faces.render -Renderer - - - -1961 - - - Return true if this Renderer supports components of the specified UIComponent class. - - -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent - - - - -1962 -if component is null -jakarta.faces.render -Renderer - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1963 - - Return true if this Renderer supports components of the specified type. - - This is matched against the type property of each UIComponent to determine compatibility. - -jakarta.faces.render -Renderer - - -java.lang.String - - - - -1964 -if componentType is null -jakarta.faces.render -Renderer - - -java.lang.String - -java.lang.NullPointerException - - - -1965 - - - - - Add a new UIComponent subclass to the set of component classes registered with this RenderKit instance and supported by its constituent Renderers. - - -jakarta.faces.render -RenderKit - - -java.lang.Class - - - - -1966 -if componentClass is not a UIComponent subclass -jakarta.faces.render -RenderKit - - -java.lang.Class - -java.lang.IllegalArgumentException - - - -1967 -if componentClass is null -jakarta.faces.render -RenderKit - - -java.lang.Class - -java.lang.NullPointerException - - - -1968 - - - - - Add a new Renderer instance, associated with the specified rendererType, to the set of Renderers registered with this RenderKit. - -jakarta.faces.render -RenderKit - - -java.lang.String -jakarta.faces.render.Renderer - - - - -1969 -if a Renderer with the specified rendererType has already been registered -jakarta.faces.render -RenderKit - - -java.lang.String -jakarta.faces.render.Renderer - -java.lang.IllegalArgumentException - - - -1970 -if rendererType or renderer is null -jakarta.faces.render -RenderKit - - -java.lang.String -jakarta.faces.render.Renderer - -java.lang.NullPointerException - - - -1971 - - - - - Return an Iterator of the UIComponent classes that are registered with this RenderKit instance and supported by its constituent Renderers. - If there are no such registered component classes, an empty Iterator is returned. - -jakarta.faces.render -RenderKit - - - -1972 - - - Create (if necessary) and return a Renderer instance with the specified renderer type. - Subsequent calls to this method with the same rendererType, from the same web application, must return the same instance. - -jakarta.faces.render -RenderKit - - -java.lang.String - - - - -1973 -if the requested renderer type is not supported by this RenderKit -jakarta.faces.render -RenderKit - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1974 -if rendererType is null -jakarta.faces.render -RenderKit - - -java.lang.String - -java.lang.NullPointerException - - - -1975 - - Return an Iterator of all the renderer types registered with this RenderKit. - - -jakarta.faces.render -RenderKit - - - -1976 - - - - Return an Iterator of the renderer types of all Renderer instances registered with this RenderKit that support components of the specified component type. - - If no Renderers support this component type, an empty Iterator is returned. - -jakarta.faces.render -RenderKit - - -java.lang.String - - - - -1977 -if componentType is null -jakarta.faces.render -RenderKit - - -java.lang.String - -java.lang.NullPointerException - - - -1978 - - - - - Return an Iterator of the renderer types of all Renderer instances registered with this RenderKit that support components of the specified UIComponent subclass. - - If no Renderers support this component class, an empty Iterator is returned. - -jakarta.faces.render -RenderKit - - -jakarta.faces.component.UIComponent - - - - -1979 -if component is null -jakarta.faces.render -RenderKit - - -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -1980 - -jakarta.faces.render -RenderKit - - - -1981 - - - - Register a new RenderKit instance, associated with the specified renderKitId, to be supported by this RenderKitFactory. - - This method may be called at any time, and makes the corresponding RenderKit instance available throughout the remaining lifetime of this web application. - -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.render.RenderKit - - - - -1982 -if a RenderKit with the specified renderKitId has already been registered -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.render.RenderKit - -java.lang.IllegalArgumentException - - - -1983 -if renderKitId or renderKit is null -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.render.RenderKit - -java.lang.NullPointerException - - - -1984 - - - Create (if needed) and return a RenderKit instance for the specified render kit identifier. - - The set of available render kit identifiers is available via the getRenderKitIds() method. Each call to getRenderKit() for the same renderKitId, from within the same web application, must return the same RenderKit instance. - -jakarta.faces.render -RenderKitFactory - - -java.lang.String - - - - -1985 -if no RenderKit instance can be returned for the specified identifier -jakarta.faces.render -RenderKitFactory - - -java.lang.String - -java.lang.IllegalArgumentException - - - -1986 -if renderKitId is null -jakarta.faces.render -RenderKitFactory - - -java.lang.String - -java.lang.NullPointerException - - - -1987 - - - - Create (if needed) and return a RenderKit instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specified FacesContext. - The set of available render kit identifiers is available via the getRenderKitIds() method. - -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.context.FacesContext - - - - -1988 -if no RenderKit instance can be returned for the specified identifier -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.context.FacesContext - -java.lang.IllegalArgumentException - - - -1989 -if renderKitId or context is null -jakarta.faces.render -RenderKitFactory - - -java.lang.String -jakarta.faces.context.FacesContext - -java.lang.NullPointerException - - - -1990 - - Return an Iterator over the set of render kit identifiers supported by this factory. - This set must include the value specified by RenderKitFactory.DEFAULT_RENDER_KIT. - -jakarta.faces.render -RenderKitFactory - - - -1991 - -jakarta.faces.render -RenderKitFactory - - - -1992 - - - Return the render kit identifier of the RenderKit instance (if any) associated with this Tree. - - -jakarta.faces.tree -Tree - - - -1993 - - - Return the root node of the component tree associated with this Tree. - - -jakarta.faces.tree -Tree - - - -1994 - - - Return the tree identifier for this Tree. - - -jakarta.faces.tree -Tree - - - -1995 - - - Set the render kit identifier of the RenderKit instance (if any) associated with this Tree. - - -jakarta.faces.tree -Tree - - -java.lang.String - - - - -1996 - -jakarta.faces.tree -Tree - - - -1997 - - - - Create (if needed) and return a Tree that is initialized with a root node, and whose renderKitId property is initialized to the identifier of the default jakarta.faces.render.RenderKit. - - -jakarta.faces.tree -TreeFactory - - -jakarta.faces.context.FacesContext -java.lang.String - - - - -1998 -if a Tree cannot be constructed for the specified parameters -jakarta.faces.tree -TreeFactory - - -jakarta.faces.context.FacesContext -java.lang.String - -jakarta.faces.FacesException - - - -1999 -if context or treeId is null -jakarta.faces.tree -TreeFactory - - -jakarta.faces.context.FacesContext -java.lang.String - -java.lang.NullPointerException - - - -2000 - -jakarta.faces.tree -TreeFactory - - - -2001 - - - Construct a Validator with no preconfigured limits. - - -jakarta.faces.validator -DoubleRangeValidator - - - -2002 - - - Construct a Validator with the specified preconfigured limit. - - -jakarta.faces.validator -DoubleRangeValidator - - -double - - - - -2003 - - - Construct a Validator with the specified preconfigured limits. - - -jakarta.faces.validator -DoubleRangeValidator - - -double -double - - - - -2004 - - - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - - -jakarta.faces.validator -DoubleRangeValidator - - - -2005 - - - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - - -jakarta.faces.validator -DoubleRangeValidator - - - -2006 - - Return a flag indicating whether a maximum limit has been set. - - -jakarta.faces.validator -DoubleRangeValidator - - - -2007 - - Return a flag indicating whether a minimum limit has been set. - - -jakarta.faces.validator -DoubleRangeValidator - - - -2008 - - - Set the maximum value to be enforced by this Validator. - - -jakarta.faces.validator -DoubleRangeValidator - - -double - - - - -2009 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -DoubleRangeValidator - - -double - -java.lang.IllegalArgumentException - - - -2010 - - - Set the minimum value to be enforced by this Validator. - - -jakarta.faces.validator -DoubleRangeValidator - - -double - - - - -2011 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -DoubleRangeValidator - - -double - -java.lang.IllegalArgumentException - - - -2012 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -DoubleRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2013 -if context or component is null -jakarta.faces.validator -DoubleRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2014 - - - Return the maximum length to be enforced by this Validator, if isMaximumSet() returns true. - - -jakarta.faces.validator -LengthValidator - - - -2015 - - - Return the minimum length to be enforced by this Validator, if isMinimumSet() returns true. - - -jakarta.faces.validator -LengthValidator - - - -2016 - - Return a flag indicating whether a maximum length has been set. - - -jakarta.faces.validator -LengthValidator - - - -2017 - - Return a flag indicating whether a minimum limit has been set. - - -jakarta.faces.validator -LengthValidator - - - -2018 - - - Construct a Validator with no preconfigured limits. - - -jakarta.faces.validator -LengthValidator - - - -2019 - - - Construct a Validator with the specified preconfigured limit. - - -jakarta.faces.validator -LengthValidator - - -int - - - - -2020 - - - Construct a Validator with the specified preconfigured limits. - - -jakarta.faces.validator -LengthValidator - - -int -int - - - - -2021 - - - Set the maximum length to be enforced by this Validator. - - -jakarta.faces.validator -LengthValidator - - -int - - - - -2022 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -LengthValidator - - -int - -java.lang.IllegalArgumentException - - - -2023 - - - Set the minimum length to be enforced by this Validator. - - -jakarta.faces.validator -LengthValidator - - -int - - - - -2024 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -LengthValidator - - -int - -java.lang.IllegalArgumentException - - - -2025 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -LengthValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2026 -if context or component is null -jakarta.faces.validator -LengthValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2027 - - - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - - -jakarta.faces.validator -LongRangeValidator - - - -2028 - - - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - - -jakarta.faces.validator -LongRangeValidator - - - -2029 - - Return a flag indicating whether a maximum limit has been set. - - -jakarta.faces.validator -LongRangeValidator - - - -2030 - - Return a flag indicating whether a minimum limit has been set. - - -jakarta.faces.validator -LongRangeValidator - - - -2031 - - - Construct a Validator with no preconfigured limits. - - -jakarta.faces.validator -LongRangeValidator - - - -2032 - - - Construct a Validator with the specified preconfigured limit. - - -jakarta.faces.validator -LongRangeValidator - - -long - - - - -2033 - - - Construct a Validator with the specified preconfigured limits. - - -jakarta.faces.validator -LongRangeValidator - - -long -long - - - - -2034 - - - Set the maximum value to be enforced by this Validator. - - -jakarta.faces.validator -LongRangeValidator - - -long - - - - -2035 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -LongRangeValidator - - -long - -java.lang.IllegalArgumentException - - - -2036 - - - Set the minimum value to be enforced by this Validator. - - -jakarta.faces.validator -LongRangeValidator - - -long - - - - -2037 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -LongRangeValidator - - -long - -java.lang.IllegalArgumentException - - - -2038 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -LongRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2039 -if context or component is null -jakarta.faces.validator -LongRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2040 - -jakarta.faces.validator -RequiredValidator - - - -2041 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -RequiredValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2042 -if context or component is null -jakarta.faces.validator -RequiredValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2043 - - - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - - -jakarta.faces.validator -StringRangeValidator - - - -2044 - - - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - - -jakarta.faces.validator -StringRangeValidator - - - -2045 - - Return a flag indicating whether a maximum limit has been set. - - -jakarta.faces.validator -StringRangeValidator - - - -2046 - - Return a flag indicating whether a minimum limit has been set. - - -jakarta.faces.validator -StringRangeValidator - - - -2047 - - - Set the maximum value to be enforced by this Validator. - - -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - - - - -2048 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - -java.lang.IllegalArgumentException - - - -2049 -if maximum is null -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - -java.lang.NullPointerException - - - -2050 - - - Set the minimum value to be enforced by this Validator. - - -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - - - - -2051 -if a specified maximum value is less than a specified minimum value -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - -java.lang.IllegalArgumentException - - - -2052 -if minimum is null -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - -java.lang.NullPointerException - - - -2053 - - - Construct a Validator with no preconfigured limits. - - -jakarta.faces.validator -StringRangeValidator - - - -2054 - - - Construct a Validator with the specified preconfigured limit. - - -jakarta.faces.validator -StringRangeValidator - - -java.lang.String - - - - -2055 - - - Construct a Validator with the specified preconfigured limits. - - -jakarta.faces.validator -StringRangeValidator - - -java.lang.String -java.lang.String - - - - -2056 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -StringRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2057 -if context or component is null -jakarta.faces.validator -StringRangeValidator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2058 - - - - Perform the correctness checks implemented by this Validator against the specified UIComponent. - - - - - If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - -jakarta.faces.validator -Validator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - - - - -2059 -if context or component is null -jakarta.faces.validator -Validator - - -jakarta.faces.context.FacesContext -jakarta.faces.component.UIComponent - -java.lang.NullPointerException - - - -2060 - -jakarta.faces.webapp -AttributeTag - - - -2061 - - - - - Register the specified attribute name and value with the UIComponent instance associated with our most immediately surrounding FacesTag instance, if this UIComponent does not already have a value for the specified attribute name. - - -jakarta.faces.webapp -AttributeTag - - - -2062 -if a JSP error occurs -jakarta.faces.webapp -AttributeTag - -JspException - - - -2063 - - Release references to any acquired resources. - -jakarta.faces.webapp -AttributeTag - - - -2064 - - Set the attribute name. - - -jakarta.faces.webapp -AttributeTag - - -java.lang.String - - - - -2065 - - Set the attribute value. - - -jakarta.faces.webapp -AttributeTag - - -java.lang.String - - - - -2066 - - Handle the ending of the nested body content for this tag. - The default implementation simply calls getDoAfterBodyValue() to retrieve the flag value to be returned. - -jakarta.faces.webapp -FacesBodyTag - - - -2067 -if an error is encountered -jakarta.faces.webapp -FacesBodyTag - -JspException - - - -2068 - - Prepare for evaluation of the body. - This method is invoked by the JSP page implementation object after setBodyContent() and before the first time the body is to be evaluated. This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - -jakarta.faces.webapp -FacesBodyTag - - - -2069 -if an error is encountered -jakarta.faces.webapp -FacesBodyTag - -JspException - - - -2070 - -jakarta.faces.webapp -FacesBodyTag - - - -2071 - - Return the BodyContent for this tag handler. - - -jakarta.faces.webapp -FacesBodyTag - - - -2072 - - Get the JspWriter from our BodyContent. - - -jakarta.faces.webapp -FacesBodyTag - - - -2073 - - Release any resources allocated during the execution of this tag handler. - - -jakarta.faces.webapp -FacesBodyTag - - - -2074 - - Set the bodyContent for this tag handler. - This method is invoked by the JSP page implementation object at most once per action invocation, before doInitiBody(). This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - -jakarta.faces.webapp -FacesBodyTag - - -BodyContent - - - - -2075 - - - Render the ending of the UIComponent that is associated with this tag (via the id attribute), by following these steps. - If the rendersChildren property of this component is true, call the encodeChildren() method of the component. Call the encodeEnd() method of the component. Release all references to the component, and pop it from the component stack for this response, removing the stack if this was the outermost component. The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses may override if they do not want the default value. - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2076 -if an error occurs -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - -JspException - - - -2077 - - - Render the beginning of the UIComponent that is associated with this tag (via the id attribute), by following these steps. - - - Ensure that an appropriate ResponseWriter is associated with the current FacesContext. This ensures that encoded output from the components is routed through the JspWriter for the current page. Locate the component (in the component tree) corresponding to this tag, creating a new one if necesary. Override the attributes of the associated component with values set in our custom tag attributes, if values for the corresponding attributes are NOT already set on the component. Push this component onto the stack of components corresponding to nested component tags for the current response, creating the stack if necessary. Call the encodeBegin() method of the component. The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses may override if they do not want the default value. - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2078 -if an error occurs -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - -JspException - - - -2079 - - - Return the UIComponent instance that is associated with this tag instance. - This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2080 - - Return true if we dynamically created a new component instance during execution of this tag. - This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2081 - - Return the Tag that is the parent of this instance. - - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2082 - - Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. - Subclasses must override this method to return the appropriate value. - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - -2083 - - Set the component identifier for our component. - - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - -java.lang.String - - - - -2084 - - Set the PageContext of the page containing this tag instance. - - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - -PageContext - - - - -2085 - - Set the Tag that is the parent of this instance. - In addition, locate the closest enclosing FacesTag and increment its numChildren counter. Finally, save our childIndex as (enclosingFacesTag.numChildren - 1). - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - -Tag - - - - -2086 - - Set an override for the rendered attribute. - - -jakarta.faces.webapp -FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - -boolean - - - - -2087 - - Release all resources acquired at startup time. - - -jakarta.faces.webapp -FacesServlet - - - -2088 - -jakarta.faces.webapp -FacesServlet - - - -2089 - - Return the ServletConfig instance for this servlet. - - -jakarta.faces.webapp -FacesServlet - - - -2090 - - Return information about this Servlet. - - -jakarta.faces.webapp -FacesServlet - - - -2091 - - Acquire the factory instances we will require. - - -jakarta.faces.webapp -FacesServlet - - -ServletConfig - - - - -2092 - -jakarta.faces.webapp -FacesServlet - - -ServletConfig - -ServletException - - - -2093 - - Process an incoming request, and create the corresponding response, by executing the request processing lifecycle. - - -jakarta.faces.webapp -FacesServlet - - -ServletRequest -ServletResponse - - - - -2094 -if an input/output error occurs during processing -jakarta.faces.webapp -FacesServlet - - -ServletRequest -ServletResponse - -java.io.IOException - - - -2095 -if a servlet error occurs during processing -jakarta.faces.webapp -FacesServlet - - -ServletRequest -ServletResponse - -ServletException - - - -2096 - - - Render the ending of the UIComponent that is associated with this tag (via the id attribute), by following these steps. - If the rendersChildren property of this component is true, call the encodeChildren() method of the component. Call the encodeEnd() method of the component. Release all references to the component, and pop it from the component stack for this response, removing the stack if this was the outermost component. The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses may override if they do not want the default value. - -jakarta.faces.webapp -FacesTag - - - -2097 -if an error occurs -jakarta.faces.webapp -FacesTag - -JspException - - - -2098 - - - Render the beginning of the UIComponent that is associated with this tag (via the id attribute), by following these steps. - - - Ensure that an appropriate ResponseWriter is associated with the current FacesContext. This ensures that encoded output from the components is routed through the JspWriter for the current page. Locate the component (in the component tree) corresponding to this tag, creating a new one if necesary. Override the attributes of the associated component with values set in our custom tag attributes, if values for the corresponding attributes are NOT already set on the component. Push this component onto the stack of components corresponding to nested component tags for the current response, creating the stack if necessary. Call the encodeBegin() method of the component. The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses may override if they do not want the default value. - -jakarta.faces.webapp -FacesTag - - - -2099 -if an error occurs -jakarta.faces.webapp -FacesTag - -JspException - - - -2100 - -jakarta.faces.webapp -FacesTag - - - -2101 - - - Return the UIComponent instance that is associated with this tag instance. - This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - -jakarta.faces.webapp -FacesTag - - - -2102 - - Return true if we dynamically created a new component instance during execution of this tag. - This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - -jakarta.faces.webapp -FacesTag - - - -2103 - - Return the Tag that is the parent of this instance. - - -jakarta.faces.webapp -FacesTag - - - -2104 - - Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. - Subclasses must override this method to return the appropriate value. - -jakarta.faces.webapp -FacesTag - - - -2105 - - Release any resources allocated during the execution of this tag handler. - - -jakarta.faces.webapp -FacesTag - - - -2106 - - Set the component identifier for our component. - - -jakarta.faces.webapp -FacesTag - - -java.lang.String - - - - -2107 - - Set the PageContext of the page containing this tag instance. - - -jakarta.faces.webapp -FacesTag - - -PageContext - - - - -2108 - - Set the Tag that is the parent of this instance. - In addition, locate the closest enclosing FacesTag and increment its numChildren counter. Finally, save our childIndex as (enclosingFacesTag.numChildren - 1). - -jakarta.faces.webapp -FacesTag - - -Tag - - - - -2109 - - Set an override for the rendered attribute. - - -jakarta.faces.webapp -FacesTag - - -boolean - - - - -2110 - -jakarta.faces.webapp -FacetTag - - - -2111 - -jakarta.faces.webapp -FacetTag - -JspException - - - -2112 - -jakarta.faces.webapp -FacetTag - - - -2113 - -jakarta.faces.webapp -FacetTag - -JspException - - - -2114 - -jakarta.faces.webapp -FacetTag - - - -2115 - -jakarta.faces.webapp -FacetTag - - - -2116 - -jakarta.faces.webapp -FacetTag - - - -2117 - -jakarta.faces.webapp -FacetTag - - -java.lang.String - - - - -2118 - - Close the underlying writer. - - -jakarta.faces.webapp -JspResponseWriter - - - -2119 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - -java.io.IOException - - - -2120 - - Flush the underlying writer's buffer, if any. - - -jakarta.faces.webapp -JspResponseWriter - - - -2121 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - -java.io.IOException - - - -2122 - - Create a JspResponseWriter that wraps the specified PageContext. - - -jakarta.faces.webapp -JspResponseWriter - - -PageContext - - - - -2123 - - Write an array of characters. - - -jakarta.faces.webapp -JspResponseWriter - - -char[] - - - - -2124 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - - -char[] - -java.io.IOException - - - -2125 - - Write a portion of an array of characters. - - -jakarta.faces.webapp -JspResponseWriter - - -char[] -int -int - - - - -2126 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - - -char[] -int -int - -java.io.IOException - - - -2127 - - Write a single character from the low-order 16 bits of the specified integer. - - -jakarta.faces.webapp -JspResponseWriter - - -int - - - - -2128 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - - -int - -java.io.IOException - - - -2129 - - Write a String of characters. - - -jakarta.faces.webapp -JspResponseWriter - - -java.lang.String - - - - -2130 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - - -java.lang.String - -java.io.IOException - - - -2131 - - Write a portion of a String of characters. - - -jakarta.faces.webapp -JspResponseWriter - - -java.lang.String -int -int - - - - -2132 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter - - -java.lang.String -int -int - -java.io.IOException - - - -2133 - - Write whatever text should end a response. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - -2134 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - -java.io.IOException - - - -2135 - - Write the end of an element, after closing any open element created by a call to startElement(). - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - - - - -2136 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.io.IOException - - - -2137 -if name is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.lang.NullPointerException - - - -2138 - - Write whatever text should begin a response. - - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - -2139 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - -java.io.IOException - - - -2140 - - Write the start of an element, up to and including the element name. - Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - - - - -2141 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.io.IOException - - - -2142 -if name is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.lang.NullPointerException - - - -2143 - - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - - - - -2144 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -2145 -if this method is called when there is no currently open element -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -2146 -if name or value is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -2147 - - Write a comment containing the specified text, after converting that text to a String if necessary. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - - - - -2148 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.io.IOException - - - -2149 -if comment is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.lang.NullPointerException - - - -2150 - - Write an object (after converting it to a String, if necessary), after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - - - - -2151 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.io.IOException - - - -2152 -if text is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.lang.NullPointerException - - - -2153 - - Write a single character, after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char - - - - -2154 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char - -java.io.IOException - - - -2155 - - Write text from a character array, after escaping it properly. - This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - - - - -2156 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - -java.io.IOException - - - -2157 -if text is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - -java.lang.NullPointerException - - - -2158 - - Write text from a character array, after escaping it properly for this method. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - - - - -2159 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.io.IOException - - - -2160 -if the calculated starting or ending position is outside the bounds of the character array -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.lang.IndexOutOfBoundsException - - - -2161 -if text is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.lang.NullPointerException - - - -2162 - - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - - - - -2163 -if an input/output error occurs -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -2164 -if this method is called when there is no currently open element -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -2165 -if name or value is null -jakarta.faces.webapp -JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -2166 - - Close the underlying writer. - - -jakarta.faces.webapp -ServletResponseWriter - - - -2167 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - -java.io.IOException - - - -2168 - - Flush the underlying writer's buffer, if any. - - -jakarta.faces.webapp -ServletResponseWriter - - - -2169 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - -java.io.IOException - - - -2170 - - Create a ServletResponseWriter that wraps the specified PrintWriter. - - -jakarta.faces.webapp -ServletResponseWriter - - -java.io.PrintWriter - - - - -2171 - - Write an array of characters. - - -jakarta.faces.webapp -ServletResponseWriter - - -char[] - - - - -2172 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - - -char[] - -java.io.IOException - - - -2173 - - Write a portion of an array of characters. - - -jakarta.faces.webapp -ServletResponseWriter - - -char[] -int -int - - - - -2174 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - - -char[] -int -int - -java.io.IOException - - - -2175 - - Write a single character from the low-order 16 bits of the specified integer. - - -jakarta.faces.webapp -ServletResponseWriter - - -int - - - - -2176 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - - -int - -java.io.IOException - - - -2177 - - Write a String of characters. - - -jakarta.faces.webapp -ServletResponseWriter - - -java.lang.String - - - - -2178 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - - -java.lang.String - -java.io.IOException - - - -2179 - - Write a portion of a String of characters. - - -jakarta.faces.webapp -ServletResponseWriter - - -java.lang.String -int -int - - - - -2180 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter - - -java.lang.String -int -int - -java.io.IOException - - - -2181 - - Write whatever text should end a response. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - -2182 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - -java.io.IOException - - - -2183 - - Write the end of an element, after closing any open element created by a call to startElement(). - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - - - - -2184 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.io.IOException - - - -2185 -if name is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.lang.NullPointerException - - - -2186 - - Write whatever text should begin a response. - - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - -2187 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - -java.io.IOException - - - -2188 - - Write the start of an element, up to and including the element name. - Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - - - - -2189 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.io.IOException - - - -2190 -if name is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String - -java.lang.NullPointerException - - - -2191 - - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - - - - -2192 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -2193 -if this method is called when there is no currently open element -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -2194 -if name or value is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -2195 - - Write a comment containing the specified text, after converting that text to a String if necessary. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - - - - -2196 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.io.IOException - - - -2197 -if comment is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.lang.NullPointerException - - - -2198 - - Write an object (after converting it to a String, if necessary), after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - - - - -2199 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.io.IOException - - - -2200 -if text is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.Object - -java.lang.NullPointerException - - - -2201 - - Write a single character, after escaping it properly. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char - - - - -2202 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char - -java.io.IOException - - - -2203 - - Write text from a character array, after escaping it properly. - This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - - - - -2204 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - -java.io.IOException - - - -2205 -if text is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] - -java.lang.NullPointerException - - - -2206 - - Write text from a character array, after escaping it properly for this method. - If there is an open element that has been created by a call to startElement(), that element will be closed first. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - - - - -2207 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.io.IOException - - - -2208 -if the calculated starting or ending position is outside the bounds of the character array -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.lang.IndexOutOfBoundsException - - - -2209 -if text is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -char[] -int -int - -java.lang.NullPointerException - - - -2210 - - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). - This method may only be called after a call to startElement(), and before the opened element has been closed. - -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - - - - -2211 -if an input/output error occurs -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.io.IOException - - - -2212 -if this method is called when there is no currently open element -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.IllegalStateException - - - -2213 -if name or value is null -jakarta.faces.webapp -ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - -java.lang.String -java.lang.Object - -java.lang.NullPointerException - - - -2214 - - - - - - Create a new instance of the specified Validator class, and register it with the UIComponent instance associated with our most immediately surrounding FacesTag instance, if the UIComponent instance was created by this execution of the containing JSP page. - - -jakarta.faces.webapp -ValidatorTag - - - -2215 -if a JSP error occurs -jakarta.faces.webapp -ValidatorTag - -JspException - - - -2216 - - Release references to any acquired resources. - -jakarta.faces.webapp -ValidatorTag - - - -2217 - - - Set the fully qualified class name of the Validator instance to be created. - -jakarta.faces.webapp -ValidatorTag - - -java.lang.String - - - - -2218 - -jakarta.faces.webapp -ValidatorTag - - - - diff --git a/internal/docs/jsf/JSFJavadocAssertions_4.0.xml b/internal/docs/jsf/JSFJavadocAssertions_4.0.xml deleted file mode 100644 index 5b6f4f0130..0000000000 --- a/internal/docs/jsf/JSFJavadocAssertions_4.0.xml +++ /dev/null @@ -1,66452 +0,0 @@ - - - - - 6056 - 2219 - FACES - Jakarta Faces 4.0 - Jakarta Faces - 4.0 - - - - - - 1 - Construct a new exception with no detail message or root cause. - jakarta.faces - FacesException - - - - 2 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces - FacesException - - - java.lang.String - - - - - 3 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces - FacesException - - - java.lang.Throwable - - - - - 4 - Construct a new exception with the specified detail message and root cause. - jakarta.faces - FacesException - - - java.lang.String - java.lang.Throwable - - - - - 5 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces - FacesException - - - - 7 - if the web application class loader cannot be identified - jakarta.faces - FactoryFinder - - - java.lang.String - - jakarta.faces.FacesException - - - - 12 - if the web application class loader cannot be identified - jakarta.faces - FactoryFinder - - jakarta.faces.FacesException - - - - 15 - - jakarta.faces.application - Application - - - - 33 - Create (if needed) and return an Application instance for this web application. - jakarta.faces.application - ApplicationFactory - - - - 34 - Replace the Application instance that will be returned for this web application. - jakarta.faces.application - ApplicationFactory - - - jakarta.faces.application.Application - - - - - 37 - - jakarta.faces.application - NavigationHandler - - - - 91 - Create a new UICommand instance with default property values. - jakarta.faces.component - UICommand - - - - 207 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 210 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 213 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 234 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIComponent - - - - 238 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIComponent - - - - 270 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIComponent - - - boolean - - - - - 271 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - 302 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 305 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 308 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - 329 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIComponentBase - - - - 333 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIComponentBase - - - - 365 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIComponentBase - - - boolean - - - - - 366 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - 376 - Create a new UIForm instance with default property values. - jakarta.faces.component - UIForm - - - - 474 - Create a new UIGraphic instance with default property values. - jakarta.faces.component - UIGraphic - - - - 589 - Create a new UIInput instance with default property values. - jakarta.faces.component - UIInput - - - - 803 - Create a new UIOutput instance with default property values. - jakarta.faces.component - UIOutput - - - - 900 - Create a new UIPanel instance with default property values. - jakarta.faces.component - UIPanel - - - - 1003 - Return the optional parameter name for this parameter. - jakarta.faces.component - UIParameter - - - - 1005 - Set the optional parameter name for this parameter. - jakarta.faces.component - UIParameter - - - java.lang.String - - - - - 1006 - Create a new UIParameter instance with default property values. - jakarta.faces.component - UIParameter - - - - 1111 - Create a new UISelectBoolean instance with default property values. - jakarta.faces.component - UISelectBoolean - - - - 1222 - Return the description for this selection item. - jakarta.faces.component - UISelectItem - - - - 1223 - Return the localized label for this selection item. - jakarta.faces.component - UISelectItem - - - - 1226 - Set the description for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.String - - - - - 1227 - Set the localized label for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.String - - - - - 1438 - Create a new UISelectMany instance with default property values. - jakarta.faces.component - UISelectMany - - - - 1562 - Create a new UISelectOne instance with default property values. - jakarta.faces.component - UISelectOne - - - - 1695 - Return the ResponseStream to which components should direct their binary output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - FacesContext - - - - 1696 - Return the ResponseWriter to which components should direct their character-based output. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - FacesContext - - - - 1705 - Set the ResponseStream to which components should direct their binary output. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseStream - - - - - 1707 - Set the ResponseWriter to which components should direct their character-based output. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseWriter - - - - - 1749 - - jakarta.faces.context - ResponseStream - - - - 1760 - Write whatever text should end a response. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - - 1761 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - 1763 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - 1765 - - jakarta.faces.context - ResponseWriter - - - - 1766 - Write whatever text should begin a response. - jakarta.faces.context - ResponseWriter - - - - 1767 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - 1776 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.io.IOException - - - - 1787 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.io.IOException - - - - 1811 - Convert the specified model object value, which is associated with the specified UIComponent, into a String that is suitable for being included in the response generated during the Render Response phase of the request processing lifeycle. - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - 1814 - Construct a new exception with no detail message or root cause. - jakarta.faces.convert - ConverterException - - - - 1815 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.convert - ConverterException - - - java.lang.String - - - - - 1816 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.convert - ConverterException - - - java.lang.Throwable - - - - - 1817 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.convert - ConverterException - - - java.lang.String - java.lang.Throwable - - - - - 1896 - Invoked when the action described by the specified ActionEvent occurs. - jakarta.faces.event - ActionListener - - - jakarta.faces.event.ActionEvent - - - - - 1899 - Construct a new event object from the specified source component. - jakarta.faces.event - FacesEvent - - - jakarta.faces.component.UIComponent - - - - - 1900 - Return the source UIComponent that sent this event. - jakarta.faces.event - FacesEvent - - - - 1902 - Compare this PhaseId instance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. - jakarta.faces.event - PhaseId - - - java.lang.Object - - - - - 1903 - Return the ordinal value of this PhaseId instance. - jakarta.faces.event - PhaseId - - - - 1904 - Return a String representation of this PhaseId instance. - jakarta.faces.event - PhaseId - - - - 1913 - if thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - 1916 - - jakarta.faces.lifecycle - Lifecycle - - - - 1920 - Register a new Lifecycle instance, associated with the specified lifecycleId, to be supported by this LifecycleFactory. This method may be called at any time, and makes the corresponding Lifecycle instance available throughout the remaining lifetime of this web application. - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - - - - 1923 - Create (if needed) and return a Lifecycle instance for the specified lifecycle identifier. The set of available lifecycle identifiers is available via the getLifecycleIds() method. Each call to getLifecycle() for the same lifecycleId, from within the same web application, must return the same Lifecycle instance. - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - - - - 1926 - Return an Iterator over the set of lifecycle identifiers supported by this factory. This set must include the value specified by LifecycleFactory.DEFAULT_LIFECYCLE. - jakarta.faces.lifecycle - LifecycleFactory - - - - 1936 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - 1938 - Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property of this component is true. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - 1939 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - 1941 - Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - 1942 - if an input/output error occurs while rendering - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - 1960 - - jakarta.faces.render - Renderer - - - - 1980 - - jakarta.faces.render - RenderKit - - - - 2001 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - DoubleRangeValidator - - - - 2002 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - 2003 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - DoubleRangeValidator - - - double - double - - - - - 2008 - Set the maximum value to be enforced by this Validator. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - 2010 - Set the minimum value to be enforced by this Validator. - jakarta.faces.validator - DoubleRangeValidator - - - double - - - - - 2018 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - LengthValidator - - - - 2019 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - LengthValidator - - - int - - - - - 2020 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - LengthValidator - - - int - int - - - - - 2021 - Set the maximum length to be enforced by this Validator. - jakarta.faces.validator - LengthValidator - - - int - - - - - 2023 - Set the minimum length to be enforced by this Validator. - jakarta.faces.validator - LengthValidator - - - int - - - - - 2031 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - LongRangeValidator - - - - 2032 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - 2033 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - LongRangeValidator - - - long - long - - - - - 2034 - Set the maximum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - 2036 - Set the minimum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - long - - - - - 2040 - - jakarta.faces.validator - RequiredValidator - - - - 2087 - Release all resources acquired at startup time. - jakarta.faces.webapp - FacesServlet - - - - 2088 - - jakarta.faces.webapp - FacesServlet - - - - 2090 - Return information about this Servlet. - jakarta.faces.webapp - FacesServlet - - - - - - - - 32 - - jakarta.faces.application - ApplicationFactory - - - - - 1712 - - jakarta.faces.context - FacesContextFactory - - - - - 1927 - - jakarta.faces.lifecycle - LifecycleFactory - - - - - 1991 - - jakarta.faces.render - RenderKitFactory - - - - - - - - - - - - - - - - 6__OLD - Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified JavaServer Faces factory class, based on the discovery algorithm described in the class description. - jakarta.faces - FactoryFinder - - - java.lang.String - - - - - - 6 - Create (if necessary) and return a per-web-application instance of the appropriate implementation class for the specified Jakarta Faces factory class, based on the discovery algorithm described in the class description. The standard injectionProvider and wrappers in Jakarta Faces all implement the interface FacesWrapper. If the returned Object is an implementation of one of the standard injectionProvider, it must be legal to cast it to an instance of FacesWrapper and call FacesWrapper#getWrapped on the instance. - jakarta.faces - FactoryFinder - - - java.lang.String - - - - - - - 11__OLD - Release any references to factory instances associated with the class loader for the calling web application. This method should be called as apart of web application shutdown in a container where the JavaServer Faces API classes are part of the container itself, rather than being included inside the web application. - jakarta.faces - FactoryFinder - - - - - 11 - Release any references to factory instances associated with the class loader for the calling web application. This method must be called during of web application shutdown. - jakarta.faces - FactoryFinder - - - - - - 16__OLD - Return the ActionListener that will be the default ActionListener to be registered with relevant components during the Reconstitute Component Tree phase of the request processing lifecycle. The default implementation will perform the following functions: The getPhaseId() method of this listener instance must return PhaseId.INVOKE_APPLICATION. If the source component has a non-null action property, return that value. If the source component has a non-null actionRef property, evaluate this value reference to retrieve the corresponding object. If there is no such corresponding object, or if this object does not implement Action, throw an IllegalArgumentException. Call the invoke() method of the returned object, and return the return value from that method call. - jakarta.faces.application - Application - - - - - 16 - Return the default ActionListener to be registered for all jakarta.faces.component.ActionSource components in this application. If not explicitly set, a default implementation must be provided that performs the functions as specified in the section 7.1.1 "ActionListener Property" in the chapter 7 "Application Integration" of the Jakarta Faces Specification Document. Note that the specification for the default ActionListener contiues to call for the use of a deprecated property (action) and class (MethodBinding). Unfortunately, this is necessary because the default ActionListener must continue to work with components that do not implement jakarta.faces.component.ActionSource2, and only implement jakarta.faces.component.ActionSource. - jakarta.faces.application - Application - - - - - - 17__OLD - Return the NavigationHandler instance that will be passed the outcome returned by any invoked Action for this web application. The default implementation must provide the behavior described in the NavigationHandler class description. - jakarta.faces.application - Application - - - - - 17 - Return the NavigationHandler instance that will be passed the outcome returned by any invoked application action for this web application. If not explicitly set, a default implementation must be provided that performs the functions described in the NavigationHandler class description. The NavigationHandler implementation is declared in the application configuration resources by giving the fully qualified class name as the value of the element within the element. The runtime must employ the decorator pattern as for every other pluggable artifact in Jakarta Faces. - jakarta.faces.application - Application - - - - - - 23__OLD - Replace the default ActionListener that will be registered with relevant components during the Reconstitute Component Tree phase of the requset processing lifecycle. This listener must return PhaseId.INVOKE_APPLICATION from its getPhaseId() method. - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - - - - - 23 - Set the default ActionListener to be registered for all jakarta.faces.component.ActionSource components. - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - - - - - - 26__OLD - Set the NavigationHandler instance that will be passed the outcome returned by any invoked Action for this web application. - jakarta.faces.application - Application - - - jakarta.faces.application.NavigationHandler - - - - - - 26 - Set the NavigationHandler instance that will be passed the outcome returned by any invoked application action for this web application. - jakarta.faces.application - Application - - - jakarta.faces.application.NavigationHandler - - - - - - - 74__OLD - Add a new ActionListener to the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - - 74 - - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - - - 86__OLD - Remove an existing ActionListener (if any) from the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - - 86 - - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - - - - - - 203__OLD - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 203 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 206__OLD - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 206 - If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. Call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call jakarta.faces.application.Application#publishEvent, passing jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered property is false, call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and return immediately. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 209__OLD - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 209 - If our rendered property is true, render the child UIComponents of this UIComponent. This method will only be called if the rendersChildren property is true. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this UIComponent, iterate over each of the children of this component and call #encodeAll(jakarta.faces.context.FacesContext). - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 212__OLD - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 212 - If our rendered property is true, render the ending of the current state of this UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. before returning regardless of the value of the rendered property. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 215__OLD - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 215 - Search for and return the UIComponent with an id that matches the specified search expression (if any), according to the algorithm described below. WARNING: The found UIComponent instance, if any, is returned without regard for its tree traversal context. Retrieving an Jakarta Expression Language-bound attribute from the component is not safe. Jakarta Expression Language expressions can contain implicit objects, such as #{component}, which assume they are being evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of implicit objects outside of a tree traversal context produces undefined results. See #invokeOnComponent for a method that does correctly account for the tree traversal context when operating on the found UIComponent instance. #invokeOnComponent is also useful to find components given a simple clientId. Component identifiers are required to be unique within the scope of the closest ancestor NamingContainer that encloses this component (which might be this component itself). If there are no NamingContainer components in the ancestry of this component, the root component in the tree is treated as if it were a NamingContainer, whether or not its class actually implements the NamingContainer interface. A search expression consists of either an identifier (which is matched exactly against the id property of a UIComponent, or a series of such identifiers linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should operates as follows, though alternate alogrithms may be used as long as the end result is the same: Identify the UIComponent that will be the base for searching, by stopping as soon as one of the following conditions is met: If the search expression begins with the the separator character (called an "absolute" search expression), the base will be the root UIComponent of the component tree. The leading separator character will be stripped off, and the remainder of the search expression will be treated as a "relative" search expression as described below. Otherwise, if this UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no NamingContainer is encountered) the root UIComponent will be the base. The search expression (possibly modified in the previous step) is now a "relative" search expression that will be used to locate the component (if any) that has an id that matches, within the scope of the base component. The match is performed as follows: If the search expression is a simple identifier, this value is compared to the id property, and then recursively through the facets and children of the base UIComponent (except that if a descendant NamingContainer is found, its own facets and children are not searched). If the search expression includes more than one identifier separated by the separator character, the first identifier is used to locate a NamingContainer by the rules in the previous bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the remainder of the search expression. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - - 222__OLD - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIComponent - - - - - 222 - Return the number of child UIComponents that are associated with this UIComponent. If there are no children, this method must return 0. The method must not cause the creation of a child component list. - jakarta.faces.component - UIComponent - - - - - - 224__OLD - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 224 - Return a client-side identifier for this component, generating one if necessary. The associated Renderer, if any, will be asked to convert the clientId to a form suitable for transmission to the client. The return from this method must be the same value throughout the lifetime of the instance, unless the id property of the component is changed, or the component is placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these cases, consecutive calls to this method must always return the same value. The implementation must follow these steps in determining the clientId: Find the closest ancestor to this component in the view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the result as the parentId local variable. Call #getId on this component and save the result as the myId local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + myId. Call Renderer#convertClientId, passing myId, and return the result. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 229__OLD - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 229 - Convenience method to return the named facet, if it exists, or null otherwise. If the requested facet does not exist, the facets Map must not be created. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - - 232__OLD - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIComponent - - - - - 232 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. The returned Iterator must not support the remove() operation. - jakarta.faces.component - UIComponent - - - - - - 233__OLD - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIComponent - - - - - 233 - Return the parent UIComponent of this UIComponent, if any. A component must allow child components to be added to and removed from the list of children of this component, even though the child component returns null from getParent( ). - jakarta.faces.component - UIComponent - - - - - - 235__OLD - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIComponent - - - - - 235 - Return a flag indicating whether this component is responsible for rendering its child components. The default implementation in UIComponentBase#getRendersChildren tries to find the renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the result. If it doesn't, it returns false. As of version 1.2 of the Jakarta Faces Specification, component authors are encouraged to return true from this method and rely on UIComponentBase#encodeChildren. - jakarta.faces.component - UIComponent - - - - - - 240__OLD - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 240 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. Call #popComponentFromEL from inside of a finally block, just before returning. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 246__OLD - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 246 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 248__OLD - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 248 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - - 269__OLD - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - 269 - Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, for this node, and then the children of this node. Then, once the re-parenting has occurred, a jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for the node's children, but only if any of the following conditions are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - - 298__OLD - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 298 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 301__OLD - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 301 - If our rendered property is true, render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. Call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call jakarta.faces.application.Application#publishEvent, passing jakarta.faces.event.PreRenderComponentEvent.class as the first argument and the component instance to be rendered as the second argument. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeBegin(FacesContext, UIComponent). If our rendered property is false, call #pushComponentToEL(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and return immediately. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 304__OLD - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 304 - If our rendered property is true, render the child UIComponents of this UIComponent. This method will only be called if the rendersChildren property is true. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeChildren(FacesContext, UIComponent). If no Renderer is associated with this UIComponent, iterate over each of the children of this component and call #encodeAll(jakarta.faces.context.FacesContext). - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 307__OLD - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 307 - If our rendered property is true, render the ending of the current state of this UIComponent. If a Renderer is associated with this UIComponent, the actual encoding will be delegated to Renderer#encodeEnd(FacesContext, UIComponent). Call UIComponent#popComponentFromEL. before returning regardless of the value of the rendered property. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 310__OLD - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 310 - Search for and return the UIComponent with an id that matches the specified search expression (if any), according to the algorithm described below. WARNING: The found UIComponent instance, if any, is returned without regard for its tree traversal context. Retrieving an Jakarta Expression Language-bound attribute from the component is not safe. Jakarta Expression Language expressions can contain implicit objects, such as #{component}, which assume they are being evaluated within the scope of a tree traversal context. Evaluating expressions with these kinds of implicit objects outside of a tree traversal context produces undefined results. See #invokeOnComponent for a method that does correctly account for the tree traversal context when operating on the found UIComponent instance. #invokeOnComponent is also useful to find components given a simple clientId. Component identifiers are required to be unique within the scope of the closest ancestor NamingContainer that encloses this component (which might be this component itself). If there are no NamingContainer components in the ancestry of this component, the root component in the tree is treated as if it were a NamingContainer, whether or not its class actually implements the NamingContainer interface. A search expression consists of either an identifier (which is matched exactly against the id property of a UIComponent, or a series of such identifiers linked by the UINamingContainer#getSeparatorChar character value. The search algorithm should operates as follows, though alternate alogrithms may be used as long as the end result is the same: Identify the UIComponent that will be the base for searching, by stopping as soon as one of the following conditions is met: If the search expression begins with the the separator character (called an "absolute" search expression), the base will be the root UIComponent of the component tree. The leading separator character will be stripped off, and the remainder of the search expression will be treated as a "relative" search expression as described below. Otherwise, if this UIComponent is a NamingContainer it will serve as the basis. Otherwise, search up the parents of this component. If a NamingContainer is encountered, it will be the base. Otherwise (if no NamingContainer is encountered) the root UIComponent will be the base. The search expression (possibly modified in the previous step) is now a "relative" search expression that will be used to locate the component (if any) that has an id that matches, within the scope of the base component. The match is performed as follows: If the search expression is a simple identifier, this value is compared to the id property, and then recursively through the facets and children of the base UIComponent (except that if a descendant NamingContainer is found, its own facets and children are not searched). If the search expression includes more than one identifier separated by the separator character, the first identifier is used to locate a NamingContainer by the rules in the previous bullet point. Then, the findComponent() method of this NamingContainer will be called, passing the remainder of the search expression. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - - 317__OLD - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIComponentBase - - - - - 317 - Return the number of child UIComponents that are associated with this UIComponent. If there are no children, this method must return 0. The method must not cause the creation of a child component list. - jakarta.faces.component - UIComponentBase - - - - - - 319__OLD - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 319 - Return a client-side identifier for this component, generating one if necessary. The associated Renderer, if any, will be asked to convert the clientId to a form suitable for transmission to the client. The return from this method must be the same value throughout the lifetime of the instance, unless the id property of the component is changed, or the component is placed in a NamingContainer whose client ID changes (for example, UIData). However, even in these cases, consecutive calls to this method must always return the same value. The implementation must follow these steps in determining the clientId: Find the closest ancestor to this component in the view hierarchy that implements NamingContainer. Call getContainerClientId() on it and save the result as the parentId local variable. Call #getId on this component and save the result as the myId local variable. If myId is null, call context.getViewRoot().createUniqueId() and assign the result to myId. If parentId is non-null, let myId equal parentId + UINamingContainer#getSeparatorChar + myId. Call Renderer#convertClientId, passing myId, and return the result. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 324__OLD - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 324 - Convenience method to return the named facet, if it exists, or null otherwise. If the requested facet does not exist, the facets Map must not be created. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - - 327__OLD - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIComponentBase - - - - - 327 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. The returned Iterator must not support the remove() operation. - jakarta.faces.component - UIComponentBase - - - - - - 328__OLD - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIComponentBase - - - - - 328 - Return the parent UIComponent of this UIComponent, if any. A component must allow child components to be added to and removed from the list of children of this component, even though the child component returns null from getParent( ). - jakarta.faces.component - UIComponentBase - - - - - - 330__OLD - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIComponentBase - - - - - 330 - Return a flag indicating whether this component is responsible for rendering its child components. The default implementation in UIComponentBase#getRendersChildren tries to find the renderer for this component. If it does, it calls Renderer#getRendersChildren and returns the result. If it doesn't, it returns false. As of version 1.2 of the Jakarta Faces Specification, component authors are encouraged to return true from this method and rely on UIComponentBase#encodeChildren. - jakarta.faces.component - UIComponentBase - - - - - - 335__OLD - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 335 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. Call #popComponentFromEL from inside of a finally block, just before returning. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 341__OLD - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 341 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from the processUpdates() method on a child or facet, call UIComponent#popComponentFromEL - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 343__OLD - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 343 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. If the rendered property of this UIComponent is false, skip further processing. Call #pushComponentToEL. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). After returning from calling getFacetsAndChildren() call UIComponent#popComponentFromEL. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - - 364__OLD - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - - 364 - Set the parent UIComponent of this UIComponent. If parent.isInView() returns true, calling this method will first cause a jakarta.faces.event.PreRemoveFromViewEvent to be published, for this node, and then the children of this node. Then, once the re-parenting has occurred, a jakarta.faces.event.PostAddToViewEvent will be published as well, first for this node, and then for the node's children, but only if any of the following conditions are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - - - 368__OLD - - jakarta.faces.component - UIComponentBase - - - - - 368 - Default constructor, populates the descriptor map. - jakarta.faces.component - UIComponentBase - - - - - - 590__OLD - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - 590 - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the localValueSet property of this component is false, take no further action. If no ValueExpression for value exists, take no further action. Call setValue() method of the ValueExpression to update the value that the ValueExpression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the localValueSet property of this UIInput to false. If the setValue() method throws an Exception: Enqueue an error message. Create a FacesMessage with the id #UPDATE_MESSAGE_ID. Create a UpdateModelException, passing the FacesMessage and the caught exception to the constructor. Create an ExceptionQueuedEventContext, passing the FacesContext, the UpdateModelException, this component instance, and PhaseId#UPDATE_MODEL_VALUES to its constructor. Call FacesContext#getExceptionHandler and then call ExceptionHandler#processEvent, passing the ExceptionQueuedEventContext. Set the valid property of this UIInput to false. The exception must not be re-thrown. This enables tree traversal to continue for this lifecycle phase, as in all the other lifecycle phases. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - - 593__OLD - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - 593 - Perform the following algorithm to validate the local value of this UIInput. Retrieve the submitted value with #getSubmittedValue. If this returns null, and the value of the #ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE context-param is true (ignoring case), examine the value of the "required" property. If the value of "required" is true, continue as below. If the value of "required" is false or the required attribute is not set, exit without further processing. If the context-param is not set, or is set to false (ignoring case), exit without further processing. (This indicates that no value was submitted for this component.) If the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL context parameter value is true (ignoring case), and getSubmittedValue() returns a zero-length String call #setSubmittedValue, passing null as the argument and continue processing using null as the current submitted value. Convert the submitted value into a "local value" of the appropriate data type by calling #getConvertedValue. If conversion fails: Enqueue an appropriate error message by calling the addMessage() method on the FacesContext. Set the valid property on this component to false Validate the property by calling #validateValue. If the valid property of this component is still true, retrieve the previous value of the component (with getValue()), store the new local value using setValue(), and reset the submitted value to null with a call to #setSubmittedValue passing null as the argument. If the local value is different from the previous value of this component, as determined by a call to #compareValues, fire a ValueChangeEvent to be broadcast to all interested listeners. Application components implementing UIInput that wish to perform validation with logic embedded in the component should perform their own correctness checks, and then call the super.validate() method to perform the standard processing described above. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - - 700__OLD - - jakarta.faces.component - UINamingContainer - - - - - 700 - Create a new UINamingContainer instance with default property values. - jakarta.faces.component - UINamingContainer - - - - - - 799__OLD - Return the local value of this UIInput component. - jakarta.faces.component - UIOutput - - - - - 799 - Return the value property. - jakarta.faces.component - UIOutput - - - - - - 801__OLD - Set the local value of this UIInput component. - jakarta.faces.component - UIOutput - - - java.lang.Object - - - - - - 801 - Set the value of this UIComponent (if any). - jakarta.faces.component - UIOutput - - - java.lang.Object - - - - - - - 1109__OLD - Return the local value of the selected state of this component. - jakarta.faces.component - UISelectBoolean - - - - - 1109 - Return the local value of the selected state of this component. This method is a typesafe alias for getValue(). - jakarta.faces.component - UISelectBoolean - - - - - - 1110__OLD - Set the local value of the selected state of this component. - jakarta.faces.component - UISelectBoolean - - - boolean - - - - - - 1110 - Set the local value of the selected state of this component. This method is a typesafe alias for setValue(). - jakarta.faces.component - UISelectBoolean - - - boolean - - - - - - - 1229__OLD - - jakarta.faces.component - UISelectItem - - - - - 1229 - Create a new UISelectItem instance with default property values. - jakarta.faces.component - UISelectItem - - - - - - 1333__OLD - - jakarta.faces.component - UISelectItems - - - - - 1333 - Create a new UISelectItems instance with default property values. - jakarta.faces.component - UISelectItems - - - - - - 1436__OLD - Return the currently selected items, or null if there are no currently selected items. - jakarta.faces.component - UISelectMany - - - - - 1436 - Return the currently selected values, or null if there are no currently selected values. This is a typesafe alias for getValue(). - jakarta.faces.component - UISelectMany - - - - - - 1437__OLD - Set the currently selected items, or null to indicate that there are no currently selected items. - jakarta.faces.component - UISelectMany - - - java.lang.Object[] - - - - - - 1437 - Set the currently selected values, or null to indicate that there are no currently selected values. This is a typesafe alias for setValue(). - jakarta.faces.component - UISelectMany - - - java.lang.Object[] - - - - - - - 1687__OLD - - jakarta.faces.context - FacesContext - - - - - 1687 - Default constructor. This looks at the callstack to see if we're created from a factory. - jakarta.faces.context - FacesContext - - - - - - 1688__OLD - Return the FacesContext instance for the request that is being processed by the current thread. - jakarta.faces.context - FacesContext - - - - - 1688 - Return the FacesContext instance for the request that is being processed by the current thread. If called during application initialization or shutdown, any method documented as "valid to call this method during application startup or shutdown" must be supported during application startup or shutdown time. The result of calling a method during application startup or shutdown time that does not have this designation is undefined. - jakarta.faces.context - FacesContext - - - - - - 1693__OLD - Return an Iterator over the Messages that have been queued, whether or not they are associated with any specific UIComponent. If no such messages have been queued, return an empty Iterator. - jakarta.faces.context - FacesContext - - - - - 1693 - Return an Iterator over the jakarta.faces.application.FacesMessages that have been queued, whether or not they are associated with any specific client identifier. If no such messages have been queued, return an empty Iterator. The elements of the Iterator must be returned in the order in which they were added with calls to #addMessage. - jakarta.faces.context - FacesContext - - - - - - 1701__OLD - Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. - jakarta.faces.context - FacesContext - - - - - 1701 - Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown. If a call was made to #getAttributes during the processing for this request, the implementation must call clear() on the Map returned from getAttributes(), and then de-allocate the data-structure behind that Map. The implementation must call #setCurrentInstance passing null to remove the association between this thread and this dead FacesContext instance. - jakarta.faces.context - FacesContext - - - - - - 1702__OLD - Signal the JavaSerer faces implementation that, as soon as the current phase of the request processing lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet. - jakarta.faces.context - FacesContext - - - - - 1702 - Signal the Jakarta Faces implementation that, as soon as the current phase of the request processing lifecycle has been completed, control should be passed to the Render Response phase, bypassing any phases that have not been executed yet. - jakarta.faces.context - FacesContext - - - - - - 1703__OLD - Signal the JavaServer Faces implementation that the HTTP response for this request has already been generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. - jakarta.faces.context - FacesContext - - - - - 1703 - Signal the Jakarta Faces implementation that the HTTP response for this request has already been generated (such as an HTTP redirect), and that the request processing lifecycle should be terminated as soon as the current phase is completed. - jakarta.faces.context - FacesContext - - - - - - 1762__OLD - Write the end of an element, after closing any open element created by a call to startElement(). - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - - 1762 - Write the end of an element, after closing any open element created by a call to startElement(). Elements must be closed in the inverse order from which they were opened; it is an error to do otherwise. If the argument component's pass through attributes includes an attribute of the name given by the value of the symbolic constant jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, instead of the value passed as the first parameter to this method. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - - - 1775__OLD - Write a comment containing the specified text, after converting that text to a String if necessary. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - - - - - 1775 - Write a comment containing the specified text, after converting that text to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - - - - - - 1786__OLD - Write text from a character array, after escaping it properly for this method. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - - - - - 1786 - Write text from a character array, after any performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - - - - - - 1808__OLD - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Apply Request Values phase of the request processing lifecycle. - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - 1808 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - - 1891__OLD - - jakarta.faces.event - AbortProcessingException - - - - - 1891 - Construct a new exception with no detail message or root cause. - jakarta.faces.event - AbortProcessingException - - - - - - 1897__OLD - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionListener - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - - 1897 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionListener - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - - - 1912__OLD - Execute all of the phases of the request processing lifecycle, as described in the JavaServer Faces Specification, in the specified order. The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - - 1912 - Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order. The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - - - 1932__OLD - Decode the current state of the specified UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the value property of this component to true. If conversion is not successful: Save the state information (inside the component) in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect). Add an appropriate conversion failure error message by calling addMessage() on the specified FacesContext. Set the valid property of this component to false. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 1932 - Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling queueEvent() on the associated UIComponent. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - - 1935__OLD - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to decode for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling component.currentValue(), and rendering the value as appropriate. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 1935 - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - - 1976__OLD - Return an Iterator of the renderer types of all Renderer instances registered with this RenderKit that support components of the specified component type. If no Renderers support this component type, an empty Iterator is returned. - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - - 1976 - Return an Iterator over the renderer-type entries for the given component-family. If the specified componentFamily is not known to this RenderKit implementation, return an empty Iterator The default implementation of this method returns an empty Iterator - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - - - 1981__OLD - Register a new RenderKit instance, associated with the specified renderKitId, to be supported by this RenderKitFactory. This method may be called at any time, and makes the corresponding RenderKit instance available throughout the remaining lifetime of this web application. - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - - - - - 1981 - Register the specified RenderKit instance, associated with the specified renderKitId, to be supported by this RenderKitFactory, replacing any previously registered RenderKit for this identifier. - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - - - - - - 1990__OLD - Return an Iterator over the set of render kit identifiers supported by this factory. This set must include the value specified by RenderKitFactory.DEFAULT_RENDER_KIT. - jakarta.faces.render - RenderKitFactory - - - - - 1990 - Return an Iterator over the set of render kit identifiers registered with this factory. This set must include the value specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - jakarta.faces.render - RenderKitFactory - - - - - - 2004__OLD - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - jakarta.faces.validator - DoubleRangeValidator - - - - - 2004 - Return the maximum value to be enforced by this Validator or Double.MAX_VALUE if it has not been set. - jakarta.faces.validator - DoubleRangeValidator - - - - - - 2005__OLD - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - jakarta.faces.validator - DoubleRangeValidator - - - - - 2005 - Return the minimum value to be enforced by this Validator, or Double.MIN_VALUE if it has not been set. - jakarta.faces.validator - DoubleRangeValidator - - - - - - 2014__OLD - Return the maximum length to be enforced by this Validator, if isMaximumSet() returns true. - jakarta.faces.validator - LengthValidator - - - - - 2014 - Return the maximum length to be enforced by this Validator, or 0 if the maximum has not been set. - jakarta.faces.validator - LengthValidator - - - - - - 2015__OLD - Return the minimum length to be enforced by this Validator, if isMinimumSet() returns true. - jakarta.faces.validator - LengthValidator - - - - - 2015 - Return the minimum length to be enforced by this Validator, or 0 if the minimum has not been set. - jakarta.faces.validator - LengthValidator - - - - - - 2027__OLD - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - jakarta.faces.validator - LongRangeValidator - - - - - 2027 - Return the maximum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - - - - 2028__OLD - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - jakarta.faces.validator - LongRangeValidator - - - - - 2028 - Return the minimum value to be enforced by this Validator. - jakarta.faces.validator - LongRangeValidator - - - - - - - - 8 - if factoryName does not identify a standard JavaServer Faces factory name - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 9 - if there is no configured factory implementation class for the specified factory name - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.IllegalStateException - - - - - 10 - if factoryname is null - jakarta.faces - FactoryFinder - - - java.lang.String - - java.lang.NullPointerException - - - - - 13 - - jakarta.faces.application - Action - - - - - 14 - Perform the task that is encapsulated in this Action instance, and return a String value that is a logical description of the outcome of performing that task. Exceptions encountered during the performance of the task should be encapsulated into appropriate return values. - jakarta.faces.application - Action - - - - - 18 - Return the PropertyResolver instance that will be utilized to resolve action and valus references. The default implementation must provide the behavior described in the PropertyResolver class description. - jakarta.faces.application - Application - - - - - 19 - Return a ValueBinding for the specified action or value reference expression, which may be used to manipulate the corresponding property value later. The returned ValueBinding instance must utilize the PropertyResolver and VariableResolver instances registered with this Application instance at the time that the ValueBinding instance was initially created. For maximum performance, implementations of Application may, but are not required to, cache ValueBinding instances in order to avoid repeated parsing of the reference expression. However, under no circumstances may a particular ValueBinding instance be shared across multiple web applications. - jakarta.faces.application - Application - - - java.lang.String - - - - - - 20 - if the specified ref has invalid syntax - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.el.ReferenceSyntaxException - - - - - 21 - if ref is null - jakarta.faces.application - Application - - - java.lang.String - - java.lang.NullPointerException - - - - - 22 - Return the VariableResolver instance that will be utilized to resolve action and value references. The default implementation must provide the behavior described in the VariableResolver class description. - jakarta.faces.application - Application - - - - - 24 - if the specified listener does not return PhaseId.INVOKE_APPLICATION from its getPhaseId() method - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - java.lang.IllegalArgumentException - - - - - 25 - if listener is null - jakarta.faces.application - Application - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - - 27 - if handler is null - jakarta.faces.application - Application - - - jakarta.faces.application.NavigationHandler - - java.lang.NullPointerException - - - - - 28 - Set the PropertyResolver instance that will be utilized to resolve action and value references. - jakarta.faces.application - Application - - - jakarta.faces.el.PropertyResolver - - - - - - 29 - if resolver is null - jakarta.faces.application - Application - - - jakarta.faces.el.PropertyResolver - - java.lang.NullPointerException - - - - - 30 - Set the VariableResolver instance that will be utilized to resolve action and value references. - jakarta.faces.application - Application - - - jakarta.faces.el.VariableResolver - - - - - - 31 - if resolver is null - jakarta.faces.application - Application - - - jakarta.faces.el.VariableResolver - - java.lang.NullPointerException - - - - - 35 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed Action. - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - 36 - if context or outcome is null - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - - 38 - - jakarta.faces.component - AttributeDescriptor - - - - - 39 - Return a brief description of this attribute, useful when rendering help text in a tool, localized for the default Locale for this instance of the Java Virtual Machine. - jakarta.faces.component - AttributeDescriptor - - - - - 40 - Return a brief description of this attribute, useful when rendering help text in a tool, localized for the specified Locale. - jakarta.faces.component - AttributeDescriptor - - - java.util.Locale - - - - - - 41 - if locale is null - jakarta.faces.component - AttributeDescriptor - - - java.util.Locale - - java.lang.NullPointerException - - - - - 42 - Return a short displayable name of this attribute, useful in constructing the user interface of a tool, localized for the default Locale for this instance of the Java Virtual Machine. - jakarta.faces.component - AttributeDescriptor - - - - - 43 - Return a short displayable name of this attribute, useful in constructing the user interface of a tool, localized for the specified Locale. - jakarta.faces.component - AttributeDescriptor - - - java.util.Locale - - - - - - 44 - if locale is null - jakarta.faces.component - AttributeDescriptor - - - java.util.Locale - - java.lang.NullPointerException - - - - - 45 - Return the attribute name of the attribute described by this AttributeDescriptor. - jakarta.faces.component - AttributeDescriptor - - - - - 46 - Return the Java class representing the data type of the legal values for this attribute. - jakarta.faces.component - AttributeDescriptor - - - - - 47 - Add the specified UIComponent to the namespace of this naming container. - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - - - - - 48 - if the specified component does not have a componentId - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 49 - if the component identifier of the specified component is not unique within the namespace of this naming container - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalStateException - - - - - 50 - if component is null - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 51 - Find and return a UIComponent in this namespace, if it is present; otherwise return null. If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - jakarta.faces.component - NamingContainer - - - java.lang.String - - - - - - 52 - if name is malformed - jakarta.faces.component - NamingContainer - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 53 - if name is null - jakarta.faces.component - NamingContainer - - - java.lang.String - - java.lang.NullPointerException - - - - - 54 - Generate an identifier for a component, suitable for communication to a client. The identifier returned from this method must be unique within this namespace. - jakarta.faces.component - NamingContainer - - - - - 55 - Remove the specified UIComponent from the namespace of this naming container, if it is present. - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - - - - - 56 - if the specified component does not have a componentId - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 57 - if component is null - jakarta.faces.component - NamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 58 - Add the specified UIComponent to the namespace of this naming container. - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - - - - - 59 - if the specified component does not have a componentId - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 60 - if the component identifier of the specified component is not unique within the namespace of this naming container - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - java.lang.IllegalStateException - - - - - 61 - if component is null - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 62 - Find and return a UIComponent in this namespace, if it is present; otherwise return null. If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - jakarta.faces.component - NamingContainerSupport - - - java.lang.String - - - - - - 63 - if name is malformed - jakarta.faces.component - NamingContainerSupport - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 64 - if name is null - jakarta.faces.component - NamingContainerSupport - - - java.lang.String - - java.lang.NullPointerException - - - - - 65 - Generate an identifier for a component, suitable for communication to a client. The identifier returned from this method must be unique within this namespace. - jakarta.faces.component - NamingContainerSupport - - - - - 66 - - jakarta.faces.component - NamingContainerSupport - - - - - 67 - Remove the specified UIComponent from the namespace of this naming container, if it is present. - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - - - - - 68 - if the specified component does not have a componentId - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 69 - if component is null - jakarta.faces.component - NamingContainerSupport - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 70 - Return a description of this item, for use in development tools. - jakarta.faces.component - SelectItem - - - - - 71 - Return the label of this item, to be rendered visibly for the user. - jakarta.faces.component - SelectItem - - - - - 72 - Return the value of this item, to be returned as a request parameter if this item is selected by the user. - jakarta.faces.component - SelectItem - - - - - 73 - Construct a UISelectItem instance with the specified property values. - jakarta.faces.component - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - - - - - - 75 - if listener is null - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - - 76 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 77 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 78 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 79 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 80 - if event or phaseId is null - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 81 - Queue an ActionEvent for processing during the next event processing cycle. - jakarta.faces.component - UICommand - - - jakarta.faces.context.FacesContext - - - - - - 82 - Return the literal action outcome value to be returned to the jakarta.faces.event.ActionListener processing application level events for this application. - jakarta.faces.component - UICommand - - - - - 83 - Return the action reference expression pointing at the jakarta.faces.application.Action to be invoked, if this component is activated by the user, during Invoke Application phase of the request processing lifecycle. - jakarta.faces.component - UICommand - - - - - 84 - Return the command name for this UICommand. - jakarta.faces.component - UICommand - - - - - 85 - Return the component type of this UIComponent. - jakarta.faces.component - UICommand - - - - - 87 - if listener is null - jakarta.faces.component - UICommand - - - jakarta.faces.event.ActionListener - - java.lang.NullPointerException - - - - - 88 - Set the literal action outcome value for this component. - jakarta.faces.component - UICommand - - - java.lang.String - - - - - - 89 - Set the action reference expression pointing at the jakarta.faces.application.Action to be invoked, if this component is activated by the user, during Invoke Application phase of the request processing lifecycle. - jakarta.faces.component - UICommand - - - java.lang.String - - - - - - 90 - Set the command name for this UICommand. - jakarta.faces.component - UICommand - - - java.lang.String - - - - - - 92 - Override the default behavior and perform no model update. - jakarta.faces.component - UICommand - - - jakarta.faces.context.FacesContext - - - - - - 93 - if the modelReference property has invalid syntax for an expression - jakarta.faces.component - UICommand - - - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 94 - if context is null - jakarta.faces.component - UICommand - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 95 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 96 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 97 - if component is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 98 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 99 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 100 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 101 - if component is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 102 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 103 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 104 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 105 - if validator is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 106 - Remove all child UIComponents from the child list. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 107 - Remove all facet UIComponents from this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 108 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 109 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 110 - if component is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 111 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 112 - if an input/output error occurs during decoding - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 113 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 114 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 115 - if an input/output error occurs while rendering - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 116 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 117 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 118 - if an input/output error occurs while rendering - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 119 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 120 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 121 - if an input/output error occurs while rendering - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 122 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 123 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 124 - if expr is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 125 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 126 - if name is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 127 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 128 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 129 - if index is out of range ((index = size())) - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 130 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 131 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 132 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 133 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 134 - Return the identifier of this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 135 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 136 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 137 - if name is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 138 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 139 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 140 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 141 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 142 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 143 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 144 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 145 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 146 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - - - 147 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 148 - if an input/output error occurs during decoding - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 149 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 150 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 151 - if an input/output error occurs during processing - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 152 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 153 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 154 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 155 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 156 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 157 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 158 - if an input/output error occurs during processing - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 159 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 160 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 161 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 162 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 163 - if component is not a child of this component - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 164 - if component is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 165 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 166 - if name is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 167 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 168 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 169 - if name represents a read-only property of this component - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 170 - if name is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 171 - Set the identifier of this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 172 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 173 - if componentId is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 174 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 175 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 176 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 177 - Set the rendered property of this UIComponent. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 178 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 179 - Set the current validity state of this component. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 180 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 181 - if context is null - jakarta.faces.component - UICommand.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 182 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - 183 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 184 - if component is null - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 185 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponent - - - int - jakarta.faces.component.UIComponent - - - - - - 186 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponent - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 187 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIComponent - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 188 - if component is null - jakarta.faces.component - UIComponent - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 189 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 190 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 191 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIComponent - - - jakarta.faces.validator.Validator - - - - - - 192 - if validator is null - jakarta.faces.component - UIComponent - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 193 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 194 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 195 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 196 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 197 - if event or phaseId is null - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 198 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIComponent - - - - - 199 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIComponent - - - - - 200 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIComponent - - - - - 201 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - 202 - if component is null - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 204 - if an input/output error occurs during decoding - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 205 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 208 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 211 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 214 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 216 - if expr is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - - 217 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 218 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - - 219 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIComponent - - - - - 220 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIComponent - - - int - - - - - - 221 - if index is out of range ((index = size())) - jakarta.faces.component - UIComponent - - - int - - java.lang.IndexOutOfBoundsException - - - - - 223 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIComponent - - - - - 225 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 226 - Return the identifier of this UIComponent. - jakarta.faces.component - UIComponent - - - - - 227 - Return the component type of this UIComponent. - jakarta.faces.component - UIComponent - - - - - 228 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIComponent - - - - - 230 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - - 231 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIComponent - - - - - 236 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIComponent - - - - - 237 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIComponent - - - - - 239 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIComponent - - - - - 241 - if an input/output error occurs during decoding - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 242 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 243 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 244 - if an input/output error occurs during processing - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 245 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 247 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 249 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 250 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 251 - if an input/output error occurs during processing - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 252 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 253 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIComponent - - - int - - - - - - 254 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIComponent - - - int - - java.lang.IndexOutOfBoundsException - - - - - 255 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - 256 - if component is not a child of this component - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 257 - if component is null - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 258 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 259 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - - 260 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIComponent - - - jakarta.faces.validator.Validator - - - - - - 261 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIComponent - - - java.lang.String - java.lang.Object - - - - - - 262 - if name represents a read-only property of this component - jakarta.faces.component - UIComponent - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 263 - if name is null - jakarta.faces.component - UIComponent - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 264 - Set the identifier of this UIComponent. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 265 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 266 - if componentId is null - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.NullPointerException - - - - - 267 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponent - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 268 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - 272 - Set the current validity state of this component. - jakarta.faces.component - UIComponent - - - boolean - - - - - - 273 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 274 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 275 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - 276 - if context is null - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 277 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - - 278 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 279 - if component is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 280 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponentBase - - - int - jakarta.faces.component.UIComponent - - - - - - 281 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponentBase - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 282 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIComponentBase - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 283 - if component is null - jakarta.faces.component - UIComponentBase - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 284 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 285 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 286 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.validator.Validator - - - - - - 287 - if validator is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 288 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 289 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 290 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 291 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 292 - if event or phaseId is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 293 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIComponentBase - - - - - 294 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIComponentBase - - - - - 295 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIComponentBase - - - - - 296 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - - 297 - if component is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 299 - if an input/output error occurs during decoding - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 300 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 303 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 306 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 309 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 311 - if expr is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - - 312 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 313 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - - 314 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIComponentBase - - - - - 315 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIComponentBase - - - int - - - - - - 316 - if index is out of range ((index = size())) - jakarta.faces.component - UIComponentBase - - - int - - java.lang.IndexOutOfBoundsException - - - - - 318 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIComponentBase - - - - - 320 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 321 - Return the identifier of this UIComponent. - jakarta.faces.component - UIComponentBase - - - - - 322 - Return the component type of this UIComponent. - jakarta.faces.component - UIComponentBase - - - - - 323 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIComponentBase - - - - - 325 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - - 326 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIComponentBase - - - - - 331 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIComponentBase - - - - - 332 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIComponentBase - - - - - 334 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIComponentBase - - - - - 336 - if an input/output error occurs during decoding - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 337 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 338 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 339 - if an input/output error occurs during processing - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 340 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 342 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 344 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 345 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 346 - if an input/output error occurs during processing - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 347 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 348 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIComponentBase - - - int - - - - - - 349 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIComponentBase - - - int - - java.lang.IndexOutOfBoundsException - - - - - 350 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - - - - - 351 - if component is not a child of this component - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 352 - if component is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 353 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 354 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - - 355 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.validator.Validator - - - - - - 356 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIComponentBase - - - java.lang.String - java.lang.Object - - - - - - 357 - if name represents a read-only property of this component - jakarta.faces.component - UIComponentBase - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 358 - if name is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 359 - Set the identifier of this UIComponent. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 360 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 361 - if componentId is null - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.NullPointerException - - - - - 362 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 363 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - 367 - Set the current validity state of this component. - jakarta.faces.component - UIComponentBase - - - boolean - - - - - - 369 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 370 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 371 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - 372 - if context is null - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 373 - Return the component type of this UIComponent. - jakarta.faces.component - UIForm - - - - - 374 - Return the form name for this UIForm. - jakarta.faces.component - UIForm - - - - - 375 - Set the form name for this UIForm. - jakarta.faces.component - UIForm - - - java.lang.String - - - - - - 377 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 378 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 379 - if component is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 380 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 381 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 382 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 383 - if component is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 384 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 385 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 386 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 387 - if validator is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 388 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 389 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 390 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 391 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 392 - if event or phaseId is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 393 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 394 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 395 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 396 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 397 - if component is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 398 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 399 - if an input/output error occurs during decoding - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 400 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 401 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 402 - if an input/output error occurs while rendering - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 403 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 404 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 405 - if an input/output error occurs while rendering - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 406 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 407 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 408 - if an input/output error occurs while rendering - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 409 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 410 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 411 - if expr is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 412 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 413 - if name is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 414 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 415 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 416 - if index is out of range ((index = size())) - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 417 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 418 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 419 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 420 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 421 - Return the identifier of this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 422 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 423 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 424 - if name is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 425 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 426 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 427 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 428 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 429 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 430 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 431 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 432 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 433 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - - - 434 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 435 - if an input/output error occurs during decoding - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 436 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 437 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 438 - if an input/output error occurs during processing - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 439 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 440 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 441 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 442 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 443 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 444 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 445 - if an input/output error occurs during processing - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 446 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 447 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 448 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 449 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 450 - if component is not a child of this component - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 451 - if component is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 452 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 453 - if name is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 454 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 455 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 456 - if name represents a read-only property of this component - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 457 - if name is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 458 - Set the identifier of this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 459 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 460 - if componentId is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 461 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 462 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 463 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 464 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 465 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 466 - Set the current validity state of this component. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 467 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 468 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 469 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 470 - if context is null - jakarta.faces.component - UIForm.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 471 - Return the component type of this UIComponent. - jakarta.faces.component - UIGraphic - - - - - 472 - Return the image URL for this UIGraphic. - jakarta.faces.component - UIGraphic - - - - - 473 - Set the image URL for this UIGraphic. - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - - 475 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 476 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 477 - if component is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 478 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 479 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 480 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 481 - if component is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 482 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 483 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 484 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 485 - if validator is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 486 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 487 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 488 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 489 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 490 - if event or phaseId is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 491 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 492 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 493 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 494 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 495 - if component is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 496 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 497 - if an input/output error occurs during decoding - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 498 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 499 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 500 - if an input/output error occurs while rendering - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 501 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 502 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 503 - if an input/output error occurs while rendering - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 504 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 505 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 506 - if an input/output error occurs while rendering - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 507 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 508 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 509 - if expr is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 510 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 511 - if name is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 512 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 513 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 514 - if index is out of range ((index = size())) - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 515 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 516 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 517 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 518 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 519 - Return the identifier of this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 520 - Return the component type of this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 521 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 522 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 523 - if name is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 524 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 525 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 526 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 527 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 528 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 529 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 530 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 531 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 532 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - - - 533 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 534 - if an input/output error occurs during decoding - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 535 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 536 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 537 - if an input/output error occurs during processing - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 538 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 539 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 540 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 541 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 542 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 543 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 544 - if an input/output error occurs during processing - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 545 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 546 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 547 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 548 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 549 - if component is not a child of this component - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 550 - if component is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 551 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 552 - if name is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 553 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 554 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 555 - if name represents a read-only property of this component - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 556 - if name is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 557 - Set the identifier of this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 558 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 559 - if componentId is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 560 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 561 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 562 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 563 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 564 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 565 - Set the current validity state of this component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 566 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 567 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 568 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 569 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 570 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 571 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 572 - if context is null - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 573 - Return the local value of this UIInput component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - - - 574 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - - - 575 - Set the local value of this UIInput component. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 576 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIGraphic.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 577 - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangedListener - - - - - - 578 - if listener is null - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 579 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIInput - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 580 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIInput - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 581 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIInput - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 582 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIInput - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 583 - if event or phaseId is null - jakarta.faces.component - UIInput - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 584 - Return the component type of this UIComponent. - jakarta.faces.component - UIInput - - - - - 585 - Return the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UIInput - - - - - 586 - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangedListener - - - - - - 587 - if listener is null - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 588 - Set the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - - 591 - if the valueRef property has invalid syntax for an expression - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 592 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 594 - if context is null - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 595 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 596 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 597 - if component is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 598 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 599 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 600 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 601 - if component is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 602 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 603 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 604 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 605 - if validator is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 606 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 607 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 608 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 609 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 610 - if component is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 611 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 612 - if an input/output error occurs during decoding - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 613 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 614 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 615 - if an input/output error occurs while rendering - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 616 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 617 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 618 - if an input/output error occurs while rendering - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 619 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 620 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 621 - if an input/output error occurs while rendering - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 622 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 623 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 624 - if expr is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 625 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 626 - if name is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 627 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 628 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 629 - if index is out of range ((index = size())) - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 630 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 631 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 632 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 633 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 634 - Return the identifier of this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 635 - Return the component type of this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 636 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 637 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 638 - if name is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 639 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 640 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 641 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 642 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 643 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 644 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 645 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 646 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 647 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - - - 648 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 649 - if an input/output error occurs during decoding - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 650 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 651 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 652 - if an input/output error occurs during processing - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 653 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 654 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 655 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 656 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 657 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 658 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 659 - if an input/output error occurs during processing - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 660 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 661 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 662 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 663 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 664 - if component is not a child of this component - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 665 - if component is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 666 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 667 - if name is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 668 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 669 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 670 - if name represents a read-only property of this component - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 671 - if name is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 672 - Set the identifier of this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 673 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 674 - if componentId is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 675 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 676 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 677 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 678 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 679 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 680 - Set the current validity state of this component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 681 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 682 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 683 - if context is null - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 684 - Return the local value of this UIInput component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - - - 685 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - - - 686 - Set the local value of this UIInput component. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 687 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIInput.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 688 - Add the specified UIComponent to the namespace of this naming container. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - - - - - 689 - if the specified component does not have a componentId - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 690 - if the component identifier of the specified component is not unique within the namespace of this naming container - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalStateException - - - - - 691 - if component is null - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 692 - Find and return a UIComponent in this namespace, if it is present; otherwise return null. If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - jakarta.faces.component - UINamingContainer - - - java.lang.String - - - - - - 693 - if name is malformed - jakarta.faces.component - UINamingContainer - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 694 - if name is null - jakarta.faces.component - UINamingContainer - - - java.lang.String - - java.lang.NullPointerException - - - - - 695 - Generate an identifier for a component, suitable for communication to a client. The identifier returned from this method must be unique within this namespace. - jakarta.faces.component - UINamingContainer - - - - - 696 - Return the component type of this UIComponent. - jakarta.faces.component - UINamingContainer - - - - - 697 - Remove the specified UIComponent from the namespace of this naming container, if it is present. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - - - - - 698 - if the specified component does not have a componentId - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 699 - if component is null - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 701 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 702 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 703 - if component is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 704 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 705 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 706 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 707 - if component is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 708 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 709 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 710 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 711 - if validator is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 712 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 713 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 714 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 715 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 716 - if event or phaseId is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 717 - Remove all child UIComponents from the child list. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 718 - Remove all facet UIComponents from this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 719 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 720 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 721 - if component is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 722 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 723 - if an input/output error occurs during decoding - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 724 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 725 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 726 - if an input/output error occurs while rendering - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 727 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 728 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 729 - if an input/output error occurs while rendering - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 730 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 731 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 732 - if an input/output error occurs while rendering - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 733 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 734 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 735 - if expr is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 736 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 737 - if name is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 738 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 739 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 740 - if index is out of range ((index = size())) - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 741 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 742 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 743 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 744 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 745 - Return the identifier of this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 746 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 747 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 748 - if name is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 749 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 750 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 751 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 752 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 753 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 754 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 755 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 756 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 757 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - - - 758 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 759 - if an input/output error occurs during decoding - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 760 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 761 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 762 - if an input/output error occurs during processing - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 763 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 764 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 765 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 766 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 767 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 768 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 769 - if an input/output error occurs during processing - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 770 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 771 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 772 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 773 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 774 - if component is not a child of this component - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 775 - if component is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 776 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 777 - if name is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 778 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 779 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 780 - if name represents a read-only property of this component - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 781 - if name is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 782 - Set the identifier of this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 783 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 784 - if componentId is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 785 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 786 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 787 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 788 - Set the rendered property of this UIComponent. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 789 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 790 - Set the current validity state of this component. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 791 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 792 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 793 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 794 - if context is null - jakarta.faces.component - UINamingContainer.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 795 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - - - - - - 796 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 797 - if context is null - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 798 - Return the component type of this UIComponent. - jakarta.faces.component - UIOutput - - - - - 800 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIOutput - - - - - 802 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIOutput - - - java.lang.String - - - - - - 804 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 805 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 806 - if component is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 807 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 808 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 809 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 810 - if component is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 811 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 812 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 813 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 814 - if validator is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 815 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 816 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 817 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 818 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 819 - if event or phaseId is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 820 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 821 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 822 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 823 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 824 - if component is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 825 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 826 - if an input/output error occurs during decoding - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 827 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 828 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 829 - if an input/output error occurs while rendering - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 830 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 831 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 832 - if an input/output error occurs while rendering - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 833 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 834 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 835 - if an input/output error occurs while rendering - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 836 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 837 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 838 - if expr is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 839 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 840 - if name is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 841 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 842 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 843 - if index is out of range ((index = size())) - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 844 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 845 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 846 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 847 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 848 - Return the identifier of this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 849 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 850 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 851 - if name is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 852 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 853 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 854 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 855 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 856 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 857 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 858 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 859 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 860 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - - - 861 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 862 - if an input/output error occurs during decoding - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 863 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 864 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 865 - if an input/output error occurs during processing - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 866 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 867 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 868 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 869 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 870 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 871 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 872 - if an input/output error occurs during processing - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 873 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 874 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 875 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 876 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 877 - if component is not a child of this component - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 878 - if component is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 879 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 880 - if name is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 881 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 882 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 883 - if name represents a read-only property of this component - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 884 - if name is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 885 - Set the identifier of this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 886 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 887 - if componentId is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 888 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 889 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 890 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 891 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 892 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 893 - Set the current validity state of this component. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 894 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 895 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 896 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 897 - if context is null - jakarta.faces.component - UIOutput.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 898 - Return the component type of this UIComponent. - jakarta.faces.component - UIPanel - - - - - 899 - Return true to indicate that this component takes responsibility for rendering its children. - jakarta.faces.component - UIPanel - - - - - 901 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 902 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 903 - if component is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 904 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 905 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 906 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 907 - if component is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 908 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 909 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 910 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 911 - if validator is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 912 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 913 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 914 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 915 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 916 - if event or phaseId is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 917 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 918 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 919 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 920 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 921 - if component is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 922 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 923 - if an input/output error occurs during decoding - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 924 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 925 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 926 - if an input/output error occurs while rendering - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 927 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 928 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 929 - if an input/output error occurs while rendering - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 930 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 931 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 932 - if an input/output error occurs while rendering - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 933 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 934 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 935 - if expr is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 936 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 937 - if name is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 938 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 939 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 940 - if index is out of range ((index = size())) - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 941 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 942 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 943 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 944 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 945 - Return the identifier of this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 946 - Return the component type of this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 947 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 948 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 949 - if name is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 950 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 951 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 952 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 953 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 954 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 955 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 956 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 957 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - - - 958 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 959 - if an input/output error occurs during decoding - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 960 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 961 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 962 - if an input/output error occurs during processing - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 963 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 964 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 965 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 966 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 967 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 968 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 969 - if an input/output error occurs during processing - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 970 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 971 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 972 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 973 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 974 - if component is not a child of this component - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 975 - if component is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 976 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 977 - if name is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 978 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 979 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 980 - if name represents a read-only property of this component - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 981 - if name is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 982 - Set the identifier of this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 983 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 984 - if componentId is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 985 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 986 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 987 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 988 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 989 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 990 - Set the current validity state of this component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 991 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 992 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 993 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 994 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 995 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 996 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 997 - if context is null - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 998 - Return the local value of this UIInput component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - - - 999 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - - - 1000 - Set the local value of this UIInput component. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1001 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIPanel.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1002 - Return the component type of this UIComponent. - jakarta.faces.component - UIParameter - - - - - 1004 - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - jakarta.faces.component - UIParameter - - - - - 1007 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1008 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1009 - if component is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1010 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1011 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1012 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1013 - if component is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1014 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1015 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1016 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1017 - if validator is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1018 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1019 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1020 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1021 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1022 - if event or phaseId is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1023 - Remove all child UIComponents from the child list. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1024 - Remove all facet UIComponents from this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1025 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1026 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1027 - if component is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1028 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1029 - if an input/output error occurs during decoding - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1030 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1031 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1032 - if an input/output error occurs while rendering - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1033 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1034 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1035 - if an input/output error occurs while rendering - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1036 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1037 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1038 - if an input/output error occurs while rendering - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1039 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1040 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1041 - if expr is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1042 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1043 - if name is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1044 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1045 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1046 - if index is out of range ((index = size())) - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1047 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1048 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1049 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1050 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1051 - Return the identifier of this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1052 - Return the component type of this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1053 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1054 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1055 - if name is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1056 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1057 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1058 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1059 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1060 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1061 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1062 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1063 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - - - 1064 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1065 - if an input/output error occurs during decoding - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1066 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1067 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1068 - if an input/output error occurs during processing - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1069 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1070 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1071 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1072 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1073 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1074 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1075 - if an input/output error occurs during processing - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1076 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1077 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1078 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1079 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1080 - if component is not a child of this component - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1081 - if component is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1082 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1083 - if name is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1084 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1085 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1086 - if name represents a read-only property of this component - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1087 - if name is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1088 - Set the identifier of this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1089 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1090 - if componentId is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1091 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1092 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1093 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1094 - Set the rendered property of this UIComponent. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1095 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1096 - Set the current validity state of this component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1097 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1098 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1099 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1100 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1101 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1102 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1103 - if context is null - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1104 - Return the local value of this UIInput component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - - - 1105 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - - - 1106 - Set the local value of this UIInput component. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1107 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UIParameter.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1108 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectBoolean - - - - - 1112 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1113 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1114 - if component is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1115 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1116 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1117 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1118 - if component is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1119 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1120 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1121 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1122 - if validator is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1123 - Remove all child UIComponents from the child list. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1124 - Remove all facet UIComponents from this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1125 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1126 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1127 - if component is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1128 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1129 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1130 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1131 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1132 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1133 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1134 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1135 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1136 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1137 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1138 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1139 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1140 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1141 - if expr is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1142 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1143 - if name is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1144 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1145 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1146 - if index is out of range ((index = size())) - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1147 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1148 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1149 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1150 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1151 - Return the identifier of this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1152 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1153 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1154 - if name is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1155 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1156 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1157 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1158 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1159 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1160 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1161 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1162 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1163 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - - - 1164 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1165 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1166 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1167 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1168 - if an input/output error occurs during processing - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1169 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1170 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1171 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1172 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1173 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1174 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1175 - if an input/output error occurs during processing - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1176 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1177 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1178 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1179 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1180 - if component is not a child of this component - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1181 - if component is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1182 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1183 - if name is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1184 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1185 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1186 - if name represents a read-only property of this component - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1187 - if name is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1188 - Set the identifier of this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1189 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1190 - if componentId is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1191 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1192 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1193 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1194 - Set the rendered property of this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1195 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1196 - Set the current validity state of this component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1197 - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1198 - if listener is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1199 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1200 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1201 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1202 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1203 - if event or phaseId is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1204 - Return the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - - - 1205 - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1206 - if listener is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1207 - Set the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - java.lang.Object - - - - - - 1208 - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1209 - if the valueRef property has invalid syntax for an expression - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 1210 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1211 - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1212 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1213 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1214 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1215 - if context is null - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1216 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - - - 1217 - Return the local value of this UIInput component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - - - 1218 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - - - 1219 - Set the local value of this UIInput component. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1220 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectBoolean.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1221 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectItem - - - - - 1224 - Return the server value for this selection item. - jakarta.faces.component - UISelectItem - - - - - 1225 - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - jakarta.faces.component - UISelectItem - - - - - 1228 - Set the server value for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.String - - - - - - 1230 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1231 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1232 - if component is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1233 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1234 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1235 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1236 - if component is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1237 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1238 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1239 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1240 - if validator is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1241 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1242 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1243 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1244 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1245 - if event or phaseId is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1246 - Remove all child UIComponents from the child list. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1247 - Remove all facet UIComponents from this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1248 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1249 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1250 - if component is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1251 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1252 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1253 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1254 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1255 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1256 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1257 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1258 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1259 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1260 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1261 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1262 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1263 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1264 - if expr is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1265 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1266 - if name is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1267 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1268 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1269 - if index is out of range ((index = size())) - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1270 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1271 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1272 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1273 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1274 - Return the identifier of this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1275 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1276 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1277 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1278 - if name is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1279 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1280 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1281 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1282 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1283 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1284 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1285 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1286 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - - - 1287 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1288 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1289 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1290 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1291 - if an input/output error occurs during processing - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1292 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1293 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1294 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1295 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1296 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1297 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1298 - if an input/output error occurs during processing - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1299 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1300 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1301 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1302 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1303 - if component is not a child of this component - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1304 - if component is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1305 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1306 - if name is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1307 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1308 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1309 - if name represents a read-only property of this component - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1310 - if name is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1311 - Set the identifier of this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1312 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1313 - if componentId is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1314 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1315 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1316 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1317 - Set the rendered property of this UIComponent. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1318 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1319 - Set the current validity state of this component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1320 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1321 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1322 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1323 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1324 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1325 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1326 - if context is null - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1327 - Return the local value of this UIInput component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - - - 1328 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - - - 1329 - Set the local value of this UIInput component. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1330 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectItem.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1331 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectItems - - - - - 1332 - Return true to indicate that no jakarta.faces.render.Renderer needs to be associated with this component. - jakarta.faces.component - UISelectItems - - - - - 1334 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1335 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1336 - if component is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1337 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1338 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1339 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1340 - if component is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1341 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1342 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1343 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1344 - if validator is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1345 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId (or for any phase, if the listener returns PhaseId.ANY_PHASE from its getPhaseId() method. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1346 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1347 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1348 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1349 - if event or phaseId is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1350 - Remove all child UIComponents from the child list. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1351 - Remove all facet UIComponents from this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1352 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1353 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1354 - if component is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1355 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1356 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1357 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1358 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1359 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1360 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1361 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1362 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1363 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1364 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1365 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1366 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1367 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1368 - if expr is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1369 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1370 - if name is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1371 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1372 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1373 - if index is out of range ((index = size())) - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1374 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1375 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1376 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1377 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1378 - Return the identifier of this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1379 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1380 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1381 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1382 - if name is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1383 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1384 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1385 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1386 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1387 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1388 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1389 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1390 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - - - 1391 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1392 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1393 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1394 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1395 - if an input/output error occurs during processing - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1396 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1397 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1398 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1399 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1400 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1401 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1402 - if an input/output error occurs during processing - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1403 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1404 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1405 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1406 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1407 - if component is not a child of this component - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1408 - if component is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1409 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1410 - if name is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1411 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1412 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1413 - if name represents a read-only property of this component - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1414 - if name is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1415 - Set the identifier of this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1416 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1417 - if componentId is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1418 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1419 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1420 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1421 - Set the rendered property of this UIComponent. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1422 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1423 - Set the current validity state of this component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1424 - Update the model data associated with this UIComponent, if any. The default implementation in UIComponentBase does no processing; concrete implementations of components that represent controls that can be altered by users (such as UIInput must provide an apppropriate implementation of this method. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1425 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1426 - Perform any correctness checks that this component wishes to perform on itself. This method will be called during the Process Validations phase of the request processing lifecycle. If errors are encountered, appropriate Message instances should be added to the FacesContext for the current request, and the valid property of this UIComponent should be set to false. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1427 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1428 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1429 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1430 - if context is null - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1431 - Return the local value of this UIInput component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - - - 1432 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - - - 1433 - Set the local value of this UIInput component. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1434 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectItems.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1435 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectMany - - - - - 1439 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1440 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1441 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1442 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1443 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1444 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1445 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1446 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1447 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1448 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1449 - if validator is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1450 - Remove all child UIComponents from the child list. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1451 - Remove all facet UIComponents from this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1452 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1453 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1454 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1455 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1456 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1457 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1458 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1459 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1460 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1461 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1462 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1463 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1464 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1465 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1466 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1467 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1468 - if expr is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1469 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1470 - if name is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1471 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1472 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1473 - if index is out of range ((index = size())) - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1474 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1475 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1476 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1477 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1478 - Return the identifier of this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1479 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1480 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1481 - if name is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1482 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1483 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1484 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1485 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1486 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1487 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1488 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1489 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1490 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - - - 1491 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1492 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1493 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1494 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1495 - if an input/output error occurs during processing - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1496 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1497 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1498 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1499 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1500 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1501 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1502 - if an input/output error occurs during processing - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1503 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1504 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1505 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1506 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1507 - if component is not a child of this component - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1508 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1509 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1510 - if name is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1511 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1512 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1513 - if name represents a read-only property of this component - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1514 - if name is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1515 - Set the identifier of this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1516 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1517 - if componentId is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1518 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1519 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1520 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1521 - Set the rendered property of this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1522 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1523 - Set the current validity state of this component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1524 - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1525 - if listener is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1526 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1527 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1528 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1529 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1530 - if event or phaseId is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1531 - Return the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - - - 1532 - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1533 - if listener is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1534 - Set the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - java.lang.Object - - - - - - 1535 - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1536 - if the valueRef property has invalid syntax for an expression - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 1537 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1538 - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1539 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1540 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1541 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1542 - if context is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1543 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - - - 1544 - Return the local value of this UIInput component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - - - 1545 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - - - 1546 - Set the local value of this UIInput component. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1547 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1548 - Add the specified UIComponent to the namespace of this naming container. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - - - - - 1549 - if the specified component does not have a componentId - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1550 - if the component identifier of the specified component is not unique within the namespace of this naming container - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalStateException - - - - - 1551 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1552 - Find and return a UIComponent in this namespace, if it is present; otherwise return null. If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - - - - - 1553 - if name is malformed - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1554 - if name is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1555 - Generate an identifier for a component, suitable for communication to a client. The identifier returned from this method must be unique within this namespace. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - - - 1556 - Remove the specified UIComponent from the namespace of this naming container, if it is present. - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - - - - - 1557 - if the specified component does not have a componentId - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1558 - if component is null - jakarta.faces.component - UISelectMany.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1559 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectOne - - - - - 1560 - Return the currently selected item, or null if there is no currently selected item. - jakarta.faces.component - UISelectOne - - - - - 1561 - Set the currently selected item, or null to indicate that there is no currently selected item. - jakarta.faces.component - UISelectOne - - - java.lang.Object - - - - - - 1563 - Append the specified UIComponent to the end of the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1564 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1565 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1566 - Insert the specified UIComponent at the specified position in the child list for this component. If the child to be added has a non-null and valid component identifier, the identifier is added to the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - - - - - 1567 - if the component identifier of the new component is non-null, and is not unique in the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1568 - if the index is out of range ((index < 0) || (index > size())) - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.IndexOutOfBoundsException - - - - - 1569 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1570 - Add the specified UIComponent as a facet associated with the name specified by the facetName argument, replacing any previous facet with that name. The newly added facet will have its parent property set to this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - 1571 - if the either of the facetName or facet arguments are null. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1572 - Add a Validator instance to the set associated with this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1573 - if validator is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - java.lang.NullPointerException - - - - - 1574 - Remove all child UIComponents from the child list. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1575 - Remove all facet UIComponents from this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1576 - Clear any Validators that have been registered for processing by this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1577 - Return true if the specified UIComponent is a direct child of this UIComponent; otherwise, return false. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1578 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1579 - Decode the current state of this UIComponent from the request contained in the specified FacesContext, and attempt to convert this state information into an object of the required type for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one. If conversion is successful: Save the new local value of this component by calling setValue() and passing the new value. Set the valid property of this component to true. If conversion is not successful: Save state information in such a way that encoding can reproduce the previous input (even though it was syntactically or semantically incorrect) Add an appropriate conversion failure error message by calling context.addMessage(). Set the valid property of this comonent to false. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling addFacesEvent() on the associated FacesContext. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1580 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1581 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1582 - Render the beginning of the current state of this UIComponent to the response contained in the specified FacesContext. If the conversion attempted in a previous call to decode() for this component failed, the state information saved during execution of decode() should be utilized to reproduce the incorrect input. If the conversion was successful, or if there was no previous call to decode(), the value to be displayed should be acquired by calling currentValue(), and rendering the value as appropriate. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1583 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1584 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1585 - Render the child UIComponents of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property is true. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1586 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1587 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1588 - Render the ending of the current state of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1589 - if an input/output error occurs while rendering - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1590 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1591 - Find the UIComponent named by the specified expression, if any is found. This is done by locating the closest parent UIComponent that is a NamingContainer, and calling its findComponentInNamespace() method. The specified expr may contain either a component identifier, or a set of component identifiers separated by SEPARATOR_CHAR characters. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1592 - if expr is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1593 - Return the value of the attribute with the specified name (if any); otherwise, return null. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1594 - if name is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1595 - Return an Iterator over the names of all currently defined attributes of this UIComponent that have a non-null value. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1596 - Return the UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1597 - if index is out of range ((index = size())) - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1598 - Return the number of UIComponents on the child list for this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1599 - Return an Iterator over the child UIComponents of this UIComponent, in the order of their position in the child list. If this component has no children, an empty Iterator is returned. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1600 - Return a client-side identifier for this component, generating one if necessary. Generation will be delegated to the associated jakarta.faces.render.Renderer (if there is one). - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1601 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1602 - Return the identifier of this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1603 - Return the converter id of the jakarta.faces.convert.Converter that is registered for this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1604 - Return the facet UIComponent associated with the specified name, if any. Otherwise, return null. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1605 - if name is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1606 - Return an Iterator over the names of the facet UIComponents of this UIComponent. If this component has no facets, an empty Iterator is returned. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1607 - Return an Iterator over the facet followed by child UIComponents of this UIComponent. Facets are returned in an undefined order, followed by all the children in the order they are stored in the child list. If this component has no facets or children, an empty Iterator is returned. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1608 - Return the parent UIComponent of this UIComponent, if any. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1609 - Return the Renderer type for this UIComponent (if any). - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1610 - Return a flag indicating whether this component is responsible for rendering its child components. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1611 - Return a flag indicating whether this component has concrete implementations of the decode() and encodeXxx() methods, and is therefore suitable for use in the direct implementation programming model for rendering. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1612 - Return an Iterator over the Validators associated with this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1613 - Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1614 - Return the current validity state of this component. The validity state of a component is adjusted at the following points during the request processing lifecycle: During the Apply Request Values phase, set to true or false by decode(), based on the success or failure of decoding a new local value for this component. During the Process Validations phase, set to false by processValidations() if any call to a validate() method returned false. During the Update Model Values phase, set to false by updateModel() if any conversion or update error occurred. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - - - 1615 - Perform the component tree processing required by the Apply Request Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processDecodes() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the decode() method of this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1616 - if an input/output error occurs during decoding - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1617 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1618 - Perform the component tree processing required by the Reconstitute Component Tree phase of the request processing lifecyc,e for all facets of this component, all children of this component, and this component itself, as follows. Call the processReconstitutes() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). Call the reconstitute() method of this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1619 - if an input/output error occurs during processing - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1620 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1621 - Perform the component tree processing required by the Update Model Values phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processUpdates() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). Call the updateModel() method of this component. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1622 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1623 - Perform the component tree processing required by the Process Validations phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the processValidators() method of all facets and children of this UIComponent, in the order determined by a call to getFacetsAndChildren(). If the valid property of this component is currently true: Call the validate() method of each Validator registered for this UIComponent. Call the validate() method of this component. Set the valid property of this component to the result returned from the validate() method. If the valid property of this UIComponent is now false, call FacesContext.renderResponse() to transfer control at the end of the current phase. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1624 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1625 - Perform any processing required to correct the state of this component as a result of the owning component tree having been reconstructed during Reconstitute Component Tree phase of the request processing lifecycle. The default implementation of this method does nothing. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - - - - - 1626 - if an input/output error occurs during processing - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1627 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1628 - Remove the child UIComponent at the specified position in the child list for this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - - - - - - 1629 - if the index is out of range ((index < 0) || (index >= size())) - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - int - - java.lang.IndexOutOfBoundsException - - - - - 1630 - Remove the child UIComponent from the child list for this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1631 - if component is not a child of this component - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1632 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1633 - Remove the facet UIComponent associated with the specified name, if there is one. The removed facet will have its parent property cleared. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1634 - if name is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1635 - Remove a Validator instance from the set associated with this UIComponent, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.validator.Validator - - - - - - 1636 - Set the new value of the attribute with the specified name, replacing any existing value for that name. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - - - - - 1637 - if name represents a read-only property of this component - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalArgumentException - - - - - 1638 - if name is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1639 - Set the identifier of this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1640 - if componentId is zero length or contains invalid characters - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1641 - if componentId is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1642 - if this UIComponent instance is already in the tree and and is not unique within the namespace of the closest ancestor that is a naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1643 - Set the converter id of the jakarta.faces.convert.Converter that is registered for this component, or null to indicate that there is no registered Converter. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1644 - Set the parent UIComponent of this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - jakarta.faces.component.UIComponent - - - - - - 1645 - Set the rendered property of this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1646 - Set the Renderer type for this UIComponent, or null for components that render themselves. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - java.lang.String - - - - - - 1647 - Set the current validity state of this component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIComponentBase} - - - boolean - - - - - - 1648 - Add a new ValueChangedListener to the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1649 - if listener is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1650 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type, for the specified PhaseId. The order in which registered listeners are notified is implementation dependent. After all interested listeners have been notified, return false if this event does not have any listeners interested in this event in future phases of the request processing lifecycle. Otherwise, return true. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - - - - - 1651 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - jakarta.faces.event.AbortProcessingException - - - - - 1652 - if the implementation class of this FacesEvent is not supported by this component - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalArgumentException - - - - - 1653 - if PhaseId.ANY_PHASE is passed for the phase identifier - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.IllegalStateException - - - - - 1654 - if event or phaseId is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.FacesEvent - jakarta.faces.event.PhaseId - - java.lang.NullPointerException - - - - - 1655 - Return the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - - - 1656 - Remove an existing ValueChangedListener (if any) from the set of listeners interested in being notified when ValueChangedEvents occur. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - - - - - 1657 - if listener is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.event.ValueChangedListener - - java.lang.NullPointerException - - - - - 1658 - Set the previous value of this UIInput component. This method should only be utilized by the decode() method of this component, or its corresponding jakarta.faces.render.Renderer. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - java.lang.Object - - - - - - 1659 - Perform the following algorithm to update the model data associated with this UIInput, if any, as appropriate. If the valid property of this component is false, take no further action. If the valueRef property of this component is null, take no further action. Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the setValue() method of the ValueBinding to update the value that the value reference expression points at. If the setValue() method returns successfully: Clear the local value of this UIInput. Set the valid property of this UIInput to true. If the setValue() method call fails: Enqueue error messages by calling addMessage() on the specified FacesContext instance. Set the valid property of this UIInput to false. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1660 - if the valueRef property has invalid syntax for an expression - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 1661 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1662 - Perform validations and, if validation is successful, and the local value is different from the previous value, queue a ValueChangedEvent to be processed later. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - - - - - 1663 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIInput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1664 - Evaluate and return the current value of this component, according to the following algorithm. If the value property has been set (containing the local value for this component), return that; else If the valueRef property has been set, Retrieve the Application instance for this web application from ApplicationFactory. Ask it for a ValueBinding for the valueRef expression. Use the getValue() method of the ValueBinding to retrieve the value that the value reference expression points at. Otherwise, return null. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - - - - - 1665 - if a problem occurs evaluating the value reference expression - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - EvaluationException - - - - - 1666 - if context is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1667 - Return the component type of this UIComponent. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - - - 1668 - Return the local value of this UIInput component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - - - 1669 - Return the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - - - 1670 - Set the local value of this UIInput component. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - java.lang.Object - - - - - - 1671 - Set the value reference expression for this UIInput component, pointing at the model tier property that will be updated or rendered. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UIOutput} - - - java.lang.String - - - - - - 1672 - Add the specified UIComponent to the namespace of this naming container. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - - - - - 1673 - if the specified component does not have a componentId - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1674 - if the component identifier of the specified component is not unique within the namespace of this naming container - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalStateException - - - - - 1675 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1676 - Find and return a UIComponent in this namespace, if it is present; otherwise return null. If the argument name does not contain any UIComponent#SEPARATOR_CHAR characters, it is interpreted to be a name in the namespace of this naming container. If the argument name does contain UIComponent#SEPARATOR_CHAR characters, each segment between UIComponent#SEPARATOR_CHAR is treated as a component identifier in its own namespace, which are searched for in child naming containers of this naming container, from left to right. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - - - - - 1677 - if name is malformed - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1678 - if name is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 1679 - Generate an identifier for a component, suitable for communication to a client. The identifier returned from this method must be unique within this namespace. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - - - 1680 - Remove the specified UIComponent from the namespace of this naming container, if it is present. - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - - - - - 1681 - if the specified component does not have a componentId - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1682 - if component is null - jakarta.faces.component - UISelectOne.{jakarta.faces.component.UISelectBase} - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1683 - Append a FacesEvent to the set of events that should be processed at the end of the current phase of the request processing lifecycle. - jakarta.faces.context - FacesContext - - - jakarta.faces.event.FacesEvent - - - - - - 1684 - if event is null - jakarta.faces.context - FacesContext - - - jakarta.faces.event.FacesEvent - - java.lang.NullPointerException - - - - - 1685 - Append a Message to the set of messages associated with the specified UIComponent, if component is not null. If component is null, this Message is assumed to not be associated with any specific component instance. - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIComponent - jakarta.faces.context.Message - - - - - - 1686 - if message is null - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIComponent - jakarta.faces.context.Message - - java.lang.NullPointerException - - - - - 1689 - Return an Iterator over the FacesEvents that have been queued, in the order that they were queued. The Iterator returned by this method must support the following functionality: The remove() operation may be utilized by the JSF implementation to remove the current event when it has been completely handled. Event handlers may add new events to the list while it is being iterated over, by calling addFacesEvent(). If no events have been queued, an empty Iterator must be returned. - jakarta.faces.context - FacesContext - - - - - 1690 - Return the HttpSession instance for the session associated with the current request (if any); otherwise, return null. - jakarta.faces.context - FacesContext - - - - - 1691 - Return the Locale to be used in localizing the response being created for this FacesContext. - jakarta.faces.context - FacesContext - - - - - 1692 - Return the maximum severity level recorded on any Messages that has been queued, whether or not they are associated with any specific UIComponent. If no such messages have been queued, return a value less than Message.SEVERITY_INFO. - jakarta.faces.context - FacesContext - - - - - 1694 - Return an Iterator over the Messages that have been queued that are associated with the specified UIComponent, (if component is not null), or over the Messages that have been queued that are not associated with any specific UIComponent (if component is null). If no such messages have been queued, return an empty Iterator. - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIComponent - - - - - - 1697 - Return the ServletContext object for the web application associated with this request. - jakarta.faces.context - FacesContext - - - - - 1698 - Return the ServletRequest object representing the current request that is being processed. - jakarta.faces.context - FacesContext - - - - - 1699 - Return the ServletResponse object representing the current response that is being rendered. - jakarta.faces.context - FacesContext - - - - - 1700 - Return the component Tree that is associated with the this request. - jakarta.faces.context - FacesContext - - - - - 1704 - Set the Locale to be used in localizing the response being created for this FacesContext. If not set, the default Locale for our servlet container will be used. - jakarta.faces.context - FacesContext - - - java.util.Locale - - - - - - 1706 - if responseStream is null - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseStream - - java.lang.NullPointerException - - - - - 1708 - if responseWriter is null - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ResponseWriter - - java.lang.NullPointerException - - - - - 1709 - Set the component Tree that is associated with this request. This method can only be called by the application handler (or a class that the handler calls), and only during the Invoke Application phase of the request processing lifecycle. - jakarta.faces.context - FacesContext - - - jakarta.faces.tree.Tree - - - - - - 1710 - if this method is called more than once without a call to release() in beween - jakarta.faces.context - FacesContext - - - jakarta.faces.tree.Tree - - java.lang.IllegalStateException - - - - - 1711 - if tree is null - jakarta.faces.context - FacesContext - - - jakarta.faces.tree.Tree - - java.lang.NullPointerException - - - - - 1713 - Create (if needed) and return a FacesContext instance that is initialized for the processing of the specified request and response objects, utilizing the specified Lifecycle instance, for this web application. - jakarta.faces.context - FacesContextFactory - - - ServletContext - ServletRequest - ServletResponse - jakarta.faces.lifecycle.Lifecycle - - - - - - 1714 - if a FacesContext cannot be constructed for the specified parameters - jakarta.faces.context - FacesContextFactory - - - ServletContext - ServletRequest - ServletResponse - jakarta.faces.lifecycle.Lifecycle - - jakarta.faces.FacesException - - - - - 1715 - if any of the parameters are null - jakarta.faces.context - FacesContextFactory - - - ServletContext - ServletRequest - ServletResponse - jakarta.faces.lifecycle.Lifecycle - - java.lang.NullPointerException - - - - - 1716 - Return the localized detail text for this Message (if any). This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it. - jakarta.faces.context - Message - - - - - 1717 - Return the severity level of this Message. - jakarta.faces.context - Message - - - - - 1718 - Return the localized summary text for this Message. This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected. - jakarta.faces.context - Message - - - - - 1719 - Return the localized detail text for this Message (if any). This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it. - jakarta.faces.context - MessageImpl - - - - - 1720 - Return the severity level of this Message. - jakarta.faces.context - MessageImpl - - - - - 1721 - Return the localized summary text for this Message. This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected. - jakarta.faces.context - MessageImpl - - - - - 1722 - Construct a new Message with no initial values. - jakarta.faces.context - MessageImpl - - - - - 1723 - Construct a new Message with the specified initial values. - jakarta.faces.context - MessageImpl - - - int - java.lang.String - java.lang.String - - - - - - 1724 - Set the localized detail text. - jakarta.faces.context - MessageImpl - - - java.lang.String - - - - - - 1725 - Set the severity level. - jakarta.faces.context - MessageImpl - - - int - - - - - - 1726 - if the specified severity level is not one of the supported values - jakarta.faces.context - MessageImpl - - - int - - java.lang.IllegalArgumentException - - - - - 1727 - Set the localized summary text. - jakarta.faces.context - MessageImpl - - - java.lang.String - - - - - - 1728 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - 1729 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - - 1730 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object[] - - - - - - 1731 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object[] - - java.lang.NullPointerException - - - - - 1732 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - - - - - - 1733 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1734 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - - - - - - 1735 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - - java.lang.NullPointerException - - - - - 1736 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - java.lang.Object - - - - - - 1737 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - java.lang.Object - - java.lang.NullPointerException - - - - - 1738 - Return a localized Message instance corresponding to the specified parameters, or null if the specified message identifier is not supported by the MessageResources instance. - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - java.lang.Object - java.lang.Object - - - - - - 1739 - if context or messageId is null - jakarta.faces.context - MessageResources - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Object - java.lang.Object - java.lang.Object - java.lang.Object - - java.lang.NullPointerException - - - - - 1740 - - jakarta.faces.context - MessageResources - - - - - 1741 - Register a new MessageResources instance, associated with the specified messageResourcesId, to be supported by this MessageResourcesFactory. This method may be called at any time, and makes the corresponding MessageResources instance available throughout the remaining lifetime of this web application. - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - jakarta.faces.context.MessageResources - - - - - - 1742 - if messageResourcesId is already registered in this MessageResourcesFactory - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - jakarta.faces.context.MessageResources - - java.lang.IllegalArgumentException - - - - - 1743 - if messageResourcesId or messageResources is null - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - jakarta.faces.context.MessageResources - - java.lang.NullPointerException - - - - - 1744 - Create (if needed) and return a MessageResources instance for the specified message resources identifier. The set of available message resources identifiers is available via the getMessageResourcesIds() method. Each call to getMessageResources() for the same messageResourcesId, from within the same web application, must return the same MessageResources instance. - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - - - - - - 1745 - if no MessageResources instance can be returned for the specified identifier - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1746 - if messageResourcesId is null - jakarta.faces.context - MessageResourcesFactory - - - java.lang.String - - java.lang.NullPointerException - - - - - 1747 - Return an Iterator over the set of message resource identifiers supported by this factory. This Iterator must include the standard identifiers described above. - jakarta.faces.context - MessageResourcesFactory - - - - - 1748 - - jakarta.faces.context - MessageResourcesFactory - - - - - 1750 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - - - 1751 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - java.io.IOException - - - - - 1752 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - - - 1753 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - java.io.IOException - - - - - 1754 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - int - - - - - - 1755 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - int - - java.io.IOException - - - - - 1756 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - byte[] - - - - - - 1757 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - byte[] - - java.io.IOException - - - - - 1758 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - byte[] - int - int - - - - - - 1759 - - jakarta.faces.context - ResponseStream.{java.io.OutputStream} - - - byte[] - int - int - - java.io.IOException - - - - - 1764 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.lang.NullPointerException - - - - - 1768 - Write the start of an element, up to and including the element name. Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - - 1769 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - - 1770 - if name is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.lang.NullPointerException - - - - - 1771 - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - - - - - 1772 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 1773 - if this method is called when there is no currently open element - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 1774 - if name or value is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1777 - if comment is null - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.lang.NullPointerException - - - - - 1778 - Write an object (after converting it to a String, if necessary), after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - - - - - 1779 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.io.IOException - - - - - 1780 - if text is null - jakarta.faces.context - ResponseWriter - - - java.lang.Object - - java.lang.NullPointerException - - - - - 1781 - Write a single character, after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - char - - - - - - 1782 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - char - - java.io.IOException - - - - - 1783 - Write text from a character array, after escaping it properly. This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - char[] - - - - - - 1784 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - char[] - - java.io.IOException - - - - - 1785 - if text is null - jakarta.faces.context - ResponseWriter - - - char[] - - java.lang.NullPointerException - - - - - 1788 - if the calculated starting or ending position is outside the bounds of the character array - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.lang.IndexOutOfBoundsException - - - - - 1789 - if text is null - jakarta.faces.context - ResponseWriter - - - char[] - int - int - - java.lang.NullPointerException - - - - - 1790 - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - - - - - 1791 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 1792 - if this method is called when there is no currently open element - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 1793 - if name or value is null - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1794 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - - - 1795 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - java.io.IOException - - - - - 1796 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - - - 1797 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - java.io.IOException - - - - - 1798 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - int - - - - - - 1799 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - int - - java.io.IOException - - - - - 1800 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - char[] - - - - - - 1801 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - char[] - - java.io.IOException - - - - - 1802 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - char[] - int - int - - - - - - 1803 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - char[] - int - int - - java.io.IOException - - - - - 1804 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - java.lang.String - - - - - - 1805 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - java.lang.String - - java.io.IOException - - - - - 1806 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - java.lang.String - int - int - - - - - - 1807 - - jakarta.faces.context - ResponseWriter.{java.io.Writer} - - - java.lang.String - int - int - - java.io.IOException - - - - - 1809 - if conversion cannot be successfully performed - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - jakarta.faces.convert.ConverterException - - - - - 1810 - if context or component is null - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - - 1812 - if conversion cannot be successfully performed - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - - 1813 - if context or component is null - jakarta.faces.convert - Converter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - java.lang.NullPointerException - - - - - 1818 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces.convert - ConverterException.{jakarta.faces.FacesException} - - - - - 1819 - Register a new Converter instance with the specified converterId, to be supported by this ConverterFactory. This method may be called at any time, and makes the corresponding Converter instance available throughout the remaining lifetime of this web application. - jakarta.faces.convert - ConverterFactory - - - java.lang.String - jakarta.faces.convert.Converter - - - - - - 1820 - if a Converter with the specified converterId has already been registered - jakarta.faces.convert - ConverterFactory - - - java.lang.String - jakarta.faces.convert.Converter - - java.lang.IllegalArgumentException - - - - - 1821 - if converterId or converter is null - jakarta.faces.convert - ConverterFactory - - - java.lang.String - jakarta.faces.convert.Converter - - java.lang.NullPointerException - - - - - 1822 - Register a new Converter instance that knows how to perform conversions to and from the specified object class. This method may be called at any time, and makes the corresponding Converter instance available throughout the remaining lifetime of this web application. - jakarta.faces.convert - ConverterFactory - - - java.lang.Class - jakarta.faces.convert.Converter - - - - - - 1823 - if clazz or converter is null - jakarta.faces.convert - ConverterFactory - - - java.lang.Class - jakarta.faces.convert.Converter - - java.lang.NullPointerException - - - - - 1824 - - jakarta.faces.convert - ConverterFactory - - - - - 1825 - Create (if needed) and return a Converter instance that may be used to perform Object-to-String and String-to-Object conversions for objects of the specified class. A search of the registered Converters is performed in the following order: An exact match on the original class. An exact match on one of the interfaces directly implemented by the original class, checked in the order they are returned by Class.getInterfaces(). Recursively for each superclass of the original class: An exact match on this superclass. An exact match on one of the interfaces directly implemented by this superclass. If a Converter is discovered during the search described above, it is returned; otherwise null is returned. Each call to getConverter() for the same clazz, from within the same web application, must return the same Converter instance. - jakarta.faces.convert - ConverterFactory - - - java.lang.Class - - - - - - 1826 - if clazz is null - jakarta.faces.convert - ConverterFactory - - - java.lang.Class - - java.lang.NullPointerException - - - - - 1827 - Create (if needed) and return a Converter instance that may be used to perform Object-to-String and String-to-Object conversions for web applications based on JavaServer Faces. The set of available converter identifiers is available via the getConverterIds() method. If no Converter has been registered for the specified converter identifier, return null. Each call to getConverter() for the same converterId, from within the same web application, must return the same Converter instance. - jakarta.faces.convert - ConverterFactory - - - java.lang.String - - - - - - 1828 - if converterId is null - jakarta.faces.convert - ConverterFactory - - - java.lang.String - - java.lang.NullPointerException - - - - - 1829 - Return an Iterator over the set of classes for which we have registered Converters in this factory. - jakarta.faces.convert - ConverterFactory - - - - - 1830 - Return an Iterator over the set of converter identifiers supported by this factory. - jakarta.faces.convert - ConverterFactory - - - - - 1831 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - EvaluationException - - - - - 1832 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - EvaluationException - - - java.lang.String - - - - - - 1833 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - EvaluationException - - - java.lang.Throwable - - - - - - 1834 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - EvaluationException - - - java.lang.String - java.lang.Throwable - - - - - - 1835 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces.el - EvaluationException.{jakarta.faces.FacesException} - - - - - 1836 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - PropertyNotFoundException - - - - - 1837 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - PropertyNotFoundException - - - java.lang.String - - - - - - 1838 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - PropertyNotFoundException - - - java.lang.Throwable - - - - - - 1839 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - PropertyNotFoundException - - - java.lang.String - java.lang.Throwable - - - - - - 1840 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces.el - PropertyNotFoundException.{jakarta.faces.FacesException} - - - - - 1841 - Return the java.lang.Class representing the type of the specified property of the specified base object, if it can be determined; otherwise return null. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - - - - - 1842 - if the specified property name does not exist - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - jakarta.faces.el.PropertyNotFoundException - - - - - 1843 - if base or name is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - - 1844 - Return the java.lang.Class representing the type of value at the specified index of the specified base object, or null if this value is null. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - - 1845 - if some other exception occurs - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - - 1846 - if thrown by the underlying accessed to the indexed property - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.IndexOutOfBoundsException - - - - - 1847 - if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.NullPointerException - - - - - 1848 - Return the value of the property with the specified name from the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - - - - - 1849 - if the specified property name does not exist, or is not readable - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - jakarta.faces.el.PropertyNotFoundException - - - - - 1850 - if base or name is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - - 1851 - Return the value at the specified index of the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - - 1852 - if some other exception occurs - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - - 1853 - if thrown by the underlying access to the base object - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.IndexOutOfBoundsException - - - - - 1854 - if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.NullPointerException - - - - - 1855 - Return true if the specified property of the specified base object is known to be immutable; otherwise, return false. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - - - - - 1856 - if the specified property name does not exist - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - jakarta.faces.el.PropertyNotFoundException - - - - - 1857 - if base or name is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - - java.lang.NullPointerException - - - - - 1858 - Return true if the value at the specified index of the specified base object is known to be immutable; otherwise, return false. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - - - - - 1859 - if some other exception occurs - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - jakarta.faces.el.PropertyNotFoundException - - - - - 1860 - if thrown by the underlying accessed to the indexed property - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.IndexOutOfBoundsException - - - - - 1861 - if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - - java.lang.NullPointerException - - - - - 1862 - - jakarta.faces.el - PropertyResolver - - - - - 1863 - Set the specified value of the property with the specified name on the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - java.lang.Object - - - - - - 1864 - if the specified property name does not exist, or is not writeable - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - - 1865 - if base or name is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 1866 - Set the value at the specified index of the specified base object. - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - - - - - 1867 - if some other exception occurs - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - - 1868 - if thrown by the underlying access to the base object - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - java.lang.IndexOutOfBoundsException - - - - - 1869 - if base is null - jakarta.faces.el - PropertyResolver - - - java.lang.Object - int - java.lang.Object - - java.lang.NullPointerException - - - - - 1870 - Construct a new exception with no detail message or root cause. - jakarta.faces.el - ReferenceSyntaxException - - - - - 1871 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.String - - - - - - 1872 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.Throwable - - - - - - 1873 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.el - ReferenceSyntaxException - - - java.lang.String - java.lang.Throwable - - - - - - 1874 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces.el - ReferenceSyntaxException.{jakarta.faces.FacesException} - - - - - 1875 - Return the type of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - - 1876 - if the specified property name does not exist, or is not writeable - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - - 1877 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1878 - Return the value of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - - 1879 - if the specified property name does not exist, or is not readable - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - - 1880 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1881 - Return true if the specified property of the specified property is known to be immutable; otherwise, return false. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - - - - - 1882 - if the specified property name does not exist - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - jakarta.faces.el.PropertyNotFoundException - - - - - 1883 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1884 - Set the value of the property represented by this ValueBinding, relative to the specified FacesContext. - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - 1885 - if the specified property name does not exist, or is not writeable - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - jakarta.faces.el.PropertyNotFoundException - - - - - 1886 - if context is null - jakarta.faces.el - ValueBinding - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.NullPointerException - - - - - 1887 - - jakarta.faces.el - ValueBinding - - - - - 1888 - Resolve the specified variable name, and return the corresponding object, if any; otherwise, return null. - jakarta.faces.el - VariableResolver - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - 1889 - if context or name is null - jakarta.faces.el - VariableResolver - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - - 1890 - - jakarta.faces.el - VariableResolver - - - - - 1892 - Return the cause of this exception, or null if the cause is nonexistent or unknown. - jakarta.faces.event - AbortProcessingException.{jakarta.faces.FacesException} - - - - - 1893 - Construct a new event object from the specified source component and action command. - jakarta.faces.event - ActionEvent - - - jakarta.faces.component.UIComponent - java.lang.String - - - - - - 1894 - Return the String identifying the command that was activated. - jakarta.faces.event - ActionEvent - - - - - 1895 - Return the source UIComponent that sent this event. - jakarta.faces.event - ActionEvent.{jakarta.faces.event.FacesEvent} - - - - - 1898 - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - jakarta.faces.event - ActionListener.{jakarta.faces.event.FacesListener} - - - - - 1901 - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - jakarta.faces.event - FacesListener - - - - - 1905 - Return the current local value of the source UIComponent. - jakarta.faces.event - ValueChangedEvent - - - - - 1906 - Return the previous local value of the source UIComponent. - jakarta.faces.event - ValueChangedEvent - - - - - 1907 - Construct a new event object from the specified source component, old value, and new value. - jakarta.faces.event - ValueChangedEvent - - - jakarta.faces.component.UIComponent - java.lang.Object - java.lang.Object - - - - - - 1908 - Return the source UIComponent that sent this event. - jakarta.faces.event - ValueChangedEvent.{jakarta.faces.event.FacesEvent} - - - - - 1909 - Invoked when the value change described by the specified ValueChangedEvent occurs. - jakarta.faces.event - ValueChangedListener - - - jakarta.faces.event.ValueChangedEvent - - - - - - 1910 - Signal the JavaServer Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ValueChangedListener - - - jakarta.faces.event.ValueChangedEvent - - jakarta.faces.event.AbortProcessingException - - - - - 1911 - Return the identifier of the request processing phase during which this listener is interested in processing events of the type we are supporting. Legal values are the singleton instances defined by the PhaseId class. FacesListener instances should generally return PhaseId.ANY_PHASE to be notified about events no matter what the current request processing phase is. - jakarta.faces.event - ValueChangedListener.{jakarta.faces.event.FacesListener} - - - - - 1914 - if context is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1915 - Return the ViewHandler instance that will be utilized during the Render Response phase of the request processing lifecycle. - jakarta.faces.lifecycle - Lifecycle - - - - - 1917 - Set the ViewHandler instance that will be utilized during the Render Response phase of the request processing lifecycle. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.lifecycle.ViewHandler - - - - - - 1918 - if this method is called after at least one request has been processed by this Lifecycle instance - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.lifecycle.ViewHandler - - java.lang.IllegalStateException - - - - - 1919 - if handler is null - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.lifecycle.ViewHandler - - java.lang.NullPointerException - - - - - 1921 - if a Lifecycle with the specified lifecycleId has already been registered - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - java.lang.IllegalArgumentException - - - - - 1922 - if lifecycleId or lifecycle is null - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - jakarta.faces.lifecycle.Lifecycle - - java.lang.NullPointerException - - - - - 1924 - if no Lifecycle instance can be returned for the specified identifier - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1925 - if lifecycleId is null - jakarta.faces.lifecycle - LifecycleFactory - - - java.lang.String - - java.lang.NullPointerException - - - - - 1928 - Perform whatever actions are required to render the response component tree to the ServletResponse associated with the specified FacesContext. - jakarta.faces.lifecycle - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - 1929 - if an input/output error occurs - jakarta.faces.lifecycle - ViewHandler - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - 1930 - if a servlet error occurs - jakarta.faces.lifecycle - ViewHandler - - - jakarta.faces.context.FacesContext - - ServletException - - - - - 1931 - if context is null - jakarta.faces.lifecycle - ViewHandler - - - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1933 - if an input/output error occurs while decoding - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - 1934 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1937 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1940 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1943 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1944 - Return an AttributeDescriptor for the specified attribute name, as supported for the specified component class. - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - java.lang.String - - - - - - 1945 - if the specified component class is not supported - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1946 - if the specified attribute name is not supported for the specified component class - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1947 - if component or name is null - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - java.lang.String - - java.lang.NullPointerException - - - - - 1948 - Return an AttributeDescriptor for the specified attribute name, as supported for the specified component type. - jakarta.faces.render - Renderer - - - java.lang.String - java.lang.String - - - - - - 1949 - if the specified component type is not supported - jakarta.faces.render - Renderer - - - java.lang.String - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1950 - if the specified attribute name is not supported for the specified component type - jakarta.faces.render - Renderer - - - java.lang.String - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1951 - if type or name is null - jakarta.faces.render - Renderer - - - java.lang.String - java.lang.String - - java.lang.NullPointerException - - - - - 1952 - Return an Iterator over the names of the supported attributes for the specified UIComponent implementation class. If no attributes are supported, an empty Iterator is returned. - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - - - - - - 1953 - if the specified component class is not supported - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - - java.lang.IllegalArgumentException - - - - - 1954 - if component is null - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1955 - Return an Iterator over the names of the supported attributes for the specified component type. If no attributes are supported, an empty Iterator is returned. - jakarta.faces.render - Renderer - - - java.lang.String - - - - - - 1956 - if the specified component type is not supported - jakarta.faces.render - Renderer - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1957 - if type is null - jakarta.faces.render - Renderer - - - java.lang.String - - java.lang.NullPointerException - - - - - 1958 - Generate and return a new client-side identifier for the specified component. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 1959 - if context or component is null - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1961 - Return true if this Renderer supports components of the specified UIComponent class. - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - - - - - - 1962 - if component is null - jakarta.faces.render - Renderer - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1963 - Return true if this Renderer supports components of the specified type. This is matched against the type property of each UIComponent to determine compatibility. - jakarta.faces.render - Renderer - - - java.lang.String - - - - - - 1964 - if componentType is null - jakarta.faces.render - Renderer - - - java.lang.String - - java.lang.NullPointerException - - - - - 1965 - Add a new UIComponent subclass to the set of component classes registered with this RenderKit instance and supported by its constituent Renderers. - jakarta.faces.render - RenderKit - - - java.lang.Class - - - - - - 1966 - if componentClass is not a UIComponent subclass - jakarta.faces.render - RenderKit - - - java.lang.Class - - java.lang.IllegalArgumentException - - - - - 1967 - if componentClass is null - jakarta.faces.render - RenderKit - - - java.lang.Class - - java.lang.NullPointerException - - - - - 1968 - Add a new Renderer instance, associated with the specified rendererType, to the set of Renderers registered with this RenderKit. - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.Renderer - - - - - - 1969 - if a Renderer with the specified rendererType has already been registered - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.Renderer - - java.lang.IllegalArgumentException - - - - - 1970 - if rendererType or renderer is null - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.Renderer - - java.lang.NullPointerException - - - - - 1971 - Return an Iterator of the UIComponent classes that are registered with this RenderKit instance and supported by its constituent Renderers. If there are no such registered component classes, an empty Iterator is returned. - jakarta.faces.render - RenderKit - - - - - 1972 - Create (if necessary) and return a Renderer instance with the specified renderer type. Subsequent calls to this method with the same rendererType, from the same web application, must return the same instance. - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - - 1973 - if the requested renderer type is not supported by this RenderKit - jakarta.faces.render - RenderKit - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1974 - if rendererType is null - jakarta.faces.render - RenderKit - - - java.lang.String - - java.lang.NullPointerException - - - - - 1975 - Return an Iterator of all the renderer types registered with this RenderKit. - jakarta.faces.render - RenderKit - - - - - 1977 - if componentType is null - jakarta.faces.render - RenderKit - - - java.lang.String - - java.lang.NullPointerException - - - - - 1978 - Return an Iterator of the renderer types of all Renderer instances registered with this RenderKit that support components of the specified UIComponent subclass. If no Renderers support this component class, an empty Iterator is returned. - jakarta.faces.render - RenderKit - - - jakarta.faces.component.UIComponent - - - - - - 1979 - if component is null - jakarta.faces.render - RenderKit - - - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 1982 - if a RenderKit with the specified renderKitId has already been registered - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - java.lang.IllegalArgumentException - - - - - 1983 - if renderKitId or renderKit is null - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.render.RenderKit - - java.lang.NullPointerException - - - - - 1984 - Create (if needed) and return a RenderKit instance for the specified render kit identifier. The set of available render kit identifiers is available via the getRenderKitIds() method. Each call to getRenderKit() for the same renderKitId, from within the same web application, must return the same RenderKit instance. - jakarta.faces.render - RenderKitFactory - - - java.lang.String - - - - - - 1985 - if no RenderKit instance can be returned for the specified identifier - jakarta.faces.render - RenderKitFactory - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 1986 - if renderKitId is null - jakarta.faces.render - RenderKitFactory - - - java.lang.String - - java.lang.NullPointerException - - - - - 1987 - Create (if needed) and return a RenderKit instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specified FacesContext. The set of available render kit identifiers is available via the getRenderKitIds() method. - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.context.FacesContext - - - - - - 1988 - if no RenderKit instance can be returned for the specified identifier - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.context.FacesContext - - java.lang.IllegalArgumentException - - - - - 1989 - if renderKitId or context is null - jakarta.faces.render - RenderKitFactory - - - java.lang.String - jakarta.faces.context.FacesContext - - java.lang.NullPointerException - - - - - 1992 - Return the render kit identifier of the RenderKit instance (if any) associated with this Tree. - jakarta.faces.tree - Tree - - - - - 1993 - Return the root node of the component tree associated with this Tree. - jakarta.faces.tree - Tree - - - - - 1994 - Return the tree identifier for this Tree. - jakarta.faces.tree - Tree - - - - - 1995 - Set the render kit identifier of the RenderKit instance (if any) associated with this Tree. - jakarta.faces.tree - Tree - - - java.lang.String - - - - - - 1996 - - jakarta.faces.tree - Tree - - - - - 1997 - Create (if needed) and return a Tree that is initialized with a root node, and whose renderKitId property is initialized to the identifier of the default jakarta.faces.render.RenderKit. - jakarta.faces.tree - TreeFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - 1998 - if a Tree cannot be constructed for the specified parameters - jakarta.faces.tree - TreeFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - - 1999 - if context or treeId is null - jakarta.faces.tree - TreeFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - java.lang.NullPointerException - - - - - 2000 - - jakarta.faces.tree - TreeFactory - - - - - 2006 - Return a flag indicating whether a maximum limit has been set. - jakarta.faces.validator - DoubleRangeValidator - - - - - 2007 - Return a flag indicating whether a minimum limit has been set. - jakarta.faces.validator - DoubleRangeValidator - - - - - 2009 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - DoubleRangeValidator - - - double - - java.lang.IllegalArgumentException - - - - - 2011 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - DoubleRangeValidator - - - double - - java.lang.IllegalArgumentException - - - - - 2012 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2013 - if context or component is null - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2016 - Return a flag indicating whether a maximum length has been set. - jakarta.faces.validator - LengthValidator - - - - - 2017 - Return a flag indicating whether a minimum limit has been set. - jakarta.faces.validator - LengthValidator - - - - - 2022 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - LengthValidator - - - int - - java.lang.IllegalArgumentException - - - - - 2024 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - LengthValidator - - - int - - java.lang.IllegalArgumentException - - - - - 2025 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2026 - if context or component is null - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2029 - Return a flag indicating whether a maximum limit has been set. - jakarta.faces.validator - LongRangeValidator - - - - - 2030 - Return a flag indicating whether a minimum limit has been set. - jakarta.faces.validator - LongRangeValidator - - - - - 2035 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - LongRangeValidator - - - long - - java.lang.IllegalArgumentException - - - - - 2037 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - LongRangeValidator - - - long - - java.lang.IllegalArgumentException - - - - - 2038 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2039 - if context or component is null - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2041 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - RequiredValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2042 - if context or component is null - jakarta.faces.validator - RequiredValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2043 - Return the maximum value to be enforced by this Validator, if isMaximumSet() returns true. - jakarta.faces.validator - StringRangeValidator - - - - - 2044 - Return the minimum value to be enforced by this Validator, if isMinimumSet() returns true. - jakarta.faces.validator - StringRangeValidator - - - - - 2045 - Return a flag indicating whether a maximum limit has been set. - jakarta.faces.validator - StringRangeValidator - - - - - 2046 - Return a flag indicating whether a minimum limit has been set. - jakarta.faces.validator - StringRangeValidator - - - - - 2047 - Set the maximum value to be enforced by this Validator. - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - - - - - 2048 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 2049 - if maximum is null - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - java.lang.NullPointerException - - - - - 2050 - Set the minimum value to be enforced by this Validator. - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - - - - - 2051 - if a specified maximum value is less than a specified minimum value - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - java.lang.IllegalArgumentException - - - - - 2052 - if minimum is null - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - java.lang.NullPointerException - - - - - 2053 - Construct a Validator with no preconfigured limits. - jakarta.faces.validator - StringRangeValidator - - - - - 2054 - Construct a Validator with the specified preconfigured limit. - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - - - - - - 2055 - Construct a Validator with the specified preconfigured limits. - jakarta.faces.validator - StringRangeValidator - - - java.lang.String - java.lang.String - - - - - - 2056 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - StringRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2057 - if context or component is null - jakarta.faces.validator - StringRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2058 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found: Add zero or more Messages to the specified FacesContext, specifying this UIComponent as associated with the message, describing the nature of the violation(s) encountered. Set the valid property on the specified UIComponent to false. - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - 2059 - if context or component is null - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.lang.NullPointerException - - - - - 2060 - - jakarta.faces.webapp - AttributeTag - - - - - 2061 - Register the specified attribute name and value with the UIComponent instance associated with our most immediately surrounding FacesTag instance, if this UIComponent does not already have a value for the specified attribute name. - jakarta.faces.webapp - AttributeTag - - - - - 2062 - if a JSP error occurs - jakarta.faces.webapp - AttributeTag - - JspException - - - - - 2063 - Release references to any acquired resources. - jakarta.faces.webapp - AttributeTag - - - - - 2064 - Set the attribute name. - jakarta.faces.webapp - AttributeTag - - - java.lang.String - - - - - - 2065 - Set the attribute value. - jakarta.faces.webapp - AttributeTag - - - java.lang.String - - - - - - 2066 - Handle the ending of the nested body content for this tag. The default implementation simply calls getDoAfterBodyValue() to retrieve the flag value to be returned. - jakarta.faces.webapp - FacesBodyTag - - - - - 2067 - if an error is encountered - jakarta.faces.webapp - FacesBodyTag - - JspException - - - - - 2068 - Prepare for evaluation of the body. This method is invoked by the JSP page implementation object after setBodyContent() and before the first time the body is to be evaluated. This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - jakarta.faces.webapp - FacesBodyTag - - - - - 2069 - if an error is encountered - jakarta.faces.webapp - FacesBodyTag - - JspException - - - - - 2070 - - jakarta.faces.webapp - FacesBodyTag - - - - - 2071 - Return the BodyContent for this tag handler. - jakarta.faces.webapp - FacesBodyTag - - - - - 2072 - Get the JspWriter from our BodyContent. - jakarta.faces.webapp - FacesBodyTag - - - - - 2073 - Release any resources allocated during the execution of this tag handler. - jakarta.faces.webapp - FacesBodyTag - - - - - 2074 - Set the bodyContent for this tag handler. This method is invoked by the JSP page implementation object at most once per action invocation, before doInitiBody(). This method will not be invoked for empty tags or for non-empty tags whose doStartTag() method returns SKIP_BODY or EVAL_BODY_INCLUDE. - jakarta.faces.webapp - FacesBodyTag - - - BodyContent - - - - - - 2075 - Render the ending of the UIComponent that is associated with this tag (via the id attribute), by following these steps. If the rendersChildren property of this component is true, call the encodeChildren() method of the component. Call the encodeEnd() method of the component. Release all references to the component, and pop it from the component stack for this response, removing the stack if this was the outermost component. The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2076 - if an error occurs - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - JspException - - - - - 2077 - Render the beginning of the UIComponent that is associated with this tag (via the id attribute), by following these steps. Ensure that an appropriate ResponseWriter is associated with the current FacesContext. This ensures that encoded output from the components is routed through the JspWriter for the current page. Locate the component (in the component tree) corresponding to this tag, creating a new one if necesary. Override the attributes of the associated component with values set in our custom tag attributes, if values for the corresponding attributes are NOT already set on the component. Push this component onto the stack of components corresponding to nested component tags for the current response, creating the stack if necessary. Call the encodeBegin() method of the component. The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2078 - if an error occurs - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - JspException - - - - - 2079 - Return the UIComponent instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2080 - Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2081 - Return the Tag that is the parent of this instance. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2082 - Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - - - 2083 - Set the component identifier for our component. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - java.lang.String - - - - - - 2084 - Set the PageContext of the page containing this tag instance. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - PageContext - - - - - - 2085 - Set the Tag that is the parent of this instance. In addition, locate the closest enclosing FacesTag and increment its numChildren counter. Finally, save our childIndex as (enclosingFacesTag.numChildren - 1). - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - Tag - - - - - - 2086 - Set an override for the rendered attribute. - jakarta.faces.webapp - FacesBodyTag.{jakarta.faces.webapp.FacesTag} - - - boolean - - - - - - 2089 - Return the ServletConfig instance for this servlet. - jakarta.faces.webapp - FacesServlet - - - - - 2091 - Acquire the factory instances we will require. - jakarta.faces.webapp - FacesServlet - - - ServletConfig - - - - - - 2092 - - jakarta.faces.webapp - FacesServlet - - - ServletConfig - - ServletException - - - - - 2093 - Process an incoming request, and create the corresponding response, by executing the request processing lifecycle. - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - - - - - 2094 - if an input/output error occurs during processing - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - java.io.IOException - - - - - 2095 - if a servlet error occurs during processing - jakarta.faces.webapp - FacesServlet - - - ServletRequest - ServletResponse - - ServletException - - - - - 2096 - Render the ending of the UIComponent that is associated with this tag (via the id attribute), by following these steps. If the rendersChildren property of this component is true, call the encodeChildren() method of the component. Call the encodeEnd() method of the component. Release all references to the component, and pop it from the component stack for this response, removing the stack if this was the outermost component. The flag value to be returned is acquired by calling the getDoEndValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - FacesTag - - - - - 2097 - if an error occurs - jakarta.faces.webapp - FacesTag - - JspException - - - - - 2098 - Render the beginning of the UIComponent that is associated with this tag (via the id attribute), by following these steps. Ensure that an appropriate ResponseWriter is associated with the current FacesContext. This ensures that encoded output from the components is routed through the JspWriter for the current page. Locate the component (in the component tree) corresponding to this tag, creating a new one if necesary. Override the attributes of the associated component with values set in our custom tag attributes, if values for the corresponding attributes are NOT already set on the component. Push this component onto the stack of components corresponding to nested component tags for the current response, creating the stack if necessary. Call the encodeBegin() method of the component. The flag value to be returned is acquired by calling the getDoStartValue() method, which tag subclasses may override if they do not want the default value. - jakarta.faces.webapp - FacesTag - - - - - 2099 - if an error occurs - jakarta.faces.webapp - FacesTag - - JspException - - - - - 2100 - - jakarta.faces.webapp - FacesTag - - - - - 2101 - Return the UIComponent instance that is associated with this tag instance. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - FacesTag - - - - - 2102 - Return true if we dynamically created a new component instance during execution of this tag. This method is designed to be used by tags nested within this tag, and only returns useful results between the execution of doStartTag() and doEndTag() on this tag instance. - jakarta.faces.webapp - FacesTag - - - - - 2103 - Return the Tag that is the parent of this instance. - jakarta.faces.webapp - FacesTag - - - - - 2104 - Return the rendererType property that selects the Renderer to be used for encoding this component, or null to ask the component to render itself directly. Subclasses must override this method to return the appropriate value. - jakarta.faces.webapp - FacesTag - - - - - 2105 - Release any resources allocated during the execution of this tag handler. - jakarta.faces.webapp - FacesTag - - - - - 2106 - Set the component identifier for our component. - jakarta.faces.webapp - FacesTag - - - java.lang.String - - - - - - 2107 - Set the PageContext of the page containing this tag instance. - jakarta.faces.webapp - FacesTag - - - PageContext - - - - - - 2108 - Set the Tag that is the parent of this instance. In addition, locate the closest enclosing FacesTag and increment its numChildren counter. Finally, save our childIndex as (enclosingFacesTag.numChildren - 1). - jakarta.faces.webapp - FacesTag - - - Tag - - - - - - 2109 - Set an override for the rendered attribute. - jakarta.faces.webapp - FacesTag - - - boolean - - - - - - 2110 - - jakarta.faces.webapp - FacetTag - - - - - 2111 - - jakarta.faces.webapp - FacetTag - - JspException - - - - - 2112 - - jakarta.faces.webapp - FacetTag - - - - - 2113 - - jakarta.faces.webapp - FacetTag - - JspException - - - - - 2114 - - jakarta.faces.webapp - FacetTag - - - - - 2115 - - jakarta.faces.webapp - FacetTag - - - - - 2116 - - jakarta.faces.webapp - FacetTag - - - - - 2117 - - jakarta.faces.webapp - FacetTag - - - java.lang.String - - - - - - 2118 - Close the underlying writer. - jakarta.faces.webapp - JspResponseWriter - - - - - 2119 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - java.io.IOException - - - - - 2120 - Flush the underlying writer's buffer, if any. - jakarta.faces.webapp - JspResponseWriter - - - - - 2121 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - java.io.IOException - - - - - 2122 - Create a JspResponseWriter that wraps the specified PageContext. - jakarta.faces.webapp - JspResponseWriter - - - PageContext - - - - - - 2123 - Write an array of characters. - jakarta.faces.webapp - JspResponseWriter - - - char[] - - - - - - 2124 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - - char[] - - java.io.IOException - - - - - 2125 - Write a portion of an array of characters. - jakarta.faces.webapp - JspResponseWriter - - - char[] - int - int - - - - - - 2126 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - - char[] - int - int - - java.io.IOException - - - - - 2127 - Write a single character from the low-order 16 bits of the specified integer. - jakarta.faces.webapp - JspResponseWriter - - - int - - - - - - 2128 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - - int - - java.io.IOException - - - - - 2129 - Write a String of characters. - jakarta.faces.webapp - JspResponseWriter - - - java.lang.String - - - - - - 2130 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - - java.lang.String - - java.io.IOException - - - - - 2131 - Write a portion of a String of characters. - jakarta.faces.webapp - JspResponseWriter - - - java.lang.String - int - int - - - - - - 2132 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter - - - java.lang.String - int - int - - java.io.IOException - - - - - 2133 - Write whatever text should end a response. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - - - 2134 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - java.io.IOException - - - - - 2135 - Write the end of an element, after closing any open element created by a call to startElement(). - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - - - - - 2136 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.io.IOException - - - - - 2137 - if name is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 2138 - Write whatever text should begin a response. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - - - 2139 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - java.io.IOException - - - - - 2140 - Write the start of an element, up to and including the element name. Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - - - - - 2141 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.io.IOException - - - - - 2142 - if name is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 2143 - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - - - - - 2144 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 2145 - if this method is called when there is no currently open element - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 2146 - if name or value is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 2147 - Write a comment containing the specified text, after converting that text to a String if necessary. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - - - - - 2148 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.io.IOException - - - - - 2149 - if comment is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.lang.NullPointerException - - - - - 2150 - Write an object (after converting it to a String, if necessary), after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - - - - - 2151 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.io.IOException - - - - - 2152 - if text is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.lang.NullPointerException - - - - - 2153 - Write a single character, after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char - - - - - - 2154 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char - - java.io.IOException - - - - - 2155 - Write text from a character array, after escaping it properly. This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - - - - - 2156 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - java.io.IOException - - - - - 2157 - if text is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - java.lang.NullPointerException - - - - - 2158 - Write text from a character array, after escaping it properly for this method. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - - - - - 2159 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.io.IOException - - - - - 2160 - if the calculated starting or ending position is outside the bounds of the character array - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.lang.IndexOutOfBoundsException - - - - - 2161 - if text is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.lang.NullPointerException - - - - - 2162 - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - - - - - 2163 - if an input/output error occurs - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 2164 - if this method is called when there is no currently open element - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 2165 - if name or value is null - jakarta.faces.webapp - JspResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 2166 - Close the underlying writer. - jakarta.faces.webapp - ServletResponseWriter - - - - - 2167 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - java.io.IOException - - - - - 2168 - Flush the underlying writer's buffer, if any. - jakarta.faces.webapp - ServletResponseWriter - - - - - 2169 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - java.io.IOException - - - - - 2170 - Create a ServletResponseWriter that wraps the specified PrintWriter. - jakarta.faces.webapp - ServletResponseWriter - - - java.io.PrintWriter - - - - - - 2171 - Write an array of characters. - jakarta.faces.webapp - ServletResponseWriter - - - char[] - - - - - - 2172 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - - char[] - - java.io.IOException - - - - - 2173 - Write a portion of an array of characters. - jakarta.faces.webapp - ServletResponseWriter - - - char[] - int - int - - - - - - 2174 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - - char[] - int - int - - java.io.IOException - - - - - 2175 - Write a single character from the low-order 16 bits of the specified integer. - jakarta.faces.webapp - ServletResponseWriter - - - int - - - - - - 2176 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - - int - - java.io.IOException - - - - - 2177 - Write a String of characters. - jakarta.faces.webapp - ServletResponseWriter - - - java.lang.String - - - - - - 2178 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - - java.lang.String - - java.io.IOException - - - - - 2179 - Write a portion of a String of characters. - jakarta.faces.webapp - ServletResponseWriter - - - java.lang.String - int - int - - - - - - 2180 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter - - - java.lang.String - int - int - - java.io.IOException - - - - - 2181 - Write whatever text should end a response. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - - - 2182 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - java.io.IOException - - - - - 2183 - Write the end of an element, after closing any open element created by a call to startElement(). - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - - - - - 2184 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.io.IOException - - - - - 2185 - if name is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 2186 - Write whatever text should begin a response. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - - - 2187 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - java.io.IOException - - - - - 2188 - Write the start of an element, up to and including the element name. Once this method has been called, clients can call writeAttribute() or writeURIAttribute() method to add attributes and corresponding values. The starting element will be closed (that is, the trailing '>' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), or endDocument(). - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - - - - - 2189 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.io.IOException - - - - - 2190 - if name is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - - java.lang.NullPointerException - - - - - 2191 - Write an attribute name and corresponding value (after converting that text to a String if necessary), after escaping it properly. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - - - - - 2192 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 2193 - if this method is called when there is no currently open element - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 2194 - if name or value is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 2195 - Write a comment containing the specified text, after converting that text to a String if necessary. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - - - - - 2196 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.io.IOException - - - - - 2197 - if comment is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.lang.NullPointerException - - - - - 2198 - Write an object (after converting it to a String, if necessary), after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - - - - - 2199 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.io.IOException - - - - - 2200 - if text is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.Object - - java.lang.NullPointerException - - - - - 2201 - Write a single character, after escaping it properly. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char - - - - - - 2202 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char - - java.io.IOException - - - - - 2203 - Write text from a character array, after escaping it properly. This is equivalent to calling writeText(c, 0, c.length). If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - - - - - 2204 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - java.io.IOException - - - - - 2205 - if text is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - - java.lang.NullPointerException - - - - - 2206 - Write text from a character array, after escaping it properly for this method. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - - - - - 2207 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.io.IOException - - - - - 2208 - if the calculated starting or ending position is outside the bounds of the character array - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.lang.IndexOutOfBoundsException - - - - - 2209 - if text is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - char[] - int - int - - java.lang.NullPointerException - - - - - 2210 - Write a URI attribute name and corresponding value (after converting that text to a String if necessary), after encoding it properly (for example, '%' encoded for HTML). This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - - - - - 2211 - if an input/output error occurs - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.io.IOException - - - - - 2212 - if this method is called when there is no currently open element - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.IllegalStateException - - - - - 2213 - if name or value is null - jakarta.faces.webapp - ServletResponseWriter.{jakarta.faces.webapp.ResponseWriterBase} - - - java.lang.String - java.lang.Object - - java.lang.NullPointerException - - - - - 2214 - Create a new instance of the specified Validator class, and register it with the UIComponent instance associated with our most immediately surrounding FacesTag instance, if the UIComponent instance was created by this execution of the containing JSP page. - jakarta.faces.webapp - ValidatorTag - - - - - 2215 - if a JSP error occurs - jakarta.faces.webapp - ValidatorTag - - JspException - - - - - 2216 - Release references to any acquired resources. - jakarta.faces.webapp - ValidatorTag - - - - - 2217 - Set the fully qualified class name of the Validator instance to be created. - jakarta.faces.webapp - ValidatorTag - - - java.lang.String - - - - - - 2218 - - jakarta.faces.webapp - ValidatorTag - - - - - - - - JSF:JAVADOC:2219 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces - FacesWrapper - - - - - JSF:JAVADOC:2220 - This method will store the argument factoryName/implName mapping in such a way that #getFactory will find this mapping when searching for a match. This method has no effect if getFactory() has already been called looking for a factory for this factoryName. This method can be used by implementations to store a factory mapping while parsing the Faces configuration file - jakarta.faces - FactoryFinder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2221 - - jakarta.faces.annotation - ApplicationMap.Literal - - - - - JSF:JAVADOC:2222 - The value of this attribute indicates that features corresponding to this version must be enabled for this application. - jakarta.faces.annotation - FacesConfig - - - - - JSF:JAVADOC:2223 - - jakarta.faces.annotation - FacesConfig.Literal - - - - - JSF:JAVADOC:2224 - The value of this attribute indicates that features corresponding to this version must be enabled for this application. - jakarta.faces.annotation - FacesConfig.Literal - - - - - JSF:JAVADOC:2225 - - jakarta.faces.annotation - FacesConfig.Version - - - java.lang.String - - - - - - JSF:JAVADOC:2226 - - jakarta.faces.annotation - FacesConfig.Version - - - - - JSF:JAVADOC:2227 - - jakarta.faces.annotation - FlowMap.Literal - - - - - JSF:JAVADOC:2228 - - jakarta.faces.annotation - HeaderMap.Literal - - - - - JSF:JAVADOC:2229 - - jakarta.faces.annotation - HeaderValuesMap.Literal - - - - - JSF:JAVADOC:2230 - - jakarta.faces.annotation - InitParameterMap.Literal - - - - - JSF:JAVADOC:2231 - Taken to be the value that is injected into the field. - jakarta.faces.annotation - ManagedProperty - - - - - JSF:JAVADOC:2232 - - jakarta.faces.annotation - ManagedProperty.Literal - - - java.lang.String - - - - - - JSF:JAVADOC:2233 - Taken to be the value that is injected into the field. - jakarta.faces.annotation - ManagedProperty.Literal - - - - - JSF:JAVADOC:2234 - - jakarta.faces.annotation - RequestCookieMap.Literal - - - - - JSF:JAVADOC:2235 - - jakarta.faces.annotation - RequestMap.Literal - - - - - JSF:JAVADOC:2236 - - jakarta.faces.annotation - RequestParameterMap.Literal - - - - - JSF:JAVADOC:2237 - - jakarta.faces.annotation - RequestParameterValuesMap.Literal - - - - - JSF:JAVADOC:2238 - - jakarta.faces.annotation - SessionMap.Literal - - - - - JSF:JAVADOC:2239 - Set the Faces View Id pattern. The Faces View Id pattern can represent a single view, such as "/index.xhtml", or a pattern like "/foo/bar/*". Though the exact interpretation of the Faces View Id for a single view is ultimately defined by the annotated element, in general it should align with the return value from an action expression (see ActionSource2#setActionExpression(jakarta.el.MethodExpression) - jakarta.faces.annotation - View - - - - - JSF:JAVADOC:2240 - - jakarta.faces.annotation - View.Literal - - - java.lang.String - - - - - - JSF:JAVADOC:2241 - Set the Faces View Id pattern. The Faces View Id pattern can represent a single view, such as "/index.xhtml", or a pattern like "/foo/bar/*". Though the exact interpretation of the Faces View Id for a single view is ultimately defined by the annotated element, in general it should align with the return value from an action expression (see ActionSource2#setActionExpression(jakarta.el.MethodExpression) - jakarta.faces.annotation - View.Literal - - - - - JSF:JAVADOC:2242 - - jakarta.faces.annotation - ViewMap.Literal - - - - - JSF:JAVADOC:2243 - Register a new mapping of behavior id to the name of the corresponding Behavior class. This allows subsequent calls to createBehavior() to serve as a factory for Behavior instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2244 - Register a new mapping of component type to the name of the corresponding UIComponent class. This allows subsequent calls to createComponent() to serve as a factory for UIComponent instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2245 - Register a new mapping of converter id to the name of the corresponding Converter class. This allows subsequent calls to createConverter() to serve as a factory for Converter instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2246 - Register a new converter class that is capable of performing conversions for the specified target class. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.String - - - - - - JSF:JAVADOC:2247 - Register a validator by its id that is applied to all UIInput components in a view. The validator to most often serve this role is the BeanValidator. The usage contract for this method assumes that the validator has been registered using the normal #8220;by-id #8221; registration mechanism. An implementation is provided that takes no action so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2248 - Provide a way for Faces applications to register an ELContextListener that will be notified on creation of ELContext instances. This listener will be called once per request. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - jakarta.el.ELContextListener - - - - - - JSF:JAVADOC:2249 - Cause an the argument resolver to be added to the resolver chain as specified in section 5.3.2 "ELResolver" of the Jakarta Faces Specification Document. It is not possible to remove an ELResolver registered with this method, once it has been registered. It is illegal to register an ELResolver after the application has received any requests from the client. If an attempt is made to register a listener after that time, an IllegalStateException must be thrown. This restriction is in place to allow the Jakarta Server Pages container to optimize for the common case where no additional ELResolvers are in the chain, aside from the standard ones. It is permissible to add ELResolvers before or after initialization to a CompositeELResolver that is already in the chain. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - jakarta.el.ELResolver - - - - - - JSF:JAVADOC:2250 - Cause the argument resolver to be added to the head of the resolver chain. It is not possible to remove a SearchKeywordResolver registered with this method, once it has been registered. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - jakarta.faces.component.search.SearchKeywordResolver - - - - - - JSF:JAVADOC:2251 - Register a new mapping of validator id to the name of the corresponding Validator class. This allows subsequent calls to createValidator() to serve as a factory for Validator instances. - jakarta.faces.application - Application - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2252 - Instantiate and return a new Behavior instance of the class specified by a previous call to addBehavior() for the specified behavior id. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2253 - if the Behavior cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2254 - Instantiate and return a new UIComponent instance of the class specified by a previous call to addComponent() for the specified component type. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or ResourceDependency must be taken on the component, before it is returned from this method. This variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to be returned for any of the afore mentioned annotations. Such inspection is the province of #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, String, String). - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2255 - if a UIComponent of the specified type cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2256 - Call the getValue() method on the specified ValueExpression. If it returns a UIComponent instance, return it as the value of this method. If it does not, instantiate a new UIComponent instance of the specified component type, pass the new component to the setValue() method of the specified ValueExpression, and return it. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor (or jakarta.faces.event.ListenersFor) or ResourceDependency (or ResourceDependencies) annotation. If any of these annotations are present, the action listed in jakarta.faces.event.ListenerFor or ResourceDependency must be taken on the component, before it is returned from this method. This variant of createComponent must not inspect the jakarta.faces.render.Renderer for the component to be returned for any of the afore mentioned annotations. Such inspection is the province of #createComponent(ValueExpression, FacesContext, String, String) or #createComponent(FacesContext, String, String). A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2257 - if a UIComponent cannot be created - jakarta.faces.application - Application - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2258 - Like #createComponent(ValueExpression, FacesContext, String) except the Renderer for the component to be returned must be inspected for the annotations mentioned in #createComponent(ValueExpression, FacesContext, String) as specified in the documentation for that method. The Renderer instance to inspect must be obtained by calling FacesContext#getRenderKit and calling jakarta.faces.render.RenderKit#getRenderer on the result, passing the argument componentType as the first argument and the result of calling UIComponent#getFamily on the newly created component as the second argument. If no such Renderer can be found, a message must be logged with a helpful error message. Otherwise, UIComponent#setRendererType must be called on the newly created UIComponent instance, passing the argument rendererType as the argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2259 - Like #createComponent(String) except the Renderer for the component to be returned must be inspected for the annotations mentioned in #createComponent(ValueExpression, FacesContext, String) as specified in the documentation for that method. The Renderer instance to inspect must be obtained by calling FacesContext#getRenderKit and calling jakarta.faces.render.RenderKit#getRenderer on the result, passing the argument componentType as the first argument and the result of calling UIComponent#getFamily on the newly created component as the second argument. If no such Renderer can be found, a message must be logged with a helpful error message. Otherwise, UIComponent#setRendererType must be called on the newly created UIComponent instance, passing the argument rendererType as the argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2260 - Instantiate and return a new UIComponent instance from the argument Resource. An algorithm semantically equivalent to the following must be followed to instantiate the UIComponent to return. Obtain a reference to the ViewDeclarationLanguage for this Application instance by calling ViewHandler#getViewDeclarationLanguage, passing the viewId found by calling jakarta.faces.component.UIViewRoot#getViewId on the jakarta.faces.component.UIViewRoot in the argument FacesContext. Obtain a reference to the composite component metadata for this composite component by calling ViewDeclarationLanguage#getComponentMetadata, passing the facesContext and componentResource arguments to this method. This version of the Jakarta Faces Specification uses JavaBeans as the API to the component metadata. Determine if the component author declared a componentType for this component instance by obtaining the BeanDescriptor from the component metadata and calling its getValue() method, passing UIComponent#COMPOSITE_COMPONENT_TYPE_KEY as the argument. If non-null, the result must be a ValueExpression whose value is the component-type of the UIComponent to be created for this Resource component. Call through to #createComponent(java.lang.String) to create the component. Otherwise, determine if a script based component for this Resource can be found by calling ViewDeclarationLanguage#getScriptComponentResource. If the result is non-null, and is a script written in a language satisfying the content type text/javascript, create a UIComponent instance from the script resource. Otherwise, let library-name be the return from calling Resource#getLibraryName on the argument componentResource and resource-name be the return from calling Resource#getResourceName on the argument componentResource. Create a fully qualified Java class name by removing any file extension from resource-name and let fqcn be library-name + "." + resource-name. If a class with the name of fqcn cannot be found, take no action and continue to the next step. If any of InstantiationException, IllegalAccessException, or ClassCastException are thrown, wrap the exception in a FacesException and re-throw it. If any other exception is thrown, log the exception and continue to the next step. If none of the previous steps have yielded a UIComponent instance, call #createComponent(java.lang.String) passing "jakarta.faces.NamingContainer" as the argument. Call UIComponent#setRendererType on the UIComponent instance, passing "jakarta.faces.Composite" as the argument. Store the argument Resource in the attributes Map of the UIComponent under the key, Resource#COMPONENT_RESOURCE_KEY. Store composite component metadata in the attributes Map of the UIComponent under the key, UIComponent#BEANINFO_KEY. Before the component instance is returned, it must be inspected for the presence of a jakarta.faces.event.ListenerFor annotation. If this annotation is present, the action listed in jakarta.faces.event.ListenerFor must be taken on the component, before it is returned from this method. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:2261 - Instantiate and return a new Converter instance of the class specified by a previous call to addConverter() for the specified converter id. If the toLowerCase() of the String represenation of the value of the "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, passing the return from TimeZone.getDefault(). The argument converter must be inspected for the presence of the jakarta.faces.application.ResourceDependency annotation. If the ResourceDependency annotation is present, the action described in ResourceDependency must be taken. If the ResourceDependency annotation is not present, the argument converter must be inspected for the presence of the jakarta.faces.application.ResourceDependencies annotation. If the ResourceDependencies annotation is present, the action described in ResourceDependencies must be taken. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2262 - Instantiate and return a new Converter instance of the class that has registered itself as capable of performing conversions for objects of the specified type. If no such Converter class can be identified, return null. To locate an appropriate Converter class, the following algorithm is performed, stopping as soon as an appropriate Converter class is found: Locate a Converter registered for the target class itself. Locate a Converter registered for interfaces that are implemented by the target class (directly or indirectly). Locate a Converter registered for the superclass (if any) of the target class, recursively working up the inheritance hierarchy. If the Converter has a single argument constructor that accepts a Class, instantiate the Converter using that constructor, passing the argument targetClass as the sole argument. Otherwise, simply use the zero-argument constructor. If the toLowerCase() of the String represenation of the value of the "jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE" application configuration parameter is "true" (without the quotes) and the Converter instance to be returned is an instance of jakarta.faces.convert.DateTimeConverter, jakarta.faces.convert.DateTimeConverter#setTimeZone must be called, passing the return from TimeZone.getDefault(). - jakarta.faces.application - Application - - - java.lang.Class - - - - - - JSF:JAVADOC:2263 - Instantiate and return a new Validator instance of the class specified by a previous call to addValidator() for the specified validator id. The argument validator must be inspected for the presence of the jakarta.faces.application.ResourceDependency annotation. If the ResourceDependency annotation is present, the action described in ResourceDependency must be taken. If the ResourceDependency annotation is not present, the argument validator must be inspected for the presence of the jakarta.faces.application.ResourceDependencies annotation. If the ResourceDependencies annotation is present, the action described in ResourceDependencies must be taken. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2264 - if a Validator of the specified id cannot be created - jakarta.faces.application - Application - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2265 - Get a value by evaluating an expression. Call #getExpressionFactory then call ExpressionFactory#createValueExpression passing the argument expression and expectedType. Call FacesContext#getELContext and pass it to ValueExpression#getValue, returning the result. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - - - - - JSF:JAVADOC:2266 - - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - jakarta.el.ELException - - - - - JSF:JAVADOC:2267 - Return an Iterator over the set of currently registered behavior ids for this Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2268 - Return an Iterator over the set of currently defined component types for this Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2269 - Return an Iterator over the set of currently registered converter ids for this Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2270 - Return an Iterator over the set of Class instances for which Converter classes have been explicitly registered. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2271 - Return the default Locale for this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2272 - Return the renderKitId to be used for rendering this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2273 - Return an immutable Map over the set of currently registered default validator IDs and their class name for this Application. An implementation is provided that returns Collections.emptyMap so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2274 - If no calls have been made to #addELContextListener, this method must return an empty array. Otherwise, return an array representing the list of listeners added by calls to #addELContextListener. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2275 - Return the singleton ELResolver instance to be used for all Jakarta Expression Language resolution. This is actually an instance of jakarta.el.CompositeELResolver that must contain the following ELResolver instances in the following order: ELResolver instances declared using the element in the application configuration resources. An implementation that wraps the head of the legacy VariableResolver chain, as per section VariableResolver ChainWrapper in Chapter 5 in the spec document. An implementation that wraps the head of the legacy PropertyResolver chain, as per section PropertyResolver ChainWrapper in Chapter 5 in the spec document. Any ELResolver instances added by calls to #addELResolver. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2276 - Return the ExpressionFactory instance for this application. This instance is used by the convenience method #evaluateExpressionGet. The implementation must return the ExpressionFactory from the Expression Language container by calling jakarta.el.ELManager.getExpressionFactory(). An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2277 - Return the thread-safe singleton FlowHandler for this application. For implementations declaring compliance with version 2.2 of the specification, this method must never return null, even if the application has no flows. This is necessary to enable dynamic flow creation during the application's lifetime. All implementations that declare compliance with version 2.2 of the specification must implement this method. For the purpose of backward compatibility with environments that extend Application but do not override this method, an implementation is provided that returns null. Due to the decoratable nature of Application, code calling this method should always check for a null return. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2278 - Return the fully qualified class name of the ResourceBundle to be used for Jakarta Faces messages for this application. If not explicitly set, null is returned. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2279 - Return the project stage for the currently running application instance. The default value is ProjectStage#Production The implementation of this method must perform the following algorithm or an equivalent with the same end result to determine the value to return. If the value has already been determined by a previous call to this method, simply return that value. Look for a JNDI environment entry under the key given by the value of ProjectStage#PROJECT_STAGE_JNDI_NAME (return type of java.lang.String). If found, continue with the algorithm below, otherwise, look for an entry in the initParamMap of the ExternalContext from the current FacesContext with the key given by the value of ProjectStage#PROJECT_STAGE_PARAM_NAME If a value is found, see if an enum constant can be obtained by calling ProjectStage.valueOf(), passing the value from the initParamMap. If this succeeds without exception, save the value and return it. If not found, or any of the previous attempts to discover the enum constant value have failed, log a descriptive error message, assign the value as ProjectStage.Production and return it. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2280 - Find a ResourceBundle as defined in the application configuration resources under the specified name. If a ResourceBundle was defined for the name, return an instance that uses the locale of the current jakarta.faces.component.UIViewRoot. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2281 - Return the singleton, stateless, thread-safe ResourceHandler for this application. The Jakarta Faces implementation must support the following techniques for declaring an alternate implementation of ResourceHandler. The ResourceHandler implementation is declared in the application configuration resources by giving the fully qualified class name as the value of the element within the element. In all of the above cases, the runtime must employ the decorator pattern as for every other pluggable artifact in Jakarta Faces. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2282 - Return the thread-safe singleton SearchExpressionHandler for this application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2283 - Return the singleton SearchKeywordResolver instance to be used for all search keyword resolution. This is actually an instance of a composite SearchKeywordResolver that must contain the following SearchKeywordResolver instances in the following order: SearchKeywordResolver instances declared using the element in the application configuration resources. Any SearchKeywordResolver instances added by calls to #addSearchKeywordResolver. The SearchKeywordResolver implementations for @all, @child(n), @form, @id(...), @namingcontainer, @next, @none, @parent, @previous, @root and @this. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2284 - Return the StateManager instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. If not explicitly set, a default implementation must be provided that performs the functions described in the StateManager description in the Jakarta Faces Specification. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2285 - Return an Iterator over the supported Locales for this appication. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2286 - Return an Iterator over the set of currently registered validator ids for this Application. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2287 - Return the ViewHandler instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. If not explicitly set, a default implementation must be provided that performs the functions described in the ViewHandler description in the Jakarta Faces Specification. - jakarta.faces.application - Application - - - - - JSF:JAVADOC:2288 - If jakarta.faces.context.FacesContext#isProcessingEvents() is true and there are one or more listeners for events of the type represented by systemEventClass, call those listeners, passing source as the source of the event. The implementation should be as fast as possible in determining whether or not a listener for the given systemEventClass and source has been installed, and should return immediately once such a determination has been made. The implementation of publishEvent must honor the requirements stated in #subscribeToEvent regarding the storage and retrieval of listener instances. Specifically, if #subscribeToEvent(Class,Class,SystemEventListener) was called, the sourceClass argument must match exactly the Class of the source argument in the call to publishEvent(). The implementation must not do any inheritance hierarachy inspection when looking for a match between the sourceClass passed to #subscribeToEvent(Class,Class,SystemEventListener) and the sourceClass passed to publishEvent() in order to find any listeners to which the event should be published. In the case where the Class of the source argument does not match the Class of the sourceClass used when the listener was subscribed using subscribeToEvent(), #publishEvent(FacesContext,Class,Class,Object) can be used to provide the Class used to perform the listener lookup and match. The default implementation must implement an algorithm semantically equivalent to the following to locate listener instances and to invoke them. If the source argument implements jakarta.faces.event.SystemEventListenerHolder, call jakarta.faces.event.SystemEventListenerHolder#getListenersForEventClass on it, passing the systemEventClass argument. If the list is not empty, perform algorithm traverseListenerList on the list. If any view level listeners have been installed by previous calls to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the jakarta.faces.component.UIViewRoot, perform algorithm traverseListenerList on the list of listeners for that event installed on the UIViewRoot. If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. If any Application level listeners have been installed by previous calls to #subscribeToEvent(Class, jakarta.faces.event.SystemEventListener), perform algorithm traverseListenerList on the list. If the act of invoking the processListener method causes an jakarta.faces.event.AbortProcessingException to be thrown, processing of the listeners must be aborted, no further processing of the listeners for this event must take place, and the exception must be logged with Level.SEVERE. Algorithm traverseListenerList: For each listener in the list, Call jakarta.faces.event.SystemEventListener#isListenerForSource, passing the source argument. If this returns false, take no action on the listener. Otherwise, if the event to be passed to the listener instances has not yet been constructed, construct the event, passing source as the argument to the one-argument constructor that takes an Object. This same event instance must be passed to all listener instances. Call jakarta.faces.event.SystemEvent#isAppropriateListener, passing the listener instance as the argument. If this returns false, take no action on the listener. Call jakarta.faces.event.SystemEvent#processListener, passing the listener instance. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Object - - - - - - JSF:JAVADOC:2289 - This method functions exactly like #publishEvent(FacesContext,Class,Object), except the run-time must use the argument sourceBaseType to find the matching listener instead of using the Class of the source argument. A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Class - java.lang.Object - - - - - - JSF:JAVADOC:2290 - Remove the argument listener from the list of ELContextListeners. If listener is null, no exception is thrown and no action is performed. If listener is not in the list, no exception is thrown and no action is performed. An implementation is provided that throws UnsupportedOperationException so that users that decorate the Application continue to work. - jakarta.faces.application - Application - - - jakarta.el.ELContextListener - - - - - - JSF:JAVADOC:2291 - Set the default Locale for this application. - jakarta.faces.application - Application - - - java.util.Locale - - - - - - JSF:JAVADOC:2292 - Set the renderKitId to be used to render this application. Unless the client has provided a custom ViewHandler that supports the use of multiple jakarta.faces.render.RenderKit instances in the same application, this method must only be called at application startup, before any Faces requests have been processed. This is a limitation of the current Specification, and may be lifted in a future release. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2293 - Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements of the faces flows feature. - jakarta.faces.application - Application - - - jakarta.faces.flow.FlowHandler - - - - - - JSF:JAVADOC:2294 - Set the fully qualified class name of the ResourceBundle to be used for Jakarta Faces messages for this application. See the JavaDocs for the java.util.ResourceBundle class for more information about the syntax for resource bundle names. - jakarta.faces.application - Application - - - java.lang.String - - - - - - JSF:JAVADOC:2295 - Set the ResourceHandler instance that will be utilized for rendering the markup for resources, and for satisfying client requests to serve up resources. - jakarta.faces.application - Application - - - jakarta.faces.application.ResourceHandler - - - - - - JSF:JAVADOC:2296 - Set the SearchExpressionHandler instance used by the application. - jakarta.faces.application - Application - - - jakarta.faces.component.search.SearchExpressionHandler - - - - - - JSF:JAVADOC:2297 - Set the StateManager instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. - jakarta.faces.application - Application - - - jakarta.faces.application.StateManager - - - - - - JSF:JAVADOC:2298 - Set the Locale instances representing the supported Locales for this application. - jakarta.faces.application - Application - - - java.util.Collection - - - - - - JSF:JAVADOC:2299 - Set the ViewHandler instance that will be utilized during the Restore View and Render Response phases of the request processing lifecycle. - jakarta.faces.application - Application - - - jakarta.faces.application.ViewHandler - - - - - - JSF:JAVADOC:2300 - Install the listener instance referenced by argument listener into the application as a listener for events of type systemEventClass that originate from objects of type sourceClass. If argument sourceClass is non-null, sourceClass and systemEventClass must be used to store the argument listener in the application in such a way that the listener can be quickly looked up by the implementation of #publishEvent given systemEventClass and an instance of the Class referenced by sourceClass. If argument sourceClass is null, the listener must be discoverable by the implementation of #publishEvent given only systemEventClass. It is valid to call this method during the processing of an event which was subscribed to by a previous call to this method. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2301 - Install the listener instance referenced by argument listener into application as a listener for events of type systemEventClass. The default implementation simply calls through to #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) passing null as the sourceClass argument A default implementation is provided that throws UnsupportedOperationException so that users that decorate Application can continue to function . - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2302 - Remove the listener instance referenced by argument listener from the application as a listener for events of type systemEventClass that originate from objects of type sourceClass. See #subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) for the specification of how the listener is stored, and therefore, how it must be removed. See #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an additional requirement regarding when it is valid to call this method. - jakarta.faces.application - Application - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2303 - Remove the listener instance referenced by argument listener from the application as a listener for events of type systemEventClass. The default implementation simply calls through to #unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) passing null as the sourceClass argument See #subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener) for an additional requirement regarding when it is valid to call this method. - jakarta.faces.application - Application - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2304 - - jakarta.faces.application - ApplicationConfigurationPopulator - - - - - JSF:JAVADOC:2305 - Service providers that implement this service must be called by the Jakarta Faces runtime exactly once for each implementation, at startup, before any requests have been serviced. Before calling the #populateApplicationConfiguration method, the runtime must ensure that the Document argument is empty aside from being pre-configured to be in the proper namespace for an Application Configuration Resources file: https://jakarta.ee/xml/ns/jakartaee. Implementations of this service must ensure that any changes made to the argument Document conform to that schema as defined in the specification. The Jakarta Faces runtime is not required to validate the Document after control returns from the service implementation, though it may do so. Ordering of Artifacts If the document is made to contain an element, as specified in the section 11.3.8 "Ordering of Artifacts" in the Jakarta Faces Specification Document, the document will be prioritized accordingly. Otherwise, the runtime must place the document in the list of other Application Configuration Resources documents at the "lowest" priority, meaning any conflicts that may arise between the argument document and any other Application Configuration Resources are resolved in favor of the other document. - jakarta.faces.application - ApplicationConfigurationPopulator - - - org.w3c.dom.Document - - - - - - JSF:JAVADOC:2306 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ApplicationFactory - - - jakarta.faces.application.ApplicationFactory - - - - - - JSF:JAVADOC:2307 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.application - ApplicationFactory - - - - - JSF:JAVADOC:2308 - The default behavior of this method is to call Application#addBehavior(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2309 - The default behavior of this method is to call Application#addComponent(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2310 - The default behavior of this method is to call Application#addConverter(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2311 - The default behavior of this method is to call Application#addConverter(Class, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.String - - - - - - JSF:JAVADOC:2312 - The default behavior of this method is to call Application#addDefaultValidatorId(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2313 - The default behavior of this method is to call Application#addELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ELContextListener - - - - - - JSF:JAVADOC:2314 - The default behavior of this method is to call Application#addELResolver(jakarta.el.ELResolver) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ELResolver - - - - - - JSF:JAVADOC:2315 - Cause the argument resolver to be added to the head of the resolver chain. It is not possible to remove a SearchKeywordResolver registered with this method, once it has been registered. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.component.search.SearchKeywordResolver - - - - - - JSF:JAVADOC:2316 - The default behavior of this method is to call Application#addValidator(String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2317 - - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2318 - If this application has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.Application - - - - - - JSF:JAVADOC:2319 - The default behavior of this method is to call Application#createBehavior(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2320 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2321 - The default behavior of this method is to call Application#createComponent(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2322 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2323 - The default behavior of this method is to call Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2324 - - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2325 - The default behavior of this method is to call Application#createComponent(jakarta.el.ValueExpression, jakarta.faces.context.FacesContext, String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ValueExpression - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2326 - The default behavior of this method is to call Application#createComponent(jakarta.faces.context.FacesContext, String, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2327 - The default behavior of this method is to call Application#createComponent(jakarta.faces.context.FacesContext, Resource) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:2328 - The default behavior of this method is to call Application#createConverter(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2329 - The default behavior of this method is to call Application#createConverter(Class) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - - - - - - JSF:JAVADOC:2330 - The default behavior of this method is to call Application#createValidator(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2331 - - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2332 - The default behavior of this method is to call Application#evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - - - - - JSF:JAVADOC:2333 - - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.Class - - jakarta.el.ELException - - - - - JSF:JAVADOC:2334 - The default behavior of this method is to call Application#getActionListener on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2335 - The default behavior of this method is to call Application#getBehaviorIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2336 - The default behavior of this method is to call Application#getComponentTypes on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2337 - The default behavior of this method is to call Application#getConverterIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2338 - The default behavior of this method is to call Application#getConverterTypes on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2339 - The default behavior of this method is to call Application#getDefaultLocale on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2340 - The default behavior of this method is to call Application#getDefaultRenderKitId on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2341 - The default behavior of this method is to call Application#getDefaultValidatorInfo on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2342 - The default behavior of this method is to call Application#getELContextListeners on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2343 - The default behavior of this method is to call Application#getELResolver on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2344 - The default behavior of this method is to call Application#getExpressionFactory on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2345 - Return the thread-safe singleton FlowHandler for this application. For implementations declaring compliance with version 2.2 of the specification, this method must never return null, even if the application has no flows. This is necessary to enable dynamic flow creation during the application's lifetime. All implementations that declare compliance with version 2.2 of the specification must implement this method. For the purpose of backward compatibility with environments that extend Application but do not override this method, an implementation is provided that returns null. Due to the decoratable nature of Application, code calling this method should always check for a null return. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2346 - The default behavior of this method is to call Application#getMessageBundle on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2347 - The default behavior of this method is to call Application#getNavigationHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2348 - The default behavior of this method is to call Application#getProjectStage on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2349 - The default behavior of this method is to call Application#getResourceBundle(jakarta.faces.context.FacesContext, String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2350 - The default behavior of this method is to call Application#getResourceHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2351 - Return the thread-safe singleton SearchExpressionHandler for this application. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2352 - Return the singleton SearchKeywordResolver instance to be used for all search keyword resolution. This is actually an instance of a composite SearchKeywordResolver that must contain the following SearchKeywordResolver instances in the following order: SearchKeywordResolver instances declared using the element in the application configuration resources. Any SearchKeywordResolver instances added by calls to #addSearchKeywordResolver. The SearchKeywordResolver implementations for @all, @child(n), @form, @id(...), @namingcontainer, @next, @none, @parent, @previous, @root and @this. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend Application. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2353 - The default behavior of this method is to call Application#getStateManager on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2354 - The default behavior of this method is to call Application#getSupportedLocales on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2355 - The default behavior of this method is to call Application#getValidatorIds on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2356 - The default behavior of this method is to call Application#getViewHandler on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2357 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ApplicationWrapper - - - - - JSF:JAVADOC:2358 - The default behavior of this method is to call Application#publishEvent(jakarta.faces.context.FacesContext, Class, Object) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Object - - - - - - JSF:JAVADOC:2359 - The default behavior of this method is to call Application#publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.context.FacesContext - java.lang.Class - java.lang.Class - java.lang.Object - - - - - - JSF:JAVADOC:2360 - The default behavior of this method is to call Application#removeELContextListener(jakarta.el.ELContextListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.el.ELContextListener - - - - - - JSF:JAVADOC:2361 - The default behavior of this method is to call Application#setActionListener(jakarta.faces.event.ActionListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.event.ActionListener - - - - - - JSF:JAVADOC:2362 - The default behavior of this method is to call Application#setDefaultLocale(java.util.Locale) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.util.Locale - - - - - - JSF:JAVADOC:2363 - The default behavior of this method is to call Application#setDefaultRenderKitId(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2364 - Set the FlowHandler instance used by the NavigationHandler to satisfy the requirements of the faces flows feature. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.flow.FlowHandler - - - - - - JSF:JAVADOC:2365 - The default behavior of this method is to call Application#setMessageBundle(String) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2366 - The default behavior of this method is to call Application#setNavigationHandler(NavigationHandler) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.NavigationHandler - - - - - - JSF:JAVADOC:2367 - The default behavior of this method is to call Application#setResourceHandler(ResourceHandler) on the wrapped Application object. This method can throw IllegalStateException and NullPointerException. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ResourceHandler - - - - - - JSF:JAVADOC:2368 - Set the SearchExpressionHandler instance used by the application. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.component.search.SearchExpressionHandler - - - - - - JSF:JAVADOC:2369 - The default behavior of this method is to call Application#setStateManager(StateManager) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.StateManager - - - - - - JSF:JAVADOC:2370 - The default behavior of this method is to call Application#setSupportedLocales(java.util.Collection) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.util.Collection - - - - - - JSF:JAVADOC:2371 - The default behavior of this method is to call Application#setViewHandler(ViewHandler) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - jakarta.faces.application.ViewHandler - - - - - - JSF:JAVADOC:2372 - The default behavior of this method is to call Application#subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2373 - The default behavior of this method is to call Application#subscribeToEvent(Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2374 - The default behavior of this method is to call Application#unsubscribeFromEvent(Class, Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2375 - The default behavior of this method is to call Application#unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener) on the wrapped Application object. - jakarta.faces.application - ApplicationWrapper - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:2376 - - jakarta.faces.application - ConfigurableNavigationHandler - - - - - JSF:JAVADOC:2377 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2378 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. Implementations that comply the version of the specification in which this method was introduced must override this method. For compatibility with decorated implementations that comply with an earlier version of the specification, an implementation is provided that simply calls through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2379 - Return a Map where the keys are values and the values are Set where each element in the Set is a NavigationCase that applies to that . The implementation must support live modifications to this Map. - jakarta.faces.application - ConfigurableNavigationHandler - - - - - JSF:JAVADOC:2380 - Called by the flow system to cause the flow to be inspected for navigation rules. For backward compatibility with earlier implementations, an empty method is provided. - jakarta.faces.application - ConfigurableNavigationHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:2381 - A convenience method to signal the Jakarta Faces implementation to perform navigation with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as the "from viewId" and the "from action" is null. - jakarta.faces.application - ConfigurableNavigationHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2382 - - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - - JSF:JAVADOC:2383 - If this configurable navigation handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.application.ConfigurableNavigationHandler - - - - - - JSF:JAVADOC:2384 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2385 - Return the NavigationCase representing the navigation that would be taken had NavigationHandler#handleNavigation been called with the same arguments or null if there is no such case. Implementations that comply the version of the specification in which this method was introduced must override this method. For compatibility with decorated implementations that comply with an earlier version of the specification, an implementation is provided that simply calls through to #getNavigationCase(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2386 - Return a Map where the keys are values and the values are Set where each element in the Set is a NavigationCase that applies to that . The implementation must support live modifications to this Map. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - - JSF:JAVADOC:2387 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - - - JSF:JAVADOC:2388 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2389 - Called by the flow system to cause the flow to be inspected for navigation rules. For backward compatibility with earlier implementations, an empty method is provided. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:2390 - A convenience method to signal the Jakarta Faces implementation to perform navigation with the provided outcome. When the NavigationHandler is invoked, the current viewId is treated as the "from viewId" and the "from action" is null. - jakarta.faces.application - ConfigurableNavigationHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2391 - Construct a new jakarta.faces.application.FacesMessage with no initial values. The severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2392 - Construct a new jakarta.faces.application.FacesMessage with just a summary. The detail is null, the severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - - JSF:JAVADOC:2393 - Construct a new jakarta.faces.application.FacesMessage with the specified initial values. The severity is set to Severity.INFO. - jakarta.faces.application - FacesMessage - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2394 - Construct a new FacesMessage with the specified initial values. - jakarta.faces.application - FacesMessage - - - jakarta.faces.application.FacesMessage.FacesMessage.Severity - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2395 - Return the localized detail text. If no localized detail text has been defined for this message, return the localized summary text instead. - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2396 - Return the severity level. - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2397 - Return the localized summary text. - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2398 - - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2399 - Marks this message as having been rendered to the client. - jakarta.faces.application - FacesMessage - - - - - JSF:JAVADOC:2400 - Set the localized detail text. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - - JSF:JAVADOC:2401 - Set the severity level. - jakarta.faces.application - FacesMessage - - - jakarta.faces.application.FacesMessage.FacesMessage.Severity - - - - - - JSF:JAVADOC:2402 - Set the localized summary text. - jakarta.faces.application - FacesMessage - - - java.lang.String - - - - - - JSF:JAVADOC:2403 - Compare this jakarta.faces.application.FacesMessage.Severity instance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object. - jakarta.faces.application - FacesMessage.Severity - - - java.lang.Object - - - - - - JSF:JAVADOC:2404 - Return the ordinal value of this FacesMessage.Severity instance. - jakarta.faces.application - FacesMessage.Severity - - - - - JSF:JAVADOC:2405 - Return a String representation of this FacesMessage.Severity instance. - jakarta.faces.application - FacesMessage.Severity - - - - - JSF:JAVADOC:2406 - - jakarta.faces.application - NavigationCase - - - java.lang.Object - - - - - - JSF:JAVADOC:2407 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2408 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2409 - Construct an absolute URL suitable for a bookmarkable link to this NavigationCase instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the url. This URL may include view parameters specified as metadata within the view. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2410 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2411 - Evaluates the for this , if any. The expression to be evaluated is passed into the constructor as a string. When the expression is evaluated, its value must be coerced into a boolean per the normal Jakarta Expression Language coercion rules. Note throws any exceptions encountered during the process of evaluating the expression or obtaining its value. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2412 - Return the for this - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2413 - Return the for this - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2414 - Return the of the inside which this is nested. - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2415 - Return the parameters to be included for navigation cases requiring a redirect. If no parameters are defined, null will be returned. The keys in the Map are parameter names. For each key, the corresponding value is a List of unconverted values. - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2416 - Construct an absolute URL suitable for a "redirect" to this NavigationCase instance using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2417 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2418 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2419 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2420 - If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations must override this method to return the value defined in the corresponding application configuration resources element. The base implementation returns the empty string. - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2421 - Evaluates the for this - jakarta.faces.application - NavigationCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2422 - Test if this navigation case has an associated element. - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2423 - - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2424 - Return the value for this . This will be true if the view parametets should be encoded into the redirect URL (only applies to redirect case) - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2425 - Return the value for this . This will be true if the new view should be navigated to via a jakarta.faces.context.ExternalContext#redirect(String) - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2426 - Construct a new NavigationCase based on the provided arguments. See section 7.4.2 "Default NavigationHandler Algorithm" of the Jakarta Faces Specification Document for how a NavigationCase is used by the standard ConfigurableNavigationHandler - jakarta.faces.application - NavigationCase - - - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.util.Map - boolean - boolean - - - - - - JSF:JAVADOC:2427 - Construct a new NavigationCase based on the provided arguments. See section 7.4.2 "Default NavigationHandler Algorithm" of the Jakarta Faces Specification Document for how a NavigationCase is used by the standard ConfigurableNavigationHandler - jakarta.faces.application - NavigationCase - - - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.lang.String - java.util.Map - boolean - boolean - - - - - - JSF:JAVADOC:2428 - - jakarta.faces.application - NavigationCase - - - - - JSF:JAVADOC:2429 - - jakarta.faces.application - NavigationCaseWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:2430 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getActionURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2431 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2432 - Construct an absolute URL suitable for a bookmarkable link to this NavigationCase instance using jakarta.faces.application.ViewHandler#getBookmarkableURL on the path portion of the url. This URL may include view parameters specified as metadata within the view. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2433 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2434 - Evaluates the for this , if any. The expression to be evaluated is passed into the constructor as a string. When the expression is evaluated, its value must be coerced into a boolean per the normal Jakarta Expression Language coercion rules. Note throws any exceptions encountered during the process of evaluating the expression or obtaining its value. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2435 - Return the for this - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2436 - Return the for this - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2437 - Return the of the inside which this is nested. - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2438 - Return the parameters to be included for navigation cases requiring a redirect. If no parameters are defined, null will be returned. The keys in the Map are parameter names. For each key, the corresponding value is a List of unconverted values. - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2439 - Construct an absolute URL suitable for a "redirect" to this NavigationCase instance using jakarta.faces.application.ViewHandler#getRedirectURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2440 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2441 - Construct an absolute URL to this NavigationCase instance using jakarta.faces.application.ViewHandler#getResourceURL on the path portion of the url. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2442 - if the process of constructing the URL causes this exception to be thrown. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - java.net.MalformedURLException - - - - - JSF:JAVADOC:2443 - If this navigation case represents a flow invocation, this property is the documentId in which the flow whose id is given by the return from #getFromOutcome() is defined. Implementations must override this method to return the value defined in the corresponding application configuration resources element. The base implementation returns the empty string. - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2444 - Evaluates the for this - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2445 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2446 - Test if this navigation case has an associated element. - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2447 - - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2448 - Return the value for this . This will be true if the view parametets should be encoded into the redirect URL (only applies to redirect case) - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2449 - Return the value for this . This will be true if the new view should be navigated to via a jakarta.faces.context.ExternalContext#redirect(String) - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2450 - - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2451 - If this navigation case has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - NavigationCaseWrapper - - - jakarta.faces.application.NavigationCase - - - - - - JSF:JAVADOC:2452 - - jakarta.faces.application - NavigationCaseWrapper - - - - - JSF:JAVADOC:2453 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2454 - Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler implementations that conform to an earlier version of the specification, an implementation is provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - NavigationHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2455 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - NavigationHandlerWrapper - - - - - JSF:JAVADOC:2456 - Perform navigation processing based on the state information in the specified FacesContext, plus the outcome string returned by an executed application action. If the implementation class also extends ConfigurableNavigationHandler, the implementation must guarantee that the logic used in a call to ConfigurableNavigationHandler#getNavigationCase is used in this method to determine the correct navigation. This method must set the render targets (used in partial rendering) to render all invoking jakarta.faces.context.PartialViewContext#setRenderAll) if the view identifier has changed as the result of an application action (to take into account Ajax requests). - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2457 - Overloaded variant of #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String) that allows the caller to provide the defining document id for a flow to be entered by this navigation. For backward compatibility with decorated NavigationHandler implementations that conform to an earlier version of the specification, an implementation is provided that calls through to #handleNavigation(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), ignoring the toFlowDocumentId parameter. - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2458 - - jakarta.faces.application - NavigationHandlerWrapper - - - - - JSF:JAVADOC:2459 - If this navigation handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - NavigationHandlerWrapper - - - jakarta.faces.application.NavigationHandler - - - - - - JSF:JAVADOC:2460 - - jakarta.faces.application - ProjectStage - - - java.lang.String - - - - - - JSF:JAVADOC:2461 - - jakarta.faces.application - ProjectStage - - - - - JSF:JAVADOC:2462 - Construct a new exception with no detail message or root cause. - jakarta.faces.application - ProtectedViewException - - - - - JSF:JAVADOC:2463 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.application - ProtectedViewException - - - java.lang.String - - - - - - JSF:JAVADOC:2464 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.application - ProtectedViewException - - - java.lang.Throwable - - - - - - JSF:JAVADOC:2465 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.application - ProtectedViewException - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:2466 - Return the MIME content-type for this resource. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2467 - If the current request is a resource request, (that is, ResourceHandler#isResourceRequest returns true), return an InputStream containing the bytes of the resource. Otherwise, throw an IOException. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2468 - if the current request is not a resource request. - jakarta.faces.application - Resource - - java.io.IOException - - - - - JSF:JAVADOC:2469 - Return the libraryName for this resource. May be null. The libraryName for a resource is an optional String that indicates membership in a "resource library". All resources with the same libraryName belong to the same "resource library". The "resource library" concept allows disambiguating resources that have the same resourceName. See ResourceHandler for more information. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2470 - Return a path to this resource such that, when the browser resolves it against the base URI for the view that includes the resource, and issues a GET request to the resultant fully qualified URL, the bytes of the resource are returned in response. The default implementation must implement the following algorithm. For discussion, the return result from this method will be called result. Get the context-root for this web application, not ending in slash. For discussion this will be called contextRoot. Discover if the FacesServlet is prefix (path) mapped, extension mapped, or exact mapped (as defined by Servlet.12.2.) and the value of the mapping (including the leading '.' in the case of extension mapping). For discussion, this will be facesServletMapping. If exact mapped, result must be the following if and only if the FacesServlet is mapped to the exact URL pattern ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName result = contextRoot + ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName If exact mapped, and the FacesServlet is not mapped to the exact URL pattern ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName do the following: Retrieve the existing mappings of the FacesServlet, e.g. using ServletRegistration#getMappings(), and from those pick any prefix mapping or extension mapping. If no such mapping is found, throw an IllegalStateException. If such mapping is found remove the * character from that mapping, take that as the new facesServletMapping and continue with evaluating this mapping as specified below for if prefix mapped and for if extension mapped If prefix mapped, result must be result = contextRoot + '/' + facesServletMapping + ResourceHandler#RESOURCE_IDENTIFIER + '/' + #getResourceName If extension mapped, result must be result = contextRoot + ResourceHandler#RESOURCE_IDENTIFIER + #getResourceName + facesServletMapping Build up a string, called resourceMetaData which is an amp; separated string of name=value pairs suitable for inclusion in a URL query string. If #getLibraryName returns non-null, resourceMetaData must include "ln=" + the return from #getLibraryName If there is a localePrefix for this application, as defined in ResourceHandler#LOCALE_PREFIX, resourceMetaData must include "loc=" + the localePrefix. If this resource is contained in a resource library contract, resourceMetaData must include "con=" + the name of the resource library contract. Append "?" + resourceMetaData to result. Make it portlet safe by passing the result through ViewHandler#getResourceURL. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2471 - Return the resourceName for this resource. Will never be null. All Resource instances must have a resourceName. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2472 - Returns a mutable Map whose entries will be sent as response headers during ResourceHandler#handleResourceRequest. The entries in this map must not persist beyond the scope of a single request. Any modifications made to the map after the resource has been served will be ignored by the run-time. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2473 - Return an actual URL instance that refers to this resource instance. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2474 - - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2475 - Set the MIME content-type for this resource. The default implementation performs no validation on the argument. - jakarta.faces.application - Resource - - - java.lang.String - - - - - - JSF:JAVADOC:2476 - Set the libraryName for this resource. - jakarta.faces.application - Resource - - - java.lang.String - - - - - - JSF:JAVADOC:2477 - Set the resourceName for this resource. - jakarta.faces.application - Resource - - - java.lang.String - - - - - - JSF:JAVADOC:2478 - Call through to #getRequestPath and return the result. - jakarta.faces.application - Resource - - - - - JSF:JAVADOC:2479 - Return true if the user-agent requesting this resource needs an update. If the If-Modified-Since HTTP header is available for this request, its value must be consulted, as specified in Section 14.25 of IETF RFC 2616, to determine the result. Returns false if the user-agent does not need an update for this resource. - jakarta.faces.application - Resource - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2480 - The individual resource dependencies - jakarta.faces.application - ResourceDependencies - - - - - JSF:JAVADOC:2481 - The libraryName in which the resource pointed to by this ResourceDependency resides. If not specified, defaults to the empty string. It is valid to have Jakarta Expression Language Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - - JSF:JAVADOC:2482 - The resourceName of the resource pointed to by this ResourceDependency. It is valid to have Jakarta Expression Language Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - - JSF:JAVADOC:2483 - The value given for this attribute will be passed as the "target" argument to jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.String). If this attribute is specified, jakarta.faces.component.UIViewRoot#addComponentResource(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) must be called instead, as described above. It is valid to have Jakarta Expression Language Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.application - ResourceDependency - - - - - JSF:JAVADOC:2484 - Create an instance of ViewResource given the argument resourceName. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType The algorithm specified in section 2.6.1.4 "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. For historical reasons, this method operate correctly when the argument resourceName is of the form libraryName/resourceName, even when resourceName contains '/' characters. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2485 - Create an instance of Resource with a resourceName given by the value of the argument resourceName that is a member of the library named by the argument libraryName. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType. The algorithm specified in section 2.6.1.4 "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2486 - Create an instance of Resource with a resourceName given by the value of the argument resourceName that is a member of the library named by the argument libraryName that claims to have the content-type given by the argument content-type. The algorithm specified in section 2.6.1.4 "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document must be executed to create the Resource. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2487 - Create an instance of Resource given the argument resourceId. The content-type of the resource is derived by passing the resourceName to jakarta.faces.context.ExternalContext#getMimeType The resource must be identified according to the specification in section 2.6.1.3 "Resource Identifiers" of the Jakarta Faces Specification Document. New requirements were introduced in version 2.2 of the specification. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2488 - Create an instance of Resource given the argument resourceName, which may contain "/" characters. The jakarta.faces.view.ViewDeclarationLanguage calls this method when it needs to load a view from a persistent store, such as a filesystem. This method is functionality equivalent to #createResource(java.lang.String), but all callsites that need to load VDL views must use this method so that classes that want to decorate the ResourceHandler in order to only affect the loading of views may do so without affecting the processing of other kinds of resources, such as scripts and stylesheets. A jakarta.faces.context.FacesContext must be present before calling this method. To preserve compatibility with prior revisions of the specification, a default implementation must be provided that calls #createResource(java.lang.String). The default implementation must look for the resource in the following places, in this order. Considering resource library contracts (at the locations specified in the Jakarta Faces Specification Document section 2.7 "Resource Library Contracts"). Considering the web app root. Considering faces flows (at the locations specified in the Jakarta Faces Specification Document section 11.3.3 "Faces Flows"). Call FacesContext#getResourceLibraryContracts. If the result is non-null and not empty, for each value in the list, treat the value as the name of a resource library contract. If the argument resoureName exists as a resource in the resource library contract, return it. Otherwise, return the resource (not in the resource library contract), if found. Otherwise, return null. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2489 - Return the renderer-type for a jakarta.faces.render.Renderer that is capable of rendering this resource. The default implementation must return values according to the following table. If no renderer-type can be determined, null must be returned. resource name to renderer-type mapping example resource name renderer-type mycomponent.js jakarta.faces.resource.Script mystyle.css jakarta.faces.resource.Stylesheet - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2490 - Return a Stream possibly lazily populated by walking the resource tree rooted at a given initial path. The resource tree is traversed breadth-first, the elements in the stream are view resource names that would yield a ViewResource when passed into ResourceHandler#createViewResource as the resourceName parameter. The maxDepth parameter is the maximum depth of directory levels to visit beyond the initial path, which is always visited. The value is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all levels should be visited. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ResourceVisitOption[] - - - - - - JSF:JAVADOC:2491 - Return a Stream possibly lazily populated by walking the resource tree rooted at a given initial path. The resource tree is traversed breadth-first, the elements in the stream are view resource names that would yield a ViewResource when passed into ResourceHandler#createViewResource as the resourceName parameter. This method works as if invoking it were equivalent to evaluating the expression: getViewResources(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all levels of the resource tree. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ResourceVisitOption[] - - - - - - JSF:JAVADOC:2492 - This method specifies the contract for satisfying resource requests. This method is called from jakarta.faces.webapp.FacesServlet#service after that method determines the current request is a resource request by calling #isResourceRequest. Thus, handleResourceRequest may assume that the current request is a resource request. The default implementation must implement an algorithm semantically identical to the following algorithm. For discussion, in all cases when a status code is to be set, this spec talks only using the Jakarta Servlet API, but it is understood that in a portlet environment the appropriate equivalent API must be used. If the resourceIdentifier ends with any of the extensions listed in the value of the #RESOURCE_EXCLUDES_PARAM_NAME init parameter, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Extract the resourceName from the resourceIdentifier by taking the substring of resourceIdentifier that starts at #RESOURCE_IDENTIFIER.length() + 1 and goes to the end of resourceIdentifier. If no resourceName can be extracted, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Extract the libraryName from the request by looking in the request parameter map for an entry under the key "ln", without the quotes. If found, use its value as the libraryName. If resourceName and libraryName are present, call #createResource(String, String) to create the Resource. If only resourceName is present, call #createResource(String) to create the Resource. If the Resource cannot be successfully created, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Call Resource#userAgentNeedsUpdate. If this method returns false, HttpServletRequest.SC_NOT_MODIFIED must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. Pass the result of Resource#getContentType to HttpServletResponse.setContentType. Call Resource#getResponseHeaders. For each entry in this Map, call HttpServletResponse.setHeader(), passing the key as the first argument and the value as the second argument. Call Resource#getInputStream and serve up the bytes of the resource to the response. Call HttpServletResponse.setContentLength() passing the byte count of the resource. If an IOException is thrown during any of the previous steps, log a descriptive, localized message, including the resourceName and libraryName (if present). Then, HttpServletRequest.SC_NOT_FOUND must be passed to HttpServletResponse.setStatus(), then handleResourceRequest must immediately return. In all cases in this method, any streams, channels, sockets, or any other IO resources must be closed before this method returns. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2493 - when an I/O error occurs. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2494 - Returns whether the resource as identified by given resource and library name has been rendered. The default implementation must during the render response phase of the current view return true when the resource has been marked as rendered via #markResourceRendered(FacesContext, String, String). - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2495 - Return true if the current request is a resource request. This method is called by jakarta.faces.webapp.FacesServlet#service to determine if this request is a view request or a resource request. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2496 - Return true if the argument url contains the string given by the value of the constant ResourceHandler#RESOURCE_IDENTIFIER, false otherwise. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2497 - Return true if the resource library named by the argument libraryName can be found. If there is a localePrefix for this application, as defined in #LOCALE_PREFIX, first look for the library with the prefix. If no such library is found, look for the library without the prefix. This allows developers to avoid duplication of files. For example, consider the case where the developer wants to have a resource library containing a localized image resource and a non-localized script resource. By checking both locations for the existence of the library, along with other spec changes in section 2.6.1.4 "Libraries of Localized and Versioned Resources" of the Jakarta Faces Specification Document, this scenario is enabled. - jakarta.faces.application - ResourceHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2498 - Mark the resource as identified by given resource and library name as rendered. The default implementation must ensure that #isResourceRendered(FacesContext, String, String) will return true when the resource has already been rendered during the render response phase of the current view. - jakarta.faces.application - ResourceHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2499 - - jakarta.faces.application - ResourceHandler - - - - - JSF:JAVADOC:2500 - The default behavior of this method is to call ResourceHandler#createResource(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2501 - The default behavior of this method is to call ResourceHandler#createResource(String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2502 - The default behavior of this method is to call ResourceHandler#createResource(String, String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2503 - The default behavior of this method is to call ResourceHandler#createResourceFromId(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2504 - The default behavior of this method is to call ResourceHandler#createViewResource on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2505 - The default behavior of this method is to call ResourceHandler#getRendererTypeForResourceName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2506 - The default behavior of this method is to call ResourceHandler#getViewResources(FacesContext, String, int, ResourceVisitOption...) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ResourceVisitOption[] - - - - - - JSF:JAVADOC:2507 - The default behavior of this method is to call ResourceHandler#getViewResources(FacesContext, String, ResourceVisitOption...) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ResourceVisitOption[] - - - - - - JSF:JAVADOC:2508 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ResourceHandlerWrapper - - - - - JSF:JAVADOC:2509 - The default behavior of this method is to call ResourceHandler#handleResourceRequest(jakarta.faces.context.FacesContext) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2510 - - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2511 - The default behavior of this method is to call ResourceHandler#isResourceRendered(FacesContext, String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2512 - The default behavior of this method is to call ResourceHandler#isResourceRequest(jakarta.faces.context.FacesContext) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2513 - The default behavior of this method is to call ResourceHandler#isResourceURL on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2514 - The default behavior of this method is to call ResourceHandler#libraryExists(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2515 - The default behavior of this method is to call ResourceHandler#markResourceRendered(FacesContext, String, String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2516 - - jakarta.faces.application - ResourceHandlerWrapper - - - - - JSF:JAVADOC:2517 - If this resource handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ResourceHandlerWrapper - - - jakarta.faces.application.ResourceHandler - - - - - - JSF:JAVADOC:2518 - - jakarta.faces.application - ResourceVisitOption - - - java.lang.String - - - - - - JSF:JAVADOC:2519 - - jakarta.faces.application - ResourceVisitOption - - - - - JSF:JAVADOC:2520 - The default behavior of this method is to call Resource#getContentType() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2521 - The default behavior of this method is to call Resource#getInputStream on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2522 - - jakarta.faces.application - ResourceWrapper - - java.io.IOException - - - - - JSF:JAVADOC:2523 - The default behavior of this method is to call Resource#getLibraryName() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2524 - The default behavior of this method is to call Resource#getRequestPath on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2525 - The default behavior of this method is to call Resource#getResourceName() on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2526 - The default behavior of this method is to call Resource#getResponseHeaders on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2527 - The default behavior of this method is to call Resource#getURL on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2528 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2529 - If this resource has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ResourceWrapper - - - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:2530 - - jakarta.faces.application - ResourceWrapper - - - - - JSF:JAVADOC:2531 - The default behavior of this method is to call Resource#setContentType(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2532 - The default behavior of this method is to call Resource#setLibraryName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2533 - The default behavior of this method is to call Resource#setResourceName(String) on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2534 - The default behavior of this method is to call Resource#userAgentNeedsUpdate on the wrapped ResourceHandler object. - jakarta.faces.application - ResourceWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2535 - Convenience method to return the view state as a String with no RenderKit specific markup. This default implementation of this method will call StateManagementStrategy#saveView(FacesContext) and passing the result to and returning the resulting value from ResponseStateManager#getViewState(jakarta.faces.context.FacesContext, Object). - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2536 - Method to determine if the state is saved on the client. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2537 - - jakarta.faces.application - StateManager - - - - - JSF:JAVADOC:2538 - Save the state represented in the specified state Object instance, in an implementation dependent manner. This method will typically simply delegate the actual writing to the writeState() method of the ResponseStateManager instance provided by the RenderKit being used to render this view. This method assumes that the caller has positioned the ResponseWriter at the correct position for the saved state to be written. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2539 - when an I/O error occurs. - jakarta.faces.application - StateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - - JSF:JAVADOC:2540 - The default behavior of this method is to call StateManager#getViewState(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2541 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - StateManagerWrapper - - - - - JSF:JAVADOC:2542 - The default behavior of this method is to call StateManager#isSavingStateInClient(jakarta.faces.context.FacesContext) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2543 - If this state manager has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.application.StateManager - - - - - - JSF:JAVADOC:2544 - The default behavior of this method is to call StateManager#writeState(jakarta.faces.context.FacesContext, java.lang.Object) on the wrapped StateManager object. - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2545 - - jakarta.faces.application - StateManagerWrapper - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - - JSF:JAVADOC:2546 - Return the message for this exception prepended with the view identifier if the view identifier is not null, otherwise, return the message. - jakarta.faces.application - ViewExpiredException - - - - - JSF:JAVADOC:2547 - Return the view identifier of this exception, or null if the view identifier is nonexistent or unknown. - jakarta.faces.application - ViewExpiredException - - - - - JSF:JAVADOC:2548 - Construct a new exception with no detail message or root cause. - jakarta.faces.application - ViewExpiredException - - - - - JSF:JAVADOC:2549 - Construct a new exception with the specified view identifier. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - - - - - - JSF:JAVADOC:2550 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:2551 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.application - ViewExpiredException - - - java.lang.Throwable - java.lang.String - - - - - - JSF:JAVADOC:2552 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.application - ViewExpiredException - - - java.lang.String - java.lang.Throwable - java.lang.String - - - - - - JSF:JAVADOC:2553 - Add the argument urlPattern to the thread safe Set of protected views for this application. Compliant implementations make it so a subsequent call to #getProtectedViewsUnmodifiable contains the argument. The runtime must support calling this method at any time after application startup. The default implementation takes no action. - jakarta.faces.application - ViewHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2554 - Returns the correct character encoding to be used for this request. The following algorithm is employed. Examine the Content-Type request header. If it has a charset parameter, extract it and return that as the encoding. If no charset parameter was found, check for the existence of a session by calling ExternalContext#getSession(boolean) passing false as the argument. If that method returns true, get the session Map by calling ExternalContext#getSessionMap and look for a value under the key given by the value of the symbolic constant ViewHandler#CHARACTER_ENCODING_KEY. If present, return the value, converted to String. Otherwise, return null - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2555 - Returns an appropriate Locale to use for this and subsequent requests for the current client. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2556 - Return an appropriate renderKitId for this and subsequent requests from the current client. It is an error for this method to return null. The default return value is jakarta.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2557 - Create and return a new UIViewRoot instance initialized with information from the argument FacesContext and viewId. Locate the ViewDeclarationLanguage implementation for the VDL used in the view. The argument viewId must be converted to a physical viewId that can refer to an actual resource suitable for use by the ViewDeclarationLanguage ViewDeclarationLanguage#createView, which must be called by this method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2558 - Derive and return the viewId from the current request, or the argument input by following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document. Note that unlike deriveViewId(), this method does not require that a physical view be present. This method should work correctly when the FacesServlet is invoked via either a path mapping, extension mapping or an exact match (mapping) as defined by Servlet.12.2. Note that path mapping is also commonly known as prefix mapping (e.g. "/faces/*") and extension mapping as suffix mapping (e.g. "*.xhtml"). An exact match is possible where there's a servlet mapping with an exact URL pattern such as "/foo". The default implementation of this method simply returns requestViewId unchanged. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2559 - Derive and return the viewId from the current request, or the argument input by following the algorithm defined in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document. This method should work correctly when the FacesServlet is invoked via either a path mapping, extension mapping or an exact match (mapping) as defined by Servlet.12.2. Note that path mapping is also commonly known as prefix mapping (e.g. "/faces/*") and extension mapping as suffix mapping (e.g. "*.xhtml"). An exact match is possible where there's a servlet mapping with an exact URL pattern such as "/foo". The default implementation of this method simply returns requestViewId unchanged. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2560 - If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a request to the toExternalForm() of that URL will select the argument viewId for traversing the Jakarta Faces lifecycle. Please see section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document for the complete specification, especially for details related to view protection using the jakarta.faces.render.ResponseStateManager#NON_POSTBACK_VIEW_TOKEN_PARAM and the behavior when the current request is to a URL for which the FacesServlet has an exact mapping as defined by Servlet.12.2. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2561 - Return a Jakarta Faces action URL derived from the viewId argument that is suitable to be used as the target of a link in a Jakarta Faces response. Compliant implementations must implement this method as specified in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document. The default implementation simply calls through to #getActionURL, passing the arguments context and viewId. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - - JSF:JAVADOC:2562 - Return an unmodifiable Set of the protected views currently known to this ViewHandler instance. Compliant implementations must return a Set that is the concatenation of the contents of all the elements within all the in all of the application configuration resources in the current application. The runtime must support calling this method at any time after application startup. The default implementation returns an unmodifiable empty Set. - jakarta.faces.application - ViewHandler - - - - - JSF:JAVADOC:2563 - Return a Jakarta Faces action URL derived from the viewId argument that is suitable to be used by the NavigationHandler to issue a redirect request to the URL using a NonFaces request. Compliant implementations must implement this method as specified in section 7.6.2 "Default ViewHandler Implementation" of the Jakarta Faces Specification Document. The default implementation simply calls through to #getActionURL, passing the arguments context and viewId. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - - JSF:JAVADOC:2564 - If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a request to the toExternalForm() of that URL will select the argument path for direct rendering. If the specified path starts with a slash, it must be treated as context relative; otherwise, it must be treated as relative to the action URL of the current view. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2565 - Return the ViewDeclarationLanguage instance used for this ViewHandler instance. The default implementation must use jakarta.faces.view.ViewDeclarationLanguageFactory#getViewDeclarationLanguage to obtain the appropriate ViewDeclarationLanguage implementation for the argument viewId. Any exceptions thrown as a result of invoking that method must not be swallowed. The default implementation of this method returns null. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2566 - Return a Stream possibly lazily populated by walking the view trees of every active ViewDeclarationLanguage rooted at a given initial path. The view tree of every ViewDeclarationLanguage is individually traversed breadth-first as per the contract of ViewDeclarationLanguage#getViews(FacesContext, String, int, ViewVisitOption...). The elements in the stream are logical view ids. The maxDepth parameter is the maximum depth of directory levels to visit for each ViewDeclarationLanguage beyond the initial path, which is always visited. The value is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all levels should be visited. In case more than one active ViewDeclarationLanguage is present, the order in which view ids from each ViewDeclarationLanguage appear in the stream is undetermined, except for the guarantee that every individual ViewDeclarationLanguage is traversed breadth-first. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:2567 - Return a Stream possibly lazily populated by walking the view trees of every active ViewDeclarationLanguage rooted at a given initial path. The view tree of every ViewDeclarationLanguage is individually traversed breadth-first as per the contract of ViewDeclarationLanguage#getViews(FacesContext, String, int, ViewVisitOption...). The elements in the stream are logical view ids. This method works as if invoking it were equivalent to evaluating the expression: getViews(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all levels of the view tree. In case more than one active ViewDeclarationLanguage is present, the order in which view ids from each ViewDeclarationLanguage appear in the stream is undetermined, except for the guarantee that every individual ViewDeclarationLanguage is traversed breadth-first. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:2568 - If the value returned from this method is used as the file argument to the four-argument constructor for java.net.URL (assuming appropriate values are used for the first three arguments), then a client making a push handshake request to the toExternalForm() of that URL will select the argument channel for connecting the websocket push channel in the current view. It must match the PushContext#URI_PREFIX of the endpoint. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2569 - Initialize the view for the request processing lifecycle. This method must be called at the beginning of the Restore View Phase of the Request Processing Lifecycle. It is responsible for performing any per-request initialization necessary to the operation of the lifycecle. The default implementation must perform the following actions. If ExternalContext#getRequestCharacterEncoding returns null, call #calculateCharacterEncoding and pass the result, if non-null, into the ExternalContext#setRequestCharacterEncoding method. If ExternalContext#getRequestCharacterEncoding returns non-null take no action. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2570 - if a problem occurs setting the encoding, such as the UnsupportedEncodingException thrown by the underlying Jakarta Servlet or Portlet technology when the encoding is not supported. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2571 - Remove the argument urlPattern from the thread safe Set of protected views for this application, if present in the Set. If the argument urlPattern is not present in the Set, this method has no effect. Compliant implementations must make it so a subsequent call to #getProtectedViewsUnmodifiable does not contain the argument. The runtime must support calling this method at any time after application startup. Returns true if this Set contained the argument. The default implementation takes no action and returns false. - jakarta.faces.application - ViewHandler - - - java.lang.String - - - - - - JSF:JAVADOC:2572 - Perform whatever actions are required to render the response view to the response object associated with the current FacesContext. Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage for the viewId of the argument viewToRender and call its ViewDeclarationLanguage#renderView method, returning the result and not swallowing any exceptions thrown by that method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:2573 - if an input/output error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:2574 - if a Jakarta Servlet error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2575 - Perform whatever actions are required to restore the view associated with the specified FacesContext and viewId. It may delegate to the restoreView of the associated StateManager to do the actual work of restoring the view. If there is no available state for the specified viewId, return null. Otherwise, the default implementation must obtain a reference to the ViewDeclarationLanguage for this viewId and call its ViewDeclarationLanguage#restoreView method, returning the result and not swallowing any exceptions thrown by that method. - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2576 - - jakarta.faces.application - ViewHandler - - - - - JSF:JAVADOC:2577 - Take any appropriate action to either immediately write out the current state information (by calling StateManager#writeState, or noting where state information should later be written. This method must do nothing if the current request is an Ajax request. When responding to Ajax requests, the state is obtained by calling StateManager#getViewState and then written into the Ajax response during final encoding (jakarta.faces.context.PartialViewContext#processPartial(jakarta.faces.event.PhaseId)) . - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2578 - if an input/output error occurs - jakarta.faces.application - ViewHandler - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2579 - The default behavior of this method is to call ViewHandler#addProtectedView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2580 - The default behavior of this method is to call ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2581 - The default behavior of this method is to call ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2582 - The default behavior of this method is to call ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2583 - The default behavior of this method is to call ViewHandler#createView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2584 - The default behavior of this method is to call ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2585 - The default behavior of this method is to call ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2586 - The default behavior of this method is to call ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2587 - The default behavior of this method is to call ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - - JSF:JAVADOC:2588 - The default behavior of this method is to call ViewHandler#getProtectedViewsUnmodifiable on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - - - JSF:JAVADOC:2589 - The default behavior of this method is to call ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.util.Map - boolean - - - - - - JSF:JAVADOC:2590 - The default behavior of this method is to call ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2591 - The default behavior of this method is to call ViewHandler#getViewDeclarationLanguage on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2592 - The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, ViewVisitOption...) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:2593 - The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:2594 - The default behavior of this method is to call ViewHandler#getWebsocketURL(FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2595 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.application - ViewHandlerWrapper - - - - - JSF:JAVADOC:2596 - The default behavior of this method is to call ViewHandler#initView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2597 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2598 - The default behavior of this method is to call ViewHandler#removeProtectedView on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:2599 - The default behavior of this method is to call ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:2600 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:2601 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2602 - The default behavior of this method is to call ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2603 - If this view handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.application.ViewHandler - - - - - - JSF:JAVADOC:2604 - - jakarta.faces.application - ViewHandlerWrapper - - - - - JSF:JAVADOC:2605 - The default behavior of this method is to call ViewHandler#writeState(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object. - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2606 - - jakarta.faces.application - ViewHandlerWrapper - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2607 - Return an actual URL instance that refers to this resource instance. - jakarta.faces.application - ViewResource - - - - - JSF:JAVADOC:2608 - - jakarta.faces.application - ViewResource - - - - - JSF:JAVADOC:2609 - - jakarta.faces.application - ViewVisitOption - - - java.lang.String - - - - - - JSF:JAVADOC:2610 - - jakarta.faces.application - ViewVisitOption - - - - - JSF:JAVADOC:2611 - Add a new ActionListener to the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - - - - - JSF:JAVADOC:2612 - Return the set of registered ActionListeners for this ActionSource instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - ActionSource - - - - - JSF:JAVADOC:2613 - Return a flag indicating that the default ActionListener provided by the Jakarta Faces implementation should be executed immediately (that is, during Apply Request Values phase of the request processing lifecycle), rather than waiting until the Invoke Application phase. The default value for this property must be false. - jakarta.faces.component - ActionSource - - - - - JSF:JAVADOC:2614 - Remove an existing ActionListener (if any) from the set of listeners interested in being notified when ActionEvents occur. - jakarta.faces.component - ActionSource - - - jakarta.faces.event.ActionListener - - - - - - JSF:JAVADOC:2615 - Set the "immediate execution" flag for this UIComponent. - jakarta.faces.component - ActionSource - - - boolean - - - - - - JSF:JAVADOC:2616 - Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. - jakarta.faces.component - ActionSource2 - - - - - JSF:JAVADOC:2617 - Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Any method referenced by such an expression must be public, with a return type of String, and accept no parameters. - jakarta.faces.component - ActionSource2 - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:2618 - This method will be called by an implementation of UIComponent#invokeOnComponent and must be passed the component with the clientId given as an argument to invokeOnComponent. At the point in time when this method is called, the argument target is guaranteed to be in the proper state with respect to its ancestors in the View. - jakarta.faces.component - ContextCallback - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2619 - Returns the public identifier of the document, or null if there is none. For example, "-//W3C//DTD XHTML 1.1//EN". - jakarta.faces.component - Doctype - - - - - JSF:JAVADOC:2620 - Returns the name of the first element in the document, never null. For example, "html". - jakarta.faces.component - Doctype - - - - - JSF:JAVADOC:2621 - Returns the system identifier of the document, or null if there is none. For example, "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd". - jakarta.faces.component - Doctype - - - - - JSF:JAVADOC:2622 - Add a Validator instance to the set associated with this component. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.validator.Validator - - - - - - JSF:JAVADOC:2623 - Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - - - - - JSF:JAVADOC:2624 - Return the submittedValue value of this component. This method should only be used by the encodeBegin() and/or encodeEnd() methods of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2625 - Return the set of registered Validators for this component instance. If there are no registered validators, a zero-length array is returned. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2626 - Return the set of registered ValueChangeListeners for this component instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2627 - Return the "immediate" state for this component. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2628 - Return the "local value set" state for this component. Calls to setValue() automatically reset this property to true. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2629 - Return the "required field" state for this component. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2630 - Return a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2631 - Remove a Validator instance from the set associated with this component, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.validator.Validator - - - - - - JSF:JAVADOC:2632 - Remove an existing ValueChangeListener (if any) from the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - EditableValueHolder - - - jakarta.faces.event.ValueChangeListener - - - - - - JSF:JAVADOC:2633 - Convenience method to reset this component's value to the un-initialized state. - jakarta.faces.component - EditableValueHolder - - - - - JSF:JAVADOC:2634 - Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents will be delivered in that phase as well. The default value for this property must be false. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - - JSF:JAVADOC:2635 - Sets the "local value set" state for this component. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - - JSF:JAVADOC:2636 - Set the "required field" state for this component. - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - - JSF:JAVADOC:2637 - Set the submittedValue value of this component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. The action taken based on whether the value is null, empty, or non-null is determined based on the value of the jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULLcontext-param. - jakarta.faces.component - EditableValueHolder - - - java.lang.Object - - - - - - JSF:JAVADOC:2638 - Set a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - EditableValueHolder - - - boolean - - - - - - JSF:JAVADOC:2639 - If the value of this attribute is true, the runtime must create a Facelet tag handler, that extends from jakarta.faces.view.facelets.ComponentHandler, suitable for use in pages under the tag library with namespace given by the value of the #namespace attribute. - jakarta.faces.component - FacesComponent - - - - - JSF:JAVADOC:2640 - If the value of the #createTag attribute is true, the value of this attribute is taken to be the tag library namespace into which this component is placed. - jakarta.faces.component - FacesComponent - - - - - JSF:JAVADOC:2641 - If the value of the #createTag attribute is true, the runtime must use this value as the tag name for including an instance of the component annotated with this annotation in a view. If this attribute is not specified on a usage of this annotation, the simple name of the class on which this annotation is declared, with the first character lowercased, is taken to be the value. - jakarta.faces.component - FacesComponent - - - - - JSF:JAVADOC:2642 - The value of this annotation attribute is taken to be the component-type with which instances of this class of component can be instantiated by calling jakarta.faces.application.Application#createComponent(java.lang.String). If no value is specified, or the value is null, the value is taken to be the return of calling getSimpleName on the class to which this annotation is attached and lowercasing the first character. If more than one component with this derived name is found, the results are undefined. - jakarta.faces.component - FacesComponent - - - - - JSF:JAVADOC:2643 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.component - PartialStateHolder - - - - - JSF:JAVADOC:2644 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.component - PartialStateHolder - - - - - JSF:JAVADOC:2645 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.component - PartialStateHolder - - - - - JSF:JAVADOC:2646 - Store the specified value in a List that is internal to the StateHelper. It's important to note for delta tracking that any modifications to the internal List be made through this method or StateHelper#remove(java.io.Serializable, Object). - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - - JSF:JAVADOC:2647 - Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - - JSF:JAVADOC:2648 - Performs the same logic as #eval(java.io.Serializable) } but if no value is found, this will return the specified defaultValue - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - - JSF:JAVADOC:2649 - Performs the same logic as #eval(java.io.Serializable) } but if no value is found, this will return the return-value of the defaultValueSupplier - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.util.function.Supplier - - - - - - JSF:JAVADOC:2650 - Return the value currently associated with the specified key if any. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - - JSF:JAVADOC:2651 - Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - - JSF:JAVADOC:2652 - Store the specified mapKey/value in a Map that is internal to the helper, and return the previously stored value. The Map will then be associated with key. It's important to note for delta tracking that any modifications to the internal Map be made through this method or StateHelper#remove(java.io.Serializable, Object). - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:2653 - Remove the key/value pair from the helper, returning the value previously stored under this key. - jakarta.faces.component - StateHelper - - - java.io.Serializable - - - - - - JSF:JAVADOC:2654 - Remove a value from the inner data structure. Look in the inner data structure for the value at the given key. If the value is a Map, remove and return the value under the key given by the valueOrKey argument. If the value is a Collection, simply remove the value given by the argument valueOrKey and return null. - jakarta.faces.component - StateHelper - - - java.io.Serializable - java.lang.Object - - - - - - JSF:JAVADOC:2655 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.component - StateHolder - - - - - JSF:JAVADOC:2656 - Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #restoreState method on all those instances as well. If the state argument is null, take no action and return. - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2657 - Gets the state of the instance as a Serializable Object. If the class that implements this interface has references to instances that implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #saveState method on all those instances as well. This method must not save the state of children and facets. That is done via the jakarta.faces.application.StateManager This method must not alter the state of the implementing object. In other words, after executing this code: Object state = component.saveState(facesContext); component should be the same as before executing it. The return from this method must be Serializable - jakarta.faces.component - StateHolder - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2658 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.component - StateHolder - - - boolean - - - - - - JSF:JAVADOC:2659 - Return the value currently associated with the specified key if any. - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - - - - - - JSF:JAVADOC:2660 - Performs the same logic as #getTransient } but if no value is found, this will return the specified defaultValue - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - java.lang.Object - - - - - - JSF:JAVADOC:2661 - Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. - jakarta.faces.component - TransientStateHelper - - - java.lang.Object - java.lang.Object - - - - - - JSF:JAVADOC:2662 - Restore the "transient state" using the object passed as state. If the state argument is null clear any previous transient state if any and return. - jakarta.faces.component - TransientStateHolder - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2663 - Return the object containing related "transient states". that could be used later to restore the "transient state". - jakarta.faces.component - TransientStateHolder - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2664 - Get the component family. - jakarta.faces.component - UIColumn - - - - - JSF:JAVADOC:2665 - Return the footer facet of the column (if any). A convenience method for getFacet("footer"). - jakarta.faces.component - UIColumn - - - - - JSF:JAVADOC:2666 - Return the header facet of the column (if any). A convenience method for getFacet("header"). - jakarta.faces.component - UIColumn - - - - - JSF:JAVADOC:2667 - Set the footer facet of the column. A convenience method for getFacets().put("footer", footer). - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2668 - Set the header facet of the column. A convenience method for getFacets().put("header", header). - jakarta.faces.component - UIColumn - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2669 - Create a new UIColumn instance with default property values. - jakarta.faces.component - UIColumn - - - - - JSF:JAVADOC:2670 - In addition to to the default UIComponent#broadcast processing, pass the ActionEvent being broadcast to the method referenced by actionListener (if any), and to the default ActionListener registered on the jakarta.faces.application.Application. - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2671 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2672 - Return the MethodExpression pointing at the application action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. - jakarta.faces.component - UICommand - - - - - JSF:JAVADOC:2673 - - jakarta.faces.component - UICommand - - - - - JSF:JAVADOC:2674 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UICommand - - - - - JSF:JAVADOC:2675 - Returns the value property of the UICommand. This is most often rendered as a label. - jakarta.faces.component - UICommand - - - - - JSF:JAVADOC:2676 - The immediate flag. - jakarta.faces.component - UICommand - - - - - JSF:JAVADOC:2677 - Intercept queueEvent and take the following action. If the event is an ActionEvent, obtain the UIComponent instance from the event. If the component is an ActionSource obtain the value of its "immediate" property. If it is true, mark the phaseId for the event to be PhaseId.APPLY_REQUEST_VALUES otherwise, mark the phaseId to be PhaseId.INVOKE_APPLICATION. The event must be passed on to super.queueEvent() before returning from this method. - jakarta.faces.component - UICommand - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2678 - Set the MethodExpression pointing at the appication action to be invoked, if this UIComponent is activated by the user, during the Apply Request Values or Invoke Application phase of the request processing lifecycle, depending on the value of the immediate property. Any method referenced by such an expression must be public, with a return type of String, and accept no parameters. - jakarta.faces.component - UICommand - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:2679 - - jakarta.faces.component - UICommand - - - boolean - - - - - - JSF:JAVADOC:2680 - Sets the value property of the UICommand. This is most often rendered as a label. - jakarta.faces.component - UICommand - - - java.lang.Object - - - - - - JSF:JAVADOC:2681 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. If the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the jakarta.faces.component.behavior.Behavior for the event. Call jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the Behavior instance. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2682 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2683 - An implementation of PartialStateHolder#clearInitialState, this method is called by the runtime to tell the instance to stop tracking state changes. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2684 - If this component returns true from #isRendered, take the following action. Render this component and all its children that return true from isRendered(), regardless of the value of the #getRendersChildren flag. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2685 - if an input/output error occurs while rendering - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2686 - Return a mutable Map representing the attributes (and properties, see below) associated wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. If the attribute name specified as a key matches a property of this UIComponent's implementation class, the following methods will have special behavior: containsKey - Return false. get() - If the property is readable, call the getter method and return the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the property is not writeable, or an attempt is made to set a property of primitive type to null, throw IllegalArgumentException. remove - Throw IllegalArgumentException. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2687 - Return a mutable List representing the child UIComponents associated with this component. The returned implementation must support all of the standard and optional List methods, plus support the following additional requirements: The List implementation must implement the java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any attempt to add an object that does not implement UIComponent must throw a ClassCastException. Whenever a new child component is added, the parent property of the child must be set to this component instance. If the parent property of the child was already non-null, the child must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing child component is removed, the parent property of the child must be set to null. After the child component has been added to the view, jakarta.faces.application.Application#publishEvent must be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly added component as the second argument if any the following cases are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2688 - Enable Jakarta Expression Language to access the clientId of a component. This is particularly useful in combination with the component and cc implicit objects. A default implementation is provided that simply calls FacesContext#getCurrentInstance and then calls through to #getClientId(FacesContext). - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2689 - Finds the nearest composite component parent of the specified component. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2690 - Allow components that implement NamingContainer to selectively disable prepending their clientId to their descendent's clientIds by breaking the prepending logic into a separately callable method. See #getClientId for usage. By default, this method will call through to #getClientId and return the result. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2691 - Return the UIComponent instance that is currently processing. This is equivalent to evaluating the Jakarta Expression Language expression "#{component}" and doing a getValue operation on the resultant ValueExpression. This method must return null if there is no currently processing UIComponent - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2692 - Return the closest ancestor component, relative to the component returned from #getCurrentComponent, that is a composite component, or null if no such component exists. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2693 - Return the number of facet UIComponents that are associated with this UIComponent. If there are no facets, this method must return 0. The method must not cause the creation of a facet component map. For backwards compatability with classes that extend UIComponent directly, a default implementation is provided that simply calls #getFacets and then calls the size() method on the returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2694 - Return a mutable Map representing the facet UIComponents associated with this UIComponent, keyed by facet name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component must be set to this component instance. If the parent property of the component was already non-null, the component must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property of the facet must be set to null. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2695 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2696 - Return the component identifier of this UIComponent. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2697 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - - - - - - JSF:JAVADOC:2698 - Starting with "this", return the closest component in the ancestry that is a NamingContainer or null if none can be found. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2699 - This is a convenience method that simply calls #getPassThroughAttributes(boolean), passing true as the argument. This method must never return null. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2700 - This method has the same specification as #getPassThroughAttributes() except that it is allowed to return null if and only if the argument create is false and no pass through attribute data structure exists for this instance. The returned Map implementation must support all of the standard and optional Map methods, plus support the following additional requirements. The map must be stored in using #getStateHelper. The Map implementation must implement java.io.Serializable. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw an IllegalArgumentException. For backward compatibility with components that extend directly from this class, a default implementation is provided that returns the empty map. - jakarta.faces.component - UIComponent - - - boolean - - - - - - JSF:JAVADOC:2701 - Return a Map of the ResourceBundle for this component. A component may have a ResourceBundle associated with it. This bundle may contain localized properties relating to instances of this component. The default implementation first looks for a ResourceBundle with a base name equal to the fully qualified class name of the current UIComponent this and Locale equal to the Locale of the current UIViewRoot. If no such bundle is found, and the component is a composite component, let resourceName be the resourceName of the Resource for this composite component, replacing the file extension with ".properties". Let libraryName be the libraryName of the the Resource for this composite component. Call jakarta.faces.application.ResourceHandler#createResource(java.lang.String,java.lang.String), passing the derived resourceName and libraryName. Note that this will automatically allow for the localization of the ResourceBundle due to the localization facility implemented in createResource, which is specified in section 2.6.1.3 "Resource Identifiers" of the Jakarta Faces Specification Document. If the resultant Resource exists and can be found, the InputStream for the resource is used to create a ResourceBundle. If either of the two previous steps for obtaining the ResourceBundle for this component is successful, the ResourceBundle is wrapped in a Map and returned. Otherwise Collections.EMPTY_MAP is returned. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2702 - Return the TransientStateHelper instance for this UIComponent instance. The default implementation simply calls through to #getTransientStateHelper(boolean) passing true as the argument. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2703 - Return the TransientStateHelper instance for this UIComponent instance. - jakarta.faces.component - UIComponent - - - boolean - - - - - - JSF:JAVADOC:2704 - Return the ValueExpression used to calculate the value for the specified attribute or property name, if any. This method must be overridden and implemented for components that comply with Jakarta Faces 1.2 and later. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - JSF:JAVADOC:2705 - An implementation of PartialStateHolder#initialStateMarked, this method is called by the runtime to test if the PartialStateHolder#markInitialState method was called. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2706 - Starting at this component in the View hierarchy, search for a component with a clientId equal to the argument clientId and, if found, call the ContextCallback#invokeContextCallback method on the argument callback, passing the current FacesContext and the found component as arguments. This method is similar to #findComponent but it does not support the leading UINamingContainer#getSeparatorChar syntax for searching from the root of the View. The default implementation will first check if this.getClientId() is equal to the argument clientId. If so, first call #pushComponentToEL, then call the ContextCallback#invokeContextCallback method on the argument callback, passing through the FacesContext argument and passing this as the component argument. Then call #popComponentFromEL. If an Exception is thrown by the callback, wrap it in a FacesException and re-throw it. Otherwise, return true. Otherwise, for each component returned by #getFacetsAndChildren, call invokeOnComponent() passing the arguments to this method, in order. The first time invokeOnComponent() returns true, abort traversing the rest of the Iterator and return true. When calling ContextCallback#invokeContextCallback the implementation of this method must guarantee that the state of the component passed to the callback correctly reflects the component's position in the View hierarchy with respect to any state found in the argument clientId. For example, an iterating component such as UIData will need to set its row index to correctly reflect the argument clientId before finding the appropriate child component backed by the correct row. When the callback returns, either normally or by throwing an Exception the implementation of this method must restore the state of the view to the way it was before invoking the callback. If none of the elements from #getFacetsAndChildren returned true from invokeOnComponent(), return false. Simple usage example to find a component by clientId. private UIComponent found = null; private void doFind(FacesContext context, String clientId) { context.getViewRoot().invokeOnComponent(context, clientId, new ContextCallback() { public void invokeContextCallback(FacesContext context, UIComponent component) { found = component; } }); } - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:2707 - if the argument Callback throws an Exception, it is wrapped in a FacesException and re-thrown. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2708 - Return true if component is a composite component, otherwise false. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2709 - Return true if this component is within the view hierarchy otherwise false - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2710 - An implementation of PartialStateHolder#markInitialState, this method is called by the runtime to indicate that the instance should start tracking changes to its state. - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2711 - Pop the current UIComponent from the FacesContext attributes map so that the previous UIComponent, if any, becomes the current component. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2712 - The default implementation performs the following action. If the argument event is an instance of PostRestoreStateEvent, call this.#getValueExpression passing the literal string #8220;binding #8221;, without the quotes, as the argument. If the result is non-null, set the value of the ValueExpression to be this. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.ComponentSystemEvent - - - - - - JSF:JAVADOC:2713 - - jakarta.faces.component - UIComponent - - - jakarta.faces.event.ComponentSystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2714 - Perform the component tree processing required by the Restore View phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the restoreState() method of this component. Call UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2715 - Perform the component tree processing required by the state saving portion of the Render Response phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. consult the transient property of this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(), skipping children and facets that are transient. Ensure that #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of this component. Encapsulate the child state and your state into a Serializable Object and return it. This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2716 - Push the current UIComponent this to the FacesContext attribute map saving the previous UIComponent for a subsequent call to #popComponentFromEL. This method and popComponentFromEL() form the basis for the contract that enables the Jakarta Expression Language Expression "#{component}" to resolve to the "current" component that is being processed in the lifecycle. The requirements for when pushComponentToEL() and popComponentFromEL() must be called are specified as needed in the javadoc for this class. After pushComponentToEL() returns, a call to #getCurrentComponent must return this UIComponent instance until popComponentFromEL() is called, after which point the previous UIComponent instance will be returned from getCurrentComponent() - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2717 - Queue an event for broadcast at the end of the current request processing lifecycle phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() method of the parent UIComponent. - jakarta.faces.component - UIComponent - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2718 - For components that need to support the concept of transient state, this method will restore any state saved on a prior call to #saveTransientState. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2719 - For components that need to support the concept of transient state, this method will save any state that is known to be transient in nature. - jakarta.faces.component - UIComponent - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2720 - Set the component identifier of this UIComponent (if any). Component identifiers must obey the following syntax restrictions: Must not be a zero-length String. First character must be a letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that this restriction is NOT enforced by the setId() implementation): The specified identifier must be unique among all the components (including facets) that are descendents of the nearest ancestor UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is no such ancestor that is a NamingContainer. - jakarta.faces.component - UIComponent - - - java.lang.String - - - - - - JSF:JAVADOC:2721 - Updates the status as to whether or not this component is currently within the view hierarchy. This method must never be called by developers; a UIComponent's internal implementation will call it as components are added to or removed from a parent's child List or facet Map. - jakarta.faces.component - UIComponent - - - boolean - - - - - - JSF:JAVADOC:2722 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. The implementation must call ValueExpression#isLiteralText on the argument expression. If isLiteralText() returns true, invoke ValueExpression#getValue on the argument expression and pass the result as the value parameter in a call to this.#getAttributes().put(name, value) where name is the argument name. If an exception is thrown as a result of calling ValueExpression#getValue, wrap it in a jakarta.faces.FacesException and re-throw it. If isLiteralText() returns false, simply store the un-evaluated expression argument in the collection of ValueExpressions under the key given by the argument name. This method must be overridden and implemented for components that comply with Jakarta Faces 1.2 and later. - jakarta.faces.component - UIComponent - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2723 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - - JSF:JAVADOC:2724 - - jakarta.faces.component - UIComponent - - - - - JSF:JAVADOC:2725 - This implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. UIComponentBase provides the implementation of this method. - jakarta.faces.component - UIComponent - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - - JSF:JAVADOC:2726 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UIComponent - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:2727 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#addClientBehavior. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - java.lang.String - jakarta.faces.component.behavior.ClientBehavior - - - - - - JSF:JAVADOC:2728 - Broadcast the specified FacesEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. If the event is an instance of jakarta.faces.event.BehaviorEvent and the current component is the source of the event call jakarta.faces.event.BehaviorEvent#getBehavior to get the jakarta.faces.component.behavior.Behavior for the event. Call jakarta.faces.component.behavior.Behavior#broadcast(jakarta.faces.event.BehaviorEvent) on the Behavior instance. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2729 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2730 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2731 - Return a mutable Map representing the attributes (and properties, see below) associated wth this UIComponent, keyed by attribute name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. If the attribute name specified as a key matches a property of this UIComponent's implementation class, the following methods will have special behavior: containsKey - Return false. get() - If the property is readable, call the getter method and return the returned value (wrapping primitive values in their corresponding wrapper classes); otherwise throw IllegalArgumentException. put() - If the property is writeable, call the setter method to set the corresponding value (unwrapping primitive values in their corresponding wrapper classes). If the property is not writeable, or an attempt is made to set a property of primitive type to null, throw IllegalArgumentException. remove - Throw IllegalArgumentException. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2732 - Return a mutable List representing the child UIComponents associated with this component. The returned implementation must support all of the standard and optional List methods, plus support the following additional requirements: The List implementation must implement the java.io.Serializable interface. Any attempt to add a null must throw a NullPointerException Any attempt to add an object that does not implement UIComponent must throw a ClassCastException. Whenever a new child component is added, the parent property of the child must be set to this component instance. If the parent property of the child was already non-null, the child must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing child component is removed, the parent property of the child must be set to null. After the child component has been added to the view, jakarta.faces.application.Application#publishEvent must be called, passing jakarta.faces.event.PostAddToViewEvent.class as the first argument and the newly added component as the second argument if any the following cases are true. jakarta.faces.context.FacesContext#getCurrentPhaseId returns jakarta.faces.event.PhaseId#RESTORE_VIEW and partial state saving is enabled. jakarta.faces.context.FacesContext#isPostback returns false and jakarta.faces.context.FacesContext#getCurrentPhaseId returns something other than jakarta.faces.event.PhaseId#RESTORE_VIEW - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2733 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getClientBehaviors. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must add an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2734 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2735 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2736 - Return the number of facet UIComponents that are associated with this UIComponent. If there are no facets, this method must return 0. The method must not cause the creation of a facet component map. For backwards compatability with classes that extend UIComponent directly, a default implementation is provided that simply calls #getFacets and then calls the size() method on the returned Map. A more optimized version of this method is provided in UIComponentBase#getFacetCount. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2737 - Return a mutable Map representing the facet UIComponents associated with this UIComponent, keyed by facet name (which must be a String). The returned implementation must support all of the standard and optional Map methods, plus support the following additional requirements: The Map implementation must implement the java.io.Serializable interface. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw a ClassCastException. Any attempt to add a value that is not a UIComponent must throw a ClassCastException. Whenever a new facet UIComponent is added: The parent property of the component must be set to this component instance. If the parent property of the component was already non-null, the component must first be removed from its previous parent (where it may have been either a child or a facet). Whenever an existing facet UIComponent is removed: The parent property of the facet must be set to null. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2738 - Return the component identifier of this UIComponent. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2739 - Return the SystemEventListener instances registered on this UIComponent instance that are interested in events of type eventClass. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - - - - - - JSF:JAVADOC:2740 - This method has the same specification as #getPassThroughAttributes() except that it is allowed to return null if and only if the argument create is false and no pass through attribute data structure exists for this instance. The returned Map implementation must support all of the standard and optional Map methods, plus support the following additional requirements. The map must be stored in using #getStateHelper. The Map implementation must implement java.io.Serializable. Any attempt to add a null key or value must throw a NullPointerException. Any attempt to add a key that is not a String must throw an IllegalArgumentException. For backward compatibility with components that extend directly from this class, a default implementation is provided that returns the empty map. - jakarta.faces.component - UIComponentBase - - - boolean - - - - - - JSF:JAVADOC:2741 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:2742 - {@inheritDoc} - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2743 - - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2744 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#markInitialState on the attached object. - jakarta.faces.component - UIComponentBase - - - - - JSF:JAVADOC:2745 - Perform the component tree processing required by the Restore View phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. Call the restoreState() method of this component. Call UIComponent#pushComponentToEL. Call the processRestoreState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(). After returning from the processRestoreState() method on a child or facet, call UIComponent#popComponentFromEL This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2746 - Perform the component tree processing required by the state saving portion of the Render Response phase of the request processing lifecycle for all facets of this component, all children of this component, and this component itself, as follows. consult the transient property of this component. If true, just return null. Call #pushComponentToEL. Call the processSaveState() method of all facets and children of this UIComponent in the order determined by a call to getFacetsAndChildren(), skipping children and facets that are transient. Ensure that #popComponentFromEL is called correctly after each child or facet. Call the saveState() method of this component. Encapsulate the child state and your state into a Serializable Object and return it. This method may not be called if the state saving method is set to server. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2747 - Queue an event for broadcast at the end of the current request processing lifecycle phase. The default implementation in UIComponentBase must delegate this call to the queueEvent() method of the parent UIComponent. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2748 - This method is called by UIComponent subclasses that need to restore the objects they saved using #saveAttachedState. This method is tightly coupled with #saveAttachedState. This method supports restoring all attached objects types supported by #saveAttachedState. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2749 - if the object is not previously returned by #saveAttachedState. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.lang.IllegalStateException - - - - - JSF:JAVADOC:2750 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2751 - This method is called by UIComponent subclasses that want to save one or more attached objects. It is a convenience method that does the work of saving attached objects that may or may not implement the StateHolder interface. Using this method implies the use of #restoreAttachedState to restore the attached objects. This method supports saving attached objects of the following type: Objects, null values, and Collections of these objects. If any contained objects are not Collections and do not implement StateHolder, they must have zero-argument public constructors. The exact structure of the returned object is undefined and opaque, but will be serializable. - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2752 - - jakarta.faces.component - UIComponentBase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2753 - Set the component identifier of this UIComponent (if any). Component identifiers must obey the following syntax restrictions: Must not be a zero-length String. First character must be a letter or an underscore ('_'). Subsequent characters must be a letter, a digit, an underscore ('_'), or a dash ('-'). Component identifiers must also obey the following semantic restrictions (note that this restriction is NOT enforced by the setId() implementation): The specified identifier must be unique among all the components (including facets) that are descendents of the nearest ancestor UIComponent that is a NamingContainer, or within the scope of the entire component tree if there is no such ancestor that is a NamingContainer. - jakarta.faces.component - UIComponentBase - - - java.lang.String - - - - - - JSF:JAVADOC:2754 - - jakarta.faces.component - UIComponentBase - - - boolean - - - - - - JSF:JAVADOC:2755 - Install the listener instance referenced by argument componentListener as a listener for events of type eventClass originating from this specific instance of UIComponent. The default implementation creates an inner SystemEventListener instance that wraps argument componentListener as the listener argument. This inner class must call through to the argument componentListener in its implementation of SystemEventListener#processEvent and its implementation of SystemEventListener#isListenerForSource must return true if the instance class of this UIComponent is assignable from the argument to isListenerForSource. The listener instance referenced by argument componentListener may not already be installed as a listener for events of type eventClass originating from this specific instance of UIComponent. When doing the comparison to determine if an existing listener is equal to the argument componentListener, the equals() method on the existing listener must be invoked, passing the argument componentListener, rather than the other way around. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - - JSF:JAVADOC:2756 - Remove the listener instance referenced by argument componentListener as a listener for events of type eventClass originating from this specific instance of UIComponent. When doing the comparison to determine if an existing listener is equal to the argument componentListener (and thus must be removed), the equals() method on the existing listener must be invoked, passing the argument componentListener, rather than the other way around. - jakarta.faces.component - UIComponentBase - - - java.lang.Class - jakarta.faces.event.ComponentSystemEventListener - - - - - - JSF:JAVADOC:2757 - Override the default UIComponentBase#broadcast processing to unwrap any wrapped FacesEvent and reset the current row index, before the event is actually broadcast. For events that we did not wrap (in queueEvent()), default processing will occur. - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2758 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2759 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2760 - In addition to the default behavior, ensure that any saved per-row state for our child input components is discarded unless it is needed to rerender the current page with errors. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2761 - if an input/output error occurs while rendering - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2762 - Return a client identifier for this component that includes the current value of the rowIndex property, if it is not set to -1. This implies that multiple calls to getClientId() may return different results, but ensures that child components can themselves generate row-specific client identifiers (since UIData is a NamingContainer). - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2763 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2764 - Return the zero-relative row number of the first row to be displayed. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2765 - Return the footer facet of this component (if any). A convenience method for getFacet("footer"). - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2766 - Return the header facet of this component (if any). A convenience method for getFacet("header"). - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2767 - Return the number of rows in the underlying data model. If the number of available rows is unknown, return -1. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2768 - Return the data object representing the data for the currently selected row index, if any. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2769 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, return -1. This property is not enabled for value binding expressions. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2770 - Return the number of rows to be displayed, or zero for all remaining rows in the table. The default value of this property is zero. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2771 - Return the value of the UIData. This value must either be be of type DataModel, or a type that can be adapted into a DataModel. UIData will automatically adapt the following types: Arrays java.util.List java.sql.ResultSet java.util.Collection All other types will be adapted using the ScalarDataModel class, which will treat the object as a single row of data. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2772 - Return the request-scope attribute under which the data object for the current row will be exposed when iterating. This property is not enabled for value binding expressions. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2773 - Override behavior from UIComponentBase#invokeOnComponent to provide special care for positioning the data properly before finding the component and invoking the callback on it. If the argument clientId is equal to this.getClientId() simply invoke the contextCallback, passing the context argument and this as arguments, and return true. If the argument clientId is not equal to this.getClientId(), inspect each of the facet children of this UIData instance and for each one, compare its clientId with the argument clientId. If there is a match, invoke the contextCallback, passing the context argument and this as arguments, and return true. Otherwise, attempt to extract a rowIndex from the clientId. For example, if the argument clientId was form:data:3:customerHeader the rowIndex would be 3. Let this value be called newIndex. The current rowIndex of this instance must be saved aside and restored before returning in all cases, regardless of the outcome of the search or if any exceptions are thrown in the process. The implementation of this method must never return true if setting the rowIndex of this instance to be equal to newIndex causes this instance to return false from #isRowAvailable. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:2774 - {@inheritDoc} Also throws FacesException if any exception is thrown when deriving the rowIndex from the argument clientId. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.component.ContextCallback - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:2775 - Return a flag indicating whether there is rowData available at the current rowIndex. If no wrappedData is available, return false. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2776 - Return the value of the rowStatePreserved JavaBeans property. See #setRowStatePreserved. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2777 - Override the base class method to take special action if the method is being invoked when StateManager#IS_BUILDING_INITIAL_STATE is true and the rowStatePreserved JavaBeans property for this instance is true. The additional action taken is to traverse the descendents and save their state without regard to any particular row value. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2778 - Override the default UIComponentBase#processDecodes processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processDecodes() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processDecodes() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processDecodes() method for each such child. Set the current rowIndex to -1. Call the decode() method of this component. If a RuntimeException is thrown during decode processing, call FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2779 - Override the default UIComponentBase#processUpdates processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processUpdates() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processUpdates() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processUpdates() method for each such child. Set the current rowIndex to -1. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2780 - Override the default UIComponentBase#processValidators processing to perform the following steps. If the rendered property of this UIComponent is false, skip further processing. Set the current rowIndex to -1. Call the processValidators() method of all facets of this UIData, in the order determined by a call to getFacets().keySet().iterator(). Call the processValidators() method of all facets of the UIColumn children of this UIData. Iterate over the set of rows that were included when this component was rendered (i.e. those defined by the first and rows properties), performing the following processing for each row: Set the current rowIndex to the appropriate value for this row. If isRowAvailable() returns true, iterate over the children components of each UIColumn child of this UIData component, calling the processValidators() method for each such child. Set the current rowIndex to -1. - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2781 - Override the default UIComponentBase#queueEvent processing to wrap any queued events in a wrapper so that we can reset the current row index in broadcast(). - jakarta.faces.component - UIData - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2782 - - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2783 - - jakarta.faces.component - UIData - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2784 - Set the zero-relative row number of the first row to be displayed. - jakarta.faces.component - UIData - - - int - - - - - - JSF:JAVADOC:2785 - Set the footer facet of this component. A convenience method for getFacets().put("footer", footer). - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2786 - Set the header facet of this component. A convenience method for getFacets().put("header", header). - jakarta.faces.component - UIData - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2787 - Set the zero relative index of the current row, or -1 to indicate that no row is currently selected, by implementing the following algorithm. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. To support transient state among descendents, please consult the specification for #setRowStatePreserved, which details the requirements for setRowIndex() when the rowStatePreserved JavaBeans property is set to true. Save current state information for all descendant components (as described below). Store the new row index, and pass it on to the DataModel associated with this UIData instance. If the new rowIndex value is -1: If the var property is not null, remove the corresponding request scope attribute (if any). Reset the state information for all descendant components (as described below). If the new rowIndex value is not -1: If the var property is not null, call getRowData() and expose the resulting data object as a request scope attribute whose key is the var property value. Reset the state information for all descendant components (as described below). To save current state information for all descendant components, UIData must maintain per-row information for each descendant as follows: If the descendant is an instance of EditableValueHolder, save the state of its localValue property. If the descendant is an instance of EditableValueHolder, save the state of the localValueSet property. If the descendant is an instance of EditableValueHolder, save the state of the valid property. If the descendant is an instance of EditableValueHolder, save the state of the submittedValue property. To restore current state information for all descendant components, UIData must reference its previously stored information for the current rowIndex and call setters for each descendant as follows: If the descendant is an instance of EditableValueHolder, restore the value property. If the descendant is an instance of EditableValueHolder, restore the state of the localValueSet property. If the descendant is an instance of EditableValueHolder, restore the state of the valid property. If the descendant is an instance of EditableValueHolder, restore the state of the submittedValue property. - jakarta.faces.component - UIData - - - int - - - - - - JSF:JAVADOC:2788 - Set the number of rows to be displayed, or zero for all remaining rows in the table. - jakarta.faces.component - UIData - - - int - - - - - - JSF:JAVADOC:2789 - If this property is set to true, the UIData must take steps to ensure that modifications to its iterated children will be preserved on a per-row basis. This allows applications to modify component properties, such as the style-class, for a specific row, rather than having such modifications apply to all rows. To accomplish this, UIData must call StateHolder#saveState and TransientStateHolder#saveTransientState on its children to capture their state on exiting each row. When re-entering the row, StateHolder#restoreState and TransientStateHolder#restoreTransientState must be called in order to reinitialize the children to the correct state for the new row. All of this action must take place during the processing of #setRowIndex. Users should consider enabling this feature for cases where it is necessary to modify properties of UIData's children in a row-specific way. Note, however, that row-level state saving/restoring does add overhead. As such, this feature should be used judiciously. - jakarta.faces.component - UIData - - - boolean - - - - - - JSF:JAVADOC:2790 - Set the value of the UIData. This value must either be be of type DataModel, or a type that can be adapted into a DataModel. - jakarta.faces.component - UIData - - - java.lang.Object - - - - - - JSF:JAVADOC:2791 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. In addition, if a ValueExpression is set for the value property, remove any synthesized DataModel for the data previously bound to this component. - jakarta.faces.component - UIData - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2792 - Set the request-scope attribute under which the data object for the current row wil be exposed when iterating. - jakarta.faces.component - UIData - - - java.lang.String - - - - - - JSF:JAVADOC:2793 - Create a new UIData instance with default property values. - jakarta.faces.component - UIData - - - - - JSF:JAVADOC:2794 - Override the behavior in UIComponent#visitTree to handle iteration correctly. If the UIComponent#isVisitable method of this instance returns false, take no action and return. Call UIComponent#pushComponentToEL and invoke the visit callback on this UIData instance as described in UIComponent#visitTree. Let the result of the invoctaion be visitResult. If visitResult is VisitResult#COMPLETE, take no further action and return true. Otherwise, determine if we need to visit our children. The default implementation calls VisitContext#getSubtreeIdsToVisit passing this as the argument. If the result of that call is non-empty, let doVisitChildren be true. If doVisitChildren is true and visitResult is VisitResult#ACCEPT, take the following action. If this component has facets, call UIComponent#getFacets on this instance and invoke the values() method. For each UIComponent in the returned Map, call UIComponent#visitTree. If this component has children, for each UIColumn child: Call VisitContext#invokeVisitCallback on that UIColumn instance. If such a call returns true, terminate visiting and return true from this method. If the child UIColumn has facets, call UIComponent#visitTree on each one. Take no action on non-UIColumn children. Save aside the result of a call to #getRowIndex. For each child component of this UIData that is also an instance of UIColumn, Iterate over the rows. Let rowsToProcess be the return from #getRows. Let rowIndex be the return from #getFirst - 1. While the number of rows processed is less than rowsToProcess, take the following actions. Call #setRowIndex, passing the current row index. If #isRowAvailable returns false, take no further action and return false. Call UIComponent#visitTree on each of the children of this UIColumn instance. Call #popComponentFromEL and restore the saved row index with a call to #setRowIndex. Return false to allow the visiting to continue. - jakarta.faces.component - UIData - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:2795 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. If the prependId property has the value false, this method must call createUniqueId on the next ancestor UniqueIdVendor. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2796 - Override the UIComponent#getContainerClientId to allow users to disable this form from prepending its clientId to its descendent's clientIds depending on the value of this form's #isPrependId property. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2797 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIForm - - - - - JSF:JAVADOC:2798 - Is the id prepended. - jakarta.faces.component - UIForm - - - - - JSF:JAVADOC:2799 - Returns the current value of the submitted property. The default value is false. See #setSubmitted for details. This property must be kept as a transient property using the UIComponent#getTransientStateHelper. - jakarta.faces.component - UIForm - - - - - JSF:JAVADOC:2800 - Override UIComponent#processDecodes to ensure that the form is decoded before its children. This is necessary to allow the submitted property to be correctly set. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2801 - Override UIComponent#processUpdates to ensure that the children of this UIForm instance are only processed if #isSubmitted returns true. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2802 - Override UIComponent#processValidators to ensure that the children of this UIForm instance are only processed if #isSubmitted returns true. - jakarta.faces.component - UIForm - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2803 - Set whether the id should be prepended. - jakarta.faces.component - UIForm - - - boolean - - - - - - JSF:JAVADOC:2804 - If this UIForm instance (as opposed to other forms in the page) is experiencing a submit during this request processing lifecycle, this method must be called, with true as the argument, during the UIComponent#decode for this UIForm instance. If this UIForm instance is not experiencing a submit, this method must be called, with false as the argument, during the UIComponent#decode for this UIForm instance. The value of a UIForm's submitted property must not be saved as part of its state. This property must be kept as a transient property using the UIComponent#getTransientStateHelper. - jakarta.faces.component - UIForm - - - boolean - - - - - - JSF:JAVADOC:2805 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UIForm - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:2806 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIGraphic - - - - - JSF:JAVADOC:2807 - Return the image URL for this UIGraphic. This method is a typesafe alias for getValue(). - jakarta.faces.component - UIGraphic - - - - - JSF:JAVADOC:2808 - Returns the value property of the UIGraphic. This will typically be rendered as an URL. - jakarta.faces.component - UIGraphic - - - - - JSF:JAVADOC:2809 - Return any ValueExpression set for value if a ValueExpression for url is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - - JSF:JAVADOC:2810 - Set the image URL for this UIGraphic. This method is a typesafe alias for setValue(). - jakarta.faces.component - UIGraphic - - - java.lang.String - - - - - - JSF:JAVADOC:2811 - Sets the value property of the UIGraphic. This will typically be rendered as an URL. - jakarta.faces.component - UIGraphic - - - java.lang.Object - - - - - - JSF:JAVADOC:2812 - Store any ValueExpression specified for url under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UIGraphic - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2813 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIImportConstants - - - - - JSF:JAVADOC:2814 - Returns the fully qualified name of the type to import the constant field values for. - jakarta.faces.component - UIImportConstants - - - - - JSF:JAVADOC:2815 - Returns name of request scope attribute under which constants will be exposed as a Map. - jakarta.faces.component - UIImportConstants - - - - - JSF:JAVADOC:2816 - Sets the fully qualified name of the type to import the constant field values for. - jakarta.faces.component - UIImportConstants - - - java.lang.String - - - - - - JSF:JAVADOC:2817 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. If a ValueExpression is set for the var property, throw an illegal argument exception. - jakarta.faces.component - UIImportConstants - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2818 - Sets name of request scope attribute under which constants will be exposed as a Map. - jakarta.faces.component - UIImportConstants - - - java.lang.String - - - - - - JSF:JAVADOC:2819 - Create a new UIImportConstants instance with renderer type set to null. - jakarta.faces.component - UIImportConstants - - - - - JSF:JAVADOC:2820 - Add a Validator instance to the set associated with this UIInput. - jakarta.faces.component - UIInput - - - jakarta.faces.validator.Validator - - - - - - JSF:JAVADOC:2821 - Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - - - - - JSF:JAVADOC:2822 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2823 - Decode any new state of this UIComponent from the request contained in the specified FacesContext, and store this state as needed. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2824 - If there has been a call to #setConverterMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "converterMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2825 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2826 - If there has been a call to #setRequiredMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "requiredMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2827 - Return the submittedValue value of this UIInput component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2828 - If there has been a call to #setValidatorMessage on this instance, return the message. Otherwise, call #getValueExpression passing the key "validatorMessage", get the result of the expression, and return it. Any ELExceptions thrown during the call to getValue() must be wrapped in a FacesException and rethrown. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2829 - Return the set of registered Validators for this UIInput instance. If there are no registered validators, a zero-length array is returned. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2830 - If there is a local value, return it, otherwise return the result of calling super.getVaue(). - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2831 - Return the set of registered ValueChangeListeners for this UIInput instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2832 - Is the value denoting an empty value. If the value is null, return true. If the value is a String and it is the empty string, return true. If the value is an array and the array length is 0, return true. If the value is a List and the List is empty, return true. If the value is a Collection and the Collection is empty, return true. If the value is a Map and the Map is empty, return true. In all other cases, return false. - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - - JSF:JAVADOC:2833 - Return the "immediate" state for this component. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2834 - Return the "local value set" state for this component. Calls to setValue() automatically reset this property to true. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2835 - Return the "required field" state for this component. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2836 - Return a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2837 - In addition to the actions taken in UIOutput when PartialStateHolder#markInitialState() is called, check if any of the installed Validators are PartialStateHolders and if so, call jakarta.faces.component.PartialStateHolder#markInitialState() as appropriate. - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2838 - Specialized decode behavior on top of that provided by the superclass. In addition to the standard processDecodes behavior inherited from UIComponentBase, calls validate() if the the immediate property is true; if the component is invalid afterwards or a RuntimeException is thrown, calls FacesContext#renderResponse. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2839 - In addition to the standard processUpdates behavior inherited from UIComponentBase, calls updateModel(). If the component is invalid afterwards, calls FacesContext#renderResponse. If a RuntimeException is thrown during update processing, calls FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2840 - In addition to the standard processValidators behavior inherited from UIComponentBase, calls validate() if the immediate property is false (which is the default); if the component is invalid afterwards, calls FacesContext#renderResponse. To ensure the PostValidateEvent is published at the proper time, this component must be validated first, followed by the component's children and facets. If a RuntimeException is thrown during validation processing, calls FacesContext#renderResponse and re-throw the exception. - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2841 - Remove a Validator instance from the set associated with this UIInput, if it was previously associated. Otherwise, do nothing. - jakarta.faces.component - UIInput - - - jakarta.faces.validator.Validator - - - - - - JSF:JAVADOC:2842 - Remove an existing ValueChangeListener (if any) from the set of listeners interested in being notified when ValueChangeEvents occur. - jakarta.faces.component - UIInput - - - jakarta.faces.event.ValueChangeListener - - - - - - JSF:JAVADOC:2843 - Convenience method to reset this component's value to the un-initialized state. This method does the following: Call UIOutput#setValue. Call #setSubmittedValue passing null. Clear state for property localValueSet. Clear state for property valid. Upon return from this call if the instance had a ValueBinding associated with it for the "value" property, this binding is evaluated when UIOutput#getValue is called. Otherwise, null is returned from getValue(). - jakarta.faces.component - UIInput - - - - - JSF:JAVADOC:2844 - - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2845 - - jakarta.faces.component - UIInput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2846 - Override any ValueExpression set for the "converterMessage" with the literal argument provided to this method. Subsequent calls to #getConverterMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - - JSF:JAVADOC:2847 - Set the "immediate" state for this component. When set to true, the component's value will be converted and validated immediately in the Apply Request Values phase, and ValueChangeEvents will be delivered in that phase as well. The default value for this property must be false. - jakarta.faces.component - UIInput - - - boolean - - - - - - JSF:JAVADOC:2848 - Sets the "local value set" state for this component. - jakarta.faces.component - UIInput - - - boolean - - - - - - JSF:JAVADOC:2849 - Set the "required field" state for this component. - jakarta.faces.component - UIInput - - - boolean - - - - - - JSF:JAVADOC:2850 - Override any ValueExpression set for the "requiredMessage" with the literal argument provided to this method. Subsequent calls to #getRequiredMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - - JSF:JAVADOC:2851 - Set the submittedValue value of this UIInput component. This method should only be used by the decode() and validate() method of this component, or its corresponding Renderer. - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - - JSF:JAVADOC:2852 - Set a flag indicating whether the local value of this component is valid (no conversion error has occurred). - jakarta.faces.component - UIInput - - - boolean - - - - - - JSF:JAVADOC:2853 - Override any ValueExpression set for the "validatorMessage" with the literal argument provided to this method. Subsequent calls to #getValidatorMessage will return this value; - jakarta.faces.component - UIInput - - - java.lang.String - - - - - - JSF:JAVADOC:2854 - Set the value of this UIComponent (if any). - jakarta.faces.component - UIInput - - - java.lang.Object - - - - - - JSF:JAVADOC:2855 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2856 - Return the Identifier of the component for which to render error messages. If this component is within the same NamingContainer as the target component, this must be the component identifier. Otherwise, it must be an absolute component identifier (starting with ":"). See the UIComponent#findComponent for more information. - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2857 - - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2858 - Return the flag indicating whether the detail property of the associated message(s) should be displayed. Defaults to true. - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2859 - Return the flag indicating whether the summary property of the associated message(s) should be displayed. Defaults to false. - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2860 - Set the identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed. - jakarta.faces.component - UIMessage - - - java.lang.String - - - - - - JSF:JAVADOC:2861 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - - JSF:JAVADOC:2862 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - - JSF:JAVADOC:2863 - Set the flag indicating whether the summary property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessage - - - boolean - - - - - - JSF:JAVADOC:2864 - Create a new UIMessage instance with default property values. - jakarta.faces.component - UIMessage - - - - - JSF:JAVADOC:2865 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2866 - Return the client identifier of the component for which this component represents associated message(s) (if any). - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2867 - Return the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. Mutually exclusive with the "for" property which takes precedence. Defaults to false. - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2868 - - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2869 - Return the flag indicating whether the detail property of the associated message(s) should be displayed. Defaults to false. - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2870 - Return the flag indicating whether the summary property of the associated message(s) should be displayed. Defaults to true. - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2871 - Set the client identifier of the component for which this component represents associated message(s) (if any). This property must be set before the message is displayed. - jakarta.faces.component - UIMessages - - - java.lang.String - - - - - - JSF:JAVADOC:2872 - Set the flag indicating whether only global messages (that is, messages with no associated client identifier) should be rendered. - jakarta.faces.component - UIMessages - - - boolean - - - - - - JSF:JAVADOC:2873 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - - JSF:JAVADOC:2874 - Set the flag indicating whether the detail property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - - JSF:JAVADOC:2875 - Set the flag indicating whether the summary property of the associated message(s) should be displayed. - jakarta.faces.component - UIMessages - - - boolean - - - - - - JSF:JAVADOC:2876 - Create a new UIMessages instance with default property values. - jakarta.faces.component - UIMessages - - - - - JSF:JAVADOC:2877 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2878 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UINamingContainer - - - - - JSF:JAVADOC:2879 - Return the character used to separate segments of a clientId. The implementation must determine if there is a with the value given by the value of the symbolic constant #SEPARATOR_CHAR_PARAM_NAME. If there is a value for this param, the first character of the value must be returned from this method. Otherwise, the value of the symbolic constant NamingContainer#SEPARATOR_CHAR must be returned. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2880 - Perform a tree visit starting at this node in the tree. UIComponent.visitTree() implementations do not invoke the VisitCallback directly, but instead call VisitContext#invokeVisitCallback to invoke the callback. This allows VisitContext implementations to provide optimized tree traversals, for example by only calling the VisitCallback for a subset of components. UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit. - jakarta.faces.component - UINamingContainer - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:2881 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIOutcomeTarget - - - - - JSF:JAVADOC:2882 - Returns the outcome property of the UIOutcomeTarget. This value is passed to the jakarta.faces.application.NavigationHandler when resolving the target url of this component. - jakarta.faces.component - UIOutcomeTarget - - - - - JSF:JAVADOC:2883 - Return whether or not the client window should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - - - JSF:JAVADOC:2884 - Return whether or not the view parameters should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - - - JSF:JAVADOC:2885 - Set whether or not the client window should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - boolean - - - - - - JSF:JAVADOC:2886 - Set whether or not the page parameters should be encoded into the target url. - jakarta.faces.component - UIOutcomeTarget - - - boolean - - - - - - JSF:JAVADOC:2887 - Sets the outcome property of the UIOutcomeTarget. This value is passed to the NavigationHandler when resolving the target url of this component. - jakarta.faces.component - UIOutcomeTarget - - - java.lang.String - - - - - - JSF:JAVADOC:2888 - Create a new UIOutcomeTarget instance with default property values. - jakarta.faces.component - UIOutcomeTarget - - - - - JSF:JAVADOC:2889 - For each of the attached objects on this instance that implement PartialStateHolder, call PartialStateHolder#clearInitialState on the attached object. - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2890 - Return the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2891 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2892 - Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression. - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2893 - In addition to the actions taken in UIComponentBase when PartialStateHolder#markInitialState() is called, check if the installed Converter is a PartialStateHolder and if it is, call jakarta.faces.component.PartialStateHolder#markInitialState() on it. - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2894 - Convenience method to reset this component's value to the un-initialized state. - jakarta.faces.component - UIOutput - - - - - JSF:JAVADOC:2895 - - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:2896 - - jakarta.faces.component - UIOutput - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2897 - Set the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - UIOutput - - - jakarta.faces.convert.Converter - - - - - - JSF:JAVADOC:2898 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIPanel - - - - - JSF:JAVADOC:2899 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIParameter - - - - - JSF:JAVADOC:2900 - Returns the value property of the UIParameter. - jakarta.faces.component - UIParameter - - - - - JSF:JAVADOC:2901 - Return the value of the disable directive for this component. This directive determines whether the parameter value should be disabled by assigning it a null value. If true, the value set on this component is ignored. - jakarta.faces.component - UIParameter - - - - - JSF:JAVADOC:2902 - Sets the disable property of the UIParameter. - jakarta.faces.component - UIParameter - - - boolean - - - - - - JSF:JAVADOC:2903 - Sets the value property of the\ UIParameter. - jakarta.faces.component - UIParameter - - - java.lang.Object - - - - - - JSF:JAVADOC:2904 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UISelectBoolean - - - - - JSF:JAVADOC:2905 - Return any ValueExpression set for value if a ValueExpression for selected is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - - - - - - JSF:JAVADOC:2906 - Store any ValueExpression specified for selected under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectBoolean - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2907 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2908 - Return the server value for this selection item. - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2909 - Returns the value property of the UISelectItem. - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2910 - Return the disabled setting for this selection item. - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2911 - Return the escape setting for the label of this selection item. - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2912 - Return the value of the noSelectionOption property. If the value of this property is true, the system interprets the option represented by this UISelectItem instance as representing a "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - jakarta.faces.component - UISelectItem - - - - - JSF:JAVADOC:2913 - Set the disabled value for this selection item. - jakarta.faces.component - UISelectItem - - - boolean - - - - - - JSF:JAVADOC:2914 - Set the escape value for the label of this selection item. - jakarta.faces.component - UISelectItem - - - boolean - - - - - - JSF:JAVADOC:2915 - Set the server value for this selection item. - jakarta.faces.component - UISelectItem - - - java.lang.Object - - - - - - JSF:JAVADOC:2916 - Set the value of the noSelectionOption property. - jakarta.faces.component - UISelectItem - - - boolean - - - - - - JSF:JAVADOC:2917 - Sets the value property of the UISelectItem. - jakarta.faces.component - UISelectItem - - - java.lang.Object - - - - - - JSF:JAVADOC:2918 - Return a new SelectItemGroup instance containing one or more SelectItem instances represented by any nested UISelectItems or UISelectItem components. - jakarta.faces.component - UISelectItemGroup - - - - - JSF:JAVADOC:2919 - - jakarta.faces.component - UISelectItemGroup - - - - - JSF:JAVADOC:2920 - Iterate over the value attribute and wrap each item in a new SelectItemGroup instance whereby the item is exposed as a request attribute under the key specified by the var property. This must allow any nested UISelectItems or UISelectItem component to access the item via their attributes. Finally return these SelectItemGroup instances as an ordered collection. - jakarta.faces.component - UISelectItemGroups - - - - - JSF:JAVADOC:2921 - - jakarta.faces.component - UISelectItemGroups - - - - - JSF:JAVADOC:2922 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UISelectItems - - - - - JSF:JAVADOC:2923 - Returns the value property of the UISelectItems. - jakarta.faces.component - UISelectItems - - - - - JSF:JAVADOC:2924 - Sets the value property of the UISelectItems. - jakarta.faces.component - UISelectItems - - - java.lang.Object - - - - - - JSF:JAVADOC:2925 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. In addition, if a ValueExpression is set for the var property, regardless of the value, throw an illegal argument exception. - jakarta.faces.component - UISelectItems - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2926 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UISelectMany - - - - - JSF:JAVADOC:2927 - Return any ValueExpression set for value if a ValueExpression for selectedValues is requested; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectMany - - - java.lang.String - - - - - - JSF:JAVADOC:2928 - Store any ValueExpression specified for selectedValues under value instead; otherwise, perform the default superclass processing for this method. - jakarta.faces.component - UISelectMany - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:2929 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UISelectOne - - - - - JSF:JAVADOC:2930 - Returns the name of the radio button group. Radio button components having the same group within a UIForm parent will uncheck all others when being checked. If the value attribute is absent then the one from first component of the group will be used. If the UISelectItem child is absent then the one from first component of the group will be used. - jakarta.faces.component - UISelectOne - - - - - JSF:JAVADOC:2931 - If #getGroup() is set, and #getSubmittedValue() is empty, and at least one other component having the same group within a UIForm parent has a non-empty #getSubmittedValue() or returns true on #isLocalValueSet() or returns false on #isValid(), then skip validation for current component, else perform standard superclass processing by super.processValidators(context). - jakarta.faces.component - UISelectOne - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2932 - Sets the name of the radio button group. - jakarta.faces.component - UISelectOne - - - java.lang.String - - - - - - JSF:JAVADOC:2933 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.ActionListener - - - - - - JSF:JAVADOC:2934 - Enable the method invocation specified by this component instance to return a value that performs navigation, similar in spirit to UICommand#broadcast. Take no action and return immediately if any of the following conditions are true. The response has already been marked as complete. The current UIViewRoot is different from the event's source's UIViewRoot. Save a local reference to the viewId of the current UIViewRoot. For discussion, let this reference be viewIdBeforeAction. Obtain the ActionListener from the jakarta.faces.application.Application. Wrap the current FacesContext in an implementation of jakarta.faces.context.FacesContextWrapper that overrides the FacesContext#renderResponse method such that it takes no action. Set the current FacesContext to be the FacesContextWrapper instance. Make it so a call to #isProcessingBroadcast on the current FacesContext will return true. This is necessary because the jakarta.faces.application.NavigationHandler will call this method to determine if the navigation is happening as the result of a UIViewAction. Invoke ActionListener#processAction. In a finally block, restore the original FacesContext, make it so a call to #isProcessingBroadcast on the current context will return false and discard the wrapper. If the response has been marked as complete during the invocation of processAction(), take no further action and return. Otherwise, compare viewIdBeforeAction with the viewId of the UIViewRoot on the FacesContext after the invocation of processAction(). If the two viewIds are the same and no more UIViewAction events have been queued by a call to #decode, call FacesContext#renderResponse and return. It is possible to detect the case where no more UIViewAction events have been queued because the number of such events queued has been noted in the specification for #decode. Otherwise, execute the lifecycle on the new UIViewRoot. - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:2935 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.FacesEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:2936 - Override behavior from the superclass to queue an ActionEvent that may result in the invocation of the action or any actionListeners that may be associated with this instance. Take no action if any of the following conditions are true: The current request is a postback and the instance has been configured to not operate on postback. See #isOnPostback. The condition stated in the if property evaluates to false. See #isRendered . Instantiate an ActionEvent, passing this component instance as the source. Set the phaseId property of the ActionEvent as follows. If this component instance has been configured with a specific lifecycle phase with a call to #setPhase use that as the phaseId If the value of the immediate property is true, use PhaseId#APPLY_REQUEST_VALUES. Otherwise, use PhaseId#INVOKE_APPLICATION. Queue the event with a call to #queueEvent. Keep track of the number of events that are queued in this way on this run through the lifecycle. This information is necessary during processing in #broadcast. - jakarta.faces.component - UIViewAction - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2937 - - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2938 - - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2939 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2940 - Returns the name of the lifecycle phase in which the action is to be queued. - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2941 - If the value of the component's immediate attribute is true, the action will be invoked during the Apply Request Values Jakarta Faces lifecycle phase. Otherwise, the action will be invoked during the Invoke Application phase, the default behavior. The phase can be set explicitly in the phase attribute, which takes precedence over the immediate attribute. - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2942 - If true this component will operate on postback. - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2943 - Returns true if the current request processing lifecycle is in the midst of processing the broadcast of an event queued during a call to #decode. The implementation of #broadcast is responsible for ensuring that calls to this method accurately reflect this fact. - jakarta.faces.component - UIViewAction - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2944 - Return true if this component should take the actions specified in the #decode method. - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2945 - - jakarta.faces.component - UIViewAction - - - jakarta.faces.event.ActionListener - - - - - - JSF:JAVADOC:2946 - - jakarta.faces.component - UIViewAction - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:2947 - - jakarta.faces.component - UIViewAction - - - boolean - - - - - - JSF:JAVADOC:2948 - Controls whether or not this component operates on postback. - jakarta.faces.component - UIViewAction - - - boolean - - - - - - JSF:JAVADOC:2949 - Attempt to set the lifecycle phase in which this instance will queue its ActionEvent. Pass the argument phase to PhaseId#phaseIdValueOf. If the result is not one of the following values, FacesException must be thrown. PhaseId#APPLY_REQUEST_VALUESPhaseId#PROCESS_VALIDATIONSPhaseId#UPDATE_MODEL_VALUESPhaseId#INVOKE_APPLICATION If set, this value takes precedence over the immediate flag. - jakarta.faces.component - UIViewAction - - - java.lang.String - - - - - - JSF:JAVADOC:2950 - Sets the if property of this component. - jakarta.faces.component - UIViewAction - - - boolean - - - - - - JSF:JAVADOC:2951 - Create a new UIViewAction instance with default property values. - jakarta.faces.component - UIViewAction - - - - - JSF:JAVADOC:2952 - Override behavior from superclass to pull a value from the incoming request parameter map under the name given by #getName and store it with a call to UIInput#setSubmittedValue. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2953 - Called specially by UIViewRoot#encodeEnd, this method simply sets the submitted value to be the return from #getStringValue. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2954 - when an I/O error occurs. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2955 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIViewParameter - - - - - JSF:JAVADOC:2956 - Return the request parameter name from which the value is retrieved. - jakarta.faces.component - UIViewParameter - - - - - JSF:JAVADOC:2957 - If the value of this parameter comes from a ValueExpression return the value of the expression, otherwise, return the local value. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2958 - Manually perform standard conversion steps to get a string value from the value expression. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2959 - - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - jakarta.faces.convert.ConverterException - - - - - JSF:JAVADOC:2960 - Assume that the submitted value is always a string, but the return type from this method is Object.. - jakarta.faces.component - UIViewParameter - - - - - JSF:JAVADOC:2961 - Return false. The immediate setting is not relevant for view parameters and must be assumed to be false. - jakarta.faces.component - UIViewParameter - - - - - JSF:JAVADOC:2962 - Specialize superclass behavior to treat null differently. In this class, a null value along with the "required" flag being set to true will cause a validation failure. Otherwise, If the UIInput#EMPTY_STRING_AS_NULL_PARAM_NAME context parameter is true and the value is null, call UIInput#setSubmittedValue passing the empty string as the argument. This will cause the normal validation processing to happen, including bean validation. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2963 - Set the request parameter name from which the value is retrieved. - jakarta.faces.component - UIViewParameter - - - java.lang.String - - - - - - JSF:JAVADOC:2964 - PENDING (docs) Interesting that submitted value isn't saved by the parent - jakarta.faces.component - UIViewParameter - - - java.lang.Object - - - - - - JSF:JAVADOC:2965 - Create a new UIViewParameter instance with default property values. - jakarta.faces.component - UIViewParameter - - - - - JSF:JAVADOC:2966 - Call through to superclass UIInput#updateModel then take the additional action of pushing the value into request scope if and only if the value is not a value expression, is valid, and the local value was set on this lifecycle execution. - jakarta.faces.component - UIViewParameter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2967 - Return the UIViewParameter to which this instance refers. If the current viewId is the same as the viewId passed to our constructor, use the index passed to the constructor to find the actual UIViewParameter instance and return it. Otherwise, call StateHolder#restoreState on the saved state and return the result. - jakarta.faces.component - UIViewParameter.Reference - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2968 - Construct a reference to a UIViewParameter. This constructor cause the StateHolder#saveState method to be called on argument UIViewParameter. - jakarta.faces.component - UIViewParameter.Reference - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewParameter - int - java.lang.String - - - - - - JSF:JAVADOC:2969 - Add argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The default implementation must call through to #addComponentResource(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.String). - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:2970 - Add argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The component must be added using the following algorithm: If the target argument is null, look for a target attribute on the component. If there is no target attribute, set target to be the default value head Call #getComponentResources to obtain the child list for the given target. If the component ID of componentResource matches the the ID of a resource that has allready been added, remove the old resource. Add the component resource to the list. The resource Renderer must ensure of the following: Do not render when ResourceHandler#isResourceRendered(FacesContext, String, String) returns true. After rendering, call ResourceHandler#markResourceRendered(FacesContext, String, String). - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:2971 - Add the argument newPhaseListener to the list of PhaseListeners on this UIViewRoot. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:2972 - Broadcast any events that have been queued. First broadcast events that have been queued for PhaseId#ANY_PHASE. Then broadcast ane events that have been queued for the current phase. In both cases, UIComponent#pushComponentToEL must be called before the event is broadcast, and UIComponent#popComponentFromEL must be called after the return from the broadcast, even in the case of an exception. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:2973 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within the non-NamingContainer child sub-trees of this UIViewRoot. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2974 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this UIViewRoot. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2975 - Override the default UIComponentBase#encodeBegin behavior. If #getBeforePhaseListener returns non-null, invoke it, passing a PhaseEvent for the PhaseId#RENDER_RESPONSE phase. If the internal list populated by calls to #addPhaseListener is non-empty, any listeners in that list must have their PhaseListener#beforePhase method called, passing the PhaseEvent. Any Exceptions that occur during invocation of any of the beforePhase listeners must be logged and swallowed, unless the #VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME parameter is set. In that case, the Exception must be passed to the jakarta.faces.context.ExceptionHandler as well. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2976 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2977 - If jakarta.faces.context.PartialViewContext#isAjaxRequest returns true, perform partial rendering by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#RENDER_RESPONSE. If jakarta.faces.context.PartialViewContext#isAjaxRequest returns false, delegate to the parent jakarta.faces.component.UIComponentBase#encodeChildren method. If this UIViewRoot is an instance of NamingContainer, then the Jakarta Faces implementation must ensure that all encoded POST request parameter names are prefixed with UIViewRoot#getContainerClientId(FacesContext) as per rules of UIComponent#getClientId(FacesContext). This also covers all predefined POST request parameters which are listed below: ResponseStateManager#VIEW_STATE_PARAMResponseStateManager#CLIENT_WINDOW_PARAMResponseStateManager#RENDER_KIT_ID_PARAMClientBehaviorContext#BEHAVIOR_SOURCE_PARAM_NAMEClientBehaviorContext#BEHAVIOR_EVENT_PARAM_NAMEPartialViewContext#PARTIAL_EVENT_PARAM_NAMEPartialViewContext#PARTIAL_EXECUTE_PARAM_NAMEPartialViewContext#PARTIAL_RENDER_PARAM_NAMEPartialViewContext#RESET_VALUES_PARAM_NAME - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2978 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2979 - If #getAfterPhaseListener returns non-null, invoke it, passing a PhaseEvent for the PhaseId#RENDER_RESPONSE phase. Any Exceptions that occur during invocation of the afterPhase listener must be logged and swallowed, unless the #VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME parameter is set. In that case, the Exception must be passed to the jakarta.faces.context.ExceptionHandler as well.. If the current view has view parameters, as indicated by a non-empty and non-UnsupportedOperationException throwing return from jakarta.faces.view.ViewDeclarationLanguage#getViewMetadata(jakarta.faces.context.FacesContext, String), call UIViewParameter#encodeAll on each parameter. If calling getViewParameters() causes UnsupportedOperationException to be thrown, the exception must be silently swallowed. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2980 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - java.io.IOException - - - - - JSF:JAVADOC:2981 - Return the MethodExpression that will be invoked after this view is rendered. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2982 - Return the MethodExpression that will be invoked before this view is rendered. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2983 - Return an unmodifiable List of UIComponents for the provided target agrument. Each component in the List is assumed to represent a resource instance. The default implementation must use an algorithm equivalent to the the following. Locate the facet for the component by calling getFacet() using target as the argument. If the facet is not found, create the facet by calling context.getApplication().createComponent(). The argument to this method must refer to a component that extends UIPanel and overrides the encodeAll() method to take no action. This is necessary to prevent component resources from being inadvertently rendered. Set the id of the facet to be a string created by prepending the literal string #8220;jakarta_faces_location_ #8221; (without the quotes) to the value of the target argument Add the facet to the facets Map using target as the key return the children of the facet - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:2984 - Return an unmodifiable ordered List of all UIComponent resources of all supported targets. Each component in the List is assumed to represent a resource instance. The ordering is the same as the resources would appear in the component tree. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2985 - Return the doctype of this view. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2986 - Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2987 - Return the Locale to be used in localizing the response being created for this view. Algorithm: If we have a locale ivar, return it. If we have a value expression for "locale", get its value. If the value is null, return the result of calling jakarta.faces.application.ViewHandler#calculateLocale. If the value is an instance of java.util.Locale return it. If the value is a String, convert it to a java.util.Locale and return it. If there is no value expression for "locale", return the result of calling jakarta.faces.application.ViewHandler#calculateLocale. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2988 - Return an unmodifiable list of the PhaseListener instances attached to this UIViewRoot instance. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2989 - Return the render kit identifier of the jakarta.faces.render.RenderKit associated with this view. Unless explicitly set, as in jakarta.faces.application.ViewHandler#createView, the returned value will be null. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2990 - Call UIComponentBase#getRendersChildren If jakarta.faces.context.PartialViewContext#isAjaxRequest returns true this method must return true. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2991 - Return the view identifier for this view. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2992 - Return the SystemEventListener instances registered on this UIComponent instance that are interested in events of type eventClass. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - - - - - - JSF:JAVADOC:2993 - This implementation simply calls through to #getViewMap(boolean), passing true as the argument, and returns the result. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2994 - Returns a Map that acts as the interface to the data store that is the "view scope", or, if this instance does not have such a Map and the create argument is true, creates one and returns it. This map must be instantiated lazily and cached for return from subsequent calls to this method on this UIViewRoot instance. jakarta.faces.application.Application#publishEvent must be called, passing the current FacesContext as the first argument, PostConstructViewMapEvent.class as the second argument, UIViewRoot.class as the third argument and this UIViewRoot instance as the fourth argument. It is necessary to pass the UIViewRoot.class argument to account for cases when the UIViewRoot has been extended with a custom class. The returned Map must be implemented such that calling clear() on the Map causes jakarta.faces.application.Application#publishEvent to be called, passing PreDestroyViewMapEvent.class as the first argument and this UIViewRoot instance as the second argument. Depending upon application configuration, objects stored in the view map may need to be Serializable. In general, it is a good idea to ensure that any objects stored in the view map are Serializable. For reasons made clear in jakarta.faces.view.ViewScoped, this map must ultimately be stored in the session. For this reason, a true value for the create argument will force the session to be created with a call to jakarta.faces.context.ExternalContext#getSession(boolean). See FacesContext#setViewRoot for the specification of when the clear() method must be called. - jakarta.faces.component - UIViewRoot - - - boolean - - - - - - JSF:JAVADOC:2995 - Override superclass method to always return true because a UIViewRoot is defined to always be in a view. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:2996 - Broadcast any events that have been queued for the Invoke Application phase of the request processing lifecycle and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2997 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#APPLY_REQUEST_VALUES if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processDecodes if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase#processDecodes behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:2998 - If the argument event is an instance of PostRestoreStateEvent and PartialViewContext#isPartialRequest() returns true, then loop over all component resources and call ResourceHandler#markResourceRendered(FacesContext, String, String) for each of them. Finally, delegate to super. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.ComponentSystemEvent - - - - - - JSF:JAVADOC:2999 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.ComponentSystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:3000 - The default implementation must call UIComponentBase#processRestoreState from within a try block. The try block must have a finally block that ensures that no FacesEvents remain in the event queue. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:3001 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#UPDATE_MODEL_VALUES if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processUpdates if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3002 - Perform partial processing by calling jakarta.faces.context.PartialViewContext#processPartial with PhaseId#PROCESS_VALIDATIONS if: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we don't have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns false) Perform full processing by calling UIComponentBase#processValidators if one of the following conditions are met: jakarta.faces.context.PartialViewContext#isPartialRequest returns true and we have a request to process all components in the view (jakarta.faces.context.PartialViewContext#isExecuteAll returns true) jakarta.faces.context.PartialViewContext#isPartialRequest returns false Override the default UIComponentBase#processValidators behavior to broadcast any queued events after the default processing or partial processing has been completed and to clear out any events for later phases if the event processing for this phase caused FacesContext#renderResponse or FacesContext#responseComplete to be called. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3003 - Override the default UIComponentBase#queueEvent behavior to accumulate the queued events for later broadcasting. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.FacesEvent - - - - - - JSF:JAVADOC:3004 - Remove argument component, which is assumed to represent a resource instance, as a resource to this view. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:3005 - Remove argument component, which is assumed to represent a resource instance, as a resource to this view. A resource instance is rendered by a resource Renderer, as described in the Standard HTML RenderKit. The component must be removed using the following algorithm: If the target argument is null, look for a target attribute on the component. If there is no target attribute, set target to be the default value head Call #getComponentResources to obtain the child list for the given target. Remove the component resource from the child list. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:3006 - If the argument toRemove is in the list of PhaseListeners for this instance, it must be removed. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:3007 - Visit the clientIds and, if the component is an instance of EditableValueHolder, call its EditableValueHolder#resetValue method. Use #visitTree to do the visiting. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.util.Collection - - - - - - JSF:JAVADOC:3008 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:3009 - Restore ViewScope state. This is needed to allow the use of view scoped beans for EL-expressions in the template from which the component tree is built. For example: . - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:3010 - - jakarta.faces.component - UIViewRoot - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3011 - Allow an arbitrary method to be called for the "afterPhase" event as the UIViewRoot runs through its lifecycle. This method will be called for all phases including PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, this approach doesn't allow for only receiving PhaseEvents for a given phase. The method must conform to the signature of PhaseListener#afterPhase. - jakarta.faces.component - UIViewRoot - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:3012 - Allow an arbitrary method to be called for the "beforePhase" event as the UIViewRoot runs through its lifecycle. This method will be called for all phases except PhaseId#RESTORE_VIEW. Unlike a true PhaseListener, this approach doesn't allow for only receiving PhaseEvents for a given phase. The method must conform to the signature of PhaseListener#beforePhase. - jakarta.faces.component - UIViewRoot - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:3013 - Set the doctype of this view. - jakarta.faces.component - UIViewRoot - - - jakarta.faces.component.Doctype - - - - - - JSF:JAVADOC:3014 - Overridden to take no action. - jakarta.faces.component - UIViewRoot - - - boolean - - - - - - JSF:JAVADOC:3015 - Set the Locale to be used in localizing the response being created for this view. - jakarta.faces.component - UIViewRoot - - - java.util.Locale - - - - - - JSF:JAVADOC:3016 - Set the render kit identifier of the jakarta.faces.render.RenderKit associated with this view. This method may be called at any time between the end of Apply Request Values phase of the request processing lifecycle (i.e. when events are being broadcast) and the beginning of the Render Response phase. - jakarta.faces.component - UIViewRoot - - - java.lang.String - - - - - - JSF:JAVADOC:3017 - Set the view identifier for this view. - jakarta.faces.component - UIViewRoot - - - java.lang.String - - - - - - JSF:JAVADOC:3018 - Install the listener instance referenced by argument listener into the UIViewRoot as a listener for events of type systemEventClass. Note that installed listeners are not maintained as part of the UIViewRoot's state. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:3019 - Create a new UIViewRoot instance with default property values. - jakarta.faces.component - UIViewRoot - - - - - JSF:JAVADOC:3020 - Remove the listener instance referenced by argument listener from the UIViewRoot as a listener for events of type systemEventClass. - jakarta.faces.component - UIViewRoot - - - java.lang.Class - jakarta.faces.event.SystemEventListener - - - - - - JSF:JAVADOC:3021 - Returns the name of the websocket channel. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3022 - Returns a non-null, empty, unmodifiable Collection which returns true on any Collection#contains() invocation, indicating that all client behavior event names are acceptable. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3023 - Returns UIWebsocket#COMPONENT_FAMILY. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3024 - Returns the JavaScript event handler function that is invoked when the websocket is closed and will not anymore attempt to reconnect. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3025 - Returns the JavaScript event handler function that is invoked when a connection error has occurred and the websocket will attempt to reconnect. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3026 - Returns the JavaScript event handler function that is invoked when a push message is received from the server. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3027 - Returns the JavaScript event handler function that is invoked when the websocket is opened. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3028 - Returns the scope of the websocket channel. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3029 - Returns the user identifier of the websocket channel. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3030 - Returns whether to (auto)connect the websocket or not. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3031 - Sets the name of the websocket channel. It may not be an Jakarta Expression Language expression and it may only contain alphanumeric characters, hyphens, underscores and periods. All open websockets on the same channel will receive the same push message from the server. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3032 - Sets whether to (auto)connect the websocket or not. Defaults to true. It's interpreted as a JavaScript instruction whether to open or close the websocket push connection. Note that this attribute is re-evaluated on every ajax request. You can also explicitly set it to false and then manually control in JavaScript by faces.push.open("channelName") and faces.push.close("channelName"). - jakarta.faces.component - UIWebsocket - - - boolean - - - - - - JSF:JAVADOC:3033 - Sets the JavaScript event handler function that is invoked when the websocket is closed and will not anymore attempt to reconnect. The function will be invoked with three arguments: the close reason code, the channel name and the raw CloseEvent itself. Note that this will also be invoked when the close is caused by an error and that you can inspect the close reason code if an actual connection error occurred and which one (i.e. when the code is not 1000 or 1008). See also RFC 6455 section 7.4.1 and CloseCodes API for an elaborate list of all close codes. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3034 - Sets the JavaScript event handler function that is invoked when a connection error has occurred and the websocket will attempt to reconnect. The function will be invoked with three arguments: the error reason code, the channel name and the raw CloseEvent itself. Note that this will not be invoked on final close of the websocket, even when the final close is caused by an error. See also RFC 6455 section 7.4.1 and CloseCodes API for an elaborate list of all close codes. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3035 - Sets the JavaScript event handler function that is invoked when a push message is received from the server. The function will be invoked with three arguments: the push message, the channel name and the raw MessageEvent itself. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3036 - Sets the JavaScript event handler function that is invoked when the websocket is opened. The function will be invoked with one argument: the channel name. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3037 - Sets the scope of the websocket channel. It may not be an Jakarta Expression Language expression and allowed values are application, session and view, case insensitive. When the value is application, then all channels with the same name throughout the application will receive the same push message. When the value is session, then only the channels with the same name in the current user session will receive the same push message. When the value is view, then only the channel in the current view will receive the push message. The default scope is application. When the user attribute is specified, then the default scope is session. - jakarta.faces.component - UIWebsocket - - - java.lang.String - - - - - - JSF:JAVADOC:3038 - Sets the user identifier of the websocket channel, so that user-targeted push messages can be sent. All open websockets on the same channel and user will receive the same push message from the server. It must implement Serializable and preferably have low memory footprint. Suggestion: use #{request.remoteUser} or #{someLoggedInUser.id}. - jakarta.faces.component - UIWebsocket - - - java.io.Serializable - - - - - - JSF:JAVADOC:3039 - Set the ValueExpression used to calculate the value for the specified attribute or property name, if any. If a ValueExpression is set for the channel or scope property, regardless of the value, throw an illegal argument exception. If a ValueExpression is set for the user property, and the non-null value is not an instance of Serializable, throw an illegal argument exception. - jakarta.faces.component - UIWebsocket - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:3040 - Create a new UIWebsocket instance with default property values. - jakarta.faces.component - UIWebsocket - - - - - JSF:JAVADOC:3041 - Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id. - jakarta.faces.component - UniqueIdVendor - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:3042 - Return the FacesMessage passed to the constructor. - jakarta.faces.component - UpdateModelException - - - - - JSF:JAVADOC:3043 - Store the argument facesMessage so it may be returned from #getFacesMessage and pass the argument cause to the super constructor. - jakarta.faces.component - UpdateModelException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - - JSF:JAVADOC:3044 - Return the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - ValueHolder - - - - - JSF:JAVADOC:3045 - Return the local value of this UIComponent (if any), without evaluating any associated ValueExpression. - jakarta.faces.component - ValueHolder - - - - - JSF:JAVADOC:3046 - Gets the value of this UIComponent. If validation failed, as indicated by jakarta.faces.context.FacesContext#isValidationFailed returning true, always return the local value. Otherwise, first, consult the local value property of this component. If non-null return it. If null, see if we have a ValueExpression for the value property. If so, return the result of evaluating the property, otherwise return null. - jakarta.faces.component - ValueHolder - - - - - JSF:JAVADOC:3047 - Set the Converter (if any) that is registered for this UIComponent. - jakarta.faces.component - ValueHolder - - - jakarta.faces.convert.Converter - - - - - - JSF:JAVADOC:3048 - Set the value of this UIComponent (if any). - jakarta.faces.component - ValueHolder - - - java.lang.Object - - - - - - JSF:JAVADOC:3049 - Add the specified AjaxBehaviorListener to the set of listeners registered to receive event notifications from this AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - - - - - JSF:JAVADOC:3050 - Default constructor that just creates this instance. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3051 - Returns the delay value, or null if no value was set. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3052 - Return a non-empty Collection of component identifiers that will be used to identify components that should be processed during the execute phase of the request processing lifecycle. Note that the returned collection may be unmodifiable. Modifications should be performed by calling #setExecute. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3053 - This method returns an unmodifiable Set containing the ClientBehaviorHint SUBMITTING. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3054 - Return the String of JavaScript function name that will be used to identify the client callback function that should be run in the event of an error. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3055 - Return the String of JavaScript function name that will be used to identify the client callback function that should be run on the occurance of a client-side event. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3056 - Return a non-empty Collection of component identifiers that will be used to identify components that should be processed during the render phase of the request processing lifecycle. Note that the returned collection may be unmodifiable. Modifications should be performed by calling #setRender. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3057 - Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The default implementation returns null. Subclasses should either override this method to return a string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and perform script rendering locally in the ClientBehavior implementation. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3058 - Returns the ValueExpression used to calculate the value for the specified property name, if any. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - - JSF:JAVADOC:3059 - Return the disabled status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3060 - Return the immediate status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3061 - Tests whether the immediate attribute is specified. Returns true if the immediate attribute is specified, either as a locally set property or as a value expression. This information allows an associated client behavior renderer to fall back on the parent component's immediate status when immediate is not explicitly specified on the AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3062 - Return the resetValues status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3063 - Tests whether the resetValues attribute is specified. Returns true if the resetValues attribute is specified, either as a locally set property or as a value expression. - jakarta.faces.component.behavior - AjaxBehavior - - - - - JSF:JAVADOC:3064 - Remove the specified AjaxBehaviorListener from the set of listeners registered to receive event notifications from this AjaxBehavior. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.event.AjaxBehaviorListener - - - - - - JSF:JAVADOC:3065 - Implementation of jakarta.faces.component.StateHolder#restoreState. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:3066 - Implementation of jakarta.faces.component.StateHolder#saveState. - jakarta.faces.component.behavior - AjaxBehavior - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3067 - If less than delay milliseconds elapses between calls to request() only the most recent one is sent and all other requests are discarded. The default value of this option is 300. If the value of delay is the literal string 'none' without the quotes, no delay is used. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - - JSF:JAVADOC:3068 - Sets the disabled status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - - JSF:JAVADOC:3069 - Sets the component identifiers that will be used to identify components that should be processed during the execute phase of the request processing lifecycle. - jakarta.faces.component.behavior - AjaxBehavior - - - java.util.Collection - - - - - - JSF:JAVADOC:3070 - Sets the immediate status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - - JSF:JAVADOC:3071 - Sets the JavaScript function name that will be used to identify the client callback function that should be run in the event of an error. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - - JSF:JAVADOC:3072 - Sets the JavaScript function name that will be used to identify the client callback function that should be run in response to event activity. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - - - - - - JSF:JAVADOC:3073 - Sets the component identifiers that will be used to identify components that should be processed during the render phase of the request processing lifecycle. - jakarta.faces.component.behavior - AjaxBehavior - - - java.util.Collection - - - - - - JSF:JAVADOC:3074 - Set the resetValues status of this behavior. - jakarta.faces.component.behavior - AjaxBehavior - - - boolean - - - - - - JSF:JAVADOC:3075 - Sets the ValueExpression used to calculate the value for the specified property name. - jakarta.faces.component.behavior - AjaxBehavior - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:3076 - Broadcast the specified BehaviorEvent to all registered event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were added. - jakarta.faces.component.behavior - Behavior - - - jakarta.faces.event.BehaviorEvent - - - - - - JSF:JAVADOC:3077 - - jakarta.faces.component.behavior - BehaviorBase - - - - - JSF:JAVADOC:3078 - Default implementation of Behavior#broadcast. Delivers the specified BehaviorEvent to all registered BehaviorListener event listeners who have expressed an interest in events of this type. Listeners are called in the order in which they were registered (added). - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - - - - - JSF:JAVADOC:3079 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.event.BehaviorEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:3080 - Clears the initial state flag, causing the behavior to revert from partial to full state saving. - jakarta.faces.component.behavior - BehaviorBase - - - - - JSF:JAVADOC:3081 - Implementation of jakarta.faces.component.PartialStateHolder#initialStateMarked. - jakarta.faces.component.behavior - BehaviorBase - - - - - JSF:JAVADOC:3082 - Implementation of jakarta.faces.component.StateHolder#isTransient. - jakarta.faces.component.behavior - BehaviorBase - - - - - JSF:JAVADOC:3083 - Implementation of jakarta.faces.component.PartialStateHolder#markInitialState. - jakarta.faces.component.behavior - BehaviorBase - - - - - JSF:JAVADOC:3084 - Implementation of jakarta.faces.component.StateHolder#restoreState. - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:3085 - Implementation of jakarta.faces.component.StateHolder#saveState. - jakarta.faces.component.behavior - BehaviorBase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3086 - Implementation of jakarta.faces.component.StateHolder#setTransient. - jakarta.faces.component.behavior - BehaviorBase - - - boolean - - - - - - JSF:JAVADOC:3087 - Decode any new state of this ClientBehavior from the request contained in the specified FacesContext. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). Default implementation delegates decoding to jakarta.faces.render.ClientBehaviorRenderer#decode(FacesContext, UIComponent, ClientBehavior) - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:3088 - Returns hints that describe the behavior of the ClientBehavior implementation. The hints may impact how Renderers behave in the presence of Behaviors. For example, when a Behavior that specifies ClientBehaviorHint.SUBMITTING is present, the Renderer may choose to alternate the scripts that it generates itself. - jakarta.faces.component.behavior - ClientBehavior - - - - - JSF:JAVADOC:3089 - Return the script that implements this ClientBehavior's client-side logic. ClientBehavior.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehavior implementation may return null if the Behavior is disabled. - jakarta.faces.component.behavior - ClientBehavior - - - jakarta.faces.component.behavior.ClientBehaviorContext - - - - - - JSF:JAVADOC:3090 - - jakarta.faces.component.behavior - ClientBehaviorBase - - - - - JSF:JAVADOC:3091 - Default implementation of of ClientBehavior#decode. If a ClientBehaviorRenderer is available for the specified behavior renderer type, this method delegates to the ClientBehaviorRenderer's decode() method. Otherwise, no decoding is performed. - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:3092 - Default implementation of ClientBehavior#getHints(). By default, no hints are specified, and this method returns an empty, umodifiable set. - jakarta.faces.component.behavior - ClientBehaviorBase - - - - - JSF:JAVADOC:3093 - Returns the renderer type of the ClientBehaviorRenderer to use for the behavior. The default implementation returns null. Subclasses should either override this method to return a string that identifies the type of ClientBehaviorRenderer to use, or should override #getScript and perform script rendering locally in the ClientBehavior implementation. - jakarta.faces.component.behavior - ClientBehaviorBase - - - - - JSF:JAVADOC:3094 - Default implementation of of ClientBehavior#getScript. If a ClientBehaviorRenderer is available for the specified behavior renderer type, this method delegates to the ClientBehaviorRenderer#getScript method. Otherwise, this method returns null. - jakarta.faces.component.behavior - ClientBehaviorBase - - - jakarta.faces.component.behavior.ClientBehaviorContext - - - - - - JSF:JAVADOC:3095 - - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3096 - Creates a ClientBehaviorContext instance. - jakarta.faces.component.behavior - ClientBehaviorContext - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - java.lang.String - java.util.Collection - - - - - - JSF:JAVADOC:3097 - Returns the UIComponent that is requesting the ClientBehavior script. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3098 - Returns the name of the behavior event for which the ClientBehavior script is being requested. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3099 - Returns the FacesContext for the current request. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3100 - Returns parameters that "submitting" ClientBehavior implementations should include when posting back data into the Faces lifecycle. If no parameters are specified, this method returns an empty (non-null) collection. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3101 - Returns an id for use as the ClientBehavior source. ClientBehavior implementations that submit back to the Faces lifecycle are required to identify which component triggered the ClientBehavior-initiated request via the jakarta.faces.source request parameter. In most cases, th source id can be trivially derived from the element to which the behavior's client-side script is attached - ie. the source id is typically the id of this element. However, in components which produce more complex content, the behavior script may not be able to determine the correct id to use for the jakarta.faces.source value. The ClientBehaviorContext#getSourceId method allows the component to pass this information into the ClientBehavior#getScript implementation. - jakarta.faces.component.behavior - ClientBehaviorContext - - - - - JSF:JAVADOC:3102 - Creates a Parameter instance. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:3103 - Returns the Parameter's name. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - - - JSF:JAVADOC:3104 - Returns the Parameter's value. - jakarta.faces.component.behavior - ClientBehaviorContext.Parameter - - - - - JSF:JAVADOC:3105 - - jakarta.faces.component.behavior - ClientBehaviorHint - - - java.lang.String - - - - - - JSF:JAVADOC:3106 - - jakarta.faces.component.behavior - ClientBehaviorHint - - - - - JSF:JAVADOC:3107 - Attaches a ClientBehavior to the component implementing this interface for the specified event. Valid event names for a UIComponent implementation are defined by ClientBehaviorHolder.getEventNames(). - jakarta.faces.component.behavior - ClientBehaviorHolder - - - java.lang.String - jakarta.faces.component.behavior.ClientBehavior - - - - - - JSF:JAVADOC:3108 - Returns a non-null, unmodifiable Map that contains the the ClientBehaviors that have been attached to the component implementing this interface. The keys in this Map are event names defined by #getEventNames. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - - JSF:JAVADOC:3109 - Returns the default event name for this ClientBehaviorHolder implementation. This must be one of the event names returned by #getEventNames or null if the component does not have a default event. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - - JSF:JAVADOC:3110 - Returns a non-null, unmodifiable Collection containing the names of the logical events supported by the component implementing this interface. - jakarta.faces.component.behavior - ClientBehaviorHolder - - - - - JSF:JAVADOC:3111 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.component.behavior - FacesBehavior - - - - - JSF:JAVADOC:3112 - The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated. - jakarta.faces.component.behavior - FacesBehavior - - - - - JSF:JAVADOC:3113 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.component.behavior - FacesBehavior.Literal - - - - - JSF:JAVADOC:3114 - - jakarta.faces.component.behavior - FacesBehavior.Literal - - - java.lang.String - boolean - - - - - - JSF:JAVADOC:3115 - The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated. - jakarta.faces.component.behavior - FacesBehavior.Literal - - - - - JSF:JAVADOC:3116 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3117 - Return the value of the dir property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3118 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3119 - Return the value of the lang property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3120 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3121 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3122 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3123 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3124 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3125 - Return the value of the onload property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3126 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3127 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3128 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3129 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3130 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3131 - Return the value of the onunload property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3132 - Return the value of the role property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3133 - Return the value of the style property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3134 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3135 - Return the value of the title property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3136 - Return the value of the xmlns property. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3137 - Default constructor setting the renderer type. - jakarta.faces.component.html - HtmlBody - - - - - JSF:JAVADOC:3138 - Set the value of the dir property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3139 - Set the value of the lang property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3140 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3141 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3142 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3143 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3144 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3145 - Set the value of the onload property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3146 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3147 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3148 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3149 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3150 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3151 - Set the value of the onunload property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3152 - Set the value of the role property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3153 - Set the value of the style property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3154 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3155 - Set the value of the title property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3156 - Set the value of the xmlns property. - jakarta.faces.component.html - HtmlBody - - - java.lang.String - - - - - - JSF:JAVADOC:3157 - - jakarta.faces.component.html - HtmlBody.PropertyKeys - - - - - JSF:JAVADOC:3158 - - jakarta.faces.component.html - HtmlBody.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3159 - - jakarta.faces.component.html - HtmlBody.PropertyKeys - - - - - JSF:JAVADOC:3160 - Return the value of the footerClass property. - jakarta.faces.component.html - HtmlColumn - - - - - JSF:JAVADOC:3161 - Return the value of the headerClass property. - jakarta.faces.component.html - HtmlColumn - - - - - JSF:JAVADOC:3162 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlColumn - - - - - JSF:JAVADOC:3163 - - jakarta.faces.component.html - HtmlColumn - - - - - JSF:JAVADOC:3164 - Return the value of the rowHeader property. - jakarta.faces.component.html - HtmlColumn - - - - - JSF:JAVADOC:3165 - Set the value of the footerClass property. - jakarta.faces.component.html - HtmlColumn - - - java.lang.String - - - - - - JSF:JAVADOC:3166 - Set the value of the headerClass property. - jakarta.faces.component.html - HtmlColumn - - - java.lang.String - - - - - - JSF:JAVADOC:3167 - Set the value of the rowHeader property. - jakarta.faces.component.html - HtmlColumn - - - boolean - - - - - - JSF:JAVADOC:3168 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlColumn - - - java.lang.String - - - - - - JSF:JAVADOC:3169 - - jakarta.faces.component.html - HtmlColumn.PropertyKeys - - - - - JSF:JAVADOC:3170 - - jakarta.faces.component.html - HtmlColumn.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3171 - - jakarta.faces.component.html - HtmlColumn.PropertyKeys - - - - - JSF:JAVADOC:3172 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3173 - Return the value of the alt property. This attribute is ignored when the image attribute is not specified. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3174 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3175 - Return the value of the dir property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3176 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3177 - Return the value of the image property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3178 - Return the value of the label property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3179 - Return the value of the lang property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3180 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3181 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3182 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3183 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3184 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3185 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3186 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3187 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3188 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3189 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3190 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3191 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3192 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3193 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3194 - Return the value of the role property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3195 - Return the value of the style property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3196 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3197 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3198 - Return the value of the title property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3199 - Return the value of the type property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3200 - - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3201 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3202 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlCommandButton - - - - - JSF:JAVADOC:3203 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3204 - Set the value of the alt property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3205 - Set the value of the dir property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3206 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlCommandButton - - - boolean - - - - - - JSF:JAVADOC:3207 - Set the value of the image property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3208 - Set the value of the label property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3209 - Set the value of the lang property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3210 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3211 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3212 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3213 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3214 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3215 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3216 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3217 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3218 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3219 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3220 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3221 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3222 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3223 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3224 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlCommandButton - - - boolean - - - - - - JSF:JAVADOC:3225 - Set the value of the role property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3226 - Set the value of the style property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3227 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3228 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3229 - Set the value of the title property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3230 - Set the value of the type property. - jakarta.faces.component.html - HtmlCommandButton - - - java.lang.String - - - - - - JSF:JAVADOC:3231 - - jakarta.faces.component.html - HtmlCommandButton.PropertyKeys - - - - - JSF:JAVADOC:3232 - - jakarta.faces.component.html - HtmlCommandButton.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3233 - - jakarta.faces.component.html - HtmlCommandButton.PropertyKeys - - - - - JSF:JAVADOC:3234 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3235 - Return the value of the charset property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3236 - Return the value of the coords property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3237 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3238 - Return the value of the dir property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3239 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3240 - Return the value of the hreflang property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3241 - Return the value of the lang property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3242 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3243 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3244 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3245 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3246 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3247 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3248 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3249 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3250 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3251 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3252 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3253 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3254 - Return the value of the rel property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3255 - Return the value of the rev property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3256 - Return the value of the role property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3257 - Return the value of the shape property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3258 - Return the value of the style property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3259 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3260 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3261 - Return the value of the target property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3262 - Return the value of the title property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3263 - Return the value of the type property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3264 - - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3265 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlCommandLink - - - - - JSF:JAVADOC:3266 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3267 - Set the value of the charset property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3268 - Set the value of the coords property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3269 - Set the value of the dir property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3270 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlCommandLink - - - boolean - - - - - - JSF:JAVADOC:3271 - Set the value of the hreflang property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3272 - Set the value of the lang property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3273 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3274 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3275 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3276 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3277 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3278 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3279 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3280 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3281 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3282 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3283 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3284 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3285 - Set the value of the rel property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3286 - Set the value of the rev property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3287 - Set the value of the role property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3288 - Set the value of the shape property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3289 - Set the value of the style property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3290 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3291 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3292 - Set the value of the target property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3293 - Set the value of the title property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3294 - Set the value of the type property. - jakarta.faces.component.html - HtmlCommandLink - - - java.lang.String - - - - - - JSF:JAVADOC:3295 - - jakarta.faces.component.html - HtmlCommandLink.PropertyKeys - - - - - JSF:JAVADOC:3296 - - jakarta.faces.component.html - HtmlCommandLink.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3297 - - jakarta.faces.component.html - HtmlCommandLink.PropertyKeys - - - - - JSF:JAVADOC:3298 - Return the value of the execute property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3299 - Return the value of the name property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3300 - Return the value of the onerror property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3301 - Return the value of the onevent property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3302 - Return the value of the render property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3303 - Return the value of the resetValues property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3304 - - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3305 - Return the value of the autorun property. - jakarta.faces.component.html - HtmlCommandScript - - - - - JSF:JAVADOC:3306 - Set the value of the autorun property. - jakarta.faces.component.html - HtmlCommandScript - - - boolean - - - - - - JSF:JAVADOC:3307 - Set the value of the execute property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.String - - - - - - JSF:JAVADOC:3308 - Set the value of the name property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.String - - - - - - JSF:JAVADOC:3309 - Set the value of the onerror property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.String - - - - - - JSF:JAVADOC:3310 - Set the value of the onevent property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.String - - - - - - JSF:JAVADOC:3311 - Set the value of the render property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.String - - - - - - JSF:JAVADOC:3312 - Set the value of the resetValues property. - jakarta.faces.component.html - HtmlCommandScript - - - java.lang.Boolean - - - - - - JSF:JAVADOC:3313 - - jakarta.faces.component.html - HtmlCommandScript.PropertyKeys - - - - - JSF:JAVADOC:3314 - - jakarta.faces.component.html - HtmlCommandScript.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3315 - - jakarta.faces.component.html - HtmlCommandScript.PropertyKeys - - - - - JSF:JAVADOC:3316 - Return the value of the bgcolor property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3317 - Return the value of the bodyrows property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3318 - Return the value of the border property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3319 - Return the value of the captionClass property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3320 - Return the value of the captionStyle property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3321 - Return the value of the cellpadding property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3322 - Return the value of the cellspacing property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3323 - Return the value of the columnClasses property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3324 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3325 - Return the value of the dir property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3326 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3327 - Return the value of the footerClass property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3328 - Return the value of the frame property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3329 - Return the value of the headerClass property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3330 - Return the value of the lang property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3331 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3332 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3333 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3334 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3335 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3336 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3337 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3338 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3339 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3340 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3341 - Return the value of the role property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3342 - Return the value of the rowClass property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3343 - Return the value of the rowClasses property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3344 - Return the value of the rules property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3345 - Return the value of the style property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3346 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3347 - Return the value of the summary property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3348 - Return the value of the title property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3349 - Return the value of the width property. - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3350 - - jakarta.faces.component.html - HtmlDataTable - - - - - JSF:JAVADOC:3351 - Set the value of the bgcolor property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3352 - Set the value of the bodyrows property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3353 - Set the value of the border property. - jakarta.faces.component.html - HtmlDataTable - - - int - - - - - - JSF:JAVADOC:3354 - Set the value of the captionClass property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3355 - Set the value of the captionStyle property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3356 - Set the value of the cellpadding property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3357 - Set the value of the cellspacing property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3358 - Set the value of the columnClasses property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3359 - Set the value of the dir property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3360 - Set the value of the footerClass property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3361 - Set the value of the frame property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3362 - Set the value of the headerClass property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3363 - Set the value of the lang property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3364 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3365 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3366 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3367 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3368 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3369 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3370 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3371 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3372 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3373 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3374 - Set the value of the role property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3375 - Set the value of the rowClass property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3376 - Set the value of the rowClasses property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3377 - Set the value of the rules property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3378 - Set the value of the style property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3379 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3380 - Set the value of the summary property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3381 - Set the value of the title property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3382 - Set the value of the width property. - jakarta.faces.component.html - HtmlDataTable - - - java.lang.String - - - - - - JSF:JAVADOC:3383 - - jakarta.faces.component.html - HtmlDataTable.PropertyKeys - - - - - JSF:JAVADOC:3384 - - jakarta.faces.component.html - HtmlDataTable.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3385 - - jakarta.faces.component.html - HtmlDataTable.PropertyKeys - - - - - JSF:JAVADOC:3386 - Return the value of the public property. - jakarta.faces.component.html - HtmlDoctype - - - - - JSF:JAVADOC:3387 - Return the value of the rootElement property. - jakarta.faces.component.html - HtmlDoctype - - - - - JSF:JAVADOC:3388 - Return the value of the system property. - jakarta.faces.component.html - HtmlDoctype - - - - - JSF:JAVADOC:3389 - - jakarta.faces.component.html - HtmlDoctype - - - - - JSF:JAVADOC:3390 - Set the value of the public property. - jakarta.faces.component.html - HtmlDoctype - - - java.lang.String - - - - - - JSF:JAVADOC:3391 - Set the value of the rootElement property. - jakarta.faces.component.html - HtmlDoctype - - - java.lang.String - - - - - - JSF:JAVADOC:3392 - Set the value of the system property. - jakarta.faces.component.html - HtmlDoctype - - - java.lang.String - - - - - - JSF:JAVADOC:3393 - - jakarta.faces.component.html - HtmlDoctype.PropertyKeys - - - - - JSF:JAVADOC:3394 - - jakarta.faces.component.html - HtmlDoctype.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3395 - - jakarta.faces.component.html - HtmlDoctype.PropertyKeys - - - - - JSF:JAVADOC:3396 - Return the value of the accept property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3397 - Return the value of the acceptcharset property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3398 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3399 - Return the value of the dir property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3400 - Return the value of the enctype property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3401 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3402 - Return the value of the lang property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3403 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3404 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3405 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3406 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3407 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3408 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3409 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3410 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3411 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3412 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3413 - Return the value of the onreset property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3414 - Return the value of the onsubmit property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3415 - Return the value of the role property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3416 - Return the value of the style property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3417 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3418 - Return the value of the target property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3419 - Return the value of the title property. - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3420 - - jakarta.faces.component.html - HtmlForm - - - - - JSF:JAVADOC:3421 - Set the value of the accept property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3422 - Set the value of the acceptcharset property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3423 - Set the value of the dir property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3424 - Set the value of the enctype property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3425 - Set the value of the lang property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3426 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3427 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3428 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3429 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3430 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3431 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3432 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3433 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3434 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3435 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3436 - Set the value of the onreset property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3437 - Set the value of the onsubmit property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3438 - Set the value of the role property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3439 - Set the value of the style property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3440 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3441 - Set the value of the target property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3442 - Set the value of the title property. - jakarta.faces.component.html - HtmlForm - - - java.lang.String - - - - - - JSF:JAVADOC:3443 - - jakarta.faces.component.html - HtmlForm.PropertyKeys - - - - - JSF:JAVADOC:3444 - - jakarta.faces.component.html - HtmlForm.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3445 - - jakarta.faces.component.html - HtmlForm.PropertyKeys - - - - - JSF:JAVADOC:3446 - Return the value of the alt property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3447 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3448 - Return the value of the dir property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3449 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3450 - Return the value of the height property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3451 - Return the value of the lang property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3452 - Return the value of the longdesc property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3453 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3454 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3455 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3456 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3457 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3458 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3459 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3460 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3461 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3462 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3463 - Return the value of the role property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3464 - Return the value of the style property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3465 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3466 - Return the value of the title property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3467 - Return the value of the usemap property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3468 - Return the value of the width property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3469 - - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3470 - Return the value of the ismap property. - jakarta.faces.component.html - HtmlGraphicImage - - - - - JSF:JAVADOC:3471 - Set the value of the alt property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3472 - Set the value of the dir property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3473 - Set the value of the height property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3474 - Set the value of the ismap property. - jakarta.faces.component.html - HtmlGraphicImage - - - boolean - - - - - - JSF:JAVADOC:3475 - Set the value of the lang property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3476 - Set the value of the longdesc property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3477 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3478 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3479 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3480 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3481 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3482 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3483 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3484 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3485 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3486 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3487 - Set the value of the role property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3488 - Set the value of the style property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3489 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3490 - Set the value of the title property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3491 - Set the value of the usemap property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3492 - Set the value of the width property. - jakarta.faces.component.html - HtmlGraphicImage - - - java.lang.String - - - - - - JSF:JAVADOC:3493 - - jakarta.faces.component.html - HtmlGraphicImage.PropertyKeys - - - - - JSF:JAVADOC:3494 - - jakarta.faces.component.html - HtmlGraphicImage.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3495 - - jakarta.faces.component.html - HtmlGraphicImage.PropertyKeys - - - - - JSF:JAVADOC:3496 - Return the value of the dir property. - jakarta.faces.component.html - HtmlHead - - - - - JSF:JAVADOC:3497 - Return the value of the lang property. - jakarta.faces.component.html - HtmlHead - - - - - JSF:JAVADOC:3498 - Return the value of the xmlns property. - jakarta.faces.component.html - HtmlHead - - - - - JSF:JAVADOC:3499 - - jakarta.faces.component.html - HtmlHead - - - - - JSF:JAVADOC:3500 - Set the value of the dir property. - jakarta.faces.component.html - HtmlHead - - - java.lang.String - - - - - - JSF:JAVADOC:3501 - Set the value of the lang property. - jakarta.faces.component.html - HtmlHead - - - java.lang.String - - - - - - JSF:JAVADOC:3502 - Set the value of the xmlns property. - jakarta.faces.component.html - HtmlHead - - - java.lang.String - - - - - - JSF:JAVADOC:3503 - - jakarta.faces.component.html - HtmlHead.PropertyKeys - - - - - JSF:JAVADOC:3504 - - jakarta.faces.component.html - HtmlHead.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3505 - - jakarta.faces.component.html - HtmlHead.PropertyKeys - - - - - JSF:JAVADOC:3506 - Return the value of the accept property. Contents: Comma separated string of mime types of files to filter in client side file browse dialog. Note: This is not validated in server side. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3507 - Return the value of the accesskey property. Contents: Access key that, when pressed, transfers focus to this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3508 - Return the value of the alt property. Contents: Alternate textual description of the element rendered by this component. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3509 - Return the value of the autocomplete property. Contents: If the value of this attribute is "off", render "off" as the value of the attribute. This indicates that the browser should disable its autocomplete feature for this component. This is useful for components that perform autocompletion and do not want the browser interfering. If this attribute is not set or the value is "on", render nothing. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3510 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3511 - Return the value of the dir property. Contents: Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left). These attributes are case sensitive when rendering to XHTML, so care must be taken to have the correct case. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3512 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3513 - Return the value of the label property. Contents: A localized user presentable name for this component. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3514 - Return the value of the lang property. Contents: Code describing the language used in the generated markup for this component. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3515 - Return the value of the maxlength property. Contents: The maximum number of characters that may be entered in this field. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3516 - Return the value of the onblur property. Contents: JavaScript code executed when this element loses focus. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3517 - Return the value of the onchange property. Contents: JavaScript code executed when this element loses focus and its value has been modified since gaining focus. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3518 - Return the value of the onclick property. Contents: JavaScript code executed when a pointer button is clicked over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3519 - Return the value of the ondblclick property. Contents: JavaScript code executed when a pointer button is double clicked over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3520 - Return the value of the onfocus property. Contents: JavaScript code executed when this element receives focus. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3521 - Return the value of the onkeydown property. Contents: JavaScript code executed when a key is pressed down over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3522 - Return the value of the onkeypress property. Contents: JavaScript code executed when a key is pressed and released over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3523 - Return the value of the onkeyup property. Contents: JavaScript code executed when a key is released over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3524 - Return the value of the onmousedown property. Contents: JavaScript code executed when a pointer button is pressed down over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3525 - Return the value of the onmousemove property. Contents: JavaScript code executed when a pointer button is moved within this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3526 - Return the value of the onmouseout property. Contents: JavaScript code executed when a pointer button is moved away from this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3527 - Return the value of the onmouseover property. Contents: JavaScript code executed when a pointer button is moved onto this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3528 - Return the value of the onmouseup property. Contents: JavaScript code executed when a pointer button is released over this element. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3529 - Return the value of the onselect property. Contents: JavaScript code executed when text within this element is selected by the user. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3530 - Return the value of the role property. Contents: Per the WAI-ARIA spec and its relationship to HTML5 (Section title ARIA Role Attriubute), every HTML element may have a "role" attribute whose value must be passed through unmodified on the element on which it is declared in the final rendered markup. The attribute, if specified, must have a value that is a string literal that is, or a Jakarta Expression Language Expression that evaluates to, a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to. It is the page author's responsibility to ensure that the user agent is capable of correctly interpreting the value of this attribute. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3531 - Return the value of the size property. Contents: The number of characters used to determine the width of this field. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3532 - Return the value of the style property. Contents: CSS style(s) to be applied when this component is rendered. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3533 - Return the value of the styleClass property. Contents: Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3534 - Return the value of the tabindex property. Contents: Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3535 - Return the value of the title property. Contents: Advisory title information about markup elements generated for this component. - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3536 - - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3537 - Return the value of the disabled property. Contents: Flag indicating that this element must never receive focus or be included in a subsequent submit. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as disabled="disabled". - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3538 - Return the value of the multiple property. Contents: Flag indicating that this element must allow multiple file selection. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as multiple="multiple". - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3539 - Return the value of the readonly property. Contents: Flag indicating that this component will prohibit changes by the user. The element may receive focus unless it has also been disabled. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as readonly="readonly". - jakarta.faces.component.html - HtmlInputFile - - - - - JSF:JAVADOC:3540 - - jakarta.faces.component.html - HtmlInputFile - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:3541 - Set the value of the accept property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3542 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3543 - Set the value of the alt property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3544 - Set the value of the autocomplete property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3545 - Set the value of the dir property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3546 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlInputFile - - - boolean - - - - - - JSF:JAVADOC:3547 - Set the value of the label property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3548 - Set the value of the lang property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3549 - Set the value of the maxlength property. - jakarta.faces.component.html - HtmlInputFile - - - int - - - - - - JSF:JAVADOC:3550 - Set the value of the multiple property. - jakarta.faces.component.html - HtmlInputFile - - - boolean - - - - - - JSF:JAVADOC:3551 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3552 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3553 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3554 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3555 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3556 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3557 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3558 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3559 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3560 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3561 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3562 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3563 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3564 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3565 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlInputFile - - - boolean - - - - - - JSF:JAVADOC:3566 - Set the value of the role property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3567 - Set the value of the size property. - jakarta.faces.component.html - HtmlInputFile - - - int - - - - - - JSF:JAVADOC:3568 - Set the value of the style property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3569 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3570 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3571 - Set the value of the title property. - jakarta.faces.component.html - HtmlInputFile - - - java.lang.String - - - - - - JSF:JAVADOC:3572 - - jakarta.faces.component.html - HtmlInputFile.PropertyKeys - - - - - JSF:JAVADOC:3573 - - jakarta.faces.component.html - HtmlInputFile.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3574 - - jakarta.faces.component.html - HtmlInputFile.PropertyKeys - - - - - JSF:JAVADOC:3575 - - jakarta.faces.component.html - HtmlInputHidden - - - - - JSF:JAVADOC:3576 - - jakarta.faces.component.html - HtmlInputHidden.PropertyKeys - - - - - JSF:JAVADOC:3577 - - jakarta.faces.component.html - HtmlInputHidden.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3578 - - jakarta.faces.component.html - HtmlInputHidden.PropertyKeys - - - - - JSF:JAVADOC:3579 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3580 - Return the value of the alt property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3581 - Return the value of the autocomplete property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3582 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3583 - Return the value of the dir property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3584 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3585 - Return the value of the label property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3586 - Return the value of the lang property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3587 - Return the value of the maxlength property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3588 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3589 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3590 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3591 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3592 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3593 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3594 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3595 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3596 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3597 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3598 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3599 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3600 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3601 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3602 - Return the value of the role property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3603 - Return the value of the size property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3604 - Return the value of the style property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3605 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3606 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3607 - Return the value of the title property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3608 - - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3609 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3610 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3611 - Return the value of the redisplay property. - jakarta.faces.component.html - HtmlInputSecret - - - - - JSF:JAVADOC:3612 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3613 - Set the value of the alt property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3614 - Set the value of the autocomplete property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3615 - Set the value of the dir property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3616 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlInputSecret - - - boolean - - - - - - JSF:JAVADOC:3617 - Set the value of the label property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3618 - Set the value of the lang property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3619 - Set the value of the maxlength property. - jakarta.faces.component.html - HtmlInputSecret - - - int - - - - - - JSF:JAVADOC:3620 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3621 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3622 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3623 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3624 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3625 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3626 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3627 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3628 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3629 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3630 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3631 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3632 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3633 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3634 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlInputSecret - - - boolean - - - - - - JSF:JAVADOC:3635 - Set the value of the redisplay property. - jakarta.faces.component.html - HtmlInputSecret - - - boolean - - - - - - JSF:JAVADOC:3636 - Set the value of the role property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3637 - Set the value of the size property. - jakarta.faces.component.html - HtmlInputSecret - - - int - - - - - - JSF:JAVADOC:3638 - Set the value of the style property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3639 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3640 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3641 - Set the value of the title property. - jakarta.faces.component.html - HtmlInputSecret - - - java.lang.String - - - - - - JSF:JAVADOC:3642 - - jakarta.faces.component.html - HtmlInputSecret.PropertyKeys - - - - - JSF:JAVADOC:3643 - - jakarta.faces.component.html - HtmlInputSecret.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3644 - - jakarta.faces.component.html - HtmlInputSecret.PropertyKeys - - - - - JSF:JAVADOC:3645 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3646 - Return the value of the alt property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3647 - Return the value of the autocomplete property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3648 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3649 - Return the value of the dir property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3650 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3651 - Return the value of the label property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3652 - Return the value of the lang property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3653 - Return the value of the maxlength property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3654 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3655 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3656 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3657 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3658 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3659 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3660 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3661 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3662 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3663 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3664 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3665 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3666 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3667 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3668 - Return the value of the role property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3669 - Return the value of the size property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3670 - Return the value of the style property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3671 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3672 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3673 - Return the value of the title property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3674 - Return the value of the type property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3675 - - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3676 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3677 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlInputText - - - - - JSF:JAVADOC:3678 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3679 - Set the value of the alt property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3680 - Set the value of the autocomplete property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3681 - Set the value of the dir property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3682 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlInputText - - - boolean - - - - - - JSF:JAVADOC:3683 - Set the value of the label property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3684 - Set the value of the lang property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3685 - Set the value of the maxlength property. - jakarta.faces.component.html - HtmlInputText - - - int - - - - - - JSF:JAVADOC:3686 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3687 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3688 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3689 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3690 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3691 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3692 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3693 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3694 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3695 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3696 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3697 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3698 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3699 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3700 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlInputText - - - boolean - - - - - - JSF:JAVADOC:3701 - Set the value of the role property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3702 - Set the value of the size property. - jakarta.faces.component.html - HtmlInputText - - - int - - - - - - JSF:JAVADOC:3703 - Set the value of the style property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3704 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3705 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3706 - Set the value of the title property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3707 - Set the value of the type property. - jakarta.faces.component.html - HtmlInputText - - - java.lang.String - - - - - - JSF:JAVADOC:3708 - - jakarta.faces.component.html - HtmlInputText.PropertyKeys - - - - - JSF:JAVADOC:3709 - - jakarta.faces.component.html - HtmlInputText.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3710 - - jakarta.faces.component.html - HtmlInputText.PropertyKeys - - - - - JSF:JAVADOC:3711 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3712 - Return the value of the cols property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3713 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3714 - Return the value of the dir property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3715 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3716 - Return the value of the label property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3717 - Return the value of the lang property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3718 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3719 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3720 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3721 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3722 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3723 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3724 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3725 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3726 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3727 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3728 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3729 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3730 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3731 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3732 - Return the value of the role property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3733 - Return the value of the rows property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3734 - Return the value of the style property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3735 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3736 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3737 - Return the value of the title property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3738 - - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3739 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3740 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlInputTextarea - - - - - JSF:JAVADOC:3741 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3742 - Set the value of the cols property. - jakarta.faces.component.html - HtmlInputTextarea - - - int - - - - - - JSF:JAVADOC:3743 - Set the value of the dir property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3744 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlInputTextarea - - - boolean - - - - - - JSF:JAVADOC:3745 - Set the value of the label property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3746 - Set the value of the lang property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3747 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3748 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3749 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3750 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3751 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3752 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3753 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3754 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3755 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3756 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3757 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3758 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3759 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3760 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3761 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlInputTextarea - - - boolean - - - - - - JSF:JAVADOC:3762 - Set the value of the role property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3763 - Set the value of the rows property. - jakarta.faces.component.html - HtmlInputTextarea - - - int - - - - - - JSF:JAVADOC:3764 - Set the value of the style property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3765 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3766 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3767 - Set the value of the title property. - jakarta.faces.component.html - HtmlInputTextarea - - - java.lang.String - - - - - - JSF:JAVADOC:3768 - - jakarta.faces.component.html - HtmlInputTextarea.PropertyKeys - - - - - JSF:JAVADOC:3769 - - jakarta.faces.component.html - HtmlInputTextarea.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3770 - - jakarta.faces.component.html - HtmlInputTextarea.PropertyKeys - - - - - JSF:JAVADOC:3771 - Return the value of the dir property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3772 - Return the value of the errorClass property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3773 - Return the value of the errorStyle property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3774 - Return the value of the fatalClass property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3775 - Return the value of the fatalStyle property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3776 - Return the value of the infoClass property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3777 - Return the value of the infoStyle property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3778 - Return the value of the lang property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3779 - Return the value of the role property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3780 - Return the value of the style property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3781 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3782 - Return the value of the title property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3783 - Return the value of the warnClass property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3784 - Return the value of the warnStyle property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3785 - - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3786 - Return the value of the tooltip property. - jakarta.faces.component.html - HtmlMessage - - - - - JSF:JAVADOC:3787 - Set the value of the dir property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3788 - Set the value of the errorClass property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3789 - Set the value of the errorStyle property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3790 - Set the value of the fatalClass property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3791 - Set the value of the fatalStyle property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3792 - Set the value of the infoClass property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3793 - Set the value of the infoStyle property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3794 - Set the value of the lang property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3795 - Set the value of the role property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3796 - Set the value of the style property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3797 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3798 - Set the value of the title property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3799 - Set the value of the tooltip property. - jakarta.faces.component.html - HtmlMessage - - - boolean - - - - - - JSF:JAVADOC:3800 - Set the value of the warnClass property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3801 - Set the value of the warnStyle property. - jakarta.faces.component.html - HtmlMessage - - - java.lang.String - - - - - - JSF:JAVADOC:3802 - - jakarta.faces.component.html - HtmlMessage.PropertyKeys - - - - - JSF:JAVADOC:3803 - - jakarta.faces.component.html - HtmlMessage.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3804 - - jakarta.faces.component.html - HtmlMessage.PropertyKeys - - - - - JSF:JAVADOC:3805 - Return the value of the dir property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3806 - Return the value of the errorClass property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3807 - Return the value of the errorStyle property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3808 - Return the value of the fatalClass property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3809 - Return the value of the fatalStyle property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3810 - Return the value of the infoClass property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3811 - Return the value of the infoStyle property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3812 - Return the value of the lang property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3813 - Return the value of the layout property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3814 - Return the value of the role property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3815 - Return the value of the style property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3816 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3817 - Return the value of the title property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3818 - Return the value of the warnClass property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3819 - Return the value of the warnStyle property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3820 - - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3821 - Return the value of the tooltip property. - jakarta.faces.component.html - HtmlMessages - - - - - JSF:JAVADOC:3822 - Set the value of the dir property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3823 - Set the value of the errorClass property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3824 - Set the value of the errorStyle property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3825 - Set the value of the fatalClass property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3826 - Set the value of the fatalStyle property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3827 - Set the value of the infoClass property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3828 - Set the value of the infoStyle property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3829 - Set the value of the lang property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3830 - Set the value of the layout property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3831 - Set the value of the role property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3832 - Set the value of the style property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3833 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3834 - Set the value of the title property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3835 - Set the value of the tooltip property. - jakarta.faces.component.html - HtmlMessages - - - boolean - - - - - - JSF:JAVADOC:3836 - Set the value of the warnClass property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3837 - Set the value of the warnStyle property. - jakarta.faces.component.html - HtmlMessages - - - java.lang.String - - - - - - JSF:JAVADOC:3838 - - jakarta.faces.component.html - HtmlMessages.PropertyKeys - - - - - JSF:JAVADOC:3839 - - jakarta.faces.component.html - HtmlMessages.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3840 - - jakarta.faces.component.html - HtmlMessages.PropertyKeys - - - - - JSF:JAVADOC:3841 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3842 - Return the value of the alt property. This attribute is ignored when the image attribute is not specified. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3843 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3844 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3845 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3846 - Return the value of the image property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3847 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3848 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3849 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3850 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3851 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3852 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3853 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3854 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3855 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3856 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3857 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3858 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3859 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3860 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3861 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3862 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3863 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3864 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3865 - - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3866 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - - - JSF:JAVADOC:3867 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3868 - Set the value of the alt property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3869 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3870 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - boolean - - - - - - JSF:JAVADOC:3871 - Set the value of the image property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3872 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3873 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3874 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3875 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3876 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3877 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3878 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3879 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3880 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3881 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3882 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3883 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3884 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3885 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3886 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3887 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3888 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3889 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutcomeTargetButton - - - java.lang.String - - - - - - JSF:JAVADOC:3890 - - jakarta.faces.component.html - HtmlOutcomeTargetButton.PropertyKeys - - - - - JSF:JAVADOC:3891 - - jakarta.faces.component.html - HtmlOutcomeTargetButton.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3892 - - jakarta.faces.component.html - HtmlOutcomeTargetButton.PropertyKeys - - - - - JSF:JAVADOC:3893 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3894 - Return the value of the charset property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3895 - Return the value of the coords property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3896 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3897 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3898 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3899 - Return the value of the hreflang property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3900 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3901 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3902 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3903 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3904 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3905 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3906 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3907 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3908 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3909 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3910 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3911 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3912 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3913 - Return the value of the rel property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3914 - Return the value of the rev property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3915 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3916 - Return the value of the shape property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3917 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3918 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3919 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3920 - Return the value of the target property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3921 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3922 - Return the value of the type property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3923 - - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3924 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - - - JSF:JAVADOC:3925 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3926 - Set the value of the charset property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3927 - Set the value of the coords property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3928 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3929 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - boolean - - - - - - JSF:JAVADOC:3930 - Set the value of the hreflang property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3931 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3932 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3933 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3934 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3935 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3936 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3937 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3938 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3939 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3940 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3941 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3942 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3943 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3944 - Set the value of the rel property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3945 - Set the value of the rev property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3946 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3947 - Set the value of the shape property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3948 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3949 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3950 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3951 - Set the value of the target property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3952 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3953 - Set the value of the type property. - jakarta.faces.component.html - HtmlOutcomeTargetLink - - - java.lang.String - - - - - - JSF:JAVADOC:3954 - - jakarta.faces.component.html - HtmlOutcomeTargetLink.PropertyKeys - - - - - JSF:JAVADOC:3955 - - jakarta.faces.component.html - HtmlOutcomeTargetLink.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3956 - - jakarta.faces.component.html - HtmlOutcomeTargetLink.PropertyKeys - - - - - JSF:JAVADOC:3957 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3958 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3959 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3960 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3961 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3962 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3963 - - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3964 - Return the value of the escape property. - jakarta.faces.component.html - HtmlOutputFormat - - - - - JSF:JAVADOC:3965 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3966 - Set the value of the escape property. - jakarta.faces.component.html - HtmlOutputFormat - - - boolean - - - - - - JSF:JAVADOC:3967 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3968 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3969 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3970 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3971 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutputFormat - - - java.lang.String - - - - - - JSF:JAVADOC:3972 - - jakarta.faces.component.html - HtmlOutputFormat.PropertyKeys - - - - - JSF:JAVADOC:3973 - - jakarta.faces.component.html - HtmlOutputFormat.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:3974 - - jakarta.faces.component.html - HtmlOutputFormat.PropertyKeys - - - - - JSF:JAVADOC:3975 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3976 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3977 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3978 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3979 - Return the value of the for property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3980 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3981 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3982 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3983 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3984 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3985 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3986 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3987 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3988 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3989 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3990 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3991 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3992 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3993 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3994 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3995 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3996 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3997 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3998 - - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:3999 - Return the value of the escape property. - jakarta.faces.component.html - HtmlOutputLabel - - - - - JSF:JAVADOC:4000 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4001 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4002 - Set the value of the escape property. - jakarta.faces.component.html - HtmlOutputLabel - - - boolean - - - - - - JSF:JAVADOC:4003 - Set the value of the for property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4004 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4005 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4006 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4007 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4008 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4009 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4010 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4011 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4012 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4013 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4014 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4015 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4016 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4017 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4018 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4019 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4020 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4021 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutputLabel - - - java.lang.String - - - - - - JSF:JAVADOC:4022 - - jakarta.faces.component.html - HtmlOutputLabel.PropertyKeys - - - - - JSF:JAVADOC:4023 - - jakarta.faces.component.html - HtmlOutputLabel.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4024 - - jakarta.faces.component.html - HtmlOutputLabel.PropertyKeys - - - - - JSF:JAVADOC:4025 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4026 - Return the value of the charset property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4027 - Return the value of the coords property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4028 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4029 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4030 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4031 - Return the value of the fragment property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4032 - Return the value of the hreflang property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4033 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4034 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4035 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4036 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4037 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4038 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4039 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4040 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4041 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4042 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4043 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4044 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4045 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4046 - Return the value of the rel property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4047 - Return the value of the rev property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4048 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4049 - Return the value of the shape property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4050 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4051 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4052 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4053 - Return the value of the target property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4054 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4055 - Return the value of the type property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4056 - - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4057 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlOutputLink - - - - - JSF:JAVADOC:4058 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4059 - Set the value of the charset property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4060 - Set the value of the coords property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4061 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4062 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlOutputLink - - - boolean - - - - - - JSF:JAVADOC:4063 - Set the value of the fragment property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4064 - Set the value of the hreflang property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4065 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4066 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4067 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4068 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4069 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4070 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4071 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4072 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4073 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4074 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4075 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4076 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4077 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4078 - Set the value of the rel property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4079 - Set the value of the rev property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4080 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4081 - Set the value of the shape property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4082 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4083 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4084 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4085 - Set the value of the target property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4086 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4087 - Set the value of the type property. - jakarta.faces.component.html - HtmlOutputLink - - - java.lang.String - - - - - - JSF:JAVADOC:4088 - - jakarta.faces.component.html - HtmlOutputLink.PropertyKeys - - - - - JSF:JAVADOC:4089 - - jakarta.faces.component.html - HtmlOutputLink.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4090 - - jakarta.faces.component.html - HtmlOutputLink.PropertyKeys - - - - - JSF:JAVADOC:4091 - Return the value of the dir property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4092 - Return the value of the lang property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4093 - Return the value of the role property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4094 - Return the value of the style property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4095 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4096 - Return the value of the title property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4097 - - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4098 - Return the value of the escape property. - jakarta.faces.component.html - HtmlOutputText - - - - - JSF:JAVADOC:4099 - Set the value of the dir property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4100 - Set the value of the escape property. - jakarta.faces.component.html - HtmlOutputText - - - boolean - - - - - - JSF:JAVADOC:4101 - Set the value of the lang property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4102 - Set the value of the role property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4103 - Set the value of the style property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4104 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4105 - Set the value of the title property. - jakarta.faces.component.html - HtmlOutputText - - - java.lang.String - - - - - - JSF:JAVADOC:4106 - - jakarta.faces.component.html - HtmlOutputText.PropertyKeys - - - - - JSF:JAVADOC:4107 - - jakarta.faces.component.html - HtmlOutputText.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4108 - - jakarta.faces.component.html - HtmlOutputText.PropertyKeys - - - - - JSF:JAVADOC:4109 - Return the value of the bgcolor property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4110 - Return the value of the bodyrows property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4111 - Return the value of the border property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4112 - Return the value of the captionClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4113 - Return the value of the captionStyle property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4114 - Return the value of the cellpadding property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4115 - Return the value of the cellspacing property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4116 - Return the value of the columnClasses property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4117 - Return the value of the columns property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4118 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4119 - Return the value of the dir property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4120 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4121 - Return the value of the footerClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4122 - Return the value of the frame property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4123 - Return the value of the headerClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4124 - Return the value of the lang property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4125 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4126 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4127 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4128 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4129 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4130 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4131 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4132 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4133 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4134 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4135 - Return the value of the role property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4136 - Return the value of the rowClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4137 - Return the value of the rowClasses property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4138 - Return the value of the rules property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4139 - Return the value of the style property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4140 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4141 - Return the value of the summary property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4142 - Return the value of the title property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4143 - Return the value of the width property. - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4144 - - jakarta.faces.component.html - HtmlPanelGrid - - - - - JSF:JAVADOC:4145 - Set the value of the bgcolor property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4146 - Set the value of the bodyrows property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4147 - Set the value of the border property. - jakarta.faces.component.html - HtmlPanelGrid - - - int - - - - - - JSF:JAVADOC:4148 - Set the value of the captionClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4149 - Set the value of the captionStyle property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4150 - Set the value of the cellpadding property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4151 - Set the value of the cellspacing property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4152 - Set the value of the columnClasses property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4153 - Set the value of the columns property. - jakarta.faces.component.html - HtmlPanelGrid - - - int - - - - - - JSF:JAVADOC:4154 - Set the value of the dir property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4155 - Set the value of the footerClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4156 - Set the value of the frame property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4157 - Set the value of the headerClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4158 - Set the value of the lang property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4159 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4160 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4161 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4162 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4163 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4164 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4165 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4166 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4167 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4168 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4169 - Set the value of the role property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4170 - Set the value of the rowClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4171 - Set the value of the rowClasses property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4172 - Set the value of the rules property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4173 - Set the value of the style property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4174 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4175 - Set the value of the summary property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4176 - Set the value of the title property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4177 - Set the value of the width property. - jakarta.faces.component.html - HtmlPanelGrid - - - java.lang.String - - - - - - JSF:JAVADOC:4178 - - jakarta.faces.component.html - HtmlPanelGrid.PropertyKeys - - - - - JSF:JAVADOC:4179 - - jakarta.faces.component.html - HtmlPanelGrid.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4180 - - jakarta.faces.component.html - HtmlPanelGrid.PropertyKeys - - - - - JSF:JAVADOC:4181 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4182 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4183 - Return the value of the layout property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4184 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4185 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4186 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4187 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4188 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4189 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4190 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4191 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4192 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4193 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4194 - Return the value of the style property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4195 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4196 - - jakarta.faces.component.html - HtmlPanelGroup - - - - - JSF:JAVADOC:4197 - Set the value of the layout property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4198 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4199 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4200 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4201 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4202 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4203 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4204 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4205 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4206 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4207 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4208 - Set the value of the style property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4209 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlPanelGroup - - - java.lang.String - - - - - - JSF:JAVADOC:4210 - - jakarta.faces.component.html - HtmlPanelGroup.PropertyKeys - - - - - JSF:JAVADOC:4211 - - jakarta.faces.component.html - HtmlPanelGroup.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4212 - - jakarta.faces.component.html - HtmlPanelGroup.PropertyKeys - - - - - JSF:JAVADOC:4213 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4214 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4215 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4216 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4217 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4218 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4219 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4220 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4221 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4222 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4223 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4224 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4225 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4226 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4227 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4228 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4229 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4230 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4231 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4232 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4233 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4234 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4235 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4236 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4237 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4238 - - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4239 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4240 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - - - JSF:JAVADOC:4241 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4242 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4243 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - boolean - - - - - - JSF:JAVADOC:4244 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4245 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4246 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4247 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4248 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4249 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4250 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4251 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4252 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4253 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4254 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4255 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4256 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4257 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4258 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4259 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4260 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - boolean - - - - - - JSF:JAVADOC:4261 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4262 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4263 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4264 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4265 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectBooleanCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4266 - - jakarta.faces.component.html - HtmlSelectBooleanCheckbox.PropertyKeys - - - - - JSF:JAVADOC:4267 - - jakarta.faces.component.html - HtmlSelectBooleanCheckbox.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4268 - - jakarta.faces.component.html - HtmlSelectBooleanCheckbox.PropertyKeys - - - - - JSF:JAVADOC:4269 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4270 - Return the value of the border property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4271 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4272 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4273 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4274 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4275 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4276 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4277 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4278 - Return the value of the layout property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4279 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4280 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4281 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4282 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4283 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4284 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4285 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4286 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4287 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4288 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4289 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4290 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4291 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4292 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4293 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4294 - Return the value of the selectedClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4295 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4296 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4297 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4298 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4299 - Return the value of the unselectedClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4300 - - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4301 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4302 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - - - JSF:JAVADOC:4303 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4304 - Set the value of the border property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - int - - - - - - JSF:JAVADOC:4305 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4306 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - boolean - - - - - - JSF:JAVADOC:4307 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4308 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4309 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4310 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4311 - Set the value of the layout property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4312 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4313 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4314 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4315 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4316 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4317 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4318 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4319 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4320 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4321 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4322 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4323 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4324 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4325 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4326 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - boolean - - - - - - JSF:JAVADOC:4327 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4328 - Set the value of the selectedClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4329 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4330 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4331 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4332 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4333 - Set the value of the unselectedClass property. - jakarta.faces.component.html - HtmlSelectManyCheckbox - - - java.lang.String - - - - - - JSF:JAVADOC:4334 - - jakarta.faces.component.html - HtmlSelectManyCheckbox.PropertyKeys - - - - - JSF:JAVADOC:4335 - - jakarta.faces.component.html - HtmlSelectManyCheckbox.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4336 - - jakarta.faces.component.html - HtmlSelectManyCheckbox.PropertyKeys - - - - - JSF:JAVADOC:4337 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4338 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4339 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4340 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4341 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4342 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4343 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4344 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4345 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4346 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4347 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4348 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4349 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4350 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4351 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4352 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4353 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4354 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4355 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4356 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4357 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4358 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4359 - Return the value of the size property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4360 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4361 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4362 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4363 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4364 - - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4365 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4366 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - - - JSF:JAVADOC:4367 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4368 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4369 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - boolean - - - - - - JSF:JAVADOC:4370 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4371 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4372 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4373 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4374 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4375 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4376 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4377 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4378 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4379 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4380 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4381 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4382 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4383 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4384 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4385 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4386 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4387 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - boolean - - - - - - JSF:JAVADOC:4388 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4389 - Set the value of the size property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - int - - - - - - JSF:JAVADOC:4390 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4391 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4392 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4393 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectManyListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4394 - - jakarta.faces.component.html - HtmlSelectManyListbox.PropertyKeys - - - - - JSF:JAVADOC:4395 - - jakarta.faces.component.html - HtmlSelectManyListbox.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4396 - - jakarta.faces.component.html - HtmlSelectManyListbox.PropertyKeys - - - - - JSF:JAVADOC:4397 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4398 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4399 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4400 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4401 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4402 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4403 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4404 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4405 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4406 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4407 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4408 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4409 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4410 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4411 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4412 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4413 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4414 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4415 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4416 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4417 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4418 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4419 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4420 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4421 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4422 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4423 - - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4424 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4425 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - - - JSF:JAVADOC:4426 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4427 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4428 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - boolean - - - - - - JSF:JAVADOC:4429 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4430 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4431 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4432 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4433 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4434 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4435 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4436 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4437 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4438 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4439 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4440 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4441 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4442 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4443 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4444 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4445 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4446 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - boolean - - - - - - JSF:JAVADOC:4447 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4448 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4449 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4450 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4451 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectManyMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4452 - - jakarta.faces.component.html - HtmlSelectManyMenu.PropertyKeys - - - - - JSF:JAVADOC:4453 - - jakarta.faces.component.html - HtmlSelectManyMenu.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4454 - - jakarta.faces.component.html - HtmlSelectManyMenu.PropertyKeys - - - - - JSF:JAVADOC:4455 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4456 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4457 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4458 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4459 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4460 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4461 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4462 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4463 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4464 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4465 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4466 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4467 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4468 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4469 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4470 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4471 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4472 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4473 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4474 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4475 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4476 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4477 - Return the value of the size property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4478 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4479 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4480 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4481 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4482 - - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4483 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4484 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - - - JSF:JAVADOC:4485 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4486 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4487 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - boolean - - - - - - JSF:JAVADOC:4488 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4489 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4490 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4491 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4492 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4493 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4494 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4495 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4496 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4497 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4498 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4499 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4500 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4501 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4502 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4503 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4504 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4505 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - boolean - - - - - - JSF:JAVADOC:4506 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4507 - Set the value of the size property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - int - - - - - - JSF:JAVADOC:4508 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4509 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4510 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4511 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectOneListbox - - - java.lang.String - - - - - - JSF:JAVADOC:4512 - - jakarta.faces.component.html - HtmlSelectOneListbox.PropertyKeys - - - - - JSF:JAVADOC:4513 - - jakarta.faces.component.html - HtmlSelectOneListbox.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4514 - - jakarta.faces.component.html - HtmlSelectOneListbox.PropertyKeys - - - - - JSF:JAVADOC:4515 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4516 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4517 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4518 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4519 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4520 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4521 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4522 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4523 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4524 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4525 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4526 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4527 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4528 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4529 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4530 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4531 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4532 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4533 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4534 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4535 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4536 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4537 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4538 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4539 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4540 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4541 - - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4542 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4543 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - - - JSF:JAVADOC:4544 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4545 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4546 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - boolean - - - - - - JSF:JAVADOC:4547 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4548 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4549 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4550 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4551 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4552 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4553 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4554 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4555 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4556 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4557 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4558 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4559 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4560 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4561 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4562 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4563 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4564 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - boolean - - - - - - JSF:JAVADOC:4565 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4566 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4567 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4568 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4569 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectOneMenu - - - java.lang.String - - - - - - JSF:JAVADOC:4570 - - jakarta.faces.component.html - HtmlSelectOneMenu.PropertyKeys - - - - - JSF:JAVADOC:4571 - - jakarta.faces.component.html - HtmlSelectOneMenu.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4572 - - jakarta.faces.component.html - HtmlSelectOneMenu.PropertyKeys - - - - - JSF:JAVADOC:4573 - Return the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4574 - Return the value of the border property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4575 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getDefaultEventName. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must provide an implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4576 - Return the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4577 - Return the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4578 - Return the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4579 - This is a default implementation of jakarta.faces.component.behavior.ClientBehaviorHolder#getEventNames. UIComponent does not implement the jakarta.faces.component.behavior.ClientBehaviorHolder interface, but provides default implementations for the methods defined by jakarta.faces.component.behavior.ClientBehaviorHolder to simplify subclass implementations. Subclasses that wish to support the jakarta.faces.component.behavior.ClientBehaviorHolder contract must declare that the subclass implements jakarta.faces.component.behavior.ClientBehaviorHolder, and must override this method to return a non-Empty Collection of the client event names that the component supports. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4580 - Return the value of the group property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4581 - Return the value of the label property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4582 - Return the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4583 - Return the value of the layout property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4584 - Return the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4585 - Return the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4586 - Return the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4587 - Return the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4588 - Return the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4589 - Return the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4590 - Return the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4591 - Return the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4592 - Return the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4593 - Return the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4594 - Return the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4595 - Return the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4596 - Return the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4597 - Return the value of the onselect property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4598 - Return the value of the role property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4599 - Return the value of the style property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4600 - Return the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4601 - Return the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4602 - Return the value of the title property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4603 - - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4604 - Return the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4605 - Return the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - - - JSF:JAVADOC:4606 - Set the value of the accesskey property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4607 - Set the value of the border property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - int - - - - - - JSF:JAVADOC:4608 - Set the value of the dir property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4609 - Set the value of the disabled property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - boolean - - - - - - JSF:JAVADOC:4610 - Set the value of the disabledClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4611 - Set the value of the enabledClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4612 - Set the value of the group property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4613 - Set the value of the label property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4614 - Set the value of the lang property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4615 - Set the value of the layout property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4616 - Set the value of the onblur property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4617 - Set the value of the onchange property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4618 - Set the value of the onclick property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4619 - Set the value of the ondblclick property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4620 - Set the value of the onfocus property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4621 - Set the value of the onkeydown property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4622 - Set the value of the onkeypress property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4623 - Set the value of the onkeyup property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4624 - Set the value of the onmousedown property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4625 - Set the value of the onmousemove property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4626 - Set the value of the onmouseout property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4627 - Set the value of the onmouseover property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4628 - Set the value of the onmouseup property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4629 - Set the value of the onselect property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4630 - Set the value of the readonly property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - boolean - - - - - - JSF:JAVADOC:4631 - Set the value of the role property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4632 - Set the value of the style property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4633 - Set the value of the styleClass property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4634 - Set the value of the tabindex property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4635 - Set the value of the title property. - jakarta.faces.component.html - HtmlSelectOneRadio - - - java.lang.String - - - - - - JSF:JAVADOC:4636 - - jakarta.faces.component.html - HtmlSelectOneRadio.PropertyKeys - - - - - JSF:JAVADOC:4637 - - jakarta.faces.component.html - HtmlSelectOneRadio.PropertyKeys - - - java.lang.String - - - - - - JSF:JAVADOC:4638 - - jakarta.faces.component.html - HtmlSelectOneRadio.PropertyKeys - - - - - JSF:JAVADOC:4639 - Construct a new exception with no detail message or root cause. - jakarta.faces.component.search - ComponentNotFoundException - - - - - JSF:JAVADOC:4640 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.component.search - ComponentNotFoundException - - - java.lang.String - - - - - - JSF:JAVADOC:4641 - Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString() - jakarta.faces.component.search - ComponentNotFoundException - - - java.lang.Throwable - - - - - - JSF:JAVADOC:4642 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.component.search - ComponentNotFoundException - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:4643 - Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. This method can be used to obtain a SearchExpressionContext instance without any VisitHint or SearchExpressionHint. - jakarta.faces.component.search - SearchExpressionContext - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:4644 - Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. - jakarta.faces.component.search - SearchExpressionContext - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.Set - java.util.Set - - - - - - JSF:JAVADOC:4645 - Returns hints that influence the behavior of resolving the expression. - jakarta.faces.component.search - SearchExpressionContext - - - - - JSF:JAVADOC:4646 - Returns the FacesContext for the current request. - jakarta.faces.component.search - SearchExpressionContext - - - - - JSF:JAVADOC:4647 - Returns the source / base component from which we will start to perform our search. - jakarta.faces.component.search - SearchExpressionContext - - - - - JSF:JAVADOC:4648 - Returns hints that influence the behavior of the tree visit, if it's used by an SearchKeywordResolver implementation. - jakarta.faces.component.search - SearchExpressionContext - - - - - JSF:JAVADOC:4649 - - jakarta.faces.component.search - SearchExpressionContext - - - - - JSF:JAVADOC:4650 - Creates a SearchExpressionContext instance for use with the SearchExpressionHandler. - jakarta.faces.component.search - SearchExpressionContextFactory - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.Set - java.util.Set - - - - - - JSF:JAVADOC:4651 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.component.search - SearchExpressionContextFactory - - - - - JSF:JAVADOC:4652 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.component.search - SearchExpressionContextFactory - - - jakarta.faces.component.search.SearchExpressionContextFactory - - - - - - JSF:JAVADOC:4653 - Return the characters used to separate expressions in a series of expressions. The default implementation returns SearchExpressionHandler#EXPRESSION_SEPARATOR_CHARS. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4654 - Resolves multiple UIComponents for the given expression. For each resolved component, the ContextCallback will be invoked. This method is the most essential method in the API. It implements the algorithm which handles the recursion of the keywords and id's. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4655 - Resolves multiple UIComponents for the given expression. For each resolved component, the ContextCallback will be invoked. This method is the most essential method in the API. It implements the algorithm which handles the recursion of the keywords and id's. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - jakarta.faces.component.UIComponent - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4656 - Checks if the given expression is a "passtrough expression". A passthrough expression must only be a keyword. This keyword will not be resolved by the SearchKeywordResolver and will be returned untouched. The client is responsible to resolve it later. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4657 - Checks if the given expression is a valid expression. A expression is invalid if: No SearchKeywordResolver matches the requested keyword A keyword or id is placed after a leaf keyword (@none:@form) - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4658 - Resolves to a single clientId or passthrough expression for the given expression. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4659 - Resolves to a List with clientIds or passthrough expressions for the given expressions. The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one by one. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4660 - Resolves a single UIComponents for the given expression. If the component is resolved, the ContextCallback will be invoked. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4661 - Resolves multiple UIComponents for the given expression(s). The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one by one. For each resolved component, the ContextCallback will be invoked. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4662 - - jakarta.faces.component.search - SearchExpressionHandler - - - - - JSF:JAVADOC:4663 - Splits an string, based on #getExpressionSeperatorChars(jakarta.faces.context.FacesContext) with possible multiple expressions into an array. - jakarta.faces.component.search - SearchExpressionHandler - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:4664 - Return the characters used to separate expressions in a series of expressions. The default implementation returns SearchExpressionHandler#EXPRESSION_SEPARATOR_CHARS. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4665 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - - - JSF:JAVADOC:4666 - Resolves multiple UIComponents for the given expression. For each resolved component, the ContextCallback will be invoked. This method is the most essential method in the API. It implements the algorithm which handles the recursion of the keywords and id's. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4667 - Resolves multiple UIComponents for the given expression. For each resolved component, the ContextCallback will be invoked. This method is the most essential method in the API. It implements the algorithm which handles the recursion of the keywords and id's. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - jakarta.faces.component.UIComponent - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4668 - Checks if the given expression is a "passtrough expression". A passthrough expression must only be a keyword. This keyword will not be resolved by the SearchKeywordResolver and will be returned untouched. The client is responsible to resolve it later. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4669 - Checks if the given expression is a valid expression. A expression is invalid if: No SearchKeywordResolver matches the requested keyword A keyword or id is placed after a leaf keyword (@none:@form) - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4670 - Resolves to a single clientId or passthrough expression for the given expression. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4671 - Resolves to a List with clientIds or passthrough expressions for the given expressions. The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one by one. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4672 - Resolves a single UIComponents for the given expression. If the component is resolved, the ContextCallback will be invoked. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4673 - Resolves multiple UIComponents for the given expression(s). The expressions will be splitted by #splitExpressions(jakarta.faces.context.FacesContext, java.lang.String) and resolved one by one. For each resolved component, the ContextCallback will be invoked. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - jakarta.faces.component.ContextCallback - - - - - - JSF:JAVADOC:4674 - If this search expression handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.component.search.SearchExpressionHandler - - - - - - JSF:JAVADOC:4675 - Splits an string, based on #getExpressionSeperatorChars(jakarta.faces.context.FacesContext) with possible multiple expressions into an array. - jakarta.faces.component.search - SearchExpressionHandlerWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:4676 - - jakarta.faces.component.search - SearchExpressionHint - - - java.lang.String - - - - - - JSF:JAVADOC:4677 - - jakarta.faces.component.search - SearchExpressionHint - - - - - JSF:JAVADOC:4678 - Returns the ContextCallback for the current request. - jakarta.faces.component.search - SearchKeywordContext - - - - - JSF:JAVADOC:4679 - Returns the remaining expression for the current request. - jakarta.faces.component.search - SearchKeywordContext - - - - - JSF:JAVADOC:4680 - Returns the SearchExpressionContext for the current request. - jakarta.faces.component.search - SearchKeywordContext - - - - - JSF:JAVADOC:4681 - This method will be called by an implementation of SearchKeywordResolver#resolve with the resolved component for the keyword. - jakarta.faces.component.search - SearchKeywordContext - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:4682 - Returns if the keyword was resolved. - jakarta.faces.component.search - SearchKeywordContext - - - - - JSF:JAVADOC:4683 - Construct a new context with the given arguments. - jakarta.faces.component.search - SearchKeywordContext - - - jakarta.faces.component.search.SearchExpressionContext - jakarta.faces.component.ContextCallback - java.lang.String - - - - - - JSF:JAVADOC:4684 - Sets if the keyword was resolved. - jakarta.faces.component.search - SearchKeywordContext - - - boolean - - - - - - JSF:JAVADOC:4685 - A leaf keyword is a keyword that does not allow to be combined with keywords or id chains to the right. For example: @none:@parent. - jakarta.faces.component.search - SearchKeywordResolver - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4686 - A passthrough keyword is a keyword, that according to the context, does not require to be resolved on the server, and can be passed "unresolved" to the client. - jakarta.faces.component.search - SearchKeywordResolver - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4687 - Checks if the current instance of the SearchKeywordResolver is responsible for resolving the keyword. - jakarta.faces.component.search - SearchKeywordResolver - - - jakarta.faces.component.search.SearchExpressionContext - java.lang.String - - - - - - JSF:JAVADOC:4688 - Try to resolve one or multiple UIComponents based on the keyword and calls SearchKeywordContext#invokeContextCallback(jakarta.faces.component.UIComponent) for each resolved component. - jakarta.faces.component.search - SearchKeywordResolver - - - jakarta.faces.component.search.SearchKeywordContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:4689 - - jakarta.faces.component.search - SearchKeywordResolver - - - - - JSF:JAVADOC:4690 - This method is called during component tree visits by VisitContext#invokeVisitCallback VisitContext.invokeVisitCallback() to visit the specified component. At the point in time when this method is called, the argument target is guaranteed to be in the proper state with respect to its ancestors in the View. - jakarta.faces.component.visit - VisitCallback - - - jakarta.faces.component.visit.VisitContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:4691 - Returns a VisitContext instance that is initialized with the specified ids and hintsfor use with UIComponent#visitTree. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.context.FacesContext - java.util.Collection - java.util.Set - - - - - - JSF:JAVADOC:4692 - Creates a VisitContext instance for use with UIComponent#visitTree UIComponent.visitTree(). This method can be used to obtain a VisitContext instance when all components should be visited with the default visit hints. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4693 - Returns the FacesContext for the current request. - jakarta.faces.component.visit - VisitContext - - - - - JSF:JAVADOC:4694 - Returns hints that influence the behavior of the tree visit. Interested parties, such as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a particular hint is present by calling VisitContext.getHints().contains(), passing in one of the hints defined by VisitHint. - jakarta.faces.component.visit - VisitContext - - - - - JSF:JAVADOC:4695 - Returns the ids of the components to visit. In the case of a full tree visit, this method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a modifiable collection containing the client ids of the components that should be visited. - jakarta.faces.component.visit - VisitContext - - - - - JSF:JAVADOC:4696 - Given a jakarta.faces.component.NamingContainer component, returns the client ids of any components underneath the NamingContainer that should be visited. This method is called by NamingContainer visitTree() implementations to determine whether the NamingContainer contains components to be visited. In the case where no such components exist, the NamingContainer can short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating components such as UIData may be able to use the returned ids to determine which iterated states (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those rows that contain visit targets need to be traversed. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:4697 - Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - jakarta.faces.component.visit - VisitContext - - - jakarta.faces.component.UIComponent - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:4698 - - jakarta.faces.component.visit - VisitContext - - - - - JSF:JAVADOC:4699 - Return a new VisitContext instance. - jakarta.faces.component.visit - VisitContextFactory - - - jakarta.faces.context.FacesContext - java.util.Collection - java.util.Set - - - - - - JSF:JAVADOC:4700 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.component.visit - VisitContextFactory - - - - - JSF:JAVADOC:4701 - - jakarta.faces.component.visit - VisitContextFactory - - - - - JSF:JAVADOC:4702 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.component.visit - VisitContextFactory - - - jakarta.faces.component.visit.VisitContextFactory - - - - - - JSF:JAVADOC:4703 - Returns the FacesContext for the current request. - jakarta.faces.component.visit - VisitContextWrapper - - - - - JSF:JAVADOC:4704 - Returns hints that influence the behavior of the tree visit. Interested parties, such as UIComponent#visitTree UIComponent.visitTree() implementations, may check to see whether a particular hint is present by calling VisitContext.getHints().contains(), passing in one of the hints defined by VisitHint. - jakarta.faces.component.visit - VisitContextWrapper - - - - - JSF:JAVADOC:4705 - Returns the ids of the components to visit. In the case of a full tree visit, this method returns the ALL_IDS collection. Otherwise, if a partial visit is beign performed, returns a modifiable collection containing the client ids of the components that should be visited. - jakarta.faces.component.visit - VisitContextWrapper - - - - - JSF:JAVADOC:4706 - Given a jakarta.faces.component.NamingContainer component, returns the client ids of any components underneath the NamingContainer that should be visited. This method is called by NamingContainer visitTree() implementations to determine whether the NamingContainer contains components to be visited. In the case where no such components exist, the NamingContainer can short-circuit the tree visit and avoid descending into child subtrees. In addition, iterating components such as UIData may be able to use the returned ids to determine which iterated states (ie. rows) need to be visited. This allows the visit traversal to be contstrained such only those rows that contain visit targets need to be traversed. - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:4707 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.component.visit - VisitContextWrapper - - - - - JSF:JAVADOC:4708 - Called by UIComponent#visitTree UIComponent.visitTree() to visit a single component. - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.UIComponent - jakarta.faces.component.visit.VisitCallback - - - - - - JSF:JAVADOC:4709 - - jakarta.faces.component.visit - VisitContextWrapper - - - - - JSF:JAVADOC:4710 - If this visit context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.component.visit - VisitContextWrapper - - - jakarta.faces.component.visit.VisitContext - - - - - - JSF:JAVADOC:4711 - - jakarta.faces.component.visit - VisitHint - - - java.lang.String - - - - - - JSF:JAVADOC:4712 - - jakarta.faces.component.visit - VisitHint - - - - - JSF:JAVADOC:4713 - - jakarta.faces.component.visit - VisitResult - - - java.lang.String - - - - - - JSF:JAVADOC:4714 - - jakarta.faces.component.visit - VisitResult - - - - - JSF:JAVADOC:4715 - - jakarta.faces.context - ExceptionHandler - - - - - JSF:JAVADOC:4716 - Return the first ExceptionQueuedEvent handled by this handler. - jakarta.faces.context - ExceptionHandler - - - - - JSF:JAVADOC:4717 - The default implementation must return an Iterable over all ExceptionQueuedEvents that have been handled by the #handle method. - jakarta.faces.context - ExceptionHandler - - - - - JSF:JAVADOC:4718 - Unwrap the argument t until the unwrapping encounters an Object whose getClass() is not equal to FacesException.class or jakarta.el.ELException.class. If there is no root cause, null is returned. - jakarta.faces.context - ExceptionHandler - - - java.lang.Throwable - - - - - - JSF:JAVADOC:4719 - Return an Iterable over all ExceptionQueuedEvents that have not yet been handled by the #handle method. - jakarta.faces.context - ExceptionHandler - - - - - JSF:JAVADOC:4720 - Take action to handle the Exception instances residing inside the ExceptionQueuedEvent instances that have been queued by calls to Application().publishEvent(ExceptionQueuedEvent.class, eventContext). The requirements of the default implementation are detailed in section 6.2.1 "Default ExceptionHandler implementation" of the Jakarta Faces Specification Document. - jakarta.faces.context - ExceptionHandler - - - - - JSF:JAVADOC:4721 - if and only if a problem occurs while performing the algorithm to handle the Exception, not as a means of conveying a handled Exception itself. - jakarta.faces.context - ExceptionHandler - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:4722 - - jakarta.faces.context - ExceptionHandler - - - java.lang.Object - - - - - - JSF:JAVADOC:4723 - - jakarta.faces.context - ExceptionHandler - - - jakarta.faces.event.SystemEvent - - - - - - JSF:JAVADOC:4724 - - jakarta.faces.context - ExceptionHandler - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:4725 - - jakarta.faces.context - ExceptionHandlerFactory - - - - - JSF:JAVADOC:4726 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - ExceptionHandlerFactory - - - jakarta.faces.context.ExceptionHandlerFactory - - - - - - JSF:JAVADOC:4727 - Create and return a A new ExceptionHandler instance. The implementation must return an ExceptionHandler instance suitable for the environment. For example, in some cases it may be desirable for an ExceptionHandler to write error information to the response instead of throwing exceptions as in the case of Ajax applications. - jakarta.faces.context - ExceptionHandlerFactory - - - - - JSF:JAVADOC:4728 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.context - ExceptionHandlerFactory - - - - - JSF:JAVADOC:4729 - - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4730 - If this exception handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - ExceptionHandlerWrapper - - - jakarta.faces.context.ExceptionHandler - - - - - - JSF:JAVADOC:4731 - The default behavior of this method is to call ExceptionHandler#getHandledExceptionQueuedEvent() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4732 - The default behavior of this method is to call ExceptionHandler#getHandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4733 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#getRootCause(Throwable) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - java.lang.Throwable - - - - - - JSF:JAVADOC:4734 - The default behavior of this method is to call ExceptionHandler#getUnhandledExceptionQueuedEvents() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4735 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4736 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#handle() on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - - - JSF:JAVADOC:4737 - - jakarta.faces.context - ExceptionHandlerWrapper - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:4738 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#isListenerForSource(Object) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:4739 - The default behavior of this method is to call jakarta.faces.context.ExceptionHandler#processEvent(jakarta.faces.event.SystemEvent) on the wrapped ExceptionHandler object. - jakarta.faces.context - ExceptionHandlerWrapper - - - jakarta.faces.event.SystemEvent - - - - - - JSF:JAVADOC:4740 - - jakarta.faces.context - ExceptionHandlerWrapper - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:4741 - Adds the cookie represented by the arguments to the response. Jakarta Servlet: This must be accomplished by calling the jakarta.servlet.http.HttpServletResponse method addCookie(). The Cookie argument must be constructed by passing the name and value parameters. If the properties arugument is non-null and not empty, the Cookie instance must be initialized as described below. Cookie handling table Key in "values" Map (case sensitive) Expected type of value. Name of setter method on Cookie instance to be set with the value from the Map. comment String setComment domain String setDomain maxAge Integer setMaxAge secure Boolean setSecure path String setPath httpOnly Boolean setHttpOnly any other attribute (e.g. SameSite) String setAttribute The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4742 - Add the given name and value to the response header. Jakarta Servlet:This must be performed by calling the jakarta.servlet.http.HttpServletResponse addHeader method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:4743 - Dispatch a request to the specified resource to create output for this response. Jakarta Servlet: This must be accomplished by calling the jakarta.servlet.ServletContext method getRequestDispatcher(path), and calling the forward() method on the resulting object. If the call to getRequestDisatcher(path) returns null, send aServletResponse SC_NOT_FOUND error code. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4744 - if an input/output error occurs - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4745 - Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable action in the current application. Encoding the jakarta.faces.lifecycle.ClientWindow Call jakarta.faces.lifecycle.ClientWindow#isClientWindowRenderModeEnabled(jakarta.faces.context.FacesContext) . If the result is false take no further action and return the rewritten URL. If the result is true, call #getClientWindow(). If the result is non-null, call jakarta.faces.lifecycle.ClientWindow#getId() and append the id to the query string of the URL, making the necessary allowances for a pre-existing query string or no query-string. Call jakarta.faces.lifecycle.ClientWindow#getQueryURLParameters. If the result is non-null, for each parameter in the map, unconditionally add that parameter to the URL. The name of the query string parameter is given by the value of the constant jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletResponse method encodeURL(url). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4746 - The purpose of this method is to generate a query string from the collection of Parameter objects provided by the parameters argument and append that query string to the baseUrl. This method must be able to encode the parameters to a baseUrl that may or may not have existing query parameters. The parameter values should be encoded appropriately for the environment so that the resulting URL can be used as the target of a link (e.g., in an href attribute) in a Jakarta Faces response. It's possible for an ExternalContext implementation to override this method in any way that would make the URL bookmarkable in that environment. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4747 - Return the specified name, after prefixing it with a namespace that ensures that it will be unique within the context of a particular page. Jakarta Servlet: The input value must be returned unchanged. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4748 - Return the input URL, after performing any rewriting needed to ensure that it can be used in a partial page submission (ajax request) to correctly identify an addressable action in the current application. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. Jakarta Servlet:Returns the same encoded URL as the #encodeActionURL(String url) method. Portlet:Returns an encoded URL that, upon HTTP POST, will invoke the RESOURCE_PHASE of the portlet lifecycle. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4749 - The purpose of this method is to generate a query string from the collection of Parameter objects provided by the parameters argument and append that query string to the baseUrl. This method must be able to encode the parameters to a baseUrl that may or may not have existing query parameters. The parameter values should be encoded appropriately for the environment so that the resulting URL can be used as the target of a redirect. It's possible for an ExternalContext implementation to override this method to accomodate the definition of redirect for that environment. See #encodeActionURL(java.lang.String) for the required specification of how to encode the jakarta.faces.lifecycle.ClientWindow. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4750 - Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable resource in the current application. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletResponse method encodeURL(url). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4751 - Return the websocket URL, after performing any rewriting needed to ensure that it will correctly identify an addressable websocket in the current application. Jakarta Servlet: This must ensure that the input URL is prefixed with the correct websocket scheme, domain and port and then encoded by #encodeResourceURL(String). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4752 - - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4753 - Return the name of the container context for this application. Jakarta Servlet: Return the result of calling getContextPath() on the ServletContext instance for this application. It is valid to call this method during application startup or shutdown. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4754 - Return a mutable Map representing the application scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of application scope attributes. Particularly the clear(), remove(), put(), putAll(), and get() operations must take the appropriate action on the underlying data structure. It is valid to call this method during application startup or shutdown. If called at startup or shutdown time, this method returns a Map that is backed by the same container context instance (ServletContext or PortletContext) as the one returned by calling getApplicationMap() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the set of attributes available via the jakarta.servlet.ServletContext methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4755 - Return the name of the authentication scheme used to authenticate the current user, if any; otherwise, return null. For standard authentication schemes, the returned value will match one of the following constants: BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, or FORM_AUTH. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getAuthType(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4756 - Return the ClientWindow set in a preceding call to #setClientWindow, or null if no such call has been made. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4757 - Return the application environment object instance for the current appication. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this returns the same container context instance (ServletContext or PortletContext) as the one returned when calling getContext() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the current application's jakarta.servlet.ServletContext instance. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4758 - Return the name of the container context for this application. Return the result of calling getServletContextName() on the ServletContext instance for this application. It is valid to call this method during application startup or shutdown. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4759 - Return the threadsafe Flash for this application. The default implementation will throw UnsupportedOperationException. Compliant Jakarta Faces runtimes must provide an implementation of this method. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4760 - Return the value of the specified application initialization parameter (if any). Jakarta Servlet: This must be the result of the jakarta.servlet.ServletContext method getInitParameter(name). It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the actual container context to return the init parameter value. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4761 - Return an immutable Map whose keys are the set of application initialization parameter names configured for this application, and whose values are the corresponding parameter values. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns a Map that is backed by the same container context instance (ServletContext or PortletContext) as the one returned by calling getInitParameterMap() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This result must be as if it were synthesized by calling the jakarta.servlet.ServletContext method getInitParameterNames, and putting each configured parameter name/value pair into the result. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4762 - Returns the MIME type of the specified file or null if the MIME type is not known. The MIME type is determined by the container. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getMimeType() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getMimeType() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method getMimeType(). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4763 - Returns a String containing the real path for a given virtual path. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getRealPath() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getRealPath() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method getRealPath(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4764 - Return the login name of the user making the current request if any; otherwise, return null. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getRemoteUser(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4765 - Return the environment-specific object instance for the current request. Jakarta Servlet: This must be the current request's jakarta.servlet.http.HttpServletRequest instance. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4766 - Return the character encoding currently being used to interpret this request. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletRequest method getCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4767 - Return the result of calling getContentLenth() on the ServletRequest instance for this request. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4768 - Return the MIME Content-Type for this request. If not available, return null. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletRequest method getContentType(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4769 - Return the portion of the request URI that identifies the web application context for this request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getContextPath(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4770 - Return an immutable Map whose keys are the set of cookie names included in the current request, and whose values (of type jakarta.servlet.http.Cookie) are the first (or only) cookie for each cookie name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getCookies(), unless null was returned, in which case this must be a zero-length array. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4771 - Return an immutable Map whose keys are the set of request header names included in the current request, and whose values (of type String) are the first (or only) value for each header name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must be performed in a case insensitive manner. Jakarta Servlet: This must be the set of headers available via the jakarta.servlet.http.HttpServletRequest methods getHeader() and getHeaderNames(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4772 - Return an immutable Map whose keys are the set of request header names included in the current request, and whose values (of type String[]) are all of the value for each header name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. In addition, key comparisons must be performed in a case insensitive manner. Jakarta Servlet: This must be the set of headers available via the jakarta.servlet.http.HttpServletRequest methods getHeaders() and getHeaderNames(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4773 - Return the preferred Locale in which the client will accept content. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletRequest method getLocale(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4774 - Return an Iterator over the preferred Locales specified in the request, in decreasing order of preference. Jakarta Servlet: This must be an Iterator over the values returned by the jakarta.servlet.ServletRequest method getLocales(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4775 - Return a mutable Map representing the request scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of request scope attributes. Particularly the clear(), remove(), put(), putAll(), and get() operations must take the appropriate action on the underlying data structure. Jakarta Servlet: This must be the set of attributes available via the jakarta.servlet.ServletRequest methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4776 - Return an immutable Map whose keys are the set of request parameters names included in the current request, and whose values (of type String) are the first (or only) value for each parameter name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: This must be the set of parameters available via the jakarta.servlet.ServletRequest methods getParameter() and getParameterNames(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4777 - Return an Iterator over the names of all request parameters included in the current request. Jakarta Servlet: This must be an Iterator over the values returned by the jakarta.servlet.ServletRequest method getParameterNames(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4778 - Return an immutable Map whose keys are the set of request parameters names included in the current request, and whose values (of type String[]) are all of the values for each parameter name returned by the underlying request. The returned Map must implement the entire contract for an unmodifiable map as described in the JavaDocs for java.util.Map. Jakarta Servlet: This must be the set of parameters available via the jakarta.servlet.ServletRequest methods getParameterValues() and getParameterNames(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4779 - Return the extra path information (if any) included in the request URI; otherwise, return null. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getPathInfo(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4780 - Returns the name of the scheme used to make this request, for example, http, https, or ftp. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletRequest method getScheme(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4781 - Returns the host name of the server to which the request was sent. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletRequest method getServerName(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4782 - Returns the port number to which the request was sent. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletRequest method getServerPort(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4783 - Return the Jakarta Servlet path information (if any) included in the request URI; otherwise, return null. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getServletPath(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4784 - Return a URL for the application resource mapped to the specified path, if it exists; otherwise, return null. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResource() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResource() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method getResource(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4785 - if the specified path is not in the correct form - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.net.MalformedURLException - - - - - JSF:JAVADOC:4786 - Return an InputStream for an application resource mapped to the specified path, if it exists; otherwise, return null. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResourceAsStream() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResourceAsStream() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method getResourceAsStream(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4787 - Return the Set of resource paths for all application resources whose resource path starts with the specified argument. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method calls through to the getResourcePaths() method on the same container context instance (ServletContext or PortletContext) as the one used when calling getResourcePaths() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be the value returned by the jakarta.servlet.ServletContext method getResourcePaths(path). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4788 - Return the environment-specific object instance for the current response. Jakarta Servlet: This is the current request's jakarta.servlet.http.HttpServletResponse instance. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4789 - Return the buffer size for the current response. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse getBufferSize method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4790 - Returns the name of the character encoding (MIME charset) used for the body sent in this response. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletResponse method getCharacterEncoding(). Portlet: if this method is called during a lifecycle phase other than RENDER_RESPONSE, this must return null. If called during RENDER_RESPONSE, return the response encoding of the portlet response. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4791 - Return the MIME Content-Type for this response. If not available, return null. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletResponse method getContentType(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4792 - Returns an OutputStream suitable for writing binary data to the user-agent. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletResponse method getOutputStream(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4793 - any IO related exception. - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - - JSF:JAVADOC:4794 - Returns a Writer suitable for writing character data to the user-agent. Jakarta Servlet: This must return the value returned by the jakarta.servlet.ServletResponse#getWriter. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4795 - any IO related exception. - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - - JSF:JAVADOC:4796 - If the create parameter is true, create (if necessary) and return a session instance associated with the current request. If the create parameter is false return any existing session instance associated with the current request, or return null if there is no such session. Jakarta Servlet: This must return the result of calling getSession(create) on the underlying jakarta.servlet.http.HttpServletRequest instance. - jakarta.faces.context - ExternalContext - - - boolean - - - - - - JSF:JAVADOC:4797 - Return the id of the current session or the empty string if no session has been created and the create parameter is false. Jakarta Servlet: If create is true, obtain a reference to the HttpSession for the current request (creating the session if necessary) and return its id. If create is false, obtain a reference to the current session, if one exists, and return its id. If no session exists, return the empty string. - jakarta.faces.context - ExternalContext - - - boolean - - - - - - JSF:JAVADOC:4798 - Return a mutable Map representing the session scope attributes for the current application. The returned Map must implement the entire contract for a modifiable map as described in the JavaDocs for java.util.Map. Modifications made in the Map must cause the corresponding changes in the set of session scope attributes. Particularly the clear(), remove(), put(), and get() operations must take the appropriate action on the underlying data structure. Accessing attributes via this Map must cause the creation of a session associated with the current request, if such a session does not already exist. Jakarta Servlet: This must be the set of attributes available via the jakarta.servlet.http.HttpSession methods getAttribute(), getAttributeNames(), removeAttribute(), and setAttribute(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4799 - Returns the maximum time interval, in seconds, that the Jakarta Servlet container will keep this session open between client accesses. After this interval, the Jakarta Servlet container will invalidate the session. The maximum time interval can be set with the #setSessionMaxInactiveInterval method. A return value of zero or less indicates that the session will never timeout. Jakarta Servlet: This must return the result of calling getMaxInactiveInterval on the underlying jakarta.servlet.http.HttpSession instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4800 - Return the Principal object containing the name of the current authenticated user, if any; otherwise, return null. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method getUserPrincipal(). - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4801 - Invalidates this session then unbinds any objects bound to it. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpSession method invalidate(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4802 - Check if the current response has been committed. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse isCommitted method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4803 - Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. Jakarta Servlet: This must return the result of calling isSecure on the underlying jakarta.servlet.http.HttpServletRequest instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4804 - Return true if the currently authenticated user is included in the specified role. Otherwise, return false. Jakarta Servlet: This must be the value returned by the jakarta.servlet.http.HttpServletRequest method isUserInRole(role). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4805 - Log the specified message to the application object. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this calls the log() method on the same container context instance (ServletContext or PortletContext) as the one used during a call to log() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be performed by calling the jakarta.servlet.ServletContext method log(String). - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4806 - Log the specified message and exception to the application object. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this calls the log() method on the same container context instance (ServletContext or PortletContext) as the one used when calling log() on the ExternalContext returned by the FacesContext during an actual request. Jakarta Servlet: This must be performed by calling the jakarta.servlet.ServletContext method log(String,Throwable). - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:4807 - Redirect a request to the specified URL, and cause the responseComplete() method to be called on the FacesContext instance for the current request. The implementation must determine if the request is an Ajax request by obtaining a PartialViewContext instance from the FacesContext and calling PartialViewContext#isAjaxRequest(). Jakarta Servlet: For non Ajax requests, this must be accomplished by calling the jakarta.servlet.http.HttpServletResponse method sendRedirect(). For Ajax requests, the implementation must: Get a PartialResponseWriter instance from the FacesContext. Call #setResponseContentType with text/xml Call #setResponseCharacterEncoding with UTF-8 Call #addResponseHeader with Cache-Control, no-cache Call PartialResponseWriter#startDocument Call PartialResponseWriter#redirect with the url argument. Call PartialResponseWriter#endDocument - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4808 - if an input/output error occurs - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4809 - Release any resources associated with this ExternalContext instance. This method is called during during destruction of the associated FacesContext. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4810 - Flushes the buffered response content to the client. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse flushBuffer method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4811 - any IO related exception. - jakarta.faces.context - ExternalContext - - java.io.IOException - - - - - JSF:JAVADOC:4812 - Resets the current response. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse reset method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - - - JSF:JAVADOC:4813 - Sends an HTTP status code with message. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse sendError method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - java.lang.String - - - - - - JSF:JAVADOC:4814 - any IO related exceptions. - jakarta.faces.context - ExternalContext - - - int - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4815 - Associate this instance with a ClientWindow. - jakarta.faces.context - ExternalContext - - - jakarta.faces.lifecycle.ClientWindow - - - - - - JSF:JAVADOC:4816 - Set the environment-specific request to be returned by subsequent calls to #getRequest. This may be used to install a wrapper for the request. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.Object - - - - - - JSF:JAVADOC:4817 - Overrides the name of the character encoding used in the body of this request. Calling this method after the request has been accessed will have no no effect, unless a Reader or Stream has been obtained from the request, in which case an IllegalStateException is thrown. Jakarta Servlet: This must call through to the jakarta.servlet.ServletRequest method setCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4818 - if this is not a valid encoding - jakarta.faces.context - ExternalContext - - - java.lang.String - - java.io.UnsupportedEncodingException - - - - - JSF:JAVADOC:4819 - Set the environment-specific response to be returned by subsequent calls to #getResponse. This may be used to install a wrapper for the response. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.Object - - - - - - JSF:JAVADOC:4820 - Set the buffer size for the current response. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse setBufferSize method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - - JSF:JAVADOC:4821 - Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. Jakarta Servlet: This must call through to the jakarta.servlet.ServletResponse method setCharacterEncoding(). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4822 - Set the content length of the response. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse setContentLength method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - - JSF:JAVADOC:4823 - Sets the content type of the response being sent to the client, if the response has not been committed yet. Jakarta Servlet: This must call setContentType() on the underlying jakarta.servlet.ServletResponse instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - - - - - - JSF:JAVADOC:4824 - Set the response header with the given name and value. Jakarta Servlet:This must be performed by calling the jakarta.servlet.http.HttpServletResponse setHeader method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:4825 - Sets the HTTP status code for the response. Jakarta Servlet: This must be performed by calling the jakarta.servlet.http.HttpServletResponse setStatus method. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - - JSF:JAVADOC:4826 - Specifies the time, in seconds, between client requests before the Jakarta Servlet container will invalidate this session. An interval value of zero or less indicates that the session should never timeout. Jakarta Servlet: This must call setMaxInactiveInterval on the underlying jakarta.servlet.http.HttpServletRequest instance. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - ExternalContext - - - int - - - - - - JSF:JAVADOC:4827 - - jakarta.faces.context - ExternalContextFactory - - - - - JSF:JAVADOC:4828 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - ExternalContextFactory - - - jakarta.faces.context.ExternalContextFactory - - - - - - JSF:JAVADOC:4829 - Create (if needed) and return an ExternalContext instance that is initialized for the processing of the specified request and response objects, for this web application. - jakarta.faces.context - ExternalContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - - - - - - JSF:JAVADOC:4830 - if a ExternalContext cannot be constructed for the specified parameters - jakarta.faces.context - ExternalContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:4831 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.context - ExternalContextFactory - - - - - JSF:JAVADOC:4832 - The default behavior of this method is to call ExternalContext#addResponseCookie(String, String, Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4833 - The default behavior of this method is to call ExternalContext#addResponseHeader(String,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:4834 - The default behavior of this method is to call ExternalContext#dispatch(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4835 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4836 - The default behavior of this method is to call ExternalContext#encodeActionURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4837 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#encodeBookmarkableURL(String, java.util.Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4838 - The default behavior of this method is to call ExternalContext#encodeNamespace(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4839 - The default behavior of this method is to call ExternalContext#encodePartialActionURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4840 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#encodeRedirectURL(String, java.util.Map) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:4841 - The default behavior of this method is to call ExternalContext#encodeResourceURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4842 - The default behavior of this method is to call ExternalContext#encodeWebsocketURL(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4843 - - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4844 - If this external context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - ExternalContextWrapper - - - jakarta.faces.context.ExternalContext - - - - - - JSF:JAVADOC:4845 - The default behavior of this method is to call ExternalContext#getApplicationContextPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4846 - The default behavior of this method is to call ExternalContext#getApplicationMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4847 - The default behavior of this method is to call ExternalContext#getAuthType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4848 - The default behavior of this method is to call ExternalContext#getClientWindow on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4849 - The default behavior of this method is to call ExternalContext#getContext on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4850 - The default behavior of this method is to call ExternalContext#getContextName on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4851 - The default behavior of this method is to call ExternalContext#getFlash() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4852 - The default behavior of this method is to call ExternalContext#getInitParameter(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4853 - The default behavior of this method is to call ExternalContext#getInitParameterMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4854 - The default behavior of this method is to call ExternalContext#getMimeType(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4855 - The default behavior of this method is to call ExternalContext#getRealPath(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4856 - The default behavior of this method is to call ExternalContext#getRemoteUser on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4857 - The default behavior of this method is to call ExternalContext#getRequest on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4858 - The default behavior of this method is to call ExternalContext#getRequestCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4859 - The default behavior of this method is to call ExternalContext#getRequestContentLength on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4860 - The default behavior of this method is to call ExternalContext#getRequestContentType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4861 - The default behavior of this method is to call ExternalContext#getRequestContextPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4862 - The default behavior of this method is to call ExternalContext#getRequestCookieMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4863 - The default behavior of this method is to call ExternalContext#getRequestHeaderMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4864 - The default behavior of this method is to call ExternalContext#getRequestHeaderValuesMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4865 - The default behavior of this method is to call ExternalContext#getRequestLocale on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4866 - The default behavior of this method is to call ExternalContext#getRequestLocales on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4867 - The default behavior of this method is to call ExternalContext#getRequestMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4868 - The default behavior of this method is to call ExternalContext#getRequestParameterMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4869 - The default behavior of this method is to call ExternalContext#getRequestParameterNames on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4870 - The default behavior of this method is to call ExternalContext#getRequestParameterValuesMap on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4871 - The default behavior of this method is to call ExternalContext#getRequestPathInfo on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4872 - The default behavior of this method is to call ExternalContext#getRequestScheme on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4873 - The default behavior of this method is to call ExternalContext#getRequestServerName on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4874 - The default behavior of this method is to call ExternalContext#getRequestServerPort on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4875 - The default behavior of this method is to call ExternalContext#getRequestServletPath on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4876 - The default behavior of this method is to call ExternalContext#getResource(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4877 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.net.MalformedURLException - - - - - JSF:JAVADOC:4878 - The default behavior of this method is to call ExternalContext#getResourceAsStream(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4879 - The default behavior of this method is to call ExternalContext#getResourcePaths(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4880 - The default behavior of this method is to call ExternalContext#getResponse on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4881 - The default behavior of this method is to call ExternalContext#getResponseBufferSize() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4882 - The default behavior of this method is to call ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4883 - The default behavior of this method is to call ExternalContext#getResponseContentType on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4884 - The default behavior of this method is to call ExternalContext#getResponseOutputStream on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4885 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - - JSF:JAVADOC:4886 - The default behavior of this method is to call ExternalContext#getResponseOutputWriter on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4887 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - - JSF:JAVADOC:4888 - The default behavior of this method is to call ExternalContext#getSession(boolean) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - boolean - - - - - - JSF:JAVADOC:4889 - The default behavior of this method is to call ExternalContext#getSessionId(boolean) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - boolean - - - - - - JSF:JAVADOC:4890 - The default behavior of this method is to call ExternalContext#getSessionMap() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4891 - The default behavior of this method is to call ExternalContext#getSessionMaxInactiveInterval() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4892 - The default behavior of this method is to call ExternalContext#getUserPrincipal on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4893 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4894 - The default behavior of this method is to call ExternalContext#invalidateSession on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4895 - The default behavior of this method is to call ExternalContext#isResponseCommitted() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4896 - The default behavior of this method is to call ExternalContext#isSecure on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4897 - The default behavior of this method is to call ExternalContext#isUserInRole(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4898 - The default behavior of this method is to call ExternalContext#log(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4899 - The default behavior of this method is to call ExternalContext#log(String, Throwable) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:4900 - The default behavior of this method is to call ExternalContext#redirect(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4901 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4902 - The default behavior of this method is to call ExternalContext#release() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4903 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#responseFlushBuffer() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4904 - - jakarta.faces.context - ExternalContextWrapper - - java.io.IOException - - - - - JSF:JAVADOC:4905 - The default behavior of this method is to call ExternalContext#responseReset() on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - - - JSF:JAVADOC:4906 - The default behavior of this method is to call ExternalContext#responseSendError(int,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - java.lang.String - - - - - - JSF:JAVADOC:4907 - - jakarta.faces.context - ExternalContextWrapper - - - int - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:4908 - The default behavior of this method is to call ExternalContext#setClientWindow on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - jakarta.faces.lifecycle.ClientWindow - - - - - - JSF:JAVADOC:4909 - The default behavior of this method is to call ExternalContext#setRequest(Object) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:4910 - The default behavior of this method is to call ExternalContext#setRequestCharacterEncoding(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4911 - - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - java.io.UnsupportedEncodingException - - - - - JSF:JAVADOC:4912 - The default behavior of this method is to call ExternalContext#setResponse(Object) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:4913 - The default behavior of this method is to call ExternalContext#setResponseBufferSize(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - - JSF:JAVADOC:4914 - The default behavior of this method is to call ExternalContext#getResponseCharacterEncoding on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4915 - The default behavior of this method is to call jakarta.faces.context.ExternalContext#setResponseContentLength(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - - JSF:JAVADOC:4916 - The default behavior of this method is to call ExternalContext#setResponseContentType(String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4917 - The default behavior of this method is to call ExternalContext#setResponseHeader(String,String) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:4918 - The default behavior of this method is to call ExternalContext#setResponseStatus(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - - JSF:JAVADOC:4919 - The default behavior of this method is to call ExternalContext#setSessionMaxInactiveInterval(int) on the wrapped ExternalContext object. - jakarta.faces.context - ExternalContextWrapper - - - int - - - - - - JSF:JAVADOC:4920 - Append a jakarta.faces.application.FacesMessage to the set of messages associated with the specified client identifier, if clientId is not null. If clientId is null, this jakarta.faces.application.FacesMessage is assumed to not be associated with any specific component instance. - jakarta.faces.context - FacesContext - - - java.lang.String - jakarta.faces.application.FacesMessage - - - - - - JSF:JAVADOC:4921 - Return the Application instance associated with this web application. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, returns the correct current jakarta.faces.application.Application instance. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4922 - Return a mutable Map representing the attributes associated wth this FacesContext instance. This Map is useful to store attributes that you want to go out of scope when the Faces lifecycle for the current request ends, which is not always the same as the request ending, especially in the case of Jakarta Servlet filters that are invoked after the Faces lifecycle for this request completes. Accessing this Map does not cause any events to fire, as is the case with the other maps: for request, session, and application scope. When #release() is invoked, the attributes must be cleared. The Map returned by this method is not associated with the request. If you would like to get or set request attributes, see ExternalContext#getRequestMap. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4923 - Return an Iterator over the client identifiers for which at least one jakarta.faces.application.FacesMessage has been queued. If there are no such client identifiers, an empty Iterator is returned. If any messages have been queued that were not associated with any specific client identifier, a null value will be included in the iterated values. The elements in the Iterator must be returned in the order in which they were added with #addMessage. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4924 - Return the value last set on this FacesContext instance when #setCurrentPhaseId was called. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4925 - Return the ELContext instance for this FacesContext instance. This ELContext instance has the same lifetime and scope as the FacesContext instance with which it is associated, and may be created lazily the first time this method is called for a given FacesContext instance. Upon creation of the ELContext instance, the implementation must take the following action: Call the ELContext#putContext method on the instance, passing in FacesContext.class and the this reference for the FacesContext instance itself. If the Collection returned by jakarta.faces.application.Application#getELContextListeners is non-empty, create an instance of jakarta.el.ELContextEvent and pass it to each jakarta.el.ELContextListener instance in the Collection by calling the jakarta.el.ELContextListener#contextCreated method. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4926 - Return the ExceptionHandler for this request. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4927 - Return the ExternalContext instance for this FacesContext instance. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns an ExternalContext instance with the special behaviors indicated in the javadoc for that class. Methods document as being valid to call during application startup or shutdown must be supported. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4928 - Return the Lifecycle instance for this FacesContext instance. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4929 - Return the maximum severity level recorded on any jakarta.faces.application.FacesMessages that has been queued, whether or not they are associated with any specific jakarta.faces.component.UIComponent. If no such messages have been queued, return null. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4930 - Like #getMessages, but returns a List, enabling use from Jakarta Expression Language expressions. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4931 - Like #getMessages(java.lang.String), but returns a List of messages for the component with client id matching argument clientId. The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - java.lang.String - - - - - - JSF:JAVADOC:4932 - Return an Iterator over the jakarta.faces.application.FacesMessages that have been queued that are associated with the specified client identifier (if clientId is not null), or over the jakarta.faces.application.FacesMessages that have been queued that are not associated with any specific client identifier (if clientId is null). If no such messages have been queued, return an empty Iterator. The elements of the Iterator must be returned in the order in which they were added with calls to #addMessage. - jakarta.faces.context - FacesContext - - - java.lang.String - - - - - - JSF:JAVADOC:4933 - Return the result of calling UINamingContainer#getSeparatorChar, passing this as the argument. Note that this enables accessing the value of this property from the Jakarta Expression Language expression #{facesContext.namingContainerSeparatorChar}. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4934 - Return the PartialViewContext for this request. The PartialViewContext is used to control the processing of specified components during the execute portion of the request processing lifecycle (known as partial processing) and the rendering of specified components (known as partial rendering). This method must return a new PartialViewContext if one does not already exist. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4935 - Return the RenderKit instance for the render kit identifier specified on our UIViewRoot, if there is one. If there is no current UIViewRoot, if the UIViewRoot does not have a specified renderKitId, or if there is no RenderKit for the specified identifier, return null instead. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4936 - Return true if the renderResponse() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4937 - Return the list of resource library contracts that have been calculated to be appropriate for use with this view, or an empty list if there are no such resource library contracts. The list returned by this method must be immutable. For backward compatibility with implementations of the specification prior to when this method was introduced, an implementation is provided that returns an empty list. Implementations compliant with the version in which this method was introduced must implement this method as specified. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4938 - Return true if the responseComplete() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4939 - Return the root component that is associated with the this request. It is valid to call this method during application startup or shutdown. If called during application startup or shutdown, this method returns a new UIViewRoot with its locale set to Locale.getDefault(). - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4940 - This utility method simply returns the result of jakarta.faces.render.ResponseStateManager#isPostback(FacesContext). The default implementation throws UnsupportedOperationException and is provided for the sole purpose of not breaking existing applications that extend this class. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4941 - Returns a flag indicating whether or not the runtime should publish events when asked to do so. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4942 - Return true if the current ProjectStage as returned by the Application instance is equal to stage, otherwise return false - jakarta.faces.context - FacesContext - - - jakarta.faces.application.ProjectStage - - - - - - JSF:JAVADOC:4943 - Return a flag indicating if the resources associated with this FacesContext instance have been released. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4944 - Return true if the validationFailed() method has been called for the current request. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4945 - The implementation must call this method at the earliest possble point in time after entering into a new phase in the request processing lifecycle. - jakarta.faces.context - FacesContext - - - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:4946 - Set the ExceptionHandler for this request. - jakarta.faces.context - FacesContext - - - jakarta.faces.context.ExceptionHandler - - - - - - JSF:JAVADOC:4947 - Allows control of wheter or not the runtime will publish events when Application#publishEvent(FacesContext, Class, Object) or Application#publishEvent(FacesContext, Class, Class, Object) is called. - jakarta.faces.context - FacesContext - - - boolean - - - - - - JSF:JAVADOC:4948 - Set the resource library contracts calculated as valid to use with this view. The implementation must copy the contents of the incoming List into an immutable List for return from #getResourceLibraryContracts. If the argument is null or empty, the action taken is the same as if the argument is null: a subsequent call to getResourceLibraryContracts returns null. This method may only be called during the processing of jakarta.faces.view.ViewDeclarationLanguage#createView and during the VDL tag handler for the tag corresponding to an instance of UIViewRoot. For backward compatibility with implementations of the specification prior to when this method was introduced, an implementation is provided that takes no action. Implementations compliant with the version in which this method was introduced must implement this method as specified. - jakarta.faces.context - FacesContext - - - java.util.List - - - - - - JSF:JAVADOC:4949 - Set the root component that is associated with this request. This method can be called by the application handler (or a class that the handler calls), during the Invoke Application phase of the request processing lifecycle and during the Restore View phase of the request processing lifecycle (especially when a new root component is created). In the present version of the specification, implementations are not required to enforce this restriction, though a future version of the specification may require enforcement. If the current UIViewRoot is non-null, and calling equals() on the argument root, passing the current UIViewRoot returns false, the clear method must be called on the Map returned from UIViewRoot#getViewMap. - jakarta.faces.context - FacesContext - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:4950 - Sets a flag which indicates that a conversion or validation error occurred while processing the inputs. Inputs consist of either page parameters or form bindings. This flag can be read using #isValidationFailed. - jakarta.faces.context - FacesContext - - - - - JSF:JAVADOC:4951 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - FacesContextFactory - - - jakarta.faces.context.FacesContextFactory - - - - - - JSF:JAVADOC:4952 - Create (if needed) and return a FacesContext instance that is initialized for the processing of the specified request and response objects, utilizing the specified Lifecycle instance, for this web application. The implementation of this method must ensure that calls to the getCurrentInstance() method of FacesContext, from the same thread that called this method, will return the same FacesContext instance until the release() method is called on that instance. The implementation must call ExternalContextFactory#getExternalContext to produce the ExternalContext for the FacesContext instance. The default implementation must call ExceptionHandlerFactory#getExceptionHandler and make it so the return from that method is what gets returned from a call to FacesContext#getExceptionHandler on the returned FacesContext instance. The default implementation must call jakarta.faces.lifecycle.ClientWindowFactory#getClientWindow and make it so the return from that method is what gets returned from a call to ExternalContext#getClientWindow() on the returned ExternalContext instance. - jakarta.faces.context - FacesContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - jakarta.faces.lifecycle.Lifecycle - - - - - - JSF:JAVADOC:4953 - if a FacesContext cannot be constructed for the specified parameters - jakarta.faces.context - FacesContextFactory - - - java.lang.Object - java.lang.Object - java.lang.Object - jakarta.faces.lifecycle.Lifecycle - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:4954 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.context - FacesContextFactory - - - - - JSF:JAVADOC:4955 - The default behavior of this method is to call FacesContext#addMessage(String, FacesMessage) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - jakarta.faces.application.FacesMessage - - - - - - JSF:JAVADOC:4956 - - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4957 - If this faces context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4958 - The default behavior of this method is to call FacesContext#getApplication() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4959 - The default behavior of this method is to call FacesContext#getAttributes() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4960 - The default behavior of this method is to call jakarta.faces.context.FacesContext#getClientIdsWithMessages() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4961 - The default behavior of this method is to call FacesContext#getCurrentPhaseId() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4962 - The default behavior of this method is to call FacesContext#getELContext() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4963 - The default behavior of this method is to call FacesContext#getExceptionHandler() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4964 - The default behavior of this method is to call FacesContext#getExternalContext() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4965 - The default behavior of this method is to call FacesContext#getLifecycle() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4966 - The default behavior of this method is to call FacesContext#getMaximumSeverity() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4967 - The default behavior of this method is to call FacesContext#getMessageList() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4968 - The default behavior of this method is to call FacesContext#getMessageList(String) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4969 - The default behavior of this method is to call FacesContext#getMessages() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4970 - The default behavior of this method is to call FacesContext#getMessages(String) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:4971 - The default behavior of this method is to call FacesContext#getNamingContainerSeparatorChar() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4972 - The default behavior of this method is to call FacesContext#getPartialViewContext() ()} on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4973 - The default behavior of this method is to call FacesContext#getRenderKit() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4974 - The default behavior of this method is to call FacesContext#getRenderResponse() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4975 - The default behavior of this method is to call FacesContext#getResourceLibraryContracts on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4976 - The default behavior of this method is to call FacesContext#getResponseComplete() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4977 - The default behavior of this method is to call FacesContext#getResponseStream() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4978 - The default behavior of this method is to call FacesContext#getResponseWriter() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4979 - The default behavior of this method is to call FacesContext#getViewRoot() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4980 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4981 - The default behavior of this method is to call FacesContext#isPostback() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4982 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isProcessingEvents() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4983 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isProjectStage(jakarta.faces.application.ProjectStage) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.application.ProjectStage - - - - - - JSF:JAVADOC:4984 - The default behavior of this method is to call FacesContext#isReleased on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4985 - The default behavior of this method is to call jakarta.faces.context.FacesContext#isValidationFailed on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4986 - The default behavior of this method is to call FacesContext#release() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4987 - The default behavior of this method is to call FacesContext#renderResponse() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4988 - The default behavior of this method is to call FacesContext#responseComplete() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4989 - The default behavior of this method is to call FacesContext#setCurrentPhaseId(PhaseId) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:4990 - The default behavior of this method is to call FacesContext#setExceptionHandler(ExceptionHandler) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ExceptionHandler - - - - - - JSF:JAVADOC:4991 - The default behavior of this method is to call FacesContext#setProcessingEvents(boolean) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - boolean - - - - - - JSF:JAVADOC:4992 - The default behavior of this method is to call FacesContext#setResourceLibraryContracts on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - java.util.List - - - - - - JSF:JAVADOC:4993 - The default behavior of this method is to call FacesContext#setResponseStream(ResponseStream) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ResponseStream - - - - - - JSF:JAVADOC:4994 - The default behavior of this method is to call FacesContext#setResponseWriter(ResponseWriter) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.context.ResponseWriter - - - - - - JSF:JAVADOC:4995 - The default behavior of this method is to call FacesContext#setViewRoot(UIViewRoot) on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:4996 - The default behavior of this method is to call jakarta.faces.context.FacesContext#validationFailed() on the wrapped FacesContext object. - jakarta.faces.context - FacesContextWrapper - - - - - JSF:JAVADOC:4997 - Called after the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle. - jakarta.faces.context - Flash - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4998 - Called before the execution of every lifecycle phase, this method allows implementations to take the necessary actions to provide the Flash scope contract as it applies to the request procesing lifecycle. - jakarta.faces.context - Flash - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:4999 - - jakarta.faces.context - Flash - - - - - JSF:JAVADOC:5000 - Return the value of this JavaBeans property for the flash for this session. This value determines whether or not any jakarta.faces.application.FacesMessage instances queued in the current jakarta.faces.context.FacesContext must be preserved so they are accessible on the next traversal of the lifecycle on this session, regardless of the request being a redirect after post, or a normal postback. Map accesses for the special key #8220;keepMessages #8221; must return the value of this JavaBeans property. Jakarta Expression Language Usage Example First page Next page Any messages present on the first page must be displayed on this page. - jakarta.faces.context - Flash - - - - - JSF:JAVADOC:5001 - Return the value of this property for the flash for this session. This must be false unless: #setRedirect was called for the current lifecycle traversal with true as the argument. The current lifecycle traversal for this session is in the #8220;execute #8221; phase and the previous traversal had #setRedirect called with true as the argument. - jakarta.faces.context - Flash - - - - - JSF:JAVADOC:5002 - Causes a value stored with a previous call to #putNow, its Jakarta Expression Language equivalent, or to the request Map, to be promoted to the flash so that is available on the next traversal through the lifecycle on this session. - jakarta.faces.context - Flash - - - java.lang.String - - - - - - JSF:JAVADOC:5003 - Puts a value in the flash so that it can be accessed on this traversal of the lifecycle, rather than on the next traversal. This is simply an alias for putting a value in the request map. Jakarta Expression Language Usage Example Value of \#{flash.now.bar}, should be barValue. - jakarta.faces.context - Flash - - - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:5004 - Setter for keepMessages JavaBeans property. See #isKeepMessages. - jakarta.faces.context - Flash - - - boolean - - - - - - JSF:JAVADOC:5005 - Setting this property to true indicates that the next request on this session will be a redirect. Recall that on a redirect, the server sends a special response to the client instructing it to issue a new request to a specific URI. The implementation must insure that reading the value of this property on that request will return true. Jakarta Expression Language Usage Example - jakarta.faces.context - Flash - - - boolean - - - - - - JSF:JAVADOC:5006 - - jakarta.faces.context - FlashFactory - - - - - JSF:JAVADOC:5007 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - FlashFactory - - - jakarta.faces.context.FlashFactory - - - - - - JSF:JAVADOC:5008 - Create (if needed) and return a Flash instance for this web application. - jakarta.faces.context - FlashFactory - - - boolean - - - - - - JSF:JAVADOC:5009 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.context - FlashFactory - - - - - JSF:JAVADOC:5010 - The default behavior of this method is to call Flash#clear() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5011 - The default behavior of this method is to call Flash#containsKey(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:5012 - The default behavior of this method is to call Flash#containsValue(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:5013 - The default behavior of this method is to call Flash#doPostPhaseActions(FacesContext) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5014 - The default behavior of this method is to call Flash#doPrePhaseActions(FacesContext) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5015 - The default behavior of this method is to call Flash#entrySet() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5016 - - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5017 - If this flash has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - FlashWrapper - - - jakarta.faces.context.Flash - - - - - - JSF:JAVADOC:5018 - The default behavior of this method is to call Flash#get(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:5019 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5020 - The default behavior of this method is to call Flash#isEmpty() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5021 - The default behavior of this method is to call Flash#isKeepMessages() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5022 - The default behavior of this method is to call Flash#isRedirect() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5023 - The default behavior of this method is to call Flash#keep(String) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5024 - The default behavior of this method is to call Flash#keySet() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5025 - The default behavior of this method is to call Flash#put on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:5026 - The default behavior of this method is to call Flash#putAll(Map) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.util.Map - - - - - - JSF:JAVADOC:5027 - The default behavior of this method is to call Flash#putNow(String, Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:5028 - The default behavior of this method is to call Flash#remove(Object) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:5029 - The default behavior of this method is to call Flash#setKeepMessages(boolean) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - boolean - - - - - - JSF:JAVADOC:5030 - The default behavior of this method is to call Flash#setRedirect(boolean) on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - boolean - - - - - - JSF:JAVADOC:5031 - The default behavior of this method is to call Flash#size() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5032 - The default behavior of this method is to call Flash#values() on the wrapped Flash object. - jakarta.faces.context - FlashWrapper - - - - - JSF:JAVADOC:5033 - Write a delete operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5034 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5035 - Write the end of a partial response. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5036 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5037 - Write the end of an error. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5038 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5039 - Write the end of an eval operation. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5040 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5041 - Write the end of an extension operation. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5042 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5043 - Write the end of an insert operation. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5044 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5045 - Write the end of an update operation. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5046 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5047 - Create a PartialResponseWriter. - jakarta.faces.context - PartialResponseWriter - - - jakarta.faces.context.ResponseWriter - - - - - - JSF:JAVADOC:5048 - Write a redirect operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5049 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5050 - Write the start of a partial response. If UIViewRoot is an instance of NamingContainer, then write UIViewRoot#getContainerClientId(FacesContext) as value of the id attribute of the root element. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5051 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5052 - Write the start of an error. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5053 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5054 - Write the start of an eval operation. - jakarta.faces.context - PartialResponseWriter - - - - - JSF:JAVADOC:5055 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5056 - Write the start of an extension operation. - jakarta.faces.context - PartialResponseWriter - - - java.util.Map - - - - - - JSF:JAVADOC:5057 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.util.Map - - java.io.IOException - - - - - JSF:JAVADOC:5058 - Write the start of an insert operation where the contents will be inserted after the specified target node. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5059 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5060 - Write the start of an insert operation where the contents will be inserted before the specified target node. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5061 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5062 - Write the start of an update operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5063 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5064 - Write an attribute update operation. - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:5065 - if an input/output error occurs - jakarta.faces.context - PartialResponseWriter - - - java.lang.String - java.util.Map - - java.io.IOException - - - - - JSF:JAVADOC:5066 - Returns a mutable List of scripts to be evaluated in client side on complete of ajax request. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5067 - Return a Collection of client identifiers from the current request with the request parameter name #PARTIAL_EXECUTE_PARAM_NAME. If there is no such request parameter, return an empty Collection. These client identifiers are used to identify components that will be processed during the execute phase of the request processing lifecycle. The returned Collection is mutable. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5068 - Return the ResponseWriter to which components should direct their output for partial view rendering. Within a given response, components can use either the ResponseStream or the ResponseWriter, but not both. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5069 - Return a Collection of client identifiers from the current request with the request parameter name #PARTIAL_RENDER_PARAM_NAME. If there is no such request parameter, return an empty Collection. These client identifiers are used to identify components that will be processed during the render phase of the request processing lifecycle. The returned Collection is mutable. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5070 - Return true if the request header Faces-Request is present with the value partial/ajax. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5071 - Return true if #isAjaxRequest returns true and #PARTIAL_EXECUTE_PARAM_NAME is present in the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5072 - Return true #isAjaxRequest returns true or if the request header Faces-Request is present with the value partial/process. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5073 - Return true if #isAjaxRequest returns true and #PARTIAL_RENDER_PARAM_NAME is present in the current request with the value #ALL_PARTIAL_PHASE_CLIENT_IDS. Otherwise, return false. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5074 - Return true if the incoming request has a parameter named by the value of #RESET_VALUES_PARAM_NAME and that value is true. To preserve backward compatibility with custom implementations that may have extended from an earlier version of this class, an implementation is provided that returns false. A compliant implementation must override this method to take the specified action. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5075 - - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5076 - Perform lifecycle processing on components during the indicated phaseId. Only those components with identifiers existing in the Collection returned from #getExecuteIds and #getRenderIds will be processed. When the indicated phaseId equals PhaseId#RENDER_RESPONSE, then perform the following tasks in sequence: If #isResetValues() returns true, then call UIViewRoot#resetValues(FacesContext, Collection), passing #getRenderIds(). If #isRenderAll() returns false, then render any component resource of UIViewRoot whose ResourceHandler#getRendererTypeForResourceName(String) does not return null, and whose UIComponent#getChildCount() is zero, and whose ResourceHandler#isResourceRendered(FacesContext, String, String) returns false, in an update element with an identifier of jakarta.faces.Resource. Process the components. Obtain the state by calling StateManager#getViewState and write it out as an update element with an identifier of jakarta.faces.ViewState where is the return from UIViewRoot#getContainerClientId(FacesContext) on the view from whence this state originated, and is the currently configured UINamingContainer#getSeparatorChar(FacesContext). If #isRenderAll() returns false, then write out each script of #getEvalScripts() as an eval element. - jakarta.faces.context - PartialViewContext - - - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:5077 - Release any resources associated with this PartialViewContext instance. - jakarta.faces.context - PartialViewContext - - - - - JSF:JAVADOC:5078 - Dynamically indicate that this is a partial request. - jakarta.faces.context - PartialViewContext - - - boolean - - - - - - JSF:JAVADOC:5079 - Indicate the entire view must be rendered if renderAll is true. - jakarta.faces.context - PartialViewContext - - - boolean - - - - - - JSF:JAVADOC:5080 - Create (if needed) and return a PartialViewContext instance that is initialized using the current FacesContext instance. - jakarta.faces.context - PartialViewContextFactory - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5081 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.context - PartialViewContextFactory - - - - - JSF:JAVADOC:5082 - - jakarta.faces.context - PartialViewContextFactory - - - - - JSF:JAVADOC:5083 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - PartialViewContextFactory - - - jakarta.faces.context.PartialViewContextFactory - - - - - - JSF:JAVADOC:5084 - The default behavior of this method is to call PartialViewContext#getRenderIds() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5085 - The default behavior of this method is to call PartialViewContext#getExecuteIds() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5086 - The default behavior of this method is to call PartialViewContext#getPartialResponseWriter() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5087 - The default behavior of this method is to call PartialViewContext#getRenderIds() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5088 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5089 - The default behavior of this method is to call PartialViewContext#isAjaxRequest() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5090 - The default behavior of this method is to call PartialViewContext#isExecuteAll() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5091 - The default behavior of this method is to call PartialViewContext#isPartialRequest() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5092 - The default behavior of this method is to call PartialViewContext#isRenderAll() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5093 - The default behavior of this method is to call PartialViewContext#isResetValues() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5094 - - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5095 - If this partial view context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - PartialViewContextWrapper - - - jakarta.faces.context.PartialViewContext - - - - - - JSF:JAVADOC:5096 - The default behavior of this method is to call PartialViewContext#processPartial(PhaseId) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:5097 - The default behavior of this method is to call PartialViewContext#release() on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - - - JSF:JAVADOC:5098 - The default behavior of this method is to call PartialViewContext#setPartialRequest(boolean) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - boolean - - - - - - JSF:JAVADOC:5099 - The default behavior of this method is to call PartialViewContext#setRenderAll(boolean) on the wrapped PartialViewContext object. - jakarta.faces.context - PartialViewContextWrapper - - - boolean - - - - - - JSF:JAVADOC:5100 - Create and return a new instance of this ResponseWriter, using the specified Writer as the output destination. - jakarta.faces.context - ResponseWriter - - - java.io.Writer - - - - - - JSF:JAVADOC:5101 - Close an XML CDATA block. The default implementation of this method takes no action when invoked. - jakarta.faces.context - ResponseWriter - - - - - JSF:JAVADOC:5102 - if input/output error occures - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5103 - Flush any ouput buffered by the output method to the underlying Writer or OutputStream. This method will not flush the underlying Writer or OutputStream; it simply clears any values buffered by this ResponseWriter. - jakarta.faces.context - ResponseWriter - - - - - JSF:JAVADOC:5104 - - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5105 - Return the character encoding (such as "ISO-8859-1") for this ResponseWriter. Please see the IANA for a list of character encodings. - jakarta.faces.context - ResponseWriter - - - - - JSF:JAVADOC:5106 - Return the content type (such as "text/html") for this ResponseWriter. Note: this must not include the "charset=" suffix. - jakarta.faces.context - ResponseWriter - - - - - JSF:JAVADOC:5107 - Open an XML CDATA block. Note that XML does not allow nested CDATA blocks, though this method does not enforce that constraint. The default implementation of this method takes no action when invoked. - jakarta.faces.context - ResponseWriter - - - - - JSF:JAVADOC:5108 - if input/output error occures - jakarta.faces.context - ResponseWriter - - java.io.IOException - - - - - JSF:JAVADOC:5109 - Write the start of an element, up to and including the element name. Once this method has been called, clients can call the writeAttribute() or writeURIAttribute() methods to add attributes and corresponding values. The starting element will be closed (that is, the trailing ' gt;' character added) on any subsequent call to startElement(), writeComment(), writeText(), endElement(), endDocument(), close(), flush(), or write(). If the argument component's pass through attributes includes an attribute of the name given by the value of the symbolic constant jakarta.faces.render.Renderer#PASSTHROUGH_RENDERER_LOCALNAME_KEY, use that as the element name, instead of the value passed as the first parameter to this method. Care must be taken so that this value is not also rendered when any other pass through attributes on this component are rendered. - jakarta.faces.context - ResponseWriter - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5110 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5111 - Write an attribute name and corresponding value, after converting that text to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5112 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5113 - Write a string containing the markup specific doctype. No escaping is performed. The default implementation simply calls through to #write(java.lang.String) . The implementation makes no checks if this is the correct place in the response to have a doctype, nor does it prevent the doctype from being written more than once. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5114 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5115 - Write a string containing the markup specific preamble. No escaping is performed. The default implementation simply calls through to #write(java.lang.String) . The implementation makes no checks if this is the correct place in the response to have a preamble, nor does it prevent the preamble from being written more than once. - jakarta.faces.context - ResponseWriter - - - java.lang.String - - - - - - JSF:JAVADOC:5116 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5117 - Write an object, after converting it to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. If there is an open element that has been created by a call to startElement(), that element will be closed first. - jakarta.faces.context - ResponseWriter - - - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5118 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5119 - Write an object, after converting it to a String (if necessary), and after performing any escaping appropriate for the markup language being rendered. This method is equivalent to #writeText(java.lang.Object,java.lang.String) but adds a component property to allow custom ResponseWriter implementations to associate a component with an arbitrary portion of text. The default implementation simply ignores the component argument and calls through to #writeText(java.lang.Object,java.lang.String) - jakarta.faces.context - ResponseWriter - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5120 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5121 - Write a URI attribute name and corresponding value, after converting that text to a String (if necessary), and after performing any encoding or escaping appropriate to the markup language being rendered. When rendering in a WWW environment, the escaping conventions established in the W3C URI spec document must be followed. In particular, spaces ' ' must be encoded as %20 and not the plus character '+'. This method may only be called after a call to startElement(), and before the opened element has been closed. - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5122 - if an input/output error occurs - jakarta.faces.context - ResponseWriter - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5123 - The default behavior of this method is to call ResponseWriter#cloneWithWriter(java.io.Writer) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.io.Writer - - - - - - JSF:JAVADOC:5124 - The default behavior of this method is to call ResponseWriter#close() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5125 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5126 - The default behavior of this method is to call ResponseWriter#endCDATA on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5127 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5128 - The default behavior of this method is to call ResponseWriter#endDocument() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5129 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5130 - The default behavior of this method is to call ResponseWriter#endElement(String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5131 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5132 - The default behavior of this method is to call ResponseWriter#flush() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5133 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5134 - The default behavior of this method is to call ResponseWriter#getCharacterEncoding() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5135 - The default behavior of this method is to call ResponseWriter#getContentType() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5136 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5137 - - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5138 - If this response writer has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.context - ResponseWriterWrapper - - - jakarta.faces.context.ResponseWriter - - - - - - JSF:JAVADOC:5139 - The default behavior of this method is to call ResponseWriter#startCDATA on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5140 - on any read/write error - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5141 - The default behavior of this method is to call ResponseWriter#startDocument() on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - - - JSF:JAVADOC:5142 - - jakarta.faces.context - ResponseWriterWrapper - - java.io.IOException - - - - - JSF:JAVADOC:5143 - The default behavior of this method is to call ResponseWriter#startElement(String, jakarta.faces.component.UIComponent) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5144 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5145 - The default behavior of this method is to call ResponseWriter#write(char[], int, int) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - - - - - JSF:JAVADOC:5146 - - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - java.io.IOException - - - - - JSF:JAVADOC:5147 - The default behavior of this method is to call ResponseWriter#writeAttribute(String, Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5148 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5149 - The default behavior of this method is to call ResponseWriter#writeComment(Object) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - - - - - - JSF:JAVADOC:5150 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - - java.io.IOException - - - - - JSF:JAVADOC:5151 - The default behavior of this method is to call ResponseWriter#writeDoctype on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5152 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5153 - The default behavior of this method is to call ResponseWriter#writePreamble on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5154 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5155 - The default behavior of this method is to call ResponseWriter#writeText(Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5156 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5157 - The default behavior of this method is to call ResponseWriter#writeText(Object, UIComponent, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5158 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.Object - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5159 - The default behavior of this method is to call ResponseWriter#writeText(char[], int, int) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - - - - - JSF:JAVADOC:5160 - - jakarta.faces.context - ResponseWriterWrapper - - - char[] - int - int - - java.io.IOException - - - - - JSF:JAVADOC:5161 - The default behavior of this method is to call ResponseWriter#writeURIAttribute(String, Object, String) on the wrapped ResponseWriter object. - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5162 - - jakarta.faces.context - ResponseWriterWrapper - - - java.lang.String - java.lang.Object - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5163 - - jakarta.faces.convert - BigDecimalConverter - - - - - JSF:JAVADOC:5164 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5165 - - jakarta.faces.convert - BigDecimalConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5166 - - jakarta.faces.convert - BigIntegerConverter - - - - - JSF:JAVADOC:5167 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5168 - - jakarta.faces.convert - BigIntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5169 - - jakarta.faces.convert - BooleanConverter - - - - - JSF:JAVADOC:5170 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5171 - - jakarta.faces.convert - BooleanConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5172 - - jakarta.faces.convert - ByteConverter - - - - - JSF:JAVADOC:5173 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5174 - - jakarta.faces.convert - ByteConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5175 - - jakarta.faces.convert - CharacterConverter - - - - - JSF:JAVADOC:5176 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5177 - - jakarta.faces.convert - CharacterConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5178 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.convert - ConverterException - - - jakarta.faces.application.FacesMessage - - - - - - JSF:JAVADOC:5179 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.convert - ConverterException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - - JSF:JAVADOC:5180 - Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there. - jakarta.faces.convert - ConverterException - - - - - JSF:JAVADOC:5181 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5182 - - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5183 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5184 - - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5185 - Return the style to be used to format or parse dates. If not set, the default value, default, is returned. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5186 - Return the Locale to be used when parsing or formatting dates and times. If not explicitly set, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request is returned. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5187 - Return the format pattern to be used when formatting and parsing dates and times. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5188 - Return the style to be used to format or parse times. If not set, the default value, default, is returned. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5189 - Return the TimeZone used to interpret a time value. If not explicitly set, the default time zone of GMT returned. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5190 - Return the type of value to be formatted or parsed. If not explicitly set, the default type, date is returned. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5191 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5192 - - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5193 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - DateTimeConverter - - - - - JSF:JAVADOC:5194 - - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5195 - - jakarta.faces.convert - DateTimeConverter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5196 - Set the style to be used to format or parse dates. Valid values are default, short, medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5197 - Set the Locale to be used when parsing or formatting dates and times. If set to null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - DateTimeConverter - - - java.util.Locale - - - - - - JSF:JAVADOC:5198 - Set the format pattern to be used when formatting and parsing dates and times. Valid values are those supported by java.text.SimpleDateFormat. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5199 - Set the style to be used to format or parse times. Valid values are default, short, medium, long, and full. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5200 - Set the TimeZone used to interpret a time value. - jakarta.faces.convert - DateTimeConverter - - - java.util.TimeZone - - - - - - JSF:JAVADOC:5201 - - jakarta.faces.convert - DateTimeConverter - - - boolean - - - - - - JSF:JAVADOC:5202 - Set the type of value to be formatted or parsed. Valid values are both, date, time localDate, localDateTime, localTime, offsetTime, offsetDateTime, or zonedDateTime. The values starting with "local", "offset" and "zoned" correspond to Java SE 8 Date Time API classes in package java.time with the name derived by upper casing the first letter. For example, java.time.LocalDate for the value "localDate". An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - DateTimeConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5203 - - jakarta.faces.convert - DoubleConverter - - - - - JSF:JAVADOC:5204 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5205 - - jakarta.faces.convert - DoubleConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5206 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - EnumConverter - - - - - JSF:JAVADOC:5207 - For StateHolder - jakarta.faces.convert - EnumConverter - - - - - JSF:JAVADOC:5208 - Instantiates an enum converter with a class where enum constants are taken from. - jakarta.faces.convert - EnumConverter - - - java.lang.Class - - - - - - JSF:JAVADOC:5209 - Convert the value argument to one of the enum constants of the class provided in our constructor. If no target class argument has been provided to the constructor of this instance, throw a ConverterException containing the #ENUM_NO_CLASS_ID message with proper parameters. If the value argument is null or it has a length of zero, return null. Otherwise, perform the equivalent of Enum.valueOf using target class and value and return the Object. If the conversion fails, throw a ConverterException containing the #ENUM_ID message with proper parameters. - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5210 - Convert the enum constant given by the value argument into a String. If no target class argument has been provided to the constructor of this instance, throw a ConverterException containing the #ENUM_NO_CLASS_ID message with proper parameters. If the value argument is null, return the empty String. If the value is an instance of the provided target class, return its string value by casting it to a java.lang.Enum and returning the result of calling the name() method. Otherwise, throw a ConverterException containing the #ENUM_ID message with proper parameters. - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5211 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - EnumConverter - - - - - JSF:JAVADOC:5212 - - jakarta.faces.convert - EnumConverter - - - - - JSF:JAVADOC:5213 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - EnumConverter - - - - - JSF:JAVADOC:5214 - - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5215 - - jakarta.faces.convert - EnumConverter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5216 - - jakarta.faces.convert - EnumConverter - - - boolean - - - - - - JSF:JAVADOC:5217 - The value of this annotation attribute is taken to be the converter-for-class with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.Class). - jakarta.faces.convert - FacesConverter - - - - - JSF:JAVADOC:5218 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.convert - FacesConverter - - - - - JSF:JAVADOC:5219 - The value of this annotation attribute is taken to be the converter-id with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.String). - jakarta.faces.convert - FacesConverter - - - - - JSF:JAVADOC:5220 - The value of this annotation attribute is taken to be the converter-for-class with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.Class). - jakarta.faces.convert - FacesConverter.Literal - - - - - JSF:JAVADOC:5221 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.convert - FacesConverter.Literal - - - - - JSF:JAVADOC:5222 - - jakarta.faces.convert - FacesConverter.Literal - - - java.lang.String - java.lang.Class - boolean - - - - - - JSF:JAVADOC:5223 - The value of this annotation attribute is taken to be the converter-id with which instances of this class of converter can be instantiated by calling jakarta.faces.application.Application#createConverter(java.lang.String). - jakarta.faces.convert - FacesConverter.Literal - - - - - JSF:JAVADOC:5224 - - jakarta.faces.convert - FloatConverter - - - - - JSF:JAVADOC:5225 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5226 - - jakarta.faces.convert - FloatConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5227 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5228 - - jakarta.faces.convert - IntegerConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5229 - - jakarta.faces.convert - IntegerConverter - - - - - JSF:JAVADOC:5230 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5231 - - jakarta.faces.convert - LongConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5232 - - jakarta.faces.convert - LongConverter - - - - - JSF:JAVADOC:5233 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5234 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5235 - - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5236 - Return the ISO 4217 currency code used by getAsString() with a type of currency. If not set, the value used will be based on the formatting Locale. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5237 - Return the currency symbol used by getAsString() with a type of currency. If not set, the value used will be based on the formatting Locale. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5238 - Return the Locale to be used when parsing numbers. If this value is null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5239 - Return the maximum number of digits getAsString() should render in the fraction portion of the result. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5240 - Return the maximum number of digits getAsString() should render in the integer portion of the result. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5241 - Return the minimum number of digits getAsString() should render in the fraction portion of the result. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5242 - Return the minimum number of digits getAsString() should render in the integer portion of the result. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5243 - Return the format pattern to be used when formatting and parsing numbers. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5244 - Return the number type to be used when formatting and parsing numbers. If not modified, the default type is number. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5245 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5246 - Return true if getAsString should include grouping separators if necessary. If not modified, the default value is true. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5247 - Return true if only the integer portion of the given value should be returned from getAsObject(). If not modified, the default value is false. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5248 - - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5249 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5250 - - jakarta.faces.convert - NumberConverter - - - - - JSF:JAVADOC:5251 - - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5252 - - jakarta.faces.convert - NumberConverter - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5253 - Set the ISO 4217 currency code used by getAsString() with a type of currency. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5254 - Set the currency symbol used by getAsString() with a type of currency. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5255 - Set the flag indicating whether getAsString() should include grouping separators if necessary. - jakarta.faces.convert - NumberConverter - - - boolean - - - - - - JSF:JAVADOC:5256 - Set to true if only the integer portion of the given value should be returned from getAsObject(). - jakarta.faces.convert - NumberConverter - - - boolean - - - - - - JSF:JAVADOC:5257 - Set the Locale to be used when parsing numbers. If set to null, the Locale stored in the jakarta.faces.component.UIViewRoot for the current request will be utilized. - jakarta.faces.convert - NumberConverter - - - java.util.Locale - - - - - - JSF:JAVADOC:5258 - Set the maximum number of digits getAsString() should render in the fraction portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - - JSF:JAVADOC:5259 - Set the maximum number of digits getAsString() should render in the integer portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - - JSF:JAVADOC:5260 - Set the minimum number of digits getAsString() should render in the fraction portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - - JSF:JAVADOC:5261 - Set the minimum number of digits getAsString() should render in the integer portion of the result. If not set, the number of digits depends on the value being converted. - jakarta.faces.convert - NumberConverter - - - int - - - - - - JSF:JAVADOC:5262 - Set the format pattern to be used when formatting and parsing numbers. Valid values are those supported by java.text.DecimalFormat. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5263 - - jakarta.faces.convert - NumberConverter - - - boolean - - - - - - JSF:JAVADOC:5264 - Set the number type to be used when formatting and parsing numbers. Valid values are currency, number, or percent. An invalid value will cause a ConverterException when getAsObject() or getAsString() is called. - jakarta.faces.convert - NumberConverter - - - java.lang.String - - - - - - JSF:JAVADOC:5265 - Convert the specified string value, which is associated with the specified UIComponent, into a model data object that is appropriate for being stored during the Process Validations phase of the request processing lifecycle. - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5266 - - jakarta.faces.convert - ShortConverter - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5267 - - jakarta.faces.convert - ShortConverter - - - - - JSF:JAVADOC:5268 - - jakarta.faces.el - CompositeComponentExpressionHolder - - - java.lang.String - - - - - - JSF:JAVADOC:5269 - Construct a new exception with the specified detail message and no root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.String - - - - - - JSF:JAVADOC:5270 - Construct a new exception with the specified root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.Throwable - - - - - - JSF:JAVADOC:5271 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.event - AbortProcessingException - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:5272 - Construct a new event object from the specified source component and action command. - jakarta.faces.event - ActionEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5273 - Construct a new event object from the Faces context, specified source component and action command. - jakarta.faces.event - ActionEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5274 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - ActionEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5275 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - ActionEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5276 - - jakarta.faces.event - ActionListenerWrapper - - - - - JSF:JAVADOC:5277 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.event - ActionListenerWrapper - - - - - JSF:JAVADOC:5278 - Invoked when the action described by the specified ActionEvent occurs. - jakarta.faces.event - ActionListenerWrapper - - - jakarta.faces.event.ActionEvent - - - - - - JSF:JAVADOC:5279 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ActionListenerWrapper - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5280 - Construct a new event object from the specified source component and Ajax behavior. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - - JSF:JAVADOC:5281 - Construct a new event object from the Faces context, specified source component and Ajax behavior. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - - JSF:JAVADOC:5282 - Return true if this FacesListener is an instance of a the appropriate listener class that this event supports. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5283 - Broadcast this event instance to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this instance as a parameter. - jakarta.faces.event - AjaxBehaviorEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5284 - Process the Ajax behavior event. - jakarta.faces.event - AjaxBehaviorListener - - - jakarta.faces.event.AjaxBehaviorEvent - - - - - - JSF:JAVADOC:5285 - if lifecycle processing should cease for this request. - jakarta.faces.event - AjaxBehaviorListener - - - jakarta.faces.event.AjaxBehaviorEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5286 - Construct a new event object from the specified source component and behavior. - jakarta.faces.event - BehaviorEvent - - - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - - JSF:JAVADOC:5287 - Construct a new event object from the Faces context, specified source component and behavior. - jakarta.faces.event - BehaviorEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.Behavior - - - - - - JSF:JAVADOC:5288 - Return the source Behavior that sent this event. - jakarta.faces.event - BehaviorEvent - - - - - JSF:JAVADOC:5289 - Pass the argument component to the superclass constructor. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5290 - Pass the argument component to the superclass constructor. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5291 - the source UIComponent that sent this event. - jakarta.faces.event - ComponentSystemEvent - - - - - JSF:JAVADOC:5292 - Return true if the argument FacesListener is an instance of the appropriate listener class that this event supports. The default implementation returns true if the listener is a ComponentSystemEventListener or if super.isAppropriateListener() returns true. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5293 - Broadcast this event instance to the specified FacesListener by calling the superclass's processListener() implementation. - jakarta.faces.event - ComponentSystemEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5294 - When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true. - jakarta.faces.event - ComponentSystemEventListener - - - jakarta.faces.event.ComponentSystemEvent - - - - - - JSF:JAVADOC:5295 - if lifecycle processing should cease for this request. - jakarta.faces.event - ComponentSystemEventListener - - - jakarta.faces.event.ComponentSystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5296 - Instantiate a new ExceptionQueuedEvent that indicates the argument ExceptionQueuedEventContext occurred. - jakarta.faces.event - ExceptionQueuedEvent - - - jakarta.faces.event.ExceptionQueuedEventContext - - - - - - JSF:JAVADOC:5297 - Instantiate a new ExceptionQueuedEvent that indicates the argument ExceptionQueuedEventContext occurred. - jakarta.faces.event - ExceptionQueuedEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.event.ExceptionQueuedEventContext - - - - - - JSF:JAVADOC:5298 - Return the ExceptionQueuedEventContext for this event instance. - jakarta.faces.event - ExceptionQueuedEvent - - - - - JSF:JAVADOC:5299 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - - - - - - JSF:JAVADOC:5300 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5301 - Instantiate a new ExceptionQueuedEventContext that indicates the argument Throwable just occurred, relevant to the argument component, during the lifecycle phase phaseId. - jakarta.faces.event - ExceptionQueuedEventContext - - - jakarta.faces.context.FacesContext - java.lang.Throwable - jakarta.faces.component.UIComponent - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:5302 - A Map of attributes relevant to the context of this ExceptionQueuedEvent. - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5303 - Return the UIComponent which was being processed when the exception was thrown. If none or not available, this will be null. - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5304 - The FacesContext for this request. - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5305 - Return the exception property. - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5306 - Return a List that contains a single entry, the jakarta.faces.context.ExceptionHandler for the current request. - jakarta.faces.event - ExceptionQueuedEventContext - - - java.lang.Class - - - - - - JSF:JAVADOC:5307 - Return the PhaseId which was being processed when the exception was thrown. If none or not available, this will be null. - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5308 - - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5309 - - jakarta.faces.event - ExceptionQueuedEventContext - - - - - JSF:JAVADOC:5310 - Construct a new event object from the Faces context and specified source component. - jakarta.faces.event - FacesEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5311 - Get the Faces context. If the constructor was passed a FacesContext we return it, otherwise we call FacesContext.getCurrentInstance() and return it. - jakarta.faces.event - FacesEvent - - - - - JSF:JAVADOC:5312 - Return the identifier of the request processing phase during which this event should be delivered. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE, which is the default value. - jakarta.faces.event - FacesEvent - - - - - JSF:JAVADOC:5313 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5314 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5315 - Convenience method to queue this event for broadcast at the end of the current request processing lifecycle phase. - jakarta.faces.event - FacesEvent - - - - - JSF:JAVADOC:5316 - Set the PhaseId during which this event will be delivered. - jakarta.faces.event - FacesEvent - - - jakarta.faces.event.PhaseId - - - - - - JSF:JAVADOC:5317 - The kind of object that emits events of the type given by the value of the #systemEventClass attribute. It is valid to have Jakarta Expression Language Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.event - ListenerFor - - - - - JSF:JAVADOC:5318 - The kind of system event for which this class will be installed as a listener. The implementation only supports exact matches on the Class and must not honor subclass relationships. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type. - jakarta.faces.event - ListenerFor - - - - - JSF:JAVADOC:5319 - - jakarta.faces.event - ListenersFor - - - - - JSF:JAVADOC:5320 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionActionListener - - - - - JSF:JAVADOC:5321 - - jakarta.faces.event - MethodExpressionActionListener - - - - - JSF:JAVADOC:5322 - Construct a ValueChangeListener that contains a MethodExpression. To accomodate method expression targets that take no arguments instead of taking an ActionEvent argument, the implementation of this class must take the argument methodExpressionOneArg, extract its expression string, and create another MethodExpression whose expected param types match those of a zero argument method. The usage requirements for both of these MethodExpression instances are described in #processAction. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5323 - - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.el.MethodExpression - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5324 - Call through to the MethodExpression passed in our constructor. First, try to invoke the MethodExpression passed to the constructor of this instance, passing the argument ActionEvent as the argument. If a MethodNotFoundException is thrown, call to the zero argument MethodExpression derived from the MethodExpression passed to the constructor of this instance. If that fails for any reason, throw an AbortProcessingException, including the cause of the failure. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.event.ActionEvent - - - - - - JSF:JAVADOC:5325 - {@inheritDoc} - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.event.ActionEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5326 - Both MethodExpression instances described in the constructor must be restored. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5327 - Both MethodExpression instances described in the constructor must be saved. - jakarta.faces.event - MethodExpressionActionListener - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5328 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionActionListener - - - boolean - - - - - - JSF:JAVADOC:5329 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionValueChangeListener - - - - - JSF:JAVADOC:5330 - - jakarta.faces.event - MethodExpressionValueChangeListener - - - - - JSF:JAVADOC:5331 - Construct a ValueChangeListener that contains a MethodExpression.To accommodate method expression targets that take no arguments instead of taking a ValueChangeEvent argument, the implementation of this class must take the argument methodExpressionOneArg, extract its expression string, and create another MethodExpression whose expected param types match those of a zero argument method. The usage requirements for both of these MethodExpression instances are described in #processValueChange. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5332 - Construct a ValueChangeListener that contains a MethodExpression. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.el.MethodExpression - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5333 - Call through to the MethodExpression passed in our constructor. First, try to invoke the MethodExpression passed to the constructor of this instance, passing the argument ValueChangeEvent as the argument. If a MethodNotFoundException is thrown, call to the zero argument MethodExpression derived from the MethodExpression passed to the constructor of this instance. If that fails for any reason, throw an AbortProcessingException, including the cause of the failure. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - - - - - JSF:JAVADOC:5334 - {@inheritDoc} - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5335 - Both MethodExpression instances described in the constructor must be restored. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5336 - Both MethodExpression instances described in the constructor must be saved. - jakarta.faces.event - MethodExpressionValueChangeListener - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5337 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.event - MethodExpressionValueChangeListener - - - boolean - - - - - - JSF:JAVADOC:5338 - The value of this annotation attribute is taken to be the short name for the jakarta.faces.event.ComponentSystemEvent. If the value of this attribute is ommitted, the following algorithm must be used by the code that processes this annotation to determine its value. Get the unqualified class name (e.g., UserLoginEvent) Strip off the trailing "Event", if present (e.g., UserLogin) Convert the first character to lower-case (e.g., userLogin) Prepend the package name to the lower-cased name. - jakarta.faces.event - NamedEvent - - - - - JSF:JAVADOC:5339 - Return the FacesContext for the request being processed. - jakarta.faces.event - PhaseEvent - - - - - JSF:JAVADOC:5340 - Return the PhaseId representing the current request processing lifecycle phase. - jakarta.faces.event - PhaseEvent - - - - - JSF:JAVADOC:5341 - Construct a new event object from the specified parameters. The specified Lifecycle will be the source of this event. - jakarta.faces.event - PhaseEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.event.PhaseId - jakarta.faces.lifecycle.Lifecycle - - - - - - JSF:JAVADOC:5342 - Return the name of this phase. - jakarta.faces.event - PhaseId - - - - - JSF:JAVADOC:5343 - Return a PhaseId representation of the arcument phase. - jakarta.faces.event - PhaseId - - - java.lang.String - - - - - - JSF:JAVADOC:5344 - Handle a notification that the processing for a particular phase has just been completed. - jakarta.faces.event - PhaseListener - - - jakarta.faces.event.PhaseEvent - - - - - - JSF:JAVADOC:5345 - Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin. - jakarta.faces.event - PhaseListener - - - jakarta.faces.event.PhaseEvent - - - - - - JSF:JAVADOC:5346 - Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases. - jakarta.faces.event - PhaseListener - - - - - JSF:JAVADOC:5347 - Returns true if and only if the argument listener is an instance of SystemEventListener. - jakarta.faces.event - PostAddToViewEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5348 - Instantiate a new PostAddToViewEvent that indicates the argument component was just added to the view. - jakarta.faces.event - PostAddToViewEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5349 - Instantiate a new PostAddToViewEvent that indicates the argument component was just added to the view. - jakarta.faces.event - PostAddToViewEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5350 - The source Application that sent this event. - jakarta.faces.event - PostConstructApplicationEvent - - - - - JSF:JAVADOC:5351 - Constructs a new PostConstructApplicationEvent for this application. - jakarta.faces.event - PostConstructApplicationEvent - - - jakarta.faces.application.Application - - - - - - JSF:JAVADOC:5352 - Constructs a new PostConstructApplicationEvent for this application. - jakarta.faces.event - PostConstructApplicationEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Application - - - - - - JSF:JAVADOC:5353 - Return the ScopeContext for this event. - jakarta.faces.event - PostConstructCustomScopeEvent - - - - - JSF:JAVADOC:5354 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext was just created. - jakarta.faces.event - PostConstructCustomScopeEvent - - - jakarta.faces.event.ScopeContext - - - - - - JSF:JAVADOC:5355 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext was just created. - jakarta.faces.event - PostConstructCustomScopeEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.event.ScopeContext - - - - - - JSF:JAVADOC:5356 - Instantiate a new PostConstructViewMapEvent that indicates the argument root was just associated with its view map. - jakarta.faces.event - PostConstructViewMapEvent - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5357 - Instantiate a new PostConstructViewMapEvent that indicates the argument root was just associated with its view map. - jakarta.faces.event - PostConstructViewMapEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5358 - - jakarta.faces.event - PostKeepFlashValueEvent - - - - - JSF:JAVADOC:5359 - Instantiate a new PostKeepFlashValueEvent that indicates the argument key was just kept in the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostKeepFlashValueEvent - - - java.lang.String - - - - - - JSF:JAVADOC:5360 - Instantiate a new PostKeepFlashValueEvent that indicates the argument key was just kept in the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostKeepFlashValueEvent - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5361 - - jakarta.faces.event - PostPutFlashValueEvent - - - - - JSF:JAVADOC:5362 - Instantiate a new PostPutFlashValueEvent that indicates the argument key was just put to the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostPutFlashValueEvent - - - java.lang.String - - - - - - JSF:JAVADOC:5363 - Instantiate a new PostPutFlashValueEvent that indicates the argument key was just put to the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PostPutFlashValueEvent - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5364 - Instantiate a new PostRenderViewEvent that indicates the argument root has just been rendered. - jakarta.faces.event - PostRenderViewEvent - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5365 - Instantiate a new PostRenderViewEvent that indicates the argument root has just been rendered. - jakarta.faces.event - PostRenderViewEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5366 - Instantiate a new PostRestoreStateEvent that indicates the argument component just had its state restored. - jakarta.faces.event - PostRestoreStateEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5367 - Instantiate a new PostRestoreStateEvent that indicates the argument component just had its state restored. - jakarta.faces.event - PostRestoreStateEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5368 - - jakarta.faces.event - PostRestoreStateEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5369 - Constructor - jakarta.faces.event - PostValidateEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5370 - Constructor - jakarta.faces.event - PostValidateEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5371 - Instantiate a new PreClearFlashEvent that indicates the argument key was just put to the flash. - jakarta.faces.event - PreClearFlashEvent - - - java.util.Map - - - - - - JSF:JAVADOC:5372 - Instantiate a new PreClearFlashEvent that indicates the argument key was just put to the flash. - jakarta.faces.event - PreClearFlashEvent - - - jakarta.faces.context.FacesContext - java.util.Map - - - - - - JSF:JAVADOC:5373 - The source Application that sent this event. - jakarta.faces.event - PreDestroyApplicationEvent - - - - - JSF:JAVADOC:5374 - Constructs a new PreDestroyApplicationEvent for this application. - jakarta.faces.event - PreDestroyApplicationEvent - - - jakarta.faces.application.Application - - - - - - JSF:JAVADOC:5375 - Constructs a new PreDestroyApplicationEvent for this application. - jakarta.faces.event - PreDestroyApplicationEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Application - - - - - - JSF:JAVADOC:5376 - Return the ScopeContext for this event. - jakarta.faces.event - PreDestroyCustomScopeEvent - - - - - JSF:JAVADOC:5377 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext is about to end. - jakarta.faces.event - PreDestroyCustomScopeEvent - - - jakarta.faces.event.ScopeContext - - - - - - JSF:JAVADOC:5378 - An instance of this event indicates that the custom scope enclosed within the argument scopeContext is about to end. - jakarta.faces.event - PreDestroyCustomScopeEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.event.ScopeContext - - - - - - JSF:JAVADOC:5379 - Instantiate a new ViewMapDestroydEvent that indicates the argument root just had its associated view map destroyed. - jakarta.faces.event - PreDestroyViewMapEvent - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5380 - Instantiate a new ViewMapDestroydEvent that indicates the argument root just had its associated view map destroyed. - jakarta.faces.event - PreDestroyViewMapEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5381 - - jakarta.faces.event - PreRemoveFlashValueEvent - - - - - JSF:JAVADOC:5382 - Instantiate a new PreRemoveFlashValueEvent that indicates the argument key will be removed from the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PreRemoveFlashValueEvent - - - java.lang.String - - - - - - JSF:JAVADOC:5383 - Instantiate a new PreRemoveFlashValueEvent that indicates the argument key will be removed from the flash. If the argument is null, the literal Flash#NULL_VALUE must be passed to the superclass constructor. - jakarta.faces.event - PreRemoveFlashValueEvent - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5384 - Returns true if and only if the argument listener is an instance of SystemEventListener. - jakarta.faces.event - PreRemoveFromViewEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5385 - Instantiate a new BeforeRemoveFromView that indicates the argument component is about to be removed from the view. - jakarta.faces.event - PreRemoveFromViewEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5386 - Instantiate a new BeforeRemoveFromView that indicates the argument component is about to be removed from the view. - jakarta.faces.event - PreRemoveFromViewEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5387 - Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered. - jakarta.faces.event - PreRenderComponentEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5388 - Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered. - jakarta.faces.event - PreRenderComponentEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5389 - Instantiate a new PreRenderViewEvent that indicates the argument root is about to be rendered. - jakarta.faces.event - PreRenderViewEvent - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5390 - Instantiate a new PreRenderViewEvent that indicates the argument root is about to be rendered. - jakarta.faces.event - PreRenderViewEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5391 - Constructor - jakarta.faces.event - PreValidateEvent - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5392 - Constructor - jakarta.faces.event - PreValidateEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5393 - Return the scope itself, exposed as a Map. - jakarta.faces.event - ScopeContext - - - - - JSF:JAVADOC:5394 - Return the name of this custom scope. - jakarta.faces.event - ScopeContext - - - - - JSF:JAVADOC:5395 - Construct this structure with the supplied arguments. - jakarta.faces.event - ScopeContext - - - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:5396 - Get the Faces context. If the constructor was passed a FacesContext we return it, otherwise we call FacesContext.getCurrentInstance() and return it. - jakarta.faces.event - SystemEvent - - - - - JSF:JAVADOC:5397 - Return true if this FacesListener is an instance of a the appropriate listener class that this event supports. The default implementation returns true if the listener is a ComponentSystemEventListener. - jakarta.faces.event - SystemEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5398 - Broadcast this event instance to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this instance as a parameter. - jakarta.faces.event - SystemEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5399 - Pass the argument source to the superclass constructor. - jakarta.faces.event - SystemEvent - - - java.lang.Object - - - - - - JSF:JAVADOC:5400 - Pass the argument source to the superclass constructor. - jakarta.faces.event - SystemEvent - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5401 - This method must return true if and only if this listener instance is interested in receiving events from the instance referenced by the source parameter. - jakarta.faces.event - SystemEventListener - - - java.lang.Object - - - - - - JSF:JAVADOC:5402 - When called, the listener can assume that any guarantees given in the javadoc for the specific SystemEvent subclass are true. - jakarta.faces.event - SystemEventListener - - - jakarta.faces.event.SystemEvent - - - - - - JSF:JAVADOC:5403 - if lifecycle processing should cease for this request. - jakarta.faces.event - SystemEventListener - - - jakarta.faces.event.SystemEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5404 - Return a List of SystemEventListener instances that have been installed into the class implementing this interface. - jakarta.faces.event - SystemEventListenerHolder - - - java.lang.Class - - - - - - JSF:JAVADOC:5405 - Return the current local value of the source UIComponent. - jakarta.faces.event - ValueChangeEvent - - - - - JSF:JAVADOC:5406 - Return the previous local value of the source UIComponent. - jakarta.faces.event - ValueChangeEvent - - - - - JSF:JAVADOC:5407 - Return true if this FacesListener is an instance of a listener class that this event supports. Typically, this will be accomplished by an "instanceof" check on the listener class. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5408 - Broadcast this FacesEvent to the specified FacesListener, by whatever mechanism is appropriate. Typically, this will be accomplished by calling an event processing method, and passing this FacesEvent as a paramter. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.event.FacesListener - - - - - - JSF:JAVADOC:5409 - Construct a new event object from the specified source component, old value, and new value. The default PhaseId for this event is PhaseId#ANY_PHASE. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.component.UIComponent - java.lang.Object - java.lang.Object - - - - - - JSF:JAVADOC:5410 - Construct a new event object from the Faces context, specified source component, old value and new value. The default PhaseId for this event is PhaseId#ANY_PHASE. - jakarta.faces.event - ValueChangeEvent - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - java.lang.Object - - - - - - JSF:JAVADOC:5411 - Invoked when the value change described by the specified ValueChangeEvent occurs. - jakarta.faces.event - ValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - - - - - JSF:JAVADOC:5412 - Signal the Jakarta Faces implementation that no further processing on the current event should be performed - jakarta.faces.event - ValueChangeListener - - - jakarta.faces.event.ValueChangeEvent - - jakarta.faces.event.AbortProcessingException - - - - - JSF:JAVADOC:5413 - - jakarta.faces.event - WebsocketEvent - - - java.lang.Object - - - - - - JSF:JAVADOC:5414 - Returns the . - jakarta.faces.event - WebsocketEvent - - - - - JSF:JAVADOC:5415 - Returns the close code. If this returns null, then it was Opened. If this returns non-null, then it was Closed. - jakarta.faces.event - WebsocketEvent - - - - - JSF:JAVADOC:5416 - Returns the , if any. - jakarta.faces.event - WebsocketEvent - - - - - JSF:JAVADOC:5417 - - jakarta.faces.event - WebsocketEvent - - - - - JSF:JAVADOC:5418 - - jakarta.faces.event - WebsocketEvent - - - - - JSF:JAVADOC:5419 - - jakarta.faces.event - WebsocketEvent - - - java.lang.String - java.io.Serializable - jakarta.websocket.CloseReason.CloseReason.CloseCode - - - - - - JSF:JAVADOC:5420 - - jakarta.faces.event - WebsocketEvent.Closed.Literal - - - - - JSF:JAVADOC:5421 - - jakarta.faces.event - WebsocketEvent.Opened.Literal - - - - - JSF:JAVADOC:5422 - - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5423 - Get the ClientWindow's id and append "_" and the return from #getId. Return the result. - jakarta.faces.flow - Flow - - - jakarta.faces.lifecycle.ClientWindow - - - - - - JSF:JAVADOC:5424 - Return the immutable application unique identifier for the document in which the argument flow is defined. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5425 - Return the MethodExpression that must be called by the runtime as the last thing that happens before exiting this flow. Any FlowScoped beans declared for this flow must remain in scope until after control returns from the method referenced by this MethodExpression. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5426 - Return the FlowCallNode that represents calling the targetFlow from this flow, or null if targetFlow cannot be reached from this flow. - jakarta.faces.flow - Flow - - - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:5427 - Return an immutable data structure containing all the flow call nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5428 - Return the immutable id for this Flow. This must be unique within the defining document (such as an Application Configuration Resources file), but need not be unique within the entire application. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5429 - Return an immutable data structure containing the inbound parameters that have been declared for this flow. See FlowHandler#transition for the specification of how these parameters are used. Inbound parameters are associated with a specific flow instance, while outbound parameters are associated with a FlowCallNode that causes the transition to a new flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5430 - Return the MethodExpression that must be called by the runtime immediately after activating any FlowScoped beans declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5431 - Return an immutable data structure containing all the method call nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5432 - Return an unmodifiable view of the navigation cases within this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5433 - Return the generic FlowNode by id, or null if not found. - jakarta.faces.flow - Flow - - - java.lang.String - - - - - - JSF:JAVADOC:5434 - Return an immutable data structure containing all of the return nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5435 - Return the immutable id for the default node that should be activated when this flow is entered. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5436 - Return an immutable data structure containing all of the switch nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5437 - Return an immutable data structure containing all of the view nodes declared for this flow. - jakarta.faces.flow - Flow - - - - - JSF:JAVADOC:5438 - - jakarta.faces.flow - FlowCallNode - - - - - JSF:JAVADOC:5439 - - jakarta.faces.flow - FlowCallNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5440 - - jakarta.faces.flow - FlowCallNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5441 - - jakarta.faces.flow - FlowCallNode - - - - - JSF:JAVADOC:5442 - Add the argument Flow to the collection of Flows known to the current application. The implementation must be thread safe. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - - - - - - JSF:JAVADOC:5443 - Allow for flow transitions in the case of components rendered by the renderers from component-family jakarta.faces.OutcomeTarget. These transitions must happen at the front of the request processing lifecycle due to the HTTP GET based nature of such components. Therefore, this method is called from the restore view phase of the lifecycle. Let flowId be the value in the request parameter map for the parameter whose name is given by the value of #FLOW_ID_REQUEST_PARAM_NAME. Let toFlowDocumentId be the value in the request parameter map for the paramater whose name is given by the value of #TO_FLOW_DOCUMENT_ID_REQUEST_PARAM_NAME. If toFlowDocumentId is null, take no action and return. Otherwise, let sourceFlow be the return from #getCurrentFlow(jakarta.faces.context.FacesContext). A null value indicates there is no current flow, which will be the case if this navigation is trying to enter a flow. If flowId is not null and toFlowDocumentId is not equal to the value of #NULL_FLOW, let targetFlow be the result of calling #getFlow(jakarta.faces.context.FacesContext, java.lang.String, java.lang.String), passing toFlowDocumentId and flowId as the last two arguments, respectively. If the result is non-null, let flowCallNode be the return from calling Flow#getFlowCall on the sourceFlow, passing targetFlow as the argument. Otherwise, targetFlow and flowCallNode must remain null, indicating that this is a flow return. Call FacesContext#getViewRoot() and let toViewId be the the return from calling jakarta.faces.component.UIViewRoot#getViewId on it. Call, #transition, passing the arguments gathered in the preceding algorithm. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5444 - - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:5445 - Return the currently active Flow for the argument FacesContext, or null if no flow is active. A Flow must always be associated with exactly one jakarta.faces.lifecycle.ClientWindow, but a ClientWindow may have multiple Flows. If #pushReturnMode had been called with true as the argument before invoking this method, return the preceding flow on the stack instead of the actual current flow, or null if there is no preceding flow. Otherwise, return the current flow. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5446 - Convenience overload that calls FacesContext#getCurrentInstance() and then calls through to #getCurrentFlow(jakarta.faces.context.FacesContext). - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:5447 - Return the Map that backs the #{flowScope} Jakarta Expression Language implicit object or null if no flow is currently active. - jakarta.faces.flow - FlowHandler - - - - - JSF:JAVADOC:5448 - Return the Flow whose id is equivalent to the argument id, within the scope of the argument definingDocument. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5449 - Return the last displayed viewId for the current flow, as returned by #getCurrentFlow(jakarta.faces.context.FacesContext), or null if there is no current flow. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5450 - Return true if and only if the flow referenced by the argument definingDocument and id is currently active. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5451 - Enable the correct handling of navigation when processing a return node. The default jakarta.faces.application.NavigationHandler specification requires calling this method from a finally block, immediately attempting to process the navigation rules in the context of a flow return. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5452 - Enable the correct handling of navigation when processing a return node. The default jakarta.faces.application.NavigationHandler specification requires calling this method before processing the navigation rules for the flow return, and calling #popReturnMode, from a finally block, immediately afterward. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5453 - Perform a transition in the flow graph for the current user's jakarta.faces.lifecycle.ClientWindow. Obtain references to the Flow instances corresponding to the origin and destination arguments. If the origin Flow is equal to the destination Flow, take no action and return null. Otherwise, if the outboundCallNode argument is non-null save aside the outbound parameters. For discussion evaluatedParams is a data structure that stores the evaluated values of any outbound parameters. It is necessary to evaluate these values before popping any flow scopes because the values may refer to scoped instances that need to be passed to the target flow, but will not be available once the new scope is activated. Save aside the outbound parameters using the following algorithm. If the outboundParameters property of outboundCallNode is non-null and not empty, and the inboundParameters property of the target flow is non-null and not empty, for each entry in the outbound parameters whose name matches an entry in the inbound parameters, evaluate the value of the parameter, and put the evaluated value into evaluatedParams under the corresponding name. Otherwise, consider evaluatedParams to be empty. If the destination Flow is a sub-flow of the origin Flow push the destination Flow onto the flow data structure and return the destination Flow. Otherwise, pop the current Flow from the flow data structure. If the destination Flow is non-null, make the destination Flow the current flow, pushing it onto the data structure. If evaluatedParams is not empty, for each entry, find the corresponding parameter in the target flow's inbound parameters and call its setValue method, passing the value from evaluatedParams. - jakarta.faces.flow - FlowHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.flow.Flow - jakarta.faces.flow.Flow - jakarta.faces.flow.FlowCallNode - java.lang.String - - - - - - JSF:JAVADOC:5454 - Create the singleton instance of FlowHandler. - jakarta.faces.flow - FlowHandlerFactory - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5455 - - jakarta.faces.flow - FlowHandlerFactory - - - - - JSF:JAVADOC:5456 - Create the singleton instance of FlowHandler. - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5457 - - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - - - JSF:JAVADOC:5458 - If this flow handler factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - jakarta.faces.flow.FlowHandlerFactory - - - - - - JSF:JAVADOC:5459 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.flow - FlowHandlerFactoryWrapper - - - - - JSF:JAVADOC:5460 - - jakarta.faces.flow - FlowNode - - - - - JSF:JAVADOC:5461 - - jakarta.faces.flow - FlowNode - - - - - JSF:JAVADOC:5462 - If not empty, declare the defining document id within which the Flow referenced by #value is unique. If empty the, the runtime assumes that all flow ids are unique within the scope of the application. - jakarta.faces.flow - FlowScoped - - - - - JSF:JAVADOC:5463 - Must be equivalent to the Flow#getId of a defined flow for this application. - jakarta.faces.flow - FlowScoped - - - - - JSF:JAVADOC:5464 - Return the MethodExpression to be invoked to when control passes to this node. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:5465 - Return the outcome to be used in the event of a null return from the method. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:5466 - Return the parameters to be passed to the method. - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:5467 - - jakarta.faces.flow - MethodCallNode - - - - - JSF:JAVADOC:5468 - Return the name of the parameter - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:5469 - Return a ValueExpression for the value of the parameter. Depending on the context, this expression may only ever be evaluated in a "get" operation. - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:5470 - - jakarta.faces.flow - Parameter - - - - - JSF:JAVADOC:5471 - Return the fromOutcome to be used when control passes to this return node. - jakarta.faces.flow - ReturnNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5472 - - jakarta.faces.flow - ReturnNode - - - - - JSF:JAVADOC:5473 - Return true if this case should be taken, false otherwise. - jakarta.faces.flow - SwitchCase - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5474 - Return the outcome to be used if #getCondition return true. - jakarta.faces.flow - SwitchCase - - - - - JSF:JAVADOC:5475 - - jakarta.faces.flow - SwitchCase - - - - - JSF:JAVADOC:5476 - Return the cases in this switch. - jakarta.faces.flow - SwitchNode - - - - - JSF:JAVADOC:5477 - Return the default outcome in this switch. - jakarta.faces.flow - SwitchNode - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5478 - - jakarta.faces.flow - SwitchNode - - - - - JSF:JAVADOC:5479 - Return the immutable VDL document id for this view node. This is normally the path to the VDL page that defines this view node. This must be unique within the flow. - jakarta.faces.flow - ViewNode - - - - - JSF:JAVADOC:5480 - - jakarta.faces.flow - ViewNode - - - - - JSF:JAVADOC:5481 - A MethodExpression that will be invoked when the flow is exited. - jakarta.faces.flow.builder - FlowBuilder - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5482 - A MethodExpression that will be invoked when the flow is exited. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5483 - - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:5484 - Define a flow call node. This node will cause the specified flow to be called, passing parameters if necessary. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5485 - Called as the last step in flow definition, this method must perform any implementation specific initialization and return the built Flow. If called more than one time during a given flow building process, the second and subsequent invocations must take no action and return the built flow. - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:5486 - Set the defining document id and flow id of this flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5487 - A parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5488 - A parameter that will be populated with the value from a correspondingly named outbound parameter from another flow when this flow is entered from that flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5489 - A MethodExpression that will be invoked when the flow is entered. - jakarta.faces.flow.builder - FlowBuilder - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5490 - A MethodExpression that will be invoked when the flow is entered. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5491 - Define a method call node. This node will cause the specified method to be invoked, passing parameters if necessary. The return from the method is used as the outcome for where to go next in the flow. If the method is a void method, the default outcome is used. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5492 - Define a particular combination of conditions that must match for this case to be executed, and the view id of the component tree that should be selected next. - jakarta.faces.flow.builder - FlowBuilder - - - - - JSF:JAVADOC:5493 - Define a return node. This node will cause the specified outcome to be returned to the calling flow. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5494 - Define a particular list of cases that will be inspected in the order they are defined to determine where to go next in the flow graph. If none of the cases match, the outcome from the default case is chosen. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5495 - Define a view node in a flow graph. - jakarta.faces.flow.builder - FlowBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5496 - - jakarta.faces.flow.builder - FlowBuilderParameter.Literal - - - - - JSF:JAVADOC:5497 - - jakarta.faces.flow.builder - FlowCallBuilder - - - - - JSF:JAVADOC:5498 - Define the flow reference of the called flow. - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5499 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - FlowCallBuilder - - - - - JSF:JAVADOC:5500 - Define an outbound parameter for the flow call. - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5501 - Define an outbound parameter for the flow call. - jakarta.faces.flow.builder - FlowCallBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5502 - - jakarta.faces.flow.builder - FlowDefinition.Literal - - - - - JSF:JAVADOC:5503 - If the method is a void method, or the method returns null, this can be used to specify what value should be passed to runtime when the method returns. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5504 - If the method is a void method, or the method returns null, this can be used to specify what value should be passed to runtime when the method returns. - jakarta.faces.flow.builder - MethodCallBuilder - - - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5505 - Set the method expression of this method call node. The method signature of the argument methodExpression must match the number and type of the parameters passed in the #parameters method. - jakarta.faces.flow.builder - MethodCallBuilder - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5506 - Set the method expression of this method call node. The method signature of the argument methodExpression must match the number and type of the parameters passed in the #parameters method. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5507 - Set the method expression of this method call node. The method signature of the argument methodExpression must match the number and type of the parameters passed in the #parameters method. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.lang.String - java.lang.Class[] - - - - - - JSF:JAVADOC:5508 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - MethodCallBuilder - - - - - JSF:JAVADOC:5509 - - jakarta.faces.flow.builder - MethodCallBuilder - - - - - JSF:JAVADOC:5510 - Set the parameters of the method call node. - jakarta.faces.flow.builder - MethodCallBuilder - - - java.util.List - - - - - - JSF:JAVADOC:5511 - Set the if of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5512 - Set the if of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5513 - Set the from-action of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5514 - Set the from-outcome of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5515 - Set the from-view-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5516 - - jakarta.faces.flow.builder - NavigationCaseBuilder - - - - - JSF:JAVADOC:5517 - Create a redirect within this navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - - - JSF:JAVADOC:5518 - Set the to-flow-document-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5519 - Set the to-view-id of the current navigation case. - jakarta.faces.flow.builder - NavigationCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5520 - Indicates the current redirect should include view parameters. - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - - - JSF:JAVADOC:5521 - - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - - - JSF:JAVADOC:5522 - Add a parameter to the redirect. - jakarta.faces.flow.builder - NavigationCaseBuilder.RedirectBuilder - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5523 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - NodeBuilder - - - - - JSF:JAVADOC:5524 - Set the outcome of the current return node. - jakarta.faces.flow.builder - ReturnBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5525 - Set the outcome of the current return node. - jakarta.faces.flow.builder - ReturnBuilder - - - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5526 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - ReturnBuilder - - - - - JSF:JAVADOC:5527 - - jakarta.faces.flow.builder - ReturnBuilder - - - - - JSF:JAVADOC:5528 - Set the default outcome of the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5529 - Set the default outcome of the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5530 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:5531 - - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:5532 - Create a switch case in the current switch. - jakarta.faces.flow.builder - SwitchBuilder - - - - - JSF:JAVADOC:5533 - Set the if in the previously created switch case. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - jakarta.el.ValueExpression - - - - - - JSF:JAVADOC:5534 - Set the if in the previously created switch case. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5535 - Set the outcome in the previously created switch case. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - java.lang.String - - - - - - JSF:JAVADOC:5536 - Create a new case in the current switch. - jakarta.faces.flow.builder - SwitchCaseBuilder - - - - - JSF:JAVADOC:5537 - - jakarta.faces.flow.builder - SwitchCaseBuilder - - - - - JSF:JAVADOC:5538 - Mark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node. - jakarta.faces.flow.builder - ViewBuilder - - - - - JSF:JAVADOC:5539 - - jakarta.faces.flow.builder - ViewBuilder - - - - - JSF:JAVADOC:5540 - - jakarta.faces.lifecycle - ClientWindow - - - - - JSF:JAVADOC:5541 - The implementation is responsible for examining the incoming request and extracting the value that must be returned from the #getId method. If #CLIENT_WINDOW_MODE_PARAM_NAME is "none" this method must not be invoked. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate an id that uniquely identifies this ClientWindow within the scope of the current session. This value must be made available to return from the #getId method. The value must be suitable for inclusion as a hidden field or query parameter. If a value is found, decrypt it using the key from the session and make it available for return from #getId. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5542 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first before rendering those URLs. The caller must call #enableClientWindowRenderMode(jakarta.faces.context.FacesContext) from a finally block after rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5543 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first after rendering those URLs. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5544 - Return a String value that uniquely identifies this ClientWindow within the scope of the current session. See #decode for the specification of how to derive this value. - jakarta.faces.lifecycle - ClientWindow - - - - - JSF:JAVADOC:5545 - This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL. This guarantees custom ClientWindow implementations that they will have the opportunity to insert any additional client window specific information in any case where a URL is generated, such as the rendering of hyperlinks. The returned map must be immutable. The default implementation of this method returns the empty map. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5546 - Methods that append the ClientWindow to generated URLs must call this method to see if they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindow - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5547 - - jakarta.faces.lifecycle - ClientWindowFactory - - - - - JSF:JAVADOC:5548 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.lifecycle - ClientWindowFactory - - - jakarta.faces.lifecycle.ClientWindowFactory - - - - - - JSF:JAVADOC:5549 - The implementation is responsible for creating the ClientWindow instance for this request. If ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME is "none" or unspecified, this method must return null. If ClientWindow#CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must return a ClientWindow instance that implements the url-mode semantics described in ClientWindow. - jakarta.faces.lifecycle - ClientWindowFactory - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5550 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.lifecycle - ClientWindowFactory - - - - - JSF:JAVADOC:5551 - - jakarta.faces.lifecycle - ClientWindowWrapper - - - - - JSF:JAVADOC:5552 - If this client window has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.lifecycle.ClientWindow - - - - - - JSF:JAVADOC:5553 - The implementation is responsible for examining the incoming request and extracting the value that must be returned from the #getId method. If #CLIENT_WINDOW_MODE_PARAM_NAME is "none" this method must not be invoked. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_PARAM. If no value is found, look for a request parameter under the name given by the value of jakarta.faces.render.ResponseStateManager#CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate an id that uniquely identifies this ClientWindow within the scope of the current session. This value must be made available to return from the #getId method. The value must be suitable for inclusion as a hidden field or query parameter. If a value is found, decrypt it using the key from the session and make it available for return from #getId. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5554 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first before rendering those URLs. The caller must call #enableClientWindowRenderMode(jakarta.faces.context.FacesContext) from a finally block after rendering the URL. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5555 - Components that permit per-use disabling of the appending of the ClientWindow in generated URLs must call this method first after rendering those URLs. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5556 - Return a String value that uniquely identifies this ClientWindow within the scope of the current session. See #decode for the specification of how to derive this value. - jakarta.faces.lifecycle - ClientWindowWrapper - - - - - JSF:JAVADOC:5557 - This method will be called whenever a URL is generated by the runtime where client window related parameters need to be inserted into the URL. This guarantees custom ClientWindow implementations that they will have the opportunity to insert any additional client window specific information in any case where a URL is generated, such as the rendering of hyperlinks. The returned map must be immutable. The default implementation of this method returns the empty map. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5558 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.lifecycle - ClientWindowWrapper - - - - - JSF:JAVADOC:5559 - Methods that append the ClientWindow to generated URLs must call this method to see if they are permitted to do so. If #CLIENT_WINDOW_MODE_PARAM_NAME is "url" without the quotes, all generated URLs that cause a GET request must append the ClientWindow by default. This is specified as a static method because callsites need to access it without having access to an actual ClientWindow instance. - jakarta.faces.lifecycle - ClientWindowWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5560 - Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:5561 - Create or restore the ClientWindow to be used to display the jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation for ClientWindow for an overview of the feature. If jakarta.faces.context.ExternalContext#getClientWindow() returns null, create a new instance of ClientWindow using the ClientWindowFactory. If the result is non-null, call ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5562 - Return the set of registered PhaseListeners for this Lifecycle instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.lifecycle - Lifecycle - - - - - JSF:JAVADOC:5563 - Deregister an existing PhaseListener instance that is no longer interested in being notified before and after the processing for standard phases of the request processing lifecycle. If no such listener instance has been registered, no action is taken. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:5564 - Execute the Render Response phase of the request processing lifecycle, unless the responseComplete() method has been called on the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5565 - if an exception is thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - Lifecycle - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:5566 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.lifecycle - LifecycleFactory - - - - - JSF:JAVADOC:5567 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.lifecycle - LifecycleFactory - - - jakarta.faces.lifecycle.LifecycleFactory - - - - - - JSF:JAVADOC:5568 - Register a new PhaseListener instance that is interested in being notified before and after the processing for standard phases of the request processing lifecycle. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:5569 - Create or restore the ClientWindow to be used to display the jakarta.faces.component.UIViewRoot for this run through the lifecycle. See the class documentation for ClientWindow for an overview of the feature. If jakarta.faces.context.ExternalContext#getClientWindow() returns null, create a new instance of ClientWindow using the ClientWindowFactory. If the result is non-null, call ClientWindow#decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by calling jakarta.faces.context.ExternalContext#setClientWindow(jakarta.faces.lifecycle.ClientWindow). - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5570 - Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order. The processing flow can be affected (by the application, by components, or by event listeners) by calls to the renderResponse() or responseComplete() methods of the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5571 - if thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:5572 - Return the set of registered PhaseListeners for this Lifecycle instance. If there are no registered listeners, a zero-length array is returned. - jakarta.faces.lifecycle - LifecycleWrapper - - - - - JSF:JAVADOC:5573 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.lifecycle - LifecycleWrapper - - - - - JSF:JAVADOC:5574 - - jakarta.faces.lifecycle - LifecycleWrapper - - - - - JSF:JAVADOC:5575 - If this lifecycle has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.lifecycle.Lifecycle - - - - - - JSF:JAVADOC:5576 - Deregister an existing PhaseListener instance that is no longer interested in being notified before and after the processing for standard phases of the request processing lifecycle. If no such listener instance has been registered, no action is taken. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.event.PhaseListener - - - - - - JSF:JAVADOC:5577 - Execute the Render Response phase of the request processing lifecycle, unless the responseComplete() method has been called on the FacesContext instance associated with the current request. - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5578 - if an exception is thrown during the execution of the request processing lifecycle - jakarta.faces.lifecycle - LifecycleWrapper - - - jakarta.faces.context.FacesContext - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:5579 - Construct a new ArrayDataModel with no specified wrapped data. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5580 - Construct a new ArrayDataModel wrapping the specified array. - jakarta.faces.model - ArrayDataModel - - - java.lang.Object[] - - - - - - JSF:JAVADOC:5581 - If there is wrappedData available, return the length of the array. If no wrappedData is available, return -1. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5582 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5583 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5584 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5585 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the length of the array. Otherwise, return false. - jakarta.faces.model - ArrayDataModel - - - - - JSF:JAVADOC:5586 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ArrayDataModel - - - int - - - - - - JSF:JAVADOC:5587 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ArrayDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5588 - Construct a new CollectionDataModel with no specified wrapped data. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5589 - Construct a new CollectionDataModel wrapping the specified list. - jakarta.faces.model - CollectionDataModel - - - java.util.Collection - - - - - - JSF:JAVADOC:5590 - If there is wrappedData available, return the length of the list. If no wrappedData is available, return -1. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5591 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5592 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5593 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5594 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the size of the list. Otherwise, return false. - jakarta.faces.model - CollectionDataModel - - - - - JSF:JAVADOC:5595 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - CollectionDataModel - - - int - - - - - - JSF:JAVADOC:5596 - Set the wrapped data. - jakarta.faces.model - CollectionDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5597 - Add a new DataModelListener to the set interested in notifications from this DataModel. - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - - - - - JSF:JAVADOC:5598 - - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5599 - Return the set of DataModelListeners interested in notifications from this DataModel. If there are no such listeners, an empty array is returned. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5600 - Return the number of rows of data objects represented by this DataModel. If the number of rows is unknown, or no wrappedData is available, return -1. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5601 - Return an object representing the data for the currently selected row index. If no wrappedData is available, return null. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5602 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5603 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5604 - Return a flag indicating whether there is rowData available at the current rowIndex. If no wrappedData is available, return false. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5605 - Return a read-only Iterator over the row data for this model. - jakarta.faces.model - DataModel - - - - - JSF:JAVADOC:5606 - Remove an existing DataModelListener from the set interested in notifications from this DataModel. - jakarta.faces.model - DataModel - - - jakarta.faces.model.DataModelListener - - - - - - JSF:JAVADOC:5607 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - DataModel - - - int - - - - - - JSF:JAVADOC:5608 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - DataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5609 - Construct an event object that is associated with the specified row index and associated data. - jakarta.faces.model - DataModelEvent - - - jakarta.faces.model.DataModel - int - java.lang.Object - - - - - - JSF:JAVADOC:5610 - Return the DataModel that fired this event. - jakarta.faces.model - DataModelEvent - - - - - JSF:JAVADOC:5611 - Return the object representing the data for the specified row index, or null for no associated row data. - jakarta.faces.model - DataModelEvent - - - - - JSF:JAVADOC:5612 - Return the row index for this event, or -1 for no specific row. - jakarta.faces.model - DataModelEvent - - - - - JSF:JAVADOC:5613 - Notification that a particular row index, with the associated row data, has been selected for processing. - jakarta.faces.model - DataModelListener - - - jakarta.faces.model.DataModelEvent - - - - - - JSF:JAVADOC:5614 - The value of this annotation attribute is taken to be the type that the DataModel that is annotated with this annotation is able to wrap. - jakarta.faces.model - FacesDataModel - - - - - JSF:JAVADOC:5615 - The value of this annotation attribute is taken to be the type that the DataModel that is annotated with this annotation is able to wrap. - jakarta.faces.model - FacesDataModel.Literal - - - - - JSF:JAVADOC:5616 - - jakarta.faces.model - FacesDataModel.Literal - - - java.lang.Class - - - - - - JSF:JAVADOC:5617 - Return the number of rows of data objects represented by this DataModel. If the number of rows is unknown, or no wrappedData is available, return -1. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5618 - Return an object representing the data for the currenty selected row index. If no wrappedData is available, return null. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5619 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5620 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5621 - Return a flag indicating whether there is rowData available at the current rowIndex. If no wrappedData is available, return false. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5622 - Construct a new IterableDataModel with no specified wrapped data. - jakarta.faces.model - IterableDataModel - - - - - JSF:JAVADOC:5623 - Construct a new IterableDataModel wrapping the specified iterable. - jakarta.faces.model - IterableDataModel - - - java.lang.Iterable - - - - - - JSF:JAVADOC:5624 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - IterableDataModel - - - int - - - - - - JSF:JAVADOC:5625 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - IterableDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5626 - If there is wrappedData available, return the length of the list. If no wrappedData is available, return -1. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5627 - If row data is available, return the array element at the index specified by rowIndex. If no wrapped data is available, return null. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5628 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5629 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5630 - Return true if there is wrappedData available, and the current value of rowIndex is greater than or equal to zero, and less than the size of the list. Otherwise, return false. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5631 - Construct a new ListDataModel with no specified wrapped data. - jakarta.faces.model - ListDataModel - - - - - JSF:JAVADOC:5632 - Construct a new ListDataModel wrapping the specified list. - jakarta.faces.model - ListDataModel - - - java.util.List - - - - - - JSF:JAVADOC:5633 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ListDataModel - - - int - - - - - - JSF:JAVADOC:5634 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ListDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5635 - Return -1, since ResultSet does not provide a standard way to determine the number of available rows without scrolling through the entire ResultSet, and this can be very expensive if the number of rows is large. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5636 - If row data is available, return a Map representing the values of the columns for the row specified by rowIndex, keyed by the corresponding column names. If no wrapped data is available, return null. If a non-null Map is returned, its behavior must correspond to the contract for a mutable Map as described in the JavaDocs for AbstractMap, with the following exceptions and specialized behavior: The Map, and any supporting objects it returns, must perform all column name comparisons in a case-insensitive manner. This case-insensitivity must be implemented using a case-insensitive Comparator, such as String.CASE_INSENSITIVE_ORDER. The following methods must throw UnsupportedOperationException: clear(), remove(). The entrySet() method must return a Set that has the following behavior: Throw UnsupportedOperationException for any attempt to add or remove entries from the Set, either directly or indirectly through an Iterator returned by the Set. Updates to the value of an entry in this set must write through to the corresponding column value in the underlying ResultSet. The keySet() method must return a Set that throws UnsupportedOperationException on any attempt to add or remove keys, either directly or through an Iterator returned by the Set. The put() method must throw IllegalArgumentException if a key value for which containsKey() returns false is specified. However, if a key already present in the Map is specified, the specified value must write through to the corresponding column value in the underlying ResultSet. The values() method must return a Collection that throws UnsupportedOperationException on any attempt to add or remove values, either directly or through an Iterator returned by the Collection. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5637 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5638 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5639 - Return true if there is wrappedData available, and the result of calling absolute() on the underlying ResultSet, passing the current value of rowIndex plus one (to account for the fact that ResultSet uses one-relative indexing), returns true. Otherwise, return false. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5640 - Construct a new ResultSetDataModel with no specified wrapped data. - jakarta.faces.model - ResultSetDataModel - - - - - JSF:JAVADOC:5641 - Construct a new ResultSetDataModel wrapping the specified ResultSet. - jakarta.faces.model - ResultSetDataModel - - - java.sql.ResultSet - - - - - - JSF:JAVADOC:5642 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ResultSetDataModel - - - int - - - - - - JSF:JAVADOC:5643 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ResultSetDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5644 - If there is wrappedData available, return 1. If no wrappedData is available, return -1. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5645 - If wrapped data is available, return the wrapped data instance. Otherwise, return null. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5646 - Return the zero-relative index of the currently selected row. If we are not currently positioned on a row, or no wrappedData is available, return -1. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5647 - Return the object representing the data wrapped by this DataModel, if any. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5648 - Return true if there is wrappedData available, and the current value of rowIndex is zero. Otherwise, return false. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5649 - Construct a new ScalarDataModel with no specified wrapped data. - jakarta.faces.model - ScalarDataModel - - - - - JSF:JAVADOC:5650 - Construct a new ScalarDataModel wrapping the specified scalar object. - jakarta.faces.model - ScalarDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5651 - Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. It is possible to set the row index at a value for which the underlying data collection does not contain any row data. Therefore, callers may use the isRowAvailable() method to detect whether row data will be available for use by the getRowData() method. If there is no wrappedData available when this method is called, the specified rowIndex is stored (and may be retrieved by a subsequent call to getRowData()), but no event is sent. Otherwise, if the currently selected row index is changed by this call, a DataModelEvent will be sent to the rowSelected() method of all registered DataModelListeners. - jakarta.faces.model - ScalarDataModel - - - int - - - - - - JSF:JAVADOC:5652 - Set the object representing the data collection wrapped by this DataModel. If the specified data is null, detach this DataModel from any previously wrapped data collection instead. If data is non-null, the currently selected row index must be set to zero, and a DataModelEvent must be sent to the rowSelected() method of all registered DataModelListeners indicating that this row is now selected. - jakarta.faces.model - ScalarDataModel - - - java.lang.Object - - - - - - JSF:JAVADOC:5653 - Return a description of this item, for use in development tools. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5654 - Return the label of this item, to be rendered visibly for the user. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5655 - Return the value of this item, to be delivered to the model if this item is selected by the user. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5656 - Return the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5657 - If and only if this returns true, the code that renders this select item must escape the label using escaping syntax appropriate to the content type being rendered. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5658 - Return the value of the noSelectionOption property. If the value of this property is true, the system interprets the option represented by this SelectItem instance as representing a "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5659 - Construct a SelectItem with no initialized property values. - jakarta.faces.model - SelectItem - - - - - JSF:JAVADOC:5660 - Construct a SelectItem with the specified value. The label property will be set to the value (converted to a String, if necessary), the description property will be set to null, the disabled property will be set to false, and the escape property will be set to ( true. - jakarta.faces.model - SelectItem - - - java.lang.Object - - - - - - JSF:JAVADOC:5661 - Construct a SelectItem with the specified value and label. The description property will be set to null, the disabled property will be set to false, and the escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - - - - - - JSF:JAVADOC:5662 - Construct a SelectItem instance with the specified value, label and description. This disabled property will be set to false, and the escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5663 - Construct a SelectItem instance with the specified property values. The escape property will be set to true. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - - - - - - JSF:JAVADOC:5664 - Construct a SelectItem instance with the specified property values. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - boolean - - - - - - JSF:JAVADOC:5665 - Construct a SelectItem instance with the specified property values. - jakarta.faces.model - SelectItem - - - java.lang.Object - java.lang.String - java.lang.String - boolean - boolean - boolean - - - - - - JSF:JAVADOC:5666 - Set the description of this item, for use in development tools. - jakarta.faces.model - SelectItem - - - java.lang.String - - - - - - JSF:JAVADOC:5667 - Set the disabled flag for this item, which should modify the rendered output to make this item unavailable for selection by the user if set to true. - jakarta.faces.model - SelectItem - - - boolean - - - - - - JSF:JAVADOC:5668 - Set the value of the escape property. See #isEscape. - jakarta.faces.model - SelectItem - - - boolean - - - - - - JSF:JAVADOC:5669 - Set the label of this item, to be rendered visibly for the user. - jakarta.faces.model - SelectItem - - - java.lang.String - - - - - - JSF:JAVADOC:5670 - Set the value of the noSelectionOption property. - jakarta.faces.model - SelectItem - - - boolean - - - - - - JSF:JAVADOC:5671 - Set the value of this item, to be delivered to the model if this item is selected by this user. - jakarta.faces.model - SelectItem - - - java.lang.Object - - - - - - JSF:JAVADOC:5672 - Return the set of subordinate SelectItems for this group. - jakarta.faces.model - SelectItemGroup - - - - - JSF:JAVADOC:5673 - Construct a SelectItemGroup with no initialized property values. - jakarta.faces.model - SelectItemGroup - - - - - JSF:JAVADOC:5674 - Construct a SelectItemGroup with the specified label and no associated selectItems. The value property will be set to a zero-length String, the description property will be set to null, and the disabled property will be set to false. - jakarta.faces.model - SelectItemGroup - - - java.lang.String - - - - - - JSF:JAVADOC:5675 - Construct a SelectItemGroup with the specified properties. The value property will be set to a zero-length String. - jakarta.faces.model - SelectItemGroup - - - java.lang.String - java.lang.String - boolean - jakarta.faces.model.SelectItem[] - - - - - - JSF:JAVADOC:5676 - Construct a SelectItemGroup with the specified properties. The value property will be set to a zero-length String. - jakarta.faces.model - SelectItemGroup - - - java.lang.String - java.lang.String - boolean - java.util.Collection - - - - - - JSF:JAVADOC:5677 - Set the set of subordinate SelectItems for this group as a variable array. - jakarta.faces.model - SelectItemGroup - - - jakarta.faces.model.SelectItem[] - - - - - - JSF:JAVADOC:5678 - Set the set of subordinate SelectItems for this group as a collection. - jakarta.faces.model - SelectItemGroup - - - java.util.Collection - - - - - - JSF:JAVADOC:5679 - (Optional) The name of the push channel. If not specified the name of the injection target field will be used. - jakarta.faces.push - Push - - - - - JSF:JAVADOC:5680 - (Optional) The name of the push channel. If not specified the name of the injection target field will be used. - jakarta.faces.push - Push.Literal - - - - - JSF:JAVADOC:5681 - - jakarta.faces.push - Push.Literal - - - java.lang.String - - - - - - JSF:JAVADOC:5682 - Send given message object to the push socket channel as identified by #64;Push. The message object will be encoded as JSON and be available as first argument of the JavaScript listener function declared in . - jakarta.faces.push - PushContext - - - java.lang.Object - - - - - - JSF:JAVADOC:5683 - Send given message object to the push socket channel as identified by #64;Push, targeted to the given user as identified by . The message object will be encoded as JSON and be available as first argument of the JavaScript listener function declared in . - jakarta.faces.push - PushContext - - - java.lang.Object - java.io.Serializable - - - - - - JSF:JAVADOC:5684 - Send given message object to the push socket channel as identified by #64;Push, targeted to the given users as identified by . The message object will be encoded as JSON and be available as first argument of the JavaScript listener function declared in . - jakarta.faces.push - PushContext - - - java.lang.Object - java.util.Collection - - - - - - JSF:JAVADOC:5685 - - jakarta.faces.render - ClientBehaviorRenderer - - - - - JSF:JAVADOC:5686 - Decode any new state of this ClientBehavior from the request contained in the specified FacesContext. During decoding, events may be enqueued for later processing (by event listeners who have registered an interest), by calling queueEvent(). - jakarta.faces.render - ClientBehaviorRenderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - jakarta.faces.component.behavior.ClientBehavior - - - - - - JSF:JAVADOC:5687 - Return the script that implements this ClientBehavior's client-side logic. The default implementation returns null. ClientBehaviorRenderer.getScript() implementations are allowed to return null to indicate that no script is required for this particular getScript() call. For example, a ClientBehaviorRenderer implementation may return null if the associated ClientBehavior is disabled. - jakarta.faces.render - ClientBehaviorRenderer - - - jakarta.faces.component.behavior.ClientBehaviorContext - jakarta.faces.component.behavior.ClientBehavior - - - - - - JSF:JAVADOC:5688 - Within the RenderKit, the value of this annotation attribute is taken to be the renderer-type - jakarta.faces.render - FacesBehaviorRenderer - - - - - JSF:JAVADOC:5689 - The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of Renderer must be installed. - jakarta.faces.render - FacesBehaviorRenderer - - - - - JSF:JAVADOC:5690 - The value of this annotation attribute is taken to be the component-family which, in combination with #rendererType can be used to obtain a reference to an instance of this Renderer by calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - jakarta.faces.render - FacesRenderer - - - - - JSF:JAVADOC:5691 - The value of this annotation attribute is taken to be the renderer-type which, in combination with #componentFamily can be used to obtain a reference to an instance of this Renderer by calling jakarta.faces.render.RenderKit#getRenderer(java.lang.String, java.lang.String). - jakarta.faces.render - FacesRenderer - - - - - JSF:JAVADOC:5692 - The value of this annotation attribute is taken to be the render-kit-id in which an instance of this class of Renderer must be installed. - jakarta.faces.render - FacesRenderer - - - - - JSF:JAVADOC:5693 - Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument clientId unchanged. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5694 - Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). If conversion is successful, the new value should be returned from this method; if not, a ConverterException should be thrown. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5695 - if the submitted value cannot be converted successfully. - jakarta.faces.render - Renderer - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - - JSF:JAVADOC:5696 - Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false. - jakarta.faces.render - Renderer - - - - - JSF:JAVADOC:5697 - Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument clientId unchanged. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5698 - Decode any new state of the specified UIComponent from the request contained in the specified FacesContext, and store that state on the UIComponent. During decoding, events may be enqueued for later processing (by event listeners that have registered an interest), by calling queueEvent() on the associated UIComponent. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5699 - Render the beginning specified UIComponent to the output stream or writer associated with the response we are creating. If the conversion attempted in a previous call to getConvertedValue() for this component failed, the state information saved during execution of decode() should be used to reproduce the incorrect input. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5700 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5701 - Render the child components of this UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. This method will only be called if the rendersChildren property of this component is true. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5702 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5703 - Render the ending of the current state of the specified UIComponent, following the rules described for encodeBegin() to acquire the appropriate value to be rendered. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5704 - if an input/output error occurs while rendering - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5705 - Attempt to convert previously stored state information into an object of the type required for this component (optionally using the registered jakarta.faces.convert.Converter for this component, if there is one). If conversion is successful, the new value should be returned from this method; if not, a ConverterException should be thrown. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5706 - if the submitted value cannot be converted successfully. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.convert.ConverterException - - - - - JSF:JAVADOC:5707 - Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false. - jakarta.faces.render - RendererWrapper - - - - - JSF:JAVADOC:5708 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.render - RendererWrapper - - - - - JSF:JAVADOC:5709 - - jakarta.faces.render - RendererWrapper - - - - - JSF:JAVADOC:5710 - If this renderer has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.render - RendererWrapper - - - jakarta.faces.render.Renderer - - - - - - JSF:JAVADOC:5711 - Register the specified ClientBehaviorRenderer instance, associated with the specified component type, to the set of ClientBehaviorRenderers registered with this RenderKit, replacing any previously registered ClientBehaviorRenderer for this type. - jakarta.faces.render - RenderKit - - - java.lang.String - jakarta.faces.render.ClientBehaviorRenderer - - - - - - JSF:JAVADOC:5712 - Register the specified Renderer instance, associated with the specified component family and rendererType, to the set of Renderers registered with this RenderKit, replacing any previously registered Renderer for this combination of identifiers. - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - jakarta.faces.render.Renderer - - - - - - JSF:JAVADOC:5713 - Use the provided OutputStream to create a new ResponseStream instance. - jakarta.faces.render - RenderKit - - - java.io.OutputStream - - - - - - JSF:JAVADOC:5714 - Use the provided Writer to create a new ResponseWriter instance for the specified (optional) content type, and character encoding. Implementors are advised to consult the getCharacterEncoding() method of class jakarta.servlet.ServletResponse to get the required value for the characterEncoding for this method. Since the Writer for this response will already have been obtained (due to it ultimately being passed to this method), we know that the character encoding cannot change during the rendering of the response. - jakarta.faces.render - RenderKit - - - java.io.Writer - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5715 - Return the ClientBehaviorRenderer instance most recently registered for the specified type, if any; otherwise, return null. - jakarta.faces.render - RenderKit - - - java.lang.String - - - - - - JSF:JAVADOC:5716 - Return an Iterator over the ClientBehaviorRenderer types. - jakarta.faces.render - RenderKit - - - - - JSF:JAVADOC:5717 - Return an Iterator over the component-family entries supported by this RenderKit instance. The default implementation of this method returns an empty Iterator - jakarta.faces.render - RenderKit - - - - - JSF:JAVADOC:5718 - Return the Renderer instance most recently registered for the specified component family and rendererType, if any; otherwise, return null. - jakarta.faces.render - RenderKit - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5719 - Return an instance of ResponseStateManager to handle rendering technology specific state management decisions. - jakarta.faces.render - RenderKit - - - - - JSF:JAVADOC:5720 - Return a RenderKit instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specified FacesContext, if non-null. If there is no registered RenderKit for the specified identifier, return null. The set of available render kit identifiers is available via the getRenderKitIds() method. - jakarta.faces.render - RenderKitFactory - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5721 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.render - RenderKitFactory - - - - - JSF:JAVADOC:5722 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.render - RenderKitFactory - - - jakarta.faces.render.RenderKitFactory - - - - - - JSF:JAVADOC:5723 - The default behavior of this method is to call RenderKit#addClientBehaviorRenderer(String, ClientBehaviorRenderer) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - jakarta.faces.render.ClientBehaviorRenderer - - - - - - JSF:JAVADOC:5724 - The default behavior of this method is to call RenderKit#addRenderer(String, String, Renderer) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - java.lang.String - jakarta.faces.render.Renderer - - - - - - JSF:JAVADOC:5725 - The default behavior of this method is to call RenderKit#createResponseStream(java.io.OutputStream) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.io.OutputStream - - - - - - JSF:JAVADOC:5726 - The default behavior of this method is to call RenderKit#createResponseWriter(java.io.Writer, String, String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.io.Writer - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5727 - The default behavior of this method is to call RenderKit#getClientBehaviorRenderer(String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5728 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getClientBehaviorRendererTypes() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - - JSF:JAVADOC:5729 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getComponentFamilies() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - - JSF:JAVADOC:5730 - The default behavior of this method is to call RenderKit#getRenderer(String, String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5731 - The default behavior of this method is to call RenderKit#getRendererTypes(String) on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - java.lang.String - - - - - - JSF:JAVADOC:5732 - The default behavior of this method is to call jakarta.faces.render.RenderKit#getResponseStateManager() on the wrapped RenderKit object. - jakarta.faces.render - RenderKitWrapper - - - - - JSF:JAVADOC:5733 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.render - RenderKitWrapper - - - - - JSF:JAVADOC:5734 - - jakarta.faces.render - RenderKitWrapper - - - - - JSF:JAVADOC:5735 - If this render kit has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.render - RenderKitWrapper - - - jakarta.faces.render.RenderKit - - - - - - JSF:JAVADOC:5736 - Compliant implementations must return a cryptographically strong token for use to protect views in this application. For backwards compatibility with earlier revisions, a default implementation is provided that simply returns null. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5737 - The implementation must inspect the current request and return an Object representing the tree structure and component state passed in to a previous invocation of #writeState(jakarta.faces.context.FacesContext,java.lang.Object). If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, writeState() will have encrypted the state in a tamper evident manner. If the state fails to decrypt, or decrypts but indicates evidence of tampering, a jakarta.faces.application.ProtectedViewException must be thrown. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5738 - Return the specified state as a String without any markup related to the rendering technology supported by this ResponseStateManager. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5739 - Return true if the current request is a postback. This method is leveraged from the Restore View Phase to determine if jakarta.faces.application.ViewHandler#restoreView or jakarta.faces.application.ViewHandler#createView should be called. The default implementation must return true if this ResponseStateManager instance wrote out state on a previous request to which this request is a postback, false otherwise. The implementation of this method for the Standard HTML RenderKit must consult the jakarta.faces.context.ExternalContext's requestParameterMap and return true if and only if there is a key equal to the value of the symbolic constant #VIEW_STATE_PARAM. For backwards compatibility with implementations of ResponseStateManager prior to Jakarta Faces 1.2, a default implementation is provided that consults the jakarta.faces.context.ExternalContext's requestParameterMap and return true if its size is greater than 0. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5740 - If the preceding call to #writeState(jakarta.faces.context.FacesContext, java.lang.Object) was stateless, return true. If the preceding call to writeState() was stateful, return false. Otherwise throw IllegalStateException. To preserve backward compatibility with custom implementations that may have extended from an earlier version of this class, an implementation is provided that returns false. A compliant implementation must override this method to take the specified action. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5741 - - jakarta.faces.render - ResponseStateManager - - - - - JSF:JAVADOC:5742 - Take the argument state and write it into the output using the current ResponseWriter, which must be correctly positioned already. Call FacesContext#getViewRoot(). If jakarta.faces.component.UIComponent#isTransient() returns true, take implementation specific action so that the following call to #isStateless returns true and return. Otherwise, proceed as follows. If the state is to be written out to hidden fields, the implementation must take care to make all necessary character replacements to make the Strings suitable for inclusion as an HTTP request paramater. If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT, the implementation must encrypt the state to be saved to the client in a tamper evident manner. If the state saving method for this application is jakarta.faces.application.StateManager#STATE_SAVING_METHOD_SERVER, and the current request is an Ajax request jakarta.faces.context.PartialViewContext#isAjaxRequest returns true), use the current view state identifier if it is available (do not generate a new identifier). Write out the render kit identifier associated with this ResponseStateManager implementation with the name as the value of the String constant ResponseStateManager.RENDER_KIT_ID_PARAM. The render kit identifier must not be written if: it is the default render kit identifier as returned by jakarta.faces.application.Application#getDefaultRenderKitId() or the render kit identfier is the value of jakarta.faces.render.RenderKitFactory.HTML_BASIC_RENDER_KIT and jakarta.faces.application.Application#getDefaultRenderKitId() returns null. The jakarta.faces.lifecycle.ClientWindow must be written using these steps. Call jakarta.faces.context.ExternalContext#getClientWindow. If the result is null, take no further action regarding the ClientWindow. If the result is non-null, write a hidden field whose name is #CLIENT_WINDOW_PARAM and whose id is jakarta.faces.ClientWindow where is the currently configured UINamingContainer.getSeparatorChar(). is the return from UIViewRoot.getContainerClientId() on the view from whence this state originated. is a number that must be unique within this view, but must not be included in the view state. The value of the field is implementation dependent but must uniquely identify this window within the user's session. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5743 - if the state argument is not an array of length 2. - jakarta.faces.render - ResponseStateManager - - - jakarta.faces.context.FacesContext - java.lang.Object - - java.io.IOException - - - - - JSF:JAVADOC:5744 - - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5745 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5746 - Return the validation groups passed to the Validation API when checking constraints. If the validationGroupsArray attribute is omitted or empty, the validation groups will be inherited from the branch defaults, or if there are no branch defaults, the jakarta.validation.groups.Default group will be used. - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5747 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5748 - - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5749 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - BeanValidator - - - - - JSF:JAVADOC:5750 - - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5751 - - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5752 - - jakarta.faces.validator - BeanValidator - - - boolean - - - - - - JSF:JAVADOC:5753 - A comma-separated list of validation groups which are used to filter which validations get checked by this validator. If the validationGroupsArray attribute is omitted or is empty, the validation groups will be inherited from the branch defaults or, if there are no branch defaults, the jakarta.validation.groups.Default group will be used. - jakarta.faces.validator - BeanValidator - - - java.lang.String - - - - - - JSF:JAVADOC:5754 - Verify that the value is valid according to the Bean Validation constraints. Obtain a ValidatorFactory instance by calling jakarta.validation.Validation#buildDefaultValidatorFactory. Let validationGroupsArray be a Class [] representing validator groups set on the component by the tag handler for this validator. The first search component terminates the search for the validation groups value. If no such value is found use the class name of jakarta.validation.groups.Default as the value of the validation groups. Let valueExpression be the return from calling UIComponent#getValueExpression on the argument component, passing the literal string #8220;value #8221; (without the quotes) as an argument. If this application is running in an environment with Jakarta Expression Language, obtain the ValueReference from valueExpression and let valueBaseClase be the return from calling ValueReference.getBase() and valueProperty be the return from calling ValueReference.getProperty(). If an earlier version of Jakarta Expression Language is present, use the appropriate methods to inspect valueExpression and derive values for valueBaseClass and valueProperty. If no ValueReference can be obtained, take no action and return. If ValueReference.getBase() return null, take no action and return. Obtain the ValidatorContext from the ValidatorFactory. Decorate the MessageInterpolator returned from ValidatorFactory#getMessageInterpolator with one that leverages the Locale returned from jakarta.faces.component.UIViewRoot#getLocale, and store it in the ValidatorContext using ValidatorContext#messageInterpolator. Obtain the jakarta.validation.Validator instance from the validatorContext. Obtain a jakarta.validation.BeanDescriptor from the jakarta.validation.Validator. If hasConstraints() on the BeanDescriptor returns false, take no action and return. Otherwise proceed. Call jakarta.validation.Validator#validateValue, passing valueBaseClass, valueProperty, the value argument, and validatorGroupsArray as arguments. If the returned Set lt;ConstraintViolation gt; is non-empty, for each element in the Set, create a FacesMessage where the summary and detail are the return from calling ConstraintViolation#getMessage. Capture all such FacesMessage instances into a Collection and pass them to ValidatorException#ValidatorException(java.util.Collection). If the #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME application parameter is enabled and this Validator instance has validation groups other than or in addition to the Default group, record the fact that this field failed validation so that any component later in the tree is able to skip class-level validation for the bean for which this particular field is a property. Regardless of whether or not #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME is set, throw the new exception. If the returned Set is empty, the #ENABLE_VALIDATE_WHOLE_BEAN_PARAM_NAME application parameter is enabled and this Validator instance has validation groups other than or in addition to the Default group, record the fact that this field passed validation so that any component later in the tree is able to allow class-level validation for the bean for which this particular field is a property. - jakarta.faces.validator - BeanValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5755 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - DoubleRangeValidator - - - - - JSF:JAVADOC:5756 - Overrides the default equals method to take the minimum and maximum into account when comparing DoubleRangeValidator instances. - jakarta.faces.validator - DoubleRangeValidator - - - java.lang.Object - - - - - - JSF:JAVADOC:5757 - Overrides the default hash code method to take the minimum and maximum into account when generating the hash code. - jakarta.faces.validator - DoubleRangeValidator - - - - - JSF:JAVADOC:5758 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - DoubleRangeValidator - - - - - JSF:JAVADOC:5759 - - jakarta.faces.validator - DoubleRangeValidator - - - - - JSF:JAVADOC:5760 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - DoubleRangeValidator - - - - - JSF:JAVADOC:5761 - - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5762 - - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5763 - - jakarta.faces.validator - DoubleRangeValidator - - - boolean - - - - - - JSF:JAVADOC:5764 - - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5765 - {@inheritDoc} - jakarta.faces.validator - DoubleRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - - JSF:JAVADOC:5766 - If true, the validator id for this annotation is added to the list of default validators by a call to jakarta.faces.application.Application#addDefaultValidatorId. - jakarta.faces.validator - FacesValidator - - - - - JSF:JAVADOC:5767 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.validator - FacesValidator - - - - - JSF:JAVADOC:5768 - The value of this annotation attribute is taken to be the validator-id with which instances of this class of component can be instantiated by calling jakarta.faces.application.Application#createValidator(java.lang.String). If no value is specified, or the value is null, the value is taken to be the return of calling getSimpleName on the class to which this annotation is attached and lowercasing the first character. If more than one validator with this derived name is found, the results are undefined. - jakarta.faces.validator - FacesValidator - - - - - JSF:JAVADOC:5769 - If true, the validator id for this annotation is added to the list of default validators by a call to jakarta.faces.application.Application#addDefaultValidatorId. - jakarta.faces.validator - FacesValidator.Literal - - - - - JSF:JAVADOC:5770 - The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter. - jakarta.faces.validator - FacesValidator.Literal - - - - - JSF:JAVADOC:5771 - - jakarta.faces.validator - FacesValidator.Literal - - - java.lang.String - boolean - boolean - - - - - - JSF:JAVADOC:5772 - The value of this annotation attribute is taken to be the validator-id with which instances of this class of component can be instantiated by calling jakarta.faces.application.Application#createValidator(java.lang.String). If no value is specified, or the value is null, the value is taken to be the return of calling getSimpleName on the class to which this annotation is attached and lowercasing the first character. If more than one validator with this derived name is found, the results are undefined. - jakarta.faces.validator - FacesValidator.Literal - - - - - JSF:JAVADOC:5773 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - LengthValidator - - - - - JSF:JAVADOC:5774 - - jakarta.faces.validator - LengthValidator - - - java.lang.Object - - - - - - JSF:JAVADOC:5775 - - jakarta.faces.validator - LengthValidator - - - - - JSF:JAVADOC:5776 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - LengthValidator - - - - - JSF:JAVADOC:5777 - - jakarta.faces.validator - LengthValidator - - - - - JSF:JAVADOC:5778 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - LengthValidator - - - - - JSF:JAVADOC:5779 - - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5780 - - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5781 - - jakarta.faces.validator - LengthValidator - - - boolean - - - - - - JSF:JAVADOC:5782 - - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5783 - {@inheritDoc} - jakarta.faces.validator - LengthValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - - JSF:JAVADOC:5784 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - LongRangeValidator - - - - - JSF:JAVADOC:5785 - - jakarta.faces.validator - LongRangeValidator - - - java.lang.Object - - - - - - JSF:JAVADOC:5786 - - jakarta.faces.validator - LongRangeValidator - - - - - JSF:JAVADOC:5787 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - LongRangeValidator - - - - - JSF:JAVADOC:5788 - - jakarta.faces.validator - LongRangeValidator - - - - - JSF:JAVADOC:5789 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - LongRangeValidator - - - - - JSF:JAVADOC:5790 - - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5791 - - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5792 - - jakarta.faces.validator - LongRangeValidator - - - boolean - - - - - - JSF:JAVADOC:5793 - - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5794 - {@inheritDoc} - jakarta.faces.validator - LongRangeValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - - JSF:JAVADOC:5795 - If true, the Object implementing this interface must not participate in state saving or restoring. - jakarta.faces.validator - MethodExpressionValidator - - - - - JSF:JAVADOC:5796 - - jakarta.faces.validator - MethodExpressionValidator - - - - - JSF:JAVADOC:5797 - Construct a Validator that contains a MethodExpression. - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.el.MethodExpression - - - - - - JSF:JAVADOC:5798 - Perform any processing required to restore the state from the entries in the state Object. If the class that implements this interface has references to instances that also implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #restoreState method on all those instances as well. If the state argument is null, take no action and return. - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5799 - Gets the state of the instance as a Serializable Object. If the class that implements this interface has references to instances that implement StateHolder (such as a UIComponent with event handlers, validators, etc.) this method must call the #saveState method on all those instances as well. This method must not save the state of children and facets. That is done via the jakarta.faces.application.StateManager This method must not alter the state of the implementing object. In other words, after executing this code: Object state = component.saveState(facesContext); component should be the same as before executing it. The return from this method must be Serializable - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5800 - Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. - jakarta.faces.validator - MethodExpressionValidator - - - boolean - - - - - - JSF:JAVADOC:5801 - - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5802 - {@inheritDoc} - jakarta.faces.validator - MethodExpressionValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - - JSF:JAVADOC:5803 - Reset the PartialStateHolder to a non-delta tracking state. - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5804 - Return the ValueExpression that yields the regular expression pattern when evaluated. - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5805 - Return true if delta state changes are being tracked, otherwise false - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5806 - - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5807 - The runtime must ensure that the #markInitialState method is called on each instance of this interface in the view at the appropriate time to indicate the component is in its initial state. The implementor of the interface must ensure that #initialStateMarked returns true from the time markInitialState() is called until #clearInitialState is called, after which time initialStateMarked() must return false. Also, during the time that the instance returns true from initialStateMarked(), the implementation must return only the state that has changed in its implementation of StateHolder#saveState. - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5808 - - jakarta.faces.validator - RegexValidator - - - - - JSF:JAVADOC:5809 - - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - java.lang.Object - - - - - - JSF:JAVADOC:5810 - - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5811 - The Regular Expression property to validate against. - jakarta.faces.validator - RegexValidator - - - java.lang.String - - - - - - JSF:JAVADOC:5812 - - jakarta.faces.validator - RegexValidator - - - boolean - - - - - - JSF:JAVADOC:5813 - Validate a String against a regular expression pattern. The full regex pattern must be matched in order to pass the validation. - jakarta.faces.validator - RegexValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5814 - Verify that the converted object value is not null. - jakarta.faces.validator - RequiredValidator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5815 - Perform the correctness checks implemented by this Validator against the specified UIComponent. If any violations are found, a ValidatorException will be thrown containing the jakarta.faces.application.FacesMessage describing the failure. For a validator to be fully compliant with Version 2 and later of the specification, it must not fail validation on null or empty values unless it is specifically intended to address null or empty values. An application-wide is provided to allow validators designed for Jakarta Faces 1.2 to work with Jakarta Faces 2 and later. The jakarta.faces.VALIDATE_EMPTY_FIELDS must be set to false to enable this backwards compatibility behavior. - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - - - - - JSF:JAVADOC:5816 - if validation fails - jakarta.faces.validator - Validator - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.lang.Object - - jakarta.faces.validator.ValidatorException - - - - - JSF:JAVADOC:5817 - Returns the FacesMessage associated with the exception. If this instance was created with a constructor that takes Collection, this method returns the first message in the Collection - jakarta.faces.validator - ValidatorException - - - - - JSF:JAVADOC:5818 - If this instance was created with a constructor that takes Collection, this method returns the passed collection, otherwise this method returns null. - jakarta.faces.validator - ValidatorException - - - - - JSF:JAVADOC:5819 - Construct a new exception with the specified message and no root cause. - jakarta.faces.validator - ValidatorException - - - jakarta.faces.application.FacesMessage - - - - - - JSF:JAVADOC:5820 - Allow this one exception to contain multiple messages. - jakarta.faces.validator - ValidatorException - - - java.util.Collection - - - - - - JSF:JAVADOC:5821 - Construct a new exception with the specified detail message and root cause. - jakarta.faces.validator - ValidatorException - - - jakarta.faces.application.FacesMessage - java.lang.Throwable - - - - - - JSF:JAVADOC:5822 - Allow this one exception to contain multiple messages, while passing on the root cause to the superclass - jakarta.faces.validator - ValidatorException - - - java.util.Collection - java.lang.Throwable - - - - - - JSF:JAVADOC:5823 - Take the argument parent and apply this attached object to it. The action taken varies with class that implements one of the subinterfaces of this interface. - jakarta.faces.view - AttachedObjectHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5824 - Return the value of the "for" attribute specified by the page author on the tag for this AttachedObjectHandler. - jakarta.faces.view - AttachedObjectHandler - - - - - JSF:JAVADOC:5825 - Returns the name by which this attached object target is exposed to the page author. - jakarta.faces.view - AttachedObjectTarget - - - - - JSF:JAVADOC:5826 - Returns the List that this AttachedObjectTarget exposes. Each attached object exposed by the composite component author may point at multiple UIComponent instances within the composite component. This method is used by the jakarta.faces.view.ViewDeclarationLanguage#retargetAttachedObjects method to take the appropriate action on the attached object. - jakarta.faces.view - AttachedObjectTarget - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5827 - Return the client event name to which this behavior applies. - jakarta.faces.view - BehaviorHolderAttachedObjectHandler - - - - - JSF:JAVADOC:5828 - Returns whether the event set on this target is the default event, e.g. as set by a tag via the "default" attribute. - jakarta.faces.view - BehaviorHolderAttachedObjectTarget - - - - - JSF:JAVADOC:5829 - Return the estimated character column. - jakarta.faces.view - Location - - - - - JSF:JAVADOC:5830 - Return the line number in the page for this location. - jakarta.faces.view - Location - - - - - JSF:JAVADOC:5831 - Return the file path to the page represented by this location. - jakarta.faces.view - Location - - - - - JSF:JAVADOC:5832 - - jakarta.faces.view - Location - - - java.lang.String - int - int - - - - - - JSF:JAVADOC:5833 - - jakarta.faces.view - Location - - - - - JSF:JAVADOC:5834 - Restore the state of the view with information in the request. The default implementation must perform the following algorithm or its semantic equivalent. As in the case of restore view on an initial request, the view metadata must be restored and properly handled as well. Obtain the ViewMetadata for the current viewId, and from that call ViewMetadata#createMetadataView. Store the resultant UIViewRoot in the FacesContext. Obtain the state of the UIViewRoot from the state Object returned from jakarta.faces.render.ResponseStateManager#getState and pass that to UIViewRoot#restoreViewScopeState. Build the view from the markup. For all components in the view that do not have an explicitly assigned id in the markup, the values of those ids must be the same as on an initial request for this view. This view will not contain any components programmatically added during the previous lifecycle run, and it will contain components that were programmatically deleted on the previous lifecycle run. Both of these cases must be handled. Call jakarta.faces.render.ResponseStateManager#getState to obtain the data structure returned from the previous call to #saveView. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For each node, call jakarta.faces.component.UIComponent#restoreState, passing the state saved corresponding to the current client id. Ensure that any programmatically deleted components are removed. Ensure any programmatically added components are added. The implementation must ensure that the jakarta.faces.component.UIComponent#restoreState method is called for each node in the tree, except for those that were programmatically deleted on the previous run through the lifecycle. - jakarta.faces.view - StateManagementStrategy - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5835 - Return the state of the current view in an Object that implements Serializable and can be passed to java.io.ObjectOutputStream.writeObject() without causing a java.io.NotSerializableException to be thrown. The default implementation must perform the following algorithm or its semantic equivalent, explicitly performing all the steps listed here. If the UIViewRoot of the current view is marked transient, return null immediately. Traverse the view and verify that each of the client ids are unique. Throw IllegalStateException if more than one client id are the same. Visit the tree using jakarta.faces.component.UIComponent#visitTree. For each node, call jakarta.faces.component.UIComponent#saveState, saving the returned Object in a way such that it can be restored given only its client id. Special care must be taken to handle the case of components that were added or deleted programmatically during this lifecycle traversal, rather than by the VDL. The implementation must ensure that the jakarta.faces.component.UIComponent#saveState method is called for each node in the tree. The data structure used to save the state obtained by executing the above algorithm must be Serializable, and all of the elements within the data structure must also be Serializable. - jakarta.faces.view - StateManagementStrategy - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5836 - - jakarta.faces.view - StateManagementStrategy - - - - - JSF:JAVADOC:5837 - Take any actions specific to this VDL implementation to cause the argument UIViewRoot which must have been created via a call to #createView, to be populated with children. The Facelets implementation must insure that markup comprising the view must be executed, with the jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) during the traversal. The runtime must guarantee that the view must be fully populated before any of the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners attached to the application is called The jakarta.faces.component.UIViewRoot phase listener installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated with children, the view must still be re-built, but care must be taken to ensure that the existing components are correctly paired up with their VDL counterparts in the VDL page. Also, any system events that would normally be generated during the adding or removing of components from the view must be temporarily disabled during the creation of the view and then re-enabled when the view has been built. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5838 - if view cannot be built for any reason - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:5839 - Return the list of resource library contracts that will be made available for use in the view specified by the argument viewId. If no match is found, return an empty list. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. For backward compatibility with prior implementations, an implementation is provided that returns null, but any implementation compliant with the version of the specification in which this method was introduced must implement it as specified in section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5840 - Create a component given a ViewDeclarationLanguage specific tag library URI and tag name. The runtime must support this method operating for the Facelets VDL. Other kinds of ViewDeclarationLanguage may be supported but are not required to be supported. For backward compatibility with decorated ViewDeclrationLanguage implementations that do not override this method, a default implementation is provided that returns null. However, any implementation that is compliant with the version of the specification in which this method was introduced must implement this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:5841 - Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId. See section 7.7.2"Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5842 - Return a reference to the component metadata for the composite component represented by the argument componentResource, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Jakarta Server Pages implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:5843 - Returns a non-null String that can be used to identify this view declaration language. The default implementation returns the fully qualified class name of the view declaration language implementation. Subclasses may override to provide a more meaningful id. - jakarta.faces.view - ViewDeclarationLanguage - - - - - JSF:JAVADOC:5844 - Take implementation specific action to discover a Resource given the argument componentResource. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Jakarta Server Pages implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:5845 - For implementations that want to control the implementation of state saving and restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the implementation wishes the runtime to handle the state saving and restoring. Implementations that provide the VDL for Facelets for Jakarta Faces 2.0 and later must return non-null from this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5846 - Return a reference to the view metadata for the view represented by the argument viewId, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Facelets implementation must return non-null. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5847 - Return a Stream possibly lazily populated by walking the view tree rooted at a given initial path. The view tree is traversed breadth-first, the elements in the stream are logical view ids. This method works as if invoking it were equivalent to evaluating the expression: getViewResources(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all levels of the resource tree. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:5848 - Return a Stream possibly lazily populated by walking the view tree rooted at a given initial path. The view tree is traversed breadth-first, the elements in the stream are logical view ids. The maxDepth parameter is the maximum depth of directory levels to visit beyond the initial path, which is always visited. The value is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all levels should be visited. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:5849 - Render a view rooted at argumentview. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5850 - if the view cannot be rendered for any reason - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:5851 - Restore a UIViewRoot from a previously created view. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5852 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting attached objects from the top level composite component to the individual AttachedObjectTarget instances inside the composite component. This method must be called by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite component usage is encountered. An algorithm semantically equivalent to the following must be implemented. Obtain the metadata for the composite component. Currently this entails getting the value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the BeanDescriptor's getValue() method. This will be a List lt;AttachedObjectTarget gt;. Let this be targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the following items that causes a match will take this action: For each UIComponent in the list returned from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the UIComponent. and cause this inner loop to terminate. If curHandler is an instance of ActionSource2AttachedObjectHandler and curTarget is an instance of ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of BehaviorHolderAttachedObjectHandler and curTarget is an instance of BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support retargeting attached objects from the top level compsite component to targets that are composite and non-composite components. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - - - - - JSF:JAVADOC:5853 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting any method expressions from the top level component to the appropriate inner component. For each attribute that is a MethodExpression (as indicated by the presence of a "method-signature" attribute and the absence of a "type" attribute), the following action must be taken: Get the value of the targets attribute. If the value is a ValueExpression evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For each entry in the list: Find the inner component of the topLevelComponent with the id equal to the current list entry. For discussion, this component is called target. If not found, log and error and continue to the next attribute. For discussion the declared name of the attribute is called name. In the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error and continue to the next attribute. If name is equal to the string "action", or "actionListener" without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to the string "validator", or "valueChangeListener" without the quotes, assume target is an jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression of the appropriate signature for name. If name is not equal to any of the previously listed strings, call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression where the signature is created based on the value of the "method-signature" attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for discussion. If name is equal to the string "action" without the quotes, call jakarta.faces.component.ActionSource2#setActionExpression on target, passing attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on target, passing attributeMethodExpression wrapped in a jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string "valueChangeListener" without the quotes, call jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. Otherwise, assume that the MethodExpression should be placed in the components attribute set. The runtme must create the MethodExpression instance based on the value of the "method-signature" attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5854 - - jakarta.faces.view - ViewDeclarationLanguage - - - - - JSF:JAVADOC:5855 - Tests whether a physical resource corresponding to the specified viewId exists. The default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate the physical resource. - jakarta.faces.view - ViewDeclarationLanguage - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5856 - Gets the list of all view declaration languages supported by this runtime. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - - - JSF:JAVADOC:5857 - Return the ViewDeclarationLanguage instance suitable for handling the VDL contained in the page referenced by the argument viewId. The default implementation must return a valid ViewDeclarationLanguage instance for views written in either Jakarta Server Pages, Faces XML Views, or Facelets for Jakarta Faces 2. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - java.lang.String - - - - - - JSF:JAVADOC:5858 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - - - JSF:JAVADOC:5859 - - jakarta.faces.view - ViewDeclarationLanguageFactory - - - - - JSF:JAVADOC:5860 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.view - ViewDeclarationLanguageFactory - - - jakarta.faces.view.ViewDeclarationLanguageFactory - - - - - - JSF:JAVADOC:5861 - Take any actions specific to this VDL implementation to cause the argument UIViewRoot which must have been created via a call to #createView, to be populated with children. The Facelets implementation must insure that markup comprising the view must be executed, with the jakarta.faces.component.UIComponent instances in the view being encountered in the same depth-first order as in other lifecycle methods defined on UIComponent, and added to the view (but not rendered) during the traversal. The runtime must guarantee that the view must be fully populated before any of the following happen. The jakarta.faces.event.PhaseListener#afterPhase method of any PhaseListeners attached to the application is called The jakarta.faces.component.UIViewRoot phase listener installed via jakarta.faces.component.UIViewRoot#setAfterPhaseListener or jakarta.faces.component.UIViewRoot#addPhaseListener are called. If the root is already populated with children, the view must still be re-built, but care must be taken to ensure that the existing components are correctly paired up with their VDL counterparts in the VDL page. Also, any system events that would normally be generated during the adding or removing of components from the view must be temporarily disabled during the creation of the view and then re-enabled when the view has been built. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5862 - if view cannot be built for any reason - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:5863 - Return the list of resource library contracts that will be made available for use in the view specified by the argument viewId. If no match is found, return an empty list. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. For backward compatibility with prior implementations, an implementation is provided that returns null, but any implementation compliant with the version of the specification in which this method was introduced must implement it as specified in section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5864 - Create a component given a ViewDeclarationLanguage specific tag library URI and tag name. The runtime must support this method operating for the Facelets VDL. Other kinds of ViewDeclarationLanguage may be supported but are not required to be supported. For backward compatibility with decorated ViewDeclrationLanguage implementations that do not override this method, a default implementation is provided that returns null. However, any implementation that is compliant with the version of the specification in which this method was introduced must implement this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - java.lang.String - java.util.Map - - - - - - JSF:JAVADOC:5865 - Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId. See section 7.7.2"Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5866 - Return a reference to the component metadata for the composite component represented by the argument componentResource, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Jakarta Server Pages implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:5867 - Returns a non-null String that can be used to identify this view declaration language. The default implementation returns the fully qualified class name of the view declaration language implementation. Subclasses may override to provide a more meaningful id. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - - JSF:JAVADOC:5868 - Take implementation specific action to discover a Resource given the argument componentResource. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Jakarta Server Pages implementations must throw UnsupportedOperationException. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.application.Resource - - - - - - JSF:JAVADOC:5869 - For implementations that want to control the implementation of state saving and restoring, the StateManagementStrategy allows them to do so. Returning null indicates that the implementation wishes the runtime to handle the state saving and restoring. Implementations that provide the VDL for Facelets for Jakarta Faces 2.0 and later must return non-null from this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5870 - Return a reference to the view metadata for the view represented by the argument viewId, or null if the metadata cannot be found. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. Facelets implementation must return non-null. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5871 - Return a Stream possibly lazily populated by walking the view tree rooted at a given initial path. The view tree is traversed breadth-first, the elements in the stream are logical view ids. This method works as if invoking it were equivalent to evaluating the expression: getViewResources(facesContext, start, Integer.MAX_VALUE, options) Put differently, it visits all levels of the resource tree. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:5872 - Return a Stream possibly lazily populated by walking the view tree rooted at a given initial path. The view tree is traversed breadth-first, the elements in the stream are logical view ids. The maxDepth parameter is the maximum depth of directory levels to visit beyond the initial path, which is always visited. The value is relative to the root (/), not to the given initial path. E.g. given maxDepth = 3 and initial path /foo/, visiting will proceed up to /foo/bar/, where / counts as depth 1, /foo/ as depth 2 and /foo/bar/ as depth 3. A value lower or equal to the depth of the initial path means that only the initial path is visited. A value of Integer#MAX_VALUE MAX_VALUE may be used to indicate that all levels should be visited. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - int - jakarta.faces.application.ViewVisitOption[] - - - - - - JSF:JAVADOC:5873 - A class that implements this interface uses this method to return an instance of the class being wrapped. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - - JSF:JAVADOC:5874 - Render a view rooted at argumentview. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5875 - if the view cannot be rendered for any reason - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIViewRoot - - java.io.IOException - - - - - JSF:JAVADOC:5876 - Restore a UIViewRoot from a previously created view. See section 7.7.2 "Default ViewDeclarationLanguage Implementation" of the Jakarta Faces Specification Document for the specification of the default implementation. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5877 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting attached objects from the top level composite component to the individual AttachedObjectTarget instances inside the composite component. This method must be called by the ViewDeclarationLanguage implementation when creating the UIComponent tree when a composite component usage is encountered. An algorithm semantically equivalent to the following must be implemented. Obtain the metadata for the composite component. Currently this entails getting the value of the UIComponent#BEANINFO_KEY component attribute, which will be an instance of BeanInfo. If the metadata cannot be found, log an error message and return. Get the BeanDescriptor from the BeanInfo. Get the value of the AttachedObjectTarget#ATTACHED_OBJECT_TARGETS_KEY from the BeanDescriptor's getValue() method. This will be a List lt;AttachedObjectTarget gt;. Let this be targetList. For each curHandler entry in the argument handlers Let forAttributeValue be the return from AttachedObjectHandler#getFor. For each curTarget entry in targetList, the first of the following items that causes a match will take this action: For each UIComponent in the list returned from curTarget.getTargets(), call curHandler.applyAttachedObject(), passing the FacesContext and the UIComponent. and cause this inner loop to terminate. If curHandler is an instance of ActionSource2AttachedObjectHandler and curTarget is an instance of ActionSource2AttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of EditableValueHolderAttachedObjectHandler and curTarget is an instance of EditableValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of ValueHolderAttachedObjectHandler and curTarget is an instance of ValueHolderAttachedObjectTarget, and curTarget.getName() is equal to curTargetName, consider it a match. If curHandler is an instance of BehaviorHolderAttachedObjectHandler and curTarget is an instance of BehaviorHolderAttachedObjectTarget, and either of the following conditions are true, curHandler.getEventName() is not null and is equal to curTargetName. curHandler.getEventName() is null and curTarget.isDefaultEvent() is true. consider it a match. The implementation must support retargeting attached objects from the top level compsite component to targets that are composite and non-composite components. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - java.util.List - - - - - - JSF:JAVADOC:5878 - Assuming the component metadata for argument topLevelComponent has been made available by an earlier call to ViewDeclarationLanguage#getComponentMetadata, leverage the component metadata for the purpose of re-targeting any method expressions from the top level component to the appropriate inner component. For each attribute that is a MethodExpression (as indicated by the presence of a "method-signature" attribute and the absence of a "type" attribute), the following action must be taken: Get the value of the targets attribute. If the value is a ValueExpression evaluate it. If there is no targets attribute, let the name of the metadata element be the evaluated value of the targets attribute. Interpret targets as a space (not tab) separated list of ids. For each entry in the list: Find the inner component of the topLevelComponent with the id equal to the current list entry. For discussion, this component is called target. If not found, log and error and continue to the next attribute. For discussion the declared name of the attribute is called name. In the attributes map of the topLevelComponent, look up the entry under the key name. Assume the result is a ValueExpression. For discussion, this is attributeValueExpression. If not found, log an error and continue to the next attribute. If name is equal to the string "action", or "actionListener" without the quotes, assume target is an jakarta.faces.component.ActionSource2. If name is equal to the string "validator", or "valueChangeListener" without the quotes, assume target is an jakarta.faces.component.EditableValueHolder. Call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression of the appropriate signature for name. If name is not equal to any of the previously listed strings, call getExpressionString() on the attributeValueExpression and use that string to create a MethodExpression where the signature is created based on the value of the "method-signature" attribute of the tag. Let the resultant MethodExpression be called attributeMethodExpression for discussion. If name is equal to the string "action" without the quotes, call jakarta.faces.component.ActionSource2#setActionExpression on target, passing attributeMethodExpression. If name is equal to the string "actionListener" without the quotes, call jakarta.faces.component.ActionSource#addActionListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionActionListener. If name is equal to the string "validator" without the quotes, call jakarta.faces.component.EditableValueHolder#addValidator on target, passing attributeMethodExpression wrapped in a jakarta.faces.validator.MethodExpressionValidator. If name is equal to the string "valueChangeListener" without the quotes, call jakarta.faces.component.EditableValueHolder#addValueChangeListener on target, passing attributeMethodExpression wrapped in a jakarta.faces.event.MethodExpressionValueChangeListener. Otherwise, assume that the MethodExpression should be placed in the components attribute set. The runtme must create the MethodExpression instance based on the value of the "method-signature" attribute. An implementation is provided that will throw UnsupportedOperationException. A Faces implementation compliant with version 2.0 and beyond of the specification must override this method. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5879 - - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - - - JSF:JAVADOC:5880 - If this view declaration language has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.view.ViewDeclarationLanguage - - - - - - JSF:JAVADOC:5881 - Tests whether a physical resource corresponding to the specified viewId exists. The default implementation uses jakarta.faces.application.ResourceHandler#createViewResource to locate the physical resource. - jakarta.faces.view - ViewDeclarationLanguageWrapper - - - jakarta.faces.context.FacesContext - java.lang.String - - - - - - JSF:JAVADOC:5882 - Creates a new UIViewRoot containing only view parameter metadata. The processing of building this UIViewRoot with metadata should not cause any events to be published to the application. The implementation must call FacesContext#setProcessingEvents passing false as the argument, at the beginning of the method, and pass true to the same method at the end. The implementation must ensure that this happens regardless of ant exceptions that may be thrown. Take note a compliant implementation has to ensure that: the new UIViewRoot must be set as the FacesContext's viewRoot before applying the tag handlers, restoring the old FacesContext in a finally block. The contents of the current UIViewRoot's ViewMap must be copied to the ViewMap of the new UIViewRoot before applying the tag handlers. The UIImportConstants must be processed after applying the tag handlers. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.context.FacesContext - - - - - - JSF:JAVADOC:5883 - Utility method to extract view metadata from the provided UIViewRoot. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5884 - Utility method to extract view metadata from the provided UIViewRoot. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5885 - Get the view id - jakarta.faces.view - ViewMetadata - - - - - JSF:JAVADOC:5886 - Utility method to extract view metadata from the provided UIViewRoot. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5887 - Utility method to determine if the the provided UIViewRoot has metadata. The default implementation will return true if the provided UIViewRoot has a facet named UIViewRoot#METADATA_FACET_NAME and that facet has children. It will return false otherwise. - jakarta.faces.view - ViewMetadata - - - jakarta.faces.component.UIViewRoot - - - - - - JSF:JAVADOC:5888 - - jakarta.faces.view - ViewMetadata - - - - - JSF:JAVADOC:5889 - Returns the resolved literal String value of the attribute name after evaluating EL. - jakarta.faces.view.facelets - AttributeHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5890 - Return the value of the behavior-id. - jakarta.faces.view.facelets - BehaviorConfig - - - - - JSF:JAVADOC:5891 - Constructs the handler using the Id from the config. - jakarta.faces.view.facelets - BehaviorHandler - - - jakarta.faces.view.facelets.BehaviorConfig - - - - - - JSF:JAVADOC:5892 - Returns the behavior Id obtained from the passed-in config. - jakarta.faces.view.facelets - BehaviorHandler - - - - - JSF:JAVADOC:5893 - Returns the event that is set as the "event" attribute on the behavior tag. - jakarta.faces.view.facelets - BehaviorHandler - - - - - JSF:JAVADOC:5894 - Return the client event name to which this behavior applies. - jakarta.faces.view.facelets - BehaviorHandler - - - - - JSF:JAVADOC:5895 - ComponentType to pass to the Application. Cannot be null. - jakarta.faces.view.facelets - ComponentConfig - - - - - JSF:JAVADOC:5896 - RendererType to set on created UIComponent instances. - jakarta.faces.view.facelets - ComponentConfig - - - - - JSF:JAVADOC:5897 - Leverage the TagHandlerDelegateFactory provided by the implementation to create an instance of TagHandlerDelegate designed for use with ComponentHandler. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.ComponentConfig - - - - - - JSF:JAVADOC:5898 - Subclasses that wish to take over the task of instantiating the UIComponent instance corresponding to this tag handler my override this method to do so. A null return from this method will cause the TagHandlerDelegate for instance to create the component instead. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5899 - Returns the component configuration, a component-type/renderer-type pair. - jakarta.faces.view.facelets - ComponentHandler - - - - - JSF:JAVADOC:5900 - Determine if the passed component is not null and if it's new to the tree. This operation can be used for determining if attributes should be wired to the component. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5901 - This method is guaranteed to be called after the component has been created but before it has been populated with children. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5902 - This method is guaranteed to be called after the component has been populated with children. - jakarta.faces.view.facelets - ComponentHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5903 - Calls apply on any child handlers. - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5904 - - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5905 - Creates a new FaceletHandler out of the given inner FaceletHandlers. - jakarta.faces.view.facelets - CompositeFaceletHandler - - - jakarta.faces.view.facelets.FaceletHandler[] - - - - - - JSF:JAVADOC:5906 - Returns the array of child handlers contained by this handler. - jakarta.faces.view.facelets - CompositeFaceletHandler - - - - - JSF:JAVADOC:5907 - Return the converter id to be used in instantiating this converter - jakarta.faces.view.facelets - ConverterConfig - - - - - JSF:JAVADOC:5908 - Creates a new ConverterHandler using the given config. - jakarta.faces.view.facelets - ConverterHandler - - - jakarta.faces.view.facelets.ConverterConfig - - - - - - JSF:JAVADOC:5909 - Returns the converter Id. The converter Id is taken from the attribute "converterId" - jakarta.faces.view.facelets - ConverterHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5910 - The default implementation simply calls through to TagHandlerDelegate#apply. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5911 - - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5912 - Invoke the apply() method on this instance's TagHandler#nextHandler. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5913 - if thrown by the next FaceletHandler - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5914 - if thrown by the next FaceletHandler - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - jakarta.faces.FacesException - - - - - JSF:JAVADOC:5915 - if thrown by the next FaceletHandler - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - jakarta.el.ELException - - - - - JSF:JAVADOC:5916 - Instantiates this handler with the given config. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - - JSF:JAVADOC:5917 - Return the "binding" attribute. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - - JSF:JAVADOC:5918 - Return a reference to the Tag instance corresponding to this TagHandler instance. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - - JSF:JAVADOC:5919 - Return the named attribute from the tag attributes. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - java.lang.String - - - - - - JSF:JAVADOC:5920 - Return the tag id from the TagConfig used to instantiate this handler. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - - - JSF:JAVADOC:5921 - Returns the value of the "disabled" attribute. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5922 - Invoking/extending this method will cause the results of the created MetaRuleset to auto-wire state to the passed instance. - jakarta.faces.view.facelets - DelegatingMetaTagHandler - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Object - - - - - - JSF:JAVADOC:5923 - The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document. - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5924 - if unable to load a file necessary to apply this Facelet - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5925 - The passed UIComponent parent will be populated/restored in accordance with the section 10.2.1 "Specification of the ViewDeclarationLanguage Implementation for Facelets for Jakarta Faces" in the Jakarta Faces Specification Document with only the meta data as per the f:metadata tag. - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5926 - if unable to load a file necessary to apply this Facelet - jakarta.faces.view.facelets - Facelet - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5927 - - jakarta.faces.view.facelets - Facelet - - - - - JSF:JAVADOC:5928 - - jakarta.faces.view.facelets - FaceletCache - - - - - JSF:JAVADOC:5929 - Returns a cached Facelet instance. If no instance is available, it will be created using the Facelet MemberFactory and stored in the cache. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - - JSF:JAVADOC:5930 - if unable to load a file necessary to respond to service this method. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:5931 - Returns a cached View Metadata Facelet instance. If no instance is available, it will be created using the View Metadata Facelet MemberFactory and stored in the cache. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - - JSF:JAVADOC:5932 - if unable to load a file necessary to respond to service this method. - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:5933 - Determines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - - JSF:JAVADOC:5934 - Determines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise - jakarta.faces.view.facelets - FaceletCache - - - java.net.URL - - - - - - JSF:JAVADOC:5935 - This must be called by the runtime at startup time, before any requests are serviced, and allows for the FaceletCache implementation to provide the MemberFactory instances that will be used to create instances of Facelets and View Metadata Facelets. - jakarta.faces.view.facelets - FaceletCache - - - jakarta.faces.view.facelets.FaceletCache.FaceletCache.MemberFactory - jakarta.faces.view.facelets.FaceletCache.FaceletCache.MemberFactory - - - - - - JSF:JAVADOC:5936 - Create a Facelet or View Metadata Facelet (depending on the type of factory this is) for the argument URL. - jakarta.faces.view.facelets - FaceletCache.MemberFactory - - - java.net.URL - - - - - - JSF:JAVADOC:5937 - if unable to load a file necessary to respond to service this method. - jakarta.faces.view.facelets - FaceletCache.MemberFactory - - - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:5938 - - jakarta.faces.view.facelets - FaceletCacheFactory - - - - - JSF:JAVADOC:5939 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.view.facelets - FaceletCacheFactory - - - jakarta.faces.view.facelets.FaceletCacheFactory - - - - - - JSF:JAVADOC:5940 - Returns the facility by which the Facelets jakarta.faces.view.ViewDeclarationLanguage creates and caches instances of Facelets. - jakarta.faces.view.facelets - FaceletCacheFactory - - - - - JSF:JAVADOC:5941 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.view.facelets - FaceletCacheFactory - - - - - JSF:JAVADOC:5942 - - jakarta.faces.view.facelets - FaceletContext - - - - - JSF:JAVADOC:5943 - Generate a unique ID for the passed String - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - - - - - - JSF:JAVADOC:5944 - Return an attribute set by a previous call to #setAttribute. Support method which is backed by the current VariableMapper - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - - - - - - JSF:JAVADOC:5945 - The ExpressionFactory to use within the Facelet this context is executing upon. Must not be null. - jakarta.faces.view.facelets - FaceletContext - - - - - JSF:JAVADOC:5946 - The current FacesContext bound to this "request". Must not be null. - jakarta.faces.view.facelets - FaceletContext - - - - - JSF:JAVADOC:5947 - Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in Jakarta Server Pages) - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - - - - - JSF:JAVADOC:5948 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.lang.String - - java.io.IOException - - - - - JSF:JAVADOC:5949 - Include another Facelet defined at some path, absolute to this ClassLoader/OS - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - - - - - JSF:JAVADOC:5950 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletContext - - - jakarta.faces.component.UIComponent - java.net.URL - - java.io.IOException - - - - - JSF:JAVADOC:5951 - Support method which is backed by the current VariableMapper. - jakarta.faces.view.facelets - FaceletContext - - - java.lang.String - java.lang.Object - - - - - - JSF:JAVADOC:5952 - Set the FunctionMapper to use in EL evaluation/creation. - jakarta.faces.view.facelets - FaceletContext - - - jakarta.el.FunctionMapper - - - - - - JSF:JAVADOC:5953 - Set the VariableMapper to use in EL evaluation/creation. - jakarta.faces.view.facelets - FaceletContext - - - jakarta.el.VariableMapper - - - - - - JSF:JAVADOC:5954 - Create an empty FaceletException. - jakarta.faces.view.facelets - FaceletException - - - - - JSF:JAVADOC:5955 - Create a FaceletException with argument message as the message. - jakarta.faces.view.facelets - FaceletException - - - java.lang.String - - - - - - JSF:JAVADOC:5956 - Wrap argument cause within this FaceletException instance. - jakarta.faces.view.facelets - FaceletException - - - java.lang.Throwable - - - - - - JSF:JAVADOC:5957 - Wrap argument cause in a FaceletException instance, with a message given by the argument message. - jakarta.faces.view.facelets - FaceletException - - - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:5958 - Process changes on a particular UIComponent - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5959 - if unable to load relativePath - jakarta.faces.view.facelets - FaceletHandler - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:5960 - Take the necessary actions to apply the attached object represented by the tag for the concrete subclass of this class to the argument parent. - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - jakarta.faces.context.FacesContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:5961 - Call through to super - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - - JSF:JAVADOC:5962 - Return the value of the "for" attribute. This enables the runtime to know to which inner component this attached object should be retargeted. - jakarta.faces.view.facelets - FaceletsAttachedObjectHandler - - - - - JSF:JAVADOC:5963 - Returns the resolved literal String value of the facet name after evaluating EL. - jakarta.faces.view.facelets - FacetHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5964 - Take the action prescribed in the Jakarta Faces Specification for this particular VDL element attribute. - jakarta.faces.view.facelets - Metadata - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Object - - - - - - JSF:JAVADOC:5965 - - jakarta.faces.view.facelets - Metadata - - - - - JSF:JAVADOC:5966 - Return a beans PropertyDescriptor for the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - - JSF:JAVADOC:5967 - Return a Class for the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - - JSF:JAVADOC:5968 - Return a Method for the getter of the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - - JSF:JAVADOC:5969 - Return the Class of the metadata target. - jakarta.faces.view.facelets - MetadataTarget - - - - - JSF:JAVADOC:5970 - Return a Method for the setter of the property with name given by argument name. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.String - - - - - - JSF:JAVADOC:5971 - Return true if the target for this metadata element is an instance of the argument type. - jakarta.faces.view.facelets - MetadataTarget - - - java.lang.Class - - - - - - JSF:JAVADOC:5972 - - jakarta.faces.view.facelets - MetadataTarget - - - - - JSF:JAVADOC:5973 - Return an abstraction that takes appropriate action given the kind of rule represented by the argument name, in the context of this particular concrete subclass of MetaRule. The abstraction must encapsulate the value from the argument attribute. - jakarta.faces.view.facelets - MetaRule - - - java.lang.String - jakarta.faces.view.facelets.TagAttribute - jakarta.faces.view.facelets.MetadataTarget - - - - - - JSF:JAVADOC:5974 - - jakarta.faces.view.facelets - MetaRule - - - - - JSF:JAVADOC:5975 - Add another Metadata to this ruleset, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - jakarta.faces.view.facelets.Metadata - - - - - - JSF:JAVADOC:5976 - Add another MetaRule to this ruleset, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - jakarta.faces.view.facelets.MetaRule - - - - - - JSF:JAVADOC:5977 - Customize this MetaRuleset by removing the attribute named by argument attribute and re-adding it under the name given by the argument property, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:5978 - Take actions to apply the rule. - jakarta.faces.view.facelets - MetaRuleset - - - - - JSF:JAVADOC:5979 - Customize this MetaRuleset instance to advise it to ignore the attribute named by the attribute argument, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - java.lang.String - - - - - - JSF:JAVADOC:5980 - Customize this MetaRuleset instance to advise it to ignore all attributes, returning this. - jakarta.faces.view.facelets - MetaRuleset - - - - - JSF:JAVADOC:5981 - - jakarta.faces.view.facelets - MetaRuleset - - - - - JSF:JAVADOC:5982 - Constructor. - jakarta.faces.view.facelets - MetaTagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - - JSF:JAVADOC:5983 - Return an object encapsulating the TagAttributes specified on this element in the view. - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5984 - Return the XML local name of the tag. For example, would be "tag". - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5985 - Return the Location of this Tag instance in the Facelet view. - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5986 - Return the resolved XML Namespace for this tag in the Facelets view. - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5987 - Return the XML qualified name for this tag. For example, would be "my:tag". - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5988 - Constructor. - jakarta.faces.view.facelets - Tag - - - jakarta.faces.view.Location - java.lang.String - java.lang.String - java.lang.String - jakarta.faces.view.facelets.TagAttributes - - - - - - JSF:JAVADOC:5989 - Constructor. - jakarta.faces.view.facelets - Tag - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttributes - - - - - - JSF:JAVADOC:5990 - Get the string representation. - jakarta.faces.view.facelets - Tag - - - - - JSF:JAVADOC:5991 - If literal,return Boolean#valueOf(java.lang.String) Boolean.valueOf(java.lang.String) passing our value, otherwise call #getObject(FaceletContext, Class) getObject(FaceletContext, Class). - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5992 - If literal, call Integer#parseInt(java.lang.String) Integer.parseInt(String), otherwise call #getObject(FaceletContext, Class) getObject(FaceletContext, Class). - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5993 - Local name of this attribute - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:5994 - The location of this attribute in the FaceletContext - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:5995 - Create a MethodExpression, using this attribute's value as the expression String. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - java.lang.Class[] - - - - - - JSF:JAVADOC:5996 - The resolved Namespace for this attribute - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:5997 - Delegates to getObject with Object.class as a param - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:5998 - If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - - - - - - JSF:JAVADOC:5999 - The qualified name for this attribute - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:6000 - A reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns null. - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:6001 - Return the literal value of this attribute - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:6002 - If literal, then return our value, otherwise delegate to getObject, passing String.class. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:6003 - Create a ValueExpression, using this attribute's literal value and the passed expected type. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.FaceletContext - java.lang.Class - - - - - - JSF:JAVADOC:6004 - If this TagAttribute is literal (not #{..} or ${..}) - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:6005 - Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this method is called before any FaceletHandlers for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided. - jakarta.faces.view.facelets - TagAttribute - - - jakarta.faces.view.facelets.Tag - - - - - - JSF:JAVADOC:6006 - - jakarta.faces.view.facelets - TagAttribute - - - - - JSF:JAVADOC:6007 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - - - - - - JSF:JAVADOC:6008 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.String - - - - - - JSF:JAVADOC:6009 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.Throwable - - - - - - JSF:JAVADOC:6010 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.TagAttribute - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:6011 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - - - - - - JSF:JAVADOC:6012 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.String - - - - - - JSF:JAVADOC:6013 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.Throwable - - - - - - JSF:JAVADOC:6014 - Constructor. - jakarta.faces.view.facelets - TagAttributeException - - - jakarta.faces.view.facelets.Tag - jakarta.faces.view.facelets.TagAttribute - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:6015 - Using no namespace, find the TagAttribute - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - - - - - - JSF:JAVADOC:6016 - Find a TagAttribute that matches the passed namespace and local name. - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - java.lang.String - - - - - - JSF:JAVADOC:6017 - Return an array of all TagAttributes in this set - jakarta.faces.view.facelets - TagAttributes - - - - - JSF:JAVADOC:6018 - Get all TagAttributes for the passed namespace - jakarta.faces.view.facelets - TagAttributes - - - java.lang.String - - - - - - JSF:JAVADOC:6019 - A list of Namespaces found in this set - jakarta.faces.view.facelets - TagAttributes - - - - - JSF:JAVADOC:6020 - A reference to the Tag for which this class represents the attributes. For compatibility with previous implementations, an implementation is provided that returns null. - jakarta.faces.view.facelets - TagAttributes - - - - - JSF:JAVADOC:6021 - Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this method is called before any FaceletHandlers for this element are instantiated. For compatibility with previous implementations, a no-op implementation is provided. - jakarta.faces.view.facelets - TagAttributes - - - jakarta.faces.view.facelets.Tag - - - - - - JSF:JAVADOC:6022 - - jakarta.faces.view.facelets - TagAttributes - - - - - JSF:JAVADOC:6023 - The next FaceletHandler (child or children) to be applied. This must never be null. - jakarta.faces.view.facelets - TagConfig - - - - - JSF:JAVADOC:6024 - Return the Tag representing this handler. - jakarta.faces.view.facelets - TagConfig - - - - - JSF:JAVADOC:6025 - A document-unique id, follows the convention "_tagId##" - jakarta.faces.view.facelets - TagConfig - - - - - JSF:JAVADOC:6026 - If handled, return a new Tag instance, otherwise return null - jakarta.faces.view.facelets - TagDecorator - - - jakarta.faces.view.facelets.Tag - - - - - - JSF:JAVADOC:6027 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - - - - - - JSF:JAVADOC:6028 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.String - - - - - - JSF:JAVADOC:6029 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.Throwable - - - - - - JSF:JAVADOC:6030 - Wrap the argument tag so the exception can reference its information. - jakarta.faces.view.facelets - TagException - - - jakarta.faces.view.facelets.Tag - java.lang.String - java.lang.Throwable - - - - - - JSF:JAVADOC:6031 - Every TagHandler instance is associated with a Tag. Each Tag instance has a TagAttributes property, which is simply a collection of TagAttribute instances. Extract and save as protected instance variables the TagConfig#getTagId, TagConfig#getTag and TagConfig#getNextHandler returns from the argument TagConfig. This constructor is only called when the Facelets View is compiled. - jakarta.faces.view.facelets - TagHandler - - - jakarta.faces.view.facelets.TagConfig - - - - - - JSF:JAVADOC:6032 - - jakarta.faces.view.facelets - TagHandler - - - - - JSF:JAVADOC:6033 - Called by classes that implement jakarta.faces.view.facelets.FaceletHandler in their implementation of apply(). If the argument comp is new to the view, for each tag attribute declared to be in the pass through attribute namespace, set the name and value of the attribute into the pass through attributes map of the component. See UIComponent#getPassThroughAttributes(boolean) . See the VDLDocs for the namespace URI of the pass through attribute namespace. Attributes whose value is a ValueExpression must remain un-evaluated and stored in the map as ValueExpression instances. - jakarta.faces.view.facelets - TagHandlerDelegate - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - - - - - JSF:JAVADOC:6034 - if any files necessary to apply this tag handler have any difficulty while loading - jakarta.faces.view.facelets - TagHandlerDelegate - - - jakarta.faces.view.facelets.FaceletContext - jakarta.faces.component.UIComponent - - java.io.IOException - - - - - JSF:JAVADOC:6035 - Return a MetaRuleset particular to this kind of tag handler. Called from classes that implement MetaTagHandler. - jakarta.faces.view.facelets - TagHandlerDelegate - - - java.lang.Class - - - - - - JSF:JAVADOC:6036 - - jakarta.faces.view.facelets - TagHandlerDelegate - - - - - JSF:JAVADOC:6037 - Create and return a TagHandlerDelegate instance designed for use with BehaviorHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.BehaviorHandler - - - - - - JSF:JAVADOC:6038 - Create and return a TagHandlerDelegate instance designed for use with ComponentHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ComponentHandler - - - - - - JSF:JAVADOC:6039 - Create and return a TagHandlerDelegate instance designed for use with ConverterHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ConverterHandler - - - - - - JSF:JAVADOC:6040 - Create and return a TagHandlerDelegate instance designed for use with ValidatorHandler. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.ValidatorHandler - - - - - - JSF:JAVADOC:6041 - If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - - - JSF:JAVADOC:6042 - - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - - - JSF:JAVADOC:6043 - If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The #getWrapped() will then return the implementation being wrapped. - jakarta.faces.view.facelets - TagHandlerDelegateFactory - - - jakarta.faces.view.facelets.TagHandlerDelegateFactory - - - - - - JSF:JAVADOC:6044 - Returns the literal String value of the contained text. - jakarta.faces.view.facelets - TextHandler - - - - - JSF:JAVADOC:6045 - Returns the resolved literal String value of the contained text after evaluating EL. - jakarta.faces.view.facelets - TextHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:6046 - Return the validator-id associated with a particular validator in your faces-config - jakarta.faces.view.facelets - ValidatorConfig - - - - - JSF:JAVADOC:6047 - Return the TagConfig subclass used to configure this handler instance. - jakarta.faces.view.facelets - ValidatorHandler - - - - - JSF:JAVADOC:6048 - Retrieve the id of the validator that is to be created and added to the parent EditableValueHolder. All subclasses should override this method because it is important for Facelets to have a unique way of identifying the validators that are added to this EditableValueHolder and allows exclusions to work properly. An exclusion is a validator declaration that has the attribute "disabled" which resolves to false, instructing Facelets not to register a default validator with the same id. - jakarta.faces.view.facelets - ValidatorHandler - - - jakarta.faces.view.facelets.FaceletContext - - - - - - JSF:JAVADOC:6049 - Construct this instance around the configuration information in argument config - jakarta.faces.view.facelets - ValidatorHandler - - - jakarta.faces.view.facelets.ValidatorConfig - - - - - - JSF:JAVADOC:6050 - Return the ServletConfig instance for this servlet. - jakarta.faces.webapp - FacesServlet - - - - - JSF:JAVADOC:6051 - Acquire the factory instances we will require. - jakarta.faces.webapp - FacesServlet - - - jakarta.servlet.ServletConfig - - - - - - JSF:JAVADOC:6052 - if, for any reason, the startup of this Faces application failed. This includes errors in the config file that is parsed before or during the processing of this init() method. - jakarta.faces.webapp - FacesServlet - - - jakarta.servlet.ServletConfig - - jakarta.servlet.ServletException - - - - - JSF:JAVADOC:6053 - Process an incoming request, and create the corresponding response according to the following specification. If the request and response arguments to this method are not instances of HttpServletRequest and HttpServletResponse, respectively, the results of invoking this method are undefined. This method must respond to requests that contain the following strings by invoking the sendError method on the response argument (cast to HttpServletResponse), passing the code HttpServletResponse.SC_NOT_FOUND as the argument. /WEB-INF/ /WEB-INF /META-INF/ /META-INF If none of the cases described above in the specification for this method apply to the servicing of this request, the following action must be taken to service the request. Acquire a FacesContext instance for this request. Acquire the ResourceHandler for this request by calling jakarta.faces.application.Application#getResourceHandler. Call jakarta.faces.application.ResourceHandler#isResourceRequest. If this returns true call jakarta.faces.application.ResourceHandler#handleResourceRequest. If this returns false, call jakarta.faces.lifecycle.Lifecycle#attachWindow followed by jakarta.faces.lifecycle.Lifecycle#execute followed by jakarta.faces.lifecycle.Lifecycle#render. If a jakarta.faces.FacesException is thrown in either case, extract the cause from the FacesException. If the cause is null extract the message from the FacesException, put it inside of a new ServletException instance, and pass the FacesException instance as the root cause, then rethrow the ServletException instance. If the cause is an instance of ServletException, rethrow the cause. If the cause is an instance of IOException, rethrow the cause. Otherwise, create a new ServletException instance, passing the message from the cause, as the first argument, and the cause itself as the second argument. The implementation must make it so jakarta.faces.context.FacesContext#release is called within a finally block as late as possible in the processing for the Jakarta Faces related portion of this request. - jakarta.faces.webapp - FacesServlet - - - jakarta.servlet.ServletRequest - jakarta.servlet.ServletResponse - - - - - - JSF:JAVADOC:6054 - if an input/output error occurs during processing - jakarta.faces.webapp - FacesServlet - - - jakarta.servlet.ServletRequest - jakarta.servlet.ServletResponse - - java.io.IOException - - - - - JSF:JAVADOC:6055 - if a Jakarta Servlet error occurs during processing - jakarta.faces.webapp - FacesServlet - - - jakarta.servlet.ServletRequest - jakarta.servlet.ServletResponse - - jakarta.servlet.ServletException - - - - - diff --git a/internal/docs/jsf/JSFSpecAssertions.xml b/internal/docs/jsf/JSFSpecAssertions.xml deleted file mode 100644 index 22169b9654..0000000000 --- a/internal/docs/jsf/JSFSpecAssertions.xml +++ /dev/null @@ -1,704 +0,0 @@ - - - - - - - - - - - - - - - - - - ]> - - - - - - - JSF - JSF 2.3 - JavaServer Faces(TM) - Version 2.3 - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - &jsf_ch2; - &jsf_ch3; - &jsf_ch4; - &jsf_ch5; - &jsf_ch6; - &jsf_ch7; - &jsf_ch8; - &jsf_ch9; - &jsf_ch10; - &jsf_ch11; - &jsf_ch12; - &jsf_ch13; - &jsf_ch14; - - diff --git a/internal/docs/jsf/JSFSpecAssertions_Numbered.xml b/internal/docs/jsf/JSFSpecAssertions_Numbered.xml deleted file mode 100644 index 8c04201464..0000000000 --- a/internal/docs/jsf/JSFSpecAssertions_Numbered.xml +++ /dev/null @@ -1,6723 +0,0 @@ - - - - - - - - - JSF - JSF 2.0 - JavaServer Faces(TM) - Version 2.0, Public Review 20090327 - - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - - - - - - - JSF:SPEC:1 - - The JSF implementation must perform the following tasks during - the Restore View phase of the request processing lifecycle: - - - - - JSF:SPEC:1.1 - - Examine the FacesContext instance for the current - request. If it already contains a UIViewRoot: - - - - - JSF:SPEC:1.1.1 - - Set the locale on the UIViewRoot to the value - returned by getRequestLocale() method on the - ExternalContext for this request - - - - - JSF:SPEC:1.1.2 - - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValue() method on - this ValueExpression, passing the component - instance on which it was found. - - - - - JSF:SPEC:1.1.3 - - Take no further action during this phase, and - return. - - - - - - - JSF:SPEC:1.2 - - Derive the view identifier that corresponds to this - request, as follows: - - - - - JSF:SPEC:1.2.1 - - If prefix mapping (such as /faces/*) is - used for FacesServlet, the viewId is set from - the extra path information of the request - URI. - - - - - JSF:SPEC:1.2.2 - - If suffix mapping (such as *.faces) is used for - FacesServlet, the viewId is set from the servlet - path information of the request URI, after - replacing the suffix with the value of the - context initialization parameter named by the - symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no - such context initialization parameter is - present, use the value of the symbolic constant - ViewHandler.DEFAULT_SUFIX as the replacement - suffix). - - - - - JSF:SPEC:1.2.3 - - If no view identifier can be derived, throw an - exception. - - - - - - - JSF:SPEC:1.3 - - Determine if this request is a postback or initial - request by executing the following algorithm. Find the - render-kit-id for the current request by calling - calculateRenderKitId() on the Application's ViewHandler. - Get the RenderKit's ResponseStateManager and call its - isPostback() method, passin gthe current FacesContext - - - - - JSF:SPEC:1.4 - - A request that is a non-postback request must call - FacesContext.renderResponse() to cause intervening - phases to be skipped. - - - - - JSF:SPEC:1.5 - - If the request is a postback, call - ViewHandler.restoreView() passing the FacesCOntext - isntance for the current request and the derived view - identifier, and returning a UIViewRoot for the restored - view. If the return from ViewHandler.restoreView() is - null, throw a FacesException with an appropriate error - message. - - - - - JSF:SPEC:1.5.1 - - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValeu() method on - this ValueExpression, passing the component - instance on which it was found. Do this in a - parent-first fashion, calling setValue() method - and then traversing the children. - - - - - - - JSF:SPEC:1.6 - - If the request is a non-postback, call - ViewHandler.createView(), passing the FacesContext - instance for the current request and the derived view - identifier. - - - - - JSF:SPEC:1.7 - - Store the restored or created UIViewRoot in the - FacesContext - - - - - - - JSF:SPEC:2 - - During the Apply Request Values phase, the JSF implementation - must call the processDecodes() method of the UIViewRoot of the - component tree. - - - - - JSF:SPEC:3 - - During the decoding of request values, some components perform - special processing: - - - - - JSF:SPEC:3.1 - - Components that implement ActionSource, which recognize - that they were activated, will queue an ActionEvent. - - - - - JSF:SPEC:3.1.1 - - The event will be delivered at the end of Apply - Request Values phase if the immediate property - is true - - - - - JSF:SPEC:3.1.2 - - The event will be delivered at the end of Invoke - Application phase if the immediate property is - false - - - - - - - JSF:SPEC:3.2 - - Components that implement EditableValueHolder, and whose - immediate property is set to true, will cause the - conversion and validation processing that normally - happens during Process Validations phase to occur during - Apply Requst Values phase instead. - - - - - - - JSF:SPEC:4 - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called - responseComplete() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - terminate the lifecycle processing of the current request. - - - - - JSF:SPEC:5 - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and terminate the - lifecycle processing of the current request. - - - - - JSF:SPEC:6 - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, did not call - responseComplete() or renderResponse() on the FacesContext - instance for the current request, the implementation must - proceed to the Process Validations phase. - - - - - JSF:SPEC:7 - - During the Process Validations phase of the request processing - lifecycle, the JSF implementation must call the - processValidators() method of the UIViewRoot of the tree. - - - - - JSF:SPEC:8 - - If any of the validate() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and transfer control to - the Render Response phase of the request processing lifecycle. - Otherwise, control must proceed to the Update Model Values - phase. - - - - - JSF:SPEC:9 - - During the Update Model Values phase, the JSF implementation - must call the processUpdates() method of the UIViewRoot - component of the tree. - - - - - JSF:SPEC:10 - - If any of the updateModel() methods that was invoked, - or an event listener that processed a queued event, called - renderResponse() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - transfer control to the Render Response phase of the request - processing lifecycle. Otherwise, control must proceed to the - Invoke Application phase. - - - - - JSF:SPEC:11 - - The implementation must ensure that the processApplication() - method of the UIViewRoot instance is called. - - - - - JSF:SPEC:11.1 - - The default behavior of this method will be to broadcast - any queued events that specify a phase identifier of - PhaseId.INVOKE_APPLICATION. - - - - - - - JSF:SPEC:12 - - During the Render Response phase All JSF implementations - must conform to the following requirements. - - - - - JSF:SPEC:12.1 - - JSF implementations must provide a default ViewHandler - implementation that performs a - RequestDispatcher.forward() call to a web application - resource whose context-relative path is equal to the - view identifier of the component tree - - - - - JSF:SPEC:12.2 - - During the rendering process, additional components may - be added to the component tree based on information - available to the ViewHandler implementation. However, - before adding a new component, the ViewHandler - implementation must first check for the existence of the - corresponding component in the component tree. If the - component already exists (perhaps because a previous - phase has pre-created one or more components), the - existing component’s properties and attributes must be - utilized. - - - - - JSF:SPEC:12.3 - - Under no circumstances should a component be selected - for rendering when its parent component, or any of its - ancestors in the component tree, has its rendersChildren - property set to true. In such cases, the parent or - ancestor component must render the content of this child - component when the parent or ancestor was selected. - - - - - - - JSF:SPEC:13 - - For each queued event, the broadcast() method of the source - UIComponent must be called to broadcast the event to all event - listeners who have registered an interest, on this source - component for events of the specified type, after which the - event is removed from the event queue. - - - - - JSF:SPEC:14 - - It is also possible for event listeners to cause additional - events to be enqueued for processing during the current phase - of the request processing lifecycle. Such events must be - broadcast in the order they were enqueued, after all originally - queued events have been broadcast, before the lifecycle - management method returns. - - - - - JSF:SPEC:15 - - The UIViewRoot instance returned by the createView() method must - minimally contain a single UIViewRoot provided by the JSF - implementation, which must encapsulate any - implementation-specific component management that is required. - - - - - JSF:SPEC:16 - - The caller of ViewHandler.createView() must cause the - FacesContext to be populated with the new UIViewRoot. - - - - - JSF:SPEC:17 - - The default ViewHandler must call calculateRenderKitId() on - itself and set the result into the UIViewRoot’s renderKitId - property. - - - - - JSF:SPEC:18 - - Once the view has been created and configured, the FacesContext - instance for this request must be made aware of it by calling - setViewRoot(). - - - - - JSF:SPEC:19 - - The create ViewHandler’s createView() method must cause the - active Locale to be determined by looking at the user’s - preferences combined with the application’s stated supported - locales. - - - - - JSF:SPEC:20 - - At the beginning of the render-response phase, the ViewHandler - must ensure that the response Locale is set to be that of the - UIViewRoot, for example by calling ServletResponse.setLocale() - when running in the servlet environment. - - - - - JSF:SPEC:21 - - At the end of the render-response phase, the ViewHandler must - store the response character encoding used by the underlying - response object (e.g., the servlet or portlet response) in the - session (if and only if a session already exists) under a well - known, implementation-dependent key - - - - - JSF:SPEC:21.1 - - On a subsequent postback, before any of the - ExternalContext methods for accessing request - parameters are invoked, the ViewHandler must examine the - Content-Type header to read the charset attribute and - use its value to set it as the request encoding for the - underlying request object. If the Content-Type header - doesn't contain a charset attribute, the encoding - previously stored in the session (if and only if a - session already exists), must be used to set the - encoding for the underlying request object. - - - - - JSF:SPEC:21.2 - - If no character encoding is found, the request encoding - must be left unmodified. - - - - - - - JSF:SPEC:22 - - A JSF implementation must provide a jakarta.faces.Messages - ResourceBundle containing all of the necessary keys for the - standard messages. - - - - - JSF:SPEC:22.1 - - jakarta.faces.component.UIInput.CONVERSION -- - {0}: Conversion error occurred - - - - - JSF:SPEC:22.2 - - jakarta.faces.component.UIInput.REQUIRED -- - {0}: Validation Error: Value is required - - - - - JSF:SPEC:22.3 - - jakarta.faces.component.UIInput.UPDATE -- - {0}: An error occurred when processing your submitted - information - - - - - JSF:SPEC:22.4 - - jakarta.faces.component.UISelectOne.INVALID -- - {0}: Validation Error: Value is not valid - - - - - JSF:SPEC:22.5 - - jakarta.faces.component.UISelectMany.INVALID -- - {0}: Validation Error: Value is not valid - - - - - JSF:SPEC:22.6 - - jakarta.faces.converter.BigDecimalConverter.DECIMAL={2}: - ''{0}'' must be a signed decimal number. - - - - - JSF:SPEC:22.7 - - jakarta.faces.converter.BigDecimalConverter.DECIMAL_detail - ={2}: ''{0}'' must be asigned decimal number consisting - of zero or more digits, that may be followed by a - decimal point and fraction. Example: {1} - - - - - JSF:SPEC:22.8 - - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER - ={2}: ''{0}'' must be a number consisting of one or more - digits. - - - - - JSF:SPEC:22.9 - - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER_ - detail={2}: ''{0}'' must be a number consisting of one - or more digits. Example: {1} - - - - - JSF:SPEC:22.10 - - jakarta.faces.converter.BooleanConverter.BOOLEAN={1}: - ''{0}'' must be 'true' or 'false'. - - - - - JSF:SPEC:22.11 - - jakarta.faces.converter.BooleanConverter.BOOLEAN_detail - ={1}: ''{0}'' must be 'true' or 'false'. Any value other - than 'true' will evaluate to 'false'. - - - - - JSF:SPEC:22.12 - - jakarta.faces.converter.ByteConverter.BYTE={2}: ''{0}'' - must be a number between 0 and 255. - - - - - JSF:SPEC:22.13 - - jakarta.faces.converter.ByteConverter.BYTE_detail={2}: - ''{0}'' must be a number between 0 and 255. Example: {1} - - - - - JSF:SPEC:22.14 - - jakarta.faces.converter.CharacterConverter.CHARACTER={1}: - ''{0}'' must be a valid character. - - - - - JSF:SPEC:22.15 - - jakarta.faces.converter.CharacterConverter.CHARACTER_ - detail={1}: ''{0}'' must be a valid ASCII character. - - - - - JSF:SPEC:22.16 - - jakarta.faces.converter.DateTimeConverter.DATE={2}: - ''{0}'' could not be understood as a date. - - - - - JSF:SPEC:22.17 - - jakarta.faces.converter.DateTimeConverter.DATE_detail={2}: - ''{0}'' could not be understood as a date. Example: {1} - - - - - JSF:SPEC:22.18 - - jakarta.faces.converter.DateTimeConverter.TIME={2}: - ''{0}'' could not be understood as a time. - - - - - JSF:SPEC:22.19 - - jakarta.faces.converter.DateTimeConverter.TIME_detail={2}: - ''{0}'' could not be understood as a time. Example: {1} - - - - - JSF:SPEC:22.20 - - jakarta.faces.converter.DateTimeConverter.DATETIME={2}: - ''{0}'' could not be understood as a date and time. - - - - - JSF:SPEC:22.21 - - jakarta.faces.converter.DateTimeConverter.DATETIME_detail= - {2}: ''{0}'' could not be understood as a date and time. - Example: {1} - - - - - JSF:SPEC:22.22 - - jakarta.faces.converter.DateTimeConverter.PATTERN_TYPE= - {1}: A 'pattern' or 'type' attribute must be specified - to convert the value ''{0}''. - - - - - JSF:SPEC:22.23 - - jakarta.faces.converter.DoubleConverter.DOUBLE={2}: - ''{0}'' must be a number consisting of one or more - digits. - - - - - JSF:SPEC:22.24 - - jakarta.faces.converter.DoubleConverter.DOUBLE_detail={2}: - ''{0}'' must be a number between 4.9E-324 and - 1.7976931348623157E308 Example: {1} - - - - - JSF:SPEC:22.25 - - jakarta.faces.converter.EnumConverter.ENUM={2}: ''{0}'' - must be convertible to an enum. - - - - - JSF:SPEC:22.26 - - jakarta.faces.converter.EnumConverter.ENUM_detail={2}: - ''{0}'' must be convertible to an enum from the enum - that contains the constant ''{1}''. - - - - - JSF:SPEC:22.27 - - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS={1}: - ''{0}'' must be convertible to an enum from the enum, - but no enum class provided. - - - - - JSF:SPEC:22.28 - - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS_detail - ={1}: ''{0}'' must be convertible to an enum from the - enum, but no enum class provided. - - - - - JSF:SPEC:22.29 - - jakarta.faces.converter.FloatConverter.FLOAT={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - JSF:SPEC:22.30 - - jakarta.faces.converter.FloatConverter.FLOAT_detail={2}: - ''{0}'' must be a number between 1.4E-45 and - 3.4028235E38 Example: {1} - - - - - JSF:SPEC:22.31 - - jakarta.faces.converter.IntegerConverter.INTEGER={2}: - ''{0}'' must be a number consisting of one or more - digits. - - - - - JSF:SPEC:22.32 - - jakarta.faces.converter.IntegerConverter.INTEGER_detail= - {2}: ''{0}'' must be a number between -2147483648 - and 2147483647 Example: {1} - - - - - JSF:SPEC:22.33 - - jakarta.faces.converter.LongConverter.LONG={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - JSF:SPEC:22.34 - - jakarta.faces.converter.LongConverter.LONG_detail={2}: - ''{0}'' must be a number between -9223372036854775808 - to 9223372036854775807 Example: {1} - - - - - JSF:SPEC:22.35 - - jakarta.faces.converter.NumberConverter.CURRENCY={2}: - ''{0}'' could not be understood as a currency value. - - - - - JSF:SPEC:22.36 - - jakarta.faces.converter.NumberConverter.CURRENCY_detail= - {2}: ''{0}'' could not be understood as a currency value. - Example: {1} - - - - - JSF:SPEC:22.37 - - jakarta.faces.converter.NumberConverter.PERCENT={2}: - ''{0}'' could not be understood as a percentage. - - - - - JSF:SPEC:22.38 - - jakarta.faces.converter.NumberConverter.PERCENT_detail= - {2}: ''{0}'' could not be understood as a percentage. - Example: {1} - - - - - JSF:SPEC:22.39 - - jakarta.faces.converter.NumberConverter.NUMBER={2}: - ''{0}'' is not a number. - - - - - JSF:SPEC:22.40 - - jakarta.faces.converter.NumberConverter.NUMBER_detail={2}: - ''{0}'' is not a number. Example: {1} - - - - - JSF:SPEC:22.41 - - jakarta.faces.converter.NumberConverter.PATTERN={2}: - ''{0}'' is not a number pattern. - - - - - JSF:SPEC:22.42 - - jakarta.faces.converter.NumberConverter.PATTERN_detail= - {2}: ''{0}'' is not a number pattern. Example: {1} - - - - - JSF:SPEC:22.43 - - jakarta.faces.converter.ShortConverter.SHORT={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - JSF:SPEC:22.44 - - jakarta.faces.converter.ShortConverter.SHORT_detail={2}: - ''{0}'' must be a number between -32768 and 32767 - Example: {1} - - - - - JSF:SPEC:22.45 - - jakarta.faces.converter.STRING={1}: Could not convert - ''{0}'' to a string. - - - - - JSF:SPEC:22.46 - - jakarta.faces.validator.DoubleRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - JSF:SPEC:22.47 - - jakarta.faces.validator.DoubleRangeValidator.MINIMUM -- - {1}: Validation Error: Value is less than allowable - minimum of ‘’{0}’’ - - - - - JSF:SPEC:22.48 - - jakarta.faces.validator.DoubleRangeValidator.NOT_IN_RANGE - -- {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - - - - - JSF:SPEC:22.49 - - jakarta.faces.validator.DoubleRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - - - - - JSF:SPEC:22.50 - - jakarta.faces.validator.LengthValidator.MAXIMUM -- {1}: - Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - JSF:SPEC:22.51 - - jakarta.faces.validator.LengthValidator.MINIMUM -- {1}: - Validation Error: Value is less than allowable minimum - of ‘’{0}’’ - - - - - JSF:SPEC:22.52 - - jakarta.faces.validator.LongRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - JSF:SPEC:22.53 - - jakarta.faces.validator.LongRangeValidator.MINIMUM -- {1}: - Validation Error Value is less than allowable minimum of - ‘’{0}’’ - - - - - JSF:SPEC:22.54 - - jakarta.faces.validator.LongRangeValidator.NOT_IN_RANGE= - {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - - - - - JSF:SPEC:22.55 - - jakarta.faces.validator.LongRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - - - - - - - JSF:SPEC:23 - - These ResourceBundle keys must be used to look up the necessary - values to create a localized FacesMessage instance. Note that - the value of the summary and detail keys in the ResourceBundle - may contain parameter substitution tokens, which must be - substituted with the appropriate values using - java.text.MessageFormat. - - - - - JSF:SPEC:24 - - The following algorithm must be used to create a FacesMessage - instance given a message key. - - - - - JSF:SPEC:24.1 - - Call getMessageBundle() on the Application instance for - this web application, to determine if the application - has defined a resource bundle name. If so, load that - ResourceBundle and look for the message there. - - - - - JSF:SPEC:24.2 - - If not there, look in the jakarta.faces.Messages - resource bundle. - - - - - - - JSF:SPEC:25 - - A custom component that extends UIComponent directly, and does - not extend any of the standard components must implement - StateHolder manually. - - - - - JSF:SPEC:26 - - A custom component that does extend from one of the standard - components and maintains its own state, in addition to the state - maintained by the superclass must take special care to implement - StateHolder correctly. Notably, calls to saveState() must not - alter the state in any way. - - - - - - - - JSF:SPEC:27 - - Every User Interface component may be named by a component - identifier, which (if utilized) must be unique among the - components that share a common naming container parent in a - component tree. - - - - - JSF:SPEC:28 - - Component identifiers must conform to the following rules: - - - - - JSF:SPEC:28.1 - - They must start with a letter (as defined by the - Character.isLetter() method). - - - - - JSF:SPEC:28.2 - - Subsequent characters may be letters (as defined by the - Character.isLetter() method), digits as defined by the - Character.isDigit() method, dashes (‘-’), and - underscores (‘_’). - - - - - - - JSF:SPEC:29 - - The implementation of setValueExpression must detemine if the - expression is a literal by calling - ValueExpression.isLiteralText() on the expression argument. - - - - - JSF:SPEC:29.1 - - If the expression argument is literal text, then - ValueExpression.getValue() must be called on the - expression argument. - - - - - JSF:SPEC:29.2 - - The result must be used as the value argument, along - with the name argument to this component - getAttributes().put(name,value) method call. - - - - - - - JSF:SPEC:30 - - For the standard component classes defined by this - specification, all attributes, and all properties other than id - and parent, are value expression enabled. - - - - - JSF:SPEC:31 - - The specified ValueExpression must point to a read-write - JavaBeans property of type UIComponent(or appropriate subclass). - Such a component binding is used at two different times - during the processing of a Faces Request: - - - - - JSF:SPEC:31.1 - - When a component instance is first created (typically by - virtue of being referenced by a UIComponentELTag in a - JSP page), the JSF implementation will retrieve the - ValueExpression for the name binding, and call - getValue() on it. - - - - - JSF:SPEC:31.1.1 - - If this call returns a non-null UIComponent - value (because the JavaBean programmatically - instantiated and configured a component - already), that instance will be added to the - component tree that is being created. - - - - - JSF:SPEC:31.1.2 - - If the call returns null, a new component - instance will be created, added to the component - tree, and setValue() will be called on the - ValueBinding (which will cause the property on - the JavaBean to be set to the newly created - component instance). - - - - - - - JSF:SPEC:31.2 - - When a component tree is recreated during the Restore - View phase of the request processing lifecycle, for each - component that has a ValueExpression associated with the - name “binding”, setValue() will be called on it, passing - the recreated component instance. - - - - - - - JSF:SPEC:32 - - The UIComponent.getChildren() method returns a mutable List. - The returned List implementation must support all of the - required and optional methods of the List interface, as well as - update the parent property of children that are added and - removed, as described in the Javadocs for this method. - - - - - JSF:SPEC:33 - - If there are no children, the getChildCount() method must - return 0. - - - - - JSF:SPEC:34 - - The getChildCount() must not cause the creation of a child - component list, so it is preferred over calling - getChildren().size() when there are no children. - - - - - JSF:SPEC:35 - - The Map returned by getAttributes() must also support - attribute-property transparency, which operates as follows: - - - - - JSF:SPEC:35.1 - - When the get() method is called, if the specified - attribute name matches the name of a readable JavaBeans - property on the component implementation class, the - value returned will be acquired by calling the - appropriate property getter method, and wrapping Java - primitive values (such as int) in their corresponding - wrapper classes (such as java.lang.Integer) if - necessary. If the specified attribute name does not - match the name of a readable JavaBeans property on the - component implementation class, consult the internal - data-structure to in which generic attributes are - stored. If no entry exists in the internal - data-structure, see if there is a ValueExpression for - this attribute name by calling getValueExpression(), - passing the attribute name as the key. If a - ValueExpression exists, call getValue() on it, returning - the result. If an ELException is thrown wrap it in a - FacesException and re-throw it. - - - - - JSF:SPEC:35.2 - - When the put() method is called, if the specified - attribute name matches the name of a writable JavaBeans - property on the component implementation class, the - appropriate property setter method will be called. If - the specified attribute name does not match the name of - a writable JavaBeans property, simply put the value in - the data-structure for generic attributes. - - - - - JSF:SPEC:35.3 - - When the remove() method is called, if the specified - attribute name matches the name of a JavaBeans property - on the component, an IllegalArgumentException must be - thrown. - - - - - JSF:SPEC:35.4 - - When the containsKey() method is called, if the - specified attribute name matches the name of a JavaBeans - property, return false. Otherwise, return true if and - only if the specified attribute name exists in the - internal data-structure for the generic attributes. - - - - - - - JSF:SPEC:36 - - The following converter id values must be registered to create - instances of the specified Converter implementation classes: - - - - - JSF:SPEC:36.1 - - jakarta.faces.BigDecimal -- An instance of - jakarta.faces.convert.BigDecimalConverter (or a subclass - of this class). - - - - - JSF:SPEC:36.2 - - jakarta.faces.BigInteger -- An instance of - jakarta.faces.convert.BigIntegerConverter (or a subclass - of this class). - - - - - JSF:SPEC:36.3 - - jakarta.faces.Boolean -- An instance of - jakarta.faces.convert.BooleanConverter (or a subclass - of this class). - - - - - JSF:SPEC:36.4 - - jakarta.faces.Byte -- An instance of - jakarta.faces.convert.ByteConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.5 - - jakarta.faces.Character -- An instance of - jakarta.faces.convert.CharacterConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.6 - - jakarta.faces.DateTime -- An instance of - jakarta.faces.convert.DateTimeConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.7 - - jakarta.faces.Double -- An instance of - jakarta.faces.convert.DoubleConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.8 - - jakarta.faces.Float -- An instance of - jakarta.faces.convert.FloatConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.9 - - jakarta.faces.Integer -- An instance of - jakarta.faces.convert.IntegerConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.10 - - jakarta.faces.Long -- An instance of - jakarta.faces.convert.LongConverter (or a subclass of this - class). - - - - - JSF:SPEC:36.11 - - jakarta.faces.Number -- An instance of - jakarta.faces.convert.NumberConverter (or a subclass of - this class). - - - - - JSF:SPEC:36.12 - - jakarta.faces.Short -- An instance of - jakarta.faces.convert.ShortConverter (or a subclass of - this class). - - - - - - - JSF:SPEC:37 - - A JSF implementation must register converters for all of the - following classes using the by-type registration mechanism: - - - - - JSF:SPEC:37.1 - - java.math.BigDecimal, and java.math.BigDecimal.TYPE -- - An instance of jakarta.faces.convert.BigDecimalConverter - (or a subclass of this class). - - - - - JSF:SPEC:37.2 - - java.math.BigInteger, and java.math.BigInteger.TYPE -- - An instance of jakarta.faces.convert.BigIntegerConverter - (or a subclass of this class). - - - - - JSF:SPEC:37.3 - - java.lang.Boolean, and java.lang.Boolean.TYPE -- An - instance of jakarta.faces.convert.BooleanConverter - (or a subclass of this class). - - - - - JSF:SPEC:37.4 - - java.lang.Byte, and java.lang.Byte.TYPE -- An instance - of jakarta.faces.convert.ByteConverter (or a subclass of - this class). - - - - - JSF:SPEC:37.5 - - java.lang.Character, and java.lang.Character.TYPE -- An - instance of jakarta.faces.convert.CharacterConverter - (or a subclass of this class). - - - - - JSF:SPEC:37.6 - - java.lang.Double, and java.lang.Double.TYPE -- An - instance of jakarta.faces.convert.DoubleConverter (or a - subclass of this class). - - - - - JSF:SPEC:37.7 - - java.lang.Float, and java.lang.Float.TYPE -- An instance - of jakarta.faces.convert.FloatConverter (or a subclass of - this class). - - - - - JSF:SPEC:37.8 - - java.lang.Integer, and java.lang.Integer.TYPE -- An - instance of jakarta.faces.convert.IntegerConverter (or a - subclass of this class). - - - - - JSF:SPEC:37.9 - - java.lang.Long, and java.lang.Long.TYPE -- An instance - of jakarta.faces.convert.LongConverter (or a subclass of - this class). - - - - - JSF:SPEC:37.10 - - java.lang.Short, and java.lang.Short.TYPE -- An instance - of jakarta.faces.convert.ShortConverter (or a subclass of - this class). - - - - - JSF:SPEC:37.11 - - java.lang.Enum, and java.lang.Enum.TYPE -- An instance - of jakarta.faces.convert.EnumConverter (or a subclass of - this class). - - - - - - - JSF:SPEC:38 - - A compliant implementation must allow the registration of a - converter for class java.lang.String and java.lang.String.TYPE - that will be used to convert values for these types. - - - - - JSF:SPEC:39 - - A concrete UIComponent subclass that emits events of a - particular type must include public methods to register and - deregister a listener implementation. - - - - - JSF:SPEC:40 - - The following standard Validator implementations (in the - jakarta.faces.validator package) are provided: - - - - - JSF:SPEC:40.1 - - DoubleRangeValidator—Checks the local value of a - component, which must be of any numeric type, against - specified maximum and/or minimum values. Standard - identifier is “jakarta.faces.DoubleRange”. - - - - - JSF:SPEC:40.2 - - LengthValidator—Checks the length (i.e. number of - characters) of the local value of a component, which - must be of type String, against maximum and/or minimum - values. Standard identifier is “jakarta.faces.Length”. - - - - - JSF:SPEC:40.3 - - LongRangeValidator—Checks the local value of a - component, which must be of any numeric type convertible - to long, against maximum and/or minimum values. Standard - identifier is “jakarta.faces.LongRange”. - - - - - JSF:SPEC:40.4 - - MethodExpressionValidator—Wraps a MethodExpression and - interprets it as pointing to a method that performs - validation. Any exception thrown when the expression - is invoked is wrapped in a ValidatorException in similar - fashion as the above validators. - - - - - - - - - - JSF:SPEC:41 - - The implementation for each standard UIComponent class - must specify two public static final String constant values: - - - - - JSF:SPEC:41.1 - - COMPONENT_TYPE -- The standard component type identifier - under which the corresponding component class is - registered with the Application object for this - application. This value may be used as a parameter to - the createComponent() method. - - - - - JSF:SPEC:41.2 - - COMPONENT_FAMILY -- The standard component family - identifier used to select an appropriate Renderer for - this component. - - - - - - - JSF:SPEC:42 - - UIColumn specializes the behavior of render-independent - properties inherited from the parent class as follows: - - - - - JSF:SPEC:42.1 - - The default value of the family property must be set to - “jakarta.faces.Column”. - - - - - JSF:SPEC:42.2 - - The default value of the rendererType property must be - set to null. - - - - - - - JSF:SPEC:43 - - UICommand components specialize the behavior of - renderindependent properties inherited from the parent class as - follows: - - - - - JSF:SPEC:43.1 - - The default value of the family property must be set to - “jakarta.faces.Command”. - - - - - JSF:SPEC:43.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Button”. - - - - - - - JSF:SPEC:44 - - UIData specializes the behavior of render-independent properties - inherited from the parent component as follows: - - - - - JSF:SPEC:44.1 - - The default value of the family property must be set to - “jakarta.faces.Data”. - - - - - JSF:SPEC:44.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Table”. - - - - - - - JSF:SPEC:45 - - A DataModel wrapper instance must automatically be provided by - the JSF implementation if the current value is of one of the - following types: - - - - - JSF:SPEC:45.1 - - java.util.List - - - - - JSF:SPEC:45.2 - - Array of java.util.Object - - - - - JSF:SPEC:45.3 - - java.sql.ResultSet (which therefore also supports - javax.sql.RowSet) - - - - - JSF:SPEC:45.4 - - javax.servlet.jsp.jstl.sql.Result - - - - - JSF:SPEC:45.5 - - Any other Java object is wrapped by a DataModel instance - with a single row - - - - - - - JSF:SPEC:46 - - UIData specializes the behavior of the processDecodes(), - processValidators(), and processUpdates() methods inherited from - its parent as follows: - - - - - JSF:SPEC:46.1 - - For each of these methods, the UIData implementation - must iterate over each row in the underlying data model, - starting with the row identified by the first property, - for the number of rows indicated by the rows property, - by calling the setRowIndex() method. - - - - - JSF:SPEC:46.2 - - When iteration is complete, set the rowIndex property of - this component, and of the underlying DataModel, to - zero, and remove any request attribute exposed via the - var property. - - - - - - - JSF:SPEC:47 - - The encodeEnd() method of the renderer for UIForm must call - ViewHandler.writeState() before writing out the markup for the - closing tag of the form. - - - - - JSF:SPEC:48 - - UIForm specializes the behavior of render-independent properties - inherited from the parent component as follows: - - - - - JSF:SPEC:48.1 - - The default value of the family property must be set to - “jakarta.faces.Form”. - - - - - JSF:SPEC:48.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Form”. - - - - - - - JSF:SPEC:49 - - The setSubmitted() method of each UIForm instance in the view - must be called during the Apply Request Values phase of the - request processing lifecycle, during the processing performed by - the UIComponent.decode() method. If this UIForm instance - represents the form actually being submitted on this request, - the parameter must be set to true; otherwise, it must be set to - false. - - - - - JSF:SPEC:50 - - The value of a UIForm's submitted property must not be saved as - part of its state. - - - - - JSF:SPEC:51 - - The saveState() method of UIForm must call setSubmitted(false) - before calling super.saveState(). - - - - - JSF:SPEC:52 - - Override the parent method to ensure that children of this - UIForm instance in the view have the form’s clientId prepended - to their clientIds if and only if the form’s prependId property - is true. - - - - - JSF:SPEC:53 - - UIGraphic specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:53.1 - - The default value of the family property must be set to - “jakarta.faces.Graphic”. - - - - - JSF:SPEC:53.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Image”. - - - - - - - JSF:SPEC:54 - - UIInput specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:54.1 - - The default value of the family property must be set to - “jakarta.faces.Input”. - - - - - JSF:SPEC:54.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - - - - - JSF:SPEC:54.3 - - The Converter specified by the converter property (if - any) must also be used to perform String->Object - conversions during decoding. - - - - - JSF:SPEC:54.4 - - If the value property has an associated ValueExpression, - the setValue() method of that ValueExpression will be - called during the Update Model Values phase of the - request processing lifecycle to push the local value of - the component back to the corresponding model bean - property. - - - - - - - JSF:SPEC:55 - - UIMessage specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:55.1 - - The default value of the family property must be set to - “jakarta.faces.Message”. - - - - - JSF:SPEC:55.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Message”. - - - - - - - JSF:SPEC:56 - - UIOutput specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:56.1 - - The default value of the family property must be set to - “jakarta.faces.Output”. - - - - - JSF:SPEC:56.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - - - - - - - JSF:SPEC:57 - - UIPanel specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:57.1 - - The default value of the family property must be set to - “jakarta.faces.Panel”. - - - - - JSF:SPEC:57.2 - - The default value of the rendererType property must be - set to null. - - - - - - - JSF:SPEC:58 - - UIParameter specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:58.1 - - The default value of the family property must be set to - “jakarta.faces.Parameter”. - - - - - JSF:SPEC:58.2 - - The default value of the rendererType property must be - set to null. - - - - - - - JSF:SPEC:59 - - UISelectBoolean specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:59.1 - - The default value of the family property must be set to - “jakarta.faces.SelectBoolean”. - - - - - JSF:SPEC:59.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Checkbox”. - - - - - - - JSF:SPEC:60 - - UISelectItem specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:60.1 - - The default value of the family property must be set to - “jakarta.faces.SelectItem”. - - - - - JSF:SPEC:60.2 - - The default value of the rendererType property must be - set to null. - - - - - JSF:SPEC:60.3 - - If the value property is non-null, it must contain a - SelectItem instance used to configure the selection item - specified by this component. - - - - - JSF:SPEC:60.4 - - If the value property is a value expression, it must - point at a SelectItem instance used to configure the - selection item specified by this component. - - - - - JSF:SPEC:60.5 - - If the value property is null, and there is no - corresponding value expression, the itemDescription, - itemDisabled, itemLabel and itemValue properties must be - used to construct a new SelectItem representing the - selection item specified by this component. - - - - - - - JSF:SPEC:61 - - UISelectItems specializes the behavior of renderindependent - properties inherited - - - - - JSF:SPEC:61.1 - - The default value of the family property must be set to - “jakarta.faces.SelectItems”. - - - - - JSF:SPEC:61.2 - - The default value of the rendererType property must be - set to null. - - - - - JSF:SPEC:61.3 - - If the value property (or the value returned by a value - expression associated with the value property) is - non-null, it must contain a SelectItem bean, an array of - SelectItem beans, a Collection of SelectItem beans, or a - Map, where each map entry is used to construct a - SelectItem bean with the key as the label property of - the bean, and the value as the value property of the - bean (which must be of the same basic type as the value - of the parent component’s value). - - - - - - - JSF:SPEC:62 - - UISelectMany must provide a specialized validate() method which - ensures that any decoded values are valid options (from the - nested UISelectItem and UISelectItems children). - - - - - JSF:SPEC:63 - - UISelectOne specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:63.1 - - The default value of the family property must be set to - “jakarta.faces.SelectOne”. - - - - - JSF:SPEC:63.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Menu”. - - - - - - - JSF:SPEC:64 - - UISelectOne must provide a specialized validate() method which - ensures that any decoded value is a valid option (from the - nested UISelectItem and UISelectItems children). - - - - - JSF:SPEC:65 - - UIViewRoot specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - JSF:SPEC:65.1 - - The default value of the family property must be set to - “jakarta.faces.ViewRoot”. - - - - - JSF:SPEC:65.2 - - The default value of the rendererType property must be - set to null. - - - - - - - JSF:SPEC:66 - - The JSF implementation must provide concrete implementations of - DataModel (in the jakarta.faces.model package) for the following - data wrapping scenarios: - - - - - JSF:SPEC:66.1 - - ArrayDataModel -- Wrap an array of Java objects. - - - - - JSF:SPEC:66.2 - - ListDataModel -- Wrap a java.util.List of Java objects. - - - - - JSF:SPEC:66.3 - - ResultDataModel -- Wrap an object of type - javax.servlet.jsp.jstl.sql.Result (the query results - from JSTL’s SQL tag library) - - - - - JSF:SPEC:66.4 - - ResultSetDataModel -- Wrap an object of type - java.sql.ResultSet (which therefore means that - javax.sql.RowSet instances are also supported). - - - - - JSF:SPEC:66.5 - - ScalarDataModel -- Wrap a single Java object in what - appears to be a one-row data set. - - - - - - - - - - - JSF:SPEC:67 - - It is an error to specify a managed bean class that does not - exist, or that cannot be instantiated with a public, zero-args - constructor. - - - - - JSF:SPEC:68 - - It is an error to specify a <property-name> element for a - property that does not exist, or does not have a public setter - method, on the specified managed bean class. - - - - - JSF:SPEC:69 - - It is an error to specify a value element that cannot be - converted to the type required by a managed property, or that, - when evaluated, results in a value that cannot be converted to - the type required by a managed property. - - - - - JSF:SPEC:70 - - If the type of the property referenced by the - <managed-property> element is a Java enum, the contents of - the <value> element must be a String that yields a valid - return from java.lang.Enum.valueOf(PROPERTY_CLASS, VALUE) where - PROPERTY_CLASS is the java.lang.Class for the property and VALUE - is the contents of <value> element in the application - configuration resource. If any exception is thrown from - Enum.valueOf() it is an error. - - - - - JSF:SPEC:71 - - It is an error for a managed bean created through The Managed - Bean Creation Facility to have a property that points at an - object stored in a scope with a (potentially) shorter life span. - Specifically, this means, for an object created with the - specified <managed-bean-scope>, then <value> - evaluations can only point at created objects with the specified - managed bean scope: - - ■ none -- none - ■ application -- none, application - ■ session -- none, application, session - ■ request -- none, application, session, request - - - - - JSF:SPEC:72 - - Data accessed via an implicit object is also defined to be in a - scope. The following implicit objects are considered to be in - request scope: - - ■ cookie - ■ facesContext - ■ header - ■ headerValues - ■ param - ■ paramValues - ■ request - ■ requestScope - ■ view - - - - - JSF:SPEC:73 - - The only implicit objects in session scope are session and - sessionScope. - - - - - JSF:SPEC:74 - - The following implicit objects are considered to be in - application scope: - - ■ application - ■ applicationScope - ■ initParam - - - - - JSF:SPEC:75 - - It is an error to configure cyclic references between managed - beans. - - - - - JSF:SPEC:76 - - Managed bean names must conform to the syntax of a Java language - identifier. - - - - - JSF:SPEC:77 - - <null-value/> -- An empty element indicating that this property - must be explicitly initialized to null. This element is not allowed if - the underlying property is of a Java primitive type. - - - - - JSF:SPEC:78 - - Each <managed-property> element contains the following elements - used to configure the execution of the corresponding property setter - call: - - - - - JSF:SPEC:78.1 - - <property-name> -- The property name of the property to be - configured. - - - - - JSF:SPEC:78.2 - - <map-entries> -- A set of key/value pairs used to - initialize the contents of a property of type java.util.Map. - - - - - JSF:SPEC:78.3 - - <null-value/> -- An empty element indicating that this - property must be explicitly initialized to null. This element is - not allowed if the underlying property is of a Java primitive - type. - - - - - JSF:SPEC:78.4 - - <value> -- A String value that will have any leading and - trailing spaces stripped, and then be converted prior to - setting it to this value. - - - - - JSF:SPEC:78.5 - - <list-entries> -- A set of values used to initialize the - contents of a property of type array or java.util.List. - - - - - - - JSF:SPEC:79 - - The initialization of bean properties from <map-entries> elements - must adhere to the following algorithm: - - - - - JSF:SPEC:79.1 - - Call the property getter. If the getter returns null or doesn't - exist, create a java.util.HashMap, otherwise - use the returned java.util.Map. - - - - - JSF:SPEC:79.2 - - Add all entries defined by nested <map-entry> elements in - the order they are listed, converting key values defined by - nested <key> elements to the type defined by <keyclass> - and entry values defined by nested <value> elements to the - type defined by <value-class>. - - - - - JSF:SPEC:79.3 - - If a value is given as a value expression, evaluate the - reference and store the result, converting to <value-class> - if necessary. If <key-class> and/or <value-class> - are not defined, use java.lang.String. Add null for each - <null-value> element. - - - - - JSF:SPEC:79.4 - - If a new java.util.Map was created, set the property by calling - the setter method, or log an error if there is no setter method. - - - - - - - JSF:SPEC:80 - - The initialization of bean properties from <list-entries> elements - must adhere to the following algorithm: - - - - - JSF:SPEC:80.1 - - Call the property getter, If the getter returns null or doesn't - exist, create a java.util.ArrayList, otherwise use the returned - Object (an array or a java.util.List). - - - - - JSF:SPEC:80.2 - - add all elements defined by nested <value> elements in the - order they are listed, converting values defined by nested - <value> elements to the type defined by <value-class>. - - - - - JSF:SPEC:80.3 - - If a value is given as a value expression, evaluate the - reference and store the result, converting to <valueclass> - if necessary. If a <value-class> is not defined, use the - value as-is (i.e., as a java.lang.String). Add null for each - <null-value> element. - - - - - JSF:SPEC:80.4 - - If an array was returned, create a java.util.ArrayList and copy - all elements from the returned array to the new List, wrapping - elements of a primitive type. - - - - - JSF:SPEC:80.5 - - If a new java.util.List was created, and the property is of type - List, set the property by calling the setter method, or log an - error if there is no setter method. - - - - - JSF:SPEC:80.6 - - If a new java.util.List was created, and the property is a java - array, convert the List into an array of the property type, and - set it by calling the setter method, or log an error if there is - no setter method. - - - - - JSF:SPEC:80.7 - - If a new java.util.List was created, convert the List - to an array of the proper type for the property and set the - property by calling the setter method, or log an error if there - is no setter method. - - - - - - - JSF:SPEC:81 - - Here is a summary of the valid injection annotations one may use - in a managed bean. - - @Resource - @Resources - @EJB - @EJBs - @WebServiceRef - @WebServiceRefs - @PersistenceContext - @PersistenceContexts - @PersistenceUnit - @PersistenceUnits - - - - - JSF:SPEC:82 - - JSF implementations running in a Java EE 5 compliant container must - support attaching the @PostConstruct and @PreDestroy annotations to aid - in awareness of the managedbean lifecycle. - - - - - JSF:SPEC:82.1 - - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PostConstruct, must be called - by the JSF implementation after resource injection is performed - (if any) but before the bean is placed into scope. - - - - - JSF:SPEC:82.2 - - If the method throws an unchecked exception, the JSF - implementation must not put the managed-bean into service and - further methods on that managed bean instance must not be - called. - - - - - JSF:SPEC:82.3 - - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PreDestroy, must be called by - the JSF implementation before the bean is removed from its scope - or before the scope itself is destroyed, whichever comes first. - This annotation must be supported in all cases where the above - @PostConstruct annotation is supported. - - - - - JSF:SPEC:82.4 - - If the method throws an unchecked exception, the JSF - implementation may log it, but the exception must not otherwise - alter the execution. - - - - - - - - - - - JSF:SPEC:83 - - The JSF implementation must ensure that the Application instance - for the current web application is available via this method, as - a convenient alternative to lookup via an ApplicationFactory. - - - - - JSF:SPEC:84 - - Upon creation of the ELContext instance, the implementation must - take the following action: - - - - - JSF:SPEC:84.1 - - Call the ELContext.putContext(java.lang.Class, - java.lang.Object) method on the instance, passing in - FacesContext.class and the this reference for the - FacesContext instance itself. - - - - - JSF:SPEC:84.2 - - If the Collection returned by - jakarta.faces.Application.getELContextListeners() is - non-empty, create an instance of ELContextEvent and pass - it to each ELContextListener instance in the Collection - by calling the ELContextListener.contextCreated - (jakarta.el.ELContextEvent) method. - - - - - - - JSF:SPEC:85 - - The ExternalContext abstract class must be implemented along - with the FacesContext class, and must be accessible via the - getExternalContext method in FacesContext. - - - - - JSF:SPEC:86 - - The dispatch() must use a RequestDispatcher provided by the - application context object to incorporate content from a - specified context-relative resource. The redirect() method must - cause an HTTP Redirect to be sent to the client. - - - - - JSF:SPEC:87 - - The getClientIdsWithMessages() method must return an Iterator - over the client identifiers for which at least one Message has - been queued. This method must be implemented so the clientIds - are returned in the order of calls to addMessage(). - - - - - JSF:SPEC:88 - - In some circumstances, it is possible that both renderResponse() - and responseComplete() might have been called for the request. - In this case, the JSF implementation must respect the - responseComplete() call (if it was made) before checking to see - if renderResponse() was called. - - - - - JSF:SPEC:89 - - The getCurrentInstance() method may be called by any Java class - in the current web application to retrieve an instance of the - FacesContext for this request. The JSF implementation must - ensure that this value is set correctly before - FacesContextFactory returns a FacesContext instance, - and that the value is maintained in a thread-safe manner. - - - - - JSF:SPEC:90 - - A single instance of jakarta.faces.context.FacesContextFactory - must be made available to each JSF-based web application - running in a servlet or portlet container. - - - - - - - - JSF:SPEC:91 - - The JSF implementation must provide a default implementation - ActionListener that performs the following functions: - - - - - JSF:SPEC:91.1 - - The processAction() method must call - FacesContext.renderResponse() in order to bypass any - intervening lifecycle phases, once the method returns. - - - - - JSF:SPEC:91.2 - - The processAction() method must next determine the - logical outcome of this event, as follows: - - - - - JSF:SPEC:91.2.1 - - If the originating component has a non-null - action property, retrieve the MethodBinding and - call invoke() to perform the application- - specified processing in this action method. If - the method returns non-null, call toString() on - the result and use the value returned as the - logical outcome. - - - - - JSF:SPEC:91.2.2 - - The default logical outcome is null. - - - - - - - - - JSF:SPEC:92 - - If a call is made to setViewHandler() after the first time the - Render Response phase has executed, the call must be ignored by - the implementation. - - - - - JSF:SPEC:93 - - The default implementation simply returns the ExpressionFactory - from the JSP container by calling JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext) - .getExpressionFactory(). - - - - - JSF:SPEC:94 - - The "public UIComponent createComponent(ValueExpression - componentExpression, FacesContext context, - String componentType);" method has the following behavior: - - - - - JSF:SPEC:94.1 - - Call the getValue() method on the specified - ValueExpression, in the context of the specified - FacesContext. If this results in a non-null UIComponent - instance, return it as the value of this method. - - - - - JSF:SPEC:94.2 - - If the getValue() call did not return a component - instance, create a new component instance of the - specified component type, pass the new component to the - setValue() method of the specified ValueExpression, and - return it. - - - - - - - JSF:SPEC:95 - - The default NavigationHandler implementation must behave as if - it were performing the following algorithm (although optimized - implementation techniques may be utilized): - - - - - JSF:SPEC:95.1 - - If the logical outcome value passed to the - handleNavigation() method is null, do not scan for - matching rules. This is an indication that the current - view should be redisplayed. - - - - - JSF:SPEC:95.2 - - Find a <navigation-rule> element for which the - view identifier (of the view in the FacesContext - instance for the current request) matches the - <from-view-id> matching pattern of the - <navigation-rule>. Rule instances are considered - in the following order: - - - - - JSF:SPEC:95.2.1 - - An exact match of the view identifier against a - <from-view-id> pattern that does not end with an - asterisk (“*”) character. - - - - - JSF:SPEC:95.2.2 - - For <from-view-id> patterns that end with an - asterisk, an exact match on characters preceding the - asterisk against the prefix of the view id. If the - patterns for multiple navigation rules match, pick the - longest matching prefix first. - - - - - JSF:SPEC:95.2.3 - - If there is a <navigation-rule> with a - <from-view-id> pattern of only an asterisk3, it - matches any view identifier. - - - - - - - JSF:SPEC:95.3 - - From the <avigation-case> elements nested within the - matching <navigationrule> element, locate a matching - navigation case by matching the <from-action> and - <from-outcome> values against the corresponding parameter - values passed in to the handleNavigation() method. Navigation - cases are checked in the following order: - - - - - JSF:SPEC:95.3.1 - - Cases specifying both a <from-action> value and a - <from-outcome> value are matched against the - action expression and outcome parameters passed to the - handleNavigation() method (both parameters must be not - null, and both must be equal to the corresponding - condition values, in order to match). - - - - - JSF:SPEC:95.3.2 - - Cases that specify only a <from-outcome> value are - matched against the outcome parameter passed to the - handleNavigation() method (which must be not null, - and equal to the corresponding condition value, to - match). - - - - - JSF:SPEC:95.3.3 - - Cases that specify only a <from-action> value are - matched against the action expression parameter passed - to the handleNavigation() method (which must be not - null, and equal to the corresponding condition value, to - match). - - - - - - - JSF:SPEC:95.4 - - If a matching <navigation-case> element was located, and - the <redirect/> element was not specified in this - <navigation-case> (or the application is running in a - Portlet environment, where redirects are not possible), use the - <to-view-id> element of the matching case to request a new - UIViewRoot instance from the ViewHandler instance for this - application, and pass it to the setViewRoot() method of the - FacesContext instance for the current request. Then, exit the - algorithm. - - - - - JSF:SPEC:95.5 - - If a matching <navigation-case> element was located, the - <redirect/> element was specified in this - <navigation-case>, and the application is not running in a - Portlet environment, use the <to-view-id> element of the - matching case to construct a context-relative path that - corresponds to that view id, cause the current response to - perform an HTTP redirect to this path, and call - responseComplete() on the FacesContext instance for the current - request. - - - - - JSF:SPEC:95.6 - - If no matching <navigation-case> element was located, - return to Step 1 and find the next matching - <navigation-rule> element (if any). If there are no more - matching rule elements, return without changing the current - view. - - - - - - - JSF:SPEC:96 - - The calculateCharacterEncoding() method must fulfill the following - responsibilities: - - - - - JSF:SPEC:96.1 - - Examine the Content-Type request header. If it has a charset - parameter extract it and return it. - - - - - JSF:SPEC:96.2 - - If not, test for the existence of a session by calling - getSession(false) on the ExternalContext for this FacesContext. - If the session is non-null, look in the Map returned by the - getSessionMap() method of the ExternalContext for a value under - the key given by the value of the symbolic constant - jakarta.faces.application.ViewHandler.CHARACTER_ENCODING_KEY. If a - value is found, convert it to a String and return it. - - - - - - - JSF:SPEC:97 - - The calculateLocale() method must fulfill the following - responsibilities: - - - - - JSF:SPEC:97.1 - - Attempt to match one of the locales returned by the getLocales() - method of the ExternalContext instance for this request, against - the supported locales for this application as defined in the - application configuration resources. Matching is performed by - the algorithm described in Section JSTL.8.3.2 of the JSTL - Specification. If a match is found, return the corresponding - Locale object. - - - - - JSF:SPEC:97.2 - - Otherwise, if the application has specified a default locale in - the application configuration resources, return the - corresponding Locale object. - - - - - JSF:SPEC:97.3 - - Otherwise, return the value returned by calling - Locale.getDefault(). - - - - - - - JSF:SPEC:98 - - The calculateRenderKitId() method must fulfill the following - responsibilities: - - - - - JSF:SPEC:98.1 - - Return the value of the request parameter named by the symbolic - constant ResponseStateManager.RENDER_KIT_ID_PARAM if it is not - null. - - - - - JSF:SPEC:98.2 - - Otherwise, return the value returned by - Application.getDefaultRenderKitId() if it is not null. - - - - - JSF:SPEC:98.3 - - Otherwise, return the value specified by the symbolic constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - - - JSF:SPEC:99 - - The createView() method must fulfill the following responsibilities: - - - - - JSF:SPEC:99.1 - - Calculate the viewId that corresponds to this request, as - follows: - - - - - JSF:SPEC:99.1.1 - - If prefix mapping (such as “/faces/*”) is used for - FacesServlet, the viewId is set from the extra path - information of the request URI. - - - - - JSF:SPEC:99.1.2 - - If suffix mapping (such as “*.faces”) is used for - FacesServlet, the viewId is set from the servlet path - information of the request URI, after replacing the - suffix with the value of the context initialization - parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no such - context initialization parameter is present, use the - value of the symbolic constant - ViewHandler.DEFAULT_SUFFIX as the replacement suffix). - - - - - - - JSF:SPEC:99.2 - - If no viewId could be identified, or the viewId is exactly equal - to the servlet mapping, call the redirect() method of the - ExternalContext instance for this request, passing the context - path of this web application. - - - - - JSF:SPEC:99.3 - - Create a new UIViewRoot object instance - - - - - JSF:SPEC:99.4 - - Conditionally copy the renderKitId and locale from any current - view for the current request (as described in the Javadocs for - createView()). - - - - - JSF:SPEC:99.5 - - Return the newly created UIViewRoot. - - - - - - - JSF:SPEC:100 - - The getActionURL() method must fulfill the following responsibilities: - - - - - JSF:SPEC:100.1 - - If the specified viewId does not start with a “/”, throw - IllegalArgumentException. - - - - - JSF:SPEC:100.2 - - If prefix mapping (such as “/faces/*”) is used for FacesServlet, - prepend the context path of the current application, and the - specified prefix, to the specified viewId and return the - completed value. For example “/cardemo/faces/chooseLocale.jsp”. - - - - - JSF:SPEC:100.3 - - If suffix mapping (such as “*.faces”) is used for FacesServlet, - and the specified viewId ends with the specified suffix, - replacing the suffix with the value specified by the context - initialization parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_NAME (if no such context - initialization parameter is present, use the value of the - symbolic constant ViewHandler.DEFAULT_SUFFIX as the replacement - suffix), prefix this value with the context path for the current - web application, and return the result. For example - “/cardemo/chooseLocale.faces” - - - - - - - JSF:SPEC:101 - - The getResourceURL() method must fulfill the following responsibilities: - - - - - JSF:SPEC:101.1 - - If the specified path starts with a “/”, prefix it with the - context path for the current web application, and return the - result. - - - - - JSF:SPEC:101.2 - - Otherwise, return the specified path value unchanged. - - - - - - - JSF:SPEC:102 - - The initView() method must fulfill the following responsibilities: - Call calculateCharacterEncoding(). If the result is non-null pass the - result to the setRequestCharacterEncoding() method of the - ExternalContext for this FacesContext. - - - - - JSF:SPEC:103 - - The renderView() method must fulfill the following responsibilities: - - - - - JSF:SPEC:103.1 - - If the current request is a ServletRequest, call the set() - method of the javax.servlet.jsp.jstl.core.Config class, passing - the current ServletRequest, the symbolic constant - Config.FMT_LOCALE, and the locale property of the specfied - UIViewRoot. This configures JSTL with the application’s - preferred locale for rendering this response. - - - - - JSF:SPEC:103.2 - - Update the JSTL locale attribute in request scope so that JSTL - picks up the new locale from the UIViewRoot. - - - - - JSF:SPEC:103.3 - - Create a wrapper around the current response from the - ExternalContext and set it as the new response in the - ExternalContext. - - - - - JSF:SPEC:103.4 - - Execute the JSP page to build the view by treating the viewId as - a context-relative path(starting with a slash character), by - passing it to the dispatch() method of the ExternalContext - associated with this request. - - - - - JSF:SPEC:103.5 - - Restore the original response into the ExternalContext. - - - - - JSF:SPEC:103.6 - - If the FacesContext has a non-null ResponseWriter create a new - writer using its cloneWithWriter() method, passing the - response’s Writer as the argument. - - - - - JSF:SPEC:103.7 - - Set the new ResponseWriter into the FacesContext, saving the - old one aside. - - - - - JSF:SPEC:103.8 - - Call saveView() on the StateManager for this application, saving - the result in a thread-safe manner for use in the writeState() - method of ViewHandler. - - - - - JSF:SPEC:103.9 - - Call startDocument() on the ResponseWriter. - - - - - JSF:SPEC:103.10 - - Call encodeAll() on the UIViewRoot. - - - - - JSF:SPEC:103.11 - - Output any content in the wrapped response from above to the - response, removing the wrapped response from the thread-safe - storage. - - - - - JSF:SPEC:103.12 - - Call endDocument() on the ResponseWriter. - - - - - JSF:SPEC:103.13 - - If the old ResponseWriter was not null, place the old - ResponseWriter back into the FacesContext. - - - - - - - JSF:SPEC:104 - - The restoreView() method must fulfill the following responsibilities: - - - - - JSF:SPEC:104.1 - - Calculate the viewId that corresponds to this request using the - “The ViewId derivation algorithm”. - - - - - JSF:SPEC:104.2 - - If no viewId could be identified, return null. - - - - - JSF:SPEC:104.3 - - Call the restoreView() method of the associated StateManager, - passing the FacesContext instance for the current request and - the calculated viewId, and return the returned UIViewRoot, - which may be null - - - - - - - JSF:SPEC:105 - - The writeState() method must Obtain the saved state stored in a - thread-safe manner during the invocation of renderView() and pass it to - the writeState() method of the StateManager for this application. - - - - - JSF:SPEC:106 - - The "public Object saveView(FacesContext context)" method causes the - tree structure and component state of the view contained in the argument - FacesContext to be collected, stored, and returned in a java.lang.Object - instance that must implement java.io.Serializable. If null is returned - from this method, there is no state tosave. - - - - - JSF:SPEC:107 - - The "public boolean isSavingStateInClient(FacesContext context)" method - will Return true if and only if the value of the ServletContext init - parameter named by the value of the constant - StateManager.STATE_SAVING_METHOD_PARAM_NAME is equal to the value of the - constant STATE_SAVING_METHOD_CLIENT. Return false otherwise. - - - - - - - - - JSF:SPEC:108 - - A JSF implementation must provide a default RenderKit instance - (named by the render kit identifier associated with the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT) that is utilized if no other - RenderKit is selected. - - - - - JSF:SPEC:109 - - The RenderKit must support a value for the contentTypeList argument that - comes straight from the Accept HTTP header, and therefore requires - parsing according to the specification of the Accept header. - - - - - JSF:SPEC:110 - - The "getState(FacesContext context)" implementation must inspect the - current request and return the component tree state Object passed to it - on a previous invocation of writeState(). - - - - - JSF:SPEC:111 - - The ResponseStateManager.RENDER_KIT_ID_PARAM identifier must not be - written if: - - - - - JSF:SPEC:111.1 - - it is the default render kit identifier as returned by - Application.getDefaultRenderKitId(). - - - - - JSF:SPEC:111.2 - - the render kit identifier is the value of - RenderKitFactory.HTML_BASIC_RENDER_KIT and - Application.getDefaultRenderKitId() returns null. - - - - - - - JSF:SPEC:112 - - A single instance of jakarta.faces.render.RenderKitFactory must be made - available to each JSFbased web application running in a servlet or - portlet container. - - - - - JSF:SPEC:113 - - Every JSF implementation must provide a RenderKit instance for a default - render kit identifier that is designated by the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - JSF:SPEC:114 - - The returned Iterator from getRenderKitIds() must include the value - specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - JSF:SPEC:115 - - As with the standard components in the jakarta.faces.component package, - each HTML component implementation class must define a static public - final String constant named COMPONENT_TYPE, whose value is “jakarta.faces.” - concatenated with the class name. - - - - - JSF:SPEC:116 - - HTML components, must not define a COMPONENT_FAMILY constant, or - override the getFamily() method they inherit from their superclass. - - - - - - - - - JSF:SPEC:117 - - All JSF implementations must provide a tag library containing core - actions (described below) that are independent of a particular - RenderKit.The corresponding tag library descriptor must meet the - following requirements: - - - - - JSF:SPEC:117.1 - - Must declare a tag library version (tlib-version) value of 1.2. - - - - - JSF:SPEC:117.2 - - Must declare a URI (uri) value of http://java.sun.com/jsf/core. - - - - - JSF:SPEC:117.3 - - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the JavaServer Pages Specification - (version 2.1). - - - - - - - JSF:SPEC:118 - - If the f:actionListener tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ActionSource, or the specified listener class does not - implement jakarta.faces.event.ActionListener, throw a JspException. - - - - - JSF:SPEC:119 - - If the f:convertDateTime tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException - - - - - JSF:SPEC:120 - - The implementation class for f:convertDateTime must meet the following - requirements: - - - - - JSF:SPEC:120.1 - - Must extend jakarta.faces.webapp.ConverterTag. - - - - - JSF:SPEC:120.2 - - createConverter() method must, if binding is non-null, - call getValue() on it to obtain a reference to the - Converter instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.DateTimeConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - - - - - JSF:SPEC:120.3 - - If the createConverter()method has an exception thrown, rethrow - the exception as a JspException. - - - - - JSF:SPEC:120.4 - - If dateStyle is specified but timeStyle is not specified, - default to date. - - - - - JSF:SPEC:120.5 - - If dateStyle is not specified but timeStyle is specified, - default to time. - - - - - JSF:SPEC:120.6 - - If both dateStyle and timeStyle are specified, default to both. - - - - - - - JSF:SPEC:121 - - If the f:convertNumber tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException. - - - - - JSF:SPEC:122 - - The implementation class for the f:convertNumber action must meet the - following requirements: - - - - - JSF:SPEC:122.1 - - Must extend jakarta.faces.webapp.ConverterTag. - - - - - JSF:SPEC:122.2 - - The createConverter() method, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.NumberConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - - - - - JSF:SPEC:122.3 - - If there was an exception thrown, rethrow the exception as a - JspException. - - - - - JSF:SPEC:122.4 - - Call the createConverter() method of the Application - instance for this application, passing converter id - “jakarta.faces.Number”. If the binding attribute was also set, - store the converter instance by calling binding.setValue(). It - must then cast the returned instance to - jakarta.faces.convert.NumberConverter and configure its properties - based on the specified attributes for this custom action, and - return the configured instance. - - - - - - - JSF:SPEC:123 - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ValueHolder, throw a JspException. - - - - - JSF:SPEC:124 - - The implementation class for f:converter action must meet the following - requirements: - - - - - JSF:SPEC:124.1 - - Must extend jakarta.faces.webapp.ConverterJspTag. - - - - - JSF:SPEC:124.2 - - The createConverter() method must, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, register it by calling - setConverter(). If there was an exception thrown, rethrow - the exception as a JspException. - - - - - JSF:SPEC:124.3 - - Use the converterId attribute if the converter instance could - not be created from the binding attribute. If the converterId - attribute is set, call the createConverter() method of the - Application instance for this application, passing converter id - specified by their converterId attribute. If the binding - attribute was also set, store the converter instance by calling - binding.setValue(). Register the converter instance by calling - setConverter(). If there was an exception thrown, rethrow the - exception as a JspException. - - - - - - - JSF:SPEC:125 - - f:facet tag must be nested inside a UIComponent custom action. - Exactly one UIComponent custom action must be nested inside this custom action - (although the nested component custom action could itself have nested children). - - - - - JSF:SPEC:126 - - Exactly one UIComponent custom action must be nested inside this custom - action(although the nested component custom action could itself have - nested children). - - - - - JSF:SPEC:127 - - The implementation class of the f:facet tag must be, or extend, - jakarta.faces.webapp.FacetTag. - - - - - JSF:SPEC:128 - - f:loadBundle tag must be nested inside an f:view tag custom action. - - - - - JSF:SPEC:129 - - f:param tag must be nested inside a UIComponent custom action. - - - - - JSF:SPEC:130 - - The implementation class for f:param tag this action must meet the - following requirements: - - - - - JSF:SPEC:130.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - JSF:SPEC:130.2 - - The getComponentType() method must return “Parameter”. - - - - - JSF:SPEC:130.3 - - The getRendererType() method must return null. - - - - - - - JSF:SPEC:131 - - f:phaseListener tag must be nested inside a UIViewRoot custom action. - - - - - JSF:SPEC:132 - - The specified listener class for f:phaseListener must implement - jakarta.faces.event.PhaseListener. - - - - - JSF:SPEC:133 - - type and/or binding must be specified for the phaseListener impl. - - - - - JSF:SPEC:134 - - f:selectItem must be nested inside a UIComponent custom action - that creates a UISelectMany or UISelectOne component instance. - - - - - JSF:SPEC:135 - - The implementation class for this action must meet the following - requirements: - - - - - JSF:SPEC:135.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - JSF:SPEC:135.2 - - The getComponentType() method must return “SelectItem”. - - - - - JSF:SPEC:135.3 - - The getRendererType() method must return null. - - - - - - - JSF:SPEC:136 - - Must be nested inside a UIComponent custom action that creates a - UISelectMany or UISelectOne component instance. - - - - - JSF:SPEC:137 - - The implementation class for the f:selectItems action must meet - the following requirements: - - - - - JSF:SPEC:137.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - JSF:SPEC:137.2 - - The getComponentType() method must return - “jakarta.faces.SelectItems”. - - - - - JSF:SPEC:137.3 - - The getRendererType() method must return null. - - - - - - - JSF:SPEC:138 - - f:setPropertyActionListener must be nested inside a UIComponent custom - action. - - - - - JSF:SPEC:139 - - The corresponding UIComponent implementation class for - f:setPropertyActionListener must implement ActionSource, and therefore - define a public addActionListener() method that accepts an - ActionListener parameter. - - - - - JSF:SPEC:140 - - The tag implementation must only create and register the ActionListener - instance the first time the component for this tag is created - - - - - JSF:SPEC:141 - - When the listener executes, call getValue() on the "value" - ValueExpression. Pass the result to a call to setValue() on the "target" - ValueExpression - - - - - JSF:SPEC:142 - - This tag creates no output to the page currently being created. It is - used solely for the side effect of ActionListener creation and addition. - - - - - JSF:SPEC:143 - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ActionSource, or the specified listener class does not implement - jakarta.faces.event.ActionListener, throw a JspException. - - - - - JSF:SPEC:144 - - f:subview must be nested inside a f:view custom action although this - custom action might be in a page that is including the page containing - the f:subview custom action. - - - - - JSF:SPEC:145 - - f:subview must not contain an f:view custom action. - - - - - JSF:SPEC:146 - - f:subview must have an id attribute whose value is unique within the - scope of the parent naming container. - - - - - JSF:SPEC:147 - - The implementation class for f:subview must extend - jakarta.faces.UIComponentELTag. - - - - - JSF:SPEC:148 - - The implementation class's getComponentType() method must return - “NamingContainer”. - - - - - JSF:SPEC:149 - - The implementation class's getRendererType() method must return null. - - - - - JSF:SPEC:150 - - If the f:validateDoubleRange tag is not nested inside a UIComponent - custom action, or the UIComponent implementation class does not - correctly implement EditableValueHolder throw a JspException. - - - - - JSF:SPEC:151 - - The implementation class for the f:validateDoubleRange action must meet - the following requirements: - - - - - JSF:SPEC:151.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - JSF:SPEC:151.2 - - The createValidator() method must, If binding is non-null, - create a ValueBinding by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator.class as the expectedType - argument. - - - - - JSF:SPEC:151.3 - - use the validatorId if the validator instance could not be - created from the binding attribute. - - - - - JSF:SPEC:151.4 - - If there is an exception thrown, rethrow the exception as a - JspException. - - - - - - - JSF:SPEC:152 - - If the f:validateLength tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException. - - - - - JSF:SPEC:153 - - The implementation class for this action must meet the following - requirements: - - - - - JSF:SPEC:153.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - JSF:SPEC:153.2 - - If binding is non-null, create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - - - - - JSF:SPEC:153.3 - - Use the validatorId if the validator instance could not be - created from the binding attribute. Call the createValidator() - method of the Application instance for this application, - - - - - JSF:SPEC:153.4 - - If there was an exception thrown, rethrow the exception - as a JspException. - - - - - - - JSF:SPEC:154 - - f:validateLongRange must be nested inside a EditableValueHolder custom - action whose value is (or is convertible to) a long. - - - - - JSF:SPEC:155 - - f:validateLongRange must specify either the maximum attribute, the - minimum attribute, or both. - - - - - JSF:SPEC:156 - - For f:validateLongRange if both limits are specified, the maximum limit - must be greater than the minimum limit. - - - - - JSF:SPEC:157 - - If the f:validateLongRange tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException - - - - - JSF:SPEC:158 - - The implementation class for the f:validateLongRange action must meet - the following requirements: - - - - - JSF:SPEC:158.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - JSF:SPEC:158.2 - - The createValidator() method must, if binding is non-null, - create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - - - - - JSF:SPEC:158.3 - - The createValidator() method must, use the validatorId if the - validator instance could not be created from the binding - attribute. - - - - - JSF:SPEC:158.4 - - If there is an exception thrown, rethrow the exception as a - JspException - - - - - - - JSF:SPEC:159 - - f:validator tag must be nested inside a UIComponent custom action whose - component class implements EditableValueHolder. - - - - - JSF:SPEC:160 - - validatorId and/or binding must be specified. - - - - - JSF:SPEC:161 - - If the f:validator tag is not nested inside a UIComponent custom action, - or the UIComponent implementation class does not correctly implement - EditableValueHolder throw a JspException. - - - - - JSF:SPEC:162 - - The implementation class for the f:validator action must meet the - following requirements: - - - - - JSF:SPEC:162.1 - - Must extend jakarta.faces.webapp.ValidatorJspTag. - - - - - JSF:SPEC:162.2 - - The createValidator() method must, if binding is non-null, - call binding.getValue() to obtain a reference to the - Validator instance. - - - - - JSF:SPEC:162.3 - - The createValidator() method must, use the validatorId attribute - if the validator instance could not be created from the binding - attribute. - - - - - JSF:SPEC:162.4 - - The createValidator() method must, If there was an exception - thrown, rethrow the exception as a JspException. - - - - - - - JSF:SPEC:163 - - f:valueChangeListener must be nested inside a UIComponent custom action. - - - - - JSF:SPEC:164 - - The corresponding UIComponent implementation class for - f:valueChangeListener must implement EditableValueHolder, and therefore - define a public addValueChangeListener() method that accepts an - ValueChangeListener parameter. - - - - - JSF:SPEC:165 - - The specified listener class for f:valueChangeListener must implement - jakarta.faces.event.ValueChangeListener. - - - - - JSF:SPEC:166 - - type and/or binding must be specified. - - - - - JSF:SPEC:167 - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - EditableValueHolder, or the specified listener class does not implement - jakarta.faces.event.ValueChangeListener, throw a JspException. - - - - - JSF:SPEC:168 - - f:verbatim must be implemented as a UIComponentBodyTag. - - - - - JSF:SPEC:169 - - The rendererType property for the f:verbatim tag's UIOutput component - must be set to “jakarta.faces.Text” - - - - - JSF:SPEC:170 - - The f:verbatim tag's transient property must be set to true. - - - - - JSF:SPEC:171 - - The value (or value binding, if it is an expression) of the escape - attribute must be passed on to the renderer as the value the escape - attribute on the UIOutput component. - - - - - JSF:SPEC:172 - - Any JSP-created response using actions from the JSF Core Tag Library, - as well as actions extending jakarta.faces.webapp.UIComponentELTag from - other tag libraries, must be nested inside an occurrence of the - f:view action. - - - - - JSF:SPEC:173 - - The implementation class for the f:view action must meet the following - requirements: - - - - - JSF:SPEC:173.1 - - Must extend jakarta.faces.UIComponentBodyTag. - - - - - JSF:SPEC:173.2 - - The getComponentType() method must return “ViewRoot”. - - - - - JSF:SPEC:173.3 - - The getRendererType() method must return null. - - - - - - - JSF:SPEC:174 - - The tag library descriptor for this tag library must meet the following - requirements: - - - - - JSF:SPEC:174.1 - - Must declare a tag library version (tlib-version) value of - 1.2. - - - - - JSF:SPEC:174.2 - - Must declare a URI tag value of - http://java.sun.com/jsf/html. - - - - - JSF:SPEC:174.3 - - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the JavaServer Pages Specification - (version 1.2). - - - - - - - JSF:SPEC:175 - - The custom actions defined in this tag library must specify the - following return values for the getComponentType() and getRendererType() - methods, respectively: - - - - - JSF:SPEC:175.1 - - Action column: - getComponentType()- returns jakarta.faces.Column - getRendererType()- returns (null)* - - - - - JSF:SPEC:175.2 - - Action commandButton: - getComponentType()- returns jakarta.faces.HtmlCommandButton - getRendererType()- returns jakarta.faces.Button - - - - - JSF:SPEC:175.3 - - Action commandLink: - getComponentType()- returns jakarta.faces.HtmlCommandLink - getRendererType()- returns jakarta.faces.Link - - - - - JSF:SPEC:175.4 - - Action dataTable: - getComponentType()- returns jakarta.faces.HtmlDataTable - getRendererType()- returns jakarta.faces.Table - - - - - JSF:SPEC:175.5 - - Action form: - getComponentType()- returns jakarta.faces.HtmlForm - getRendererType()- returns jakarta.faces.Form - - - - - JSF:SPEC:175.6 - - Action graphicImage: - getComponentType()- returns jakarta.faces.HtmlGraphicImage - getRendererType()- returns jakarta.faces.Image - - - - - JSF:SPEC:175.7 - - Action inputHidden: - getComponentType()- returns jakarta.faces.HtmlInputHidden - getRendererType()- returns jakarta.faces.Hidden - - - - - JSF:SPEC:175.8 - - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - - - - - JSF:SPEC:175.9 - - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - - - - - JSF:SPEC:175.10 - - Action inputText: - getComponentType()- returns jakarta.faces.HtmlInputText - getRendererType()- returns jakarta.faces.Text - - - - - JSF:SPEC:175.11 - - Action inputTextarea: - getComponentType()- returns jakarta.faces.HtmlInputTextarea - getRendererType()- returns jakarta.faces.Textarea - - - - - JSF:SPEC:175.12 - - Action message: - getComponentType()- returns jakarta.faces.HtmlMessage - getRendererType()- returns jakarta.faces.Message - - - - - JSF:SPEC:175.13 - - Action messages: - getComponentType()- returns jakarta.faces.HtmlMessages - getRendererType()- returns jakarta.faces.Messages - - - - - JSF:SPEC:175.14 - - Action outputFormat: - getComponentType()- returns jakarta.faces.HtmlOutputFormat - getRendererType()- returns jakarta.faces.Format - - - - - JSF:SPEC:175.15 - - Action outputLabel: - getComponentType()- returns jakarta.faces.HtmlOutputLabel - getRendererType()- returns jakarta.faces.Label - - - - - JSF:SPEC:175.16 - - Action outputLink: - getComponentType()- returns jakarta.faces.HtmlOutputLink - getRendererType()- returns jakarta.faces.Link - - - - - JSF:SPEC:175.17 - - Action outputText: - getComponentType()- returns jakarta.faces.HtmlOutputText - getRendererType()- returns jakarta.faces.Text - - - - - JSF:SPEC:175.18 - - Action panelGrid: - getComponentType()- returns jakarta.faces.HtmlPanelGrid - getRendererType()- returns jakarta.faces.Grid - - - - - JSF:SPEC:175.19 - - Action panelGroup: - getComponentType()- returns jakarta.faces.HtmlPanelGroup - getRendererType()- returns jakarta.faces.Group - - - - - JSF:SPEC:175.20 - - Action selectBooleanCheckbox: - getComponentType()- - returns jakarta.faces.HtmlSelectBooleanCheckbox - getRendererType()- returns jakarta.faces.Checkbox - - - - - JSF:SPEC:175.21 - - Action selectManyListbox: - getComponentType()- returns jakarta.faces.HtmlSelectManyListbox - getRendererType()- returns jakarta.faces.Listbox - - - - - JSF:SPEC:175.22 - - Action selectManyMenu: - getComponentType()- returns jakarta.faces.HtmlSelectManyMenu - getRendererType()- returns jakarta.faces.Menu - - - - - JSF:SPEC:175.23 - - Action selectOneListbox: - getComponentType()- returns jakarta.faces.HtmlSelectOneListbox - getRendererType()- returns jakarta.faces.Listbox - - - - - JSF:SPEC:175.24 - - Action selectOneMenu: - getComponentType()- returns jakarta.faces.HtmlSelectOneMenu - getRendererType()- returns jakarta.faces.Menu - - - - - JSF:SPEC:175.25 - - Action selectOneRadio: - getComponentType()- returns jakarta.faces.HtmlSelectOneRadio - getRendererType()- returns jakarta.faces.Radio - - - - - - - JSF:SPEC:176 - - The tag library descriptor for this tag library (and the corresponding - tag handler implementation classes) must meet the following - requirements: - - - - - JSF:SPEC:176.1 - - The attributes for the tags, both in the TLD and in the - associated tag handlers, must conform exactly to the type, name, - and description given in the TLDDocs for the - html_basic tag library. - - - - - JSF:SPEC:176.2 - - If the type of the attribute is jakarta.el.MethodExpression, the - TLD for the attribute must contain a <deferred-method> - with a nested <method-signature>, inside of which is the - method signature for that MethodExpression, as given in the - TLDDocs. The JavaBeans setter method in the tag handler for the - tag must be of type jakarta.el.MethodExpression. - - - - - JSF:SPEC:176.3 - - Any attributes listed in the TLDDocs with a request-time value - of true must specify an <rtexprvalue> of true in the TLD. - - - - - JSF:SPEC:176.4 - - The following action must be taken to handle the value of the - converter property. If isLiteralText() on the converter property - returns true, get the value of the property and treat it as a - converterId by passing it as the argument to the - createConverter() method of the Application instance for this - webapp, then pass the created Converter to the setConverter() - method of the component for this tag. If isLiteralText() on the - converter property returns false, call setValueExpression() on - the component, passing “converter” as the name of the - ValueExpression and the ValueExpression instance as the value. - - - - - JSF:SPEC:176.5 - - For a non-null action attribute on custom actions related to - ActionSource2 components (commandButton, commandLink), the - setProperties() method of the tag handler implementation class - must pass the value of the action attribtue, which is a - MethodExpression, to the component’s setActionExpression() - method. - - - - - JSF:SPEC:176.6 - - For other non-null attributes that correspond to - MethodExpression attributes on the underlying components - (actionListener, validator, valueChangeListener), the - setProperties() method of the tag handler implementation class - must store that instance as the value of the corresponding - component property. - - - - - JSF:SPEC:176.7 - - For any non-null id, scope, or var attribute, the - setProperties() method of the tag handler implementation class - must simply set the value of the corresponding component - attribute. - - - - - JSF:SPEC:176.8 - - For all other non-null attributes, the setProperties() of the - tag handler implementation class method must, if the - attribute.isLiteralText() returns true, set the corresponding - attribute on the underlying component (after performing any - necessary type conversion). Otherwise, call the - setValueExpression() method on the underlying component, - passing the attribute name and the ValueExpression‘ instance as - parameters. - - - - - - - - - - JSF:SPEC:177 - - Facelet pages are authored in XHTML. The runtime must support all XHTML - pages that confirm with the XHTML-1.0-Transitional DTD, as described at - http://www.w3.org/TR/xhtml1/#a_dtd_XHTML-1.0-Transitional - - - - - JSF:SPEC:178 - - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page. - <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:prefix="namespace_uri"> - - - - - JSF:SPEC:179 - - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page - - - - - JSF:SPEC:179.1 - - Via declaration in the web.xml, as specified in Section11.1.3 - “Application Configuration Parameters” - - - - - JSF:SPEC:179.2 - - Via auto discovery by placing the tag library discriptor file - within a jar on the web application classpath, naming the - file so that it ends with “.taglib.xml”, without the quotes, - and placing the file in the META-INF directory in the jar file - - - - - - - JSF:SPEC:180 - - Failure to parse, process and otherwise interpret any of the tag - library files discovered must cause the application to fail to deploy - and must cause an informative error message to be logged. - - - - - JSF:SPEC:181 - - The runtime must support the following two ways of declaring a - composite component library. - - - - - JSF:SPEC:181.1 - - If a facelet taglibrary is declared in an XHTML page with a - namespace starting with the string - “http://java.sun.com/jsf/composite/” (without the quotes), - the remainder of the namespace declaration is taken as the name - of a resource library as described in Section2.6.1.4 “Libraries - of Localized and Versioned Resources - - - - - JSF:SPEC:181.2 - - the runtime must also support the <composite-library-name> - element. - - - - - - - JSF:SPEC:182 - - If, during the process of building the view, the facelet runtime - encounters an element in the page using the prefix for the namespace of - a composite component library, the runtime must create a Resource - instance with a library property equal to the library name derived in - Section10.3.3.1 “Declaring a composite component library for use in a - Facelet page”and call the variant of application.createComponent() that - takes a Resource. - - - - - JSF:SPEC:183 - - After causing the top level component to be instantiated, the runtime - must create a UIComponent with component- family of jakarta.faces.Panel - and renderer-type jakarta.faces.Group to be installed as a facet of the - top level component under the facet name - UIComponent.COMPOSITE_FACET_NAME. - - - - - JSF:SPEC:184 - - The runtime must support the use of composite: tag library in the - defining page pointed to by the Resource derived as specified in - Section10.3.3.2 “Creating an instance of a top level component” - - - - - JSF:SPEC:185 - - The runtime must ensure that all UIComponent children in the composite - component definition within the defining page are placed as children of - the UIComponent.COMPOSITE_FACET_NAME facet of the top level facet - - - - - JSF:SPEC:186 - - The runtime must ensure that all such attributes are copied to the - attributes map of the top level component instance in the following - manner. - - - - - JSF:SPEC:186.1 - - Obtain a reference to the ExpressionFactory, for discussion - called expressionFactory. - - - - - JSF:SPEC:186.2 - - Let the value of the attribute in the using page be value. - - - - - JSF:SPEC:186.3 - - If value is “id” or “binding” without the quotes, skip to the - next attribute. - - - - - JSF:SPEC:186.4 - - f the value of the attribute starts with “#{“ (without the - quotes) call expressionFactory.createValueExpression(elContext, - value, Object.class) - - - - - JSF:SPEC:186.5 - - If the value of the attribute does not start with “#{“, call - expressionFactory.createValueExpression(value, Object.class) - - - - - JSF:SPEC:186.6 - - If there already is a key in the map for value, inspect the type - of the value at that key. If the type is MethodExpression take - no action. - - - - - - - JSF:SPEC:187 - - If the type of the attribute is a MethodExpression, the code that - takes the value of the attribute and creates an actual - MethodExpression instance around it must take the following special - action. - - - - - JSF:SPEC:187.1 - - Obtain a reference to the current composite component by calling - UIComponent.getCurrentCompositeComponent(). - - - - - JSF:SPEC:187.2 - - Look in the attribute of the component for a key under the value - attrName. - - - - - JSF:SPEC:187.3 - - There must be a value and it must be of type MethodExpression. - If either of these conditions are false allow the ensuing - exception to be thrown. - - - - - JSF:SPEC:187.4 - - Call invoke() on the discovered MethodExpression, passing the - arguments passed to our invoke() method. - - - - - - - JSF:SPEC:188 - - The String value for identifiers specified for execute and render may be - specified as a search expression as outlined in the JavaDocs for - UIComponent.findComponent.The implementation must resolve these - identifiers as specified for UIComponent.findComponent. - - - - - JSF:SPEC:189 - - A TagAttibuteException must be thrown if an “event” attribute value is - specified that does not match the events supported by the component - type. - - - - - JSF:SPEC:190 - - The event attribute that is specified, must be one of the events - returned from the ClientBehaviorHolder component implementation of - ClientBehaviorHolder.getEventNames. - - - - - JSF:SPEC:191 - - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - - - - - JSF:SPEC:192 - - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - - - - - JSF:SPEC:193 - - The "Description" tag handler must create an instance of - jakarta.faces.component.behavior.AjaxBehavior instance using the tag - attribute values. - - - - - JSF:SPEC:194 - - If teh "Description" tag is nested within a single ClientBehaviorHolder - component: - - - - - JSF:SPEC:194.1 - - If the event attribute is not specified, determine the event by - calling the component’s getDefaultEventName method. If that - returns null, throw an exception. - - - - - JSF:SPEC:194.2 - - If the event attribute is specified, ensure that it is a valid - event - that is one of the events contained in the Collection - returned from getEventNames method. If it does not exist in this - Collection, throw an exception. - - - - - JSF:SPEC:194.3 - - Add the AjaxBehavior to the component by calling the addBehavior - method, passing the event and AjaxBehavior instance. - - - - - - - JSF:SPEC:195 - - When the VDL calls for the creation of a UIComponent instance, after - calling Application.createComponent() to instantiate the component - instance, and after calling setRendererType() on the newly instantiated - component instance, the following action must be taken. - - - - - JSF:SPEC:195.1 - - Obtain the Renderer for this component. If no Renderer is - present, ignore the following steps. - - - - - JSF:SPEC:195.2 - - Call getClass() on the Renderer instance and inspect if the - ListenerFor annotation is present. If so, inspect if the - Renderer instance implements ComponentSystemEventListener. If - neither of these conditions are true, ignore the following - steps. - - - - - JSF:SPEC:195.3 - - Obtain the value of the systemEventClass() property of the - ListenerFor annotation on the Renderer instance. - - - - - JSF:SPEC:195.4 - - Call subscribeToEvent() on the UIComponent instance from which - the Renderer instance was obtained, using the systemEventClass - from the annotation as the second argument, and the Renderer - instance as the third argument. - - - - - - - - - - - JSF:SPEC:196 - - This servlet must be defined, in the deployment descriptor of an - application that wishes to employ this portable mechanism. - The servlet name, denoted as faces-servlet-name above, may be any - desired value; however, the same value must be used as teh servlet-name - in the servlet mapping. - - - - - JSF:SPEC:197 - - JSF implementations must support web application that define a - <servlet-mapping> that maps any valid url-pattern to the - FacesServlet. - - - - - JSF:SPEC:198 - - JSF implementations are required to support the following application - configuration parameter names: - - - - - JSF:SPEC:198.1 - - jakarta.faces.CONFIG_FILES -- Comma-delimited list of - context-relative resource paths under which the JSF - implementation will look for application configuration - resources before loading a configuration resource named - “/WEB-INF/faces-config.xml” - - - - - JSF:SPEC:198.2 - - jakarta.faces.DEFAULT_SUFFIX -- The default suffix for - extension-mapped resources that contain JSF components. If not - specified, the default value “.jsp” must be used. - - - - - JSF:SPEC:198.3 - - jakarta.faces.FACELETS_SUFFIX -- Allow the web application to - define an alternate suffix for Facelet based XHTML pages - containing JSF content. See the javadocs for the symbolic - constant ViewHandler.FACELETS_SUFFIX_PARAM_NAME for the - complete specification. - - - - - JSF:SPEC:198.4 - - jakarta.faces.LIFECYCLE_ID -- Lifecycle identifier of the - Lifecycle instance to be used when processing JSF requests for - this web application. If not specified, the JSF default - instance, identified by LifecycleFactory.DEFAULT_LIFECYCLE, must - be used. - - - - - JSF:SPEC:198.5 - - jakarta.faces.STATE_SAVING_METHOD -- The location where state - information is saved. Valid values are “server” (typically saved - in HttpSession) and “client (typically saved as a hidden field - in the subsequent form submit). If not specified, the default - value “server” must be used. - - - - - JSF:SPEC:198.6 - - jakarta.faces.PARTIAL_STATE_SAVING --The ServletContext init - parameter consulted by the runtime to determine if the partial - state saving mechanism should be used. If undefined, the runtime - must determine the version level of the application. - - - - - JSF:SPEC:198.6.1 - - For applications versioned at 1.2 and under, the runtime - must not use the partial state saving mechanism. - - - - - JSF:SPEC:198.6.2 - - For applications versioned at 2.0 and above, the runtime - must use the partial state saving mechanism. - - - - - - - JSF:SPEC:198.7 - - jakarta.faces.FULL_STATE_SAVING_VIEW_IDS -- The runtime must - interpret the value of this parameter as a comma separated list - of view IDs, each of which must have their state saved using the - state saving mechanism specified in JSF 1.2. - - - - - JSF:SPEC:198.8 - - jakarta.faces.PROJECT_STAGE -- A human readable string describing - where this particular JSF application is in the software - development lifecycle. - - - - - JSF:SPEC:198.9 - - jakarta.faces.DISABLE_FACELET_JSF_VIEWHANDLER -- If this param is - set, and calling toLowerCase().equals("true") on a String - representation of its value returns true, the default - ViewHandler must behave as specified in the latest 1.2 version - of this specification. - - - - - JSF:SPEC:198.10 - - jakarta.faces.FACELETS_LIBRARIES -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - paths, starting with “/” (without the quotes). - - - - - JSF:SPEC:198.11 - - jakarta.faces.FACELETS_VIEW_MAPPINGS -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - strings that is used to forcibly declare that certain pages in - the application must be interpreted as using Facelets, - regardless of their extension. - - - - - JSF:SPEC:198.12 - - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL -- - If this param is set, and calling toLowerCase().equals("true") - on a String representation of its value returns true, any - implementation of UIInput.validate() must take the following - additional action. context parameter value is true (ignoring - case), and UIInput.getSubmittedValue() returns a zero-length - String call UIInput.setSubmittedValue(null) and continue - processing using null as the current submitted value - - - - - JSF:SPEC:198.13 - - jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZO - NE -- If this param is set, and calling toLowerCase().equals( - "true") on a String representation of its value returns true, - Application.createConverter() must guarantee that the default - for the timezone of all jakarta.faces.convert.DateTimeConverter - instances must be equal to TimeZone.getDefault() instead of - “GMT”. - - - - - JSF:SPEC:198.14 - - jakarta.faces.VALIDATE_EMPTY_FIELDS -- If this param is set, and - calling toLowerCase().equals("true") on a String representation - of its value returns true, all submitted fields will be - validated - - - - - JSF:SPEC:198.15 - - jakarta.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR -- If this - param is set, and calling toLowerCase().equals("true") on a - String representation of its value returns true, the runtime - must not automatically add the validator with validator-id equal - to the value of the symbolic constant - jakarta.faces.validator.VALIDATOR_ID to the list of default - validators. - - - - - - - JSF:SPEC:199 - - JSF implementations must also include implementations of the several - factory classes. In order to be dynamically instantiated according to - the algorithm defined above, the factory implementation class must - include a public, no-arguments constructor. - - - - - JSF:SPEC:200 - - jakarta.faces.FactoryFinder implements the standard discovery algorithm - for all factory objects specified in the JavaServer Faces APIs. - For a given factory class name, a corresponding implementation class is - searched for based on the following algorithm. Items are listed in order - of decreasing search precedence: - - - - - JSF:SPEC:200.1 - - If a default JavaServer Faces configuration file - (/WEB-INF/faces-config.xml) is bundled into the web application, - and it contains a factory entry of the given factory class name, - that factory class is used. - - - - - JSF:SPEC:200.2 - - If the JavaServer Faces configuration resource(s) named by the - jakarta.faces.CONFIG_FILES ServletContext init parameter (if any) - contain any factory entries of the given factory class name, - those factories are used, with the last one taking precedence. - - - - - JSF:SPEC:200.3 - - If there are any META-INF/faces-config.xml resources bundled any - JAR files in the web ServletContext’s resource paths, the - factory entries of the given factory class name in those files - are used, with the last one taking precedence. - - - - - JSF:SPEC:200.4 - - If a META-INF/services/{factory-class-name} resource is visible - to the web application class loader for the calling application - (typically as a result of being present in the manifest of a - JAR file), its first line is read and assumed to be the name of - the factory implementation class to use. - - - - - JSF:SPEC:200.5 - - If none of the above steps yield a match, the JavaServer Faces - implementation specific class is used. - - - - - - - JSF:SPEC:201 - - For each of the public static final String fields on the class - FactoryFinder whose field names end with the string “_FACTORY” - (without the quotes), the implementation must provide an implementation - of the corresponding Factory class using the algorithm described earlier - in this section. - - - - - JSF:SPEC:202 - - The FacesServlet implementation class must also declare two static - public final String constants whose value is a context initialization - parameter that affects the behavior of the servlet - - - - - JSF:SPEC:202.1 - - CONFIG_FILES_ATTR -- the context initialization attribute that - may optionally contain a comma-delimited list of context - relative resources (in addition to /WEB-INF/facesconfig. xml - which is always processed if it is present) to be processed. - The value of this constant must be “jakarta.faces.CONFIG_FILES”. - - - - - JSF:SPEC:202.2 - - LIFECYCLE_ID_ATTR -- the lifecycle identifier of the Lifecycle - instance to be used for processing requests to this application, - if an instance other than the default is required. The value of - this constant must be “jakarta.faces.LIFECYCLE_ID”. - - - - - - - JSF:SPEC:203 - - UIComponentELTag is an implementation of - javax.servlet.jsp.tagext.BodyTag, and must be the base class for any JSP - custom action that corresponds to a JSF UIComponent. - - - - - JSF:SPEC:204 - - The faces implementation must now provide the attributetag class. - - - - - JSF:SPEC:205 - - the JSF implementation must process zero or more application - configuration resources, located according to the following algorithm: - - - - - JSF:SPEC:205.1 - - Search for all resources named “META-INF/faces-config.xml” in the - ServletContext resource paths for this web application, and load - each as a JSF configuration resource (in reverse order of the - order in which they are returned by getResources() on the - current Thread’s ContextClassLoader). - - - - - JSF:SPEC:205.2 - - Check for the existence of a context initialization parameter - named jakarta.faces.CONFIG_FILES. If it exists, treat it as a - comma-delimited list of context relative resource paths - (starting with a “/”), and load each of the specfied resources. - - - - - JSF:SPEC:205.3 - - Check for the existence of a web application configuration - resource named “/WEBINF/faces-config.xml”, and load it if the - resource exists. - - - - - - - JSF:SPEC:206 - - The runtime must publish the - jakarta.faces.event.PostConstructApplicationEvent immediately after all - application configuration resources have been processed. - - - - - JSF:SPEC:207 - - XML parsing errors detected during the loading of an application - resource file are fatal to application startup, and must cause the - application to not be made available by the container. - - - - - JSF:SPEC:208 - - JSF implementations that are part of a Java EE technology compliant - implementation are required to validate the application resource file - against the XML schema for structural correctness. The validation is not - required for JSF implementations that are not part of a Java EE - technology-compliant implementation. - - - - - JSF:SPEC:209 - - Application configuration resources must conform to the XML schema - shown in Appendix 1.1. In addition, they must include the following - schema declaration. - - - - - JSF:SPEC:210 - - Application configuration resources that are written to run on JSF 2.0 - must include the following schema declaration... - - - - - JSF:SPEC:211 - - Application configuration resources that are written to run on JSF 1.2 - must include the following schema declaration... - - - - - JSF:SPEC:212 - - Application configuration resources that are written to run on JSF 1.1 - must include the following schema declaration... - - - - - JSF:SPEC:213 - - Application configuration resources that are written to run on JSF 1.0 - must include the following schema declaration... - - - - - JSF:SPEC:214 - - The runtime must support the decorator design pattern as specified - below for the following artifacts. - - - - - JSF:SPEC:215 - - If an <name> element is present, it must be considered for the - ordering of decoratable artifacts (unless the duplicate name exception - applies, as described below). - - - - - JSF:SPEC:215.1 - - Absolute ordering: an <absolute-ordering> element in the - applicationFacesConfig - - - - - JSF:SPEC:215.2 - - Relative ordering: an <ordering> element within a file in - the applicationConfigurationResources - - - - - - - JSF:SPEC:216 - - The preceding example illustrates some, but not all, of the following - principles. - - - - - JSF:SPEC:216.1 - - <before> means the document must be ordered before the - document with the name matching the name specified within the - nested <name> element. - - - - - JSF:SPEC:216.2 - - <after> means the document must be ordered after the - document with the name matching the name specified within the - nested <name> element. - - - - - JSF:SPEC:216.3 - - There is a special element <others /> which may be included - zero or one time within the <before> or <after> element, - or zero or one time directly within the <absolute-ordering> - element. The <others /> element must be handled as follows. - - - - - JSF:SPEC:216.3.1 - - If the <before> element contains a nested - <others />, the document will be moved to the - beginning of the list of sorted documents. - - - - - JSF:SPEC:216.3.2 - - If the <after> element contains a nested - <others />, the document will be moved to the end of - the list of sorted documents. - - - - - JSF:SPEC:216.3.3 - - Within a <before> or <after> element, if an - <tothers /> element is present, but is not the only - <name> element within its parent element, the other - elements within that parent must be considered in the - ordering process. - - - - - JSF:SPEC:216.3.4 - - If the <others /> element appears directly within - the <absolute-ordering> element, the runtime must - ensure that any application configuration resources in - applicationConfigurationResources not explicitly named - in the <absolute-ordering> section are included at - that point in the processing order. - - - - - - - JSF:SPEC:216.4 - - If a faces-config file does not have an <ordering> or - <absolute-ordering> element the artifacts are assumed to not - have any ordering dependency. - - - - - JSF:SPEC:216.5 - - If the runtime discovers circular references, an informative - message must be logged, and the application must fail to deploy. - Again, one course of action the user may take is to use absolute - ordering in the applicationFacesConfig. - - - - - - - JSF:SPEC:217 - - If the <faces-config>> element in the WEB-INF/faces-config.xml file - contains metadata-complete attribute whose value is “true”, the - implementation must not perform annotation scanning on any classes - except for those classes provided by the implementation itself. - - - - - JSF:SPEC:218 - - If the runtime discovers a conflict between an entry in the Application - Configuration Resources and an annotation, the entry in the Application - Configuration Resources takes precedence. - - - - - JSF:SPEC:219 - - All classes in WEB-INF/classes must be scanned. - - - - - JSF:SPEC:220 - - For every jar in the application's WEB-INF/lib directory, if the jar - contains a “META-INF/faces-config.xml” file or a file that matches the - regular expression “META-INF/.*faces-config.xml” (even an empty one), - all classes in that jar must be scanned. - - - - - - - - - JSF:SPEC:221 - - Upon receipt of each JSF-destined request to this web application, - the JSF implementation must acquire a reference to the Lifecycle - instance for this web application, and call its execute() and render() - methods to perform the request processing lifecycle. - - - - - JSF:SPEC:222 - - Any exceptions thrown during the beforePhase() listeners must be caught - and published to the ExceptionHandler. - - - - - JSF:SPEC:223 - - Any exceptions thrown during the execution of the actual lifecycle - phase, that reach the runtime code that implements the JSF lifecycle - phase, must be caught and and published to the ExceptionHandler - - - - - JSF:SPEC:224 - - Any exceptions thrown during the afterPhase() liseteners must be caught - and published to the ExceptionHandler. - - - - - - - - - JSF:SPEC:225 - - There must be a single JavaScript resource that exists with the resource - identifier jsf.js - - - - - JSF:SPEC:226 - - The jsf.js must exist under the resource library jakarta.faces, following - the conventions in Section 2.6 “Resource Handling”. - - - - - JSF:SPEC:227 - - If the OpenAjax library is available, libraries must register themselves - using OpenAjax.registerLibrary() at the time when the JavaScript files - are fetched and parsed by the browser’s JavaScript engine. - - - - - JSF:SPEC:228 - - Any implementation that intends to use the JavaServer Faces 2.0 JavaScript - API must define a top level JavaScript object name jsf, whose type is a - JavaScript associative array. Within that top level JavaScript object, - found in the OpenAjax Hub, there must be a property named ajax.. - - - - - JSF:SPEC:229 - - All Ajax requests must be put into a client side request queue before - they are sent to the server to ensure Ajax requests are processed in the - order they are sent. - - - - - JSF:SPEC:230 - - After a request is sent, the Ajax request callback function must remove - the request from the queue (also known as dequeuing). If the request - completed successfully, it must be removed from the queue. If there was - an error, the client must be notified, but the request must still be - removed from the queue - - - - - JSF:SPEC:231 - - The Ajax request callback function is called when the Ajax - request/response interaction is complete. This function must perform the - following actions: - - - - - JSF:SPEC:231.1 - - If the return status is >= 200 and < 300, send a “complete” - event following Section13.3.5.3 “Sending Events”. - - - - - JSF:SPEC:231.2 - - If the return status is outside the range mentioned above, send - a “complete” event following Section13.3.5.3 “Sending Events”. - - - - - JSF:SPEC:231.3 - - Regardless of whether the request completed successfully or not: - - - - - JSF:SPEC:231.3.1 - - remove the completed requests (Ajax readystate 4) from - the request queue (dequeue) - specifically the requests - that have been on the queue the longest. - - - - - JSF:SPEC:231.3.2 - - find the next oldest unprocessed (Ajax readystate 0) - request on the queue, and send it. The implementation - must ensure that the request that is sent does not enter - the queue again. - - - - - - - - - JSF:SPEC:232 - - The implementation of jsf.ajax.response must handle the response as - outlined in the JavaScript documentation for jsf.ajax.response. The - elements in the response must be processed in the - order they appear in the response. - - - - - JSF:SPEC:233 - - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance with the - events outlined in SectionTABLE14-3 “Events”. - - - - - JSF:SPEC:234 - - The implementation must send events to the runtime as follows: - - - - - JSF:SPEC:234.1 - - Construct a data payload for events using the properties - described in SectionTABLE14-4 “Event Data Payload” - - - - - JSF:SPEC:234.2 - - If an event handler function was registered with the “onevent” - attribute (Section13.3.5.1 “Monitoring Events For An Ajax - Request”) call it passing the data payload. - - - - - JSF:SPEC:234.3 - - If any event handling functions were registered with the - “addOnEvent” function (Section13.3.5.2 “Monitoring Events - For All Ajax Requests”) call them passing the data payload. - - - - - - - JSF:SPEC:235 - - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance when the - request status code from the server is as outlined in SectionTABLE14-5 - “Errors”. - - - - - JSF:SPEC:236 - - The implementation must ensure the JavaScript function that is - registered must be called in accordance with the errors outlined in - SectionTABLE14-5 “Errors”. - - - - - JSF:SPEC:237 - - The implementation must signal errors to the runtime as follows: - - - - - JSF:SPEC:237.1 - - Construct a data payload for errors using the properties - described in SectionTABLE14-6 “Error Data Payload”. - - - - - JSF:SPEC:237.2 - - If an error handler function was registered with the “onerror” - attribute (Section13.3.6.1 “Handling Errors For An Ajax - Request”) call it passing the data payload. - - - - - JSF:SPEC:237.3 - - If any error handling functions were registered with the - “addOnError” function (Section13.3.6.2 “Handling Errors For All - Ajax Requests”) call them passing the data payload. - - - - - JSF:SPEC:237.4 - - If the project stage is “development” (see Section14.5 - “Determining An Application’s Project Stage”) use JavaScript - “alert” to signal the error(s). - - - - - - - JSF:SPEC:238 - - JavaServer Faces Ajax frameworks must ensure exception information is - written to the response in the format: - - - - - JSF:SPEC:238.1 - - Extract the “class” from the “Throwable” object and write that - as the contents of error-name in the response. - - - - - JSF:SPEC:238.2 - - Extract the “cause” from the “Throwable” object if it is - available and write that as the contents of error-message in the - response. If “cause” is not available, write the string returned - from “Throwable.getMessage()”. - - - - - JSF:SPEC:238.3 - - Implementations must ensure that an ExceptionHandler suitable - for writing exceptions to the partial response is installed if - the current request required an Ajax response - (PartialViewContext.isAjaxRequest() returns true). - - - - - - - JSF:SPEC:239 - - The UIViewRoot processDecodes, processValidators and processUpdates - methods must determine if the request is a partial request using the - FacesContext.isPartialRequest() method. - - - - - JSF:SPEC:240 - - The UIViewRoot getRendersChildren and encodeChildren methods must - determine if the request is an Ajax request using the - FacesContext.isAjaxRequest() method. - - - - - JSF:SPEC:241 - - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - - - - - JSF:SPEC:242 - - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - - - - - - - - - JSF:SPEC:243 - - The jsf.ajax.request function is responsible for sending an Ajax request - to the server. The requirements for this function are as follows: - - - - - JSF:SPEC:243.1 - - The request must be sent asynchronously - - - - - JSF:SPEC:243.2 - - The request must be sent with method type POST - - - - - JSF:SPEC:243.3 - - The request URL will be the form action attribute - - - - - JSF:SPEC:243.4 - - All requests will be queued with the use of a client side - request queue to help ensure request ordering - - - - - - - JSF:SPEC:244 - - It must be a DOM element object or a string identifier for a DOM - element. - - - - - JSF:SPEC:245 - - The request header must be set with the name Faces-Request and the value - partial/ajax. - - - - - JSF:SPEC:246 - - The specifics details of this function’s operation must follow the - jsf.ajax.response JavaScript documentation. - - - - - JSF:SPEC:247 - - This function must return the constant representing the current state of - the running application in a typical product development lifecycle. The - returned value must be the value returned from the server side method - jakarta.faces.application.Application.getProjectStage() - - - - - diff --git a/internal/docs/jsf/JSFTCD.txt b/internal/docs/jsf/JSFTCD.txt deleted file mode 100644 index c2d0d917ba..0000000000 --- a/internal/docs/jsf/JSFTCD.txt +++ /dev/null @@ -1,85 +0,0 @@ -TCK Coverage Document for JSR-372: JavaServer Faces 2.3 Specification - -TCK Components: ---------------- -- User's Guide -- Compatibility Rules -- Configuration Instructions -- Test Suite -- API Tests -- Signature Tests -- End-to-End Tests -- Framework Code -- JavaTest TM Harness - -Terminology of Metrics ----------------------- -- Assertion: A specific statement of functionality or behavior derived from a specification. - A testable assertion is one that can be validated in an implementation by testing. -- Test: A binary application (or script) comprised of one or more Test Cases. -- Test Case: A single set of test inputs, execution conditions, and expected results - developed to verify an implementation's conformance with a specific assertion. -- Specification Assertion Coverage: Ratio of all assertions tested by at least one test - case to the total number of testable assertions defined by the specification. -- API Coverage: Ratio of methods directly exercised by test cases to the total number - of methods defined by the specification. - - -Coverage --------- -- Total testable assertions from the JavaServer Faces 2.3 Specification, - Tag Library Documentation, HTML Basic RenderKit Documentation, and Javadoc: - - 746 specification assertions - 3320 tag library assertions (est.) - 700 renderkit assertions (est.) - + 2808 API assertions - ---------------------- - 6503 testable assertions - -- Number of testable JavaServer Faces Spec assertions tested: 469 (est.) (56.00%) -- Number of testable JSF Tag Library assertions tested: 2988 (est.) (90.03%) -- Number of testable JSF HTML Renderkit assertions tested: 567 (est.) (81.00%) -- Number of testable JavaServer Faces API assertions tested: 2330 (83.0%) - -- Total of 77.5% combined specification, tag library, renderkit and api coverage. - -Assertions were identified through the use of CTS Tools, third-party code -coverage tools, inspection of documentation and hand markup (hand markup was -required for the JavaServer Faces specifications). Note that due to the -large number of assertions as well as resource and time constraints, it -was necessary in some cases to estimate the numbers of tested and total -assertions in each category. - -Quality Assurance ------------------ -The JavaServer Faces requirements were tested as part of the JavaEE 7 -Compatibility Test Suite which was run using representative configurations -of the Reference Implementation on the following platforms using Java SE 7: - - * Ubuntu 12.10 - * Fedora 18 - * openSUSE 12.2 - * Solaris 11.1 Sparc - * Solaris 11.1 X86 - * Solaris 10 Sparc - * MacOS 10.8 - * Oracle Linux Server release 6.3 - * Windows XP Professional - * Windows 2008 - -- Code quality was demonstrated through the use of code reviews and inspections -- User's Guide was constructed from the standard CTS User's Guide template -- Documentation instructions were verified and tested - - -Justification of Adequacy -------------------------- -The JavaServer Faces tests, distributed as part of the JavaEE CTS version 7, -provide an adequate set of tests to ensure all implementations of the -Java EE 7 Platform are compatible with the requirements defined in these -specifications. As with all TCKs it is impossible to provide tests -that will yield 100% assertion coverage. Untested assertions are due to the effects -of late specification changes, and the availability and cost of test development resources. -While these versions may not have tests for all testable assertions, all implementations of -the platform must be compatible with the requirements defined in these specifications. diff --git a/internal/docs/jsf/README.txt b/internal/docs/jsf/README.txt deleted file mode 100644 index c3fd379319..0000000000 --- a/internal/docs/jsf/README.txt +++ /dev/null @@ -1,94 +0,0 @@ -Simple README file with instructions to quickly install, setup, configure, -and run the JSF TCK 2.3 and related software against the JSF 2.3 RI. For -more detailed instructions please refer to the JSF 2.3 Users Guide. - ------------------------ -Installing the Software ------------------------ -Before you can run the JSF TCK tests, you need to install -and set up the following software components: - -1) Java SE 8 -2) JSF RI Version 2.3 -3) JSF TCK Version 2.3 - -1. Download and install Java SE 8 software. - - mkdir /javase8 - cd /javase8 - unzip - -2. Download and install the JSF 2.3 Reference Implementation. - - mkdir /ri - cd /ri - - -3. Download and install the JSF TCK 2.3 software. - - mkdir /tck - cd /tck - unzip jsf.zip - ------------------------------------------ -Setup and Configuration of the JSF TCK ------------------------------------------ -1. Configure the JSF TCK to run against the JSF RI. Set the following - variables in your shell environment. - - setenv JAVA_HOME /javase8 - setenv TS_HOME /tck/jsf - setenv ANT_HOME /tck/apacheant - setenv PATH $JAVA_HOME/bin:$ANT_HOME/bin:$PATH - -2. Edit the $TS_HOME/bin/ts.jte file and set the following properties: - - webServerHost=localhost - webServerPort=8080 - webServerHome=/ri/glassfish3/glassfish - impl.vi=glassfish - impl.vi.deploy.dir=${webServerHome}/domains/domain1/autodeploy - impl.deploy.timeout.multiplier=20 - jsf.classes=${webServerHome}/modules/jakarta.faces.jar${pathsep} / - ${webServerHome}/modules/weld-osgi-bundle.jar - jspservlet.classes=${webServerHome}/modules/jakarta.servlet.jsp.jar${pathsep} / - ${webServerHome}/modules/jakarta.servlet.jsp.jstl.jar${pathsep} / - ${webServerHome}/modules/jakarta.servlet.jsp.jstl-api.jar${pathsep} / - ${webServerHome}/modules/jakarta.servlet-api.jar${pathsep} / - ${webServerHome}/modules/jakarta.el-api.jar${pathsep} / - ${webServerHome}/modules/jakarta.servlet.jsp-api.jar - - ------------------------------- -Executing the JSF TCK Tests ------------------------------- -At this point we are ready to run the JSF TCK tests against the JSF 2.3 -Reference Implementation. - -1. Execute and run the JSF TCK tests. - - cd $TS_HOME/bin - ant deploy.all - ant run.all - ant undeploy.all - - This will run all the JSF TCK tests including the signature tests. - -2. Another way to execute and run the JSF TCK tests. - - Run just the jsf tree of tests: - - cd $TS_HOME/src/com/sun/ts/tests/jsf/api - ant runclient - - Run just the jsf signature tests: - - cd $TS_HOME/src/com/sun/ts/tests/signaturetests/jsf - ant runclient - -3. The third way to execute and run the JSF TCK tests is to use the - JavaTest GUI. - - cd $TS_HOME/bin - ant gui // Follow the JSF TCK Users Guide and JavaTest Harness Guide - // to configure the JSF TCK via the JavaTest GUI. diff --git a/internal/docs/jsf/jsf_avk.xml b/internal/docs/jsf/jsf_avk.xml deleted file mode 100644 index 8f7511c949..0000000000 --- a/internal/docs/jsf/jsf_avk.xml +++ /dev/null @@ -1,273 +0,0 @@ - - - - - - - - It is also legal to specify a different lifecycle identifier as a parameter to the getLifecycle() method, as long as this identifier is recognized and supported by the JSF implementation you are using. However, using a non-default lifecycle identifier will generally not be portable to any other JSF implementation. - - application-role - - - - - - A custom component that extends UIComponent directly, and does not extend any of the standard components must implement StateHolder manually. - - application-role - - - - - - Component identifiers must conform to the following rules: - - application-role - - - - - - They must start with a letter (as defined by the Character.isLetter() method) or underscore ( _ ). - - application-role - - - - - - Subsequent characters may be letters (as defined by the Character.isLetter() method), digits as defined by the Character.isDigit() method, dashes ( - ), and underscores ( _ ). - - application-role - - - - - - - - If a component has been given an identifier, it must be unique in the namespace of the closest ancestor to that component that is a NamingContainer (if any). - - application-role - - - - - - The method names for the render-independent property getters and setters must conform to the design patterns in the JavaBeans specification. - - application-role - - - - - - Any class implementing StateHolder must have a public no-args constructor. - - application-role - - - - - - listener implementation classes must have a public zero-argument constructor - - application-role - - - - - - Value expressions that appear in the attribute definition for a faces tag must have '#{}' as the delimiter, instead of '${}'. - - application-role - - - - - - The syntax of a method expression must conform to one of the following patterns: ? #{expr-a.value-b} or?#{expr-a[value-b]} where expr-a is a value expression (see Section 5.1.2 ValueExpression Syntax ) and value-b is an identifier whose syntax matches that of a Java method name. - - application-role - - - - - - managed-bean-class -- The fully qualified class name of the application class used to instantiate a new instance. This class must conform to JavaBeans design patterns -- in particular, it must have a public zero-args constructor, and must have public property setters for any properties referenced with nested managed-property elements -- or it must be a class that implements java.util.Map or java.util.List. - - application-role - - - - - - Managed bean names must conform to the syntax of a Java language identifier. - - application-role - - - - - - Attached objects that do not implement either StateHolder or Serializable must have a public, zero-arg constructor, and will be restored only to their initial, default object state. - - application-role - - - - - - If your application uses client state saving, the values of all component attributes and properties (as well as the saved state of attached objects) must implement java.io.Serializable. - - application-role - - - - - - an implementation might choose a different RenderKit based on the User-Agent header included in the request, or the Locale that has been established for the response view. Note that applications which depend on this feature are not guaranteed to be portable across JSF implementations. - - application-role - - - - - - Custom actions that correspond to JSF UIComponent instances must subclass either jakarta.faces.webapp.UIComponentTag (see Section 10.2.6.3 UIComponentTag ) or jakarta.faces.webapp.UIComponentBodyTag (see Section 10.2.6.4 UIComponentBodyTag ), depending on whether the custom action needs to support javax.servlet.jsp.tagext.BodyTag functionality or not. - - application-role - - - - - - Each facet action must have one and only one child UIComponent custom action. - - application-role - - - - - - The fmt:parseDate and fmt:parseNumber custom actions should not be used. The corresponding JSF facility is to use an h:inputText component custom action with an appropriate DateTimeConverter or NumberConverter. - - application-role - - - - - - The fmt:requestEncoding custom action should not be used. By the time it is executed, the request parameters will have already been parsed, so any change in the setting here will have no impact. - - application-role - - - - - - The fmt:setLocale custom action should not be used. Even though it might work in some circumstances, it would result in JSF and JSTL assuming different locales. If the two locales use different character sets, the results will be undefined. Applications should use JSF facilities for setting the locale property on the UIViewRoot component to change locales for a particular user. - - application-role - - - - - - The corresponding UIComponent implementation class must implement ActionSource, and therefore define a public addActionListener() method that accepts an ActionListener parameter. - - application-role - - - - - - The specified listener class must implement jakarta.faces.event.ActionListener. - - application-role - - - - - - If both limits are specified, the maximum limit must be greater than the minimum limit. - - application-role - - - - - - javax.servlet.* classes will typically be made available to all web applications using the shared class facilities of the servlet container. Therefore, these classes should not be included inside the web application archive. - - application-role - - - - - - Each of the following referenced classes must have a public zero-arguments constructor: - - application-role - - - - - - /faces-config/factory/application-factory - - application-role - - - - - - /faces-config/factory/faces-context-factory - - application-role - - - - - - /faces-config/factory/lifecycle-factory - - application-role - - - - - - /faces-config/factory/render-kit-factory - - application-role - - - - - - - - javax.servlet.* classes will typically be made available to all web applications using the shared class facilities of the servlet container. Therefore, these classes should not be included inside the web application archive. - - application-role - - - diff --git a/internal/docs/jsf/jsf_ch10.xml b/internal/docs/jsf/jsf_ch10.xml deleted file mode 100644 index b226be960f..0000000000 --- a/internal/docs/jsf/jsf_ch10.xml +++ /dev/null @@ -1,437 +0,0 @@ - - - - - - - __NUMBER__ - - Facelet pages are authored in XHTML. The runtime must support all XHTML - pages that confirm with the XHTML-1.0-Transitional DTD, as described at - http://www.w3.org/TR/xhtml1/#a_dtd_XHTML-1.0-Transitional - - - - - __NUMBER__ - - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page. - <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:prefix="namespace_uri"> - - - - - __NUMBER__ - - The runtime must support the following syntax for making the tags in a - tag library available for use in a Facelet page - - - - - __NUMBER__.1 - - Via declaration in the web.xml, as specified in Section11.1.3 - “Application Configuration Parameters” - - - - - __NUMBER__.2 - - Via auto discovery by placing the tag library discriptor file - within a jar on the web application classpath, naming the - file so that it ends with “.taglib.xml”, without the quotes, - and placing the file in the META-INF directory in the jar file - - - - - - - __NUMBER__ - - Failure to parse, process and otherwise interpret any of the tag - library files discovered must cause the application to fail to deploy - and must cause an informative error message to be logged. - - - - - __NUMBER__ - - The runtime must support the following two ways of declaring a - composite component library. - - - - - __NUMBER__.1 - - If a facelet taglibrary is declared in an XHTML page with a - namespace starting with the string - “http://java.sun.com/jsf/composite/” (without the quotes), - the remainder of the namespace declaration is taken as the name - of a resource library as described in Section2.6.1.4 “Libraries - of Localized and Versioned Resources - - - - - __NUMBER__.2 - - the runtime must also support the <composite-library-name> - element. - - - - - - - __NUMBER__ - - If, during the process of building the view, the facelet runtime - encounters an element in the page using the prefix for the namespace of - a composite component library, the runtime must create a Resource - instance with a library property equal to the library name derived in - Section10.3.3.1 “Declaring a composite component library for use in a - Facelet page”and call the variant of application.createComponent() that - takes a Resource. - - - - - __NUMBER__ - - After causing the top level component to be instantiated, the runtime - must create a UIComponent with component- family of jakarta.faces.Panel - and renderer-type jakarta.faces.Group to be installed as a facet of the - top level component under the facet name - UIComponent.COMPOSITE_FACET_NAME. - - - - - __NUMBER__ - - The runtime must support the use of composite: tag library in the - defining page pointed to by the Resource derived as specified in - Section10.3.3.2 “Creating an instance of a top level component” - - - - - __NUMBER__ - - The runtime must ensure that all UIComponent children in the composite - component definition within the defining page are placed as children of - the UIComponent.COMPOSITE_FACET_NAME facet of the top level facet - - - - - __NUMBER__ - - The runtime must ensure that all such attributes are copied to the - attributes map of the top level component instance in the following - manner. - - - - - __NUMBER__.1 - - Obtain a reference to the ExpressionFactory, for discussion - called expressionFactory. - - - - - __NUMBER__.2 - - Let the value of the attribute in the using page be value. - - - - - __NUMBER__.3 - - If value is “id” or “binding” without the quotes, skip to the - next attribute. - - - - - __NUMBER__.4 - - f the value of the attribute starts with “#{“ (without the - quotes) call expressionFactory.createValueExpression(elContext, - value, Object.class) - - - - - __NUMBER__.5 - - If the value of the attribute does not start with “#{“, call - expressionFactory.createValueExpression(value, Object.class) - - - - - __NUMBER__.6 - - If there already is a key in the map for value, inspect the type - of the value at that key. If the type is MethodExpression take - no action. - - - - - - - __NUMBER__ - - If the type of the attribute is a MethodExpression, the code that - takes the value of the attribute and creates an actual - MethodExpression instance around it must take the following special - action. - - - - - __NUMBER__.1 - - Obtain a reference to the current composite component by calling - UIComponent.getCurrentCompositeComponent(). - - - - - __NUMBER__.2 - - Look in the attribute of the component for a key under the value - attrName. - - - - - __NUMBER__.3 - - There must be a value and it must be of type MethodExpression. - If either of these conditions are false allow the ensuing - exception to be thrown. - - - - - __NUMBER__.4 - - Call invoke() on the discovered MethodExpression, passing the - arguments passed to our invoke() method. - - - - - - - __NUMBER__ - - The String value for identifiers specified for execute and render may be - specified as a search expression as outlined in the JavaDocs for - UIComponent.findComponent.The implementation must resolve these - identifiers as specified for UIComponent.findComponent. - - - - - __NUMBER__ - - A TagAttibuteException must be thrown if an “event” attribute value is - specified that does not match the events supported by the component - type. - - - - - __NUMBER__ - - The event attribute that is specified, must be one of the events - returned from the ClientBehaviorHolder component implementation of - ClientBehaviorHolder.getEventNames. - - - - - __NUMBER__ - - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - - - - - __NUMBER__ - - If an event is not specified the value returned from the component - implementation of ClientBehaviorHolder.getDefaultEventName must be used. - If the event is still not determined, a TagAttributeException must be - thrown. - - - - - __NUMBER__ - - The "Description" tag handler must create an instance of - jakarta.faces.component.behavior.AjaxBehavior instance using the tag - attribute values. - - - - - __NUMBER__ - - If teh "Description" tag is nested within a single ClientBehaviorHolder - component: - - - - - __NUMBER__.1 - - If the event attribute is not specified, determine the event by - calling the component’s getDefaultEventName method. If that - returns null, throw an exception. - - - - - __NUMBER__.2 - - If the event attribute is specified, ensure that it is a valid - event - that is one of the events contained in the Collection - returned from getEventNames method. If it does not exist in this - Collection, throw an exception. - - - - - __NUMBER__.3 - - Add the AjaxBehavior to the component by calling the addBehavior - method, passing the event and AjaxBehavior instance. - - - - - - - __NUMBER__ - - When the VDL calls for the creation of a UIComponent instance, after - calling Application.createComponent() to instantiate the component - instance, and after calling setRendererType() on the newly instantiated - component instance, the following action must be taken. - - - - - __NUMBER__.1 - - Obtain the Renderer for this component. If no Renderer is - present, ignore the following steps. - - - - - __NUMBER__.2 - - Call getClass() on the Renderer instance and inspect if the - ListenerFor annotation is present. If so, inspect if the - Renderer instance implements ComponentSystemEventListener. If - neither of these conditions are true, ignore the following - steps. - - - - - __NUMBER__.3 - - Obtain the value of the systemEventClass() property of the - ListenerFor annotation on the Renderer instance. - - - - - __NUMBER__.4 - - Call subscribeToEvent() on the UIComponent instance from which - the Renderer instance was obtained, using the systemEventClass - from the annotation as the second argument, and the Renderer - instance as the third argument. - - - - - diff --git a/internal/docs/jsf/jsf_ch11.xml b/internal/docs/jsf/jsf_ch11.xml deleted file mode 100644 index 294ddb615c..0000000000 --- a/internal/docs/jsf/jsf_ch11.xml +++ /dev/null @@ -1,713 +0,0 @@ - - - - - - - __NUMBER__ - - This servlet must be defined, in the deployment descriptor of an - application that wishes to employ this portable mechanism. - The servlet name, denoted as faces-servlet-name above, may be any - desired value; however, the same value must be used as teh servlet-name - in the servlet mapping. - - - - - __NUMBER__ - - JSF implementations must support web application that define a - <servlet-mapping> that maps any valid url-pattern to the - FacesServlet. - - - - - __NUMBER__ - - JSF implementations are required to support the following application - configuration parameter names: - - - - - __NUMBER__.1 - - jakarta.faces.CONFIG_FILES -- Comma-delimited list of - context-relative resource paths under which the JSF - implementation will look for application configuration - resources before loading a configuration resource named - “/WEB-INF/faces-config.xml” - - - - - __NUMBER__.2 - - jakarta.faces.DEFAULT_SUFFIX -- The default suffix for - extension-mapped resources that contain JSF components. If not - specified, the default value “.jsp” must be used. - - - - - __NUMBER__.3 - - jakarta.faces.FACELETS_SUFFIX -- Allow the web application to - define an alternate suffix for Facelet based XHTML pages - containing JSF content. See the javadocs for the symbolic - constant ViewHandler.FACELETS_SUFFIX_PARAM_NAME for the - complete specification. - - - - - __NUMBER__.4 - - jakarta.faces.LIFECYCLE_ID -- Lifecycle identifier of the - Lifecycle instance to be used when processing JSF requests for - this web application. If not specified, the JSF default - instance, identified by LifecycleFactory.DEFAULT_LIFECYCLE, must - be used. - - - - - __NUMBER__.5 - - jakarta.faces.STATE_SAVING_METHOD -- The location where state - information is saved. Valid values are “server” (typically saved - in HttpSession) and “client (typically saved as a hidden field - in the subsequent form submit). If not specified, the default - value “server” must be used. - - - - - __NUMBER__.6 - - jakarta.faces.PARTIAL_STATE_SAVING --The ServletContext init - parameter consulted by the runtime to determine if the partial - state saving mechanism should be used. If undefined, the runtime - must determine the version level of the application. - - - - - __NUMBER__.6.1 - - For applications versioned at 1.2 and under, the runtime - must not use the partial state saving mechanism. - - - - - __NUMBER__.6.2 - - For applications versioned at 2.0 and above, the runtime - must use the partial state saving mechanism. - - - - - - - __NUMBER__.7 - - jakarta.faces.FULL_STATE_SAVING_VIEW_IDS -- The runtime must - interpret the value of this parameter as a comma separated list - of view IDs, each of which must have their state saved using the - state saving mechanism specified in JSF 1.2. - - - - - __NUMBER__.8 - - jakarta.faces.PROJECT_STAGE -- A human readable string describing - where this particular JSF application is in the software - development lifecycle. - - - - - __NUMBER__.9 - - jakarta.faces.DISABLE_FACELET_JSF_VIEWHANDLER -- If this param is - set, and calling toLowerCase().equals("true") on a String - representation of its value returns true, the default - ViewHandler must behave as specified in the latest 1.2 version - of this specification. - - - - - __NUMBER__.10 - - jakarta.faces.FACELETS_LIBRARIES -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - paths, starting with “/” (without the quotes). - - - - - __NUMBER__.11 - - jakarta.faces.FACELETS_VIEW_MAPPINGS -- If this param is set, the - runtime must interpret it as a semicolon (;) separated list of - strings that is used to forcibly declare that certain pages in - the application must be interpreted as using Facelets, - regardless of their extension. - - - - - __NUMBER__.12 - - jakarta.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL -- - If this param is set, and calling toLowerCase().equals("true") - on a String representation of its value returns true, any - implementation of UIInput.validate() must take the following - additional action. context parameter value is true (ignoring - case), and UIInput.getSubmittedValue() returns a zero-length - String call UIInput.setSubmittedValue(null) and continue - processing using null as the current submitted value - - - - - __NUMBER__.13 - - jakarta.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZO - NE -- If this param is set, and calling toLowerCase().equals( - "true") on a String representation of its value returns true, - Application.createConverter() must guarantee that the default - for the timezone of all jakarta.faces.convert.DateTimeConverter - instances must be equal to TimeZone.getDefault() instead of - “GMT”. - - - - - __NUMBER__.14 - - jakarta.faces.VALIDATE_EMPTY_FIELDS -- If this param is set, and - calling toLowerCase().equals("true") on a String representation - of its value returns true, all submitted fields will be - validated - - - - - __NUMBER__.15 - - jakarta.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR -- If this - param is set, and calling toLowerCase().equals("true") on a - String representation of its value returns true, the runtime - must not automatically add the validator with validator-id equal - to the value of the symbolic constant - jakarta.faces.validator.VALIDATOR_ID to the list of default - validators. - - - - - - - __NUMBER__ - - JSF implementations must also include implementations of the several - factory classes. In order to be dynamically instantiated according to - the algorithm defined above, the factory implementation class must - include a public, no-arguments constructor. - - - - - __NUMBER__ - - jakarta.faces.FactoryFinder implements the standard discovery algorithm - for all factory objects specified in the JavaServer Faces APIs. - For a given factory class name, a corresponding implementation class is - searched for based on the following algorithm. Items are listed in order - of decreasing search precedence: - - - - - __NUMBER__.1 - - If a default JavaServer Faces configuration file - (/WEB-INF/faces-config.xml) is bundled into the web application, - and it contains a factory entry of the given factory class name, - that factory class is used. - - - - - __NUMBER__.2 - - If the JavaServer Faces configuration resource(s) named by the - jakarta.faces.CONFIG_FILES ServletContext init parameter (if any) - contain any factory entries of the given factory class name, - those factories are used, with the last one taking precedence. - - - - - __NUMBER__.3 - - If there are any META-INF/faces-config.xml resources bundled any - JAR files in the web ServletContext’s resource paths, the - factory entries of the given factory class name in those files - are used, with the last one taking precedence. - - - - - __NUMBER__.4 - - If a META-INF/services/{factory-class-name} resource is visible - to the web application class loader for the calling application - (typically as a result of being present in the manifest of a - JAR file), its first line is read and assumed to be the name of - the factory implementation class to use. - - - - - __NUMBER__.5 - - If none of the above steps yield a match, the JavaServer Faces - implementation specific class is used. - - - - - - - __NUMBER__ - - For each of the public static final String fields on the class - FactoryFinder whose field names end with the string “_FACTORY” - (without the quotes), the implementation must provide an implementation - of the corresponding Factory class using the algorithm described earlier - in this section. - - - - - __NUMBER__ - - The FacesServlet implementation class must also declare two static - public final String constants whose value is a context initialization - parameter that affects the behavior of the servlet - - - - - __NUMBER__.1 - - CONFIG_FILES_ATTR -- the context initialization attribute that - may optionally contain a comma-delimited list of context - relative resources (in addition to /WEB-INF/facesconfig. xml - which is always processed if it is present) to be processed. - The value of this constant must be “jakarta.faces.CONFIG_FILES”. - - - - - __NUMBER__.2 - - LIFECYCLE_ID_ATTR -- the lifecycle identifier of the Lifecycle - instance to be used for processing requests to this application, - if an instance other than the default is required. The value of - this constant must be “jakarta.faces.LIFECYCLE_ID”. - - - - - - - __NUMBER__ - - UIComponentELTag is an implementation of - javax.servlet.jsp.tagext.BodyTag, and must be the base class for any JSP - custom action that corresponds to a JSF UIComponent. - - - - - __NUMBER__ - - The faces implementation must now provide the attributetag class. - - - - - __NUMBER__ - - the JSF implementation must process zero or more application - configuration resources, located according to the following algorithm: - - - - - __NUMBER__.1 - - Search for all resources named “META-INF/faces-config.xml” in the - ServletContext resource paths for this web application, and load - each as a JSF configuration resource (in reverse order of the - order in which they are returned by getResources() on the - current Thread’s ContextClassLoader). - - - - - __NUMBER__.2 - - Check for the existence of a context initialization parameter - named jakarta.faces.CONFIG_FILES. If it exists, treat it as a - comma-delimited list of context relative resource paths - (starting with a “/”), and load each of the specfied resources. - - - - - __NUMBER__.3 - - Check for the existence of a web application configuration - resource named “/WEBINF/faces-config.xml”, and load it if the - resource exists. - - - - - - - __NUMBER__ - - The runtime must publish the - jakarta.faces.event.PostConstructApplicationEvent immediately after all - application configuration resources have been processed. - - - - - __NUMBER__ - - XML parsing errors detected during the loading of an application - resource file are fatal to application startup, and must cause the - application to not be made available by the container. - - - - - __NUMBER__ - - JSF implementations that are part of a Java EE technology compliant - implementation are required to validate the application resource file - against the XML schema for structural correctness. The validation is not - required for JSF implementations that are not part of a Java EE - technology-compliant implementation. - - - - - __NUMBER__ - - Application configuration resources must conform to the XML schema - shown in Appendix 1.1. In addition, they must include the following - schema declaration. - - - - - __NUMBER__ - - Application configuration resources that are written to run on JSF 2.0 - must include the following schema declaration... - - - - - __NUMBER__ - - Application configuration resources that are written to run on JSF 1.2 - must include the following schema declaration... - - - - - __NUMBER__ - - Application configuration resources that are written to run on JSF 1.1 - must include the following schema declaration... - - - - - __NUMBER__ - - Application configuration resources that are written to run on JSF 1.0 - must include the following schema declaration... - - - - - __NUMBER__ - - The runtime must support the decorator design pattern as specified - below for the following artifacts. - - - - - __NUMBER__ - - If an <name> element is present, it must be considered for the - ordering of decoratable artifacts (unless the duplicate name exception - applies, as described below). - - - - - __NUMBER__.1 - - Absolute ordering: an <absolute-ordering> element in the - applicationFacesConfig - - - - - __NUMBER__.2 - - Relative ordering: an <ordering> element within a file in - the applicationConfigurationResources - - - - - - - __NUMBER__ - - The preceding example illustrates some, but not all, of the following - principles. - - - - - __NUMBER__.1 - - <before> means the document must be ordered before the - document with the name matching the name specified within the - nested <name> element. - - - - - __NUMBER__.2 - - <after> means the document must be ordered after the - document with the name matching the name specified within the - nested <name> element. - - - - - __NUMBER__.3 - - There is a special element <others /> which may be included - zero or one time within the <before> or <after> element, - or zero or one time directly within the <absolute-ordering> - element. The <others /> element must be handled as follows. - - - - - __NUMBER__.3.1 - - If the <before> element contains a nested - <others />, the document will be moved to the - beginning of the list of sorted documents. - - - - - __NUMBER__.3.2 - - If the <after> element contains a nested - <others />, the document will be moved to the end of - the list of sorted documents. - - - - - __NUMBER__.3.3 - - Within a <before> or <after> element, if an - <tothers /> element is present, but is not the only - <name> element within its parent element, the other - elements within that parent must be considered in the - ordering process. - - - - - __NUMBER__.3.4 - - If the <others /> element appears directly within - the <absolute-ordering> element, the runtime must - ensure that any application configuration resources in - applicationConfigurationResources not explicitly named - in the <absolute-ordering> section are included at - that point in the processing order. - - - - - - - __NUMBER__.4 - - If a faces-config file does not have an <ordering> or - <absolute-ordering> element the artifacts are assumed to not - have any ordering dependency. - - - - - __NUMBER__.5 - - If the runtime discovers circular references, an informative - message must be logged, and the application must fail to deploy. - Again, one course of action the user may take is to use absolute - ordering in the applicationFacesConfig. - - - - - - - __NUMBER__ - - If the <faces-config>> element in the WEB-INF/faces-config.xml file - contains metadata-complete attribute whose value is “true”, the - implementation must not perform annotation scanning on any classes - except for those classes provided by the implementation itself. - - - - - __NUMBER__ - - If the runtime discovers a conflict between an entry in the Application - Configuration Resources and an annotation, the entry in the Application - Configuration Resources takes precedence. - - - - - __NUMBER__ - - All classes in WEB-INF/classes must be scanned. - - - - - __NUMBER__ - - For every jar in the application's WEB-INF/lib directory, if the jar - contains a “META-INF/faces-config.xml” file or a file that matches the - regular expression “META-INF/.*faces-config.xml” (even an empty one), - all classes in that jar must be scanned. - - - diff --git a/internal/docs/jsf/jsf_ch12.xml b/internal/docs/jsf/jsf_ch12.xml deleted file mode 100644 index 833839c50d..0000000000 --- a/internal/docs/jsf/jsf_ch12.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - __NUMBER__ - - Upon receipt of each JSF-destined request to this web application, - the JSF implementation must acquire a reference to the Lifecycle - instance for this web application, and call its execute() and render() - methods to perform the request processing lifecycle. - - - - - __NUMBER__ - - Any exceptions thrown during the beforePhase() listeners must be caught - and published to the ExceptionHandler. - - - - - __NUMBER__ - - Any exceptions thrown during the execution of the actual lifecycle - phase, that reach the runtime code that implements the JSF lifecycle - phase, must be caught and and published to the ExceptionHandler - - - - - __NUMBER__ - - Any exceptions thrown during the afterPhase() liseteners must be caught - and published to the ExceptionHandler. - - - diff --git a/internal/docs/jsf/jsf_ch13.xml b/internal/docs/jsf/jsf_ch13.xml deleted file mode 100644 index 26ea189f60..0000000000 --- a/internal/docs/jsf/jsf_ch13.xml +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - __NUMBER__ - - There must be a single JavaScript resource that exists with the resource - identifier jsf.js - - - - - __NUMBER__ - - The jsf.js must exist under the resource library jakarta.faces, following - the conventions in Section 2.6 “Resource Handling”. - - - - - __NUMBER__ - - If the OpenAjax library is available, libraries must register themselves - using OpenAjax.registerLibrary() at the time when the JavaScript files - are fetched and parsed by the browser’s JavaScript engine. - - - - - __NUMBER__ - - Any implementation that intends to use the JavaServer Faces 2.0 JavaScript - API must define a top level JavaScript object name jsf, whose type is a - JavaScript associative array. Within that top level JavaScript object, - found in the OpenAjax Hub, there must be a property named ajax.. - - - - - __NUMBER__ - - All Ajax requests must be put into a client side request queue before - they are sent to the server to ensure Ajax requests are processed in the - order they are sent. - - - - - __NUMBER__ - - After a request is sent, the Ajax request callback function must remove - the request from the queue (also known as dequeuing). If the request - completed successfully, it must be removed from the queue. If there was - an error, the client must be notified, but the request must still be - removed from the queue - - - - - __NUMBER__ - - The Ajax request callback function is called when the Ajax - request/response interaction is complete. This function must perform the - following actions: - - - - - __NUMBER__.1 - - If the return status is >= 200 and < 300, send a “complete” - event following Section13.3.5.3 “Sending Events”. - - - - - __NUMBER__.2 - - If the return status is outside the range mentioned above, send - a “complete” event following Section13.3.5.3 “Sending Events”. - - - - - __NUMBER__.3 - - Regardless of whether the request completed successfully or not: - - - - - __NUMBER__.3.1 - - remove the completed requests (Ajax readystate 4) from - the request queue (dequeue) - specifically the requests - that have been on the queue the longest. - - - - - __NUMBER__.3.1 - - find the next oldest unprocessed (Ajax readystate 0) - request on the queue, and send it. The implementation - must ensure that the request that is sent does not enter - the queue again. - - - - - - - - - __NUMBER__ - - The implementation of jsf.ajax.response must handle the response as - outlined in the JavaScript documentation for jsf.ajax.response. The - elements in the response must be processed in the - order they appear in the response. - - - - - __NUMBER__ - - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance with the - events outlined in SectionTABLE14-3 “Events”. - - - - - __NUMBER__ - - The implementation must send events to the runtime as follows: - - - - - __NUMBER__.1 - - Construct a data payload for events using the properties - described in SectionTABLE14-4 “Event Data Payload” - - - - - __NUMBER__.2 - - If an event handler function was registered with the “onevent” - attribute (Section13.3.5.1 “Monitoring Events For An Ajax - Request”) call it passing the data payload. - - - - - __NUMBER__.3 - - If any event handling functions were registered with the - “addOnEvent” function (Section13.3.5.2 “Monitoring Events - For All Ajax Requests”) call them passing the data payload. - - - - - - - __NUMBER__ - - The implementation must ensure the JavaScript function that is - registered for an Ajax request must be called in accordance when the - request status code from the server is as outlined in SectionTABLE14-5 - “Errors”. - - - - - __NUMBER__ - - The implementation must ensure the JavaScript function that is - registered must be called in accordance with the errors outlined in - SectionTABLE14-5 “Errors”. - - - - - __NUMBER__ - - The implementation must signal errors to the runtime as follows: - - - - - __NUMBER__.1 - - Construct a data payload for errors using the properties - described in SectionTABLE14-6 “Error Data Payload”. - - - - - __NUMBER__.2 - - If an error handler function was registered with the “onerror” - attribute (Section13.3.6.1 “Handling Errors For An Ajax - Request”) call it passing the data payload. - - - - - __NUMBER__.3 - - If any error handling functions were registered with the - “addOnError” function (Section13.3.6.2 “Handling Errors For All - Ajax Requests”) call them passing the data payload. - - - - - __NUMBER__.4 - - If the project stage is “development” (see Section14.5 - “Determining An Application’s Project Stage”) use JavaScript - “alert” to signal the error(s). - - - - - - - __NUMBER__ - - JavaServer Faces Ajax frameworks must ensure exception information is - written to the response in the format: - - - - - __NUMBER__.1 - - Extract the “class” from the “Throwable” object and write that - as the contents of error-name in the response. - - - - - __NUMBER__.2 - - Extract the “cause” from the “Throwable” object if it is - available and write that as the contents of error-message in the - response. If “cause” is not available, write the string returned - from “Throwable.getMessage()”. - - - - - __NUMBER__.3 - - Implementations must ensure that an ExceptionHandler suitable - for writing exceptions to the partial response is installed if - the current request required an Ajax response - (PartialViewContext.isAjaxRequest() returns true). - - - - - - - __NUMBER__ - - The UIViewRoot processDecodes, processValidators and processUpdates - methods must determine if the request is a partial request using the - FacesContext.isPartialRequest() method. - - - - - __NUMBER__ - - The UIViewRoot getRendersChildren and encodeChildren methods must - determine if the request is an Ajax request using the - FacesContext.isAjaxRequest() method. - - - - - __NUMBER__ - - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - - - - - __NUMBER__ - - Implementations must adhere to the response format as specified in the - JavaScript docs for jsf.ajax.response. - - - diff --git a/internal/docs/jsf/jsf_ch14.xml b/internal/docs/jsf/jsf_ch14.xml deleted file mode 100644 index f4f8544be1..0000000000 --- a/internal/docs/jsf/jsf_ch14.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - __NUMBER__ - - The jsf.ajax.request function is responsible for sending an Ajax request - to the server. The requirements for this function are as follows: - - - - - __NUMBER__.1 - - The request must be sent asynchronously - - - - - __NUMBER__.2 - - The request must be sent with method type POST - - - - - __NUMBER__.3 - - The request URL will be the form action attribute - - - - - __NUMBER__.4 - - All requests will be queued with the use of a client side - request queue to help ensure request ordering - - - - - - - __NUMBER__ - - It must be a DOM element object or a string identifier for a DOM - element. - - - - - __NUMBER__ - - The request header must be set with the name Faces-Request and the value - partial/ajax. - - - - - __NUMBER__ - - The specifics details of this function’s operation must follow the - jsf.ajax.response JavaScript documentation. - - - - - __NUMBER__ - - This function must return the constant representing the current state of - the running application in a typical product development lifecycle. The - returned value must be the value returned from the server side method - jakarta.faces.application.Application.getProjectStage() - - - diff --git a/internal/docs/jsf/jsf_ch2.xml b/internal/docs/jsf/jsf_ch2.xml deleted file mode 100644 index 2607040a3a..0000000000 --- a/internal/docs/jsf/jsf_ch2.xml +++ /dev/null @@ -1,1202 +0,0 @@ - - - - - - - __NUMBER__ - - The JSF implementation must perform the following tasks during - the Restore View phase of the request processing lifecycle: - - - - - __NUMBER__.1 - - Examine the FacesContext instance for the current - request. If it already contains a UIViewRoot: - - - - - __NUMBER__.1.1 - - Set the locale on the UIViewRoot to the value - returned by getRequestLocale() method on the - ExternalContext for this request - - - - - __NUMBER__.1.2 - - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValue() method on - this ValueExpression, passing the component - instance on which it was found. - - - - - __NUMBER__.1.3 - - Take no further action during this phase, and - return. - - - - - - - __NUMBER__.2 - - Derive the view identifier that corresponds to this - request, as follows: - - - - - __NUMBER__.2.1 - - If prefix mapping (such as /faces/*) is - used for FacesServlet, the viewId is set from - the extra path information of the request - URI. - - - - - __NUMBER__.2.2 - - If suffix mapping (such as *.faces) is used for - FacesServlet, the viewId is set from the servlet - path information of the request URI, after - replacing the suffix with the value of the - context initialization parameter named by the - symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no - such context initialization parameter is - present, use the value of the symbolic constant - ViewHandler.DEFAULT_SUFIX as the replacement - suffix). - - - - - __NUMBER__.2.3 - - If no view identifier can be derived, throw an - exception. - - - - - - - __NUMBER__.3 - - Determine if this request is a postback or initial - request by executing the following algorithm. Find the - render-kit-id for the current request by calling - calculateRenderKitId() on the Application's ViewHandler. - Get the RenderKit's ResponseStateManager and call its - isPostback() method, passin gthe current FacesContext - - - - - __NUMBER__.4 - - A request that is a non-postback request must call - FacesContext.renderResponse() to cause intervening - phases to be skipped. - - - - - __NUMBER__.5 - - If the request is a postback, call - ViewHandler.restoreView() passing the FacesCOntext - isntance for the current request and the derived view - identifier, and returning a UIViewRoot for the restored - view. If the return from ViewHandler.restoreView() is - null, throw a FacesException with an appropriate error - message. - - - - - __NUMBER__.5.1 - - For each component in the component tree, - determine if a ValueExpression for binding is - present. If so, call the setValeu() method on - this ValueExpression, passing the component - instance on which it was found. Do this in a - parent-first fashion, calling setValue() method - and then traversing the children. - - - - - - - __NUMBER__.6 - - If the request is a non-postback, call - ViewHandler.createView(), passing the FacesContext - instance for the current request and the derived view - identifier. - - - - - __NUMBER__.7 - - Store the restored or created UIViewRoot in the - FacesContext - - - - - __NUMBER__.8 - - Use the protected view API to determine if the view for this viewId is - protected. If not, assume the requested view is - not protected and take no additional view protection steps. Otherwise, - look for a Referer [sic] request header. If the - header is present, use the protected view API to determine if any of the - declared protected views match the value of - the Referer header. If so, conclude that the previously visited page is - also a protected view and it is therefore safe - to continue. Otherwise, try to determine if the value of the Referer - header corresponds to any of the views in the - current web application. If not, throw a ProtectedViewException. If the - Referer header is not present, fall back on inspecting the incoming URL. - Obtain the value of the value of the request parameter whose name is - given by the value of ResponseStateManager.NON_POSTBACK_VIEW_TOKEN_PARAM. - If such a request parameter value is not present, throw - ProtectedViewException. If the value is present, compare it to the - return from - ResponseStateManager.getCrpytographicallyStrongTokenFromSession(). If - the values do not match, throw ProtectedViewException. - - - - - - - __NUMBER__ - - During the Apply Request Values phase, the JSF implementation - must call the processDecodes() method of the UIViewRoot of the - component tree. - - - - - __NUMBER__ - - During the decoding of request values, some components perform - special processing: - - - - - __NUMBER__.1 - - Components that implement ActionSource, which recognize - that they were activated, will queue an ActionEvent. - - - - - __NUMBER__.1.1 - - The event will be delivered at the end of Apply - Request Values phase if the immediate property - is true - - - - - __NUMBER__.1.2 - - The event will be delivered at the end of Invoke - Application phase if the immediate property is - false - - - - - - - __NUMBER__.2 - - Components that implement EditableValueHolder, and whose - immediate property is set to true, will cause the - conversion and validation processing that normally - happens during Process Validations phase to occur during - Apply Requst Values phase instead. - - - - - - - __NUMBER__ - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called - responseComplete() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - terminate the lifecycle processing of the current request. - - - - - __NUMBER__ - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and terminate the - lifecycle processing of the current request. - - - - - __NUMBER__ - - If any of the decode() methods that were invoked, or an event - listener that processed a queued event, did not call - responseComplete() or renderResponse() on the FacesContext - instance for the current request, the implementation must - proceed to the Process Validations phase. - - - - - __NUMBER__ - - During the Process Validations phase of the request processing - lifecycle, the JSF implementation must call the - processValidators() method of the UIViewRoot of the tree. - - - - - __NUMBER__ - - If any of the validate() methods that were invoked, or an event - listener that processed a queued event, called renderResponse() - on the FacesContext instance for the current request, clear the - remaining events from the event queue and transfer control to - the Render Response phase of the request processing lifecycle. - Otherwise, control must proceed to the Update Model Values - phase. - - - - - __NUMBER__ - - During the Update Model Values phase, the JSF implementation - must call the processUpdates() method of the UIViewRoot - component of the tree. - - - - - __NUMBER__ - - If any of the updateModel() methods that was invoked, - or an event listener that processed a queued event, called - renderResponse() on the FacesContext instance for the current - request, clear the remaining events from the event queue and - transfer control to the Render Response phase of the request - processing lifecycle. Otherwise, control must proceed to the - Invoke Application phase. - - - - - __NUMBER__ - - The implementation must ensure that the processApplication() - method of the UIViewRoot instance is called. - - - - - __NUMBER__.1.1 - - The default behavior of this method will be to broadcast - any queued events that specify a phase identifier of - PhaseId.INVOKE_APPLICATION. - - - - - - - __NUMBER__ - - During the Render Response phase All JSF implementations - must conform to the following requirements. - - - - - __NUMBER__.1.1 - - JSF implementations must provide a default ViewHandler - implementation that performs a - RequestDispatcher.forward() call to a web application - resource whose context-relative path is equal to the - view identifier of the component tree - - - - - __NUMBER__.1.2 - - During the rendering process, additional components may - be added to the component tree based on information - available to the ViewHandler implementation. However, - before adding a new component, the ViewHandler - implementation must first check for the existence of the - corresponding component in the component tree. If the - component already exists (perhaps because a previous - phase has pre-created one or more components), the - existing component’s properties and attributes must be - utilized. - - - - - __NUMBER__.1.3 - - Under no circumstances should a component be selected - for rendering when its parent component, or any of its - ancestors in the component tree, has its rendersChildren - property set to true. In such cases, the parent or - ancestor component must render the content of this child - component when the parent or ancestor was selected. - - - - - - - __NUMBER__ - - For each queued event, the broadcast() method of the source - UIComponent must be called to broadcast the event to all event - listeners who have registered an interest, on this source - component for events of the specified type, after which the - event is removed from the event queue. - - - - - __NUMBER__ - - It is also possible for event listeners to cause additional - events to be enqueued for processing during the current phase - of the request processing lifecycle. Such events must be - broadcast in the order they were enqueued, after all originally - queued events have been broadcast, before the lifecycle - management method returns. - - - - - __NUMBER__ - - The UIViewRoot instance returned by the createView() method must - minimally contain a single UIViewRoot provided by the JSF - implementation, which must encapsulate any - implementation-specific component management that is required. - - - - - __NUMBER__ - - The caller of ViewHandler.createView() must cause the - FacesContext to be populated with the new UIViewRoot. - - - - - __NUMBER__ - - The default ViewHandler must call calculateRenderKitId() on - itself and set the result into the UIViewRoot’s renderKitId - property. - - - - - __NUMBER__ - - Once the view has been created and configured, the FacesContext - instance for this request must be made aware of it by calling - setViewRoot(). - - - - - __NUMBER__ - - The create ViewHandler’s createView() method must cause the - active Locale to be determined by looking at the user’s - preferences combined with the application’s stated supported - locales. - - - - - __NUMBER__ - - At the beginning of the render-response phase, the ViewHandler - must ensure that the response Locale is set to be that of the - UIViewRoot, for example by calling ServletResponse.setLocale() - when running in the servlet environment. - - - - - __NUMBER__ - - At the end of the render-response phase, the ViewHandler must - store the response character encoding used by the underlying - response object (e.g., the servlet or portlet response) in the - session (if and only if a session already exists) under a well - known, implementation-dependent key - - - - - __NUMBER__.1 - - On a subsequent postback, before any of the - ExternalContext methods for accessing request - parameters are invoked, the ViewHandler must examine the - Content-Type header to read the charset attribute and - use its value to set it as the request encoding for the - underlying request object. If the Content-Type header - doesn't contain a charset attribute, the encoding - previously stored in the session (if and only if a - session already exists), must be used to set the - encoding for the underlying request object. - - - - - __NUMBER__.2 - - If no character encoding is found, the request encoding - must be left unmodified. - - - - - - - __NUMBER__ - - A JSF implementation must provide a jakarta.faces.Messages - ResourceBundle containing all of the necessary keys for the - standard messages. - - - - - __NUMBER__.1 - - jakarta.faces.component.UIInput.CONVERSION -- - {0}: Conversion error occurred - - - - - __NUMBER__.2 - - jakarta.faces.component.UIInput.REQUIRED -- - {0}: Validation Error: Value is required - - - - - __NUMBER__.3 - - jakarta.faces.component.UIInput.UPDATE -- - {0}: An error occurred when processing your submitted - information - - - - - __NUMBER__.4 - - jakarta.faces.component.UISelectOne.INVALID -- - {0}: Validation Error: Value is not valid - - - - - __NUMBER__.5 - - jakarta.faces.component.UISelectMany.INVALID -- - {0}: Validation Error: Value is not valid - - - - - __NUMBER__.6 - - jakarta.faces.converter.BigDecimalConverter.DECIMAL={2}: - ''{0}'' must be a signed decimal number. - - - - - __NUMBER__.7 - - jakarta.faces.converter.BigDecimalConverter.DECIMAL_detail - ={2}: ''{0}'' must be asigned decimal number consisting - of zero or more digits, that may be followed by a - decimal point and fraction. Example: {1} - - - - - __NUMBER__.8 - - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER - ={2}: ''{0}'' must be a number consisting of one or more - digits. - - - - - __NUMBER__.9 - - jakarta.faces.converter.BigIntegerConverter.BIGINTEGER_ - detail={2}: ''{0}'' must be a number consisting of one - or more digits. Example: {1} - - - - - __NUMBER__.10 - - jakarta.faces.converter.BooleanConverter.BOOLEAN={1}: - ''{0}'' must be 'true' or 'false'. - - - - - __NUMBER__.11 - - jakarta.faces.converter.BooleanConverter.BOOLEAN_detail - ={1}: ''{0}'' must be 'true' or 'false'. Any value other - than 'true' will evaluate to 'false'. - - - - - __NUMBER__.12 - - jakarta.faces.converter.ByteConverter.BYTE={2}: ''{0}'' - must be a number between 0 and 255. - - - - - __NUMBER__.13 - - jakarta.faces.converter.ByteConverter.BYTE_detail={2}: - ''{0}'' must be a number between 0 and 255. Example: {1} - - - - - __NUMBER__.14 - - jakarta.faces.converter.CharacterConverter.CHARACTER={1}: - ''{0}'' must be a valid character. - - - - - __NUMBER__.15 - - jakarta.faces.converter.CharacterConverter.CHARACTER_ - detail={1}: ''{0}'' must be a valid ASCII character. - - - - - __NUMBER__.16 - - jakarta.faces.converter.DateTimeConverter.DATE={2}: - ''{0}'' could not be understood as a date. - - - - - __NUMBER__.17 - - jakarta.faces.converter.DateTimeConverter.DATE_detail={2}: - ''{0}'' could not be understood as a date. Example: {1} - - - - - __NUMBER__.18 - - jakarta.faces.converter.DateTimeConverter.TIME={2}: - ''{0}'' could not be understood as a time. - - - - - __NUMBER__.19 - - jakarta.faces.converter.DateTimeConverter.TIME_detail={2}: - ''{0}'' could not be understood as a time. Example: {1} - - - - - __NUMBER__.20 - - jakarta.faces.converter.DateTimeConverter.DATETIME={2}: - ''{0}'' could not be understood as a date and time. - - - - - __NUMBER__.21 - - jakarta.faces.converter.DateTimeConverter.DATETIME_detail= - {2}: ''{0}'' could not be understood as a date and time. - Example: {1} - - - - - __NUMBER__.22 - - jakarta.faces.converter.DateTimeConverter.PATTERN_TYPE= - {1}: A 'pattern' or 'type' attribute must be specified - to convert the value ''{0}''. - - - - - __NUMBER__.23 - - jakarta.faces.converter.DoubleConverter.DOUBLE={2}: - ''{0}'' must be a number consisting of one or more - digits. - - - - - __NUMBER__.24 - - jakarta.faces.converter.DoubleConverter.DOUBLE_detail={2}: - ''{0}'' must be a number between 4.9E-324 and - 1.7976931348623157E308 Example: {1} - - - - - __NUMBER__.25 - - jakarta.faces.converter.EnumConverter.ENUM={2}: ''{0}'' - must be convertible to an enum. - - - - - __NUMBER__.26 - - jakarta.faces.converter.EnumConverter.ENUM_detail={2}: - ''{0}'' must be convertible to an enum from the enum - that contains the constant ''{1}''. - - - - - __NUMBER__.27 - - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS={1}: - ''{0}'' must be convertible to an enum from the enum, - but no enum class provided. - - - - - __NUMBER__.28 - - jakarta.faces.converter.EnumConverter.ENUM_NO_CLASS_detail - ={1}: ''{0}'' must be convertible to an enum from the - enum, but no enum class provided. - - - - - __NUMBER__.29 - - jakarta.faces.converter.FloatConverter.FLOAT={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - __NUMBER__.30 - - jakarta.faces.converter.FloatConverter.FLOAT_detail={2}: - ''{0}'' must be a number between 1.4E-45 and - 3.4028235E38 Example: {1} - - - - - __NUMBER__.31 - - jakarta.faces.converter.IntegerConverter.INTEGER={2}: - ''{0}'' must be a number consisting of one or more - digits. - - - - - __NUMBER__.32 - - jakarta.faces.converter.IntegerConverter.INTEGER_detail= - {2}: ''{0}'' must be a number between -2147483648 - and 2147483647 Example: {1} - - - - - __NUMBER__.33 - - jakarta.faces.converter.LongConverter.LONG={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - __NUMBER__.34 - - jakarta.faces.converter.LongConverter.LONG_detail={2}: - ''{0}'' must be a number between -9223372036854775808 - to 9223372036854775807 Example: {1} - - - - - __NUMBER__.35 - - jakarta.faces.converter.NumberConverter.CURRENCY={2}: - ''{0}'' could not be understood as a currency value. - - - - - __NUMBER__.36 - - jakarta.faces.converter.NumberConverter.CURRENCY_detail= - {2}: ''{0}'' could not be understood as a currency value. - Example: {1} - - - - - __NUMBER__.37 - - jakarta.faces.converter.NumberConverter.PERCENT={2}: - ''{0}'' could not be understood as a percentage. - - - - - __NUMBER__.38 - - jakarta.faces.converter.NumberConverter.PERCENT_detail= - {2}: ''{0}'' could not be understood as a percentage. - Example: {1} - - - - - __NUMBER__.39 - - jakarta.faces.converter.NumberConverter.NUMBER={2}: - ''{0}'' is not a number. - - - - - __NUMBER__.40 - - jakarta.faces.converter.NumberConverter.NUMBER_detail={2}: - ''{0}'' is not a number. Example: {1} - - - - - __NUMBER__.41 - - jakarta.faces.converter.NumberConverter.PATTERN={2}: - ''{0}'' is not a number pattern. - - - - - __NUMBER__.42 - - jakarta.faces.converter.NumberConverter.PATTERN_detail= - {2}: ''{0}'' is not a number pattern. Example: {1} - - - - - __NUMBER__.43 - - jakarta.faces.converter.ShortConverter.SHORT={2}: ''{0}'' - must be a number consisting of one or more digits. - - - - - __NUMBER__.44 - - jakarta.faces.converter.ShortConverter.SHORT_detail={2}: - ''{0}'' must be a number between -32768 and 32767 - Example: {1} - - - - - __NUMBER__.45 - - jakarta.faces.converter.STRING={1}: Could not convert - ''{0}'' to a string. - - - - - __NUMBER__.46 - - jakarta.faces.validator.DoubleRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - __NUMBER__.47 - - jakarta.faces.validator.DoubleRangeValidator.MINIMUM -- - {1}: Validation Error: Value is less than allowable - minimum of ‘’{0}’’ - - - - - __NUMBER__.48 - - jakarta.faces.validator.DoubleRangeValidator.NOT_IN_RANGE - -- {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - - - - - __NUMBER__.49 - - jakarta.faces.validator.DoubleRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - - - - - __NUMBER__.50 - - jakarta.faces.validator.LengthValidator.MAXIMUM -- {1}: - Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - __NUMBER__.51 - - jakarta.faces.validator.LengthValidator.MINIMUM -- {1}: - Validation Error: Value is less than allowable minimum - of ‘’{0}’’ - - - - - __NUMBER__.52 - - jakarta.faces.validator.LongRangeValidator.MAXIMUM -- - {1}: Validation Error: Value is greater than allowable - maximum of ‘’{0}’’ - - - - - __NUMBER__.53 - - jakarta.faces.validator.LongRangeValidator.MINIMUM -- {1}: - Validation Error Value is less than allowable minimum of - ‘’{0}’’ - - - - - __NUMBER__.54 - - jakarta.faces.validator.LongRangeValidator.NOT_IN_RANGE= - {2}: Validation Error: Specified attribute is not - between the expected values of {0} and {1}. - - - - - __NUMBER__.55 - - jakarta.faces.validator.LongRangeValidator.TYPE -- {0}: - Validation Error: Value is not of the correct type - - - - - - - __NUMBER__ - - These ResourceBundle keys must be used to look up the necessary - values to create a localized FacesMessage instance. Note that - the value of the summary and detail keys in the ResourceBundle - may contain parameter substitution tokens, which must be - substituted with the appropriate values using - java.text.MessageFormat. - - - - - __NUMBER__ - - The following algorithm must be used to create a FacesMessage - instance given a message key. - - - - - __NUMBER__.1 - - Call getMessageBundle() on the Application instance for - this web application, to determine if the application - has defined a resource bundle name. If so, load that - ResourceBundle and look for the message there. - - - - - __NUMBER__.2 - - If not there, look in the jakarta.faces.Messages - resource bundle. - - - - - - - __NUMBER__ - - A custom component that extends UIComponent directly, and does - not extend any of the standard components must implement - StateHolder manually. - - - - - __NUMBER__ - - A custom component that does extend from one of the standard - components and maintains its own state, in addition to the state - maintained by the superclass must take special care to implement - StateHolder correctly. Notably, calls to saveState() must not - alter the state in any way. - - - - diff --git a/internal/docs/jsf/jsf_ch3.xml b/internal/docs/jsf/jsf_ch3.xml deleted file mode 100644 index 4d86dc2b52..0000000000 --- a/internal/docs/jsf/jsf_ch3.xml +++ /dev/null @@ -1,602 +0,0 @@ - - - - - - __NUMBER__ - - Every User Interface component may be named by a component - identifier, which (if utilized) must be unique among the - components that share a common naming container parent in a - component tree. - - - - - __NUMBER__ - - Component identifiers must conform to the following rules: - - - - - __NUMBER__.1 - - They must start with a letter (as defined by the - Character.isLetter() method). - - - - - __NUMBER__.2 - - Subsequent characters may be letters (as defined by the - Character.isLetter() method), digits as defined by the - Character.isDigit() method, dashes (‘-’), and - underscores (‘_’). - - - - - - - __NUMBER__ - - The implementation of setValueExpression must detemine if the - expression is a literal by calling - ValueExpression.isLiteralText() on the expression argument. - - - - - __NUMBER__.1 - - If the expression argument is literal text, then - ValueExpression.getValue() must be called on the - expression argument. - - - - - __NUMBER__.2 - - The result must be used as the value argument, along - with the name argument to this component - getAttributes().put(name,value) method call. - - - - - - - __NUMBER__ - - For the standard component classes defined by this - specification, all attributes, and all properties other than id - and parent, are value expression enabled. - - - - - __NUMBER__ - - The specified ValueExpression must point to a read-write - JavaBeans property of type UIComponent(or appropriate subclass). - Such a component binding is used at two different times - during the processing of a Faces Request: - - - - - __NUMBER__.1 - - When a component instance is first created (typically by - virtue of being referenced by a UIComponentELTag in a - JSP page), the JSF implementation will retrieve the - ValueExpression for the name binding, and call - getValue() on it. - - - - - __NUMBER__.1.1 - - If this call returns a non-null UIComponent - value (because the JavaBean programmatically - instantiated and configured a component - already), that instance will be added to the - component tree that is being created. - - - - - __NUMBER__.1.2 - - If the call returns null, a new component - instance will be created, added to the component - tree, and setValue() will be called on the - ValueBinding (which will cause the property on - the JavaBean to be set to the newly created - component instance). - - - - - - - __NUMBER__.2 - - When a component tree is recreated during the Restore - View phase of the request processing lifecycle, for each - component that has a ValueExpression associated with the - name “binding”, setValue() will be called on it, passing - the recreated component instance. - - - - - - - __NUMBER__ - - The UIComponent.getChildren() method returns a mutable List. - The returned List implementation must support all of the - required and optional methods of the List interface, as well as - update the parent property of children that are added and - removed, as described in the Javadocs for this method. - - - - - __NUMBER__ - - If there are no children, the getChildCount() method must - return 0. - - - - - __NUMBER__ - - The getChildCount() must not cause the creation of a child - component list, so it is preferred over calling - getChildren().size() when there are no children. - - - - - __NUMBER__ - - The Map returned by getAttributes() must also support - attribute-property transparency, which operates as follows: - - - - - __NUMBER__.1 - - When the get() method is called, if the specified - attribute name matches the name of a readable JavaBeans - property on the component implementation class, the - value returned will be acquired by calling the - appropriate property getter method, and wrapping Java - primitive values (such as int) in their corresponding - wrapper classes (such as java.lang.Integer) if - necessary. If the specified attribute name does not - match the name of a readable JavaBeans property on the - component implementation class, consult the internal - data-structure to in which generic attributes are - stored. If no entry exists in the internal - data-structure, see if there is a ValueExpression for - this attribute name by calling getValueExpression(), - passing the attribute name as the key. If a - ValueExpression exists, call getValue() on it, returning - the result. If an ELException is thrown wrap it in a - FacesException and re-throw it. - - - - - __NUMBER__.2 - - When the put() method is called, if the specified - attribute name matches the name of a writable JavaBeans - property on the component implementation class, the - appropriate property setter method will be called. If - the specified attribute name does not match the name of - a writable JavaBeans property, simply put the value in - the data-structure for generic attributes. - - - - - __NUMBER__.3 - - When the remove() method is called, if the specified - attribute name matches the name of a JavaBeans property - on the component, an IllegalArgumentException must be - thrown. - - - - - __NUMBER__.4 - - When the containsKey() method is called, if the - specified attribute name matches the name of a JavaBeans - property, return false. Otherwise, return true if and - only if the specified attribute name exists in the - internal data-structure for the generic attributes. - - - - - - - __NUMBER__ - - The following converter id values must be registered to create - instances of the specified Converter implementation classes: - - - - - __NUMBER__.1 - - jakarta.faces.BigDecimal -- An instance of - jakarta.faces.convert.BigDecimalConverter (or a subclass - of this class). - - - - - __NUMBER__.2 - - jakarta.faces.BigInteger -- An instance of - jakarta.faces.convert.BigIntegerConverter (or a subclass - of this class). - - - - - __NUMBER__.3 - - jakarta.faces.Boolean -- An instance of - jakarta.faces.convert.BooleanConverter (or a subclass - of this class). - - - - - __NUMBER__.4 - - jakarta.faces.Byte -- An instance of - jakarta.faces.convert.ByteConverter (or a subclass of - this class). - - - - - __NUMBER__.5 - - jakarta.faces.Character -- An instance of - jakarta.faces.convert.CharacterConverter (or a subclass of - this class). - - - - - __NUMBER__.6 - - jakarta.faces.DateTime -- An instance of - jakarta.faces.convert.DateTimeConverter (or a subclass of - this class). - - - - - __NUMBER__.7 - - jakarta.faces.Double -- An instance of - jakarta.faces.convert.DoubleConverter (or a subclass of - this class). - - - - - __NUMBER__.8 - - jakarta.faces.Float -- An instance of - jakarta.faces.convert.FloatConverter (or a subclass of - this class). - - - - - __NUMBER__.9 - - jakarta.faces.Integer -- An instance of - jakarta.faces.convert.IntegerConverter (or a subclass of - this class). - - - - - __NUMBER__.10 - - jakarta.faces.Long -- An instance of - jakarta.faces.convert.LongConverter (or a subclass of this - class). - - - - - __NUMBER__.11 - - jakarta.faces.Number -- An instance of - jakarta.faces.convert.NumberConverter (or a subclass of - this class). - - - - - __NUMBER__.12 - - jakarta.faces.Short -- An instance of - jakarta.faces.convert.ShortConverter (or a subclass of - this class). - - - - - - - __NUMBER__ - - A JSF implementation must register converters for all of the - following classes using the by-type registration mechanism: - - - - - __NUMBER__.1 - - java.math.BigDecimal, and java.math.BigDecimal.TYPE -- - An instance of jakarta.faces.convert.BigDecimalConverter - (or a subclass of this class). - - - - - __NUMBER__.2 - - java.math.BigInteger, and java.math.BigInteger.TYPE -- - An instance of jakarta.faces.convert.BigIntegerConverter - (or a subclass of this class). - - - - - __NUMBER__.3 - - java.lang.Boolean, and java.lang.Boolean.TYPE -- An - instance of jakarta.faces.convert.BooleanConverter - (or a subclass of this class). - - - - - __NUMBER__.4 - - java.lang.Byte, and java.lang.Byte.TYPE -- An instance - of jakarta.faces.convert.ByteConverter (or a subclass of - this class). - - - - - __NUMBER__.5 - - java.lang.Character, and java.lang.Character.TYPE -- An - instance of jakarta.faces.convert.CharacterConverter - (or a subclass of this class). - - - - - __NUMBER__.6 - - java.lang.Double, and java.lang.Double.TYPE -- An - instance of jakarta.faces.convert.DoubleConverter (or a - subclass of this class). - - - - - __NUMBER__.7 - - java.lang.Float, and java.lang.Float.TYPE -- An instance - of jakarta.faces.convert.FloatConverter (or a subclass of - this class). - - - - - __NUMBER__.8 - - java.lang.Integer, and java.lang.Integer.TYPE -- An - instance of jakarta.faces.convert.IntegerConverter (or a - subclass of this class). - - - - - __NUMBER__.9 - - java.lang.Long, and java.lang.Long.TYPE -- An instance - of jakarta.faces.convert.LongConverter (or a subclass of - this class). - - - - - __NUMBER__.10 - - java.lang.Short, and java.lang.Short.TYPE -- An instance - of jakarta.faces.convert.ShortConverter (or a subclass of - this class). - - - - - __NUMBER__.11 - - java.lang.Enum, and java.lang.Enum.TYPE -- An instance - of jakarta.faces.convert.EnumConverter (or a subclass of - this class). - - - - - - - __NUMBER__ - - A compliant implementation must allow the registration of a - converter for class java.lang.String and java.lang.String.TYPE - that will be used to convert values for these types. - - - - - __NUMBER__ - - A concrete UIComponent subclass that emits events of a - particular type must include public methods to register and - deregister a listener implementation. - - - - - __NUMBER__ - - The following standard Validator implementations (in the - jakarta.faces.validator package) are provided: - - - - - __NUMBER__.1 - - DoubleRangeValidator—Checks the local value of a - component, which must be of any numeric type, against - specified maximum and/or minimum values. Standard - identifier is “jakarta.faces.DoubleRange”. - - - - - __NUMBER__.2 - - LengthValidator—Checks the length (i.e. number of - characters) of the local value of a component, which - must be of type String, against maximum and/or minimum - values. Standard identifier is “jakarta.faces.Length”. - - - - - __NUMBER__.3 - - LongRangeValidator—Checks the local value of a - component, which must be of any numeric type convertible - to long, against maximum and/or minimum values. Standard - identifier is “jakarta.faces.LongRange”. - - - - - __NUMBER__.4 - - MethodExpressionValidator—Wraps a MethodExpression and - interprets it as pointing to a method that performs - validation. Any exception thrown when the expression - is invoked is wrapped in a ValidatorException in similar - fashion as the above validators. - - - - - - diff --git a/internal/docs/jsf/jsf_ch4.xml b/internal/docs/jsf/jsf_ch4.xml deleted file mode 100644 index e52fc7713a..0000000000 --- a/internal/docs/jsf/jsf_ch4.xml +++ /dev/null @@ -1,779 +0,0 @@ - - - - - - __NUMBER__ - - The implementation for each standard UIComponent class - must specify two public static final String constant values: - - - - - __NUMBER__.1 - - COMPONENT_TYPE -- The standard component type identifier - under which the corresponding component class is - registered with the Application object for this - application. This value may be used as a parameter to - the createComponent() method. - - - - - __NUMBER__.2 - - COMPONENT_FAMILY -- The standard component family - identifier used to select an appropriate Renderer for - this component. - - - - - - - __NUMBER__ - - UIColumn specializes the behavior of render-independent - properties inherited from the parent class as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Column”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - - - __NUMBER__ - - UICommand components specialize the behavior of - renderindependent properties inherited from the parent class as - follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Command”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Button”. - - - - - - - __NUMBER__ - - UIData specializes the behavior of render-independent properties - inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Data”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Table”. - - - - - - - __NUMBER__ - - A DataModel wrapper instance must automatically be provided by - the JSF implementation if the current value is of one of the - following types: - - - - - __NUMBER__.1 - - java.util.List - - - - - __NUMBER__.2 - - Array of java.util.Object - - - - - __NUMBER__.3 - - java.sql.ResultSet (which therefore also supports - javax.sql.RowSet) - - - - - __NUMBER__.4 - - javax.servlet.jsp.jstl.sql.Result - - - - - __NUMBER__.5 - - Any other Java object is wrapped by a DataModel instance - with a single row - - - - - - - __NUMBER__ - - UIData specializes the behavior of the processDecodes(), - processValidators(), and processUpdates() methods inherited from - its parent as follows: - - - - - __NUMBER__.1 - - For each of these methods, the UIData implementation - must iterate over each row in the underlying data model, - starting with the row identified by the first property, - for the number of rows indicated by the rows property, - by calling the setRowIndex() method. - - - - - __NUMBER__.2 - - When iteration is complete, set the rowIndex property of - this component, and of the underlying DataModel, to - zero, and remove any request attribute exposed via the - var property. - - - - - - - __NUMBER__ - - The encodeEnd() method of the renderer for UIForm must call - ViewHandler.writeState() before writing out the markup for the - closing tag of the form. - - - - - __NUMBER__ - - UIForm specializes the behavior of render-independent properties - inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Form”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Form”. - - - - - - - __NUMBER__ - - The setSubmitted() method of each UIForm instance in the view - must be called during the Apply Request Values phase of the - request processing lifecycle, during the processing performed by - the UIComponent.decode() method. If this UIForm instance - represents the form actually being submitted on this request, - the parameter must be set to true; otherwise, it must be set to - false. - - - - - __NUMBER__ - - The value of a UIForm's submitted property must not be saved as - part of its state. - - - - - __NUMBER__ - - The saveState() method of UIForm must call setSubmitted(false) - before calling super.saveState(). - - - - - __NUMBER__ - - Override the parent method to ensure that children of this - UIForm instance in the view have the form’s clientId prepended - to their clientIds if and only if the form’s prependId property - is true. - - - - - __NUMBER__ - - UIGraphic specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Graphic”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Image”. - - - - - - - __NUMBER__ - - UIInput specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Input”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - - - - - __NUMBER__.3 - - The Converter specified by the converter property (if - any) must also be used to perform String->Object - conversions during decoding. - - - - - __NUMBER__.4 - - If the value property has an associated ValueExpression, - the setValue() method of that ValueExpression will be - called during the Update Model Values phase of the - request processing lifecycle to push the local value of - the component back to the corresponding model bean - property. - - - - - - - __NUMBER__ - - UIMessage specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Message”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Message”. - - - - - - - __NUMBER__ - - UIOutput specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Output”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Text”. - - - - - - - __NUMBER__ - - UIPanel specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Panel”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - - - __NUMBER__ - - UIParameter specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.Parameter”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - - - __NUMBER__ - - UISelectBoolean specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.SelectBoolean”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Checkbox”. - - - - - - - __NUMBER__ - - UISelectItem specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.SelectItem”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - __NUMBER__.3 - - If the value property is non-null, it must contain a - SelectItem instance used to configure the selection item - specified by this component. - - - - - __NUMBER__.4 - - If the value property is a value expression, it must - point at a SelectItem instance used to configure the - selection item specified by this component. - - - - - __NUMBER__.5 - - If the value property is null, and there is no - corresponding value expression, the itemDescription, - itemDisabled, itemLabel and itemValue properties must be - used to construct a new SelectItem representing the - selection item specified by this component. - - - - - - - __NUMBER__ - - UISelectItems specializes the behavior of renderindependent - properties inherited - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.SelectItems”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - __NUMBER__.2 - - If the value property (or the value returned by a value - expression associated with the value property) is - non-null, it must contain a SelectItem bean, an array of - SelectItem beans, a Collection of SelectItem beans, or a - Map, where each map entry is used to construct a - SelectItem bean with the key as the label property of - the bean, and the value as the value property of the - bean (which must be of the same basic type as the value - of the parent component’s value). - - - - - - - __NUMBER__ - - UISelectMany must provide a specialized validate() method which - ensures that any decoded values are valid options (from the - nested UISelectItem and UISelectItems children). - - - - - __NUMBER__ - - UISelectOne specializes the behavior of renderindependent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.SelectOne”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to “jakarta.faces.Menu”. - - - - - - - __NUMBER__ - - UISelectOne must provide a specialized validate() method which - ensures that any decoded value is a valid option (from the - nested UISelectItem and UISelectItems children). - - - - - __NUMBER__ - - UIViewRoot specializes the behavior of render-independent - properties inherited from the parent component as follows: - - - - - __NUMBER__.1 - - The default value of the family property must be set to - “jakarta.faces.ViewRoot”. - - - - - __NUMBER__.2 - - The default value of the rendererType property must be - set to null. - - - - - - - __NUMBER__ - - The JSF implementation must provide concrete implementations of - DataModel (in the jakarta.faces.model package) for the following - data wrapping scenarios: - - - - - __NUMBER__.1 - - ArrayDataModel -- Wrap an array of Java objects. - - - - - __NUMBER__.2 - - ListDataModel -- Wrap a java.util.List of Java objects. - - - - - __NUMBER__.3 - - ResultDataModel -- Wrap an object of type - javax.servlet.jsp.jstl.sql.Result (the query results - from JSTL’s SQL tag library) - - - - - __NUMBER__.4 - - ResultSetDataModel -- Wrap an object of type - java.sql.ResultSet (which therefore means that - javax.sql.RowSet instances are also supported). - - - - - __NUMBER__.5 - - ScalarDataModel -- Wrap a single Java object in what - appears to be a one-row data set. - - - - - diff --git a/internal/docs/jsf/jsf_ch5.xml b/internal/docs/jsf/jsf_ch5.xml deleted file mode 100644 index 29f55e4c95..0000000000 --- a/internal/docs/jsf/jsf_ch5.xml +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - __NUMBER__ - - It is an error to specify a managed bean class that does not - exist, or that cannot be instantiated with a public, zero-args - constructor. - - - - - __NUMBER__ - - It is an error to specify a <property-name> element for a - property that does not exist, or does not have a public setter - method, on the specified managed bean class. - - - - - __NUMBER__ - - It is an error to specify a value element that cannot be - converted to the type required by a managed property, or that, - when evaluated, results in a value that cannot be converted to - the type required by a managed property. - - - - - __NUMBER__ - - If the type of the property referenced by the - <managed-property> element is a Java enum, the contents of - the <value> element must be a String that yields a valid - return from java.lang.Enum.valueOf(PROPERTY_CLASS, VALUE) where - PROPERTY_CLASS is the java.lang.Class for the property and VALUE - is the contents of <value> element in the application - configuration resource. If any exception is thrown from - Enum.valueOf() it is an error. - - - - - __NUMBER__ - - It is an error for a managed bean created through The Managed - Bean Creation Facility to have a property that points at an - object stored in a scope with a (potentially) shorter life span. - Specifically, this means, for an object created with the - specified <managed-bean-scope>, then <value> - evaluations can only point at created objects with the specified - managed bean scope: - - ■ none -- none - ■ application -- none, application - ■ session -- none, application, session - ■ request -- none, application, session, request - - - - - __NUMBER__ - - Data accessed via an implicit object is also defined to be in a - scope. The following implicit objects are considered to be in - request scope: - - ■ cookie - ■ facesContext - ■ header - ■ headerValues - ■ param - ■ paramValues - ■ request - ■ requestScope - ■ view - - - - - __NUMBER__ - - The only implicit objects in session scope are session and - sessionScope. - - - - - __NUMBER__ - - The following implicit objects are considered to be in - application scope: - - ■ application - ■ applicationScope - ■ initParam - - - - - __NUMBER__ - - It is an error to configure cyclic references between managed - beans. - - - - - __NUMBER__ - - Managed bean names must conform to the syntax of a Java language - identifier. - - - - - __NUMBER__ - - <null-value/> -- An empty element indicating that this property - must be explicitly initialized to null. This element is not allowed if - the underlying property is of a Java primitive type. - - - - - __NUMBER__ - - Each <managed-property> element contains the following elements - used to configure the execution of the corresponding property setter - call: - - - - - __NUMBER__.1 - - <property-name> -- The property name of the property to be - configured. - - - - - __NUMBER__.2 - - <map-entries> -- A set of key/value pairs used to - initialize the contents of a property of type java.util.Map. - - - - - __NUMBER__.3 - - <null-value/> -- An empty element indicating that this - property must be explicitly initialized to null. This element is - not allowed if the underlying property is of a Java primitive - type. - - - - - __NUMBER__.4 - - <value> -- A String value that will have any leading and - trailing spaces stripped, and then be converted prior to - setting it to this value. - - - - - __NUMBER__ - - <list-entries> -- A set of values used to initialize the - contents of a property of type array or java.util.List. - - - - - - - __NUMBER__ - - The initialization of bean properties from <map-entries> elements - must adhere to the following algorithm: - - - - - __NUMBER__.1 - - Call the property getter. If the getter returns null or doesn't - exist, create a java.util.HashMap, otherwise - use the returned java.util.Map. - - - - - __NUMBER__.2 - - Add all entries defined by nested <map-entry> elements in - the order they are listed, converting key values defined by - nested <key> elements to the type defined by <keyclass> - and entry values defined by nested <value> elements to the - type defined by <value-class>. - - - - - __NUMBER__.3 - - If a value is given as a value expression, evaluate the - reference and store the result, converting to <value-class> - if necessary. If <key-class> and/or <value-class> - are not defined, use java.lang.String. Add null for each - <null-value> element. - - - - - __NUMBER__.4 - - If a new java.util.Map was created, set the property by calling - the setter method, or log an error if there is no setter method. - - - - - - - __NUMBER__ - - The initialization of bean properties from <list-entries> elements - must adhere to the following algorithm: - - - - - __NUMBER__.1 - - Call the property getter, If the getter returns null or doesn't - exist, create a java.util.ArrayList, otherwise use the returned - Object (an array or a java.util.List). - - - - - __NUMBER__.2 - - add all elements defined by nested <value> elements in the - order they are listed, converting values defined by nested - <value> elements to the type defined by <value-class>. - - - - - __NUMBER__.3 - - If a value is given as a value expression, evaluate the - reference and store the result, converting to <valueclass> - if necessary. If a <value-class> is not defined, use the - value as-is (i.e., as a java.lang.String). Add null for each - <null-value> element. - - - - - __NUMBER__.4 - - If an array was returned, create a java.util.ArrayList and copy - all elements from the returned array to the new List, wrapping - elements of a primitive type. - - - - - __NUMBER__.5 - - If a new java.util.List was created, and the property is of type - List, set the property by calling the setter method, or log an - error if there is no setter method. - - - - - __NUMBER__.6 - - If a new java.util.List was created, and the property is a java - array, convert the List into an array of the property type, and - set it by calling the setter method, or log an error if there is - no setter method. - - - - - __NUMBER__.7 - - If a new java.util.List was created, convert the List - to an array of the proper type for the property and set the - property by calling the setter method, or log an error if there - is no setter method. - - - - - - - __NUMBER__ - - Here is a summary of the valid injection annotations one may use - in a managed bean. - - @Resource - @Resources - @EJB - @EJBs - @WebServiceRef - @WebServiceRefs - @PersistenceContext - @PersistenceContexts - @PersistenceUnit - @PersistenceUnits - - - - - __NUMBER__ - - JSF implementations running in a Java EE 5 compliant container must - support attaching the @PostConstruct and @PreDestroy annotations to aid - in awareness of the managedbean lifecycle. - - - - - __NUMBER__.1 - - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PostConstruct, must be called - by the JSF implementation after resource injection is performed - (if any) but before the bean is placed into scope. - - - - - __NUMBER__.2 - - If the method throws an unchecked exception, the JSF - implementation must not put the managed-bean into service and - further methods on that managed bean instance must not be - called. - - - - - __NUMBER__.3 - - Methods on managed beans declared to be in request, session, or - application scope, annotated with @PreDestroy, must be called by - the JSF implementation before the bean is removed from its scope - or before the scope itself is destroyed, whichever comes first. - This annotation must be supported in all cases where the above - @PostConstruct annotation is supported. - - - - - __NUMBER__.4 - - If the method throws an unchecked exception, the JSF - implementation may log it, but the exception must not otherwise - alter the execution. - - - - - diff --git a/internal/docs/jsf/jsf_ch6.xml b/internal/docs/jsf/jsf_ch6.xml deleted file mode 100644 index 101c42c2f2..0000000000 --- a/internal/docs/jsf/jsf_ch6.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - __NUMBER__ - - The JSF implementation must ensure that the Application instance - for the current web application is available via this method, as - a convenient alternative to lookup via an ApplicationFactory. - - - - - __NUMBER__ - - Upon creation of the ELContext instance, the implementation must - take the following action: - - - - - __NUMBER__.1 - - Call the ELContext.putContext(java.lang.Class, - java.lang.Object) method on the instance, passing in - FacesContext.class and the this reference for the - FacesContext instance itself. - - - - - __NUMBER__.2 - - If the Collection returned by - jakarta.faces.Application.getELContextListeners() is - non-empty, create an instance of ELContextEvent and pass - it to each ELContextListener instance in the Collection - by calling the ELContextListener.contextCreated - (jakarta.el.ELContextEvent) method. - - - - - - - __NUMBER__ - - The ExternalContext abstract class must be implemented along - with the FacesContext class, and must be accessible via the - getExternalContext method in FacesContext. - - - - - __NUMBER__ - - The dispatch() must use a RequestDispatcher provided by the - application context object to incorporate content from a - specified context-relative resource. The redirect() method must - cause an HTTP Redirect to be sent to the client. - - - - - __NUMBER__ - - The getClientIdsWithMessages() method must return an Iterator - over the client identifiers for which at least one Message has - been queued. This method must be implemented so the clientIds - are returned in the order of calls to addMessage(). - - - - - __NUMBER__ - - In some circumstances, it is possible that both renderResponse() - and responseComplete() might have been called for the request. - In this case, the JSF implementation must respect the - responseComplete() call (if it was made) before checking to see - if renderResponse() was called. - - - - - __NUMBER__ - - The getCurrentInstance() method may be called by any Java class - in the current web application to retrieve an instance of the - FacesContext for this request. The JSF implementation must - ensure that this value is set correctly before - FacesContextFactory returns a FacesContext instance, - and that the value is maintained in a thread-safe manner. - - - - - __NUMBER__ - - A single instance of jakarta.faces.context.FacesContextFactory - must be made available to each JSF-based web application - running in a servlet or portlet container. - - - diff --git a/internal/docs/jsf/jsf_ch7.xml b/internal/docs/jsf/jsf_ch7.xml deleted file mode 100644 index b14efcdaa0..0000000000 --- a/internal/docs/jsf/jsf_ch7.xml +++ /dev/null @@ -1,791 +0,0 @@ - - - - - - - __NUMBER__ - - The JSF implementation must provide a default implementation - ActionListener that performs the following functions: - - - - - __NUMBER__.1 - - The processAction() method must call - FacesContext.renderResponse() in order to bypass any - intervening lifecycle phases, once the method returns. - - - - - __NUMBER__.2 - - The processAction() method must next determine the - logical outcome of this event, as follows: - - - - - __NUMBER__.2.1 - - If the originating component has a non-null - action property, retrieve the MethodBinding and - call invoke() to perform the application- - specified processing in this action method. If - the method returns non-null, call toString() on - the result and use the value returned as the - logical outcome. - - - - - __NUMBER__.2.2 - - The default logical outcome is null. - - - - - - - - - __NUMBER__ - - If a call is made to setViewHandler() after the first time the - Render Response phase has executed, the call must be ignored by - the implementation. - - - - - __NUMBER__ - - The default implementation simply returns the ExpressionFactory - from the JSP container by calling JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext) - .getExpressionFactory(). - - - - - __NUMBER__ - - The "public UIComponent createComponent(ValueExpression - componentExpression, FacesContext context, - String componentType);" method has the following behavior: - - - - - __NUMBER__.1 - - Call the getValue() method on the specified - ValueExpression, in the context of the specified - FacesContext. If this results in a non-null UIComponent - instance, return it as the value of this method. - - - - - __NUMBER__.2 - - If the getValue() call did not return a component - instance, create a new component instance of the - specified component type, pass the new component to the - setValue() method of the specified ValueExpression, and - return it. - - - - - - - __NUMBER__ - - The default NavigationHandler implementation must behave as if - it were performing the following algorithm (although optimized - implementation techniques may be utilized): - - - - - __NUMBER__.1 - - If the logical outcome value passed to the - handleNavigation() method is null, do not scan for - matching rules. This is an indication that the current - view should be redisplayed. - - - - - __NUMBER__.2 - - Find a <navigation-rule> element for which the - view identifier (of the view in the FacesContext - instance for the current request) matches the - <from-view-id> matching pattern of the - <navigation-rule>. Rule instances are considered - in the following order: - - - - - __NUMBER__.2.1 - - An exact match of the view identifier against a - <from-view-id> pattern that does not end with an - asterisk (“*”) character. - - - - - __NUMBER__.2.2 - - For <from-view-id> patterns that end with an - asterisk, an exact match on characters preceding the - asterisk against the prefix of the view id. If the - patterns for multiple navigation rules match, pick the - longest matching prefix first. - - - - - __NUMBER__.2.3 - - If there is a <navigation-rule> with a - <from-view-id> pattern of only an asterisk3, it - matches any view identifier. - - - - - - - __NUMBER__.3 - - From the <avigation-case> elements nested within the - matching <navigationrule> element, locate a matching - navigation case by matching the <from-action> and - <from-outcome> values against the corresponding parameter - values passed in to the handleNavigation() method. Navigation - cases are checked in the following order: - - - - - __NUMBER__.3.1 - - Cases specifying both a <from-action> value and a - <from-outcome> value are matched against the - action expression and outcome parameters passed to the - handleNavigation() method (both parameters must be not - null, and both must be equal to the corresponding - condition values, in order to match). - - - - - __NUMBER__.3.2 - - Cases that specify only a <from-outcome> value are - matched against the outcome parameter passed to the - handleNavigation() method (which must be not null, - and equal to the corresponding condition value, to - match). - - - - - __NUMBER__.3.3 - - Cases that specify only a <from-action> value are - matched against the action expression parameter passed - to the handleNavigation() method (which must be not - null, and equal to the corresponding condition value, to - match). - - - - - - - __NUMBER__.4 - - If a matching <navigation-case> element was located, and - the <redirect/> element was not specified in this - <navigation-case> (or the application is running in a - Portlet environment, where redirects are not possible), use the - <to-view-id> element of the matching case to request a new - UIViewRoot instance from the ViewHandler instance for this - application, and pass it to the setViewRoot() method of the - FacesContext instance for the current request. Then, exit the - algorithm. - - - - - __NUMBER__.5 - - If a matching <navigation-case> element was located, the - <redirect/> element was specified in this - <navigation-case>, and the application is not running in a - Portlet environment, use the <to-view-id> element of the - matching case to construct a context-relative path that - corresponds to that view id, cause the current response to - perform an HTTP redirect to this path, and call - responseComplete() on the FacesContext instance for the current - request. - - - - - __NUMBER__.6 - - If no matching <navigation-case> element was located, - return to Step 1 and find the next matching - <navigation-rule> element (if any). If there are no more - matching rule elements, return without changing the current - view. - - - - - - - __NUMBER__ - - The calculateCharacterEncoding() method must fulfill the following - responsibilities: - - - - - __NUMBER__.1 - - Examine the Content-Type request header. If it has a charset - parameter extract it and return it. - - - - - __NUMBER__.2 - - If not, test for the existence of a session by calling - getSession(false) on the ExternalContext for this FacesContext. - If the session is non-null, look in the Map returned by the - getSessionMap() method of the ExternalContext for a value under - the key given by the value of the symbolic constant - jakarta.faces.application.ViewHandler.CHARACTER_ENCODING_KEY. If a - value is found, convert it to a String and return it. - - - - - - - __NUMBER__ - - The calculateLocale() method must fulfill the following - responsibilities: - - - - - __NUMBER__.1 - - Attempt to match one of the locales returned by the getLocales() - method of the ExternalContext instance for this request, against - the supported locales for this application as defined in the - application configuration resources. Matching is performed by - the algorithm described in Section JSTL.8.3.2 of the JSTL - Specification. If a match is found, return the corresponding - Locale object. - - - - - __NUMBER__.2 - - Otherwise, if the application has specified a default locale in - the application configuration resources, return the - corresponding Locale object. - - - - - __NUMBER__.3 - - Otherwise, return the value returned by calling - Locale.getDefault(). - - - - - - - __NUMBER__ - - The calculateRenderKitId() method must fulfill the following - responsibilities: - - - - - __NUMBER__.1 - - Return the value of the request parameter named by the symbolic - constant ResponseStateManager.RENDER_KIT_ID_PARAM if it is not - null. - - - - - __NUMBER__.2 - - Otherwise, return the value returned by - Application.getDefaultRenderKitId() if it is not null. - - - - - __NUMBER__.3 - - Otherwise, return the value specified by the symbolic constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - - - __NUMBER__ - - The createView() method must fulfill the following responsibilities: - - - - - __NUMBER__.1 - - Calculate the viewId that corresponds to this request, as - follows: - - - - - __NUMBER__.1.1 - - If prefix mapping (such as “/faces/*”) is used for - FacesServlet, the viewId is set from the extra path - information of the request URI. - - - - - __NUMBER__.1.2 - - If suffix mapping (such as “*.faces”) is used for - FacesServlet, the viewId is set from the servlet path - information of the request URI, after replacing the - suffix with the value of the context initialization - parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_PARAM_NAME (if no such - context initialization parameter is present, use the - value of the symbolic constant - ViewHandler.DEFAULT_SUFFIX as the replacement suffix). - - - - - - - __NUMBER__.2 - - If no viewId could be identified, or the viewId is exactly equal - to the servlet mapping, call the redirect() method of the - ExternalContext instance for this request, passing the context - path of this web application. - - - - - __NUMBER__.3 - - Create a new UIViewRoot object instance - - - - - __NUMBER__.3 - - Conditionally copy the renderKitId and locale from any current - view for the current request (as described in the Javadocs for - createView()). - - - - - __NUMBER__.3 - - Return the newly created UIViewRoot. - - - - - - - __NUMBER__ - - The getActionURL() method must fulfill the following responsibilities: - - - - - __NUMBER__.1 - - If the specified viewId does not start with a “/”, throw - IllegalArgumentException. - - - - - __NUMBER__.2 - - If prefix mapping (such as “/faces/*”) is used for FacesServlet, - prepend the context path of the current application, and the - specified prefix, to the specified viewId and return the - completed value. For example “/cardemo/faces/chooseLocale.jsp”. - - - - - __NUMBER__.3 - - If suffix mapping (such as “*.faces”) is used for FacesServlet, - and the specified viewId ends with the specified suffix, - replacing the suffix with the value specified by the context - initialization parameter named by the symbolic constant - ViewHandler.DEFAULT_SUFFIX_NAME (if no such context - initialization parameter is present, use the value of the - symbolic constant ViewHandler.DEFAULT_SUFFIX as the replacement - suffix), prefix this value with the context path for the current - web application, and return the result. For example - “/cardemo/chooseLocale.faces” - - - - - - - __NUMBER__ - - The getResourceURL() method must fulfill the following responsibilities: - - - - - __NUMBER__.1 - - If the specified path starts with a “/”, prefix it with the - context path for the current web application, and return the - result. - - - - - __NUMBER__.2 - - Otherwise, return the specified path value unchanged. - - - - - - - __NUMBER__ - - The initView() method must fulfill the following responsibilities: - Call calculateCharacterEncoding(). If the result is non-null pass the - result to the setRequestCharacterEncoding() method of the - ExternalContext for this FacesContext. - - - - - __NUMBER__ - - The renderView() method must fulfill the following responsibilities: - - - - - __NUMBER__.1 - - If the current request is a ServletRequest, call the set() - method of the javax.servlet.jsp.jstl.core.Config class, passing - the current ServletRequest, the symbolic constant - Config.FMT_LOCALE, and the locale property of the specfied - UIViewRoot. This configures JSTL with the application’s - preferred locale for rendering this response. - - - - - __NUMBER__.2 - - Update the JSTL locale attribute in request scope so that JSTL - picks up the new locale from the UIViewRoot. - - - - - __NUMBER__.3 - - Create a wrapper around the current response from the - ExternalContext and set it as the new response in the - ExternalContext. - - - - - __NUMBER__.4 - - Execute the JSP page to build the view by treating the viewId as - a context-relative path(starting with a slash character), by - passing it to the dispatch() method of the ExternalContext - associated with this request. - - - - - __NUMBER__.5 - - Restore the original response into the ExternalContext. - - - - - __NUMBER__.6 - - If the FacesContext has a non-null ResponseWriter create a new - writer using its cloneWithWriter() method, passing the - response’s Writer as the argument. - - - - - __NUMBER__.7 - - Set the new ResponseWriter into the FacesContext, saving the - old one aside. - - - - - __NUMBER__.8 - - Call saveView() on the StateManager for this application, saving - the result in a thread-safe manner for use in the writeState() - method of ViewHandler. - - - - - __NUMBER__.9 - - Call startDocument() on the ResponseWriter. - - - - - __NUMBER__.10 - - Call encodeAll() on the UIViewRoot. - - - - - __NUMBER__.11 - - Output any content in the wrapped response from above to the - response, removing the wrapped response from the thread-safe - storage. - - - - - __NUMBER__.12 - - Call endDocument() on the ResponseWriter. - - - - - __NUMBER__.13 - - If the old ResponseWriter was not null, place the old - ResponseWriter back into the FacesContext. - - - - - - - __NUMBER__ - - The restoreView() method must fulfill the following responsibilities: - - - - - __NUMBER__.1 - - Calculate the viewId that corresponds to this request using the - “The ViewId derivation algorithm”. - - - - - __NUMBER__.2 - - If no viewId could be identified, return null. - - - - - __NUMBER__.3 - - Call the restoreView() method of the associated StateManager, - passing the FacesContext instance for the current request and - the calculated viewId, and return the returned UIViewRoot, - which may be null - - - - - - - __NUMBER__ - - The writeState() method must Obtain the saved state stored in a - thread-safe manner during the invocation of renderView() and pass it to - the writeState() method of the StateManager for this application. - - - - - __NUMBER__ - - The "public Object saveView(FacesContext context)" method causes the - tree structure and component state of the view contained in the argument - FacesContext to be collected, stored, and returned in a java.lang.Object - instance that must implement java.io.Serializable. If null is returned - from this method, there is no state tosave. - - - - - __NUMBER__ - - The "public boolean isSavingStateInClient(FacesContext context)" method - will Return true if and only if the value of the ServletContext init - parameter named by the value of the constant - StateManager.STATE_SAVING_METHOD_PARAM_NAME is equal to the value of the - constant STATE_SAVING_METHOD_CLIENT. Return false otherwise. - - - diff --git a/internal/docs/jsf/jsf_ch8.xml b/internal/docs/jsf/jsf_ch8.xml deleted file mode 100644 index 64d573efff..0000000000 --- a/internal/docs/jsf/jsf_ch8.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - __NUMBER__ - - A JSF implementation must provide a default RenderKit instance - (named by the render kit identifier associated with the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT) that is utilized if no other - RenderKit is selected. - - - - - __NUMBER__ - - The RenderKit must support a value for the contentTypeList argument that - comes straight from the Accept HTTP header, and therefore requires - parsing according to the specification of the Accept header. - - - - - __NUMBER__ - - The "getState(FacesContext context)" implementation must inspect the - current request and return the component tree state Object passed to it - on a previous invocation of writeState(). - - - - - __NUMBER__ - - The ResponseStateManager.RENDER_KIT_ID_PARAM identifier must not be - written if: - - - - - __NUMBER__.1 - - it is the default render kit identifier as returned by - Application.getDefaultRenderKitId(). - - - - - __NUMBER__.2 - - the render kit identifier is the value of - RenderKitFactory.HTML_BASIC_RENDER_KIT and - Application.getDefaultRenderKitId() returns null. - - - - - - - __NUMBER__ - - A single instance of jakarta.faces.render.RenderKitFactory must be made - available to each JSFbased web application running in a servlet or - portlet container. - - - - - __NUMBER__ - - Every JSF implementation must provide a RenderKit instance for a default - render kit identifier that is designated by the String constant - RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - __NUMBER__ - - The returned Iterator from getRenderKitIds() must include the value - specified by RenderKitFactory.HTML_BASIC_RENDER_KIT. - - - - - __NUMBER__ - - As with the standard components in the jakarta.faces.component package, - each HTML component implementation class must define a static public - final String constant named COMPONENT_TYPE, whose value is “jakarta.faces.” - concatenated with the class name. - - - - - __NUMBER__ - - HTML components, must not define a COMPONENT_FAMILY constant, or - override the getFamily() method they inherit from their superclass. - - - diff --git a/internal/docs/jsf/jsf_ch9.xml b/internal/docs/jsf/jsf_ch9.xml deleted file mode 100644 index 78336e5724..0000000000 --- a/internal/docs/jsf/jsf_ch9.xml +++ /dev/null @@ -1,1411 +0,0 @@ - - - - - - - __NUMBER__ - - All JSF implementations must provide a tag library containing core - actions (described below) that are independent of a particular - RenderKit.The corresponding tag library descriptor must meet the - following requirements: - - - - - __NUMBER__.1 - - Must declare a tag library version (tlib-version) value of 1.2. - - - - - __NUMBER__.2 - - Must declare a URI (uri) value of http://java.sun.com/jsf/core. - - - - - __NUMBER__.3 - - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the JavaServer Pages Specification - (version 2.1). - - - - - - - __NUMBER__ - - If the f:actionListener tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ActionSource, or the specified listener class does not - implement jakarta.faces.event.ActionListener, throw a JspException. - - - - - __NUMBER__ - - If the f:convertDateTime tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException - - - - - __NUMBER__ - - The implementation class for f:convertDateTime must meet the following - requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ConverterTag. - - - - - __NUMBER__.2 - - createConverter() method must, if binding is non-null, - call getValue() on it to obtain a reference to the - Converter instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.DateTimeConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - - - - - __NUMBER__.3 - - If the createConverter()method has an exception thrown, rethrow - the exception as a JspException. - - - - - __NUMBER__.4 - - If dateStyle is specified but timeStyle is not specified, - default to date. - - - - - __NUMBER__.5 - - If dateStyle is not specified but timeStyle is specified, - default to time. - - - - - __NUMBER__.6 - - If both dateStyle and timeStyle are specified, default to both. - - - - - - - __NUMBER__ - - If the f:convertNumber tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement ValueHolder, throw a JspException. - - - - - __NUMBER__ - - The implementation class for the f:convertNumber action must meet the - following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ConverterTag. - - - - - __NUMBER__.2 - - The createConverter() method, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, it must then cast the returned - instance to jakarta.faces.convert.NumberConverter and configure - its properties based on the specified attributes for this custom - action, and return the configured instance. - - - - - __NUMBER__.3 - - If there was an exception thrown, rethrow the exception as a - JspException. - - - - - __NUMBER__.4 - - Call the createConverter() method of the Application - instance for this application, passing converter id - “jakarta.faces.Number”. If the binding attribute was also set, - store the converter instance by calling binding.setValue(). It - must then cast the returned instance to - jakarta.faces.convert.NumberConverter and configure its properties - based on the specified attributes for this custom action, and - return the configured instance. - - - - - - - __NUMBER__ - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ValueHolder, throw a JspException. - - - - - __NUMBER__ - - The implementation class for f:converter action must meet the following - requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ConverterJspTag. - - - - - __NUMBER__.2 - - The createConverter() method must, If binding is non-null, call - binding.getValue() to obtain a reference to the Converter - instance. If there is no exception thrown, and - binding.getValue() returned a non-null object that implements - jakarta.faces.convert.Converter, register it by calling - setConverter(). If there was an exception thrown, rethrow - the exception as a JspException. - - - - - __NUMBER__.3 - - Use the converterId attribute if the converter instance could - not be created from the binding attribute. If the converterId - attribute is set, call the createConverter() method of the - Application instance for this application, passing converter id - specified by their converterId attribute. If the binding - attribute was also set, store the converter instance by calling - binding.setValue(). Register the converter instance by calling - setConverter(). If there was an exception thrown, rethrow the - exception as a JspException. - - - - - - - __NUMBER__ - - f:facet tag must be nested inside a UIComponent custom action. - Exactly one UIComponent custom action must be nested inside this custom action - (although the nested component custom action could itself have nested children). - - - - - __NUMBER__ - - Exactly one UIComponent custom action must be nested inside this custom - action(although the nested component custom action could itself have - nested children). - - - - - __NUMBER__ - - The implementation class of the f:facet tag must be, or extend, - jakarta.faces.webapp.FacetTag. - - - - - __NUMBER__ - - f:loadBundle tag must be nested inside an f:view tag custom action. - - - - - __NUMBER__ - - f:param tag must be nested inside a UIComponent custom action. - - - - - __NUMBER__ - - The implementation class for f:param tag this action must meet the - following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - __NUMBER__.2 - - The getComponentType() method must return “Parameter”. - - - - - __NUMBER__.3 - - The getRendererType() method must return null. - - - - - - - __NUMBER__ - - f:phaseListener tag must be nested inside a UIViewRoot custom action. - - - - - __NUMBER__ - - The specified listener class for f:phaseListener must implement - jakarta.faces.event.PhaseListener. - - - - - __NUMBER__ - - type and/or binding must be specified for the phaseListener impl. - - - - - __NUMBER__ - - f:selectItem must be nested inside a UIComponent custom action - that creates a UISelectMany or UISelectOne component instance. - - - - - __NUMBER__ - - The implementation class for this action must meet the following - requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - __NUMBER__.2 - - The getComponentType() method must return “SelectItem”. - - - - - __NUMBER__.3 - - The getRendererType() method must return null. - - - - - - - __NUMBER__ - - Must be nested inside a UIComponent custom action that creates a - UISelectMany or UISelectOne component instance. - - - - - __NUMBER__ - - The implementation class for the f:selectItems action must meet - the following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.UIComponentELTag. - - - - - __NUMBER__.2 - - The getComponentType() method must return - “jakarta.faces.SelectItems”. - - - - - __NUMBER__.3 - - The getRendererType() method must return null. - - - - - - - __NUMBER__ - - f:setPropertyActionListener must be nested inside a UIComponent custom - action. - - - - - __NUMBER__ - - The corresponding UIComponent implementation class for - f:setPropertyActionListener must implement ActionSource, and therefore - define a public addActionListener() method that accepts an - ActionListener parameter. - - - - - __NUMBER__ - - The tag implementation must only create and register the ActionListener - instance the first time the component for this tag is created - - - - - __NUMBER__ - - When the listener executes, call getValue() on the "value" - ValueExpression. Pass the result to a call to setValue() on the "target" - ValueExpression - - - - - __NUMBER__ - - This tag creates no output to the page currently being created. It is - used solely for the side effect of ActionListener creation and addition. - - - - - __NUMBER__ - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - ActionSource, or the specified listener class does not implement - jakarta.faces.event.ActionListener, throw a JspException. - - - - - __NUMBER__ - - f:subview must be nested inside a f:view custom action although this - custom action might be in a page that is including the page containing - the f:subview custom action. - - - - - __NUMBER__ - - f:subview must not contain an f:view custom action. - - - - - __NUMBER__ - - f:subview must have an id attribute whose value is unique within the - scope of the parent naming container. - - - - - __NUMBER__ - - The implementation class for f:subview must extend - jakarta.faces.UIComponentELTag. - - - - - __NUMBER__ - - The implementation class's getComponentType() method must return - “NamingContainer”. - - - - - __NUMBER__ - - The implementation class's getRendererType() method must return null. - - - - - __NUMBER__ - - If the f:validateDoubleRange tag is not nested inside a UIComponent - custom action, or the UIComponent implementation class does not - correctly implement EditableValueHolder throw a JspException. - - - - - __NUMBER__ - - The implementation class for the f:validateDoubleRange action must meet - the following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - __NUMBER__.2 - - The createValidator() method must, If binding is non-null, - create a ValueBinding by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator.class as the expectedType - argument. - - - - - __NUMBER__.3 - - use the validatorId if the validator instance could not be - created from the binding attribute. - - - - - __NUMBER__.4 - - If there is an exception thrown, rethrow the exception as a - JspException. - - - - - - - __NUMBER__ - - If the f:validateLength tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException. - - - - - __NUMBER__ - - The implementation class for this action must meet the following - requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - __NUMBER__.2 - - If binding is non-null, create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - - - - - __NUMBER__ - - Use the validatorId if the validator instance could not be - created from the binding attribute. Call the createValidator() - method of the Application instance for this application, - - - - - __NUMBER__ - - If there was an exception thrown, rethrow the exception - as a JspException. - - - - - - - __NUMBER__ - - f:validateLongRange must be nested inside a EditableValueHolder custom - action whose value is (or is convertible to) a long. - - - - - __NUMBER__ - - f:validateLongRange must specify either the maximum attribute, the - minimum attribute, or both. - - - - - __NUMBER__ - - For f:validateLongRange if both limits are specified, the maximum limit - must be greater than the minimum limit. - - - - - __NUMBER__ - - If the f:validateLongRange tag is not nested inside a UIComponent custom - action, or the UIComponent implementation class does not correctly - implement EditableValueHolder, throw a JspException - - - - - __NUMBER__ - - The implementation class for the f:validateLongRange action must meet - the following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ValidatorTag. - - - - - __NUMBER__.2 - - The createValidator() method must, if binding is non-null, - create a ValueExpression by invoking - Application.createValueExpression() with binding as the - expression argument, and Validator. - - - - - __NUMBER__.3 - - The createValidator() method must, use the validatorId if the - validator instance could not be created from the binding - attribute. - - - - - __NUMBER__.4 - - If there is an exception thrown, rethrow the exception as a - JspException - - - - - - - __NUMBER__ - - f:validator tag must be nested inside a UIComponent custom action whose - component class implements EditableValueHolder. - - - - - __NUMBER__ - - validatorId and/or binding must be specified. - - - - - __NUMBER__ - - If the f:validator tag is not nested inside a UIComponent custom action, - or the UIComponent implementation class does not correctly implement - EditableValueHolder throw a JspException. - - - - - __NUMBER__ - - The implementation class for the f:validator action must meet the - following requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.webapp.ValidatorJspTag. - - - - - __NUMBER__.2 - - The createValidator() method must, if binding is non-null, - call binding.getValue() to obtain a reference to the - Validator instance. - - - - - __NUMBER__.3 - - The createValidator() method must, use the validatorId attribute - if the validator instance could not be created from the binding - attribute. - - - - - __NUMBER__.4 - - The createValidator() method must, If there was an exception - thrown, rethrow the exception as a JspException. - - - - - - - __NUMBER__ - - f:valueChangeListener must be nested inside a UIComponent custom action. - - - - - __NUMBER__ - - The corresponding UIComponent implementation class for - f:valueChangeListener must implement EditableValueHolder, and therefore - define a public addValueChangeListener() method that accepts an - ValueChangeListener parameter. - - - - - __NUMBER__ - - The specified listener class for f:valueChangeListener must implement - jakarta.faces.event.ValueChangeListener. - - - - - __NUMBER__ - - type and/or binding must be specified. - - - - - __NUMBER__ - - If this tag is not nested inside a UIComponent custom action, or the - UIComponent implementation class does not correctly implement - EditableValueHolder, or the specified listener class does not implement - jakarta.faces.event.ValueChangeListener, throw a JspException. - - - - - __NUMBER__ - - f:verbatim must be implemented as a UIComponentBodyTag. - - - - - __NUMBER__ - - The rendererType property for the f:verbatim tag's UIOutput component - must be set to “jakarta.faces.Text” - - - - - __NUMBER__ - - The f:verbatim tag's transient property must be set to true. - - - - - __NUMBER__ - - The value (or value binding, if it is an expression) of the escape - attribute must be passed on to the renderer as the value the escape - attribute on the UIOutput component. - - - - - __NUMBER__ - - Any JSP-created response using actions from the JSF Core Tag Library, - as well as actions extending jakarta.faces.webapp.UIComponentELTag from - other tag libraries, must be nested inside an occurrence of the - f:view action. - - - - - __NUMBER__ - - The implementation class for the f:view action must meet the following - requirements: - - - - - __NUMBER__.1 - - Must extend jakarta.faces.UIComponentBodyTag. - - - - - __NUMBER__.2 - - The getComponentType() method must return “ViewRoot”. - - - - - __NUMBER__.3 - - The getRendererType() method must return null. - - - - - - - __NUMBER__ - - The tag library descriptor for this tag library must meet the following - requirements: - - - - - __NUMBER__.1 - - Must declare a tag library version (tlib-version) value of - 1.2. - - - - - __NUMBER__.2 - - Must declare a URI tag value of - http://java.sun.com/jsf/html. - - - - - __NUMBER__.3 - - Must be included in the META-INF directory of a JAR file - containing the corresponding implementation classes, suitable - for inclusion with a web application, such that the tag library - descriptor will be located automatically by the algorithm - described in Section 7.3 of the JavaServer Pages Specification - (version 1.2). - - - - - - - __NUMBER__ - - The custom actions defined in this tag library must specify the - following return values for the getComponentType() and getRendererType() - methods, respectively: - - - - - __NUMBER__.1 - - Action column: - getComponentType()- returns jakarta.faces.Column - getRendererType()- returns (null)* - - - - - __NUMBER__.2 - - Action commandButton: - getComponentType()- returns jakarta.faces.HtmlCommandButton - getRendererType()- returns jakarta.faces.Button - - - - - __NUMBER__.3 - - Action commandLink: - getComponentType()- returns jakarta.faces.HtmlCommandLink - getRendererType()- returns jakarta.faces.Link - - - - - __NUMBER__.4 - - Action dataTable: - getComponentType()- returns jakarta.faces.HtmlDataTable - getRendererType()- returns jakarta.faces.Table - - - - - __NUMBER__.5 - - Action form: - getComponentType()- returns jakarta.faces.HtmlForm - getRendererType()- returns jakarta.faces.Form - - - - - __NUMBER__.6 - - Action graphicImage: - getComponentType()- returns jakarta.faces.HtmlGraphicImage - getRendererType()- returns jakarta.faces.Image - - - - - __NUMBER__.7 - - Action inputHidden: - getComponentType()- returns jakarta.faces.HtmlInputHidden - getRendererType()- returns jakarta.faces.Hidden - - - - - __NUMBER__.8 - - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - - - - - __NUMBER__.9 - - Action inputSecret: - getComponentType()- returns jakarta.faces.HtmlInputSecret - getRendererType()- returns jakarta.faces.Secret - - - - - __NUMBER__.10 - - Action inputText: - getComponentType()- returns jakarta.faces.HtmlInputText - getRendererType()- returns jakarta.faces.Text - - - - - __NUMBER__.11 - - Action inputTextarea: - getComponentType()- returns jakarta.faces.HtmlInputTextarea - getRendererType()- returns jakarta.faces.Textarea - - - - - __NUMBER__.12 - - Action message: - getComponentType()- returns jakarta.faces.HtmlMessage - getRendererType()- returns jakarta.faces.Message - - - - - __NUMBER__.13 - - Action messages: - getComponentType()- returns jakarta.faces.HtmlMessages - getRendererType()- returns jakarta.faces.Messages - - - - - __NUMBER__.14 - - Action outputFormat: - getComponentType()- returns jakarta.faces.HtmlOutputFormat - getRendererType()- returns jakarta.faces.Format - - - - - __NUMBER__.15 - - Action outputLabel: - getComponentType()- returns jakarta.faces.HtmlOutputLabel - getRendererType()- returns jakarta.faces.Label - - - - - __NUMBER__.16 - - Action outputLink: - getComponentType()- returns jakarta.faces.HtmlOutputLink - getRendererType()- returns jakarta.faces.Link - - - - - __NUMBER__.17 - - Action outputText: - getComponentType()- returns jakarta.faces.HtmlOutputText - getRendererType()- returns jakarta.faces.Text - - - - - __NUMBER__.18 - - Action panelGrid: - getComponentType()- returns jakarta.faces.HtmlPanelGrid - getRendererType()- returns jakarta.faces.Grid - - - - - __NUMBER__.19 - - Action panelGroup: - getComponentType()- returns jakarta.faces.HtmlPanelGroup - getRendererType()- returns jakarta.faces.Group - - - - - __NUMBER__.20 - - Action selectBooleanCheckbox: - getComponentType()- - returns jakarta.faces.HtmlSelectBooleanCheckbox - getRendererType()- returns jakarta.faces.Checkbox - - - - - __NUMBER__.21 - - Action selectManyListbox: - getComponentType()- returns jakarta.faces.HtmlSelectManyListbox - getRendererType()- returns jakarta.faces.Listbox - - - - - __NUMBER__.22 - - Action selectManyMenu: - getComponentType()- returns jakarta.faces.HtmlSelectManyMenu - getRendererType()- returns jakarta.faces.Menu - - - - - __NUMBER__.23 - - Action selectOneListbox: - getComponentType()- returns jakarta.faces.HtmlSelectOneListbox - getRendererType()- returns jakarta.faces.Listbox - - - - - __NUMBER__.24 - - Action selectOneMenu: - getComponentType()- returns jakarta.faces.HtmlSelectOneMenu - getRendererType()- returns jakarta.faces.Menu - - - - - __NUMBER__.25 - - Action selectOneRadio: - getComponentType()- returns jakarta.faces.HtmlSelectOneRadio - getRendererType()- returns jakarta.faces.Radio - - - - - - - __NUMBER__ - - The tag library descriptor for this tag library (and the corresponding - tag handler implementation classes) must meet the following - requirements: - - - - - __NUMBER__.1 - - The attributes for the tags, both in the TLD and in the - associated tag handlers, must conform exactly to the type, name, - and description given in the TLDDocs for the - html_basic tag library. - - - - - __NUMBER__.2 - - If the type of the attribute is jakarta.el.MethodExpression, the - TLD for the attribute must contain a <deferred-method> - with a nested <method-signature>, inside of which is the - method signature for that MethodExpression, as given in the - TLDDocs. The JavaBeans setter method in the tag handler for the - tag must be of type jakarta.el.MethodExpression. - - - - - __NUMBER__.3 - - Any attributes listed in the TLDDocs with a request-time value - of true must specify an <rtexprvalue> of true in the TLD. - - - - - __NUMBER__.4 - - The following action must be taken to handle the value of the - converter property. If isLiteralText() on the converter property - returns true, get the value of the property and treat it as a - converterId by passing it as the argument to the - createConverter() method of the Application instance for this - webapp, then pass the created Converter to the setConverter() - method of the component for this tag. If isLiteralText() on the - converter property returns false, call setValueExpression() on - the component, passing “converter” as the name of the - ValueExpression and the ValueExpression instance as the value. - - - - - __NUMBER__.5 - - For a non-null action attribute on custom actions related to - ActionSource2 components (commandButton, commandLink), the - setProperties() method of the tag handler implementation class - must pass the value of the action attribtue, which is a - MethodExpression, to the component’s setActionExpression() - method. - - - - - __NUMBER__.6 - - For other non-null attributes that correspond to - MethodExpression attributes on the underlying components - (actionListener, validator, valueChangeListener), the - setProperties() method of the tag handler implementation class - must store that instance as the value of the corresponding - component property. - - - - - __NUMBER__.7 - - For any non-null id, scope, or var attribute, the - setProperties() method of the tag handler implementation class - must simply set the value of the corresponding component - attribute. - - - - - __NUMBER__.8 - - For all other non-null attributes, the setProperties() of the - tag handler implementation class method must, if the - attribute.isLiteralText() returns true, set the corresponding - attribute on the underlying component (after performing any - necessary type conversion). Otherwise, call the - setValueExpression() method on the underlying component, - passing the attribute name and the ValueExpression‘ instance as - parameters. - - - - - diff --git a/release/tools/jsf.xml b/release/tools/jsf.xml deleted file mode 100644 index aab02f6dad..0000000000 --- a/release/tools/jsf.xml +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/build.xml b/src/com/sun/ts/tests/jsf/api/build.xml deleted file mode 100644 index a54d765005..0000000000 --- a/src/com/sun/ts/tests/jsf/api/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/TestServlet.java deleted file mode 100644 index a613f0288f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/TestServlet.java +++ /dev/null @@ -1,2689 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.application; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.ResourceBundle; - -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.behavior.TCKBehavior; -import com.sun.ts.tests.jsf.common.event.TCKSystemEvent; -import com.sun.ts.tests.jsf.common.listener.TCKActionListener; -import com.sun.ts.tests.jsf.common.listener.TCKELContextListener; -import com.sun.ts.tests.jsf.common.listener.TCKSystemEventListener; -import com.sun.ts.tests.jsf.common.navigation.TCKNavigationHandler; -import com.sun.ts.tests.jsf.common.resolver.TCKELResolver; -import com.sun.ts.tests.jsf.common.resourcehandler.TCKResourceHandler; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.statemanager.TCKStateManager; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; -import com.sun.ts.tests.jsf.common.viewhandler.TCKViewHandler; - -import jakarta.el.CompositeELResolver; -import jakarta.el.ELContext; -import jakarta.el.ELContextListener; -import jakarta.el.ELResolver; -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.application.Application; -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.application.ProjectStage; -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.ContextCallback; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.search.SearchExpressionContext; -import jakarta.faces.component.search.SearchExpressionHandler; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.BooleanConverter; -import jakarta.el.MethodExpression; -import jakarta.el.ELException; -import jakarta.el.ValueExpression; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListener; -import jakarta.faces.validator.BeanValidator; -import jakarta.faces.validator.LengthValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.GenericServlet; -import jakarta.servlet.Servlet; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; - -public class TestServlet extends HttpTCKServlet { - - private static final String RESOURCE_NAME = "compOne.xhtml"; - - /* - * private indicators that a test has previously passed. this is necessary if - * a test is run multiple times without reloading the application - */ - private boolean setGetLocaleTestPassed = false; - - private ServletContext servletContext; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // Test for Application.addComponent(String, String) - public void applicationAddComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - - // should now be able to create the TCKComponent component - UIOutput output = (UIOutput) application.createComponent("TCKComponent"); - - if (output == null) { - out.println(JSFTestUtil.FAIL + ": Unable to create component " - + "'TCKComponent' after adding a mapping to " - + "the Application instance."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.addComponent(String, String) throws NPE if either arg is null - public void applicationAddComponentNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "addComponent", - new Class[] { String.class, String.class }, - new Object[] { null, "jakarta.faces.component.UIOutput" }, out); - - JSFTestUtil.checkForNPE(application, "addComponent", - new Class[] { String.class, String.class }, - new Object[] { "TCKComponent2", null }, out); - - } - - // Application.createComponent(String) - public void applicationCreateComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - UIOutput output = (UIOutput) application.createComponent("TCKComponent"); - - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to create component 'TCKComponent'" - + "Using Application.createComponent(String)"); - return; - } - out.println(JSFTestUtil.PASS); - - } - - // Application.createComponent(FacesContext, String, 'null') - public void applicationCreateComponentFSSNullTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - try { - application.createComponent(context, "TCKComponent", null); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL - + ": Unable to create component 'TCKComponent'!" + JSFTestUtil.NL - + "Using Application.createComponent(FacesContext, " - + "String, 'null')"); - out.println(e.toString()); - } - - } - - // Application.createComponent(FacesContext, String, String) - public void applicationCreateComponentFSSTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - try { - application.createComponent(context, "TCKComponent", "TCKRenderer"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + ": Unable to create component " - + "'TCKComponent'" + JSFTestUtil.NL - + "Using Application.createComponent(FacesContext, " - + "String, String)"); - out.println(e.toString()); - } - - } - - public void applicationCreateComponentFRNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - Resource resource = handler.createResource(RESOURCE_NAME); - - // Application.createComponent(null, Resource) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { null, resource }, out); - - // Application.createComponent(FacesContext, null) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { getFacesContext(), null }, out); - - }// End applicationCreateComponentFRNPETest - - public void applicationCreateComponentFSSNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - - // createComponent(FacesContext, null, String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { context, null, null }, out); - - // createComponent(null, String, String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { null, "TCKComponent", null }, out); - - }// End applicationCreateComponentFSSNPETest - - public void applicationCreateComponentFETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext fc = getFacesContext(); - Application application = fc.getApplication(); - ELContext elContext = fc.getELContext(); - - TestBean bean = new TestBean(); - bean.setComponent(null); - request.setAttribute("TestBean", bean); - - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - application.addComponent("TCKBadComponent", - "jakarta.faces.component.base.UIOutputBase"); - - // createComponent(String) - JSFTestUtil.checkForFE(application, "createComponent", - new Class[] { String.class }, new Object[] { "TCKBadComponent" }, - pw); - - // createComponent(ValueExpression, FacesContext, String) - JSFTestUtil.checkForFE( - application, "createComponent", new Class[] { ValueExpression.class, - FacesContext.class, String.class }, - new Object[] { expr, fc, "TCKBadComponent" }, pw); - - } - - public void applicationCreateComponentResNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // createComponent(FacesContext, null) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { getFacesContext(), null }, out); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - Resource resource = handler.createResource(RESOURCE_NAME); - - // createComponent(null, Resource) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { null, resource }, out); - - }// End applicationCreateComponentResNPETest - - public void applicationCreateComponentNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - // createComponent(String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { String.class }, new Object[] { null }, out); - - }// End applicationCreateComponentNPETest - - // Application.createComponent(ValueBinding, FacesContext, String) - public void applicationCreateComponentBindingTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = getApplication(); - ELContext elcontext = context.getELContext(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - request.setAttribute("TestBean", new TestBean()); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - - ExpressionFactory ef = application.getExpressionFactory(); - ValueExpression binding = ef.createValueExpression(elcontext, - "#{TestBean.component}", UIComponent.class); - - // ensures failure if the value binding lookup fails - UIInput input = (UIInput) application.createComponent(binding, context, - "TCKComponent"); - - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding," - + " FacesContext, String) returned null when using a " - + "valid valueBinding."); - return; - } - - /* - * next validate that if the ValueBinding doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) application.createComponent(binding, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding," - + " FacesContext, String) returned null when falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueBinding evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding," - + " FacesContext, String) didn't call setValue() " - + "on the ValueBinding passed when creating a new " - + "fallback component in the case the ValueBinding " - + "returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received a " + "null value."); - return; - } else { - out.println(JSFTestUtil.PASS); - } - - } - - // Application.getComponentTypes(); - public void applicationGetComponentTypesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - application.addComponent("TCKBadComponent", - "jakarta.faces.component.base.UIOutputBase"); - - Iterator i = application.getComponentTypes(); - - if (i == null) { - out.println(JSFTestUtil.FAIL - + ": Application.getComponentTypes() returned null."); - return; - } - - // check the iterator for the entries we've added for testing - if (JSFTestUtil.checkIterator(i, - new String[] { "TCKComponent", "TCKBadComponent" }, false, true)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL - + ": Unable to find either both or one of the following " - + "component entires:'TCKComponent', 'TCKBadComponent' in " - + "the Iterator returned by Application.getComponentEntries." - + JSFTestUtil.NL + "Entries returned: " - + JSFTestUtil.getAsString(application.getComponentTypes())); - } - } - - // Application.addConverter(String, String) - // Application.createConverter(String) - public void applicationAddCreateConverterByStringTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addConverter("TCKConverter", - "jakarta.faces.convert.BooleanConverter"); - BooleanConverter converter; - try { - converter = (BooleanConverter) application - .createConverter("TCKConverter"); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Exception thrown when creating converter."); - e.printStackTrace(); - return; - } - - if (converter == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createConverter(String) returned null for" - + " valid converter added via " - + "Application.addConverter(String, String)."); - return; - } - out.println(JSFTestUtil.PASS); - - } - - // Application.addConverter(null, String) - // Application.addConverter(String, null) - public void applicationAddCreateConverterByStringNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - pw.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.addConverter(null, String) - JSFTestUtil.checkForNPE(application, "addConverter", - new Class[] { String.class, String.class }, - new Object[] { null, "jakarta.faces.convert.BooleanConverter" }, pw); - - // Application.addConverter(String, null) - JSFTestUtil.checkForNPE(application, "addConverter", - new Class[] { String.class, String.class }, - new Object[] { "TCKConverter", null }, pw); - - } - - // Application.addConverter (Class, String) - // Application.createConverter(Class) - public void applicationAddCreateConverterByClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // doens't make much sense, but we're only testing the mapping and - // creation - // not if the value can be converted - - application.addConverter(Servlet.class, - "jakarta.faces.convert.BooleanConverter"); - - // first find see if the implementation reruns the BooleanConverter for - // this class - BooleanConverter converter; - try { - converter = (BooleanConverter) application - .createConverter(this.getClass()); - if (converter == null) { - out.println(JSFTestUtil.FAIL - + ": Application.createConverter(Class) returned null when attempting to find" - + " a converter via an Interface[1]."); - return; - } - - application.addConverter(GenericServlet.class, - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) application - .createConverter(this.getClass()); - if (converter == null) { - out.println(JSFTestUtil.FAIL - + ": Application.createConverter(Class) returned null when attempting to find" - + " the converter via a super class[1]."); - return; - } - - application.addConverter(HttpServlet.class, - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) application - .createConverter(this.getClass()); - if (converter == null) { - out.println(JSFTestUtil.FAIL - + ": Application.createConverter(Class) returned null when attempting to find" - + " the converter via a super class[2]."); - return; - } - - application.addConverter(this.getClass(), - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) application - .createConverter(this.getClass()); - - if (converter == null) { - out.println(JSFTestUtil.FAIL - + ": Application.createConverter(Class) returned null when " - + " class passed was the same that was used for the addConverter(Class, String) call."); - return; - } - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Exception thrown when creating converter."); - e.printStackTrace(); - } - } - - public void applicationAddCreateConverterByClassNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - pw.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.addConverter(null, String) - JSFTestUtil.checkForNPE(application, "addConverter", - new Class[] { Class.class, String.class }, - new Object[] { null, "jakarta.faces.convert.BooleanConverter" }, pw); - - // Application.addConverter(Class, null) - JSFTestUtil.checkForNPE(application, "addConverter", - new Class[] { Class.class, String.class }, - new Object[] { Servlet.class, null }, pw); - } - - // Application.createConverter(String) throws NPE for null argument - public void applicationCreateConverterByStringNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "createConverter", - new Class[] { String.class }, new Object[] { null }, out); - - }// End applicationCreateConverterByStringNPETest - - // Application.createConverter(Class) throws NPE for null argument - public void applicationCreateConverterByClassNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "createConverter", - new Class[] { Class.class }, new Object[] { (Class) null }, out); - - }// End applicationCreateConverterByClassNPETest - - public void applicationCreateConverterFETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - pw.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addConverter(Boolean.class, - "jakarta.faces.convert.Converter.class"); - - // createConverter(Class) - JSFTestUtil.checkForFE(application, "createConverter", - new Class[] { Class.class }, new Object[] { Boolean.class }, pw); - - application.addConverter("boogus", "jakarta.faces.convert.Converter.class"); - - // createConverter(String) - JSFTestUtil.checkForFE(application, "createConverter", - new Class[] { String.class }, new Object[] { "boogus" }, pw); - - } - - // Application.getConverterIds() - public void applicationGetConverterIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addConverter("TCKConverter", - "jakarta.faces.conver.BooleanConverter"); - - Iterator i = application.getConverterIds(); - if (i == null) { - out.println( - JSFTestUtil.FAIL + ": Application.getConverterIds() returned null."); - return; - } - - if (JSFTestUtil.checkIterator(i, new String[] { "TCKConverter" }, false, - true)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL - + ": Unable to find converter id 'TCKConverter' in returned" - + " Iterator."); - } - } - - // Application.getConverterTypes() - public void applicationGetConverterTypesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addConverter(this.getClass(), - "jakarta.faces.convert.BooleanConverter"); - - Iterator> i = application.getConverterTypes(); - if (i == null) { - out.println( - JSFTestUtil.FAIL + ": Application.getConverterIds() returned null."); - return; - } - - boolean found = false; - while (i.hasNext()) { - if (i.next().equals(this.getClass())) { - found = true; - break; - } - } - - if (found) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + ": Unable to find converter class '" - + this.getClass().getName() + "' in" + " returned Iterator."); - } - } - - // Application.addValidator(String, String) - // Application.createValidator(String) - public void applicationAddCreateValidatorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addValidator("TCKValidator", - "jakarta.faces.validator.LengthValidator"); - try { - Validator validator = application.createValidator("TCKValidator"); - - if (validator == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createValidator(String) returned null " - + "when provided a valid id."); - return; - } - - if (validator instanceof LengthValidator) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Validator returned was not instance of " - + "LengthValidator. Validator type received: " - + validator.getClass().getName()); - } - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Unexpected exception creating validator."); - e.printStackTrace(); - } - } - - // Application.addValidator(String, String) throws NPE if any args are null - public void applicationAddValidatorNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "addValidator", - new Class[] { String.class, String.class }, - new Object[] { null, "jakarta.faces.validator.LengthValidator" }, out); - - JSFTestUtil.checkForNPE(application, "addValidator", - new Class[] { String.class, String.class }, - new Object[] { "NullValidator", null }, out); - - } // End applicationAddValidatorNPETest - - // Application.createValidator(String) throws NullPointerException - public void applicationCreateValidatorNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "createValidator", - new Class[] { String.class }, new Object[] { null }, out); - - } - - // Application.createValidator(String) throws FacesException - public void applicationCreateValidatorFETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application application = getApplication(); - - JSFTestUtil.checkForFE(application, "createValidator", - new Class[] { String.class }, new Object[] { "boogus" }, pw); - - } - - // Application.getValidatorIds() - public void applicationGetValidatorIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addValidator("TCKValidator", - "jakarta.faces.validator.LengthValidator"); - - Iterator i = application.getValidatorIds(); - if (i == null) { - out.println( - JSFTestUtil.FAIL + ": Application.getValidatorIds() returned null."); - return; - } - - if (JSFTestUtil.checkIterator(i, new String[] { "TCKValidator" }, false, - true)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL - + ": Unable to find validator id 'TCKValidator' in the " - + "Iterator returned by Application.getValidatorIds()."); - } - } - - // Application.getDefaultValidatorInfo() - public void applicationGetDefaultValidatorInfoTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - if (application.getDefaultValidatorInfo() == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain Default validator info."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.getActionListener() - public void applicationGetActionListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ActionListener defaultListener = application.getActionListener(); - if (defaultListener == null) { - out.println(JSFTestUtil.FAIL - + ": Application.getActionListener() returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.setActionListener(ActionListener) - public void applicationSetActionListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ActionListener origListener = application.getActionListener(); - ActionListener tckActionListener = new TCKActionListener(); - - try { - application.setActionListener(tckActionListener); - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Unexpected exception setting ActionListener."); - e.printStackTrace(); - return; - } - - ActionListener listener = application.getActionListener(); - if (listener == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getActionListener() returned null after " - + "calling Application.setActionListener(ActionListener)."); - return; - } - - if (!listener.equals(tckActionListener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "TCKActionListener not returned by " - + "Application.getActionListener() as" + "expected." + JSFTestUtil.NL - + "ActionListener type: " + listener.getClass().getName()); - return; - } - - out.println(JSFTestUtil.PASS); - // restore original listener - application.setActionListener(origListener); - } - - // Application.setActionListener(ActionListener) throws NPE if arg is null - public void applicationSetActionListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setActionListener", - new Class[] { ActionListener.class }, new Object[] { null }, out); - } - - // Application.getNavigationHandler(); - // Application.setNavigationHandler(ViewHandler); - public void applicationGetSetNavigationHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - NavigationHandler handler = application.getNavigationHandler(); - if (handler == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() returned null."); - return; - } - - NavigationHandler tckNavigationHandler = new TCKNavigationHandler(); - application.setNavigationHandler(tckNavigationHandler); - - NavigationHandler newNavigationHandler = application.getNavigationHandler(); - - if (newNavigationHandler == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() returned null " - + "after calling" - + " Application.setNavigationHandler(NavigationHandler)."); - return; - } - - if (!newNavigationHandler.equals(tckNavigationHandler)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() didn't return the " - + "expected NavigationHandler."); - } - - out.println(JSFTestUtil.PASS); - // restore original handler - application.setNavigationHandler(handler); - } - - public void applicationSetNavigationHandlerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.setNavigationHandler(null) - JSFTestUtil.checkForNPE(application, "setNavigationHandler", - new Class[] { NavigationHandler.class }, new Object[] { null }, out); - - } - - // Application.createValueBinding(String) - public void applicationCreateValueBindingTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - request.setAttribute("TestBean", new TestBean()); - ValueExpression binding; - try { - binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{TestBean.boolProp}", Object.class); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getValueBinding(String) threw an expected " - + "Exception."); - e.printStackTrace(); - return; - } - - if (binding == null) { - out.println(JSFTestUtil.FAIL - + ": Application.getValueBinding() returned null for a valid " - + "value reference expression."); - return; - - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.getViewHandler() - // Application.setViewHandler(ViewHandler) - public void applicationGetSetViewHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ViewHandler origHandler = application.getViewHandler(); - - if (origHandler == null) { - out.println( - JSFTestUtil.FAIL + ": Application.getViewHandler() returned null."); - return; - } - - ViewHandler tckHandler = new TCKViewHandler(); - application.setViewHandler(tckHandler); - ViewHandler resolver = application.getViewHandler(); - - if (resolver == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getViewHandler() returned null after " - + "calling Application.setViewHandler() with a new " - + "ViewHandler instance."); - - return; - } - - if (!resolver.equals(tckHandler)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getViewHandler didn't return the expected " - + "ViewHandler."); - - return; - } - - out.println(JSFTestUtil.PASS); - // restore the original handler - application.setViewHandler(origHandler); - } - - public void applicationGetSetMessageBundleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - String bundleName; - String myBundle; - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - bundleName = "com.sun.ts.tests.jsf.common.resourcebundle." - + "SimpleResourceBundle"; - - try { - application.setMessageBundle(bundleName); - myBundle = application.getMessageBundle(); - - if (!myBundle.equals(bundleName)) { - out.println("Test FAILED Unexpected Result for " - + "get/setMessageBundle()." + JSFTestUtil.NL + "Expected: " - + bundleName + JSFTestUtil.NL + "Received: " + myBundle); - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + ": Unexpected Exception Thrown!"); - e.printStackTrace(); - } - - } - - public void applicationGetSetDefaultRenderKitIDTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - try { - application.setDefaultRenderKitId("TCKRenderKit"); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL - + ": Unexpected Exception Thrown when trying to set default " - + "RenderKit ID!" + JSFTestUtil.NL - + "application.setDefaultRenderKitId('TCKRenderKit')"); - e.printStackTrace(); - } - - try { - String result = application.getDefaultRenderKitId(); - - if (!"TCKRenderKit".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected RenderKit ID returned from " - + "application.getDefaultRenderKitId()." + JSFTestUtil.NL - + "Expected: TCKRenderKit" + JSFTestUtil.NL + "Received: " - + result); - return; - } - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + ": Unexpected Exception Thrown!"); - e.printStackTrace(); - } - - } - - public void applicationSetMessageBundleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setMessageBundle", - new Class[] { String.class }, new Object[] { null }, out); - - } - - public void applicationGetResourceBundleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = context.getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - try { - String expectedName = "com.sun.ts.tests.jsf.common." - + "resourcebundle.SimpleResourceBundle_en"; - - getFacesContext().getViewRoot().setLocale(Locale.ENGLISH); - - ResourceBundle rb = application.getResourceBundle(context, "simpleRB"); - - String resultName = rb.getClass().getName(); - - if (resultName.equals(expectedName)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Result for getResourceBundle()." + JSFTestUtil.NL - + "Expected: " + expectedName + JSFTestUtil.NL + "Received: " - + resultName); - } - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + ": Unexpected Exception Thrown!"); - e.printStackTrace(); - } - } - - public void applicationGetResourceBundleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = context.getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // FacesContext is null. - JSFTestUtil.checkForNPE(application, "getResourceBundle", - new Class[] { FacesContext.class, String.class }, - new Object[] { null, "simpleRB" }, out); - - // ResourceBundle is null - JSFTestUtil.checkForNPE(application, "getResourceBundle", - new Class[] { FacesContext.class, String.class }, - new Object[] { context, null }, out); - - }// End applicationGetResourceBundleNPETest - - // Application.setViewHandler(ViewHandler) throws NPE if arg is null - public void applicationSetViewHandlerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setViewHandler", - new Class[] { ViewHandler.class }, new Object[] { null }, out); - - }// End applicationSetViewHandlerNPETest - - // Test for: Application.setStateManager() throws NullPointerException - public void applicationStateManagerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setStateManager", - new Class[] { StateManager.class }, new Object[] { null }, out); - - } // End applicationStateManagerNPETest - - public void applicationSetGetDefaultLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - if (!setGetLocaleTestPassed) { - Application application = getApplication(); - - if (application.getDefaultLocale() != null) { - out.println( - JSFTestUtil.FAIL + ": Expected Application.getDefaultLocale() " - + "to return null if the default locale has not been explicitly" - + " set by a call to Application.setDefaultLocale(Locale)."); - return; - } - - application.setDefaultLocale(Locale.US); - - if (!Locale.US.equals(application.getDefaultLocale())) { - out.println( - JSFTestUtil.FAIL + ": Expected Application.getDefaultLocale()" - + "to return Locale.US as set via call to Application." - + "setDefaultLocale()."); - out.println("Localed received: " + application.getDefaultLocale()); - return; - } - - setGetLocaleTestPassed = true; - } - - if (setGetLocaleTestPassed) { - out.println(JSFTestUtil.PASS); - } - - } - - public void applicationSetSupportedLocalesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setSupportedLocales", - new Class[] { Collection.class }, new Object[] { null }, out); - - } - - public void applicationSetDefaultLocaleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setDefaultLocale", - new Class[] { Locale.class }, new Object[] { null }, out); - - } - - public void applicationSetGetSupportedLocalesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - Collection collection = new ArrayList(); - collection.add(Locale.ENGLISH); - collection.add(Locale.FRENCH); - collection.add(Locale.GERMAN); - - application.setSupportedLocales(collection); - - Locale[] locales = { Locale.ENGLISH, Locale.FRENCH, Locale.GERMAN }; - List retLocales = new ArrayList(); - for (Iterator i = application.getSupportedLocales(); i.hasNext();) { - retLocales.add(i.next()); - } - - Locale[] returnedLocales = (Locale[]) retLocales - .toArray(new Locale[retLocales.size()]); - - if (!Arrays.equals(locales, returnedLocales)) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected result returned from " - + "Application.getSupportedLocales()." + JSFTestUtil.NL - + "Expected: " + JSFTestUtil.getAsString(locales) + JSFTestUtil.NL - + "Received: " + JSFTestUtil.getAsString(returnedLocales)); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ----------------------------------------------------- Tests Added for 1.2 - // Application.getELContextListenersTest() - public void applicationGetELContextListenersTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - if (application.getELContextListeners() == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ElContext Listeners."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationGetELResolverTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - ELResolver resolver = application.getELResolver(); - - if (resolver == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getELResolver() returned" + " null."); - return; - } - - if (!(resolver instanceof CompositeELResolver)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getELResolver() returned " - + "an ELResolver instance, but it wasn't an instance " - + "of CompositeELResolver."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationGetExpressionFactoryTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ExpressionFactory controlFactory = JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext).getExpressionFactory(); - - if (controlFactory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ExpressionFactory " - + "from JspApplicationContext."); - return; - } - - ExpressionFactory exprFactory = application.getExpressionFactory(); - - if (exprFactory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ExpressionFactory instance."); - return; - } - - // Left in for debugging. - // - // ExpressionFactory controlFactoryTwo = - // JspFactory.getDefaultFactory(). - // getJspApplicationContext(servletContext).getExpressionFactory(); - // - // ExpressionFactory exprFactoryTwo = - // application.getExpressionFactory(); - // out.println("*** First Call application.getExpressionFactory() " + - // "Returns ***: " + exprFactory.toString()); - // out.println("*** Second Call application.getExpressionFactory() " + - // "Returns ***: " + exprFactoryTwo.toString()); - // out.println("*** First Call - JspFactory.getDefaultFactory()." + - // "getJspApplicationContext(servletContext)." + - // "getExpressionFactory() Returns ***: " + - // controlFactory.toString()); - // out.println("*** Second Call - JspFactory.getDefaultFactory()." + - // "getJspApplicationContext(servletContext)." + - // "getExpressionFactory() Returns ***: " + - // controlFactoryTwo.toString()); - - if (!controlFactory.equals(exprFactory)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected Application.getExpressionFactory to return " - + "the same instance as that returned by " - + "JspApplicationContext.getExpressionFactory!" + JSFTestUtil.NL - + "Found: " + controlFactory.toString() + JSFTestUtil.NL - + "Expected: " + exprFactory.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - public void applicationEvaluationExpressionGetTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - String testName = "applicationEvaluationExpressionGetTest"; - - String value = (String) application.evaluateExpressionGet(getFacesContext(), - "#{param.testname}", java.lang.String.class); - - if (!testName.equals(value)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected evaluation using Application." - + "evaluateExpressionGet()." + JSFTestUtil.NL + "Expected: " - + testName + JSFTestUtil.NL + "Received: " + value); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.createComponent(ValueExpression, FacesContext, String) - public void applicationCreateComponentExpressionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - request.setAttribute("TestBean", new TestBean()); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression instance from " + "Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) application.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * Next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) application.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String, String) returned " - + "null when falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received " + "a null value."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.createComponent(ValueExpression, FacesContext, String, - // String) - public void applicationCreateComponentExpressionFSSTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - request.setAttribute("TestBean", new TestBean()); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression " + "instance from Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) application.createComponent(expr, - getFacesContext(), "TCKComponent", "TCKRenderer"); - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * Next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) application.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String, 'null) returned " - + "null when falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received " + "a null value."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.createComponent(ValueExpression, FacesContext, String, - // 'null') - public void applicationCreateComponentExpressionFSSNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - request.setAttribute("TestBean", new TestBean()); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression " + "instance from Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) application.createComponent(expr, - getFacesContext(), "TCKComponent", null); - if (input != null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) application.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + ": " - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when " - + "falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received " + "a null value."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.createComponent(ValueExpression, FacesContext, String) - // NPE is arg is null - public void applicationCreateComponentExpressionNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - TestBean bean = new TestBean(); - bean.setComponent(null); - request.setAttribute("TestBean", bean); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - // ValueBinding as null - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { ValueExpression.class, FacesContext.class, - String.class }, - new Object[] { null, getFacesContext(), "TCKComponent" }, out); - - // FacesContext as null - JSFTestUtil.checkForNPE( - application, "createComponent", new Class[] { ValueExpression.class, - FacesContext.class, String.class }, - new Object[] { expr, null, "TCKComponent" }, out); - - // String as null - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { ValueExpression.class, FacesContext.class, - String.class }, - new Object[] { expr, getFacesContext(), null }, out); - - } // End applicationCreateComponentExpressionNPETest - - // Application.createComponent(ValueExpression, FacesContext, String, - // String) - public void applicationCreateComponentExpressionFSSNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - TestBean bean = new TestBean(); - bean.setComponent(null); - request.setAttribute("TestBean", bean); - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - ELContext elContext = context.getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - // createComponent(null, FacesContext, String, String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { ValueExpression.class, FacesContext.class, - String.class, String.class }, - new Object[] { null, context, "TCKComponent", null }, out); - - // createComponent(ValueExpression, null, String, String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { ValueExpression.class, FacesContext.class, - String.class, String.class }, - new Object[] { expr, null, "TCKComponent", null }, out); - - // createComponent(ValueExpression, FacesContext, null, String) - JSFTestUtil.checkForNPE(application, "createComponent", - new Class[] { ValueExpression.class, FacesContext.class, - String.class, String.class }, - new Object[] { expr, context, null, null }, out); - - }// End applicationCreateComponentExpressionFSSNPETest - - public void applicationAddELResolverTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - try { - application.addELResolver(new TCKELResolver()); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + ": Unexpected Exception..."); - e.printStackTrace(); - } - - out.println(JSFTestUtil.PASS); - - } - - public void applicationAddGetRemoveELContextListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - int contextCount = application.getELContextListeners().length; - TCKELContextListener listener = new TCKELContextListener(); - application.addELContextListener(listener); - - if ((contextCount + 1) != application.getELContextListeners().length) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Called Application.addELContextListener()" - + "but the length of the array returned by " - + "Application.getELContextListeners() didn't " + "increase by one." - + JSFTestUtil.NL + "Expected length: " + (contextCount + 1) - + JSFTestUtil.NL + "Actual length: " - + application.getELContextListeners().length); - return; - } - - application.removeELContextListener(listener); - - List listeners = Arrays - .asList(application.getELContextListeners()); - - if (listeners.contains(listener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ELContextListener not removed as expected."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test for Application.getResourceHandler() - public void applicationGetResourceHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Set a specific ResourceHandler. - TCKResourceHandler myRH = new TCKResourceHandler(); - application.setResourceHandler(myRH); - - if (application.getResourceHandler() == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ResourceHandler " + "instance."); - return; - } - - if (!myRH.equals(application.getResourceHandler())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ResourceHandler was not able to be set!"); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test for Application.setStatemanager() - // Application.getStatemanager() - public void applicationGetSetStateManagerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Test to make sure we get a StateManger by default. - StateManager stateManager = null; - try { - stateManager = application.getStateManager(); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when calling " - + "Application.getStateManager" + JSFTestUtil.NL); - e.printStackTrace(); - } - - try { - StateManager tckstatemgr = new TCKStateManager(stateManager); - application.setStateManager(tckstatemgr); - String result = application.getStateManager().getClass().getSimpleName(); - - if (!"TCKStateManager".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned after setting StateManger" - + JSFTestUtil.NL + "Expected: TCKStateManager" + JSFTestUtil.NL - + "Received: " + result); - return; - } - - out.println("Test PASSED."); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when calling " - + "Application.getStateManager" + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.setResourceHandler() - public void applicationSetResourceHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - ResourceHandler rh = application.getResourceHandler(); - application.setResourceHandler(rh); - - if (!rh.equals(application.getResourceHandler())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ResourceHandler " + "instance."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Application.setResourceHandler() throws NullPointerException - public void applicationSetResourceHandlerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "setResourceHandler", - new Class[] { ResourceHandler.class }, new Object[] { null }, out); - - } - - // Test for Application.getProjectStage() "Default settings" - - public void applicationGetProjectStageTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - String stage = ProjectStage.Production.toString(); - - if (!("production".equalsIgnoreCase(stage))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: production" - + JSFTestUtil.NL + "Received" + stage); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Application.publishEvent throws NullPointerException - public void applicationPublishEventNPETest1(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext context = getFacesContext(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - - // Application.publishEvent(null, Class, Object) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Object.class, }, - new Object[] { null, se.getClass(), "object" }, out); - - // Application.publishEvent(FacesContext, null, Object) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Object.class, }, - new Object[] { context, null, "object" }, out); - - // Application.publishEvent(FacesContext, Class, null) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Object.class, }, - new Object[] { context, se.getClass(), null }, out); - - }// End applicationPublishEventNPETest1 - - // Test for Application.publishEvent throws NullPointerException - public void applicationPublishEventNPETest2(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext context = getFacesContext(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - - // Application.publishEvent(null, Class, Class, Object) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Class.class, - Object.class, }, - new Object[] { null, TCKSystemEvent.class, uic.getClass(), "object" }, - out); - - // Application.publishEvent(FacesContext, null, Class, Object) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Class.class, - Object.class, }, - new Object[] { context, null, uic.getClass(), "object" }, out); - - // Application.publishEvent(FacesContext, Class, Class, null) - JSFTestUtil.checkForNPE(application, "publishEvent", - new Class[] { FacesContext.class, Class.class, Class.class, - Object.class, }, - new Object[] { context, TCKSystemEvent.class, uic.getClass(), null }, - out); - - }// End applicationPublishEventNPETest2 - - // Test for Application.publishEvent - public void applicationPublishEventTest1(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.publishEvent(FacesContext, class, object) - try { - application.publishEvent(getFacesContext(), se.getClass(), uic); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } // End applicationPublishEventTest1 - - public void applicationPublishEventTest2(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.publishEvent(getFacesContext, class, class, source) - try { - application.publishEvent(getFacesContext(), se.getClass(), uic.getClass(), - uic); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } // End applicationPublishEventTest2 - - // Test for Application.subscribeToEvent - public void applicationSubscribeToEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.subscribeToEvent(se.getClass(), uic.getClass(), sel); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationSubscribeToEventTest - - // Test for Application.subscribeToEvent - public void applicationSubscribeToEventNullTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.subscribeToEvent(se.getClass(), null, sel); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationSubscribeToEventNullTest - - // Test for Application.subscribeToEvent - public void applicationSubscribeToEventNoSrcClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.subscribeToEvent(se.getClass(), sel); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationSubscribeToEventNoSrcClassTest - - // Test for Application.subscribeToEvent - public void applicationSubscribeToEventNoSrcClassNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - // Application.subscribeToEvent(null, SystemEventListener) - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { null, sel }, out); - - // Application.subscribeToEvent(Class, null) - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { se.getClass(), null }, out); - - } - - // Test for Application.subscribeToEvent - public void applicationSubscribeToEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEventListener sel = new TCKSystemEventListener(); - Class srcClass = uic.getClass(); - - out.append("Running==> application.subscribeToEvent(null, null, " - + "SystemEventListener)" + JSFTestUtil.NL); - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { null, null, sel }, out); - - out.append("Running==> application.subscribeToEvent(null, Class, " - + "SystemEventListener)" + JSFTestUtil.NL); - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { null, srcClass, sel }, out); - - out.append("Running==> application.subscribeToEvent(Class, " - + "SystemEventListener, null)" + JSFTestUtil.NL); - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { TCKSystemEvent.class, srcClass, null }, out); - - out.append("Running==> application.subscribeToEvent(Class, null, null)" - + JSFTestUtil.NL); - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { TCKSystemEvent.class, srcClass, null }, out); - - out.append("Running==> application.subscribeToEvent(null, null, null)" - + JSFTestUtil.NL); - JSFTestUtil.checkForNPE(application, "subscribeToEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { null, null, null }, out); - - out.close(); - } // End applicationSubscribeToEventNPETest - - // Test for Application.unsubscribeFromEvent - public void applicationUnsubscribeFromEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.unsubscribeFromEvent(se.getClass(), uic.getClass(), sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.unsubscribeFromEvent(systemEventClass, listener) - public void applicationUnsubscribeFromEventSLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.unsubscribeFromEvent(se.getClass(), sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.unsubscribeFromEvent - public void applicationUnsubscribeFromEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - // Application.unsubscribeFromEvent(null, Class, SystemEventListener) - JSFTestUtil.checkForNPE(application, "unsubscribeFromEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { null, uic.getClass(), sel }, out); - - // Application.unsubscribeFromEvent(Class, Class, null) - JSFTestUtil.checkForNPE(application, "unsubscribeFromEvent", - new Class[] { Class.class, Class.class, SystemEventListener.class }, - new Object[] { se.getClass(), uic.getClass(), null }, out); - - // Application.unsubscribeFromEvent(null, SystemEventListener) - JSFTestUtil.checkForNPE(application, "unsubscribeFromEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { null, sel }, out); - - // Application.unsubscribeFromEvent(Class, null) - JSFTestUtil.checkForNPE(application, "unsubscribeFromEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { se.getClass(), null }, out); - - } - - // Test for Application.unsubscribeFromEvent - public void applicationUnsubscribeFromEventNoSrcClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - UIComponent uic = application.createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - application.unsubscribeFromEvent(se.getClass(), sel); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.addBehavior & Application.getBehaviorIds - public void applicationAddBehaviorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - String mb = "myBehavior"; - - application.addBehavior(mb, (new TCKBehavior().getClass().getName())); - - Iterator i = application.getBehaviorIds(); - while (i.hasNext()) { - if (mb.equals(i.next())) { - out.println(JSFTestUtil.PASS); - return; - } - } - - out.println(JSFTestUtil.FAIL); - - }// End applicationAddBehaviorTest - - // Test for Application.addBehavior - public void applicationAddBehaviorNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - // Application.addBehaviorTest(null, String) - JSFTestUtil.checkForNPE(application, "addBehavior", - new Class[] { String.class, String.class }, - new Object[] { null, new TCKBehavior().getClass().getName() }, out); - - // Application.addBehaviorTest(String, null) - JSFTestUtil.checkForNPE(application, "addBehavior", - new Class[] { String.class, String.class }, - new Object[] { "myBehavior", null }, out); - - }// End applicationAddBehaviorNPETest - - // Test for Application.createBehavior - public void applicationCreateBehaviorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - String mb = "myBehavior"; - application.addBehavior(mb, (new TCKBehavior().getClass().getName())); - TCKBehavior firstBehavior = (TCKBehavior) application.createBehavior(mb); - - // Test to make sure we get back the default name. - if (!("default_name".equals(firstBehavior.getName()))) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned!" - + JSFTestUtil.NL + "Expected: default_name" + JSFTestUtil.NL - + "Received: " + firstBehavior.getName()); - return; - } - - firstBehavior.setName("changed_name"); - TCKBehavior secondBehavior = (TCKBehavior) application.createBehavior(mb); - - // Test to make sure we get back the default name again. - if (!("default_name".equals(secondBehavior.getName()))) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned." - + JSFTestUtil.NL + "Expected: default_name" + JSFTestUtil.NL - + "Received: " + secondBehavior.getName()); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End applicationCreateBehaviorTest - - // Test for Application.createBehavior - public void applicationCreateBehaviorNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - JSFTestUtil.checkForNPE(application, "createBehavior", - new Class[] { String.class }, new Object[] { null }, out); - - }// End applicationCreateBehaviorNPETest - - // Test for Application.createBehavior - public void applicationCreateBehaviorFETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - pw.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - application.addBehavior("bad", "com.sun.ts.tests.jsf.api." - + "jakarta_faces.application.application.BadBehavior"); - - JSFTestUtil.checkForFE(application, "createBehavior", - new Class[] { String.class }, new Object[] { "bad" }, pw); - - }// End applicationCreateBehaviorFETest - - // Test for Application.addDefaultValidatorId - public void applicationAddDefaultValidatorIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - String mv = "myValidator"; - - application.addValidator(mv, BeanValidator.class.getName()); - application.addDefaultValidatorId(mv); - - Map dvMap = application.getDefaultValidatorInfo(); - Iterator keys = dvMap.keySet().iterator(); - - while (keys.hasNext()) { - if (mv.equals(keys.next())) { - out.println(JSFTestUtil.PASS); - return; - } - } - - out.println(JSFTestUtil.FAIL); - - }// End applicationAddDefaultValidatorIdTest - - // Test for Application.getSearchExpressionHandler - public void applicationGetSearchExpressionHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - if (application.getSearchExpressionHandler() == null) { - out.println(JSFTestUtil.FAIL); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End applicationGetSearchExpressionHandlerTest - - // Test for Application.setSearchExpressionHandler - public void applicationSetSearchExpressionHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - SearchExpressionHandler oldHandler = application - .getSearchExpressionHandler(); - - SearchExpressionHandler handler = new SearchExpressionHandler() { - @Override - public String resolveClientId( - SearchExpressionContext searchExpressionContext, String expression) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public List resolveClientIds( - SearchExpressionContext searchExpressionContext, String expressions) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void resolveComponent( - SearchExpressionContext searchExpressionContext, String expression, - ContextCallback callback) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void resolveComponents( - SearchExpressionContext searchExpressionContext, String expressions, - ContextCallback callback) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void invokeOnComponent( - SearchExpressionContext searchExpressionContext, UIComponent previous, - String expression, ContextCallback callback) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public String[] splitExpressions(FacesContext context, - String expressions) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public boolean isPassthroughExpression( - SearchExpressionContext searchExpressionContext, String expression) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public boolean isValidExpression( - SearchExpressionContext searchExpressionContext, String expression) { - throw new UnsupportedOperationException("Not supported yet."); - } - }; - application.setSearchExpressionHandler(handler); - - if (application.getSearchExpressionHandler() != handler) { - out.println(JSFTestUtil.FAIL); - return; - } - - application.setSearchExpressionHandler(oldHandler); - - out.println(JSFTestUtil.PASS); - - }// End applicationSetSearchExpressionHandlerTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/URLClient.java deleted file mode 100644 index f04e7c2c2d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/URLClient.java +++ /dev/null @@ -1,1129 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.application; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_application_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Test Declarations */ - - /** - * @testName: applicationAddComponentTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:19 - * @test_Strategy: Validate components can be added to the Application and - * created. - */ - public void applicationAddComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddComponentTest"); - invoke(); - } - - /** - * @testName: applicationAddComponentNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:20 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationAddComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddComponentNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:34 - * @test_Strategy: Validate components that have been added to the Application - * can be created. - */ - public void applicationCreateComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentFRNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:51 - * @test_Strategy: Validate that a NullPointerException is thrown if any - * parameter is null. - * - * Signature tested: Application.createComponent(null, - * Resource) Application.createComponent(FacesContext, null) - * - * @since 2.0 - */ - public void applicationCreateComponentFRNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentFRNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentFSSTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:46 - * @test_Strategy: Validate components that have been added to the Application - * can be created. - * - * Signature tested: Application.createComponent(FacesContext, - * String, String) - * - * @since 2.0 - */ - public void applicationCreateComponentFSSTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentFSSTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentFSSNullTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:48 - * @test_Strategy: Validate components that have been added to the Application - * can be created. - * - * Signature tested: Application.createComponent(FacesContext, - * String, 'null') - * - * @since 2.0 - */ - public void applicationCreateComponentFSSNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentFSSTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentFSSNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:48 - * @test_Strategy: Validate components that a NullointerException is thrown - * when - ComponentType is null. - FacesContext is null. - * - * - * Signature tested: Application.createComponent(FacesContext, - * String, String) - * - * @since 2.0 - */ - public void applicationCreateComponentFSSNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentFSSNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentFETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:35; JSF:JAVADOC:38; - * JSF:JAVADOC:41; JSF:JAVADOC:47 - * @test_Strategy: Validate a FacesException is thrown if createComponent is - * unable to create the specified component. - */ - public void applicationCreateComponentFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentFETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:36 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationCreateComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentBindingTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:37 - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueBinding is provided that will - * resolve to a UIComponent. Additionally ensure that if the - * ValueBinding doesn't resolve to a UIComponent, then the - * String component ID will be used as a fallback to create - * the component. - */ - public void applicationCreateComponentBindingTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentBindingTest"); - invoke(); - } - - /** - * @testName: applicationGetDefaultValidatorInfoTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:77 - * @test_Strategy: Validate that call to getDefaultValidatorInfo returns a non - * null object. - */ - public void applicationGetDefaultValidatorInfoTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetDefaultValidatorInfoTest"); - invoke(); - } - - /** - * @testName: applicationAddCreateConverterByStringTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:21; JSF:JAVADOC:53 - * @test_Strategy: Validate converters can be added to the Application and - * then subsequently created. - */ - public void applicationAddCreateConverterByStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationAddCreateConverterByStringTest"); - invoke(); - } - - /** - * @testName: applicationAddCreateConverterByStringNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:22 - * @test_Strategy: Validate that the following signatures cause a - * NullPointerException to be thrown. - * - * Application.addConverter(null, String) - * Application.addConverter(String, null) - */ - public void applicationAddCreateConverterByStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationAddCreateConverterByStringNPETest"); - invoke(); - } - - /** - * @testName: applicationAddCreateConverterByClassTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:23; JSF:JAVADOC:56 - * @test_Strategy: Validate converters can be added by class to the - * Application and then subsequently created. Ensure that - * creation does inheritance checking. - */ - public void applicationAddCreateConverterByClassTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddCreateConverterByClassTest"); - invoke(); - } - - /** - * @testName: applicationAddCreateConverterByClassNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:24 - * @test_Strategy: Validate that the following signatures cause a - * NullPointerException to be thrown. - * - * Application.addConverter(Class, null) - * Application.addConverter(null, String) - */ - public void applicationAddCreateConverterByClassNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationAddCreateConverterByClassNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateConverterByStringNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:55 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationCreateConverterByStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationCreateConverterByStringNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateConverterByClassNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:58 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationCreateConverterByClassNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateConverterByClassNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateConverterFETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:54; JSF:JAVADOC:57 - * @test_Strategy: Validate an IllegalArgumentException is thrown by - * createConverter if the Class argument is an Interface. - */ - public void applicationCreateConverterFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateConverterFETest"); - invoke(); - } - - /** - * @testName: applicationGetConverterIdsTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:73 - * @test_Strategy: Validate the Iterator returned contains the expected - * values. - */ - public void applicationGetConverterIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetConverterIdsTest"); - invoke(); - } - - /** - * @testName: applicationGetConverterTypesTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:74 - * @test_Strategy: Validate the Iterator returned contains the expected - * values. - */ - public void applicationGetConverterTypesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetConverterTypesTest"); - invoke(); - } - - /** - * @testName: applicationAddCreateValidatorTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:28; JSF:JAVADOC:62 - * @test_Strategy: Validate we can add Validators to the Application and - * subsequently create the specified Validator. - */ - public void applicationAddCreateValidatorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddCreateValidatorTest"); - invoke(); - } - - /** - * @testName: applicationAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:29 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationAddValidatorNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddValidatorNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateValidatorNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:64 - * @test_Strategy: Validate a NullPointerException is thrown if any arguments - * are null. - */ - public void applicationCreateValidatorNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateValidatorNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateValidatorFETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:63 - * @test_Strategy: Validate a FacesException if a Validator of the specified - * id cannot be created. - */ - public void applicationCreateValidatorFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateValidatorFETest"); - invoke(); - } - - /** - * @testName: applicationGetValidatorIdsTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:91 - * @test_Strategy: Validate the expected validator IDs can be found in the - * returned Iterator. - */ - public void applicationGetValidatorIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetValidatorIdsTest"); - invoke(); - } - - /** - * @testName: applicationGetActionListenerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:70 - * @test_Strategy: Validate the default ActionListener is returned. - */ - public void applicationGetActionListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetActionListenerTest"); - invoke(); - } - - /** - * @testName: applicationSetActionListenerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:99 - * @test_Strategy: Validate an ActionListener can be set in the Application - * and that Application.getActionListener() returns the same - * ActionListener we set. - */ - public void applicationSetActionListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetActionListenerTest"); - invoke(); - } - - /** - * @testName: applicationSetActionListenerNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:100 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationSetActionListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetActionListenerNPETest"); - invoke(); - } - - /** - * @testName: applicationGetSetNavigationHandlerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:82; JSF:JAVADOC:106 - * @test_Strategy: Ensure a NavigationHandler is returned if not previously - * set. Ensure the same NavigationHandler that is provided to - * Application.setNavigationHandler(NavigationHandler) is - * returned by Application.getNavigationHandler(). - */ - public void applicationGetSetNavigationHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetSetNavigationHandlerTest"); - invoke(); - } - - /** - * @testName: applicationSetNavigationHandlerNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:107 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationSetNavigationHandlerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetNavigationHandlerNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateValueBindingTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:65 - * @test_Strategy: Validate a ValueBinding is returned when provided a valid - * value reference expression. - */ - public void applicationCreateValueBindingTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateValueBindingTest"); - invoke(); - } - - - /** - * @testName: applicationGetSetViewHandlerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:93; JSF:JAVADOC:122 - * @test_Strategy: Ensure a that the default implementation provide that - * performs the functions described in the StateManager - * description in the JavaServer Faces Specification. - */ - public void applicationGetSetViewHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetSetViewHandlerTest"); - invoke(); - } - - /** - * @testName: applicationGetSetStateManagerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:89; JSF:JAVADOC:114 - * @test_Strategy: Ensure that: - A default StateManager is provided that - * performs the functions described in the StateManager - * description in the JavaServer Faces Specification. - Set - * the StateManager instance that will be utilized during the - * Restore View and Render Response phases of the request - * processing lifecycle. - */ - public void applicationGetSetStateManagerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetSetStateManagerTest"); - invoke(); - } - - /** - * @testName: applicationGetSetMessageBundleTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:81; JSF:JAVADOC:104 - * @test_Strategy: Ensure that the MessageBundle that is returned from the - * Application.getMessageBundle() equals the MessageBundle - * previous call to Application,setMessageBundle(). - */ - public void applicationGetSetMessageBundleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetSetMessageBundleTest"); - invoke(); - } - - /** - * @testName: applicationSetMessageBundleNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:105 - * @test_Strategy: Ensure that a NullPointerException is thrown when null is - * passed in for bundle. - */ - public void applicationSetMessageBundleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetMessageBundleNPETest"); - invoke(); - } - - /** - * @testName: applicationGetSetDefaultRenderKitIDTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:76; JSF:JAVADOC:103 - * @test_Strategy: Ensure that we can set and receive back the correct - * DefaultRenderKit ID. - */ - public void applicationGetSetDefaultRenderKitIDTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetSetDefaultRenderKitIDTest"); - invoke(); - } - - /** - * @testName: applicationGetResourceBundleTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:85 - * @test_Strategy: Ensure that we are able to lookup the configured - * ResourceBundle. - */ - public void applicationGetResourceBundleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetResourceBundleTest"); - invoke(); - } - - /** - * @testName: applicationGetResourceBundleNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:87 - * @test_Strategy: Ensure we throw a NullPointerException if ctx == null || - * name == null. - */ - public void applicationGetResourceBundleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetResourceBundleNPETest"); - invoke(); - } - - /** - * @testName: applicationSetViewHandlerNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:124 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - */ - public void applicationSetViewHandlerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetViewHandlerNPETest"); - invoke(); - } - - /** - * @testName: applicationStateManagerNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:116 - * @test_Strategy: Ensure that: - A NullPointerException is thrown if manager - * is null. - */ - public void applicationStateManagerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationStateManagerNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentResNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:52 - * @test_Strategy: Ensure that: - A NullPointerException is thrown if - * FaceContext is null. - A NullPointerException is thrown if - * Resource is null. - */ - public void applicationCreateComponentResNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentResNPETest"); - invoke(); - } - - /** - * @testName: applicationSetGetSupportedLocalesTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:90; JSF:JAVADOC:117 - * @test_Strategy: Validate {get,set}SupportedLocales() - unsure the values - * set are properly returned. - */ - public void applicationSetGetSupportedLocalesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetGetSupportedLocalesTest"); - invoke(); - } - - /** - * @testName: applicationSetGetDefaultLocaleTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:75; JSF:JAVADOC:101 - * @test_Strategy: Validate Application.getDefaultLocale() returns null if - * Locale has not been explicitly set by - * Application.setDefaultLocale(). Then set the default Locale - * and call getDefaultLocale() to ensure the expected value is - * returned. - */ - public void applicationSetGetDefaultLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetGetDefaultLocaleTest"); - invoke(); - } - - /** - * @testName: applicationSetDefaultLocaleNPETest - * @assertion_ids: JSF:JAVADOC:102 - * @test_Strategy: Validate Application.setDefaultLocale() throws a - * NullPointerException if a null argument is provided. - */ - public void applicationSetDefaultLocaleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetDefaultLocaleNPETest"); - invoke(); - } - - /** - * @testName: applicationSetSupportedLocalesNPETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:118 - * @test_Strategy: Validate Application.setSupportedLocales() throws a - * NullPointerException if a null argument is provided. - */ - public void applicationSetSupportedLocalesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetSupportedLocalesNPETest"); - invoke(); - } - - /** - * @testName: applicationGetELContextListenersTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:78 - * @test_Strategy: Validate that we get a non null object returned. - * - * @since 1.2 - */ - public void applicationGetELContextListenersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetELContextListenersTest"); - invoke(); - } - - /** - * @testName: applicationGetELResolverTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:79 - * @test_Strategy: Validate a CompositeELResolver instanced is returned when - * calling Application.getELResolver(). - * @since 1.2 - */ - public void applicationGetELResolverTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetELResolverTest"); - invoke(); - } - - /** - * @testName: applicationGetExpressionFactoryTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:80 - * @test_Strategy: Validate Application.getExpressionFactory() returns an - * instance of ExpressionFactory. - * @since 1.2 - */ - public void applicationGetExpressionFactoryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetExpressionFactoryTest"); - invoke(); - } - - /** - * @testName: applicationEvaluationExpressionGetTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:68 - * @test_Strategy: Validate the convenience method, evaluationExpressionGet() - * returns the expected result of a ValueExpression - * evaluation. - * @since 1.2 - */ - public void applicationEvaluationExpressionGetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationEvaluationExpressionGetTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentExpressionTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:40 - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * @since 1.2 - */ - public void applicationCreateComponentExpressionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateComponentExpressionTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentExpressionFSSTest - * @assertion_ids: JSF:JAVADOC:44 - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * - * Signature used for test: - * createComponent(jakarta.el.ValueExpression - * componentExpression, FacesContext context, String - * componentType String renderer) - * - * @since 2.0 - */ - public void applicationCreateComponentExpressionFSSTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationCreateComponentExpressionFSSTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentExpressionFSSNullTest - * @assertion_ids: JSF:JAVADOC:43 - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * - * Signature used for test: - * createComponent(jakarta.el.ValueExpression - * componentExpression, FacesContext context, String - * componentType String renderer) <-- Must receive 'null' - * - * @since 2.0 - */ - public void applicationCreateComponentExpressionFSSNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationCreateComponentExpressionFSSTest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentExpressionNPETest - * @assertion_ids: JSF:JAVADOC:42 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - * @since 1.2 - */ - public void applicationCreateComponentExpressionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationCreateComponentExpressionNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateComponentExpressionFSSNPETest - * @assertion_ids: JSF:JAVADOC:45 - * @test_Strategy: Validate an NPE is thrown if any arguments are null. - * - * @since 2.0 - */ - public void applicationCreateComponentExpressionFSSNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationCreateComponentExpressionFSSNPETest"); - invoke(); - } - - /** - * @testName: applicationAddGetRemoveELContextListenerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:26;JSF:JAVADOC:98 - * @test_Strategy: Ensure Application.addELContextListener(), - * Application.getELContextListeners(), and - * Application.removeELContextListeners() behave as expected - * when adding and removing ELContextListener instances. - * @since 1.2 - */ - public void applicationAddGetRemoveELContextListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationAddGetRemoveELContextListenerTest"); - invoke(); - } - - /** - * @testName: applicationGetResourceHandlerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:88 - * @test_Strategy: Ensure Application.getResourceHandler() returns a default - * ResourceHandler. - * - * @since 2.0 - */ - public void applicationGetResourceHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetResourceHandlerTest"); - invoke(); - } - - /** - * @testName: applicationSetResourceHandlerTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:111 - * @test_Strategy: Ensure Application.setResourceHandler() can set a none - * default ResourceHandler. - * - * @since 2.0 - */ - public void applicationSetResourceHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetResourceHandlerTest"); - invoke(); - } - - /** - * @testName: applicationSetResourceHandlerNPETest - * @assertion_ids: JSF:JAVADOC:113 - * @test_Strategy: Ensure Application.setResourceHandler() throws a - * NullPointerException , if resourceHandler is null - * - * @since 2.0 - */ - public void applicationSetResourceHandlerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSetResourceHandlerNPETest"); - invoke(); - } - - /** - * @testName: applicationGetProjectStageTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:83 - * @test_Strategy: Ensure Application.getProjectStage can retrieve the current - * ProjectStage. - * - * @since 2.0 - */ - public void applicationGetProjectStageTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationGetProjectStageTest"); - invoke(); - } - - /** - * @testName: applicationPublishEventNPETest1 - * @assertion_ids: JSF:JAVADOC:95; - * @test_Strategy: Ensure Application.publishEvent throws a - * NullPointerException if either systemEventClass or source - * is null. - * - * Test cases: Application.publishEvent(FacesContext, class, - * null) Application.publishEvent(FacesContext, null, source) - * Application.publishEvent(FacesContext, null, null) - * Application.publishEvent(null, class, source) - * @since 2.0 - */ - public void applicationPublishEventNPETest1() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationPublishEventNPETest1"); - invoke(); - } - - /** - * @testName: applicationPublishEventTest1 - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:94 - * @test_Strategy: Ensure Application.publishEvent Does not throw any - * Exceptions when called correctly. - * - * Test cases: Application.publishEvent(FacesContext, class, - * source) - * @since 2.0 - */ - public void applicationPublishEventTest1() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationPublishEventTest1"); - invoke(); - } - - /** - * @testName: applicationPublishEventNPETest2 - * @assertion_ids: JSF:JAVADOC:97 - * @test_Strategy: Ensure Application.publishEvent throws a - * NullPointerException if either systemEventClass or source - * is null. - * - * Test cases: Application.publishEvent(FacesConext, class, - * ,null, null) Application.publishEvent(FacesContext, null, - * null, source) Application.publishEvent(FacesContext, null, - * class, null) Application.publishEvent(null, class, class, - * null) - * @since 2.0 - */ - public void applicationPublishEventNPETest2() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationPublishEventNPETest2"); - invoke(); - } - - /** - * @testName: applicationPublishEventTest2 - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:96 - * @test_Strategy: Ensure Application.publishEvent Does not throw any - * Exceptions when called correctly. - * - * Test cases: Application.publishEvent(FacesContext, class, - * class, source) - * @since 2.0 - */ - public void applicationPublishEventTest2() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationPublishEventTest2"); - invoke(); - } - - /** - * @testName: applicationSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:125 - * @test_Strategy: Ensure Application.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test cases: Application.subscribeToEvent(systemEventClass, - * sourceClass, listener) - * @since 2.0 - */ - public void applicationSubscribeToEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSubscribeToEventTest"); - invoke(); - } - - /** - * @testName: applicationSubscribeToEventNullTest - * @assertion_ids: JSF:JAVADOC:125 - * @test_Strategy: Ensure Application.subscribeToEvent Does not throw any - * Exceptions when called with null as sourceClass. - * - * Test cases: Application.subscribeToEvent(Class, null, - * SystemEventListener) - * @since 2.0 - */ - public void applicationSubscribeToEventNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSubscribeToEventNullTest"); - invoke(); - } - - /** - * @testName: applicationSubscribeToEventNoSrcClassTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:127 - * @test_Strategy: Ensure Application.subscribeToEvent Does not throw any - * Exceptions. - * - * Test cases: Application.subscribeToEvent(Class, - * SystemEventListener) - * @since 2.0 - */ - public void applicationSubscribeToEventNoSrcClassTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationSubscribeToEventNoSrcClassTest"); - invoke(); - } - - /** - * @testName: applicationSubscribeToEventNoSrcClassNPETest - * @assertion_ids: JSF:JAVADOC:128 - * @test_Strategy: Ensure Ensure Application.subscribeToEvent throws a - * NullPointerException in any of the below test cases. - * - * Test cases: Application.subscribeToEvent(null, null) - * Application.subscribeToEvent(null, SystemEventListener) - * Application.subscribeToEvent(Class, null) - * @since 2.0 - */ - public void applicationSubscribeToEventNoSrcClassNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationSubscribeToEventNoSrcClassNPETest"); - invoke(); - } - - /** - * @testName: applicationSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:126 - * @test_Strategy: Ensure Application.subscribeToEvent throws a - * NullPointerException in any of the below test cases. - * - * Test cases: Application.subscribeToEvent(null, null, - * SystemEventListener) Application.subscribeToEvent(null, - * null, null) Application.subscribeToEvent(null, Class, - * SystemEventListener) Application.subscribeToEvent(Class, - * null, null) Application.subscribeToEvent(Class, Class, - * null) - * @since 2.0 - */ - public void applicationSubscribeToEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationSubscribeToEventNPETest"); - invoke(); - } - - /** - * @testName: applicationUnsubscribeFromEventTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:129 - * @test_Strategy: Ensure Application.unSubscribeFromEvent Does not throw any - * Exceptions when called. - * - * Test cases: Application.unsubscribeFromEvent(Class, Class - * SystemEventListener) - * @since 2.0 - */ - public void applicationUnsubscribeFromEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationUnsubscribeFromEventTest"); - invoke(); - } - - /** - * @testName: applicationUnsubscribeFromEventSLTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:131 - * @test_Strategy: Ensure Application.unSubscribeFromEvent Does not throw any - * Exceptions when called. - * - * Test cases: Application.unsubscribeFromEvent(Class, - * SystemEventListener) - * @since 2.0 - */ - public void applicationUnsubscribeFromEventSLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationUnsubscribeFromEventSLTest"); - invoke(); - } - - /** - * @testName: applicationUnsubscribeFromEventNPETest - * @assertion_ids: JSF:JAVADOC:130; JSF:JAVADOC:132 - * @test_Strategy: Ensure Application.unsubscribeFromEvent throws a - * NullPointerException in any of the below test cases. - * - * Test cases: unsubscribeFromEvent(null, SystemEventListener) - * unsubscribeFromEvent(Class, null) - * - * unsubscribeFromEvent(null, Class, SystemEventListener) - * unsubscribeFromEvent(Class, Class, null) - * @since 2.0 - */ - public void applicationUnsubscribeFromEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationUnsubscribeFromEventNPETest"); - invoke(); - } - - /** - * @testName: applicationUnsubscribeFromEventNoSrcClassTest - * @assertion_ids: JSF:JAVADOC:132 - * @test_Strategy: Ensure Application.UnsubscribeToEvent throws a - * NullPointerException in any of the below test cases. - * - * Test cases: Application.unsubscribeToEvent(Class, - * SystemEventListener) - * @since 2.0 - */ - public void applicationUnsubscribeFromEventNoSrcClassTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationUnsubscribeFromEventNoSrcClassTest"); - invoke(); - } - - /** - * @testName: applicationAddBehaviorTest - * @assertion_ids: JSF:JAVADOC:17; JSF:JAVADOC:71 - * @test_Strategy: Ensure Application.AddBehavior does not throw an exception - * and the correct Behavior is returned when checked with - * Application.getBehaviorIds(); - * - * Test cases: Application.addBehavior(String, String) - * Application.getBehaviorIds() - * - * @since 2.0 - */ - public void applicationAddBehaviorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddBehaviorTest"); - invoke(); - } - - /** - * @testName: applicationAddBehaviorNPETest - * @assertion_ids: JSF:JAVADOC:18 - * @test_Strategy: Ensure Application.AddBehavior throws a - * NullPointerException in any of the below test cases. - * - * Test cases: Application.addBehavior(null, String) - * Application.addBehavior(String, null) - * - * @since 2.0 - */ - public void applicationAddBehaviorNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddBehaviorNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateBehaviorTest - * @assertion_ids: JSF:JAVADOC:31 - * @test_Strategy: Ensure Application.CreateBehavior does not throw an - * exception and the correct Behavior is returned when checked - * with Application.getBehaviorIds(); - * - * Test cases: Application.createBehavior(String) - * - * @since 2.0 - */ - public void applicationCreateBehaviorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateBehaviorTest"); - invoke(); - } - - /** - * @testName: applicationCreateBehaviorNPETest - * @assertion_ids: JSF:JAVADOC:33 - * @test_Strategy: Ensure Application.AddBehavior throws a - * NullPointerException in the below test case. - * - * Test cases: Application.createBehavior(null) - * - * @since 2.0 - */ - public void applicationCreateBehaviorNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateBehaviorNPETest"); - invoke(); - } - - /** - * @testName: applicationCreateBehaviorFETest - * @assertion_ids: JSF:JAVADOC:32 - * @test_Strategy: If the Behavior cannot be created throw a FacesException. - * - * @since 2.0 - */ - public void applicationCreateBehaviorFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationCreateBehaviorFETest"); - invoke(); - } - - /** - * @testName: applicationAddDefaultValidatorIdTest - * @assertion_ids: JSF:JAVADOC:25 - * @test_Strategy: Verify that when we set a default ValidatorId that we get - * the same Id back. - * - * @since 2.0 - */ - public void applicationAddDefaultValidatorIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddDefaultValidatorIdTest"); - invoke(); - } - - /** - * @testName: applicationAddELResolverTest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:27 - * @test_Strategy: Verify we can add an ELResolver to the application. - * - * @since 1.2 - */ - public void applicationAddELResolverTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationAddELResolverTest"); - invoke(); - } - - /** - * @testName: applicationGetSearchExpressionHandlerTest - * @assertion_ids: PENDING - * @test_Strategy: - * - * @since 2.3 - */ - public void applicationGetSearchExpressionHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationGetSearchExpressionHandlerTest"); - invoke(); - } - - /** - * @testName: applicationSetSearchExpressionHandlerTest - * @assertion_ids: PENDING - * @test_Strategy: - * - * @since 2.3 - */ - public void applicationSetSearchExpressionHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationSetSearchExpressionHandlerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/build.xml deleted file mode 100644 index c7ab915b7a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/build.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/faces-config.xml deleted file mode 100644 index c2294e8964..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/faces-config.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - A simple resource bundle - SimpleResourceBundle - - com.sun.ts.tests.jsf.common.resourcebundle.SimpleResourceBundle - - simpleRB - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.war.sun-web.xml deleted file mode 100644 index 1b30890c28..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_application_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.xml deleted file mode 100644 index 148742cdf1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/application/jsf_appl_application_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.application.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/TestServlet.java deleted file mode 100644 index 601153fa82..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/TestServlet.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationISE; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.resolver.TCKELResolver; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.statemanager.TCKStateManager; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; -import com.sun.ts.tests.jsf.common.viewhandler.TCKViewHandler; - -import jakarta.el.ELResolver; -import jakarta.faces.application.Application; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.ViewHandler; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - public void applicationAddELResolverISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Application application = getApplication(); - - JSFTestUtil.checkForISE(application, "addELResolver", - new Class[] { ELResolver.class }, - new Object[] { new TCKELResolver() }, out); - - } - - // Test for Application.setResourceHandler() throws IllegalStateException - public void applicationSetResourceHandlerISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Application application = getApplication(); - - JSFTestUtil.checkForISE(application, "setResourceHandler", - new Class[] { ResourceHandler.class }, - new Object[] { application.getResourceHandler() }, out); - - } - - // Test for Application.setStateManager() throws IllegalStateException - public void applicationSetStateManagerISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Application application = getApplication(); - - - JSFTestUtil.checkForISE(application, "setStateManager", - new Class[] { StateManager.class }, - new Object[] { new TCKStateManager(application.getStateManager()) }, out); - } - - // Test for Application.setViewHandler() throws IllegalStateException - public void applicationSetViewHandlerISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - JSFTestUtil.checkForISE(application, "setViewHandler", - new Class[] { ViewHandler.class }, - new Object[] { new TCKViewHandler() }, out); - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/URLClient.java deleted file mode 100644 index fc0d370e93..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/URLClient.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationISE; - -import java.io.PrintWriter; -import java.net.URL; - -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_applicationISE_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: applicationAddELResolverISETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:2514 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * addELResolver() is called after the application has been - * initialized. - * @since 1.2 - */ - public void applicationAddELResolverISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationAddELResolverISETest"); - invoke(); - } - - /** - * @testName: applicationSetResourceHandlerISETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:112 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setResourceHandler() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationSetResourceHandlerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationSetResourceHandlerISETest"); - invoke(); - } - - /** - * @testName: applicationSetStateManagerISETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:115 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setStatemanager() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationSetStateManagerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationSetStateManagerISETest"); - invoke(); - } - - /** - * @testName: applicationSetViewHandlerISETest - * @assertion_ids: JSF:JAVADOC:30; JSF:JAVADOC:123 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setViewHandler() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationSetViewHandlerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationSetViewHandlerISETest"); - invoke(); - } - - // ----------------------------- Private/Protected Methods - // ---------------------- - - protected HtmlPage getPage(WebClient client, String path) throws Fault { - - try { - return (HtmlPage) client.getPage(new URL(path)); - } catch (Exception e) { - throw new Fault(e); - } - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/build.xml deleted file mode 100644 index 92180913a0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/build.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.war.sun-web.xml deleted file mode 100644 index 85ab0249ef..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_applicationISE_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.xml deleted file mode 100644 index f260cf09d8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationISE/jsf_appl_application_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationISE.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/TestServlet.java deleted file mode 100644 index 8fae0f09be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/TestServlet.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationWrapperISE; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.resolver.TCKELResolver; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.statemanager.TCKStateManager; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; -import com.sun.ts.tests.jsf.common.viewhandler.TCKViewHandler; - -import jakarta.el.ELResolver; -import jakarta.faces.application.Application; -import jakarta.faces.application.ApplicationWrapper; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.ViewHandler; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - public void applicationWrapperAddELResolverISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = new TCKAppWrapper().getWrapped(); - - JSFTestUtil.checkForISE(application, "addELResolver", - new Class[] { ELResolver.class }, - new Object[] { new TCKELResolver() }, out); - - } - - // Test for ApplicationWrapper.setResourceHandler() throws - // IllegalStateException - public void applicationWrapperSetResourceHandlerISETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = new TCKAppWrapper().getWrapped(); - - JSFTestUtil.checkForISE(application, "setResourceHandler", - new Class[] { ResourceHandler.class }, - new Object[] { application.getResourceHandler() }, out); - } - - // Test for ApplicationWrapper.setStateManager() throws - // IllegalStateException - public void applicationWrapperSetStateManagerISETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = new TCKAppWrapper().getWrapped(); - - JSFTestUtil.checkForISE(application, "setStateManager", - new Class[] { StateManager.class }, - new Object[] { new TCKStateManager(application.getStateManager()) }, out); - } - - public void applicationWrapperSetViewHandlerISETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = new TCKAppWrapper().getWrapped(); - - JSFTestUtil.checkForISE(application, "setViewHandler", - new Class[] { ViewHandler.class }, - new Object[] { new TCKViewHandler() }, out); - - } - - // ------------------------ Private Implementations ------------------------ - - private class TCKAppWrapper extends ApplicationWrapper { - - @Override - public Application getWrapped() { - return getApplication(); - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/URLClient.java deleted file mode 100644 index c6f45d62be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/URLClient.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationWrapperISE; - -import java.io.PrintWriter; -import java.net.URL; - -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_applicationWrapperISE_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: applicationWrapperAddELResolverISETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2678 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * addELResolver() is called after the application has been - * initialized. - * @since 1.2 - */ - public void applicationWrapperAddELResolverISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationWrapperAddELResolverISETest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetResourceHandlerISETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2679 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setResourceHandler() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationWrapperSetResourceHandlerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSetResourceHandlerISETest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetStateManagerISETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2680 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setStatemanager() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationWrapperSetStateManagerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetStateManagerISETest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetViewHandlerISETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2683 - * @test_Strategy: Ensure an IllegalStateException is thrown if - * setViewHandler() is called after the application has - * received a request. - * - * @since 2.0 - */ - public void applicationWrapperSetViewHandlerISETest() throws Fault { - // Make Client Call before running the test. - String clientside = "/faces/applicationtest.xhtml"; - this.getPage(new WebClient(), - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + clientside); - - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetViewHandlerISETest"); - invoke(); - } - - // ----------------------------- Private/Protected Methods - // ---------------------- - - protected HtmlPage getPage(WebClient client, String path) throws Fault { - - try { - return (HtmlPage) client.getPage(new URL(path)); - } catch (Exception e) { - throw new Fault(e); - } - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/build.xml deleted file mode 100644 index 9c074b5884..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/build.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.war.sun-web.xml deleted file mode 100644 index 51dcda7349..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_applicationWrapperISE_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.xml deleted file mode 100644 index d24237a3d3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationWrapperISE/jsf_appl_applicationWrapper_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_applicationWrapper - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationWrapperISE.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/TestServlet.java deleted file mode 100644 index 3820ce33ad..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/TestServlet.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationfactory; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Collection; -import java.util.Iterator; -import java.util.Locale; -import java.util.ResourceBundle; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ELContextListener; -import jakarta.el.ELException; -import jakarta.el.ELResolver; -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.FacesException; -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.ApplicationFactory; -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.behavior.Behavior; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.el.MethodExpression; -import jakarta.el.ELException; -import jakarta.el.ValueExpression; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListenerHolder; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // ApplicationFactory.getApplication() - // ApplicationFactory.setApplication(Application) - public void applicationFactoryGetSetApplicationTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationFactory factory = (ApplicationFactory) FactoryFinder - .getFactory(FactoryFinder.APPLICATION_FACTORY); - - if (factory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ApplicationFactory!"); - return; - } - - Application originalApplication = factory.getApplication(); - FacesContext context = getFacesContext(); - - /* - * since there is only one Application instance per webapp, the application - * returned by the factory should be the same as that returned by - * FacesContext.getApplication(). - */ - if (originalApplication != context.getApplication()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ApplicationFactory returned a different Application " - + "instance then what is returned by " - + "FacesContext.getApplication(). " - + "There should only be on Application per webapp" + JSFTestUtil.NL - + "Application instance from " + "ApplicationFactory: " - + originalApplication + JSFTestUtil.NL - + "Application instance from FacesContext: " - + context.getApplication()); - return; - } - - Application tckApplication = new TCKApplication(); - - factory.setApplication(tckApplication); - - Application retApplication = factory.getApplication(); - - if (!retApplication.equals(tckApplication)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ApplicationFactory.getApplication() " - + "didn't return the Application previously set via " - + "ApplicationFactory.setApplication(Application)." + JSFTestUtil.NL - + "Expected Application: " + tckApplication + JSFTestUtil.NL - + "Application received: " + retApplication); - return; - } - factory.setApplication(originalApplication); - out.println(JSFTestUtil.PASS); - } - - public void applicationFactorySetApplicationNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationFactory factory = (ApplicationFactory) FactoryFinder - .getFactory(FactoryFinder.APPLICATION_FACTORY); - - if (factory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ApplicationFactory!"); - return; - } - - // ApplicationFactory.setApplication(null) - JSFTestUtil.checkForNPE(factory, "setApplication", - new Class[] { Application.class }, new Object[] { null }, out); - - } - - public void applicationFactoryGetWrappedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ApplicationFactory factory = (ApplicationFactory) FactoryFinder - .getFactory(FactoryFinder.APPLICATION_FACTORY); - - if (!(factory.getWrapped() instanceof ApplicationFactory - || factory.getWrapped() == null)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ApplicationFactpry.getWrapped() did not " - + "return an instance of 'ApplicationFactory' or null"); - return; - } - - out.println("Test PASSED."); - - } - - // --------------------------------------------- private implementations - private static class TCKApplication extends Application { - - @Override - public StateManager getStateManager() { - return null; - } - - @Override - public ResourceBundle getResourceBundle(FacesContext facesContext, - String string) { - return null; - } - - @Override - public void addELResolver(ELResolver resolver) { - // do nothing - } - - @Override - public ELResolver getELResolver() { - return null; - } - - @Override - public UIComponent createComponent(ValueExpression componentExpression, - FacesContext context, String componentType) throws FacesException { - return null; - } - - @Override - public ExpressionFactory getExpressionFactory() { - return null; - } - - @Override - public Object evaluateExpressionGet(FacesContext context, String expression, - Class expectedType) throws ELException { - return null; - } - - @Override - public void addELContextListener(ELContextListener listener) { - // do nothing - } - - @Override - public void removeELContextListener(ELContextListener listener) { - // do nothing - } - - @Override - public ELContextListener[] getELContextListeners() { - return new ELContextListener[0]; - } - - @Override - public void setStateManager(StateManager manager) { - // do nothing - } - - public MethodExpression createMethodExpression(String ref, Class params[]) - throws ELException { - return null; - } - - public ValueExpression createValueExpression(String ref) - throws ELException { - return null; - } - - @Override - public void setMessageBundle(String messageBundle) { - // do nothing - } - - @Override - public String getMessageBundle() { - return null; - } - - @Override - public Iterator getSupportedLocales() { - return null; - } - - @Override - public void setSupportedLocales(Collection newLocales) { - // do nothing - } - - @Override - public Locale getDefaultLocale() { - return null; - } - - @Override - public void setDefaultLocale(Locale newLocale) { - // do nothing - } - - @Override - public void addConverter(String converterId, String converterClass) { - // do nothing - } - - @Override - public Iterator getConverterIds() { - return null; - } - - @Override - public Iterator getConverterTypes() { - return null; - } - - @Override - public ActionListener getActionListener() { - return null; - } - - @Override - public void addConverter(Class targetClass, String converterClass) { - // do nothing - } - - @Override - public void addComponent(String componentType, String componentClass) { - // do nothing - } - - @Override - public UIComponent createComponent(String componentType) - throws FacesException { - return null; - } - - @Override - public void addValidator(String validatorId, String validatorClass) { - // do nothing - } - - @Override - public Validator createValidator(String validatorId) throws FacesException { - return null; - } - - @Override - public void setNavigationHandler(NavigationHandler handler) { - // do nothing - } - - public Converter createConverter(Class targetClass) { - return null; - } - - public ViewHandler getViewHandler() { - return null; - } - - @Override - public Iterator getValidatorIds() { - return null; - } - - @Override - public Converter createConverter(String converterId) { - return null; - } - - @Override - public void setViewHandler(ViewHandler handler) { - // do nothing - } - - @Override - public void setActionListener(ActionListener listener) { - // do nothing - } - - @Override - public NavigationHandler getNavigationHandler() { - return null; - } - - @Override - public Iterator getComponentTypes() { - return null; - } - - @Override - public String getDefaultRenderKitId() { - return null; - } - - @Override - public void setDefaultRenderKitId(String renderKitId) { - // do nothing - } - - public void publishEvent(Class arg0, - SystemEventListenerHolder arg1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void addBehavior(String arg0, String arg1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Behavior createBehavior(String arg0) throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Iterator getBehaviorIds() { - throw new UnsupportedOperationException("Not supported yet."); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/URLClient.java deleted file mode 100644 index 91fb63d9ba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/URLClient.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationfactory; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_applfactory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: applicationFactoryGetSetApplicationTest - * @assertion_ids: JSF:JAVADOC:133; JSF:JAVADOC:134; JSF:JAVADOC:136 - * @test_Strategy: Validate Application instances can be obtained and set via - * an ApplicationFactory instance. - */ - public void applicationFactoryGetSetApplicationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationFactoryGetSetApplicationTest"); - invoke(); - } - - /** - * @testName: applicationFactorySetApplicationNPETest - * @assertion_ids: JSF:JAVADOC:133; JSF:JAVADOC:137 - * @test_Strategy: Validate ApplicationFactory.setApplication(Application) - * throws NPE when argument is null. - */ - public void applicationFactorySetApplicationNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationFactorySetApplicationNPETest"); - invoke(); - } - - /** - * @testName: applicationFactoryGetWrappedTest - * @assertion_ids: JSF:JAVADOC:133; JSF:JAVADOC:135 - * @test_Strategy: Validate ApplicationFactory.setApplication(Application) - * throws NPE when argument is null. - */ - public void applicationFactoryGetWrappedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationFactoryGetWrappedTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/build.xml deleted file mode 100644 index 43bbe9e608..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.war.sun-web.xml deleted file mode 100644 index 3cd769fe8e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_applfactory_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.xml deleted file mode 100644 index d44a0d98ce..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationfactory/jsf_appl_applfactory_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_applfactory - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationfactory.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/TestServlet.java deleted file mode 100644 index d8eeb66310..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/TestServlet.java +++ /dev/null @@ -1,1766 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.ResourceBundle; - -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.behavior.TCKBehavior; -import com.sun.ts.tests.jsf.common.event.TCKSystemEvent; -import com.sun.ts.tests.jsf.common.listener.TCKActionListener; -import com.sun.ts.tests.jsf.common.listener.TCKELContextListener; -import com.sun.ts.tests.jsf.common.listener.TCKSystemEventListener; -import com.sun.ts.tests.jsf.common.navigation.TCKNavigationHandler; -import com.sun.ts.tests.jsf.common.resolver.TCKELResolver; -import com.sun.ts.tests.jsf.common.resourcehandler.TCKResourceHandler; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.statemanager.TCKStateManager; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; -import com.sun.ts.tests.jsf.common.viewhandler.TCKViewHandler; - -import jakarta.el.CompositeELResolver; -import jakarta.el.ELContext; -import jakarta.el.ELContextListener; -import jakarta.el.ELResolver; -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.FacesException; -import jakarta.faces.application.Application; -import jakarta.faces.application.ApplicationWrapper; -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.BooleanConverter; -import jakarta.el.MethodExpression; -import jakarta.el.ELException; -import jakarta.el.ValueExpression; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListener; -import jakarta.faces.validator.BeanValidator; -import jakarta.faces.validator.LengthValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.GenericServlet; -import jakarta.servlet.Servlet; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; - -public class TestServlet extends HttpTCKServlet { - - /* - * private indicators that a test has previously passed. this is necessary if - * a test is run multiple times without reloading the application - */ - private ServletContext servletContext; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // ApplicationWrapper.addComponent(String, String) - public void applicationWrapperAddComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper application = new TCKApplication(); - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - - // should now be able to create the TCKComponent component - UIOutput output = (UIOutput) application.createComponent("TCKComponent"); - - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to create component 'TCKComponent' after " - + "adding a mapping to the Application instance."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ApplicationWrapper.createComponent(String) - public void applicationWrapperCreateComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ApplicationWrapper application = new TCKApplication(); - - application.addComponent("TCKComponent", "jakarta.faces.component.UIOutput"); - UIOutput output = (UIOutput) application.createComponent("TCKComponent"); - - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to create component TCKComponent!" + JSFTestUtil.NL - + "Using Application.createComponent(String)"); - } - - out.println(JSFTestUtil.PASS); - - } - - // ApplicationWrapper.createComponent(FacesContext, String, 'null') - public void applicationWrapperCreateComponentFSSNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - try { - applicationWrapper.createComponent(context, "TCKComponent", null); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to create component 'TCKComponent'" + JSFTestUtil.NL - + "Using Application.createComponent(FacesContext, " - + "String, 'null')"); - - out.println(e.toString()); - } - - } - - // Application.createComponent(FacesContext, String, String) - public void applicationWrapperCreateComponentFSSTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - try { - applicationWrapper.createComponent(context, "TCKComponent", - "TCKRenderer"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unable to create component " - + "'TCKComponent'" + JSFTestUtil.NL - + "Using Application.createComponent(FacesContext, " - + "String, String)"); - - out.println(e.toString()); - } - - } - - // Application.createComponent(ValueBinding, FacesContext, String) - public void applicationWrapperCreateComponentBindingTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - ELContext elcontext = context.getELContext(); - - request.setAttribute("TestBean", new TestBean()); - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - - ExpressionFactory ef = applicationWrapper.getExpressionFactory(); - ValueExpression binding = ef.createValueExpression(elcontext, - "#{TestBean.component}", UIComponent.class); - - // ensures failure if the value binding lookup fails - UIInput input = (UIInput) applicationWrapper.createComponent(binding, - context, "TCKComponent"); - - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding, " - + "FacesContext, String) returned null when using a " - + "valid valueBinding."); - return; - } - - /* - * Next validate that if the ValueBinding doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) applicationWrapper.createComponent(binding, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding, " - + "FacesContext, String) returned null when falling back to the " - + "component identifier to create the component."); - - return; - } - - /* - * Since the ValueBinding evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueBinding, " - + "FacesContext, String) didn't call setValue() on the " - + "ValueBinding passed when creating a new fallback " - + "component in the case the ValueBinding returned null." - + JSFTestUtil.NL + "Expected a return of UIOutput, " - + "but received a null value."); - - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.getComponentTypes(); - public void applicationWrapperGetComponentTypesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - applicationWrapper.addComponent("TCKBadComponent", - "jakarta.faces.component.base.UIOutputBase"); - - Iterator i = applicationWrapper.getComponentTypes(); - if (i == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getComponentTypes() returned null."); - return; - } - - // check the iterator for the entries we've added for testing - if (!(JSFTestUtil.checkIterator(i, - new String[] { "TCKComponent", "TCKBadComponent" }, false, true))) { - - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Unable to find either both or one of the following " - + "component entires: 'TCKComponent', 'TCKBadComponent' in " - + "the Iterator returned by Application.getComponentEntries." - + JSFTestUtil.NL + "Entries returned: " - + JSFTestUtil.getAsString(applicationWrapper.getComponentTypes())); - - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Application.addConverter(String, String) - // Application.createConverter(String) - public void applicationWrapperAddCreateConverterByStringTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addConverter("TCKConverter", - "jakarta.faces.convert.BooleanConverter"); - BooleanConverter converter; - - try { - converter = (BooleanConverter) applicationWrapper - .createConverter("TCKConverter"); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown when creating converter."); - e.printStackTrace(); - return; - } - - if (converter == null) { - out.println( - JSFTestUtil.FAIL + "Application.createConverter(String) returned " - + "null for valid converter added via " - + "Application.addConverter(String, String)."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.addConverter (Class, String) - // Application.createConverter(Class) - public void applicationWrapperAddCreateConverterByClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - /* - * Doens't make much sense, but we're only testing the mapping and creation - * not if the value can be converted - */ - applicationWrapper.addConverter(Servlet.class, - "jakarta.faces.convert.BooleanConverter"); - - /* - * first find see if the implementation reruns the BooleanConverter for this - * class - */ - BooleanConverter converter; - try { - converter = (BooleanConverter) applicationWrapper - .createConverter(this.getClass()); - if (converter == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createConverter(Class) returned null " - + "when attempting to find a converter via an " + "Interface."); - return; - } - - applicationWrapper.addConverter(GenericServlet.class, - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) applicationWrapper - .createConverter(this.getClass()); - - if (converter == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createConverter(Class) returned null " - + "when attempting to find the converter via a " + "super class."); - return; - } - - applicationWrapper.addConverter(HttpServlet.class, - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) applicationWrapper - .createConverter(this.getClass()); - - if (converter == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createConverter(Class) returned null " - + "when attempting to find the converter via a super " + "class."); - return; - } - - applicationWrapper.addConverter(this.getClass(), - "jakarta.faces.convert.BooleanConverter"); - converter = (BooleanConverter) applicationWrapper - .createConverter(this.getClass()); - - if (converter == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createConverter(Class) returned null " - + "when class passed was the same that was used for " - + "the addConverter(Class, String) call."); - return; - } - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown when creating converter." + JSFTestUtil.NL); - e.printStackTrace(); - } - } - - // Application.getConverterIds() - public void applicationWrapperGetConverterIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addConverter("TCKConverter", - "jakarta.faces.conver.BooleanConverter"); - - Iterator i = applicationWrapper.getConverterIds(); - if (i == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getConverterIds() returned null."); - return; - } - - if (!(JSFTestUtil.checkIterator(i, new String[] { "TCKConverter" }, false, - true))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to find converter id 'TCKConverter' in returned " - + "Iterator."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.getConverterTypes() - public void applicationWrapperGetConverterTypesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addConverter(this.getClass(), - "jakarta.faces.convert.BooleanConverter"); - - Iterator> i = applicationWrapper.getConverterTypes(); - if (i == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getConverterIds() returned null."); - return; - } - - boolean found = false; - while (i.hasNext()) { - Class c = (Class) i.next(); - if (c.equals(this.getClass())) { - found = true; - break; - } - } - - if (!found) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unable to find converter class '" - + this.getClass().getName() + "' in " + "returned Iterator."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.addValidator(String, String) - // Application.createValidator(String) - public void applicationWrapperAddCreateValidatorTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addValidator("TCKValidator", - "jakarta.faces.validator.LengthValidator"); - try { - Validator validator = applicationWrapper.createValidator("TCKValidator"); - - if (validator == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createValidator(String) returned null " - + "when provided a valid id."); - return; - } - - if (!(validator instanceof LengthValidator)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Validator returned was not instance of " + "LengthValidator." - + JSFTestUtil.NL + "Validator type received: " - + validator.getClass().getName()); - - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown when creating converter." + JSFTestUtil.NL); - e.printStackTrace(); - } - } - - // Application.getValidatorIds() - public void applicationWrapperGetValidatorIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - applicationWrapper.addValidator("TCKValidator", - "jakarta.faces.validator.LengthValidator"); - - Iterator i = applicationWrapper.getValidatorIds(); - if (i == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getValidatorIds() returned null."); - return; - } - - if (!(JSFTestUtil.checkIterator(i, new String[] { "TCKValidator" }, false, - true))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to find validator id 'TCKValidator' in the " - + "Iterator returned by Application.getValidatorIds()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.getActionListener() - public void applicationWrapperGetActionListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - ActionListener defaultListener = applicationWrapper.getActionListener(); - if (defaultListener == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getActionListener() returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.setActionListener(ActionListener) - public void applicationWrapperSetActionListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - ActionListener origListener = applicationWrapper.getActionListener(); - ActionListener tckActionListener = new TCKActionListener(); - - try { - applicationWrapper.setActionListener(tckActionListener); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown when creating converter."); - e.printStackTrace(); - return; - } - - ActionListener listener = applicationWrapper.getActionListener(); - if (listener == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getActionListener() returned null after " - + "calling Application.setActionListener(ActionListener)."); - return; - } - - if (!listener.equals(tckActionListener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "TCKActionListener not returned by " - + "Application.getActionListener() as expected." + JSFTestUtil.NL - + "ActionListener type: " + listener.getClass().getName()); - } - - out.println(JSFTestUtil.PASS); - - // restore original listener - applicationWrapper.setActionListener(origListener); - } - - // Application.getNavigationHandler(); - // Application.setNavigationHandler(ViewHandler); - public void applicationWrapperGetSetNavigationHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - NavigationHandler handler = applicationWrapper.getNavigationHandler(); - - if (handler == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() returned null."); - return; - } - - NavigationHandler tckNavigationHandler = new TCKNavigationHandler(); - applicationWrapper.setNavigationHandler(tckNavigationHandler); - NavigationHandler newNavigationHandler = applicationWrapper - .getNavigationHandler(); - - if (newNavigationHandler == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() returned null " - + "after calling" - + "Application.setNavigationHandler(NavigationHandler)."); - return; - } - - if (!newNavigationHandler.equals(tckNavigationHandler)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getNavigationHandler() didn't return " - + "the expected NavigationHandler."); - return; - } - - out.println(JSFTestUtil.PASS); - - // restore original handler - applicationWrapper.setNavigationHandler(handler); - } - - // ApplicationWrapper.createValidator(String) throws FacesException - public void applicationWrapperCreateValidatorFETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application applicationWrapper = new TCKApplication().getWrapped(); - - try { - applicationWrapper.createValidator("Bogus"); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Expected a FacesException to be thrown" - + " when Validator could not be cunstructed."); - - } catch (FacesException fe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected Exception thrown." - + JSFTestUtil.NL + "Expected: FacesException" + JSFTestUtil.NL - + "Recieved: " + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - } - - // Application.getViewHandler() - // Application.setViewHandler(ViewHandler) - public void applicationWrapperGetSetViewHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - ViewHandler origHandler = applicationWrapper.getViewHandler(); - - if (origHandler == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getViewHandler() returned null."); - return; - } - - ViewHandler tckHandler = new TCKViewHandler(); - applicationWrapper.setViewHandler(tckHandler); - ViewHandler resolver = applicationWrapper.getViewHandler(); - - if (resolver == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getViewHandler() returned null after " - + "calling Application.setViewHandler() with a new " - + "ViewHandler instance."); - return; - } - - if (!resolver.equals(tckHandler)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getViewHandler didn't return the expected" - + " ViewHandler."); - return; - } - - out.println(JSFTestUtil.PASS); - - // restore the original handler - applicationWrapper.setViewHandler(origHandler); - } - - public void applicationWrapperSetGetDefaultLocaleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - if (applicationWrapper.getDefaultLocale() != null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected Application.getDefaultLocale() " - + "to return null if the default locale has not " - + "been explicitly set by a call to " - + "Application.setDefaultLocale(Locale)."); - return; - } - - applicationWrapper.setDefaultLocale(Locale.US); - - if (!Locale.US.equals(applicationWrapper.getDefaultLocale())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected Application.getDefaultLocale()" - + "to return Locale.US as set via call to Application." - + "setDefaultLocale()." + JSFTestUtil.NL + "Localed received: " - + applicationWrapper.getDefaultLocale()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationWrapperSetGetSupportedLocalesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - Collection collection = new ArrayList(); - collection.add(Locale.ENGLISH); - collection.add(Locale.FRENCH); - collection.add(Locale.GERMAN); - - applicationWrapper.setSupportedLocales(collection); - - Locale[] locales = { Locale.ENGLISH, Locale.FRENCH, Locale.GERMAN }; - List retLocales = new ArrayList(); - for (Iterator i = applicationWrapper.getSupportedLocales(); i - .hasNext();) { - retLocales.add(i.next()); - } - - Locale[] returnedLocales = (Locale[]) retLocales - .toArray(new Locale[retLocales.size()]); - - if (!Arrays.equals(locales, returnedLocales)) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected result returned from " - + "Application.getSupportedLocales()." + JSFTestUtil.NL - + "Expected: " + JSFTestUtil.getAsString(locales) + JSFTestUtil.NL - + "Received: " + JSFTestUtil.getAsString(returnedLocales)); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ApplicationWrapper.getDefaultValidatorInfo() - public void applicationWrapperGetDefaultValidatorInfoTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - if (applicationWrapper.getDefaultValidatorInfo() == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain Default validator info."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // -------------------------------------------------- Tests Added for 1.2 - public void applicationWrapperGetELResolverTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - ELResolver resolver = applicationWrapper.getELResolver(); - - if (resolver == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getELResolver() returned null."); - return; - } - - if (!(resolver instanceof CompositeELResolver)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.getELResolver() returned " - + "an ELResolver instance, but it wasn't an instance " - + "of CompositeELResolver."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationWrapperGetExpressionFactoryTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - ExpressionFactory controlFactory = JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext).getExpressionFactory(); - - if (controlFactory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ExpressionFactory " - + "from JspApplicationContext."); - return; - } - - ExpressionFactory exprFactory = applicationWrapper.getExpressionFactory(); - - if (exprFactory == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ExpressionFactory" + " instance."); - return; - } - - // Left in for debugging. - // - // ExpressionFactory controlFactoryTwo = - // JspFactory.getDefaultFactory(). - // getJspApplicationContext(servletContext).getExpressionFactory(); - // - // ExpressionFactory exprFactoryTwo = - // applicationWrapper.getExpressionFactory(); - // out.println("*** First Call applicationWrapper.getExpressionFactory() " - // + - // "Returns ***: " + exprFactory.toString()); - // out.println("*** Second Call applicationWrapper.getExpressionFactory() " - // + - // "Returns ***: " + exprFactoryTwo.toString()); - // out.println("*** First Call - JspFactory.getDefaultFactory()." + - // "getJspApplicationContext(servletContext)." + - // "getExpressionFactory() Returns ***: " + - // controlFactory.toString()); - // out.println("*** Second Call - JspFactory.getDefaultFactory()." + - // "getJspApplicationContext(servletContext)." + - // "getExpressionFactory() Returns ***: " + - // controlFactoryTwo.toString()); - - if (!controlFactory.equals(exprFactory)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected Application.getExpressionFactory to return " - + "the same instance as that returned by" - + " JspApplicationContext.getExpressionFactory!" + JSFTestUtil.NL - + "Found: " + controlFactory.toString() + JSFTestUtil.NL - + "Expected: " + exprFactory.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationWrapperEvaluationExpressionGetTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - String testName = "applicationWrapperEvaluationExpressionGetTest"; - - String value = (String) applicationWrapper.evaluateExpressionGet( - getFacesContext(), "#{param.testname}", java.lang.String.class); - - if (!testName.equals(value)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected evaluation using " - + "Application.evaluateExpressionGet()." + JSFTestUtil.NL - + "Expected: " + testName + JSFTestUtil.NL + "Received: " + value); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.createComponent(ValueExpression, FacesContext, String) - public void applicationWrapperCreateComponentExpressionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - request.setAttribute("TestBean", new TestBean()); - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = applicationWrapper.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression " + "instance from Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String, String) returned " - + "null when falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, " + "but received a null value."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.createComponent(ValueExpression, FacesContext, String, - // String) - public void applicationWrapperCreateComponentExpressionFSSTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - request.setAttribute("TestBean", new TestBean()); - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = applicationWrapper.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression instance from " + "Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent", "TCKRenderer"); - if (input == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String, 'null) returned " - + "null when falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received a " + "null value."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Application.createComponent(ValueExpression, FacesContext, String, - // 'null') - public void applicationWrapperCreateComponentExpressionFSSNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - request.setAttribute("TestBean", new TestBean()); - applicationWrapper.addComponent("TCKComponent", - "jakarta.faces.component.UIOutput"); - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = applicationWrapper.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.component}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression instance " + "from Application."); - return; - } - - // ensures failure if the ValueExpression lookup fails - UIInput input = (UIInput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent", null); - if (input != null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when using " - + "a valid ValueExpression."); - return; - } - - /* - * next validate that if the ValueExpression doesn't return a UIComponent - * instance, then create the component based on the identifier. - */ - TestBean bean = (TestBean) request.getAttribute("TestBean"); - bean.setComponent(null); - - UIOutput output = (UIOutput) applicationWrapper.createComponent(expr, - getFacesContext(), "TCKComponent"); - if (output == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression," - + " FacesContext, String) returned null when " - + "falling back to the component " - + "identifier to create the component."); - return; - } - - /* - * Since the ValueExpression evaluated to null, a new component has been - * created (see above), the createComponent() implementation in this case - * must call setValue() with the newly created component instance. We should - * be able to call getComponent() on the bean to verify. - */ - UIOutput result = (UIOutput) bean.getComponent(); - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Application.createComponent(ValueExpression, " - + "FacesContext, String) didn't call setValue() " - + "on the ValueExpression passed when creating " - + "a new fallback component in the case the " - + "ValueExpression returned null." + JSFTestUtil.NL - + "Expected a return of UIOutput, but received a " + "null value."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationWrapperAddELResolverTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - try { - applicationWrapper.addELResolver(new TCKELResolver()); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception..."); - e.printStackTrace(); - } - - out.println(JSFTestUtil.PASS); - - } - - public void applicationWrapperAddGetRemoveELContextListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - int contextCount = applicationWrapper.getELContextListeners().length; - TCKELContextListener listener = new TCKELContextListener(); - applicationWrapper.addELContextListener(listener); - - if ((contextCount + 1) != applicationWrapper - .getELContextListeners().length) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Called Application.addELContextListener()" - + "but the length of the array returned by " - + "Application.getELContextListeners() didn't increase " + "by one." - + JSFTestUtil.NL + "Expected length: " + (contextCount + 1) - + JSFTestUtil.NL + "Actual length: " - + applicationWrapper.getELContextListeners().length); - return; - } - - applicationWrapper.removeELContextListener(listener); - List listeners = Arrays - .asList(applicationWrapper.getELContextListeners()); - - if (listeners.contains(listener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ELContextListener not removed as expected."); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test for Application.getResourceHandler() - public void applicationWrapperGetResourceHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - // Set a specific ResourceHandler. - TCKResourceHandler myRH = new TCKResourceHandler(); - applicationWrapper.setResourceHandler(myRH); - - if (applicationWrapper.getResourceHandler() == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ResourceHandler " + "instance."); - return; - } - - if (!myRH.equals(applicationWrapper.getResourceHandler())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ResourceHandler was not able to be set!"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void applicationWrapperGetResourceBundleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - try { - String expectedName = "com.sun.ts.tests.jsf.common." - + "resourcebundle.SimpleResourceBundle_en"; - - getFacesContext().getViewRoot().setLocale(Locale.ENGLISH); - - ResourceBundle rb = applicationWrapper.getResourceBundle(context, - "simpleRB"); - - String resultName = rb.getClass().getName(); - - if (!resultName.equals(expectedName)) { - out.println("Test FAILED Unexpected Result for " - + "getResourceBundle()." + JSFTestUtil.NL + "Expected: " - + expectedName + JSFTestUtil.NL + "Received: " + resultName); - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception Thrown!"); - e.printStackTrace(); - } - - } - - public void applicationWrapperGetSetMessageBundleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - String bundleName; - String myBundle; - - bundleName = "com.sun.ts.tests.jsf.common.resourcebundle." - + "SimpleResourceBundle"; - - try { - applicationWrapper.setMessageBundle(bundleName); - myBundle = applicationWrapper.getMessageBundle(); - - if (!myBundle.equals(bundleName)) { - out.println("Test FAILED Unexpected Result for " - + "get/setMessageBundle()." + JSFTestUtil.NL + "Expected: " - + bundleName + JSFTestUtil.NL + "Received: " + myBundle); - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception Thrown!"); - e.printStackTrace(); - } - - } - - // Test for ApplicationWrapper.setDefaultRenderKitId() - // ApplicationWrapper.getDefaultRenderKitId() - public void applicationWrapperGetSetDefaultRenderKitIDTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - try { - applicationWrapper.setDefaultRenderKitId("TCKRenderKit"); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception Thrown when trying to set default " - + "RenderKit ID!" + JSFTestUtil.NL - + "application.setDefaultRenderKitId('TCKRenderKit')"); - e.printStackTrace(); - } - - try { - String result = applicationWrapper.getDefaultRenderKitId(); - - if (!"TCKRenderKit".equals(result)) { - out.println("Test FAILED Unexpected RenderKit ID returned " - + "from application.getDefaultRenderKitId()." + JSFTestUtil.NL - + "Expected: TCKRenderKit" + JSFTestUtil.NL + "Received: " - + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception Thrown!"); - e.printStackTrace(); - } - - } - - // Test for Application.setResourceHandler() - public void applicationWrapperSetResourceHandlerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - ResourceHandler rh = applicationWrapper.getResourceHandler(); - applicationWrapper.setResourceHandler(rh); - - if (!rh.equals(applicationWrapper.getResourceHandler())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ResourceHandler " + "instance."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for ApplicationWrapper.setResourceHandler() throws - // NullPointerException - public void applicationWrapperSetResourceHandlerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - JSFTestUtil.checkForNPE(applicationWrapper, "setResourceHandler", - new Class[] { ResourceHandler.class }, new Object[] { null }, out); - - } // End applicationWrapperSetResourceHandlerNPETest - - // Test for Application.getProjectStage() "Default settings" - public void applicationWrapperGetProjectStageTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - String stage = applicationWrapper.getProjectStage().toString(); - - if (!("production".equalsIgnoreCase(stage))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - out.println("Expected: production"); - out.println("Received" + stage); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test for Application.publishEvent - public void applicationWrapperPublishEventTest1(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - - // Application.publishEvent(FacesContext, class, object) - try { - applicationWrapper.publishEvent(getFacesContext(), se.getClass(), uic); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } // End applicationWrapperPublishEventTest1 - - public void applicationWrapperPublishEventTest2(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - - // Application.publishEvent(getFacesContext, class, class, source) - try { - applicationWrapper.publishEvent(getFacesContext(), se.getClass(), - uic.getClass(), uic); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } // End applicationWrapperPublishEventTest2 - - // Test for Application.subscribeToEvent - public void applicationWrapperSubscribeToEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - applicationWrapper.subscribeToEvent(se.getClass(), uic.getClass(), sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationWrapperSubscribeToEventTest - - // Test for Application.subscribeToEvent - public void applicationWrapperSubscribeToEventNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - applicationWrapper.subscribeToEvent(se.getClass(), null, sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationWrapperSubscribeToEventNullTest - - // Test for Application.subscribeToEvent - public void applicationWrapperSubscribeToEventNoSrcClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - applicationWrapper.subscribeToEvent(se.getClass(), sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - }// End applicationWrapperSubscribeToEventNoSrcClassTest - - // Test for Application.unsubscribeFromEvent - public void applicationWrapperUnsubscribeFromEventTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - applicationWrapper.unsubscribeFromEvent(se.getClass(), uic.getClass(), - sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.unsubscribeFromEvent - public void applicationWrapperUnsubscribeFromEventNoSrcClassTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - SystemEvent se = new TCKSystemEvent(uic); - SystemEventListener sel = new TCKSystemEventListener(); - - try { - applicationWrapper.unsubscribeFromEvent(se.getClass(), sel); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for Application.addBehavior - public void applicationWrapperAddBehaviorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - String mb = "myBehavior"; - - applicationWrapper.addBehavior(mb, - (new TCKBehavior().getClass().getName())); - - Iterator i = applicationWrapper.getBehaviorIds(); - - while (i.hasNext()) { - if (mb.equals(i.next())) { - out.println(JSFTestUtil.PASS); - return; - } - } - - out.println(JSFTestUtil.FAIL); - - }// End applicationWrapperAddBehaviorTest - - // Test for Application.createBehavior - public void applicationWrapperCreateBehaviorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - String mb = "myBehavior"; - - applicationWrapper.addBehavior(mb, - (new TCKBehavior().getClass().getName())); - - TCKBehavior firstBehavior = (TCKBehavior) applicationWrapper - .createBehavior(mb); - - // Test to make sure we get back the default name. - if (!("default_name".equals(firstBehavior.getName()))) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned." - + JSFTestUtil.NL + "Expected: default_name" + JSFTestUtil.NL - + "Received: " + firstBehavior.getName()); - return; - } - - firstBehavior.setName("changed_name"); - TCKBehavior secondBehavior = (TCKBehavior) applicationWrapper - .createBehavior(mb); - - // Test to make sure we get back the default name again. - if (!("default_name".equals(secondBehavior.getName()))) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned." - + JSFTestUtil.NL + "Expected: default_name" + JSFTestUtil.NL - + "Received: " + secondBehavior.getName()); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End applicationWrapperCreateBehaviorTest - - // Test for ApplicationWrapper.createBehavior() throws FacesException - public void applicationWrapperCreateBehaviorFETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper application = new TCKApplication(); - - try { - application.addBehavior("bad", "com.sun.ts.tests.jsf.api." - + "jakarta_faces.application.application.BadBehavior"); - - application.createBehavior("bad"); - - // Exception not thrown! - out.println( - JSFTestUtil.FAIL + " expected a FacesException to be " + "thrown."); - - } catch (FacesException fe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when Behavior " - + "could not be created!" + JSFTestUtil.NL - + "Expected: FacesException" + JSFTestUtil.NL + "Receieved: " - + JSFTestUtil.NL + e.toString()); - } - - }// End applicationCreateBehaviorFETest - - // Test for Application.addDefaultValidatorId - public void applicationWrapperAddDefaultValidatorIdTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - String mv = "myValidator"; - - applicationWrapper.addValidator(mv, BeanValidator.class.getName()); - applicationWrapper.addDefaultValidatorId(mv); - - Map dvMap = applicationWrapper.getDefaultValidatorInfo(); - Iterator keys = dvMap.keySet().iterator(); - - while (keys.hasNext()) { - if (mv.equals(keys.next())) { - out.println(JSFTestUtil.PASS); - return; - } - } - - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Call to addDefaultValidatorId did not register a " + "Validator!"); - - }// End applicationWrapperAddDefaultValidatorIdTest - - // Test for Application.getBehaviorIds - public void applicationWrapperGetBehaviorIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - if (!(applicationWrapper.getBehaviorIds() instanceof Iterator)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected 'Application.geBehaviorIds()' " - + "to return an Iterator!"); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End applicationWrapperGetBehaviorIdsTest - - // Test for ApplicationWrapper.setStatemanager() - // ApplicationWrapper.getStatemanager() - public void applicationWrapperGetSetStateManagerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - // Test to make sure we get a StateManger by default. - StateManager stateManager = null; - try { - stateManager = applicationWrapper.getStateManager(); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when calling " - + "Application.getStateManager" + JSFTestUtil.NL); - e.printStackTrace(); - } - - try { - StateManager tckstatemgr = new TCKStateManager(stateManager); - applicationWrapper.setStateManager(tckstatemgr); - String result = applicationWrapper.getStateManager().getClass() - .getSimpleName(); - - if (!"TCKStateManager".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned after setting StateManger" - + JSFTestUtil.NL + "Expected: TCKStateManager" + JSFTestUtil.NL - + "Received: " + result); - return; - } - - out.println("Test PASSED."); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when calling " - + "Application.getStateManager" + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // Test for ApplicationWrapper.setStatemanager() throws NullPointerException - public void applicationWrapperSetStateManagerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - JSFTestUtil.checkForNPE(applicationWrapper, "setStateManager", - new Class[] { StateManager.class }, new Object[] { null }, out); - - } - - // Test for ApplicationWrapper.setViewHandler() throws NullPointerException - public void applicationWrapperSetViewHandlerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper applicationWrapper = new TCKApplication(); - - JSFTestUtil.checkForNPE(applicationWrapper, "setViewHandler", - new Class[] { ViewHandler.class }, new Object[] { null }, out); - } - - // Application.createComponent(String) throws FacesException - public void applicationWrapperCreateComponentFETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper application = new TCKApplication(); - - application.addComponent("TCKBadComponent", - "jakarta.faces.component.base.UIOutputBase"); - try { - // should fail as UIOutput is an interface - application.createComponent("TCKBadComponent"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when calling" - + "ApplicationWrapper.createComponent shouldn't have" - + "been able to create the specified component."); - - } catch (FacesException fe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown, but was not an instance of " - + "FacesException."); - e.printStackTrace(); - } - - } - - // ApplicationWrapper.createComponent(ValueExpression, FacesContext, String) - // throws FacesException - public void applicationWrapperCreateComponentExpressionFETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ApplicationWrapper application = new TCKApplication(); - - request.setAttribute("TestBean", new TestBean()); - application.addComponent("TCKBadComponent", - "jakarta.faces.component.base.UIOutputBase"); - try { - ELContext elContext = getFacesContext().getELContext(); - ValueExpression expr = application.getExpressionFactory() - .createValueExpression(elContext, "#{TestBean.boolProp}", - jakarta.faces.component.UIComponent.class); - - if (expr == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain ValueExpression from Application."); - return; - } - - // should fail as UIOutput is an interface - application.createComponent(expr, getFacesContext(), "TCKBadComponent"); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "FacesException 'NOT' thrown when Application.createComponent(" - + "ValueExpression, FacesContext, String) should not have been able to create the specified component."); - return; - - } catch (FacesException fe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Exception thrown, but was not an instance of " + "FacesException." - + JSFTestUtil.NL); - e.printStackTrace(); - } - - } - - // ------------------------------------------------- Private Implementations - - private static class TCKApplication extends ApplicationWrapper { - FacesContext context; - - @Override - public Application getWrapped() { - context = FacesContext.getCurrentInstance(); - return context.getApplication(); - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/URLClient.java deleted file mode 100644 index e661ba17bb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/URLClient.java +++ /dev/null @@ -1,852 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_applicationwrapper_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Test Declarations */ - - /** - * @testName: applicationWrapperAddComponentTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:139 - * - * @test_Strategy: Validate that components that are add to are the same - * components received will called via the wrapper. - */ - public void applicationWrapperAddComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperAddComponentTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:149 - * - * @test_Strategy: Validate components that have been added to the - * applicationwrapper can be created. - */ - public void applicationWrapperCreateComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateComponentTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentFSSTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:156 - * - * @test_Strategy: Validate components that have been added to the - * applicationWrapper can be created. - * - * Signature tested: - * applicationWrapper.createComponent(FacesContext, String, - * String) - * - * @since 2.0 - */ - public void applicationWrapperCreateComponentFSSTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateComponentFSSTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentFSSNullTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:156 - * - * @test_Strategy: Validate components that have been added to the - * applicationWrapper can be created. - * - * Signature tested: - * applicationWrapper.createComponent(FacesContext, String, - * 'null') - * - * @since 2.0 - */ - public void applicationWrapperCreateComponentFSSNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateComponentFSSTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentBindingTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:160 - * - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueBinding is provided that will - * resolve to a UIComponent. Additionally ensure that if the - * ValueBinding doesn't resolve to a UIComponent, then the - * String component ID will be used as a fallback to create - * the component. - */ - public void applicationWrapperCreateComponentBindingTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperCreateComponentBindingTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetComponentTypesTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:170 - * - * @test_Strategy: Validate an Iterator is returned and we can find the - * expected component types within the Iterator. - */ - public void applicationWrapperGetComponentTypesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetComponentTypesTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddCreateConverterByStringTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:140; - * JSF:JAVADOC:158 - * - * @test_Strategy: Validate converters can be added to the applicationWrapper - * and then subsequently created. - */ - public void applicationWrapperAddCreateConverterByStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperAddCreateConverterByStringTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddCreateConverterByClassTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:141; - * JSF:JAVADOC:159 - * @test_Strategy: Validate converters can be added by class to the - * applicationWrapper and then subsequently created. Ensure - * that creation does inheritance checking. - */ - public void applicationWrapperAddCreateConverterByClassTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperAddCreateConverterByClassTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetConverterIdsTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:171 - * - * @test_Strategy: Validate the Iterator returned contains the expected - * values. - */ - public void applicationWrapperGetConverterIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetConverterIdsTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetConverterTypesTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:172 - * @test_Strategy: Validate the Iterator returned contains the expected - * values. - */ - public void applicationWrapperGetConverterTypesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetConverterTypesTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetDefaultValidatorInfoTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:175 - * @test_Strategy: Validate that call to getDefaultValidatorInfo returns a non - * null object. - */ - public void applicationWrapperGetDefaultValidatorInfoTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperGetDefaultValidatorInfoTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddCreateValidatorTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:145; - * JSF:JAVADOC:162 - * @test_Strategy: Validate we can add Validators to the applicationWrapper - * and subsequently create the specified Validator. - */ - public void applicationWrapperAddCreateValidatorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperAddCreateValidatorTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetValidatorIdsTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:30; JSF:JAVADOC:91 - * - * @test_Strategy: Validate the expected validator IDs can be found in the - * returned Iterator. - */ - public void applicationWrapperGetValidatorIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetValidatorIdsTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetActionListenerTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:187 - * - * @test_Strategy: Validate the default ActionListener is returned. - */ - public void applicationWrapperGetActionListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetActionListenerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetActionListenerTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:168; - * JSF:JAVADOC:194 - * - * @test_Strategy: Validate an ActionListener can be set in the - * applicationWrapper and that - * applicationWrapper.getActionListener() returns the same - * ActionListener we set. - */ - public void applicationWrapperSetActionListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetActionListenerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetSetDefaultRenderKitIDTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:174; - * JSF:JAVADOC:196 - * @test_Strategy: Ensure that we can set and receive back the correct - * DefaultRenderKit ID. - */ - public void applicationWrapperGetSetDefaultRenderKitIDTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperGetSetDefaultRenderKitIDTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetSetMessageBundleTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:179; - * JSF:JAVADOC:197 - * @test_Strategy: Ensure that the MessageBundle that is returned from the - * ApplicationWrapper.getMessageBundle() equals the - * MessageBundle previous call to - * ApplicationWrapper.setMessageBundle(). - */ - public void applicationWrapperGetSetMessageBundleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperGetSetMessageBundleTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetSetNavigationHandlerTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:180; - * JSF:JAVADOC:198 - * - * @test_Strategy: Ensure a NavigationHandler is returned if not previously - * set. Ensure the same NavigationHandler that is provided to - * applicationWrapper.setNavigationHandler(NavigationHandler ) - * is returned by applicationWrapper.getNavigationHandler(). - */ - public void applicationWrapperGetSetNavigationHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperGetSetNavigationHandlerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateValidatorFETest - * @assertion_ids: JSF:JAVADOC:146; JSF:JAVADOC:163 - * @test_Strategy: Validate a FacesException if a Validator of the specified - * id cannot be created. - */ - public void applicationWrapperCreateValidatorFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateValidatorFETest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetSetViewHandlerTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:189; - * JSF:JAVADOC:204 - * - * @test_Strategy: Ensure a ViewHandler is returned if not previously set. - * Ensure the same ViewHandler that is provided to - * applicationWrapper.setViewHandler(ViewHandler) is returned - * by applicationWrapper.getViewHandler(). - */ - public void applicationWrapperGetSetViewHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetSetViewHandlerTest"); - invoke(); - } - - - /** - * @testName: applicationWrapperSetGetSupportedLocalesTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:186; - * JSF:JAVADOC:202 - * - * @test_Strategy: Validate {get,set}SupportedLocales() - unsure the values - * set are properly returned. - */ - public void applicationWrapperSetGetSupportedLocalesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSetGetSupportedLocalesTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetGetDefaultLocaleTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:173; - * JSF:JAVADOC:195 - * - * @test_Strategy: Validate applicationWrapper.getDefaultLocale() returns null - * if Locale has not been explicitly set by - * applicationWrapper.setDefaultLocale(). Then set the default - * Locale and call getDefaultLocale() to ensure the expected - * value is returned. - */ - public void applicationWrapperSetGetDefaultLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSetGetDefaultLocaleTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetELResolverTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:177 - * - * @test_Strategy: Validate a CompositeELResolver instanced is returned when - * calling applicationWrapper.getELResolver(). - * - * @since 1.2 - */ - public void applicationWrapperGetELResolverTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetELResolverTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetExpressionFactoryTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:178 - * - * @test_Strategy: Validate applicationWrapper.getExpressionFactory() returns - * an instance of ExpressionFactory. - * - * @since 1.2 - */ - public void applicationWrapperGetExpressionFactoryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperGetExpressionFactoryTest"); - invoke(); - } - - /** - * @testName: applicationWrapperEvaluationExpressionGetTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:166 - * - * @test_Strategy: Validate the convenience method, evaluationExpressionGet() - * returns the expected result of a ValueExpression - * evaluation. - * - * @since 1.2 - */ - public void applicationWrapperEvaluationExpressionGetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperEvaluationExpressionGetTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentExpressionTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:153 - * - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * - * @since 1.2 - */ - public void applicationWrapperCreateComponentExpressionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperCreateComponentExpressionTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentExpressionFSSTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:155 - * - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * - * Signature used for test: - * createComponent(jakarta.el.ValueExpression - * componentExpression, FacesContext context, String - * componentType String renderer) - * - * @since 2.0 - */ - public void applicationWrapperCreateComponentExpressionFSSTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperCreateComponentExpressionFSSTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentExpressionFETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:154 - * @test_Strategy: Validate a FacesException if createComponent cannot create - * the component specified by the provided ID. - * - * @since 1.2 - */ - public void applicationWrapperCreateComponentExpressionFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperCreateComponentExpressionFETest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentExpressionFSSNullTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:155 - * - * @test_Strategy: Validate that a component can be returned from - * createComponent when a ValueExpression is provided that - * will resolve to a UIComponent. Additionally ensure that if - * the ValueExpression doesn't resolve to a UIComponent, then - * the String component ID will be used as a fallback to - * create the component. - * - * Signature used for test: - * createComponent(jakarta.el.ValueExpression - * componentExpression, FacesContext context, String - * componentType String renderer) <-- Must receive 'null' - * - * @since 2.0 - */ - public void applicationWrapperCreateComponentExpressionFSSNullTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperCreateComponentExpressionFSSTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddELResolverTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:144 - * @test_Strategy: Verify we can add an ELResolver to the application. - * - * @since 1.2 - */ - public void applicationWrapperAddELResolverTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperAddELResolverTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddGetRemoveELContextListenerTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:143; - * JSF:JAVADOC:176; JSF:JAVADOC:193 - * - * @test_Strategy: Ensure applicationWrapper.addELContextListener(), - * applicationWrapper.getELContextListeners(), and - * applicationWrapper.removeELContextListeners() behave as - * expected when adding and removing ELContextListener - * instances. - * - * @since 1.2 - */ - public void applicationWrapperAddGetRemoveELContextListenerTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperAddGetRemoveELContextListenerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetResourceHandlerTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:184 - * @test_Strategy: Ensure applicationWrapper.getResourceHandler() returns a - * default ResourceHandler. - * @since 2.0 - */ - public void applicationWrapperGetResourceHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetResourceHandlerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetResourceBundleTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:183 - * @test_Strategy: Ensure that we are able to lookup the configured - * ResourceBundle. - */ - public void applicationWrapperGetResourceBundleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetResourceBundleTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetResourceHandlerTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:200 - * @test_Strategy: Ensure applicationWrapper.setResourceHandler() can set a - * none default ResourceHandler. - * - * @since 2.0 - */ - public void applicationWrapperSetResourceHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetResourceHandlerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetResourceHandlerNPETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2680 - * @test_Strategy: Ensure ApplicationWrapper.setResourceHandler() throws a - * NullPointerException , if resourceHandler is null - * - * @since 2.0 - */ - public void applicationWrapperSetResourceHandlerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSetResourceHandlerNPETest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetProjectStageTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:181 - * @test_Strategy: Ensure applicationWrapper.getProjectStage can retrieve the - * current ProjectStage. - * - * @since 2.0 - */ - public void applicationWrapperGetProjectStageTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetProjectStageTest"); - invoke(); - } - - /** - * @testName: applicationWrapperPublishEventTest1 - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:191 - * @test_Strategy: Ensure applicationWrapper.publishEvent Does not throw any - * Exceptions when called correctly. Test cases: - * applicationWrapper.publishEvent(FacesContext, class, - * source) - * - * @since 2.0 - */ - public void applicationWrapperPublishEventTest1() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperPublishEventTest1"); - invoke(); - } - - /** - * @testName: applicationWrapperPublishEventTest2 - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:192 - * - * @test_Strategy: Ensure applicationWrapper.publishEvent Does not throw any - * Exceptions when called correctly. - * - * Test cases: applicationWrapper.publishEvent(FacesContext, - * class, class, source) - * - * @since 2.0 - */ - public void applicationWrapperPublishEventTest2() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperPublishEventTest2"); - invoke(); - } - - /** - * @testName: applicationWrapperSubscribeToEventTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:205 - * - * @test_Strategy: Ensure applicationWrapper.subscribeToEvent Does not throw - * any Exceptions when called correctly. - * - * Test cases: - * applicationWrapper.subscribeToEvent(systemEventClass, - * sourceClass, listener) - * - * @since 2.0 - */ - public void applicationWrapperSubscribeToEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperSubscribeToEventTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSubscribeToEventNullTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:205 - * - * @test_Strategy: Ensure applicationWrapper.subscribeToEvent Does not throw - * any Exceptions when called with null as sourceClass. - * - * Test cases: applicationWrapper.subscribeToEvent(Class, - * null, SystemEventListener) - * - * @since 2.0 - */ - public void applicationWrapperSubscribeToEventNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSubscribeToEventNullTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSubscribeToEventNoSrcClassTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:206 - * - * @test_Strategy: Ensure applicationWrapper.subscribeToEvent Does not throw - * any Exceptions. - * - * Test cases: applicationWrapper.subscribeToEvent(Class, - * SystemEventListener) - * - * @since 2.0 - */ - public void applicationWrapperSubscribeToEventNoSrcClassTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperSubscribeToEventNoSrcClassTest"); - invoke(); - } - - /** - * @testName: applicationWrapperUnsubscribeFromEventTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:207 - * - * @test_Strategy: Ensure applicationWrapper.unSubscribeFromEvent Does not - * throw any Exceptions when called. - * - * Test cases: applicationWrapper.unsubscribeFromEvent(Class, - * Class SystemEventListener) - * - * @since 2.0 - */ - public void applicationWrapperUnsubscribeFromEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperUnsubscribeFromEventTest"); - invoke(); - } - - /** - * @testName: applicationWrapperUnsubscribeFromEventNoSrcClassTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:208 - * - * @test_Strategy: Ensure applicationWrapper.UnsubscribeToEvent throws a - * NullPointerException in any of the below test cases. - * - * Test cases: applicationWrapper.unsubscribeToEvent(Class, - * SystemEventListener) - * - * @since 2.0 - */ - public void applicationWrapperUnsubscribeFromEventNoSrcClassTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperUnsubscribeFromEventNoSrcClassTest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddBehaviorTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:138 - * - * @test_Strategy: Ensure applicationWrapper.AddBehavior does not throw an - * exception and the correct Behavior is returned when checked - * with applicationWrapper.getBehaviorIds(); - * - * Test cases: applicationWrapper.addBehavior(String, String) - * - * @since 2.0 - */ - public void applicationWrapperAddBehaviorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperAddBehaviorTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateBehaviorTest - * - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:147 - * - * @test_Strategy: Ensure applicationWrapper.CreateBehavior does not throw an - * exception and the correct Behavior is returned when checked - * with applicationWrapper.getBehaviorIds(); - * - * Test cases: applicationWrapper.createBehavior(String) - * - * @since 2.0 - */ - public void applicationWrapperCreateBehaviorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateBehaviorTest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateBehaviorFETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:148 - * @test_Strategy: If the Behavior cannot be created throw a FacesException. - * - * @since 2.0 - */ - public void applicationWrapperCreateBehaviorFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateBehaviorFETest"); - invoke(); - } - - /** - * @testName: applicationWrapperCreateComponentFETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:150 - * @test_Strategy: Validate a FacesException is thrown if createComponent is - * unable to create the specified component. - */ - public void applicationWrapperCreateComponentFETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperCreateComponentFETest"); - invoke(); - } - - /** - * @testName: applicationWrapperAddDefaultValidatorIdTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:142 - * @test_Strategy: Verify that when we set a default ValidatorId that we get - * the same Id back. - * @since 2.0 - */ - public void applicationWrapperAddDefaultValidatorIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "applicationWrapperAddDefaultValidatorIdTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetBehaviorIdsTest - * @assertion_ids: JSF:JAVADOC:190; JJSF:JAVADOC:146; JSF:JAVADOC:169 - * @test_Strategy: Verify that we get back an Iterator of BehaviorIds. - * @since 2.0 - */ - public void applicationWrapperGetBehaviorIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetBehaviorIdsTest"); - invoke(); - } - - /** - * @testName: applicationWrapperGetSetStateManagerTest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:146; JSF:JAVADOC:185; - * JSF:JAVADOC:201 - * @test_Strategy: Ensure that: - A default StateManager is provided that - * performs the functions described in the StateManager - * description in the JavaServer Faces Specification. - Set - * the StateManager instance that will be utilized during the - * Restore View and Render Response phases of the request - * processing lifecycle. - */ - public void applicationWrapperGetSetStateManagerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperGetSetStateManagerTest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetStateManagerNPETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2682 - * @test_Strategy: Ensure ApplicationWrapper.setStateManager() throws a - * NullPointerException , if StateManager is null - * - * @since 2.0 - */ - public void applicationWrapperSetStateManagerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetStateManagerNPETest"); - invoke(); - } - - /** - * @testName: applicationWrapperSetViewHandlerNPETest - * @assertion_ids: JSF:JAVADOC:190; JSF:JAVADOC:2684 - * @test_Strategy: Ensure ApplicationWrapper.setViewHandler() throws a - * NullPointerException , if ViewHandler is null - * - * @since 2.0 - */ - public void applicationWrapperSetViewHandlerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "applicationWrapperSetViewHandlerNPETest"); - invoke(); - } - - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/build.xml deleted file mode 100644 index ecfca80ebb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/build.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/faces-config.xml deleted file mode 100644 index c2294e8964..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/faces-config.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - A simple resource bundle - SimpleResourceBundle - - com.sun.ts.tests.jsf.common.resourcebundle.SimpleResourceBundle - - simpleRB - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.war.sun-web.xml deleted file mode 100644 index 4ccc4b32be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_applicationwrapper_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.xml deleted file mode 100644 index 966b67a80f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/applicationwrapper/jsf_appl_applicationwrapper_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.applicationwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/build.xml deleted file mode 100644 index a0be0d20a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/background.css b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/background.css deleted file mode 100644 index 6f31df2e0e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/background.css +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* -Document : background -Created on : Jan 31, 2008, 9:39:51 AM -Author : dougd -Description: -Purpose of the stylesheet follows. -*/ - -root { - display: block; -} - -night { - background: black; - color: #80c0c0 -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/blue.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/blue.xhtml deleted file mode 100644 index ed720bb7f3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/blue.xhtml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - Navigation Point - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/compOne.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/compOne.xhtml deleted file mode 100644 index c3087bb46e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/compOne.xhtml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - A simple composite tag - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/duke-boxer.gif b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/duke-boxer.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/duke-boxer.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/hello.js b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/hello.js deleted file mode 100644 index 15170bc81a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/hello.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * Echo out "Hello World!" - */ -document.write("Hello World!"); diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jsp_test.jsp b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jsp_test.jsp deleted file mode 100644 index e648dcb2f7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jsp_test.jsp +++ /dev/null @@ -1,35 +0,0 @@ -<%-- - - Copyright (c) 2005, 2022 Oracle and/or its affiliates. All rights reserved. - - This program and the accompanying materials are made available under the - terms of the Eclipse Public License v. 2.0, which is available at - http://www.eclipse.org/legal/epl-2.0. - - This Source Code may also be made available under the following Secondary - Licenses when the conditions for such availability set forth in the - Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - version 2 with the GNU Classpath Exception, which is available at - https://www.gnu.org/software/classpath/license.html. - - SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - ---%> - -<%@ taglib uri="jakarta.faces.core" prefix="f" %> -<%@ taglib uri="jakarta.faces.html" prefix="h" %> - - - - isResourceRequest - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jspx_test.jspx b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jspx_test.jspx deleted file mode 100644 index 0807abf08e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_jspx_test.jspx +++ /dev/null @@ -1,19 +0,0 @@ -# -# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -# -# THis is not a real resource, used for Negative test only! -# diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_prop_test.properties b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_prop_test.properties deleted file mode 100644 index 7c1a8a82f0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_prop_test.properties +++ /dev/null @@ -1,22 +0,0 @@ -# -# Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -# -# This properties file is not used for anything but a negative tests -# - -bogus.prop = "not used for anything" - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_xhtml_test.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_xhtml_test.xhtml deleted file mode 100644 index 08b756029d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/neg_xhtml_test.xhtml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - TODO supply a title - - -

- DO NOTHING! -

- - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/red.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/red.xhtml deleted file mode 100644 index 6fe6e10a05..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/red.xhtml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - Navigation Point - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/start.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/start.xhtml deleted file mode 100644 index 8b17130114..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/start.xhtml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - Navigation Point - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/stop.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/stop.xhtml deleted file mode 100644 index 73b038fbe8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/common/resources/stop.xhtml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - Navigation Point - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/TestServlet.java deleted file mode 100644 index 260ed35806..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/TestServlet.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandler; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.application.ConfigurableNavigationHandler; -import jakarta.faces.application.NavigationCase; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // Test for getNavigationCase(FacesContext, String, String) - public void configNavihandlerGetNavigationCaseTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - String fromAct = "#{bogus.postOne}"; - - if (application != null) { - ConfigurableNavigationHandler cnh = (ConfigurableNavigationHandler) application - .getNavigationHandler(); - - if (fromAct.equals( - cnh.getNavigationCase(context, fromAct, "").getFromAction())) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL); - } - } - }// End configNavihandlerGetNavigationCaseTest - - // Test for getNavigationCase(FacesContext, String, String) throws - // NullPointerException - public void configNavihandlerGetNavigationCaseNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application != null) { - ConfigurableNavigationHandler cnh = (ConfigurableNavigationHandler) application - .getNavigationHandler(); - - try { - cnh.getNavigationCase(null, "#{bogus.postOne}", ""); - out.println(JSFTestUtil.FAIL - + ": Expected an exception to be thrown, but nothing was!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Expected NullPointerException to be thrown!"); - e.printStackTrace(); - } - } - }// End configNavihandlerGetNavigationCaseNPETest - - // Test for getNavigationCases(FacesContext, String, String) - public void configNavihandlerGetNavigationCasesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - List goldActs = new ArrayList(); - goldActs.add("#{bogus.postOne}"); - goldActs.add("#{bogus.postTwo}"); - - if (application != null) { - ConfigurableNavigationHandler cnh = (ConfigurableNavigationHandler) application - .getNavigationHandler(); - - Map> navCases = cnh.getNavigationCases(); - - Iterator>> itr = navCases.entrySet() - .iterator(); - - while (itr.hasNext()) { - Entry> entry = itr.next(); - - String key = (String) entry.getKey(); - - Iterator navItr = entry.getValue().iterator(); - while (navItr.hasNext()) { - NavigationCase navi = navItr.next(); - String result = navi.getFromAction(); - - if (!(goldActs.contains(result))) { - out.println(JSFTestUtil.FAIL + " Expected " + result - + " to be in 'from-view-id: " + key); - return; - } - } - } - - out.println(JSFTestUtil.PASS); - } - - }// End configNavihandlerGetNavigationCasesTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/URLClient.java deleted file mode 100644 index 9997fa2573..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/URLClient.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandler; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_confignavihandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: configNavihandlerGetNavigationCaseTest - * @assertion_ids: JSF:JAVADOC:209; JSF:JAVADOC:210 - * @test_Strategy: Validate the return of a NavigationCase by testing the - * 'fromAction' tag. - */ - public void configNavihandlerGetNavigationCaseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "configNavihandlerGetNavigationCaseTest"); - invoke(); - } - - /** - * @testName: configNavihandlerGetNavigationCaseNPETest - * @assertion_ids: JSF:JAVADOC:209; JSF:JAVADOC:211 - * @test_Strategy: Validate that we get a NullPointerException when - * FacesContext is null. - */ - public void configNavihandlerGetNavigationCaseNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "configNavihandlerGetNavigationCaseNPETest"); - invoke(); - } - - /** - * @testName: configNavihandlerGetNavigationCasesTest - * @assertion_ids: JSF:JAVADOC:209; JSF:JAVADOC:212 - * @test_Strategy: Validate that we get a Map of NavigationCases. - */ - public void configNavihandlerGetNavigationCasesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "configNavihandlerGetNavigationCasesTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/build.xml deleted file mode 100644 index aefecbb56f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/faces-config.xml deleted file mode 100644 index 8ddd3930c2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/faces-config.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - * - - #{bogus.postOne} - /one.xhtml - - - id - #{noWhere.landOne} - - - - - #{bogus.postTwo} - /two.xhtml - - - id - #{noWhere.landTwo} - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.war.sun-web.xml deleted file mode 100644 index f89e7ad92b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_confignavihandler_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.xml deleted file mode 100644 index 0224e780d8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandler/jsf_appl_confignavihandler_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_confignavihandler - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandler.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/TestServlet.java deleted file mode 100644 index 1f5d914d6e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/TestServlet.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandlerwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.application.ConfigurableNavigationHandler; -import jakarta.faces.application.ConfigurableNavigationHandlerWrapper; -import jakarta.faces.application.NavigationCase; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // Test for getNavigationCase(FacesContext, String, String) - public void configNavihandlerwprGetNavigationCaseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - String fromAct = "#{bogus.postOne}"; - - if (application != null) { - ConfigurableNavigationHandler cnh = new TCKConfNaviHandler(); - - if (fromAct.equals( - cnh.getNavigationCase(context, fromAct, "").getFromAction())) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL); - } - } - }// End configNavihandlerwprGetNavigationCaseTest - - // Test for getNavigationCase(FacesContext, String, String) throws - // NullPointerException - public void configNavihandlerwprGetNavigationCaseNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application != null) { - ConfigurableNavigationHandler cnh = new TCKConfNaviHandler(); - - try { - cnh.getNavigationCase(null, "#{bogus.postOne}", ""); - out.println(JSFTestUtil.FAIL - + ": Expected an exception to be thrown, but nothing was!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + ": Expected NullPointerException to be thrown!"); - e.printStackTrace(); - } - } - }// End configNavihandlerwprGetNavigationCaseNPETest - - // Test for getNavigationCases(FacesContext, String, String) - public void configNavihandlerwprGetNavigationCasesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - List goldActs = new ArrayList(); - goldActs.add("#{bogus.postOne}"); - goldActs.add("#{bogus.postTwo}"); - - if (application != null) { - ConfigurableNavigationHandler cnh = new TCKConfNaviHandler(); - - Map> navCases = cnh.getNavigationCases(); - - Iterator>> itr = navCases.entrySet() - .iterator(); - - while (itr.hasNext()) { - Entry> entry = itr.next(); - - String key = (String) entry.getKey(); - - Iterator navItr = entry.getValue().iterator(); - while (navItr.hasNext()) { - NavigationCase navi = navItr.next(); - String result = navi.getFromAction(); - - if (!(goldActs.contains(result))) { - out.println(JSFTestUtil.FAIL + " Expected " + result - + " to be in 'from-view-id: " + key); - return; - } - } - } - - out.println(JSFTestUtil.PASS); - } - - }// End configNavihandlerwprGetNavigationCasesTest - - // ------------------------------------------------------------------ private - // classes - - private class TCKConfNaviHandler - extends ConfigurableNavigationHandlerWrapper { - Application application = getApplication(); - - @Override - public ConfigurableNavigationHandler getWrapped() { - return (ConfigurableNavigationHandler) application.getNavigationHandler(); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/URLClient.java deleted file mode 100644 index 89c6726be9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/URLClient.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandlerwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_confignavihandlerwpr_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: configNavihandlerwprGetNavigationCaseTest - * @assertion_ids: JSF:JAVADOC:2515; JSF:JAVADOC:2519; JSF:JAVADOC:2516 - * @test_Strategy: Validate the return of a NavigationCase by testing the - * 'fromAction' tag. - * - * @since 2.2 - */ - public void configNavihandlerwprGetNavigationCaseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "configNavihandlerwprGetNavigationCaseTest"); - invoke(); - } - - /** - * @testName: configNavihandlerwprGetNavigationCaseNPETest - * @assertion_ids: JSF:JAVADOC:2515; JSF:JAVADOC:2519; JSF:JAVADOC:2517 - * @test_Strategy: Validate that we get a NullPointerException when - * FacesContext is null. - * - * @since 2.2 - */ - public void configNavihandlerwprGetNavigationCaseNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "configNavihandlerwprGetNavigationCaseNPETest"); - invoke(); - } - - /** - * @testName: configNavihandlerwprGetNavigationCasesTest - * @assertion_ids: JSF:JAVADOC:2515; JSF:JAVADOC:2519; JSF:JAVADOC:2518 - * @test_Strategy: Validate that we get a Map of NavigationCases. - */ - public void configNavihandlerwprGetNavigationCasesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "configNavihandlerwprGetNavigationCasesTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/build.xml deleted file mode 100644 index 82dbfe4e21..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/faces-config.xml deleted file mode 100644 index 8ddd3930c2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/faces-config.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - * - - #{bogus.postOne} - /one.xhtml - - - id - #{noWhere.landOne} - - - - - #{bogus.postTwo} - /two.xhtml - - - id - #{noWhere.landTwo} - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.war.sun-web.xml deleted file mode 100644 index 6b20aa9ec2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.war.sun-web.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jsf_appl_confignavihandlerwpr_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.xml deleted file mode 100644 index 6323892142..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/configurablenavigationhandlerwrapper/jsf_appl_confignavihandlerwpr_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_confignavihandlerwrapper - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.configurablenavigationhandlerwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/TestServlet.java deleted file mode 100644 index ab519e3957..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/TestServlet.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.facesmessage; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.FacesMessage; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - // ------------------------------------------------ Test Declarations ----- - // No-arg constructor - public void facesMessageNoArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - new FacesMessage(); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexected Exception creating new " - + "FacesMessage instance."); - e.printStackTrace(); - } - } - - // arg constructor - public void facesMessageCtor01Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - new FacesMessage(FacesMessage.SEVERITY_INFO, "summary", "detail"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception thrown by " - + "constructor."); - e.printStackTrace(); - } - } - - // FacesMessage(String summary) - public void facesMessageCtorSumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - new FacesMessage("summary"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception thrown by " - + "constructor."); - e.printStackTrace(); - } - } - - // FacesMessage(String summary, String detail) - public void facesMessageCtorSumDetTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - new FacesMessage("summary", "detail"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception thrown by " - + "constructor."); - e.printStackTrace(); - } - } - - // FacesMessage.getServerity() - // FacesMessage.setSeverity(int) - public void facesMessageGetSetSeverityTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - // first, call getSeverity on an instance that was constructed passing - // the severity information in - if (facesMessage.getSeverity().getOrdinal() != FacesMessage.SEVERITY_INFO - .getOrdinal()) { - out.println(JSFTestUtil.FAIL + "Expected FacesMesssage.getServerity() " - + "to return Message.SEVERITY_INFO." + JSFTestUtil.NL - + "Actual severity returned: " + JSFTestUtil - .getSeverityAsString(FacesMessage.SEVERITY_INFO.getOrdinal())); - return; - } - - facesMessage.setSeverity(FacesMessage.SEVERITY_FATAL); - - if (facesMessage.getSeverity().getOrdinal() != FacesMessage.SEVERITY_FATAL - .getOrdinal()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getServerity() to return " - + "Message.SEVERITY_FATAL." + JSFTestUtil.NL - + "Actual severity returned: " + JSFTestUtil - .getSeverityAsString(FacesMessage.SEVERITY_FATAL.getOrdinal())); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesMessage.getSummary() - // FacesMessage.setSummary(String) - public void facesMessageGetSetSummaryTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - - if (!"summary".equals(facesMessage.getSummary())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getSummary() to " - + "return the summary value passed to the FacesMessage " - + "constructor." + JSFTestUtil.NL + "Expected: 'summary'" - + JSFTestUtil.NL + "Received: '" + facesMessage.getSummary() + "'"); - return; - } - - facesMessage.setSummary("newsummary"); - - if (!"newsummary".equals(facesMessage.getSummary())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getSummary() to " - + "return the summary value set by " - + "FacesMessage.setSummary(String)." + JSFTestUtil.NL - + "Expected: 'newsummary'" + JSFTestUtil.NL + "Received: '" - + facesMessage.getSummary() + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesMessage.getDetail() - // FacesMessage.setDetail(String) - public void facesMessageGetSetDetailTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - - if (!"detail".equals(facesMessage.getDetail())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getDetail() to " - + "return the detail value passed to the FacesMessage" - + " constructor." + JSFTestUtil.NL + "Expected: 'detail'" - + JSFTestUtil.NL + "Received: '" + facesMessage.getDetail() + "'"); - return; - } - - facesMessage.setDetail("newdetail"); - - if (!"newdetail".equals(facesMessage.getDetail())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getDetail() to return the " - + "detail value set by FacesMessage.setDetail(String)." - + JSFTestUtil.NL + "Expected: 'newdetail'" + JSFTestUtil.NL - + "Received: '" + facesMessage.getDetail() + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesMessage.rendered() - // FacesMessage.isRendered() - public void facesMessageIsRenderedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - - if (facesMessage.isRendered()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected return from FacesMessage.isRendered() " - + "prior to FacesMessage.rendered()" + "was called!" + JSFTestUtil.NL - + "Expected: 'false'" + JSFTestUtil.NL + "Received: '" - + facesMessage.isRendered() + "'"); - return; - } - - facesMessage.rendered(); - - if (!facesMessage.isRendered()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Unexpected return from FacesMessage.isRendered() " - + "after FacesMessage.rendered() was called!" + JSFTestUtil.NL - + "Expected: 'true'" + JSFTestUtil.NL + "Received: '" - + facesMessage.isRendered() + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesMessage.Severity.compareTo(Object) - public void facesMessageSeverityCompareToTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - int z = 0; - - FacesMessage facesMessageOne = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - - FacesMessage facesMessageTwo = new FacesMessage(FacesMessage.SEVERITY_FATAL, - "summary", "detail"); - - // compare to see that they are the same. - if (z != facesMessageOne.getSeverity() - .compareTo(facesMessageOne.getSeverity())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected test value to equal 0 when Severities " - + "were compared"); - return; - } - - // compare to see that they are the same. - if (z == facesMessageOne.getSeverity() - .compareTo(facesMessageTwo.getSeverity())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected test value to NOT equal 0 when Severities " - + "were compared"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesMessage.Severity.toString() - public void facesMessageSeverityToStringTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesMessage facesMessageOne = new FacesMessage(FacesMessage.SEVERITY_INFO, - "summary", "detail"); - - if (!(facesMessageOne.getSeverity().toString().contains("INFO"))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected FacesMessage.getSeverity().toString() " - + "to contain 'INFO'."); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/URLClient.java deleted file mode 100644 index 83ca3bf8e9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/URLClient.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.facesmessage; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_facesmessage_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: facesMessageNoArgCtorTest - * @assertion_ids: JSF:JAVADOC:215 - * @test_Strategy: Valdiate a FacesMessage instance can be created using a - * no-arg constructor with no Exceptions thrown. - */ - public void facesMessageNoArgCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageNoArgCtorTest"); - invoke(); - } - - /** - * @testName: facesMessageCtor01Test - * @assertion_ids: JSF:JAVADOC:218 - * @test_Strategy: Validate FacesMessage(int, String, String) creates a new - * FacesMessage instance with no Exceptions thrown. - */ - public void facesMessageCtor01Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageCtor01Test"); - invoke(); - } - - /** - * @testName: facesMessageCtorSumTest - * @assertion_ids: JSF:JAVADOC:216 - * @test_Strategy: Validate FacesMessage(String summary) creates a new - * FacesMessage instance with no Exceptions thrown. - */ - public void facesMessageCtorSumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageCtorSumTest"); - invoke(); - } - - /** - * @testName: facesMessageCtorSumDetTest - * @assertion_ids: JSF:JAVADOC:217 - * @test_Strategy: Validate FacesMessage(String summary, String detail) - * creates a new FacesMessage instance with no Exceptions - * thrown. - */ - public void facesMessageCtorSumDetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageCtorSumDetTest"); - invoke(); - } - - /** - * @testName: facesMessageGetSetSeverityTest - * @assertion_ids: JSF:JAVADOC:220; JSF:JAVADOC:225; JSF:JAVADOC:229 - * @test_Strategy: Validate the proper severity is returned in the following - * cases: - FacesMessage created passing severity information - * via the constructor. - FacesMessage.setSeverity(int) is - * called. - */ - public void facesMessageGetSetSeverityTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageGetSetSeverityTest"); - invoke(); - } - - /** - * @testName: facesMessageGetSetSummaryTest - * @assertion_ids: JSF:JAVADOC:221; JSF:JAVADOC:227 - * @test_Strategy: Validate the proper summary is returned in the following - * cases: - FacesMessage created passing summary information - * via the constructor. - FacesMessage.setSummary(String) is - * called. - */ - public void facesMessageGetSetSummaryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageGetSetSummaryTest"); - invoke(); - } - - /** - * @testName: facesMessageGetSetDetailTest - * @assertion_ids: JSF:JAVADOC:219; JSF:JAVADOC:224 - * @test_Strategy: Validate the proper detail is returned in the following - * cases: - FacesMessage created passing detail information - * via the constructor. - FacesMessage.setDetail(String) is - * called. - */ - public void facesMessageGetSetDetailTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageGetSetDetailTest"); - invoke(); - } - - /** - * @testName: facesMessageIsRenderedTest - * @assertion_ids: JSF:JAVADOC:222; JSF:JAVADOC:223 - * @test_Strategy: Validate that FacesMessage.isRendered() returns the correct - * boolean values pre/post FacesMessage.rendered() being - * called. - */ - public void facesMessageIsRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageIsRenderedTest"); - invoke(); - } - - /** - * @testName: facesMessageSeverityCompareToTest - * @assertion_ids: JSF:JAVADOC:228 - * @test_Strategy: Validate that FacesMessage.Severity.compareTo returns the - * correct Int value "0" based on the test conditions. - */ - public void facesMessageSeverityCompareToTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageSeverityCompareToTest"); - invoke(); - } - - /** - * @testName: facesMessageSeverityToStringTest - * @assertion_ids: JSF:JAVADOC:230 - * @test_Strategy: Validate that FacesMessage.Severity.toString returns the - * correct value. - */ - public void facesMessageSeverityToStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesMessageSeverityToStringTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/build.xml deleted file mode 100644 index 6604b1a92f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.war.sun-web.xml deleted file mode 100644 index 2ca79392ad..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_facesmessage_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.xml deleted file mode 100644 index 87e56b5577..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/facesmessage/jsf_appl_facesmessage_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_facesmessage - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.facesmessage.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/TestServlet.java deleted file mode 100644 index d8c47281d6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/TestServlet.java +++ /dev/null @@ -1,413 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationcase; - -import java.io.IOException; -import java.io.PrintWriter; -import java.net.URL; -import java.util.HashSet; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.navigation.TCKNavigationCase; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.application.ConfigurableNavigationHandler; -import jakarta.faces.application.NavigationCase; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // Test for .getNavigationCase(FacesContext, String, String) - public void navigationCaseEqualsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - NavigationCase result = this.getResultCase(context, application, viewId, - myNav, "#{color.result}", "Blue"); - - if (testCase.equals(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCases should be equal to each other, when calling " - + "NavigationCase.equals()."); - } - - }// End navigationCaseEqualsTest - - // Test for .getActionURL(FacesContext) - public void navigationCaseGetActionURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - URL golden = testCase.getActionURL(context); - URL result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getActionURL(context); - - if (golden.sameFile(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's URLs should be equal to each other, when calling " - + "NavigationCase.getActionURL()." + JSFTestUtil.NL + "Expected: " - + golden.toString() + JSFTestUtil.NL + "Received: " - + result.toString()); - } - - }// End navigationCaseGetActionURLTest - - // Test for .getRedirectURL(FacesContext) - public void navigationCaseGetRedirectURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - context.getViewRoot().setViewId("/stop.xhtml"); - - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - URL golden = testCase.getRedirectURL(context); - URL result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getRedirectURL(context); - - if (golden.sameFile(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's URLs should be equal to each other, when calling " - + "NavigationCase.getRedirectURL()." + JSFTestUtil.NL + "Expected: " - + golden.toString() + JSFTestUtil.NL + "Received: " - + result.toString()); - } - - }// End navigationCaseGetRedirectURLTest - - // Test for .getBookmarkableURL(FacesContext) - public void navigationCaseGetBookmarkableURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - URL golden = testCase.getBookmarkableURL(context); - URL result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getBookmarkableURL(context); - - if (golden.sameFile(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's URLs should be equal to each other, when calling " - + "getBookMarkableURL()." + JSFTestUtil.NL + "Expected: " - + golden.toString() + JSFTestUtil.NL + "Received: " - + result.toString()); - } - - }// End navigationCaseGetBookmarkableURLTest - - // Test for .getCondition(FacesContext) - public void navigationCaseGetConditionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - NavigationCase result = this.getResultCase(context, application, viewId, - myNav, "#{color.result}", "Blue"); - - if (result.getCondition(context)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected: NavigationCase.getCondition(FacesContext) to return 'true'"); - } - - }// End navigationCaseGetConditionTest - - // Test for .hasCondition(FacesContext) - public void navigationCaseHasConditionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - NavigationCase result = this.getResultCase(context, application, viewId, - myNav, "#{color.result}", "Blue"); - - if (result.hasCondition()) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected: NavigationCase.hasCondition(FacesContext) to return 'true'"); - } - - }// End navigationCaseHasConditionTest - - // Test for .getFromAction() - public void navigationGetFromActionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - String golden = testCase.getFromAction(); - String result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getFromAction(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's from-actions should be equal to each other, when calling " - + "getFromAction()." + JSFTestUtil.NL + "Expected: " + golden - + JSFTestUtil.NL + "Received: " + result); - } - - }// End navigationGetFromActionTest - - // Test for .getFromOutcome() - public void navigationGetFromOutcomeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - String golden = testCase.getFromOutcome(); - String result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getFromOutcome(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's from-actions should be equal to each other, when calling " - + "getFromOutcome()." + JSFTestUtil.NL + "Expected: " + golden - + JSFTestUtil.NL + "Received: " + result); - } - - }// End navigationGetFromOutcomeTest - - // Test for .getFromViewId() - public void navigationGetFromViewIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - String golden = testCase.getFromViewId(); - String result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getFromViewId(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's from-viewIds should be equal to each other, when calling " - + "getFromViewId()." + JSFTestUtil.NL + "Expected: " + golden - + JSFTestUtil.NL + "Received: " + result); - } - - }// End navigationGetFromViewIdTest - - // Test for .getToViewId(FacesContext) - public void navigationGetToViewIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("blue"); - myNav.add(testCase); - - String golden = testCase.getToViewId(context); - String result = this.getResultCase(context, application, viewId, myNav, - "#{color.result}", "Blue").getToViewId(context); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "NavigationCase's to-viewIds should be equal to each other, when calling " - + "getToViewId(FacesContext)." + JSFTestUtil.NL + "Expected: " - + golden + JSFTestUtil.NL + "Received: " + result); - } - - }// End navigationGetToViewIdTest - - // Test for .isRedirect() - public void navigationIsRedirectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("green"); - myNav.add(testCase); - - NavigationCase result = this.getResultCase(context, application, viewId, - myNav, "#{color.result}", ""); - - if (result.isRedirect()) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected: NavigationCase.isRedirect() to return 'true'"); - } - - }// End navigationIsRedirectTest - - // Test for .isIncludeViewParams() - public void navigationIsIncludeViewParamsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = FacesContext.getCurrentInstance(); - Application application = getApplication(); - Set myNav = new HashSet(); - - String viewId = "/stop.xhtml"; - context.getViewRoot().setViewId(viewId); - - // Golden NavigationCase. - NavigationCase testCase = TCKNavigationCase.getCase("green"); - myNav.add(testCase); - - NavigationCase result = this.getResultCase(context, application, viewId, - myNav, "#{color.result}", ""); - - if (result.isIncludeViewParams()) { - out.println(JSFTestUtil.PASS); - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected: NavigationCase.isIncludeViewParams() to return 'true'"); - } - - }// End navigationIsIncludeViewParamsTest - - // ------------------- private/protected methods ------------------ - private NavigationCase getResultCase(FacesContext context, - Application application, String viewId, Set navSet, - String fromAction, String fromOutCome) { - NavigationCase result = null; - - if (application != null && context != null && navSet != null) { - ConfigurableNavigationHandler cnh = (ConfigurableNavigationHandler) application - .getNavigationHandler(); - - // Add NavigationCase to NavigationHandler's Map. - cnh.getNavigationCases().put(viewId, navSet); - - // retrieve newly added NavigationCase. - result = cnh.getNavigationCase(context, fromAction, fromOutCome); - } - - return result; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/URLClient.java deleted file mode 100644 index d187eb44ec..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/URLClient.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationcase; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_navigationcase_web"; - - private static final String VIEWID = "/faces/stop.xhtml"; - - private static final String BUTTON_NAME = "Blue"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: navigationCaseEqualsTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:231 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.equals(). - */ - public void navigationCaseEqualsTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseEqualsTest"); - invoke(); - } - - /** - * @testName: navigationCaseGetActionURLTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:232 - * @test_Strategy: Validate we get an absolute URL to this NavigationCase - * instance. - */ - public void navigationCaseGetActionURLTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseGetActionURLTest"); - invoke(); - } - - /** - * @testName: navigationCaseGetRedirectURLTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:242 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getRedirect(). - */ - public void navigationCaseGetRedirectURLTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseGetRedirectURLTest"); - invoke(); - } - - /** - * @testName: navigationCaseGetBookmarkableURLTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:234 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getBookmarkableURL(). - */ - public void navigationCaseGetBookmarkableURLTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseGetBookmarkableURLTest"); - invoke(); - } - - /** - * @testName: navigationCaseGetConditionTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:236 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getCondition(). - */ - public void navigationCaseGetConditionTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseGetConditionTest"); - invoke(); - } - - /** - * @testName: navigationCaseHasConditionTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:247 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.hasCondition(). - */ - public void navigationCaseHasConditionTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationCaseHasConditionTest"); - invoke(); - } - - /** - * @testName: navigationGetFromActionTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:238 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getFromAction(); - */ - public void navigationGetFromActionTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationGetFromActionTest"); - invoke(); - } - - /** - * @testName: navigationGetFromOutcomeTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:239 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getFromOutcome(); - */ - public void navigationGetFromOutcomeTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationGetFromOutcomeTest"); - invoke(); - } - - /** - * @testName: navigationGetFromViewIdTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:240 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getFromViewId(); - */ - public void navigationGetFromViewIdTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationGetFromViewIdTest"); - invoke(); - } - - /** - * @testName: navigationGetToViewIdTest - * @assertion_ids: JSF:JAVADOC:246; JSF:JAVADOC:251; JSF:JAVADOC:240 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.getFromViewId(); - */ - public void navigationGetToViewIdTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationGetToViewIdTest"); - invoke(); - } - - /** - * @testName: navigationIsRedirectTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:250 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.isRedirect(); - */ - public void navigationIsRedirectTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationIsRedirectTest"); - invoke(); - } - - /** - * @testName: navigationIsIncludeViewParamsTest - * @assertion_ids: JSF:JAVADOC:253; JSF:JAVADOC:251; JSF:JAVADOC:249 - * @test_Strategy: Validate we can add a NavigationCase to the - * NavigationHandler's Map and retrieve the correct value back - * from NavigationCase.isIncludeViewParams(); - */ - public void navigationIsIncludeViewParamsTest() throws Fault { - this.preConfig(VIEWID, BUTTON_NAME); - - TEST_PROPS.setProperty(APITEST, "navigationIsIncludeViewParamsTest"); - invoke(); - } - - // --------------------- private/protected methods ------------- - - private void preConfig(String viewRoot, String buttonId) throws Fault { - BaseHtmlClientWrapper bw = new BaseHtmlClientWrapper(); - HtmlPage page; - HtmlSubmitInput button; - - try { - page = (HtmlPage) new WebClient().getPage( - "http://" + _hostname + ":" + _port + CONTEXT_ROOT + viewRoot); - - button = (HtmlSubmitInput) bw.getInputIncludingId(page, buttonId); - button.click(); - - } catch (Exception e) { - throw new Fault(e); - } - } - - // ----------------------------- Inner Classes ---------------------- - - protected class BaseHtmlClientWrapper extends BaseHtmlUnitClient { - - private static final long serialVersionUID = 1L; - - protected HtmlInput getInputIncludingId(HtmlPage root, String id) { - return super.getInputIncludingId(root, id); - } - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/build.xml deleted file mode 100644 index 6cbd64fc2c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/build.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/faces-config.xml deleted file mode 100644 index 6086a2d64e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/faces-config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.war.sun-web.xml deleted file mode 100644 index 3fb3d9e6ae..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_navigationcase_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.xml deleted file mode 100644 index dcf7a7cc85..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationcase/jsf_appl_navigationcase_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_navigationcase - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationcase.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/TestServlet.java deleted file mode 100644 index 0ede20eddf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/TestServlet.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationhandler; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // Test for HandleNavigationCase(FacesContext, String, String) throws - // NullPointerException - public void navigationHandlerHandleNavigationCaseNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - if (application == null) { - out.println(JSFTestUtil.APP_NULL_MSG); - return; - } - - NavigationHandler nh = application.getNavigationHandler(); - - JSFTestUtil.checkForNPE(nh, "handleNavigation", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { null, "#{bogus.postOne}", "" }, out); - - }// End navigationHandlerHandleNavigationCaseNPETest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/URLClient.java deleted file mode 100644 index 5a79b647c8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/URLClient.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationhandler; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_navigationhandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: navigationHandlerHandleNavigationCaseNPETest - * @assertion_ids: JSF:JAVADOC:255; JSF:JAVADOC:254 - * @test_Strategy: Validate that we get a NullPointerException when - * FacesContext is null. - */ - public void navigationHandlerHandleNavigationCaseNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "navigationHandlerHandleNavigationCaseNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/build.xml deleted file mode 100644 index 6bdb464b5e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/faces-config.xml deleted file mode 100644 index 8ddd3930c2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/faces-config.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - * - - #{bogus.postOne} - /one.xhtml - - - id - #{noWhere.landOne} - - - - - #{bogus.postTwo} - /two.xhtml - - - id - #{noWhere.landTwo} - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.war.sun-web.xml deleted file mode 100644 index 0df45ea148..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_navigationhandler_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.xml deleted file mode 100644 index 0f007a3f5f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/navigationhandler/jsf_appl_navigationhandler_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_navigationhandler - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.navigationhandler.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/TestServlet.java deleted file mode 100644 index 2110a37fc3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/TestServlet.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.protectedviewex; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.ProtectedViewException; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // ------------------------------------------------------------------- Tests - - public void protectViewExceptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Throwable tckException = new TCKException(); - - // protectedViewException(java.lang.String message) - ProtectedViewException exOne = new ProtectedViewException("Vocals"); - - if (!(this.checkMessage(exOne, "Vocals", out))) { - return; - } - - // ProtectedViewException(java.lang.String message, - // java.lang.Throwable cause) - ProtectedViewException exTwo = new ProtectedViewException("Vocals", - tckException); - - if (!(this.checkMessage(exOne, "Vocals", out) - && this.checkCause(exTwo, "TCKException", out))) { - return; - } - - // ProtectedViewException(java.lang.Throwable rootCause) - ProtectedViewException exThree = new ProtectedViewException(tckException); - - if (!(this.checkCause(exThree, "TCKException", out))) { - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ---------------------------------------------- private methods - - private Boolean checkMessage(ProtectedViewException vee, String expectedMess, - PrintWriter out) { - String resultMess = vee.getMessage(); - - if (resultMess == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewExpiredException.getMessage() returned null when " - + "not expected too!"); - - return false; - } - - if (!resultMess.contains(expectedMess)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Message does not contain initially set message!" + JSFTestUtil.NL - + "Expected: " + expectedMess + JSFTestUtil.NL + "Received: " - + resultMess); - - return false; - } - - return true; - } - - private Boolean checkCause(ProtectedViewException vee, String expectedCause, - PrintWriter out) { - String resultCause = vee.getCause().getClass().getSimpleName(); - - if (resultCause == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewExpiredException.getCause() returned null when " - + "not expected too!"); - return false; - - } - - if (!resultCause.contains(expectedCause)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Cause does not contain Initially set cause!" + JSFTestUtil.NL - + "Expected: " + expectedCause + JSFTestUtil.NL + "Received: " - + resultCause); - return false; - - } - - return true; - } - - // ----------------------------------------------------------- private - // classes - - private class TCKException extends Throwable { - // this class does not thing other then server as a none SE Exception - // for this testcase. - - } - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/URLClient.java deleted file mode 100644 index b40c0be592..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/URLClient.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.protectedviewex; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_protectedviewex_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: protectViewExceptionTest - * @assertion_ids: JSF:JAVADOC:2685; JSF:JAVADOC:2686; JSF:JAVADOC:2687; - * JSF:JAVADOC:2688 - * @test_Strategy: Validated that we are able to call the following - * constructors, and then call getViewId() & getMessage & - * getCause to confirm the proper data had been set or not - * set. - * - * - ProtectedViewException(java.lang.Throwable rootCause) - - * ProtectedViewException(java.lang.String message, - * java.lang.Throwable cause) - public - * ProtectedViewException(java.lang.String message) - public - * ProtectedViewException() - * - * @since 2.0 - */ - public void protectViewExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "protectViewExceptionTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/build.xml deleted file mode 100644 index 59c0492e23..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.war.sun-web.xml deleted file mode 100644 index 3ac785aa32..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_protectedviewex_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.xml deleted file mode 100644 index 6add30bd4c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/protectedviewex/jsf_appl_protectedviewex_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_protectedviewex - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.protectedviewex.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/TestServlet.java deleted file mode 100644 index edaea51dd4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/TestServlet.java +++ /dev/null @@ -1,453 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resource; - -import java.io.IOException; -import java.io.InputStream; -import java.io.PrintWriter; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - private static final String RESOURCE_NAME = "duke-boxer.gif"; - - private static final String LIBRARY_NAME = "images"; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - // ------------------------------------------------------------------- Tests - // Test for Resource.getContentType() - public void resourceGetContentTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - Resource resource = handler.createResource(RESOURCE_NAME); - - if (!"image/gif".equals(resource.getContentType())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: image/gif" - + JSFTestUtil.NL + "Received: " + resource.getContentType()); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test for Resource.setContentType() - public void resourceSetContentTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - Resource resource = handler.createResource(RESOURCE_NAME); - resource.setContentType("plain/text"); - - if (!"plain/text".equals(resource.getContentType())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: plain/text" - + JSFTestUtil.NL + "Received: " + resource.getContentType()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getInputStream - public void resourceGetInputStreamTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - Resource resource = handler.createResource(RESOURCE_NAME); - - if (!(resource.getInputStream().read() > 0)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Resource.getInputStream returned zero bits!"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getLibraryName - public void resourceGetLibraryNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME, LIBRARY_NAME); - - if (!LIBRARY_NAME.equals(resource.getLibraryName())) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " + LIBRARY_NAME - + JSFTestUtil.NL + "Recieved: " + resource.getLibraryName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getLibraryName - public void resourceGetLibraryNameNullTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME, null); - - if (!(null == resource.getLibraryName())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: null" - + JSFTestUtil.NL + "Recieved: " + resource.getLibraryName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.setLibraryName - public void resourceSetLibraryNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME, LIBRARY_NAME); - - resource.setLibraryName("Sun"); - - if (!"Sun".equals(resource.getLibraryName())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected Library Name!" - + JSFTestUtil.NL + "Expected: Sun" + JSFTestUtil.NL + "Recieved: " - + resource.getLibraryName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getRequestPath - public void resourceGetRequestPathTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME); - - String expected = "/jsf_appl_resource_web/TestServlet/" - + "jakarta.faces.resource/" + RESOURCE_NAME; - - if (!expected.equals(resource.getRequestPath())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Recieved: " + resource.getRequestPath()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getRequestPath with Library - public void resourceGetRequestPathLibTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource. - Resource resource = handler.createResource(RESOURCE_NAME, LIBRARY_NAME); - - String expected = "/jsf_appl_resource_web/TestServlet/" - + "jakarta.faces.resource/" + RESOURCE_NAME + "?ln=" + LIBRARY_NAME; - - if (!expected.equals(resource.getRequestPath())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Recieved: " + resource.getRequestPath()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getURL - public void resourceGetURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource & set expected test result. - Resource resource = handler.createResource(RESOURCE_NAME); - int expected = 2947; - - InputStream is = resource.getURL().openStream(); - int result = 0; - while (is.read() != -1) { - result++; - } - - if (!(expected == result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Recieved: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.toString - public void resourceToStringTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource & set expected test result. - Resource resource = handler.createResource(RESOURCE_NAME); - String expected = "/jsf_appl_resource_web/TestServlet/" - + "jakarta.faces.resource/" + RESOURCE_NAME; - - if (!expected.equals(resource.toString())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Conversions '.toString'!" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Recieved: " - + resource.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.userAgentNeedsUpdate - public void resourceUserAgentNeedsUpdateTrueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME); - boolean result = resource.userAgentNeedsUpdate(getFacesContext()); - - if (!result) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for 'userAgentNeedsUpdate'!" + JSFTestUtil.NL - + "Expected: " + true + JSFTestUtil.NL + "Recieved: " + result); - - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.getResponseHeaders - public void resourceGetResponseHeadersTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource - Resource resource = handler.createResource(RESOURCE_NAME); - - try { - Object result = resource.getResponseHeaders(); - - if (!(result instanceof Map)) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: Class Type Map" - + JSFTestUtil.NL + "Recieved: " + result.getClass().getName()); - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println("Test FAILED. Unexpected Exception thrown!"); - e.printStackTrace(); - } - - } - - // Test for Resource.getResourceName - public void resourceGetResourceNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource & - Resource resource = handler.createResource(RESOURCE_NAME); - - if (!RESOURCE_NAME.equals(resource.getResourceName())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for resource name" + JSFTestUtil.NL + "Expected: " - + RESOURCE_NAME + JSFTestUtil.NL + "Recieved: " - + resource.getResourceName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.setResourceName - public void resourceSetResourceNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource & reset the resource name. - Resource resource = handler.createResource(RESOURCE_NAME); - resource.setResourceName("Dukie"); - - if (!"Dukie".equals(resource.getResourceName())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for resource name" + JSFTestUtil.NL - + "Expected: Dukie" + JSFTestUtil.NL + "Recieved: " - + resource.getResourceName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for Resource.setResourceName NPE - public void resourceSetResourceNameNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // create the resource & reset the resource name. - Resource resource = handler.createResource(RESOURCE_NAME); - - JSFTestUtil.checkForNPE(resource, "setResourceName", - new Class[] { String.class }, new Object[] { null }, out); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/URLClient.java deleted file mode 100644 index bf849759f6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/URLClient.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resource; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_resource_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: resourceGetContentTypeTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:258 - * @test_Strategy: Validate that the correct MIME type is returned. - * - * @since 2.0 - */ - public void resourceGetContentTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetContentTypeTest"); - invoke(); - } - - /** - * @testName: resourceGetInputStreamTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:259 - * @test_Strategy: Validate That an InputStream is returned if the request is - * a resource request. - * - * @since 2.0 - */ - public void resourceGetInputStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetInputStreamTest"); - invoke(); - } - - /** - * @testName: resourceGetLibraryNameTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:261 - * @test_Strategy: Validate that the correct Library name is returned when the - * following have been set on the resource. - * - * -resourceName -libraryName - * - * @since 2.0 - */ - public void resourceGetLibraryNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetLibraryNameTest"); - invoke(); - } - - /** - * @testName: resourceSetContentTypeTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:267 - * @test_Strategy: Validate that the correct MIME type gets set. - * - * @since 2.0 - */ - public void resourceSetContentTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceSetContentTypeTest"); - invoke(); - } - - /** - * @testName: resourceSetLibraryNameTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:268 - * @test_Strategy: Validate that the correct Library name is returned when the - * following have been set on the resource. And the name has - * been reset. - * - * -resourceName -libraryName - * - * @since 2.0 - */ - public void resourceSetLibraryNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceSetLibraryNameTest"); - invoke(); - } - - /** - * @testName: resourceGetLibraryNameNullTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:261 - * @test_Strategy: Validate that the correct Library name is returned when the - * following have been set on resource. - * - * -resourceName -libraryName(set to null) - * - * @since 2.0 - */ - public void resourceGetLibraryNameNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetLibraryNameNullTest"); - invoke(); - } - - /** - * @testName: resourceGetRequestPathTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:262 - * @test_Strategy: Validate that the correct resource path is returned. - * - * @since 2.0 - */ - public void resourceGetRequestPathTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetRequestPathTest"); - invoke(); - } - - /** - * @testName: resourceGetRequestPathLibTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:262 - * @test_Strategy: Validate that the correct resource path is returned when a - * libraryName is given during the creation of the resource. - * - * @since 2.0 - */ - public void resourceGetRequestPathLibTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetRequestPathLibTest"); - invoke(); - } - - /** - * @testName: resourceGetURLTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:265 - * @test_Strategy: Validate that the correct URL is returned. - * - * @since 2.0 - */ - public void resourceGetURLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetURLTest"); - invoke(); - } - - /** - * @testName: resourceToStringTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:271 - * @test_Strategy: Validate that the correct String represention is returned. - * - * @since 2.0 - */ - public void resourceToStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceToStringTest"); - invoke(); - } - - /** - * @testName: resourceUserAgentNeedsUpdateTrueTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:272 - * @test_Strategy: Validate that the user-agent requesting the resource needs - * an update. (Return true) - * - * @since 2.0 - */ - public void resourceUserAgentNeedsUpdateTrueTest() throws Fault { - TEST_PROPS.setProperty(REQUEST_HEADERS, - "If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT"); - TEST_PROPS.setProperty(APITEST, "resourceUserAgentNeedsUpdateTrueTest"); - invoke(); - } - - /** - * @testName: resourceGetResponseHeadersTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:264 - * @test_Strategy: Validate that a Map Object is returned. - * - * @since 2.0 - */ - public void resourceGetResponseHeadersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetResponseHeadersTest"); - invoke(); - } - - /** - * @testName: resourceGetResourceNameTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:263 - * @test_Strategy: Validate that the correct Resource Name is returned. - * - * @since 2.0 - */ - public void resourceGetResourceNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceGetResourceNameTest"); - invoke(); - } - - /** - * @testName: resourceSetResourceNameTest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:269 - * @test_Strategy: Validate that the correct Resource Name is returned after - * setting it. - * - * @since 2.0 - */ - public void resourceSetResourceNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceSetResourceNameTest"); - invoke(); - } - - /** - * @testName: resourceSetResourceNameNPETest - * @assertion_ids: JSF:JAVADOC:266; JSF:JAVADOC:270 - * @test_Strategy: Validate when a null is passed in, a NullPointerException - * is thrown. - * - * @since 2.0 - */ - public void resourceSetResourceNameNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceSetResourceNameNPETest"); - invoke(); - } - - // - // TODO: Need to add getInputStreamIOETest... - // -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/build.xml deleted file mode 100644 index a51a8bd81c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.war.sun-web.xml deleted file mode 100644 index 7a28b9fb0d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_resource_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.xml deleted file mode 100644 index 1ca57fdcef..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resource/jsf_appl_resource_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_resource - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.resource.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/TestServlet.java deleted file mode 100644 index c2486b9227..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/TestServlet.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* -* $Id$ -*/ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandler; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Enumeration; -import java.util.Hashtable; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - // ------------------------------------------------------------------- Tests - // ResourceHandler.createResource(resourceName) - public void resourceHandlerCreateResourceNTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Resource not created by Handler"); - e.printStackTrace(); - } - } - - // ResourceHandler.createResource(null) - // ResourceHandler.createResource(null, libraryName) - // ResourceHandler.createResource(null, libraryName, contentType) - public void resourceHandlerCreateResourceNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // ResourceHandler.createResource(null) - JSFTestUtil.checkForNPE(handler, "createResource", - new Class[] { String.class }, new Object[] { null }, out); - - // ResourceHandler.createResource(null, libraryName) - JSFTestUtil.checkForNPE(handler, "createResource", - new Class[] { String.class, String.class }, - new Object[] { null, "style-sheets" }, out); - - // ResourceHandler.createResource(null, libraryName, contentType) - JSFTestUtil.checkForNPE(handler, "createResource", - new Class[] { String.class, String.class, String.class }, - new Object[] { null, "style-sheets", "text/css" }, out); - } - - // ResourceHandler.createResource(resourceName libraryName) - public void resourceHandlerCreateResourceNLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", "style-sheets"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "library/resource not created by Handler"); - e.printStackTrace(); - } - - } - - // ResourceHandler.createResource(resourceName libraryName contentType) - public void resourceHandlerCreateResourceNLCTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", "style-sheets", "text/css"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "library/resource not created by Handler"); - e.printStackTrace(); - } - - } - - // ResourceHandler.createResource(resourceName libraryName null) - public void resourceHandlerCreateResourceContentNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", "style-sheets", null); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ResourceHandler did not except 'null' value for " + "contentType"); - e.printStackTrace(); - } - } - - // ResourceHandler.createResource(resourceName null contentType) - public void resourceHandlerCreateResourceLibNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", null, "text/css"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ResourceHandler did not except 'null' value for " + "libraryName"); - e.printStackTrace(); - } - } - - // ResourceHandler.createResource(resourceName null null) - public void resourceHandlerCreateResourceBothNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", null, null); - out.println("Test PASSED."); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ResourceHandler did not except 'null' value for " - + "libraryName & contentType"); - e.printStackTrace(); - } - - } - - // ResourceHandler.handleResourceRequest() - public void resourceHandlerHandleResourceRequestTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.handleResourceRequest(FacesContext.getCurrentInstance()); - out.println("Test PASSED."); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Call to handleResourceRequest failed see below..."); - e.printStackTrace(); - } - } - - // ResourceHandler.getRendererTypeForResourceName() - public void resourceHandlergetRendererTypeForResourceNameTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - // Expected values in the form of: - Hashtable expectedValues = new Hashtable(); - expectedValues.put("background.css", "jakarta.faces.resource.Stylesheet"); - expectedValues.put("hello.js", "jakarta.faces.resource.Script"); - - Enumeration myKeys = expectedValues.keys(); - while (myKeys.hasMoreElements()) { - String testValue = (String) myKeys.nextElement(); - String expected = expectedValues.get(testValue); - - try { - String result = handler.getRendererTypeForResourceName(testValue); - - if (!expected.equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " - + expected + JSFTestUtil.NL + "Received: " + result); - return; - } - - out.println("Test PASSED."); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + "Unexpectedly!"); - e.printStackTrace(); - } - } - } - - // ResourceHandler.libraryExists() - public void resourceHandlerlibraryExistsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - if (!handler.libraryExists("style-sheets")) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected library named 'style-sheets' to exist!"); - return; - } - - if (handler.libraryExists("bogus-library-name")) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected library named 'bogus-library-name' NOT " + "to exist!"); - return; - } - - out.println("Test PASSED."); - - } - - // ResourceHandler.isResourceRendered() - public void resourceHandlerIsResourceRenderedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - if (handler.isResourceRendered(getFacesContext(), "notrendered", - "notrendered")) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected library 'notrendered' not to be rendered!"); - } - - out.println("Test PASSED."); - - } - - // ResourceHandler.markResourceRendered - public void resourceHandlerMarkResourceRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - if (handler == null) { - out.println(JSFTestUtil.RESHANDLER_NULL_MSG); - return; - } - - try { - handler.createResource("background.css", "style-sheets", "text/css"); - handler.isResourceRendered(getFacesContext(), "background.css", - "style-sheets"); - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "library/resource not created by Handler"); - e.printStackTrace(); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/URLClient.java deleted file mode 100644 index a920c7ebd1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/URLClient.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandler; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_resourcehandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Test Declarations */ - - /** - * @testName: resourceHandlerCreateResourceNTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:277 - * @test_Strategy: Validate that a Resource is created when: - Passing name - * Only.(N) - * - * createResource(String resourceName) - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceNTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerCreateResourceNTest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceNLTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:279 - * @test_Strategy: Validate that a Resource is created when: - Passing name - * and libraryName.(NL) - * - * createResource(String resourceName, String libraryName) - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceNLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerCreateResourceNLTest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceNLCTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:281 - * @test_Strategy: Validate that a Resource is created when: - Passing name, - * libraryName, contentType.(NLC) - * - * createResource(String resourceName, String libraryName, - * String contentType) - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceNLCTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerCreateResourceNLCTest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceNPETest - * @assertion_ids: JSF:JAVADOC:278;JSF:JAVADOC:280;JSF:JAVADOC:282 - * @test_Strategy: Validate that a NullPointerException is thrown when: - - * Passing 'null'. Method(s) Covered: - * ResourceHandler.createResource(null) - * ResourceHandler.createResource(null, libraryName) - * ResourceHandler.createResource(null, libraryName, - * contentType) - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerCreateResourceNPETest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceContentNullTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:281 - * @test_Strategy: Validate that null can be passed into ContentType. - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceContentNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerCreateResourceContentNullTest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceLibNullTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:281 - * @test_Strategy: Validate that null can be passed into LibraryName. - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceLibNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerCreateResourceLibNullTest"); - invoke(); - } - - /** - * @testName: resourceHandlerCreateResourceBothNullTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:281 - * @test_Strategy: Validate that null can be passed into ContentType & - * LibraryName. - * - * @since 2.0 - */ - public void resourceHandlerCreateResourceBothNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerCreateResourceBothNullTest"); - invoke(); - } - - /** - * @testName: resourceHandlerHandleResourceRequestTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:284 - * @test_Strategy: Validate that a call to handleResourceRequest(FacesContext) - * does not throw an Exception. - * - * @since 2.0 - */ - public void resourceHandlerHandleResourceRequestTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerHandleResourceRequestTest"); - invoke(); - } - - /** - * @testName: resourceHandlergetRendererTypeForResourceNameTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:283 - * @test_Strategy: Validate that a call to - * getRendererTypeForResourceName(ResourceName) returns the - * correct RenderedType. - * - * @since 2.0 - */ - public void resourceHandlergetRendererTypeForResourceNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlergetRendererTypeForResourceNameTest"); - invoke(); - } - - /** - * @testName: resourceHandlerlibraryExistsTest - * @assertion_ids: JSF:JAVADOC:288; JSF:JAVADOC:289; JSF:JAVADOC:287 - * @test_Strategy: Validate that a call to libraryExists(libraryName) returns - * true. If the Library exists and false if not. - * - * @since 2.0 - */ - public void resourceHandlerlibraryExistsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerlibraryExistsTest"); - invoke(); - } - - /** - * @testName: resourceHandlerIsResourceRenderedTest - * @assertion_ids: PENDING - * - * @since 2.0 - */ - public void resourceHandlerIsResourceRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerIsResourceRenderedTest"); - invoke(); - } - - /** - * @testName: resourceHandlerMarkResourceRenderedTest - * @assertion_ids: PENDING - * - * @since 2.0 - */ - public void resourceHandlerMarkResourceRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerMarkResourceRenderedTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/build.xml deleted file mode 100644 index b1e92292aa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.war.sun-web.xml deleted file mode 100644 index c8dd930edf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_resourcehandler_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.xml deleted file mode 100644 index 26948b3fbc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandler/jsf_appl_resourcehandler_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_resourcehandler - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandler.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/URLClient.java deleted file mode 100644 index fb10427d80..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/URLClient.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandlerEx; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public final class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_resourcehandlerEx_web"; - - private static final String NOT_FOUND = "404 Not Found"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: resourceHandlerExcludePropertiesTest - * @assertion_ids: JSF:JAVADOC:284 - * @test_Strategy: Validate that a .properties(RESOURCE_EXCLUDES_DEFAULT_VALUE - * constant) files when package as a resource returns a 404 - * when called. - * - * @since 2.0 - */ - public void resourceHandlerExcludePropertiesTest() throws Fault { - HtmlPage page = getPage( - CONTEXT_ROOT + "/faces/resourceHandlerExcludeTest.xhtml"); - HtmlAnchor outputLink = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "properties"); - this.testLink(outputLink); - } - - /** - * @testName: resourceHandlerExcludeClassTest - * @assertion_ids: JSF:JAVADOC:284 - * @test_Strategy: Validate that a .class(RESOURCE_EXCLUDES_DEFAULT_VALUE - * constant) files when package as a resource returns a 404 - * when called. - * - * @since 2.0 - */ - public void resourceHandlerExcludeClassTest() throws Fault { - HtmlPage page = getPage( - CONTEXT_ROOT + "/faces/resourceHandlerExcludeTest.xhtml"); - HtmlAnchor outputLink = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "class"); - this.testLink(outputLink); - } - - /** - * @testName: resourceHandlerExcludeJSPXTest - * @assertion_ids: JSF:JAVADOC:284 - * @test_Strategy: Validate that a .jspx(RESOURCE_EXCLUDES_DEFAULT_VALUE - * constant) files when package as a resource returns a 404 - * when called. - * - * @since 2.0 - */ - public void resourceHandlerExcludeJSPXTest() throws Fault { - HtmlPage page = getPage( - CONTEXT_ROOT + "/faces/resourceHandlerExcludeTest.xhtml"); - HtmlAnchor outputLink = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "jspx"); - this.testLink(outputLink); - } - - /** - * @testName: resourceHandlerExcludeJSPTest - * @assertion_ids: JSF:JAVADOC:284 - * @test_Strategy: Validate that a .jsp(RESOURCE_EXCLUDES_DEFAULT_VALUE - * constant) files when package as a resource returns a 404 - * when called. - * - * @since 2.0 - */ - public void resourceHandlerExcludeJSPTest() throws Fault { - HtmlPage page = getPage( - CONTEXT_ROOT + "/faces/resourceHandlerExcludeTest.xhtml"); - HtmlAnchor outputLink = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "jsp"); - this.testLink(outputLink); - } - - /** - * @testName: resourceHandlerExcludeXHTMLTest - * @assertion_ids: JSF:JAVADOC:284 - * @test_Strategy: Validate that a .xhtml(RESOURCE_EXCLUDES_DEFAULT_VALUE - * constant) files when package as a resource returns a 404 - * when called. - * - * @since 2.0 - */ - public void resourceHandlerExcludeXHTMLTest() throws Fault { - HtmlPage page = getPage( - CONTEXT_ROOT + "/faces/resourceHandlerExcludeTest.xhtml"); - HtmlAnchor outputLink = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "xhtml"); - this.testLink(outputLink); - } - - // --------------------------------------------------------- private methods - private void testLink(HtmlAnchor a) throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - try { - a.click().getWebResponse().getStatusCode(); - - } catch (Exception e) { - if (e instanceof FailingHttpStatusCodeException) { - String returned = e.getMessage(); - if (!returned.contains(NOT_FOUND)) { - System.out.println("MESSAGE: " + e.getMessage()); - formatter.format("Unexpected return status code! %n" - + "Expected: '%s'%n" + "Received: '%s'%n", NOT_FOUND, returned); - handleTestStatus(messages); - return; - } - - } else { - formatter.format("Unexpected Exception! %n" + e.toString()); - handleTestStatus(messages); - return; - } - } - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/build.xml deleted file mode 100644 index 6ff3ba9349..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.war.sun-web.xml deleted file mode 100644 index 5032557835..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_resourcehandlerEx_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.xml deleted file mode 100644 index 421db60668..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/jsf_appl_resourcehandlerEx_web.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - jsf_application_resourcehandlerEx - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/neg_class_test.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/neg_class_test.java deleted file mode 100644 index 0b0360cbaf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerEx/neg_class_test.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandlerEx; - -public class neg_class_test { - - // THIS CLASS DOES NOTHING ITS USED FOR THE SUFFIX ONLY. -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/TestServlet.java deleted file mode 100644 index c5decca72f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/TestServlet.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandlerwrapper; - -//import com.sun.ts.tests.jsf.api.jakarta_faces.application.application.*; -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.ResourceHandlerWrapper; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private static final String RESOURCENAME = "background.css"; - - private static final String LIBNAME = "style-sheets"; - - private static final String MIME = "text/css"; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - public void destroy() { - super.destroy(); - } - - // ------------------------------------------------------------------- Tests - // ResourceHandler.createResource(resourceName) - public void resourceHandlerWrapperCreateResourceNTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - MyRHWrapper whandler = new MyRHWrapper(); - - if (whandler != null) { - Resource resource = whandler.createResource(RESOURCENAME); - this.checkResourceName(resource, RESOURCENAME, out); - - } - } - - // ResourceHandler.createResource(resourceName, libraryName) - public void resourceHandlerWrapperCreateResourceNLTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - MyRHWrapper whandler = new MyRHWrapper(); - - if (whandler != null) { - Resource resource = whandler.createResource(RESOURCENAME, LIBNAME); - this.checkResourceName(resource, RESOURCENAME, out); - this.checkResourceLibName(resource, LIBNAME, out); - - } - } - - // ResourceHandler.createResource(resourceName, libraryName, contentType) - public void resourceHandlerWrapperCreateResourceNLTTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - MyRHWrapper whandler = new MyRHWrapper(); - - if (whandler != null) { - Resource resource = whandler.createResource(RESOURCENAME, LIBNAME, MIME); - this.checkResourceName(resource, RESOURCENAME, out); - this.checkResourceLibName(resource, LIBNAME, out); - this.checkResourceType(resource, MIME, out); - - } - } - - // ResourceHandler.createResource(resourceName, null, null) - public void resourceHandlerWrapperCreateResourceNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler whandler = new MyRHWrapper(); - - if (whandler != null) { - Resource resource = whandler.createResource(RESOURCENAME, null, null); - this.checkResourceName(resource, RESOURCENAME, out); - this.checkResourceLibName(resource, null, out); - this.checkResourceType(resource, MIME, out); - - } - } - - // ResourceHandler.getRendererTypeForResourceName(resourceName) - public void resourceHandlerWrappergetRendererTypeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - MyRHWrapper whandler = new MyRHWrapper(); - String expected = "jakarta.faces.resource.Stylesheet"; - - if (whandler != null) { - whandler.createResource(RESOURCENAME); - String result = whandler.getRendererTypeForResourceName(RESOURCENAME); - - if (expected.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println("Test FAILED. Unexpected renderer-type!" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Received: " + result); - } - - } - } - - // ResourceHandlerWrapper.handleResourceRequest() - public void resourceHandlerWrapperHandleResourceRequestTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = new MyRHWrapper(); - - if (handler != null) { - try { - handler.handleResourceRequest(FacesContext.getCurrentInstance()); - out.println("Test PASSED."); - - } catch (Exception e) { - out.println("Test FAILED."); - out.println("Call to handleResourceRequest failed " + "see below..."); - e.printStackTrace(); - } - } - } - - // ResourceHandlerWrapper.libraryExists() - public void resourceHandlerWrapperLibraryExistsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceHandler handler = new MyRHWrapper(); - - boolean tp = true; - if (handler != null) { - if (handler.libraryExists(LIBNAME)) { - // do nothing the test passed. - } else { - tp = false; - out.println( - "FAILURE: Expected library named " + LIBNAME + " to exist!"); - } - - if (!(handler.libraryExists("bogus-library-name"))) { - // do nothing the test passed. - } else { - tp = false; - out.println("FAILURE: Expected library named " - + "'bogus-library-name' NOT to exist!"); - } - - if (tp) { - out.println("Test PASSED."); - } else { - out.println(JSFTestUtil.FAIL + " See above message(s)"); - } - - } - } - - // ------------------------------------------------------- private methods - /* - * Check Resource Name - */ - private void checkResourceName(Resource res, String name, PrintWriter pw) { - - if (name.equals(res.getResourceName())) { - pw.println("Resource Name Test PASSED"); - } else { - pw.println("Resource Name Test FAILED."); - pw.println("Expected Resource Name: " + RESOURCENAME); - pw.println("Received Resource Name: " + res.getResourceName()); - } - - } - - /* - * Check Resource libraryName - */ - private void checkResourceLibName(Resource res, String libName, - PrintWriter pw) { - - String resource = (null == res.getLibraryName()) ? "null" - : res.getLibraryName(); - - String ln = (null == libName) ? "null" : libName; - - if (ln.equals(resource)) { - pw.println("Library Name Test PASSED"); - } else { - pw.println("Library Name Test FAILED."); - pw.println("Expected Library Name: " + ln); - pw.println("Received Library Name: " + resource); - } - - } - - /* - * Check Resource Type - */ - private void checkResourceType(Resource res, String type, PrintWriter pw) { - - String resource = (null == res.getContentType()) ? "null" - : res.getContentType(); - - String tn = (null == type) ? "null" : type; - - if (tn.equals(resource)) { - pw.println("Content Type Test PASSED"); - } else { - pw.println("Content Type Test FAILED"); - pw.println("Expected Content Type: " + tn); - pw.println("Received Content Type: " + resource); - } - - } - - // ------------------------------------------------------- private classes - /* - * Over ride the getWrapped method on the ResourceHandlerWrapped. - */ - private class MyRHWrapper extends ResourceHandlerWrapper { - - ResourceHandler wrapped = this.getWrapped(); - - @Override - public ResourceHandler getWrapped() { - return getFacesContext().getApplication().getResourceHandler(); - } - - @Override - public String getRendererTypeForResourceName(String arg0) { - return wrapped.getRendererTypeForResourceName(arg0); - } - - @Override - public boolean libraryExists(String arg0) { - return wrapped.libraryExists(arg0); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/URLClient.java deleted file mode 100644 index 1d7ccc7ddb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/URLClient.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandlerwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_resourcehandlerwrapper_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: resourceHandlerWrapperCreateResourceNTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:289; JSF:JAVADOC:298 - * @test_Strategy: Validate that a Resource is created when the following is - * passed in. -resourceName - * - * @since 2.0 - */ - public void resourceHandlerWrapperCreateResourceNTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrapperCreateResourceNTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrapperCreateResourceNLTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:290; JSF:JAVADOC:298 - * @test_Strategy: Validate that a Resource is created when the following is - * passed in. -resourceName -libraryName - * - * @since 2.0 - */ - public void resourceHandlerWrapperCreateResourceNLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrapperCreateResourceNLTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrapperCreateResourceNLTTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:291; JSF:JAVADOC:298 - * @test_Strategy: Validate that a Resource is created when the following is - * passed in. -resourceName -libraryName -contentType - * - * @since 2.0 - */ - public void resourceHandlerWrapperCreateResourceNLTTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrapperCreateResourceNLTTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrapperCreateResourceNullTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:291; JSF:JAVADOC:298 - * @test_Strategy: Validate that a Resource is created when the following is - * passed in. -resourceName -null -null - * - * @since 2.0 - */ - public void resourceHandlerWrapperCreateResourceNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrapperCreateResourceNullTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrappergetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:292; JSF:JAVADOC:298 - * @test_Strategy: Validate that the correct renderer-type is returned - * - * @since 2.0 - */ - public void resourceHandlerWrappergetRendererTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrappergetRendererTypeTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrapperHandleResourceRequestTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:294; JSF:JAVADOC:298 - * @test_Strategy: Validate that ResourceWrapperHandle - * - * @since 2.0 - */ - public void resourceHandlerWrapperHandleResourceRequestTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceHandlerWrapperHandleResourceRequestTest"); - invoke(); - } - - /** - * @testName: resourceHandlerWrapperLibraryExistsTest - * @assertion_ids: JSF:JAVADOC:293; JSF:JAVADOC:297; JSF:JAVADOC:298 - * @test_Strategy: Validate that a call to libraryExists(libraryName) returns - * false if the library does not exist.. - * - * @since 2.0 - */ - public void resourceHandlerWrapperLibraryExistsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceHandlerWrapperLibraryExistsTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/build.xml deleted file mode 100644 index ce560b3f07..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.war.sun-web.xml deleted file mode 100644 index 1c68b841eb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_resourcehandlerwrapper_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.xml deleted file mode 100644 index e55c336b22..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcehandlerwrapper/jsf_appl_resourcehandlerwrapper_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_resourcehandlerwrapper - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcehandlerwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/TestServlet.java deleted file mode 100644 index d973697826..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/TestServlet.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcewrapper; - -//import com.sun.ts.tests.jsf.api.jakarta_faces.application.application.*; -import java.io.IOException; -import java.io.InputStream; -import java.io.PrintWriter; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.application.ResourceWrapper; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /* - * private test values. (These are the expected results!) - */ - private static final String RESOURCE_NAME = "duke-boxer.gif"; - - private static final String LIBRARY_NAME = "images"; - - private static final String RESOURCE_PATH = "/jsf_appl_resourcewrapper_web/TestServlet/jakarta.faces.resource/" - + RESOURCE_NAME; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - public void destroy() { - super.destroy(); - } - - // ------------------------------------------------------------------- Tests - public void resourceWrapperGetInputStreamTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceWrapper wrapped = new TCKResourceWrapper(); - - if (wrapped.getInputStream().read() > 0) { - out.println("Test PASSED."); - - } else { - out.println("Test FAILED."); - out.println("InputSteam Empty"); - } - - } - - public void resourceWrapperGetURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceWrapper wrapped = new TCKResourceWrapper(); - - int expected = 2947; - - InputStream is = wrapped.getURL().openStream(); - int result = 0; - while (is.read() != -1) { - result++; - } - - if (expected == result) { - out.println(JSFTestUtil.PASS); - } else { - out.println("Test FAILED. Unexpected URL Path!"); - out.println("Expected Resource Size: " + expected + " bits"); - out.println("Recieved Resource Size: " + result + " bits"); - } - - } - - public void resourceWrapperGetRequestPathTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceWrapper wrapped = new TCKResourceWrapper(); - - if (RESOURCE_PATH.equals(wrapped.getRequestPath())) { - out.println("Test PASSED."); - - } else { - out.println("Test FAILED. Invalid RequestPath Returned."); - out.println("Expected: " + RESOURCE_PATH); - out.println("Received: " + wrapped.getRequestPath()); - } - - } - - public void resourceWrapperGetRequestPathLibTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceWrapper wrapped = new TCKResourceLibWrapper(); - - String expected = RESOURCE_PATH + "?ln=" + LIBRARY_NAME; - - if (expected.equals(wrapped.getRequestPath())) { - out.println("Test PASSED."); - - } else { - out.println("Test FAILED. Invalid RequestPath Returned."); - out.println("Expected: " + expected); - out.println("Received: " + wrapped.getRequestPath()); - } - - } - - public void resourceWrapperGetResponseHeadersTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceWrapper wrapped = new TCKResourceWrapper(); - - Map rMap = wrapped.getResponseHeaders(); - - if (!(rMap == null)) { - out.println("Test PASSED."); - - } else { - out.println("Test FAILED. Zero Length ResponseHeader Returned."); - } - } - - // ------------------------------------------------------- private classes - /* - * ResourceWrapped. - */ - private class TCKResourceWrapper extends ResourceWrapper { - - @Override - public Resource getWrapped() { - ResourceHandler rh = getFacesContext().getApplication() - .getResourceHandler(); - - Resource resource = rh.createResource(RESOURCE_NAME); - - return resource; - } - } - - private class TCKResourceLibWrapper extends ResourceWrapper { - - @Override - public Resource getWrapped() { - ResourceHandler rh = getFacesContext().getApplication() - .getResourceHandler(); - - Resource resource = rh.createResource(RESOURCE_NAME, LIBRARY_NAME); - - return resource; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/URLClient.java deleted file mode 100644 index 5c51045f97..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/URLClient.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcewrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_resourcewrapper_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: resourceWrapperGetInputStreamTest - * @assertion_ids: JSF:JAVADOC:299; JSF:JAVADOC:305 - * @test_Strategy: Validate that a call to ResourceWrapper.getInputStream - * returns with no errors. - * - * @since 2.0 - */ - public void resourceWrapperGetInputStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceWrapperGetInputStreamTest"); - invoke(); - } - - /** - * @testName: resourceWrapperGetRequestPathTest - * @assertion_ids: JSF:JAVADOC:301; JSF:JAVADOC:304; JSF:JAVADOC:305 - * @test_Strategy: Validate that the correct path is returned. - * - * @since 2.0 - */ - public void resourceWrapperGetRequestPathTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceWrapperGetRequestPathTest"); - invoke(); - } - - /** - * @testName: resourceWrapperGetRequestPathLibTest - * @assertion_ids: JSF:JAVADOC:301; JSF:JAVADOC:304; JSF:JAVADOC:305 - * @test_Strategy: Validate that the correct path is returned. - * - * @since 2.0 - */ - public void resourceWrapperGetRequestPathLibTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceWrapperGetRequestPathLibTest"); - invoke(); - } - - /** - * @testName: resourceWrapperGetURLTest - * @assertion_ids: JSF:JAVADOC:303; JSF:JAVADOC:304; JSF:JAVADOC:305 - * @test_Strategy: Validate that the correct URL is returned. - * - * @since 2.0 - */ - public void resourceWrapperGetURLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceWrapperGetURLTest"); - invoke(); - } - - /** - * @testName: resourceWrapperGetResponseHeadersTest - * @assertion_ids: JSF:JAVADOC:302; JSF:JAVADOC:304; JSF:JAVADOC:305 - * @test_Strategy: Validate that a Map Object is returned. - * - * @since 2.0 - */ - public void resourceWrapperGetResponseHeadersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceWrapperGetResponseHeadersTest"); - invoke(); - } - - // - // TODO: Add resourceWrapperInputStreamIOETest() - // -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/build.xml deleted file mode 100644 index 7c38931f8f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.war.sun-web.xml deleted file mode 100644 index 961e790ceb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_resourcewrapper_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.xml deleted file mode 100644 index 34578ce9f8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/resourcewrapper/jsf_appl_resourcewrapper_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_resourcewrapper - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.resourcewrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/TestServlet.java deleted file mode 100644 index ff8e2eb48a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/TestServlet.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanager; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.Locale; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.StateManager; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.LengthValidator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ---------------------------------------------------------------- Test - // Methods - - // Validation of return value will be performed on the client side. - public void stateManagerIsSavingStateInClientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - out.println(getApplication().getStateManager() - .isSavingStateInClient(getFacesContext())); - } - - // Validate NPE is thrown when context is null - public void stateManagerIsSavingStateInClientNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - try { - getApplication().getStateManager().isSavingStateInClient(null); - out.println("Test FAILED No Exception Thrown!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED Unexpected Exception thrown." + JSFTestUtil.NL - + "Expected: NullPointerException" + JSFTestUtil.NL + "Received: " - + JSFTestUtil.NL + e.toString()); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/URLClient.java deleted file mode 100644 index 950677002e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/URLClient.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanager; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_statemgrs_web.xml"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: stateManagerIsSavingStateInClientTest - * @assertion_ids: JSF:JAVADOC:308 - * @test_Strategy: Ensure isStateSavingInClient() returns the expected value - * based on the context initialization parameter. - */ - public void stateManagerIsSavingStateInClientTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, "GET /jsf_appl_statemgrs_web/TestServlet?" - + "testname=stateManagerIsSavingStateInClientTest HTTP/1.0"); - TEST_PROPS.setProperty(SEARCH_STRING, "false"); - invoke(); - TEST_PROPS.setProperty(REQUEST, "GET /jsf_appl_statemgrc_web/TestServlet?" - + "testname=stateManagerIsSavingStateInClientTest HTTP/1.0"); - TEST_PROPS.setProperty(SEARCH_STRING, "true"); - invoke(); - } - - /** - * @testName: stateManagerIsSavingStateInClientNPETest - * @assertion_ids: JSF:JAVADOC:309 - * @test_Strategy: Ensure isStateSavingInClient() throws a - * NullPointerException when Context is null. - */ - public void stateManagerIsSavingStateInClientNPETest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_appl_statemgrs_web/TestServlet?testname=" - + "stateManagerIsSavingStateInClientNPETest HTTP/1.0"); - TEST_PROPS.setProperty(SEARCH_STRING, "Test PASSED"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/build.xml deleted file mode 100644 index 0d639d4744..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/build.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.war.sun-web.xml deleted file mode 100644 index 845f6aafaa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_statemgrc_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.xml deleted file mode 100644 index b927bea2c5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrc_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_application_statemgr - - jakarta.faces.STATE_SAVING_METHOD - client - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanager.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.war.sun-web.xml deleted file mode 100644 index e05697694d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_statemgrs_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.xml deleted file mode 100644 index 7d3985e130..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanager/jsf_appl_statemgrs_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_application_statemgr - - jakarta.faces.STATE_SAVING_METHOD - server - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanager.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/TestServlet.java deleted file mode 100644 index 495117e975..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/TestServlet.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanagerwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.Locale; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.StateManager; -import jakarta.faces.application.StateManagerWrapper; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.LengthValidator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ---------------------------------------------------------------- Test - // Methods - - // Validation of return value will be performed on the client side. - public void stateManagerIsSavingStateInClientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - StateManager manager = new SimpleStateManagerWrapper( - getApplication().getStateManager()); - out.println(manager.isSavingStateInClient(getFacesContext())); - } - - - // ----------------------------------------------------------- Inner Classes - - private static class SimpleStateManagerWrapper extends StateManagerWrapper { - - StateManager manager; - - // -------------------------------------------------------- Constructors - - SimpleStateManagerWrapper(StateManager manager) { - - super(manager); - if (manager == null) { - throw new IllegalArgumentException( - "StateManager argument cannot be null."); - } - this.manager = manager; - - } // END SimpleStateManagerWrapper - - // ------------------------------------ Methods from StateManagerWrapper - - public StateManager getWrapped() { - - return manager; - - } // END getWrapped - - } // END SimpleStateManagerWrapper - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/URLClient.java deleted file mode 100644 index e727c00389..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/URLClient.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanagerwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_statemgrwraps_web.xml"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: stateManagerIsSavingStateInClientTest - * @assertion_ids: JSF:JAVADOC:326 - * @test_Strategy: Ensure the default behavior of - * StateManagerWraper.isStateSavingInClient() calls through to - * the wrapped StateManager instance and returns the expected - * value based on the context initialization parameter. - * @since 1.2 - */ - public void stateManagerIsSavingStateInClientTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_appl_statemgrwraps_web/TestServlet?testname=stateManagerIsSavingStateInClientTest HTTP/1.0"); - TEST_PROPS.setProperty(SEARCH_STRING, "false"); - invoke(); - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_appl_statemgrwrapc_web/TestServlet?testname=stateManagerIsSavingStateInClientTest HTTP/1.0"); - TEST_PROPS.setProperty(SEARCH_STRING, "true"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/build.xml deleted file mode 100644 index 35388ec29f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/build.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.war.sun-web.xml deleted file mode 100644 index ecfc0fbbc5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_statemgrwrapc_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.xml deleted file mode 100644 index ce491be64c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwrapc_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_application_statemgrwrap - - jakarta.faces.STATE_SAVING_METHOD - client - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanagerwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.war.sun-web.xml deleted file mode 100644 index 9a846873e0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_statemgrwraps_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.xml deleted file mode 100644 index 89b3b30a97..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/statemanagerwrapper/jsf_appl_statemgrwraps_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_application_statemgrwrap - - jakarta.faces.STATE_SAVING_METHOD - server - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.statemanagerwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/TestServlet.java deleted file mode 100644 index 86e72e15e7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/TestServlet.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewexpiredex; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.ViewExpiredException; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - config.getServletContext(); - } - - public void destroy() { - super.destroy(); - } - - // ------------------------------------------------------------------- Tests - - public void viewExpiredExceptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Throwable tckException = new TCKException(); - - // ViewExpiredException(java.lang.String viewId) - ViewExpiredException vOne = new ViewExpiredException("Geddy"); - if (this.checkViewId(vOne, "Geddy", out)) { - // do nothing test passed. - - } else { - return; - - } - - // ViewExpiredException(java.lang.String message, - // java.lang.String viewId) - ViewExpiredException vTwo = new ViewExpiredException("Vocals", "Geddy"); - if (this.checkViewId(vTwo, "Geddy", out) - && this.checkMessage(vTwo, "Vocals", out)) { - // do nothing test passed. - - } else { - return; - } - - // ViewExpiredException(java.lang.Throwable cause, - // java.lang.String viewId) - ViewExpiredException vThree = new ViewExpiredException(tckException, - "Geddy"); - - if (this.checkViewId(vThree, "Geddy", out) - && this.checkCause(vThree, "TCKException", out)) { - // do nothing test passed. - - } else { - return; - } - - // ViewExpiredException(java.lang.String message, - // java.lang.Throwable cause, - // java.lang.String viewId) - ViewExpiredException vFour = new ViewExpiredException("Vocals", - tckException, "Geddy"); - - if (this.checkViewId(vFour, "Geddy", out) - && this.checkMessage(vFour, "Vocals", out) - && this.checkCause(vFour, "TCKException", out)) { - // do nothing test passed. - - } else { - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ----------------------------------------------------------- private - // methods - - private Boolean checkViewId(ViewExpiredException vee, String expectedId, - PrintWriter out) { - String resultViewId = vee.getViewId(); - Boolean result = true; - - if (resultViewId == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewExpiredException.getViewId() returned null when " - + "not expected too!"); - result = false; - - } else if (!resultViewId.contains(expectedId)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewId does not contain initially set viewId!" + JSFTestUtil.NL - + "Expected: " + expectedId + JSFTestUtil.NL + "Received: " - + resultViewId); - result = false; - } - - return result; - } - - private Boolean checkMessage(ViewExpiredException vee, String expectedMess, - PrintWriter out) { - String resultMess = vee.getMessage(); - Boolean result = true; - - if (resultMess == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewExpiredException.getMessage() returned null when " - + "not expected too!"); - result = false; - - } else if (!resultMess.contains(expectedMess)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Message does not contain initially set message!" + JSFTestUtil.NL - + "Expected: " + expectedMess + JSFTestUtil.NL + "Received: " - + resultMess); - result = false; - - } - - return result; - } - - private Boolean checkCause(ViewExpiredException vee, String expectedCause, - PrintWriter out) { - String resultCause = vee.getCause().getClass().getSimpleName(); - Boolean result = true; - - if (resultCause == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewExpiredException.getCause() returned null when " - + "not expected too!"); - result = false; - - } - if (!resultCause.contains(expectedCause)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Cause does not contain Initially set cause!" + JSFTestUtil.NL - + "Expected: " + expectedCause + JSFTestUtil.NL + "Received: " - + resultCause); - result = false; - - } - - return result; - } - - // ----------------------------------------------------------- private - // classes - - private class TCKException extends Throwable { - // this class does not thing other then server as a none SE Exception - // for this testcase. - - } - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/URLClient.java deleted file mode 100644 index 8326983fc2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/URLClient.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewexpiredex; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_viewexpiredex_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: viewExpiredExceptionTest - * @assertion_ids: JSF:JAVADOC:335; JSF:JAVADOC:336; JSF:JAVADOC:337; - * JSF:JAVADOC:338; JSF:JAVADOC:339; JSF:JAVADOC:340; - * JSF:JAVADOC:341 - * @test_Strategy: Validated that we are able to call the following - * constructors, and then call getViewId(), getMessage, & - * getCause to confirm the proper data had been set or not - * set. - * - * - ViewExpiredException() - - * ViewExpiredException(java.lang.String viewId) - - * ViewExpiredException(java.lang.String message, - * java.lang.String viewId) - - * ViewExpiredException(java.lang.Throwable cause, - * java.lang.String viewId) - - * ViewExpiredException(java.lang.String message, - * java.lang.Throwable cause, java.lang.String viewId) - * - * @since 2.0 - */ - public void viewExpiredExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewExpiredExceptionTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/build.xml deleted file mode 100644 index ce75dbae11..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.war.sun-web.xml deleted file mode 100644 index 3d124cf0ba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_viewexpiredex_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.xml deleted file mode 100644 index 8dc0d3f976..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewexpiredex/jsf_appl_viewexpiredex_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_application_viewexpiredex - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.viewexpiredex.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/TestServlet.java deleted file mode 100644 index ee00eb8ca6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/TestServlet.java +++ /dev/null @@ -1,819 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandler; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Enumeration; -import java.util.Iterator; -import java.util.Locale; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletRequestWrapper; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - ServletContext servletContext; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // ------------------------------------------- Test Methods ---- - - // ViewHandler.calculateLocale(FacesContext) - public void viewHandlerCalculateLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String result = doTestCaseOne(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseTwo(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseThree(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseFour(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseFive(request, response); - if (result != null) { - out.println(result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ViewRoot.createView(FacesContext, String) - public void viewHandlerCreateViewTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String viewId = "/viewId"; - UIViewRoot root = getApplication().getViewHandler() - .createView(getFacesContext(), viewId); - if (root == null) { - out.println( - JSFTestUtil.FAIL + " ViewHandler.createView() returned null."); - return; - } - - if (!viewId.equals(root.getViewId())) { - out.println(JSFTestUtil.FAIL + " Expected the UIViewRoot created using" - + " ViewHandler.createView() to have the same view ID" - + " as that passed to createView."); - out.println("Execpted: " + viewId); - out.println("Received: " + root.getViewId()); - return; - } - - Locale locale = root.getLocale(); - String renderKitId = root.getRenderKitId(); - - getFacesContext().setViewRoot(root); - - String newViewId = "/newViewId"; - - UIViewRoot root2 = getApplication().getViewHandler() - .createView(getFacesContext(), newViewId); - if (root2 == null) { - out.println( - JSFTestUtil.FAIL + " ViewHandler.createView() returned null."); - return; - } - - if (!newViewId.equals(root2.getViewId())) { - out.println(JSFTestUtil.FAIL + " Expected the UIViewRoot created using" - + " ViewHandler.createView() to have the same view ID" - + " as that passed to createView."); - out.println("Execpted: " + newViewId); - out.println("Received: " + root2.getViewId()); - return; - } - - if (root2 == root) { - out.println(JSFTestUtil.FAIL + " createView() returned same view instance" - + " previously created and stored within the FacesContext"); - out.println("Original view root: " + root); - out.println("New view root: " + root2); - return; - } - - if (locale != root2.getLocale()) { - out.println(JSFTestUtil.FAIL + " Expected the Locale from the original" - + " view root to be copied to the new view root instance."); - return; - } - - if (renderKitId != root.getRenderKitId()) { - out.println( - JSFTestUtil.FAIL + " Expected the RenderKitID from the original" - + " view root to be copied to the new view root instance."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ViewRoot.renderView(FacesContext, UIViewRoot) throws NPE if either - // argument is null - public void viewHandlerRenderViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "renderView", new Class[] { FacesContext.class, UIViewRoot.class }, - new Object[] { null, new UIViewRoot() }, out); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "renderView", new Class[] { FacesContext.class, UIViewRoot.class }, - new Object[] { getFacesContext(), null }, out); - } - - // COMMENTED OUT DUE TO CHANGE IN VIEW HANDLER. Basic logic still - // holds for future specification test. - // ViewRoot.getViewIdPath() - // public void viewHandlerGetViewIdPathTest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // TCKServletPathWrapper wrapper = - // new TCKServletPathWrapper(request); - // FacesContext context = initFacesContext(wrapper, response); - // - // ViewHandler handler = getApplication().getViewHandler(); - // - // if (handler == null) { - // out.println(FAIL + " Unable to obtain ViewHandler instance."); - // return; - // } - // - // String result; - // - // if ("prefix".equals(request.getParameter("mapping"))) { - // // Simulate an incoming prefix path mapped request - // wrapper.setServletPath("/mapping"); - // wrapper.setPathInfo("/myapp/test.xhtml"); - // - // result = handler.getViewIdPath(context, "/view.xhtml"); - // - // if (!"/mapping/view.xhtml".equals(result)) { - // out.println(FAIL + " Unexpected result returned when using" + - // " a simulated prefix path mapped request."); - // out.println("Expected: /mapping/view.xhtml"); - // out.println("Received: " + result); - // return; - // } - // } - // - // if ("suffix1".equals(request.getParameter("mapping"))) { - // // Simulate an incoming extension mapped request -- NOTE: - // // the view ID has an extension, it should be replaced - // // with the extension mapping defined in the deployment - // // descriptor. - // wrapper.setServletPath("/myapp/view.faces"); - // wrapper.setPathInfo(null); - // - // result = handler.getViewIdPath(context, "/view.xhtml"); - // - // if (!"/view.faces".equals(result)) { - // out.println("Test FAILED[1]. Unexpected result returned when using" + - // " a simulated extension mapped request."); - // out.println("Expected: /view.faces"); - // out.println("Received: " + result); - // return; - // } - // } - // - // if ("suffix2".equals(request.getParameter("mapping"))) { - // // Simulate an incoming extension mapped request -- NOTE: - // // the view ID has no extension, so it should be appended. - // wrapper.setServletPath("/myapp/view.faces"); - // wrapper.setPathInfo(null); - // - // result = handler.getViewIdPath(context, "/view"); - // - // if (!"/view.faces".equals(result)) { - // out.println("Test FAILED[2]. Unexpected result returned when using" + - // " a simulated extension mapped request."); - // out.println("Expected: /view.faces"); - // out.println("Received: " + result); - // return; - // } - // } - // - // out.println(PASS); - // } - - // ViewHandler.calculateLocale(FacesContext) throws NullPointerException - public void viewHandlerCalculateLocaleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "calculateLocale", new Class[] { FacesContext.class }, - new Object[] { null }, out); - } - - // ViewHandler.createView(FacesContext, String) throws NullPointerException - public void viewHandlerCreateViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "createView", new Class[] { FacesContext.class, String.class }, - new Object[] { null, "/viewId" }, out); - } - - // ViewHandler.calculateRenderKitId(FacesContext) throws - // NullPointerException - public void viewHandlerCalculateRenderKitIdNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "calculateRenderKitId", new Class[] { FacesContext.class }, - new Object[] { null }, out); - } - - // ViewHandler.getResourceURL(FacesContext, String) throws - // NullPointerException - public void viewHandlerGetResourceURLNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "getResourceURL", new Class[] { FacesContext.class, String.class }, - new Object[] { null, "testString" }, out); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "getResourceURL", new Class[] { FacesContext.class, String.class }, - new Object[] { getFacesContext(), null }, out); - } - - // ViewHandler.getActionURL(FacesContext, String) throws - // NullPointerException - public void viewHandlerGetActionURLNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "getActionURL", new Class[] { FacesContext.class, String.class }, - new Object[] { null, "testString" }, out); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "getActionURL", new Class[] { FacesContext.class, String.class }, - new Object[] { getFacesContext(), null }, out); - } - - // ViewHandler.restoreView(FacesContext, String) throws NullPointerException - public void viewHandlerRestoreViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "restoreView", new Class[] { FacesContext.class, String.class }, - new Object[] { null, "testString" }, out); - } - - // ViewHandler.writeState(FacesContext) throws NullPointerException - public void viewHandlerWriteStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getApplication().getViewHandler().getClass(), - "writeState", new Class[] { FacesContext.class }, - new Object[] { null }, out); - } - - // ViewHandler.calculateCharacterEncoding(FacesContext) - public void viewHandlerCalculateCharEncodingHDRTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewHandler handler = getApplication().getViewHandler(); - String golden = "Thomas"; - String result = handler.calculateCharacterEncoding(context); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned from " - + "ViewHandler.calculateCharacterEncoding(FacesContext)!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } - - } // End viewHandlerCalculateCharEncodingHDRTest - - // ViewHandler.calculateCharacterEncoding(FacesContext) - public void viewHandlerCalculateCharEncodingNULLTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewHandler handler = getApplication().getViewHandler(); - String result = handler.calculateCharacterEncoding(context); - - if (null == handler.calculateCharacterEncoding(context)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned from " - + "ViewHandler.calculateCharacterEncoding(FacesContext)!" - + JSFTestUtil.NL + "Expected: " + null + JSFTestUtil.NL - + "Received: " + result); - } - - } // End viewHandlerCalculateCharEncodingNULLTest - - // ViewHandler.calculateCharacterEncoding(FacesContext) - public void viewHandlerCalculateCharEncodingEXTTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewHandler handler = getApplication().getViewHandler(); - ExternalContext ec = (ExternalContext) context.getExternalContext(); - - String golden = "Thomas"; - ec.getSessionMap().put("jakarta.faces.request.charset", golden); - - String result = handler.calculateCharacterEncoding(context); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned from " - + "ViewHandler.calculateCharacterEncoding(FacesContext)!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } - - } // End viewHandlerCalculateCharEncodingEXTTest - - // ViewHandler.calculateRenderKitId(FacesContext) - public void viewHandlerCalculateRenderKitIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewHandler handler = getApplication().getViewHandler(); - String result = handler.calculateRenderKitId(context); - - if (result == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ViewHandler.calculateRenderKitId(FacesContext)" - + "Must not return Null value!"); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // End viewHandlerCalculateRenderKitIdTest - - // ViewHandler.addProtectedView(String) - // ViewHandler.getProtectedViewsUnmodifiable() - // ViewHandler.removeProtectedViews() - public void viewHandlerAddGetRemoveProtectedViewsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Boolean resOne = false; - Boolean resTwo = false; - - String golden = "www.TCKView.com"; - ViewHandler handler = getApplication().getViewHandler(); - - // Test set and get methods - handler.addProtectedView(golden); - Set setOne = handler.getProtectedViewsUnmodifiable(); - Iterator i = setOne.iterator(); - - while (i.hasNext()) { - if (!(i.next().contains(golden))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to find a protected view in returned set containing: !" - + golden); - - return; - - } else { - resOne = true; - } - } - - // Test remove and get methods - handler.removeProtectedView(golden); - Set setTwo = handler.getProtectedViewsUnmodifiable(); - - if (setTwo.isEmpty() || setTwo == null) { - resTwo = true; - - } else { - - Iterator ii = setTwo.iterator(); - - while (ii.hasNext()) { - if (ii.next().contains(golden)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Was able to find a protected view in returned set containing: " - + golden + JSFTestUtil.NL - + "This should have been removed when removeProtectedView() was called!"); - - return; - - } else { - resTwo = true; - } - } - } - - if (resOne && resTwo) { - out.println(JSFTestUtil.PASS); - } - - } // End viewHandlerAddGetProtectedViewsTest - - public void viewHandlerDeriveLogicalViewIDTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String viewId = "/viewId"; - FacesContext context = getFacesContext(); - ViewHandler vh = getApplication().getViewHandler(); - - // Get viewId - String derivedId = vh.deriveLogicalViewId(context, viewId); - - if (!viewId.equals(derivedId)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpectecd value from ViewHandler.deriveViewId()" + JSFTestUtil.NL - + "Execpted: " + viewId + JSFTestUtil.NL + "Received: " + derivedId); - - } else { - out.println(JSFTestUtil.PASS); - } - - }// End viewHandlerDeriveLogicalViewIDTest - - // ------------------------------------------------ Private Methods - - private String doTestCaseFive(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - localeCollection.add(new Locale("fr", "CA")); - Locale[] prefLocales = { new Locale("en", "GB"), new Locale("fr", "CA") }; - - FacesContext context = initTestEnvironment(localeCollection, - new Locale("fr", "CA"), "en-GB, fr-CA", prefLocales, request, response); - if (context == null) { - return "Test FAILED[1]. Unable to initialize FacesContext."; - } - - ViewHandler handler = getApplication().getViewHandler(); - if (handler == null) { - return "Test FAILED[1]. Unable to obtain ViewHandler from " - + "Application."; - } - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[1]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en, fr_CA\n"); - buff.append("Default Locale: fr_CA\n"); - buff.append("Client preferred Locales: en-GB, fr-CA\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseTwo(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - Locale[] prefLocales = { new Locale("de", ""), new Locale("fr", "") }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.ENGLISH, - "de, fr", prefLocales, request, response); - if (context == null) { - return "Test FAILED[2]. Unable to initialize FacesContext."; - } - - ViewHandler handler = getApplication().getViewHandler(); - if (handler == null) { - return "Test FAILED[2]. Unable to obtain ViewHandler from " - + "Application."; - } - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[2]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en\n"); - buff.append("Default Locale: en\n"); - buff.append("Client preferred Locales: de, fr\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseThree(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - localeCollection.add(new Locale("fr", "")); - localeCollection.add(new Locale("en", "US")); - Locale[] prefLocales = { new Locale("ja", ""), new Locale("en", "GB"), - new Locale("en", "US"), new Locale("en", "CA"), new Locale("fr", "") }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.CHINESE, - "ja, en-GB, en-US, en-CA, fr", prefLocales, request, response); - if (context == null) { - return "Test FAILED[3]. Unable to initialize FacesContext."; - } - - ViewHandler handler = getApplication().getViewHandler(); - if (handler == null) { - return "Test FAILED[3]. Unable to obtain ViewHandler from " - + "Application."; - } - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[3]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en, fr, en_US\n"); - buff.append("Default Locale: en\n"); - buff.append("Client preferred Locales: ja, en-GB, en-US, en-CA, fr\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseFour(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(new Locale("fr", "CA")); - localeCollection.add(new Locale("sv", "")); - localeCollection.add(Locale.ENGLISH); - Locale[] prefLocales = { new Locale("fr", ""), new Locale("sv", ""), }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.GERMAN, - "fr, sv", prefLocales, request, response); - if (context == null) { - return "Test FAILED[4]. Unable to initialize FacesContext."; - } - - ViewHandler handler = getApplication().getViewHandler(); - if (handler == null) { - return "Test FAILED[4]. Unable to obtain ViewHandler from " - + "Application."; - } - - Locale result = handler.calculateLocale(context); - if (!result.equals(new Locale("sv", ""))) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[4]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("sv given the following conditions:\n"); - buff.append("Supported Locales: fr_CA, sv, en\n"); - buff.append("Default Locale: de\n"); - buff.append("Client preferred Locales: fr, sv\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseOne(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(new Locale("ja", "")); - Locale[] prefLocales = { new Locale("en", ""), }; - - FacesContext context = initTestEnvironment(localeCollection, null, "en", - prefLocales, request, response); - if (context == null) { - return "Test FAILED[5]. Unable to initialize FacesContext."; - } - - ViewHandler handler = getApplication().getViewHandler(); - if (handler == null) { - return "Test FAILED[5]. Unable to obtain ViewHandler from " - + "Application."; - } - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.getDefault())) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[5]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append(Locale.getDefault()); - buff.append(" given the following conditions:\n"); - buff.append("Supported Locales: ja\n"); - buff.append("Default Locale: null\n"); - buff.append("Client preferred Locales: en\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private FacesContext initTestEnvironment(Collection locales, - Locale defaultLocale, String preferredLocales, Locale[] lPreferredLocales, - HttpServletRequest request, HttpServletResponse response) { - Application application = getApplication(); - application.setSupportedLocales(locales); - if (defaultLocale != null) { - application.setDefaultLocale(defaultLocale); - } - - // Create a new FacesContext using the TCKHttpServletRequestWrapper - TCKHttpServletRequestWrapper wrapper = new TCKHttpServletRequestWrapper( - request); - wrapper.setAcceptHeaderValues(preferredLocales); - wrapper.setLocales(lPreferredLocales); - return initFacesContext(wrapper, response); - } - - private FacesContext initFacesContext(HttpServletRequest request, - HttpServletResponse response) { - LifecycleFactory lifeFactory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - Lifecycle lifecycle = lifeFactory - .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - - FacesContextFactory facesFactory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - return facesFactory.getFacesContext(servletContext, request, response, - lifecycle); - } - - // -------------------------------------------------- Private Classes ------ - - private static class TCKHttpServletRequestWrapper - extends HttpServletRequestWrapper { - - private String values; - - private Locale[] locales; - - public TCKHttpServletRequestWrapper(HttpServletRequest request) { - super(request); - } - - public String getHeader(String name) { - if ("accept-language".equalsIgnoreCase(name)) { - return values; - } - return super.getHeader(name); - } - - public Enumeration getHeaders(String name) { - if ("accept-language".equalsIgnoreCase(name)) { - return new Enumeration() { - boolean hasMore = true; - - public boolean hasMoreElements() { - return hasMore; - } - - public Object nextElement() { - hasMore = false; - return values; - } - }; - } - return super.getHeaders(name); - } - - public Enumeration getLocales() { - - return new Enumeration() { - int length = locales.length; - - int count = 0; - - public boolean hasMoreElements() { - return (count < length); - } - - public Object nextElement() { - return locales[count++]; - } - }; - } - - public void setAcceptHeaderValues(String values) { - this.values = values; - } - - public void setLocales(Locale[] locales) { - this.locales = locales; - } - - } - - private static class TCKServletPathWrapper extends HttpServletRequestWrapper { - - private String servletPath; - - private String pathInfo; - - public TCKServletPathWrapper(HttpServletRequest request) { - super(request); - } - - public String getServletPath() { - return servletPath; - } - - public String getPathInfo() { - return pathInfo; - } - - public void setServletPath(String servletPath) { - this.servletPath = servletPath; - } - - public void setPathInfo(String pathInfo) { - this.pathInfo = pathInfo; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/URLClient.java deleted file mode 100644 index 72c1f9c383..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/URLClient.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandler; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_viewhandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: viewHandlerCalculateLocaleTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:343 - * - * @test_Strategy: Verify the behavior of calculateLocale() under the - * following conditions: 1. Configured Locales: ja Default - * Locale: null Client preferred locales: en Expected result: - * value of Locale.getDefault() - * - * 2. Configured Locales: en Default Locale: en Client - * preferred locales: de, fr Expected result: en - * - * 3. Configured Locales: en, fr, en_US Default Locale: en - * Client preferred locales: ja, en-GB, en-US, en-CA, fr - * Expected result: en - * - * 4. Configured Locales: fr_CA, sv, en Default Local: de - * Client preferred locales: fr, sv Expected result: sv - * - * 5. Configured Locales: en, fr_CA Default Locale: fr_CA - * Client preferred locales: en_GB, fr_CA Expected result: en - */ - public void viewHandlerCalculateLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateLocaleTest"); - invoke(); - } - - /** - * @testName: viewHandlerCreateViewTest - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:347 - * @test_Strategy: Verify a new UIViewRoot instance can be obtained by calling - * createView(). Additionally verify if a UIViewRoot already - * exists in the FacesContext, the locale and renderkit ID is - * copied from the old instance to the new instance. - */ - public void viewHandlerCreateViewTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCreateViewTest"); - invoke(); - } - - /** - * @testName: viewHandlerRenderViewNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:364 - * - * @test_Strategy: Verify a NullPointerException is thrown if either argument - * to renderView() is null. - */ - public void viewHandlerRenderViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerRenderViewNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateLocaleNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:344 - * - * @test_Strategy: Verify a NullPointerException is thrown if a null argument - * is passed to calculateLocale. - */ - public void viewHandlerCalculateLocaleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateLocaleNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCreateViewNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:348 - * - * @test_Strategy: Verify a NullPointerException is thrown if a null value for - * the FacesContext argument is passed. - */ - public void viewHandlerCreateViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCreateViewNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateRenderKitIdNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:346 - * - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - */ - public void viewHandlerCalculateRenderKitIdNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateRenderKitIdNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerGetResourceURLNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:357 - * - * @test_Strategy: Validate that a NullPointerException is thrown when either - * arg is null. (FacesContext, String) - */ - public void viewHandlerGetResourceURLNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerGetResourceURLNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerRestoreViewNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:366 - * - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - */ - public void viewHandlerRestoreViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerRestoreViewNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerWriteStateNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:371 - * - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - */ - public void viewHandlerWriteStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerWriteStateNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerGetActionURLNPETest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:352 - * - * @test_Strategy: Verify a NullPointerException is thrown if either argument - * to renderView() is null. - */ - public void viewHandlerGetActionURLNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerGetActionURLNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateCharEncodingHDRTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:342 - * - * @test_Strategy: Validate If the Content-Type request header has a charset - * parameter, that it is extracted and returned as the - * encoding. - * - * @since: 1.2 - */ - public void viewHandlerCalculateCharEncodingHDRTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateCharEncodingHDRTest"); - super.setMyCharacterSet("charset=Thomas"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateCharEncodingNULLTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:342 - * - * @test_Strategy: Validate that null is returned if charset is not set via - * the request header or through lookup on external context. - * - * @since: 1.2 - */ - public void viewHandlerCalculateCharEncodingNULLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateCharEncodingNULLTest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateCharEncodingEXTTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:342 - * - * @test_Strategy: Validate check for the existence of a session by calling - * ExternalContext.getSession(boolean) passing false as the - * argument. If that method returns true, get the session Map - * by calling ExternalContext.getSessionMap() and look for a - * value under the key given by the value of the symbolic - * constant CHARACTER_ENCODING_KEY. If present, return the - * value, converted to String. - * - * @since: 1.2 - */ - public void viewHandlerCalculateCharEncodingEXTTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateCharEncodingEXTTest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateRenderKitIdTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:345 - * - * @test_Strategy: Validate that we get a String returned for a valid - * RenderKit ID and that we never receive 'null'. - * - * @since: 1.2 - */ - public void viewHandlerCalculateRenderKitIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateRenderKitIdTest"); - invoke(); - } - - /** - * @testName: viewHandlerAddGetRemoveProtectedViewsTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:2689; JSF:JAVADOC:2690; - * JSF:JAVADOC:2691 - * - * @test_Strategy: Validate that a protected view can be set and that the - * given protected view is in the Set that is returned from - * getProtectedViewsUnmodifiable(). - * - * @since: 2.2 - */ - public void viewHandlerAddGetRemoveProtectedViewsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "viewHandlerAddGetRemoveProtectedViewsTest"); - invoke(); - } - - /** - * @testName: viewHandlerDeriveLogicalViewIDTest - * - * @assertion_ids: JSF:JAVADOC:368; JSF:JAVADOC:2533 - * - * @test_Strategy: Validate that we Derive and return the viewId from the - * current request. (with no physical view) - * - * @since: 2.2 - */ - public void viewHandlerDeriveLogicalViewIDTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerDeriveLogicalViewIDTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/build.xml deleted file mode 100644 index 4091d1bba5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.war.sun-web.xml deleted file mode 100644 index e5d1a2e6d9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_viewhandler_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.xml deleted file mode 100644 index 58ade4cdff..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandler/jsf_appl_viewhandler_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_appl_viewhandler - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandler.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /mapping/* - - - Faces Servlet - *.faces - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/TestServlet.java deleted file mode 100644 index b2afe5bc6b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/TestServlet.java +++ /dev/null @@ -1,651 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandlerwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Enumeration; -import java.util.Locale; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.application.ViewHandlerWrapper; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletRequestWrapper; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - ServletContext servletContext; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // ------------------------------------------- Test Methods ---- - - // ViewHandler.calculateLocale(FacesContext) - public void viewHandlerCalculateLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String result = doTestCaseOne(request, response); - out.println("Running test_case one."); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseTwo(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseThree(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseFour(request, response); - if (result != null) { - out.println(result); - return; - } - - result = doTestCaseFive(request, response); - if (result != null) { - out.println(result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ViewRoot.createView(FacesContext, String) - public void viewHandlerCreateViewTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String viewId = "/viewId"; - UIViewRoot root = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()).createView(getFacesContext(), - viewId); - if (root == null) { - out.println( - JSFTestUtil.FAIL + " ViewHandler.createView() returned null."); - return; - } - - if (!viewId.equals(root.getViewId())) { - out.println(JSFTestUtil.FAIL + " Expected the UIViewRoot created using" - + " ViewHandler.createView() to have the same view ID" - + " as that passed to createView."); - out.println("Execpted: " + viewId); - out.println("Received: " + root.getViewId()); - return; - } - - Locale locale = root.getLocale(); - String renderKitId = root.getRenderKitId(); - - getFacesContext().setViewRoot(root); - - String newViewId = "/newViewId"; - - UIViewRoot root2 = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()).createView(getFacesContext(), - newViewId); - if (root2 == null) { - out.println( - JSFTestUtil.FAIL + " ViewHandler.createView() returned null."); - return; - } - - if (!newViewId.equals(root2.getViewId())) { - out.println(JSFTestUtil.FAIL + " Expected the UIViewRoot created using" - + " ViewHandler.createView() to have the same view ID" - + " as that passed to createView."); - out.println("Execpted: " + newViewId); - out.println("Received: " + root2.getViewId()); - return; - } - - if (root2 == root) { - out.println(JSFTestUtil.FAIL + " createView() returned same view instance" - + " previously created and stored within the FacesContext"); - out.println("Original view root: " + root); - out.println("New view root: " + root2); - return; - } - - if (locale != root2.getLocale()) { - out.println(JSFTestUtil.FAIL + " Expected the Locale from the original" - + " view root to be copied to the new view root instance."); - return; - } - - if (renderKitId != root.getRenderKitId()) { - out.println( - JSFTestUtil.FAIL + " Expected the RenderKitID from the original" - + " view root to be copied to the new view root instance."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ViewRoot.renderView(FacesContext, UIViewRoot) throws NPE if either - // argument is null - public void viewHandlerRenderViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - new SimpleViewHandlerWrapper(getApplication().getViewHandler()) - .renderView(null, new UIViewRoot()); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when a null FacesContext" - + "was passed to ViewHandler.renderView()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null " - + "FacesContext was provided to ViewHandler.render" - + "View(), but it was not an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - new SimpleViewHandlerWrapper(getApplication().getViewHandler()) - .renderView(getFacesContext(), null); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when a null view root" - + "was passed to ViewHandler.renderView()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null " - + "view root was provided to ViewHandler.render" - + "View(), but it was not an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // COMMENTED OUT DUE TO CHANGE IN VIEW HANDLER. Basic logic still - // holds for future specification test. - // ViewRoot.getViewIdPath() - // public void viewHandlerGetViewIdPathTest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // TCKServletPathWrapper wrapper = - // new TCKServletPathWrapper(request); - // FacesContext context = initFacesContext(wrapper, response); - // - // ViewHandler handler = getApplication().getViewHandler(); - // - // if (handler == null) { - // out.println(FAIL + " Unable to obtain ViewHandler instance."); - // return; - // } - // - // String result; - // - // if ("prefix".equals(request.getParameter("mapping"))) { - // // Simulate an incoming prefix path mapped request - // wrapper.setServletPath("/mapping"); - // wrapper.setPathInfo("/myapp/test.xhtml"); - // - // result = handler.getViewIdPath(context, "/view.xhtml"); - // - // if (!"/mapping/view.xhtml".equals(result)) { - // out.println(FAIL + " Unexpected result returned when using" + - // " a simulated prefix path mapped request."); - // out.println("Expected: /mapping/view.xhtml"); - // out.println("Received: " + result); - // return; - // } - // } - // - // if ("suffix1".equals(request.getParameter("mapping"))) { - // // Simulate an incoming extension mapped request -- NOTE: - // // the view ID has an extension, it should be replaced - // // with the extension mapping defined in the deployment - // // descriptor. - // wrapper.setServletPath("/myapp/view.faces"); - // wrapper.setPathInfo(null); - // - // result = handler.getViewIdPath(context, "/view.xhtml"); - // - // if (!"/view.faces".equals(result)) { - // out.println("Test FAILED[1]. Unexpected result returned when using" + - // " a simulated extension mapped request."); - // out.println("Expected: /view.faces"); - // out.println("Received: " + result); - // return; - // } - // } - // - // if ("suffix2".equals(request.getParameter("mapping"))) { - // // Simulate an incoming extension mapped request -- NOTE: - // // the view ID has no extension, so it should be appended. - // wrapper.setServletPath("/myapp/view.faces"); - // wrapper.setPathInfo(null); - // - // result = handler.getViewIdPath(context, "/view"); - // - // if (!"/view.faces".equals(result)) { - // out.println("Test FAILED[2]. Unexpected result returned when using" + - // " a simulated extension mapped request."); - // out.println("Expected: /view.faces"); - // out.println("Received: " + result); - // return; - // } - // } - // - // out.println(PASS); - // } - - // ViewHandler.calculateLocale(FacesContext) throws NPE if FacesContext - // is null. - public void viewHandlerCalculateLocaleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - new SimpleViewHandlerWrapper(getApplication().getViewHandler()) - .calculateLocale(null); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null argument" - + "was passed to ViewHandler.calculateLocale()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null " - + "argument was provided to ViewHandler.calculate" - + "Locale(), but it was not an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // ViewHandler.createView(FacesContext, String) throws NPE if FacesContext - // is null. - public void viewHandlerCreateViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - new SimpleViewHandlerWrapper(getApplication().getViewHandler()) - .createView(null, "/viewId"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null argument" - + "was passed to ViewHandler.calculateLocale()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null " - + "argument was provided to ViewHandler.calculate" - + "Locale(), but it was not an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------------ Private Methods -------- - - private String doTestCaseFive(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - localeCollection.add(new Locale("fr", "CA")); - Locale[] prefLocales = { new Locale("en", "GB"), new Locale("fr", "CA") }; - - FacesContext context = initTestEnvironment(localeCollection, - new Locale("fr", "CA"), "en-GB, fr-CA", prefLocales, request, response); - if (context == null) { - return "Test FAILED[1]. Unable to initialize FacesContext."; - } - - ViewHandler handler = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()); - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[1]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en, fr_CA\n"); - buff.append("Default Locale: fr_CA\n"); - buff.append("Client preferred Locales: en-GB, fr-CA\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseTwo(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - Locale[] prefLocales = { new Locale("de", ""), new Locale("fr", "") }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.ENGLISH, - "de, fr", prefLocales, request, response); - if (context == null) { - return "Test FAILED[2]. Unable to initialize FacesContext."; - } - - ViewHandler handler = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()); - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[2]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en\n"); - buff.append("Default Locale: en\n"); - buff.append("Client preferred Locales: de, fr\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseThree(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(Locale.ENGLISH); - localeCollection.add(new Locale("fr", "")); - localeCollection.add(new Locale("en", "US")); - Locale[] prefLocales = { new Locale("ja", ""), new Locale("en", "GB"), - new Locale("en", "US"), new Locale("en", "CA"), new Locale("fr", "") }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.CHINESE, - "ja, en-GB, en-US, en-CA, fr", prefLocales, request, response); - if (context == null) { - return "Test FAILED[3]. Unable to initialize FacesContext."; - } - - ViewHandler handler = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()); - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.ENGLISH)) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[3]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("en given the following conditions:\n"); - buff.append("Supported Locales: en, fr, en_US\n"); - buff.append("Default Locale: en\n"); - buff.append("Client preferred Locales: ja, en-GB, en-US, en-CA, fr\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseFour(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(new Locale("fr", "CA")); - localeCollection.add(new Locale("sv", "")); - localeCollection.add(Locale.ENGLISH); - Locale[] prefLocales = { new Locale("fr", ""), new Locale("sv", ""), }; - - FacesContext context = initTestEnvironment(localeCollection, Locale.GERMAN, - "fr, sv", prefLocales, request, response); - if (context == null) { - return "Test FAILED[4]. Unable to initialize FacesContext."; - } - - ViewHandler handler = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()); - - Locale result = handler.calculateLocale(context); - if (!result.equals(new Locale("sv", ""))) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[4]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append("sv given the following conditions:\n"); - buff.append("Supported Locales: fr_CA, sv, en\n"); - buff.append("Default Locale: de\n"); - buff.append("Client preferred Locales: fr, sv\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private String doTestCaseOne(HttpServletRequest request, - HttpServletResponse response) { - Collection localeCollection = new ArrayList(); - localeCollection.add(new Locale("ja", "")); - Locale[] prefLocales = { new Locale("en", ""), }; - - FacesContext context = initTestEnvironment(localeCollection, null, "en", - prefLocales, request, response); - if (context == null) { - return "Test FAILED[5]. Unable to initialize FacesContext."; - } - - ViewHandler handler = new SimpleViewHandlerWrapper( - getApplication().getViewHandler()); - - Locale result = handler.calculateLocale(context); - if (!result.equals(Locale.getDefault())) { - StringBuffer buff = new StringBuffer(50); - buff.append("Test FAILED[5]. Expected the result of "); - buff.append("ViewHandler.calculateLocale() to return "); - buff.append(Locale.getDefault()); - buff.append(" given the following conditions:\n"); - buff.append("Supported Locales: ja\n"); - buff.append("Default Locale: null\n"); - buff.append("Client preferred Locales: en\n"); - buff.append("Locale returned: " + result); - return buff.toString(); - } - - return null; - } - - private FacesContext initTestEnvironment(Collection locales, - Locale defaultLocale, String preferredLocales, Locale[] lPreferredLocales, - HttpServletRequest request, HttpServletResponse response) { - Application application = getApplication(); - application.setSupportedLocales(locales); - if (defaultLocale != null) { - application.setDefaultLocale(defaultLocale); - } - - // Create a new FacesContext using the TCKHttpServletRequestWrapper - TCKHttpServletRequestWrapper wrapper = new TCKHttpServletRequestWrapper( - request); - wrapper.setAcceptHeaderValues(preferredLocales); - wrapper.setLocales(lPreferredLocales); - return initFacesContext(wrapper, response); - } - - private FacesContext initFacesContext(HttpServletRequest request, - HttpServletResponse response) { - LifecycleFactory lifeFactory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - Lifecycle lifecycle = lifeFactory - .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - - FacesContextFactory facesFactory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - return facesFactory.getFacesContext(servletContext, request, response, - lifecycle); - } - - // -------------------------------------------------- Private Classes ------ - - private static class TCKHttpServletRequestWrapper - extends HttpServletRequestWrapper { - - private String values; - - private Locale[] locales; - - public TCKHttpServletRequestWrapper(HttpServletRequest request) { - super(request); - } - - public String getHeader(String name) { - if ("accept-language".equalsIgnoreCase(name)) { - return values; - } - return super.getHeader(name); - } - - public Enumeration getHeaders(String name) { - if ("accept-language".equalsIgnoreCase(name)) { - return new Enumeration() { - boolean hasMore = true; - - public boolean hasMoreElements() { - return hasMore; - } - - public Object nextElement() { - hasMore = false; - return values; - } - }; - } - return super.getHeaders(name); - } - - public Enumeration getLocales() { - - return new Enumeration() { - int length = locales.length; - - int count = 0; - - public boolean hasMoreElements() { - return (count < length); - } - - public Object nextElement() { - return locales[count++]; - } - }; - } - - public void setAcceptHeaderValues(String values) { - this.values = values; - } - - public void setLocales(Locale[] locales) { - this.locales = locales; - } - - } - - private static class TCKServletPathWrapper extends HttpServletRequestWrapper { - - private String servletPath; - - private String pathInfo; - - public TCKServletPathWrapper(HttpServletRequest request) { - super(request); - } - - public String getServletPath() { - return servletPath; - } - - public String getPathInfo() { - return pathInfo; - } - - public void setServletPath(String servletPath) { - this.servletPath = servletPath; - } - - public void setPathInfo(String pathInfo) { - this.pathInfo = pathInfo; - } - } - - private static class SimpleViewHandlerWrapper extends ViewHandlerWrapper { - - ViewHandler handler; - - // -------------------------------------------------------- Constructors - - SimpleViewHandlerWrapper(ViewHandler handler) { - - if (handler == null) { - throw new IllegalArgumentException( - "ViewHandler argument cannot be null"); - } - this.handler = handler; - - } // SimpleViewHandlerWrapper - - // ------------------------------------- Methods from ViewHandlerWrapper - - public ViewHandler getWrapped() { - - return handler; - - } // END getWrapped - - } // END SimpleViewHandlerWrapper -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/URLClient.java deleted file mode 100644 index 04f2401b9b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/URLClient.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandlerwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_appl_viewhandlerwrap_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: viewHandlerCalculateLocaleTest - * @assertion_ids: JSF:JAVADOC:373 - * @test_Strategy: Verify the behavior of calculateLocale() under the - * following conditions: 1. Configured Locales: ja Default - * Locale: null Client preferred locales: en Expected result: - * value of Locale.getDefault() - * - * 2. Configured Locales: en Default Locale: en Client - * preferred locales: de, fr Expected result: en - * - * 3. Configured Locales: en, fr, en_US Default Locale: en - * Client preferred locales: ja, en-GB, en-US, en-CA, fr - * Expected result: en - * - * 4. Configured Locales: fr_CA, sv, en Default Local: de - * Client preferred locales: fr, sv Expected result: sv - * - * 5. Configured Locales: en, fr_CA Default Locale: fr_CA - * Client preferred locales: en_GB, fr_CA Expected result: en - * @since 1.2 - */ - public void viewHandlerCalculateLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateLocaleTest"); - invoke(); - } - - /** - * @testName: viewHandlerCreateViewTest - * @assertion_ids: JSF:JAVADOC:375 - * @test_Strategy: Verify a new UIViewRoot instance can be obtained by calling - * createView(). Additionally verify if a UIViewRoot already - * exists in the FacesContext, the locale and renderkit ID is - * copied from the old instance to the new instance. - * @since 1.2 - */ - public void viewHandlerCreateViewTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCreateViewTest"); - invoke(); - } - - /** - * @testName: viewHandlerRenderViewNPETest - * @assertion_ids: JSF:JAVADOC:385 - * @test_Strategy: Verify a NullPointerException is thrown if either argument - * to renderView() is null. - * @since 1.2 - */ - public void viewHandlerRenderViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerRenderViewNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCalculateLocaleNPETest - * @assertion_ids: JSF:JAVADOC:344 - * @test_Strategy: Verify a NullPointerException is thrown if a null argument - * is passed to calculateLocale. - * @since 1.2 - */ - public void viewHandlerCalculateLocaleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCalculateLocaleNPETest"); - invoke(); - } - - /** - * @testName: viewHandlerCreateViewNPETest - * @assertion_ids: JSF:JAVADOC:348 - * @test_Strategy: Verify a NullPointerException is thrown if a null value for - * the FacesContext argument is passed. - * @since 1.2 - */ - public void viewHandlerCreateViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "viewHandlerCreateViewNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/build.xml deleted file mode 100644 index 71edce5b23..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.war.sun-web.xml deleted file mode 100644 index 73fd54721a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_appl_viewhandlerwrap_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.xml deleted file mode 100644 index 7bfd9aaf99..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/application/viewhandlerwrapper/jsf_appl_viewhandlerwrap_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_appl_viewhandlerwrap - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.application.viewhandlerwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /mapping/* - - - Faces Servlet - *.faces - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/CustomOutput.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/CustomOutput.java deleted file mode 100644 index 63bc6b2fee..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/CustomOutput.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation; - -import jakarta.faces.application.ResourceDependency; -import jakarta.faces.component.UIOutput; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.ComponentSystemEventListener; -import jakarta.faces.event.ListenerFor; -import jakarta.faces.event.PostAddToViewEvent; - -@ListenerFor(systemEventClass = PostAddToViewEvent.class, sourceClass = CustomOutput.class) -@ResourceDependency(name = "#{'hello.js'}", library = "test", target = "#{'body'}") -@ResourceDependency(name = "black-n-blue.css", library = "#{'test'}", target = "body") -@ResourceDependency(name = "black-n-red.css", library = "", target = "") -public class CustomOutput extends UIOutput - implements ComponentSystemEventListener { - - private boolean processEventInvoked; - - private ComponentSystemEvent event; - - public void processEvent(ComponentSystemEvent event) - throws AbortProcessingException { - processEventInvoked = true; - this.event = event; - } - - public void reset() { - processEventInvoked = false; - event = null; - } - - public boolean isProcessEventInvoked() { - return processEventInvoked; - } - - public ComponentSystemEvent getEvent() { - return event; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/TestServlet.java deleted file mode 100644 index 21a8ef570e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/TestServlet.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Text"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new UIOutput(); - } - - // --------------------------------------------------------- Test Methods - - // Validate ResourceDependecy ResourceType. - public void uiOutputRDTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - - Application application = getApplication(); - application.addComponent("myOut", - "com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation." - + "CustomOutput"); - application.createComponent("myOut"); - - List children = root.getComponentResources(context, "body"); - - // Make sure two resources are available. - int expectedSize = 2; - int resultSize = children.size(); - if (expectedSize != resultSize) { - out.println("Test FAILED wrong number of Resource objects" - + JSFTestUtil.NL + "Expected: " + expectedSize + JSFTestUtil.NL - + "Received: " + resultSize + JSFTestUtil.NL); - return; - } - - // Test to make sure the Class type is UIOutput. - Iterator childIterator = children.listIterator(); - while (childIterator.hasNext()) { - String resClass = childIterator.next().getClass().getName(); - String expClass = "jakarta.faces.component.UIOutput"; - if (!(expClass.equals(resClass))) { - out.println("Test FAILED Incorrect Class Instance for " - + "Resource reference." + JSFTestUtil.NL + "Expected: " + expClass - + JSFTestUtil.NL + "Received: " + resClass + JSFTestUtil.NL); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // Validate Library & Target Attributes - public void uiOutputRDAttributeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - - Application application = getApplication(); - application.addComponent("myOut", - "com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation." - + "CustomOutput"); - application.createComponent("myOut"); - - List children = root.getComponentResources(context, "body"); - - UIOutput compOne = (UIOutput) children.get(0); - UIOutput compTwo = (UIOutput) children.get(1); - - TestValue one = new TestValue("hello.js", "test", "body"); - TestValue two = new TestValue("black-n-blue.css", "test", "body"); - - this.checkAttributes(compOne, one, out); - this.checkAttributes(compTwo, two, out); - - } - - // ---------------------------------------------------- private methods - private void checkAttributes(UIComponent component, TestValue testvalues, - PrintWriter out) { - - Map atts = component.getAttributes(); - - String resName = (String) atts.get("name"); - String resLib = (String) atts.get("library"); - String resTarget = (String) atts.get("target"); - - String expName = testvalues.getExpName(); - String expLib = testvalues.getExpLib(); - String expTarget = testvalues.getExpTarget(); - - // name - if (!(expName.equals(resName))) { - out.println("Test FAILED Unexpected value for 'name' " + "Attribute." - + JSFTestUtil.NL + "Expected: " + expName + JSFTestUtil.NL - + "Received: " + resName + JSFTestUtil.NL); - return; - } - // library - if (!(expLib.equals(resLib))) { - out.println("Test FAILED Unexpected value for 'library' " + "Attribute." - + JSFTestUtil.NL + "Expected: " + expLib + JSFTestUtil.NL - + "Received: " + resLib + JSFTestUtil.NL); - return; - } - // target - if (!(expTarget.equals(resTarget))) { - out.println("Test FAILED Unexpected value for 'target' " + "Attribute." - + JSFTestUtil.NL + "Expected: " + expTarget + JSFTestUtil.NL - + "Received: " + resTarget + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------------------ private classes - private static class TestValue { - - private String expName; - - private String expLib; - - private String expTarget; - - public TestValue(String name, String library, String target) { - this.expName = name; - this.expLib = library; - this.expTarget = target; - } - - /** - * @return the expName - */ - public String getExpName() { - return expName; - } - - /** - * @param expName - * the expName to set - */ - public void setExpName(String expName) { - this.expName = expName; - } - - /** - * @return the expLib - */ - public String getExpLib() { - return expLib; - } - - /** - * @param expLib - * the expLib to set - */ - public void setExpLib(String expLib) { - this.expLib = expLib; - } - - /** - * @return the expTarget - */ - public String getExpTarget() { - return expTarget; - } - - /** - * @param expTarget - * the expTarget to set - */ - public void setExpTarget(String expTarget) { - this.expTarget = expTarget; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/URLClient.java deleted file mode 100644 index 6fd5f8c6d9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/URLClient.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_annotation_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - - // ------------------------------------------------------------- Test - // methods - - /** - * @testName: uiOutputRDTypeTest - * @assertion_ids: JSF:JAVADOC:273; JSF:JAVADOC:276 - * @test_Strategy: Validate ResourceDependecy ResourceType. - */ - public void uiOutputRDTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiOutputRDTypeTest"); - invoke(); - } - - /** - * @testName: uiOutputRDAttributeTest - * @assertion_ids: JSF:JAVADOC:273; JSF:JAVADOC:274; JSF:JAVADOC:275; - * JSF:JAVADOC:276 - * @test_Strategy: Validate Library & Target Attributes - */ - public void uiOutputRDAttributeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiOutputRDAttributeTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/build.xml deleted file mode 100644 index b4b8c4665d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.war.sun-web.xml deleted file mode 100644 index 514330045e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_annotation_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.xml deleted file mode 100644 index 89020ec0d1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/jsf_comp_annotation_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_comp_annotation - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.annotation.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-blue.css b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-blue.css deleted file mode 100644 index bb62ccd570..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-blue.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -night { - background: black; - color: #0000ff -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-red.css b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-red.css deleted file mode 100644 index e17c20f0bc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/black-n-red.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -vamp { - background: red; - color: #000000 -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/hello.js b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/hello.js deleted file mode 100644 index 15170bc81a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/annotation/resources/hello.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * Echo out "Hello World!" - */ -document.write("Hello World!"); diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/TestServlet.java deleted file mode 100644 index 80368bd54b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/TestServlet.java +++ /dev/null @@ -1,384 +0,0 @@ -/* - * Copyright (c) 2011, 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.ajax; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common.BaseBehaviorTestServlet; -import com.sun.ts.tests.jsf.common.beans.AlbumBean; -import com.sun.ts.tests.jsf.common.listener.TCKBehaviorListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.component.behavior.AjaxBehavior; -import jakarta.faces.component.behavior.ClientBehaviorBase; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.AjaxBehaviorEvent; -import jakarta.faces.event.AjaxBehaviorListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseBehaviorTestServlet { - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected ClientBehaviorBase createBehavior() { - return new AjaxBehavior(); - } - - // ---------------------------- test methods ------------------------ - - public void ajaxBehaviorBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - // Ensure listeners are invoked in the proper order - // and are invoked during the invoke application phase - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - UIComponent component = new UICommand(); - - AjaxBehaviorEvent event = new AjaxBehaviorEvent(component, behavior); - - TCKBehaviorListener.trace(null); - - // Register three listeners - behavior.addAjaxBehaviorListener(TCKBehaviorListener.withID("AP0")); - behavior.addAjaxBehaviorListener(TCKBehaviorListener.withID("AP1")); - behavior.addAjaxBehaviorListener(TCKBehaviorListener.withID("AP2")); - - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(component); - component.queueEvent(event); - root.processDecodes(context); - root.processValidators(context); - root.processApplication(context); - - String traceExpected = "/AP0@ANY_PHASE/AP1@ANY_PHASE/AP2@ANY_PHASE"; - String traceReceived = TCKBehaviorListener.trace(); - if (!traceExpected.equals(traceReceived)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Listeners not invoked in the expected " - + "order or were invoked too many times." + JSFTestUtil.NL - + "Listener trace expected: " + traceExpected + JSFTestUtil.NL - + "Listener trace received: " + traceReceived); - return; - } - - out.println(JSFTestUtil.PASS); - }// End ajaxBehaviorBroadcastTest - - public void ajaxBehaviorAddListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(this.createBehavior().getClass(), - "addAjaxBehaviorListener", - new Class[] { AjaxBehaviorListener.class }, new Object[] { null }, - out); - - }// End ajaxBehaviorAddListenerNPETest - - public void ajaxBehaviorGetSetDelayTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - - behavior.setDelay("1000"); - - if (!"1000".equals(behavior.getDelay())) { - out.println(JSFTestUtil.FAIL + " Unexpected value for Delay!" - + JSFTestUtil.NL + "Expected: 1000" + JSFTestUtil.NL + "Received: " - + behavior.getDelay()); - } else { - behavior.setDelay("none"); - if (!"none".equals(behavior.getDelay())) { - out.println(JSFTestUtil.FAIL + " Unexpected value for Delay!" - + JSFTestUtil.NL + "Expected: none" + JSFTestUtil.NL + "Received: " - + behavior.getDelay()); - } else { - out.println(JSFTestUtil.PASS); - } - } - - }// End ajaxBehaviorGetSetDelayTest - - public void ajaxBehaviorGetSetExecuteTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - - List compIds = new ArrayList(); - compIds.add("ID0"); - compIds.add("ID1"); - compIds.add("ID2"); - - behavior.setExecute(compIds); - - Iterator it = compIds.iterator(); - Collection ids = behavior.getExecute(); - - String received = ""; - boolean pf = true; - - while (it.hasNext()) { - if (!ids.contains(it.next())) { - pf = false; - } - } - - if (pf) { - out.println(JSFTestUtil.PASS); - - } else { - for (String result : ids) { - received = received + ", " + result; - } - out.println( - JSFTestUtil.FAIL + "Unexpected result from setExecute or getExecute!" - + JSFTestUtil.NL + "Expected: ID0, ID1, ID2" + JSFTestUtil.NL - + "Received: " + received); - } - - }// End ajaxBehaviorGetSetExecuteTest - - public void ajaxBehaviorSetIsDisabledTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - - behavior.setDisabled(true); - boolean result = behavior.isDisabled(); - - if (result) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + " Unexpected value for 'Disabled'!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + result); - } - - }// End ajaxBehaviorSetIsDisabledTest - - public void ajaxBehaviorSetIsImmediateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - - behavior.setImmediate(true); - boolean result = behavior.isImmediate(); - - if (result) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + " Unexpected value for 'Immediate'!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + result); - } - - }// End ajaxBehaviorSetIsImmediateTest - - public void ajaxBehaviorGetSetValueExpressionNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // .getValue(null) - JSFTestUtil.checkForNPE(createBehavior().getClass(), "getValueExpression", - new Class[] { String.class }, new Object[] { null }, out); - - // .setValue(null, ValueExpression) - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - - ValueExpression literalExpr = factory.createValueExpression( - getFacesContext().getELContext(), "literalValue", - java.lang.String.class); - - JSFTestUtil.checkForNPE(createBehavior().getClass(), "setValueExpression", - new Class[] { String.class, ValueExpression.class }, - new Object[] { null, literalExpr }, out); - - }// End ajaxBehaviorGetSetValueExpressionNPETest - - public void ajaxBehaviorAddRemoveBehaviorListenerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // .addBehaviorListener() - JSFTestUtil.checkForNPE(createBehavior().getClass(), - "addAjaxBehaviorListener", - new Class[] { AjaxBehaviorListener.class }, new Object[] { null }, - out); - - // .removeBehaviorListener() - JSFTestUtil.checkForNPE(createBehavior().getClass(), - "removeAjaxBehaviorListener", - new Class[] { AjaxBehaviorListener.class }, new Object[] { null }, - out); - - }// End ajaxBehaviorAddRemoveBehaviorListenerNPETest - - public void ajaxBehaviorGetSetOnerrorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - String golden = "error.js"; - - behavior.setOnerror(golden); - String result = behavior.getOnerror(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned form getOnerror()" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - } - - }// End ajaxBehaviorGetSetOnerrorTest - - public void ajaxBehaviorGetSetOnventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - String golden = "TCKSystemEvent"; - - behavior.setOnevent(golden); - String result = behavior.getOnevent(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned form getOnevent()" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - } - - }// End ajaxBehaviorGetSetOnventTest - - public void ajaxBehaviorGetSetRenderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - String golden = "TCKComp"; - - Collection rend = new ArrayList(); - rend.add(golden); - - behavior.setRender(rend); - Collection result = behavior.getRender(); - - if (result.contains(golden)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned form getRender()" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - } - - }// End ajaxBehaviorGetSetRenderTest - - public void ajaxBehaviorGetSetValueExpressionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - request.setAttribute("lp", new AlbumBean()); - - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{lp.album}", - java.lang.String.class); - - behavior.setValueExpression("bean", expression); - - if (behavior.getValueExpression("bean") != expression) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected getValueExpression() to return " - + "the non-literal ValueExpression set via " + "setValueExpression()." - + JSFTestUtil.NL + "Expected: " + expression + JSFTestUtil.NL - + "Received: " + behavior.getValueExpression("bean")); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End ajaxBehaviorGetSetValueExpressionTest - - public void ajaxBehaviorIsSetResetValuesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - AjaxBehavior behavior = (AjaxBehavior) this.createBehavior(); - - behavior.setResetValues(false); - - if (behavior.isResetValues()) { - out.println(JSFTestUtil.FAIL + " Unexpected value for isResetValues!" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + behavior.isResetValues()); - return; - - } - - behavior.setResetValues(true); - if (!behavior.isResetValues()) { - out.println(JSFTestUtil.FAIL + " Unexpected value for setResetValues!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + behavior.isResetValues()); - return; - } - - if (!behavior.isResetValuesSet()) { - out.println(JSFTestUtil.FAIL + " Unexpected value for isResetValuesSet!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + behavior.isResetValuesSet()); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End ajaxBehaviorIsSetResetValuesTest - -}// End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/URLClient.java deleted file mode 100644 index 667f3ea82e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/URLClient.java +++ /dev/null @@ -1,278 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.ajax; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common.BaseBehaviorClient; - -public class URLClient extends BaseBehaviorClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_behavior_ajax_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ---------------------------------------------- Behavior Specific - /** - * @testName: behaviorBroadcastNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:998; - * JSF:JAVADOC:1003 - * @test_Strategy: Validate that if BehaviorListener in - * BehaviorBase.broadcast(BehaviorListener) is null that a - * NullPointerException is thrown. - */ - public void behaviorBroadcastNPETest() throws EETest.Fault { - super.behaviorBroadcastNPETest(); - } - - /** - * @testName: behaviorMICInitialStateTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:999; - * JSF:JAVADOC:1004; JSF:JAVADOC:1005; JSF:JAVADOC:1007 - * @test_Strategy: Validate that we get the correct boolean value when using - * the following methods. - BehaviorBase.markInitialState() - - * BehaviorBase.initialStateMarked() - - * BehaviorBase.clearInitialState() - */ - public void behaviorMICInitialStateTest() throws EETest.Fault { - super.behaviorMICInitialStateTest(); - } - - /** - * @testName: behaviorSITransientTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:999; - * JSF:JAVADOC:1006; JSF:JAVADOC:1010 - * @test_Strategy: Validate that we do not participate in StateSaving or - * Restoring when BehaviorBase.setTransient(false), also make - * sure we get back the correct boolean value form - * BehaviorBase.isTransient(). - */ - public void behaviorSITransientTest() throws Fault { - super.behaviorSITransientTest(); - } - - // ---------------------------------------------- ClientBehavior Specific - /** - * @testName: clientBehaviorDecodeNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1012; - * JSF:JAVADOC:1018 - * @test_Strategy: Validate that a NullPointerException is thrown if Context - * or Component are null. - */ - public void clientBehaviorDecodeNPETest() throws Fault { - super.clientBehaviorDecodeNPETest(); - } - - /** - * @testName: clientBehaviorGetScriptNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1015; - * JSF:JAVADOC:1022 - * @test_Strategy: Validate that a NullPointerException is thrown if - * ClientBehaviorContext null. - * - */ - public void clientBehaviorGetScriptNPETest() throws Fault { - super.clientBehaviorGetScriptNPETest(); - } - - // -------------------------------- AjaxBehavior Specific - /** - * @testName: ajaxBehaviorBroadcastTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:999; - * JSF:JAVADOC:1000; JSF:JAVADOC:969 - * @testStrategy: Verify any Listeners registered with the UICommand instance - * are invoked during the INVOKE_APPLICATION_PHASE and in order - * of registration. - */ - public void ajaxBehaviorBroadcastTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorBroadcastTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorAddListenerNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:970 - * @testStrategy: Validate that we receive a NullPointerException when - * providing null Listener. - */ - public void ajaxBehaviorAddListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorAddListenerNPETest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetDelayTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:2700; - * JSF:JAVADOC:2701 - * @testStrategy: Validate that we are able set and get the delay value - * properly. - */ - public void ajaxBehaviorGetSetDelayTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetDelayTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetExecuteTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:972; - * JSF:JAVADOC:988 - * @testStrategy: Validate that we are able set and get the 'delay' value - * properly. - */ - public void ajaxBehaviorGetSetExecuteTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetExecuteTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorSetIsDisabledTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:980; - * JSF:JAVADOC:987 - * @testStrategy: Validate that we are able set and get the 'disabled' value - * properly. - */ - public void ajaxBehaviorSetIsDisabledTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorSetIsDisabledTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorSetIsImmediateTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:971; JSF:JAVADOC:982; - * JSF:JAVADOC:989 - * @testStrategy: Validate that we are able set and get the 'disabled' value - * properly. - */ - public void ajaxBehaviorSetIsImmediateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorSetIsImmediateTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:979; JSF:JAVADOC:994 - * @test_Strategy: Verify a NullPointerException is thrown if a null value for - * the 'name' argument. - * - * @since 2.0 - */ - public void ajaxBehaviorGetSetValueExpressionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetValueExpressionNPETest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorAddRemoveBehaviorListenerNPETest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:979; JSF:JAVADOC:984 - * @test_Strategy: Verify a NullPointerException is thrown when - * BehaviorListener is null. - * - * @since 2.0 - */ - public void ajaxBehaviorAddRemoveBehaviorListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "ajaxBehaviorAddRemoveBehaviorListenerNPETest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetOnerrorTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:974; JSF:JAVADOC:990 - * @test_Strategy: Verify the we get the expected information back. - * - * @since 2.0 - */ - public void ajaxBehaviorGetSetOnerrorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetOnerrorTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetOnventTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:975; JSF:JAVADOC:991 - * @test_Strategy: Verify the we get the expected information back. - * - * @since 2.0 - */ - public void ajaxBehaviorGetSetOnventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetOnventTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetRenderTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:976; JSF:JAVADOC:992 - * @test_Strategy: Verify the we get the expected information back. - * - * @since 2.0 - */ - public void ajaxBehaviorGetSetRenderTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetRenderTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:977; JSF:JAVADOC:993 - * @test_Strategy: Verify the we get the expected information back. - * - * @since 2.0 - */ - public void ajaxBehaviorGetSetValueExpressionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorGetSetValueExpressionTest"); - invoke(); - } - - /** - * @testName: ajaxBehaviorIsSetResetValuesTest - * @assertion_ids: JSF:JAVADOC:2883; JSF:JAVADOC:2884; JSF:JAVADOC:2885 - * @test_Strategy: Validated the following methods: setResetValues(), - * isResetValues(), isResetValuesSet(). - * - * @since 2.2 - */ - public void ajaxBehaviorIsSetResetValuesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "ajaxBehaviorIsSetResetValuesTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/build.xml deleted file mode 100644 index 8d9bb8822d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.war.sun-web.xml deleted file mode 100644 index f13686929f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_behavior_ajax_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.xml deleted file mode 100644 index f9130f0435..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/ajax/jsf_comp_behavior_ajax_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_comp_behavior_ajax - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.ajax.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/build.xml deleted file mode 100644 index 00d8966f78..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/TestServlet.java deleted file mode 100644 index bd3645f075..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/TestServlet.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: $ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.clientbehaviorcontext; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Collection; -import java.util.HashSet; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common.TCKClientBehaviorContext; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.behavior.ClientBehaviorContext; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - protected ServletContext servletContext; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // --------------------------------------- test methods - - // createClientBehaviorContext() throws NullPointerException - public void createClientBehaviorContextNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ClientBehaviorContext cbc = new TCKClientBehaviorContext(); - - HashSet params = new HashSet(); - - ClientBehaviorContext.Parameter paramOne = new ClientBehaviorContext.Parameter( - "one", "alpha"); - - params.add(paramOne); - - // context as null - JSFTestUtil.checkForNPE(cbc, "createClientBehaviorContext", - new Class[] { FacesContext.class, UIComponent.class, String.class, - String.class, Collection.class }, - new Object[] { null, new UIInput(), "abc", "xyz", params }, out); - - // component as null - JSFTestUtil.checkForNPE(cbc, "createClientBehaviorContext", - new Class[] { FacesContext.class, UIComponent.class, String.class, - String.class, Collection.class }, - new Object[] { getFacesContext(), null, "abc", "xyz", params }, out); - - // eventName as null - JSFTestUtil.checkForNPE(cbc, "createClientBehaviorContext", - new Class[] { FacesContext.class, UIComponent.class, String.class, - String.class, Collection.class }, - new Object[] { getFacesContext(), new UIInput(), null, "xyz", params }, - out); - - } // END createClientBehaviorContextNPETest - - public void createClientBehaviorContextParamaterTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String expectedName = "one"; - String expectedVal = "alpha"; - - ClientBehaviorContext.Parameter paramOne = new ClientBehaviorContext.Parameter( - expectedName, expectedVal); - - String resultName = paramOne.getName(); - String resultVal = (String) paramOne.getValue(); - - if (!expectedName.equals(resultName)) { - out.append(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for Name!" + JSFTestUtil.NL + "Expected: " - + expectedName + JSFTestUtil.NL + "Received: " + resultName); - return; - } - - if (!expectedVal.equals(resultVal)) { - out.append(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for Value!" + JSFTestUtil.NL + "Expected: " - + expectedVal + JSFTestUtil.NL + "Received: " + resultVal); - return; - } - - out.append(JSFTestUtil.PASS); - - } // END createClientBehaviorContextParamaterTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/URLClient.java deleted file mode 100644 index 56513ba4e6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/URLClient.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.clientbehaviorcontext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_behavior_clientbehaviorcontext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - - // ------------------------------------------------------------- Test - // methods - - /** - * @testName: createClientBehaviorContextNPETest - * @assertion_ids: JSF:JAVADOC:1025 - * @test_Strategy: Verify that a NullpointerException is thrown when any of - * the following arguments are null - * - * -context -component -eventName - * - * @since 2.2 - */ - public void createClientBehaviorContextNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "createClientBehaviorContextNPETest"); - invoke(); - } - - /** - * @testName: createClientBehaviorContextParamaterTest - * @assertion_ids: JSF:JAVADOC:1031; JSF:JAVADOC:1032; JSF:JAVADOC:1033 - * @test_Strategy: Validate that when we create a - * ClientBehaviorContext.Parameter that we can call the - * following methods and get the correct information back. - * - * @since 2.2 - */ - public void createClientBehaviorContextParamaterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "createClientBehaviorContextParamaterTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/build.xml deleted file mode 100644 index c965fd416a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.war.sun-web.xml deleted file mode 100644 index c880c7a1e6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_behavior_clientbehaviorcontext_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.xml deleted file mode 100644 index f1e4cea8fb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/clientbehaviorcontext/jsf_comp_behavior_clientbehaviorcontext_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_comp_behavior_clientbehaviorcontext - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.clientbehaviorcontext.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorClient.java deleted file mode 100644 index 0688709e5c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorClient.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common; - -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public abstract class BaseBehaviorClient extends AbstractUrlClient { - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ----------------------- Behavior Based Tests - /** - * testName: behaviorBroadcastNPETest - * - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:998; - * JSF:JAVADOC:1003 - * @test_Strategy: Validate that if BehaviorListener in - * BehaviorBase.broadcast(BehaviorListener) is null that a - * NullPointerException is thrown. - */ - public void behaviorBroadcastNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorBroadcastNPETest"); - invoke(); - } - - /** - * testName: behaviorMICInitialStateTest - * - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1004; - * JSF:JAVADOC:1005; JSF:JAVADOC:1007 - * @test_Strategy: Validate that we get the correct boolean value when using - * the following methods. - BehaviorBase.markInitialState() - - * BehaviorBase.initialStateMarked() - - * BehaviorBase.clearInitialState() - */ - public void behaviorMICInitialStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorMICInitialStateTest"); - invoke(); - } - - /** - * testName: behaviorSITransientTest - * - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1006; - * JSF:JAVADOC:1008 - * @test_Strategy: Validate that we do not participate in StateSaving or - * Restoring when BehaviorBase.setTransient(false), also make - * sure we get back the correct boolean value form - * BehaviorBase.isTransient(). - */ - public void behaviorSITransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorSITransientTest"); - invoke(); - } - - // ---------------------ClientBehavior Based Tests - - /** - * testName: clientBehaviorDecodeNPETest - * - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1012 - * @test_Strategy: Validate that a NullPointerException is thrown if Context - * or Component are null. - */ - public void clientBehaviorDecodeNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "clientBehaviorDecodeNPETest"); - invoke(); - } - - /** - * testName: clientBehaviorGetScriptNPETest - * - * @assertion_ids: JSF:JAVADOC:1016; JSF:JAVADOC:999; JSF:JAVADOC:1015 - * @test_Strategy: Validate that a NullPointerException is thrown if - * ClientBehaviorContext null. - * - * @since 2.0 - */ - public void clientBehaviorGetScriptNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "clientBehaviorGetScriptNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorTestServlet.java deleted file mode 100644 index a5508ce24a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/BaseBehaviorTestServlet.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.behavior.BehaviorBase; -import jakarta.faces.event.BehaviorEvent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseBehaviorTestServlet - extends ClientBehaviorBaseTestServlet { - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - servletContext = config.getServletContext(); - super.init(config); - - } // init - - // --------------------- Test methods ------------------ - - // BehaviorBase.broadast(BehaviorListener) throws NullPointerException - public void behaviorBroadcastNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createBehavior().getClass(), "broadcast", - new Class[] { BehaviorEvent.class }, new Object[] { null }, out); - - } // END behaviorBroadcastNPETest - - // BehaviorBase.markInitialState() - // BehaviorBase.initialStateMarked() - // BehaviorBase.clearInitialState() - public void behaviorMICInitialStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - BehaviorBase cb = createBehavior(); - boolean state; - - // state should be set to 'true' after this call is made. - cb.markInitialState(); - state = cb.initialStateMarked(); - - if (!state) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected State to be true after " - + "BehaviorBase.Base.markInitialState() Hed been called!"); - } else { - cb.clearInitialState(); - state = cb.initialStateMarked(); - - if (state) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected State to be false after " - + "BehaviorBase.Base.clearState() Hed been called!"); - } else { - out.println(JSFTestUtil.PASS); - } - } - - } // END behaviorMICInitialStateTest - - // BehaviorBase.isTransient() - // BehaviorBase.setTransient() - public void behaviorSITransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - BehaviorBase cb = createBehavior(); - boolean trans; - - cb.setTransient(true); - trans = cb.isTransient(); - if (!trans) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value returned from " - + "BehaviorBase.Base.isTransient()!" + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: " + trans); - } else { - cb.setTransient(false); - trans = cb.isTransient(); - - if (trans) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from " - + "BehaviorBase.Base.isTransient()!" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + trans); - } else { - out.println(JSFTestUtil.PASS); - } - } - - } // END behaviorMICInitialStateTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/ClientBehaviorBaseTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/ClientBehaviorBaseTestServlet.java deleted file mode 100644 index 3c531445c7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/ClientBehaviorBaseTestServlet.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.behavior.ClientBehaviorBase; -import jakarta.faces.component.behavior.ClientBehaviorContext; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class ClientBehaviorBaseTestServlet extends HttpTCKServlet { - - protected ServletContext servletContext; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - /** - *

- * Creates a new {@link ClientBehaviorBase} instance. - *

- * - * @return a new {@link ClientBehaviorBase} instance. - */ - protected abstract ClientBehaviorBase createBehavior(); - - // --------------------------------------- Test Methods - - // ClientBehaviorBase.decode(FacesContext, UIComponent) throws - // NullPointerException - public void clientBehaviorDecodeNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // .decode(null, UIComponent) - JSFTestUtil.checkForNPE(createBehavior().getClass(), "decode", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { null, new UIInput() }, out); - - // .decode(FacesContext, null) - JSFTestUtil.checkForNPE(createBehavior().getClass(), "decode", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { getFacesContext(), null }, out); - - } // END behaviorBroadcastNPETest - - // ClientBehaviorBase.getScript(ClientBehaviorContext) throws - // NullPointerException - public void clientBehaviorGetScriptNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // .getScript(null) - JSFTestUtil.checkForNPE(createBehavior().getClass(), "getScript", - new Class[] { ClientBehaviorContext.class }, new Object[] { null }, - out); - - } // END behaviorBroadcastNPETest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/TCKClientBehaviorContext.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/TCKClientBehaviorContext.java deleted file mode 100644 index d55d48169a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/TCKClientBehaviorContext.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.behavior.common; - -import java.util.Collection; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.behavior.ClientBehaviorContext; -import jakarta.faces.context.FacesContext; - -public class TCKClientBehaviorContext extends ClientBehaviorContext { - - @Override - public FacesContext getFacesContext() { - return null; - } - - @Override - public UIComponent getComponent() { - return null; - } - - @Override - public String getEventName() { - return null; - } - - @Override - public String getSourceId() { - return null; - } - - @Override - public Collection getParameters() { - return null; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/behavior.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/behavior.common.xml deleted file mode 100644 index c93a872b30..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/behavior/common/behavior.common.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/build.xml deleted file mode 100644 index d0049bdfdd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSource2TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSource2TestServlet.java deleted file mode 100644 index c1cf85a5f6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSource2TestServlet.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.MethodExpression; -import jakarta.faces.component.ActionSource2; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; - -public abstract class BaseActionSource2TestServlet - extends BaseActionSourceTestServlet { - - private ServletContext servletContext; - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - servletContext = config.getServletContext(); - super.init(config); - - } // init - - // ------------------------------------------------------------ Test Methods - - public void actionSource2GetSetActionExpressionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - request.setAttribute("bean", new SimpleBean()); - ExpressionFactory factory = JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext).getExpressionFactory(); - MethodExpression expression = factory.createMethodExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class, new Class[] {}); - - ActionSource2 source2 = (ActionSource2) createComponent(); - - source2.setActionExpression(expression); - - if (source2.getActionExpression() != expression) { - out.println(JSFTestUtil.FAIL + " Unexpected return value from" - + " getActionExpression() after having just called" - + " setActionExpression()."); - out.println("Expected: " + expression); - out.println("Received: " + source2.getActionExpression()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END actionSource2GetSetMethodExpressionTest - - // ----------------------------------------------------------- Inner Classes - - private static class SimpleBean { - - public String getAction() { - - return "action"; - - } // END getAction - - } // END SimpleBean -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSourceTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSourceTestServlet.java deleted file mode 100644 index 4b3b6c5339..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseActionSourceTestServlet.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.ActionSource2; -import jakarta.faces.event.MethodExpressionActionListener; -import jakarta.faces.context.FacesContext; -import jakarta.el.MethodExpression; -import jakarta.el.ELContext; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.PhaseId; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base tests for methods defined in {@link ActionListener}. - *

- */ -public abstract class BaseActionSourceTestServlet - extends BaseEditableValueHolderTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - // ActionSource.{get,add,remove}ActionListener(s)() - public void actionSourceAddGetRemoveActListTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ActionSource2 source = (ActionSource2) createComponent(); - - ActionListener[] listeners = source.getActionListeners(); - - if (listeners == null) { - out.println("Test FAILED[1]. getActionListeners() returned null."); - return; - } - - // remove any existing listeners - for (int i = 0; i < listeners.length; i++) { - source.removeActionListener(listeners[i]); - } - - listeners = source.getActionListeners(); - - if (listeners == null) { - out.println("Test FAILED[2]. getActionListeners() returned null."); - return; - } - - if (listeners.length != 0) { - out.println(JSFTestUtil.FAIL + " Expected getActionListeners() to return" - + "a empty array after removing all ActionListeners."); - out.println("Array length: " + listeners.length); - return; - } - - ActionListener listenerA1 = new TCKActionListener("A1"); - ActionListener listenerA2 = new TCKActionListener("A2"); - - source.addActionListener(listenerA1); - source.addActionListener(listenerA2); - - listeners = source.getActionListeners(); - - if (listeners == null) { - out.println("Test FAILED[3]. getActionListeners() returned null."); - return; - } - - // Have to check greater than or equal to 2 as a default listener - // could be present. Will remove everything later and then check - // for exact - if (listeners.length != 2) { - out.println(JSFTestUtil.FAIL + " Expected getActionListeners() to return" - + " an array with 2 elements after adding two Listeners."); - out.println("Array length: " + listeners.length); - return; - } - - List lListeners = Arrays.asList(listeners); - if (!lListeners.contains(listenerA1)) { - out.println(JSFTestUtil.FAIL + " Unable to find listenerA1 in the array" - + " returned by getActionListeners()."); - return; - } - - if (!lListeners.contains(listenerA2)) { - out.println("Test FAILED[1]. Unable to find listenerA2 in the array" - + " returned by getActionListeners()."); - return; - } - - source.removeActionListener(listenerA1); - - lListeners = Arrays.asList(source.getActionListeners()); - if (lListeners.contains(listenerA1)) { - out.println( - JSFTestUtil.FAIL + " removeActionListener() was called passing" - + " listenerA1, but getActionListeners() still returned" - + " listenerA1."); - return; - } - - if (!lListeners.contains(listenerA2)) { - out.println("Test FAILED[2]. Unable to find listenerA2 in the array" - + " returned by getActionListeners()."); - return; - } - - source.removeActionListener(listenerA2); - - if (source.getActionListeners().length != 0) { - out.println(JSFTestUtil.FAIL + " getActionListeners() returned a " - + "non-emtpy array after removing all test listeners."); - out.println("Array length: " + source.getActionListeners().length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ActionSource.addActionListener() throws NullPointerException if - // ActionListener is null. - public void actionSourceAddActListNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ActionSource2 source = (ActionSource2) createComponent(); - - JSFTestUtil.checkForNPE(source.getClass(), "addActionListener", - new Class[] { ActionListener.class }, new Object[] { null }, out); - } - - // ActionSource.removeActionListener() throws NullPointerException if - // ActionListener is null. - public void actionSourceRemoveActListNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ActionSource2 source = (ActionSource2) createComponent(); - - JSFTestUtil.checkForNPE(source.getClass(), "removeActionListener", - new Class[] { ActionListener.class }, new Object[] { null }, out); - } - - // ActionSource.{set,get}Action() - public void actionSourceGetSetActionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ActionSource2 source = (ActionSource2) createComponent(); - request.setAttribute("actionSource", "value"); - FacesContext context = getFacesContext(); - - ELContext elcontext = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(elcontext, - "#{requestScope.actionSource}", null, new Class[] { }); - - source.setActionExpression(binding); - Object result = source.getActionExpression(); - if (binding != result) { - out.println(JSFTestUtil.FAIL + " getAction() failed to return the value" - + " set via setAction()."); - out.println("Expected: " + binding); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ActionSource.{set,get}ActionListener() - public void actionSourceGetSetActListTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - request.setAttribute("actionListener", new ActionListener() { - public void processAction(ActionEvent event) - throws AbortProcessingException { - // no-op - } - }); - - FacesContext context = getFacesContext(); - ELContext elcontext = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(elcontext, - "#{requestScope.actionListener.processAction}", null, new Class[] { ActionEvent.class }); - - ActionSource2 source = (ActionSource2) createComponent(); - - MethodExpressionActionListener listener = new MethodExpressionActionListener(binding); - source.addActionListener(listener); - ActionListener[] result = source.getActionListeners(); - if (result[0] != listener) { - out.println(JSFTestUtil.FAIL + " getActionListener() failed to return " - + "the value set via setActionListener()."); - out.println("Expected: " + binding); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ActionSource.{set,is}Immediate - public void actionSourceSetIsImmediateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ActionSource2 source = (ActionSource2) createComponent(); - - if (source.isImmediate()) { - out.println(JSFTestUtil.FAIL + " Expected isImmediate() to return" - + " false as the default value"); - return; - } - - source.setImmediate(true); - if (!source.isImmediate()) { - out.println(JSFTestUtil.FAIL + " Expected isImmediate() to return" - + " true after having explicitly set it as such via" - + " setImmediate()"); - return; - } - - source.setImmediate(false); - if (source.isImmediate()) { - out.println(JSFTestUtil.FAIL + " Expected isImmediate() to return" - + " false after having explicitly set it as such via" - + " setImmediate()"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------------------------- Private - // Classes - - private static class TCKActionListener implements ActionListener { - - PhaseId phaseId; - - String id; - - public TCKActionListener() { - this.phaseId = PhaseId.ANY_PHASE; - } - - public TCKActionListener(String id) { - this(id, PhaseId.ANY_PHASE); - } - - public TCKActionListener(String id, PhaseId phaseId) { - this.id = id; - this.phaseId = phaseId; - } - - public String getId() { - return (this.id); - } - - public PhaseId getPhaseId() { - return (this.phaseId); - } - - public void processAction(ActionEvent event) { - trace(getId()); - } - - @Override - public boolean equals(Object otherObj) { - if (!(otherObj instanceof TCKActionListener)) { - return false; - } - TCKActionListener other = (TCKActionListener) otherObj; - if ((null != id && null == other.id) - || (null == id && null != other.id)) { - return false; - } - boolean idsAreEqual = true; - if (null != id) { - idsAreEqual = id.equals(other.id); - } - boolean result = idsAreEqual && other.phaseId == this.phaseId; - return result; - } - - @Override - public int hashCode() { - int hash = 3; - hash = 41 * hash + (this.phaseId != null ? this.phaseId.hashCode() : 0); - hash = 41 * hash + (this.id != null ? this.id.hashCode() : 0); - return hash; - } - - // ---------------------------------------------------- Static Trace Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseComponentTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseComponentTestServlet.java deleted file mode 100644 index a4a13828da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseComponentTestServlet.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; - -public abstract class BaseComponentTestServlet - extends BaseActionSource2TestServlet { - - protected ServletContext servletContext; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseEditableValueHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseEditableValueHolderTestServlet.java deleted file mode 100644 index 019ad817be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseEditableValueHolderTestServlet.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.EditableValueHolder; -import jakarta.faces.component.ValueHolder; -import jakarta.faces.convert.Converter; -import jakarta.faces.convert.NumberConverter; -import jakarta.el.MethodExpression; -import jakarta.el.ELContext; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; -import jakarta.faces.validator.LengthValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseEditableValueHolderTestServlet - extends BaseValueHolderTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------------------------ Test Methods - - // ------------------------------------------------------------- ValueHolder - - // ValueHolder.{get,set}Converter - public void valueHolderGetSetConverterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ValueHolder holder = (ValueHolder) createComponent(); - - Converter converter = new NumberConverter(); - holder.setConverter(converter); - - Object result = holder.getConverter(); - if (!converter.equals(result)) { - out.println(JSFTestUtil.FAIL + " Expected getConverter() to return the" - + " Converter set via setConverter()."); - out.println("Value expected: " + converter); - out.println("value received: " + result); - return; - } - - // make sure we can set null - holder.setConverter(null); - if (holder.getConverter() != null) { - out.println(JSFTestUtil.FAIL + " Expected getConverter() to return null" - + " as set via setConverter()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void valueHolderGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ValueHolder holder = (ValueHolder) createComponent(); - holder.setValue("value"); - - if (!"value".equals(holder.getValue())) { - out.println(JSFTestUtil.FAIL + " Value returned by getValue() was" - + " not the same as set via setValue()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ----------------------------------------------------- EditableValueHolder - - public void editableValueHolderIsSetValidTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - holder.setValid(false); - if (holder.isValid()) { - out.println(JSFTestUtil.FAIL + " Expected isValid() to return false " - + "after having called setValid(true)."); - return; - } - - holder.setValid(true); - if (!holder.isValid()) { - out.println(JSFTestUtil.FAIL + " Expected isValid() to return true " - + "after having called setValid(false)."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void editableValueHolderAddGetRemoveValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - TCKValueChangeListener listener = new TCKValueChangeListener("id"); - - holder.addValueChangeListener(listener); - - ValueChangeListener[] listeners = holder.getValueChangeListeners(); - if (listeners.length != 1) { - out.println("Test FAILED[1]. Expected the length of the array returned" - + " by getValueChangedListeners() to be one."); - out.println("Actual length: " + listeners.length); - return; - } - - holder.removeValueChangeListener(new TCKValueChangeListener("id2")); - listeners = holder.getValueChangeListeners(); - if (listeners.length != 1) { - out.println("Test FAILED[2]. Expected the length of the array returned" - + " by getValueChangedListeners() to be one."); - out.println("Actual length: " + listeners.length); - return; - } - - holder.removeValueChangeListener(listener); - listeners = holder.getValueChangeListeners(); - if (listeners.length != 0) { - out.println( - JSFTestUtil.FAIL + " Expected the length of the array returned" - + " by getValueChangedListeners() to be zero after removing" - + " the only listener."); - out.println("Actual length: " + listeners.length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void editableValueHolderGetSetValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - FacesContext fc = getFacesContext(); - String ref = "requestScope.tckValueChangeRef.processValueChange"; - - ELContext context2 = fc.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(context2, - "#{requestScope.tckValueChangeRef.processValueChange}", null, new Class[] { ValueChangeEvent.class }); - MethodExpressionValueChangeListener listener = new MethodExpressionValueChangeListener(binding); - holder.addValueChangeListener(listener); - - if (listener != holder.getValueChangeListeners()[0]) { - out.println(JSFTestUtil.FAIL + " getValueChangeListener() didn't return" - + " the value as set via setValueChangeListener()."); - out.println("Expected: " + ref); - out.println("Received: " + holder.getValueChangeListeners()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void editableValueHolderAddGetRemoveValidatorTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - Validator validator = new LengthValidator(10); - - holder.addValidator(validator); - - Validator[] validators = holder.getValidators(); - - if (validators.length != 1) { - out.println(JSFTestUtil.FAIL + " After adding one Validator, expected" - + " the length of the array of Validators returned by " - + "getValidators() to be 1."); - out.println("Length received: " + validators.length); - return; - } - - if (validator != validators[0]) { - out.println(JSFTestUtil.FAIL + " The Validator in the array returned" - + " by getValidators() is not the same validator instance" - + " added by addValidator()."); - out.println("Expected: " + validator); - out.println("Received: " + validators[0]); - return; - } - - holder.removeValidator(validator); - - validators = holder.getValidators(); - - if (validators.length != 0) { - out.println(JSFTestUtil.FAIL + " After removing the single Validator, " - + "expected instance, the length of the array returned by" - + "getValidators() should have been zero."); - out.println("Length received: " + validators.length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void editableValueHolderIsSetRequiredTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - holder.setRequired(false); - - if (holder.isRequired()) { - out.println(JSFTestUtil.FAIL + " Expected isRequired() to return false" - + " after having explicitly set it as such via setRequired()."); - return; - } - - holder.setRequired(true); - if (!holder.isRequired()) { - out.println(JSFTestUtil.FAIL + " Expected isRequired() to return true" - + " after having explicitly set it as such via setRequired()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void editableValueHolderGetSetSubmittedValueTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - holder.setSubmittedValue(Boolean.TRUE); - - if (!((Boolean) holder.getSubmittedValue())) { - out.println( - JSFTestUtil.FAIL + " Value returned by getSubmittedValue() was" - + " not the same as set by setSubmittedValue()."); - out.println("Expected: Boolean.TRUE"); - out.println("Received: Boolean.FALSE"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // EditableValueHolder.addValidator() throws NullPointerException() - public void editableValueHolderAddValidatorNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - JSFTestUtil.checkForNPE(holder.getClass(), "addValidator", - new Class[] { Validator.class }, new Object[] { null }, out); - } - - // EditableValueHolder.addValueChangeListener() throws - // NullPointerException() - public void editableValueHolderAddValueChangeListenerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - JSFTestUtil.checkForNPE(holder.getClass(), "addValueChangeListener", - new Class[] { ValueChangeListener.class }, new Object[] { null }, - out); - } - - // EditableValueHolder.removeValueChangeListener() throws - // NullPointerException() - public void editableValueHolderRemoveValueChangeListenerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - JSFTestUtil.checkForNPE(holder.getClass(), "removeValueChangeListener", - new Class[] { ValueChangeListener.class }, new Object[] { null }, - out); - } - - public void editableValueHolderIsSetImmediateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - EditableValueHolder holder = (EditableValueHolder) createComponent(); - - if (holder.isImmediate()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Default setting for 'isImmediate() " + " MUST be false!"); - - } else { - holder.setImmediate(true); - if (!holder.isImmediate()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unxpected value returned from isImmediate()" + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: false"); - - } else { - out.println(JSFTestUtil.PASS); - } - } - } - - public void editableValueHolderIsSetLocalValueSetTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - EditableValueHolder holder = (EditableValueHolder) createComponent(); - boolean golden = false; - holder.setLocalValueSet(golden); - - // Initial call should receive 'false'. - boolean result = holder.isLocalValueSet(); - if (result) { - out.println(JSFTestUtil.FAIL - + " Value returned by EditableValueHolder.isLocalValueSet() was" - + " not the same as set by EditableValueHolder.setLocalValueSet()."); - out.println("Expected: " + golden); - out.println("Received: " + result); - return; - } - - // Second call should receive 'true', after calling setValue(). - holder.setValue("test_value"); - result = holder.isLocalValueSet(); - if (!result) { - out.println(JSFTestUtil.FAIL - + " Value returned by EditableValueHolder.isLocalValueSet() was" - + " not the same as set by EditableValueHolder.setLocalValueSet()."); - out.println("Expected: true"); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // editableValueHolderIsSetLocalValueSetTest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BasePartialStateHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BasePartialStateHolderTestServlet.java deleted file mode 100644 index 8ef15d8b93..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BasePartialStateHolderTestServlet.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.PartialStateHolder; -import jakarta.faces.component.UIComponent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base test Servlet for the {@link PartialStateHolder} interface. - *

- */ -public abstract class BasePartialStateHolderTestServlet - extends BaseStateHolderTestServlet { - - // ------------------------------------------- Public Methods - /** - *

- * Initialize this Servlet. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if initialization fails - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------ PartialStateHolder Test Methods - - // .markInitialState() - // .initialStateMarked() - // .clearInitialState() - public void partialStateHolderMICStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - boolean state; - - // state should be set to 'true' after this call is made. - comp.markInitialState(); - state = comp.initialStateMarked(); - - if (!state) { - out.println(JSFTestUtil.FAIL - + " Expected State to be true after BehaviorBase.Base.markInitialState()" - + " Hed been called!"); - } else { - comp.clearInitialState(); - state = comp.initialStateMarked(); - - if (state) { - out.println(JSFTestUtil.FAIL - + " Expected State to be false after BehaviorBase.Base.clearState()" - + " Hed been called!"); - } else { - out.println(JSFTestUtil.PASS); - } - } - - } // END behaviorMICInitialStateTest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseStateHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseStateHolderTestServlet.java deleted file mode 100644 index 430547203c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseStateHolderTestServlet.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.StateHolder; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutput; -import jakarta.el.ELContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base test Servlet for the {@link StateHolder} interface. - *

- */ -public abstract class BaseStateHolderTestServlet extends HttpTCKServlet { - - protected static final String COMPONENT_REF = "#{requestScope.TestBean.component}"; - - protected static final String REF_NAME = "tckRef"; - - protected ServletContext servletContext; - - // -------------------------------------------------------------- Public - // Methods - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - servletContext = config.getServletContext(); - super.init(config); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected abstract UIComponentBase createComponent(); - - // --------------------------------------------------------------Private - // Methods - // Populate a pristine component to be used in state holder tests - protected void populateComponent(UIComponent component) { - - component.getAttributes().put("key1", "value 1"); - component.getAttributes().put("key2", "value 2"); - - ELContext elContext = getFacesContext().getELContext(); - component.setValueExpression(REF_NAME, new TCKValueBinding( - getApplication().getExpressionFactory().createValueExpression(elContext, COMPONENT_REF, Object.class), COMPONENT_REF)); - component.setId("componentId"); - component.getClientId(getFacesContext()); // Forces evaluation - component.setRendered(false); - component.setRendererType(null); // Since we have no renderers - - } - - // Check that the properties on the specified components are equal - protected void checkProperties(UIComponent orig, UIComponent restored, - StringBuffer buf) { - if (!((TCKValueBinding) orig.getValueExpression(REF_NAME)).getRef().equals( - ((TCKValueBinding) restored.getValueExpression(REF_NAME)).getRef())) { - buf.append(JSFTestUtil.FAIL + " ComponentRefs are not equal.\n"); - buf.append("Original componentRef: ") - .append(((TCKValueBinding) orig.getValueExpression(REF_NAME)).getRef()); - buf.append("\nRestored componentRef: ").append( - ((TCKValueBinding) restored.getValueExpression(REF_NAME)).getRef()); - buf.append("\n\n"); - } - - if (!orig.getClientId(getFacesContext()) - .equals(restored.getClientId(getFacesContext()))) { - buf.append(JSFTestUtil.FAIL + " Client IDs are not equal.\n"); - buf.append("Original client ID: ") - .append(orig.getClientId(getFacesContext())); - buf.append("\nRestored client ID: ") - .append(restored.getClientId(getFacesContext())); - buf.append("\n\n"); - } - - if (!orig.getId().equals(restored.getId())) { - buf.append(JSFTestUtil.FAIL + " Component IDs are not equal.\n"); - buf.append("Original component ID: ").append(orig.getId()); - buf.append("\nRestored component ID: ").append(restored.getId()); - buf.append("\n\n"); - } - - if (orig.isRendered() != restored.isRendered()) { - buf.append( - JSFTestUtil.FAIL + " Return value of isRendered() is not equal.\n"); - buf.append("Original value for isRendered(): ").append(orig.isRendered()); - buf.append("\nRestored value for isRendered(): ") - .append(restored.isRendered()); - buf.append("\n\n"); - } - - if (orig.getRendererType() != restored.getRendererType()) { - buf.append(JSFTestUtil.FAIL + " Renderer type is not equal.\n"); - buf.append("Original renderer type to be null.\n"); - buf.append("\nRestored renderer type: ") - .append(restored.getRendererType()); - buf.append("\n\n"); - } - - if (orig.getRendersChildren() != restored.getRendersChildren()) { - buf.append(JSFTestUtil.FAIL - + " Return value of getRendersChildren() is not " + "equal.\n"); - buf.append("Original value for getRendersChildren(): ") - .append(orig.getRendersChildren()); - buf.append("\nRestored value for getRendersChildren(): ") - .append(restored.getRendersChildren()); - buf.append("\n\n"); - } - - } - - // Check that the attributes on the specified components are equal - protected void checkAttributes(UIComponent orig, UIComponent restored, - StringBuffer buf) { - if (!orig.getAttributes().equals(restored.getAttributes())) { - buf.append(JSFTestUtil.FAIL + " Attributes between original component" - + " and those of the restored component are not equal.\n"); - buf.append("Original Attributes: \n"); - buf.append(JSFTestUtil.getAsString(orig.getAttributes())); - buf.append("Restored Attributes: \n"); - buf.append(JSFTestUtil.getAsString(restored.getAttributes())); - } - - } - - // Check that the specified components are equal - protected void checkComponents(UIComponent orig, UIComponent restored, - StringBuffer buf) { - checkAttributes(orig, restored, buf); - checkProperties(orig, restored, buf); - } - - // ---------------------------------------------------------------- Test - // Methods - // StateHolder.isTransient(), StateHolder.setTransient(); - public void stateHolderIsSetTransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - StateHolder holder = createComponent(); - - holder.setTransient(false); - - if (holder.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return" - + " false after having explicitly setting it as such via" - + " setTransient()."); - return; - } - - holder.setTransient(true); - - if (!holder.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return true" - + " after having explicitly setting it as such via" - + " setTransient()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - TestBean bean = new TestBean(); - request.setAttribute("TestBean", bean); - UIComponent preSave = createComponent(); - UIComponent facet1 = new UIOutput(); - facet1.setId("facet1"); - preSave.getFacets().put("facet1 key", facet1); - UIComponent facet2 = new UIOutput(); - facet2.setId("facet2"); - preSave.getFacets().put("facet2 key", facet2); - populateComponent(preSave); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + " saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + " The Object returned by saveState() was" - + " not an instance of java.io.Serializable."); - return; - } - - UIComponent postSave = createComponent(); - postSave.restoreState(getFacesContext(), state); - - StringBuffer buf = new StringBuffer(128); - - checkComponents(preSave.findComponent("componentId"), - postSave.findComponent("componentId"), buf); - - if (buf.length() > 0) { - out.println(buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // StateHolder.restoreState() throws NullPointerException - public void stateHolderRestoreStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - StringBuffer buf = new StringBuffer(128); - - // Begin test setup - TestBean bean = new TestBean(); - request.setAttribute("TestBean", bean); - UIComponent preSave = createComponent(); - UIComponent facet1 = new UIOutput(); - facet1.setId("facet1"); - preSave.getFacets().put("facet1 key", facet1); - UIComponent facet2 = new UIOutput(); - facet2.setId("facet2"); - preSave.getFacets().put("facet2 key", facet2); - populateComponent(preSave); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - UIComponent postSave = createComponent(); - - // Null for FaceContext - try { - postSave.restoreState(null, state); - buf.append("Test FAILED" + JSFTestUtil.NL - + "Expected NullPointerException to be thrown when " - + "FacesContext is null!" + JSFTestUtil.NL); - } catch (NullPointerException npe) { - // do nothing test passes. - } catch (Exception e) { - buf.append("Test FAILED" + JSFTestUtil.NL - + "Expected a NulPointerException to be thrown when " - + "FacesContext is null!" + JSFTestUtil.NL + "Instead Received: " - + JSFTestUtil.NL + e.toString()); - } - - // Removed check for state being null based on JSF Spec Issue:640 - // https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=640 - - if (buf.length() > 0) { - out.println(buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // StateHolder.saveState() throws NullPointerException - public void stateHolderSaveStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent preSave = createComponent(); - - try { - Object state = preSave.saveState(null); - out.println("Test FAILED expected a NullPointerException to be " - + "thrown when context is null."); - - } catch (NullPointerException npe) { - // do nothing test passed - } catch (Exception e) { - out.println( - "Test FAILED" + JSFTestUtil.NL + "Unexpected Exception thrown, " - + "expected NullPointerException instead Received" - + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentClient.java deleted file mode 100644 index 6d0bd93939..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentClient.java +++ /dev/null @@ -1,1557 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public abstract class BaseUIComponentClient extends AbstractUrlClient { - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * testName: uiComponentGetAttributesTest - * - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:649; JSF:JAVADOC:596 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetAttributesTest"); - invoke(); - } - - /** - * testName: uiComponentDecodeNPETest - * - * @assertion_ids: JSF:JAVADOC:583; JSF:JAVADOC:484 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentDecodeNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentDecodeNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetClientIdTest - * - * @assertion_ids: JSF:JAVADOC:600; JSF:JAVADOC:649 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetClientIdTest"); - invoke(); - } - - /** - * testName: uiComponentGetClientIdContextTest - * - * @assertion_ids: JSF:JAVADOC:600; JSF:JAVADOC:649 - * @test_Strategy: Verify getClientId(FacesContext) returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetClientIdContextTest"); - invoke(); - } - - /** - * testName: uiComponentGetCurrentComponentTest - * - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetCurrentComponentTest"); - invoke(); - } - - /** - * testName: uiComponentGetCurrentComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointException. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetCurrentComponentNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetCurrentComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null if there is no - * currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetCurrentComponentNullTest"); - invoke(); - } - - /** - * testName: uiComponentGetCurrentCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointException. - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentGetCurrentCompositeComponentNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetCurrentCompositeComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null if there - * is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentGetCurrentCompositeComponentNullTest"); - invoke(); - } - - /** - * testName: uiComponentIsCurrentCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointException. - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentIsCompositeComponentNPETest"); - invoke(); - } - - /** - * testName: uiComponentIsCurrentCompositeComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent() returns false if there is no - * currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNegTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentIsCompositeComponentNegTest"); - } - - /** - * testName: uiComponentGetClientIdNPETest - * - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetClientIdNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetSetIdTest - * - * @assertion_ids: JSF:JAVADOC:504; JSF:JAVADOC:558; JSF:JAVADOC:640; - * JSF:JAVADOC:608; JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetSetIdTest"); - invoke(); - } - - /** - * testName: uiComponentSetIdRestrictionsTest - * - * @assertion_ids: JSF:JAVADOC:558; JSF:JAVADOC:559; JSF:JAVADOC:641 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSetIdRestrictionsTest"); - invoke(); - } - - /** - * testName: uiComponentQueueEventNPETest - * - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentQueueEventNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetSetParentTest - * - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:609; JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetSetParentTest"); - invoke(); - } - - /** - * testName: uiComponentInvokeOnComponentTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate that the correct information is returned after the - * InvokeOnComponent has been called on a given UIComponent. - */ - public void uiComponentInvokeOnComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentInvokeOnComponentTest"); - invoke(); - } - - /** - * testName: uiComponentInvokeOnComponentNegativeTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate that the correct Exceptions are thrown when - * calling the InvokeOnComponent method incorrectly. - */ - public void uiComponentInvokeOnComponentNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentInvokeOnComponentNegativeTest"); - invoke(); - } - - /** - * testName: uiComponentIsSetRenderedTest - * - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617 - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentIsSetRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentIsInViewTest - * - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentIsInViewTest"); - invoke(); - } - - /** - * testName: uiComponentIsInViewNegTest - * - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns false if the component is BOT in - * the current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewNegTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentIsInViewNegTest"); - invoke(); - } - - /** - * testName: uiComponentVisitTreeTest - * - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentVisitTreeTest"); - invoke(); - } - - /** - * testName: uiComponentVisitTreeNegTest - * - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentVisitTreeNegTest"); - invoke(); - } - - /** - * testName: uiComponentGetChildrenTest - * - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetChildrenTest"); - invoke(); - } - - /** - * testName: uiComponentGetSetRendererTypeTest - * - * @assertion_ids: JSF:JAVADOC:523; JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetSetRendererTypeTest"); - invoke(); - } - - /** - * testName: uiComponentGetRendersChildrenTest - * - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetRendersChildrenTest"); - invoke(); - } - - /** - * testName: uiComponentGetChildCountTest - * - * @assertion_ids: JSF:JAVADOC:501; JSF:JAVADOC:597 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetChildCountTest"); - invoke(); - } - - /** - * testName: uiComponentGetFacetsTest - * - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetFacetsTest"); - invoke(); - } - - /** - * testName: uiComponentGetFacetCountTest - * - * @assertion_ids: JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetFacetCountTest"); - invoke(); - } - - /** - * testName: uiComponentGetFacetTest - * - * @assertion_ids: JSF:JAVADOC:514; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetFacetTest"); - invoke(); - } - - /** - * testName: uiComponentGetFacetsAndChildrenTest - * - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetFacetsAndChildrenTest"); - invoke(); - } - - /** - * testName: uiComponentGetFamilyTest - * - * @assertion_ids: JSF:JAVADOC:448; JSF:JAVADOC:517 - * @test_Strategy: Unsure we get the proper family back. - */ - public void uiComponentGetFamilyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetFamilyTest"); - invoke(); - } - - /** - * testName: uiComponentFindComponentTest - * - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentFindComponentTest"); - invoke(); - } - - /** - * testName: uiComponentProcessSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessSaveRestoreStateTest"); - invoke(); - } - - /** - * testName: uiComponentProcessSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - * - * @since 2.0 - */ - public void uiComponentProcessSaveStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessSaveStateNPETest"); - invoke(); - } - - /** - * testName: uiComponentProcessRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - * - * @since 2.0 - */ - public void uiComponentProcessRestoreStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessRestoreStateNPETest"); - invoke(); - } - - /** - * testName: uiComponentProcessSaveStateTransientTest - * - * @assertion_ids: JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessSaveStateTransientTest"); - invoke(); - } - - /** - * testName: uiComponentProcessUpdatesTest - * - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:626 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessUpdatesTest"); - invoke(); - } - - /** - * testName: uiComponentProcessUpdatesNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:626 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessUpdatesNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentProcessUpdatesNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessUpdatesNPETest"); - invoke(); - } - - /** - * testName: uiComponentRestoreAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentRestoreAttachedStateNPETest"); - invoke(); - } - - /** - * testName: uiComponentSaveAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSaveAttachedStateNPETest"); - invoke(); - } - - /** - * testName: uiComponentProcessUpdatesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:626 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentProcessUpdatesRenderResponseTest"); - invoke(); - } - - /** - * testName: uiComponentProcessValidatorsTest - * - * @assertion_ids: JSF:JAVADOC:551; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessValidatorsTest"); - invoke(); - } - - /** - * testName: uiComponentProcessValidatorsNPETest - * - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate a NullPointerException is thrown when argument is - * null. - */ - public void uiComponentProcessValidatorsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessValidatorsNPETest"); - invoke(); - } - - /** - * testName: uiComponentProcessValidatorsNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:551; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentProcessValidatorsNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentProcessValidatorsRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:551; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentProcessValidatorsRenderResponseTest"); - invoke(); - } - - /** - * testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:551; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentProcessValidatorsIsValidRenderResponseTest"); - invoke(); - } - - /** - * testName: uiComponentProcessDecodesTest - * - * @assertion_ids: JSF:JAVADOC:541; JSF:JAVADOC:620; JSF:JAVADOC:483; - * JSF:JAVADOC:582 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. - * - * # Call the decode() method of this component, if this - * component's rendered property is true and it is not nested - * in a parent component whose rendersChildren property is - * true but whose rendered property is false. - */ - public void uiComponentProcessDecodesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessDecodesTest"); - invoke(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessDecodesTest"); - invoke(); - } - - /** - * testName: uiComponentPushComponentToELTest - * - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - * - * @since 2.0 - */ - public void uiComponentPushComponentToELTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentPushComponentToELTest"); - invoke(); - } - - /** - * testName: uiComponentPushComponentToELNPETest - * - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - * - * @since 2.0 - */ - public void uiComponentPushComponentToELNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentPushComponentToELNPETest"); - invoke(); - } - - /** - * testName: uiComponentPopComponentFromELTest - * - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL does put a the - * previous UIComponent as the current component being - * processed. - * - * @since 2.0 - */ - public void uiComponentPopComponentFromELTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentPopComponentFromELTest"); - invoke(); - } - - /** - * testName: uiComponentPopComponentFromELNPETest - * - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Validate that a NullPointerException is thrown if - * FacesContext is null. - * - * @since 2.0 - */ - public void uiComponentPopComponentFromELNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentPopComponentFromELNPETest"); - invoke(); - } - - /** - * testName: uiComponentProcessDecodesNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentProcessDecodesNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentProcessDecodesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiComponentProcessDecodesRenderResponseTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeBeginTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeBeginTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeAllNPETest - * - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeAllNPETest"); - invoke(); - } - - /** - * testName: uiComponentEncodeBeginELTest - * - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - */ - - public void uiComponentEncodeBeginELTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeBeginELTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeBeginNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeBeginNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeEndTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeEndTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeEndELTest - * - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeEndELTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeEndELTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeEndNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeEndNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeChildrenTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeChildrenTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeChildrenNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeChildrenNotRenderedTest"); - invoke(); - } - - /** - * testName: uiComponentEncodeBeginNPETest - * - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeBeginNPETest"); - invoke(); - } - - /** - * testName: uiComponentEncodeEndNPETest - * - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeEndNPETest"); - invoke(); - } - - /** - * testName: uiComponentEncodeChildrenNPETest - * - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentEncodeChildrenNPETest"); - invoke(); - } - - /** - * testName: uiComponentFindComponentIAETest - * - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentFindComponentIAETest"); - invoke(); - } - - /** - * testName: uiComponentFindComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentFindComponentNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetSetValueExpressionTest - * - * @assertion_ids: JSF:JAVADOC:528; JSF:JAVADOC:567 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetSetValueExpressionTest"); - invoke(); - } - - /** - * testName: uiComponentGetSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:529; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetSetValueExpressionNPETest"); - invoke(); - } - - /** - * testName: uiComponentSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSetValueExpressionNPETest"); - invoke(); - } - - /** - * testName: uiComponentSetValueExpressionIAETest - * - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSetValueExpressionIAETest"); - invoke(); - } - - /** - * testName: uiComponentSubscribeToEventTest - * - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test cases: UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSubscribeToEventTest"); - invoke(); - } - - /** - * testName: uiComponentSubscribeToEventNPETest - * - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentSubscribeToEventNPETest"); - invoke(); - } - - // --------------------------------------------------- StateHolder Tests - /** - * testName: stateHolderIsSetTransientTest - * - * @assertion_ids: JSF:JAVADOC:442 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderIsSetTransientTest"); - invoke(); - } - - /** - * testName: stateHolderSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:445 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - /** - * testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:444 - * @test_Strategy: Verify that restoreState throws a NullpointerException if - * either FacesContext or state is null. - */ - public void stateHolderRestoreStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderRestoreStateNPETest"); - invoke(); - } - - /** - * testName: stateHolderSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify that saveState throws a NullpointerException if - * either FacesContext null. - */ - public void stateHolderSaveStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveStateNPETest"); - invoke(); - } - - // --------------------------------------------- PartialStateHolder Tests - - /** - * testName: partialStateHolderMICStateTest - * - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "partialStateHolderMICStateTest"); - invoke(); - } - - // ------------------------------------------------------------------------- - /** - * testName: actionSourceAddGetRemoveActListTest - * - * @assertion_ids: JSF:JAVADOC:392; JSF:JAVADOC:395; JSF:JAVADOC:398 - * @test_Strategy: Verify the following: - If no ActionListeners have been - * added, an empty array is returned. - Verify listeners added - * are present in the array returned by getActionListeners(). - * - Verify listeners that have been removed are not present - * in the array returned by getActionListeners(). - */ - public void actionSourceAddGetRemoveActListTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceAddGetRemoveActListTest"); - invoke(); - } - - /** - * testName: actionSourceAddActListNPETest - * - * @assertion_ids: JSF:JAVADOC:393 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceAddActListNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceAddActListNPETest"); - invoke(); - } - - /** - * testName: actionSourceRemoveActListNPETest - * - * @assertion_ids: JSF:JAVADOC:399 - * @test_Strategy: Verify a NullPointerException is thrown when attempting to - * pass a null value to removeActionListener(). - */ - public void actionSourceRemoveActListNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceRemoveActListNPETest"); - invoke(); - } - - /** - * testName: actionSourceRemoveActionListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:393 - * @test_Strategy: Verify a NullPointerEception is thrown when attempting to - * pass a null value to removeActionListener(). - */ - public void actionSourceRemoveActionListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceRemoveActionListenerNPETest"); - invoke(); - } - - /** - * testName: actionSourceGetSetActionTest - * - * @assertion_ids: JSF:JAVADOC:394; JSF:JAVADOC:400 - * @test_Strategy: Verify {get,set}Action() - if a value is set, the same - * value is returned. - */ - public void actionSourceGetSetActionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceGetSetActionTest"); - invoke(); - } - - /** - * testName: actionSourceGetSetActListTest - * - * @assertion_ids: JSF:JAVADOC:396 - * @test_Strategy: Verify {get,set}ActionListener() - if a value is set, the - * same value is returned. - */ - public void actionSourceGetSetActListTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceGetSetActListTest"); - invoke(); - } - - /** - * testName: actionSourceSetIsImmediateTest - * - * @assertion_ids: JSF:JAVADOC:402 - * @test_Strategy: Verify {is,set}Immediate() - if a value is set, the same - * value is returned. - */ - public void actionSourceSetIsImmediateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSourceSetIsImmediateTest"); - invoke(); - } - - // ----------------------------------------------------------------------------- - /** - * testName: actionSource2GetSetActionExpressionTest assertion_ids: - * JSF:JAVADOC:403 test_Strategy: Verify {get,set}ActionExpression in - * ActionSource2 components accept and properly return a provided - * MethodExpression instance. - * - * @since 1.2 - */ - public void actionSource2GetSetActionExpressionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionSource2GetSetActionExpressionTest"); - invoke(); - } - - // ----------------------------------------------------------------------------- - /** - * testName: valueHolderGetSetValueTest - * - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueHolderGetSetValueTest"); - invoke(); - } - - /** - * testName: valueHolderGetSetConverterTest - * - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Immediate() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueHolderGetSetConverterTest"); - invoke(); - } - - // --------------------------------------------------------- - // EditableValueHolder - /** - * testName: editableValueHolderIsSetValidTest - * - * @assertion_ids: JSF:JAVADOC:416 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "editableValueHolderIsSetValidTest"); - invoke(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "editableValueHolderIsSetImmediateTest"); - invoke(); - } - - /** - * testName: editableValueHolderAddGetRemoveValidatorTest - * - * @assertion_ids: JSF:JAVADOC:406; JSF:JAVADOC:411; JSF:JAVADOC:419; - * JSF:JAVADOC:412 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderAddGetRemoveValidatorTest"); - invoke(); - } - - /** - * testName: editableValueHolderGetSetSubmittedValueTest - * - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderGetSetSubmittedValueTest"); - invoke(); - } - - /** - * testName: editableValueHolderIsSetRequiredTest - * - * @assertion_ids: JSF:JAVADOC:417 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "editableValueHolderIsSetRequiredTest"); - invoke(); - } - - /** - * testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * - * @assertion_ids: JSF:JAVADOC:408; JSF:JAVADOC:420; JSF:JAVADOC:414 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderAddGetRemoveValueChangeListenerTest"); - invoke(); - } - - /** - * testName: editableValueHolderGetSetValueChangeListenerTest - * - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderGetSetValueChangeListenerTest"); - invoke(); - } - - /** - * testName: editableValueHolderAddValidatorNPETest - * - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "editableValueHolderAddValidatorNPETest"); - invoke(); - } - - /** - * testName: editableValueHolderAddValueChangeListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderAddValueChangeListenerNPETest"); - invoke(); - } - - /** - * testName: editableValueHolderRemoveValueChangeListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderRemoveValueChangeListenerNPETest"); - invoke(); - } - - /** - * testName: editableValueHolderIsSetLocalValueSetTest - * - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "editableValueHolderIsSetLocalValueSetTest"); - invoke(); - } - - // ------------------------------------ HTML Component Attributes Test - /** - * testName: componentAttributesTest - * - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentAttributesTest"); - invoke(); - } - - // --------------------------- Components that Implement NamingContainer - - /** - * testName: uiComponentGetContainerClientIdNPETest - * - * @assertion_ids: JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetContainerClientIdNPETest"); - invoke(); - } - - /** - * testName: uiComponentGetContainerClientIdTest - * - * @assertion_ids: JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiComponentGetContainerClientIdTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentTestServlet.java deleted file mode 100644 index 9218b7421e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseUIComponentTestServlet.java +++ /dev/null @@ -1,5173 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.beans.Introspector; -import java.beans.PropertyDescriptor; -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; -import java.io.Writer; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.List; -import java.util.ListIterator; -import java.util.Map; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.FacesException; -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.component.ContextCallback; -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIForm; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UINamingContainer; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIPanel; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.component.visit.VisitCallback; -import jakarta.faces.component.visit.VisitContext; -import jakarta.faces.component.visit.VisitHint; -import jakarta.faces.component.visit.VisitResult; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.ComponentSystemEventListener; -import jakarta.faces.event.FacesEvent; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.Renderer; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * This is the base test Servlet for classes that implement - * {@link jakarta.faces.component.UIComponent}. Any test that will be performing - * inheritance testing on a component that implements UIComponent, will need to - * extend this servlet. - *

- */ -public abstract class BaseUIComponentTestServlet - extends BasePartialStateHolderTestServlet { - - private Object foundComponent; - - // -------------------------------------------------------------- Public - // Methods - /** - *

- * Initialize this Servlet. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if initialization fails - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ----------------------------------------------------------- Protected - // Methods - /** - *

- * The expected renderer type for the component under test. - *

- */ - private String rendererType; - - protected String getRendererType() { - return rendererType; - } - - protected void setRendererType(String rendererType) { - this.rendererType = rendererType; - } - - private Boolean rendersChildren; - - protected Boolean getRendersChildren() { - return rendersChildren; - } - - protected void setRendersChildren(Boolean rendersChildren) { - this.rendersChildren = rendersChildren; - } - - private String[] attributeNames; - - protected String[] getAttributeNames() { - return attributeNames; - } - - protected void setAttributeNames(String[] attributeNames) { - this.attributeNames = attributeNames; - } - - // ------------------------------------------------------------- Private - // Methods - /** - * Comments to come later. - */ - private Map setupInvokeOnComponentTree() { - UIViewRoot root = new UIViewRoot(); - UIForm form1 = new UIForm(); - UIPanel panel1 = new UIPanel(); - UIInput input1 = new UIInput(); - UIInput input2 = new UIInput(); - UIForm form2 = new UIForm(); - UIPanel panel2 = new UIPanel(); - UIInput input3 = new UIInput(); - UIInput input4 = new UIInput(); - - root.setId("root"); - form1.setId("form1"); - panel1.setId("panel1"); - input1.setId("input1"); - input2.setId("input2"); - - form2.setId("form2"); - panel2.setId("panel2"); - input3.setId("input1"); - input4.setId("input2"); - - root.getChildren().add(form1); - form1.getChildren().add(panel1); - panel1.getChildren().add(input1); - panel1.getChildren().add(input2); - - root.getChildren().add(form2); - form2.getChildren().add(panel2); - panel2.getChildren().add(input3); - panel2.getChildren().add(input4); - - Map result = new HashMap(); - result.put("root", root); - result.put("form1", form1); - result.put("panel1", panel1); - result.put("input1", input1); - result.put("input2", input2); - result.put("form2", form2); - result.put("panel2", panel2); - result.put("input3", input3); - result.put("input4", input4); - - return result; - } - - /** - *

- * Validate the Map methods designated to be implemented by - * {@link UIComponent#getAttributes()} function as expected. - *

- * - *

- * The Map returned MUST implement all required and optional - * methods of the {@link Map} interface. - *

- * - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value must throw a - * NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must throw a - * ClassCastException.
  • - *
  • If the attribute name specified as a key matches a property of this - * {@link UIComponent}'s implementation class, the following methods will have - * special behavior: - *
      - *
    • containsKey - Return false.
    • - *
    • get() - If the property is readable, call the getter - * method and return the returned value (wrapping primitive values in their - * corresponding wrapper classes); otherwise throw - * IllegalArgumentException.
    • - *
    • put() - If the property is writeable, call the setter - * method to set the corresponding value (unwrapping primitive values in their - * corresponding wrapper classes). If the property is not writeable, or an - * attempt is made to set a property of primitive type to null, - * throw IllegalArgumentException.
    • - *
    • remove - Throw IllegalArgumentException.
    • - *
    - *
  • - *
- * - * @param component - * the {@link UIComponent} that provides the {@link Map} under test. - * @return a null if validation succeeds, otherwise an error. - */ - private String validateAttributeMap(UIComponent component) { - - Map map = component.getAttributes(); - - // Validate special requirements - if (!(map instanceof Serializable)) { - return "The Map does not implement java.io.Serializable"; - } - - try { - map.put(null, "value"); - return "No Exception thrown if a null Key was added to the Map."; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - return "Exception thrown when a null Key was added to the Map," - + " but it wasn't an instance of NullPointerException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - map.put("Key", null); - return "No Exception thrown if a null Value was added to the Map."; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - return "Exception thrown when a null Value was added to the Map," - + " but it wasn't an instance of NullPointerException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - map.put(new Object(), "value"); - return "No Exception thrown if a non-String Key was added to the Map."; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - return "Exception thrown when a null Value was added to the Map," - + " but it wasn't an instance of ClassCastException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - map.put("id", "compId"); - - if (map.containsKey("id")) { - return "Map.containsKey() failed to return false when the key " - + "requested was a known property of the UIComponent."; - } - - component.setId("myCompIdOrig"); - - if (!"myCompIdOrig".equals(map.get("id"))) { - return "Map.get() failed to return the ID of the component when the" - + " specified key was 'id'."; - } - - map.put("id", "newCompId"); - - if (!"newCompId".equals(component.getId())) { - return ("Map.put() using a Key that is a known property of the " - + "component under test failed to set the corresponding " - + "property of the component."); - } - - try { - map.remove("id"); - return "No Exception thrown when calling removed where the Key" - + " corresponds to a properly of the UIComponent under test."; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - return "An Exception was thrown when Map.remove() was called" - + " where the Key corresponded to a property of the" - + " UIComponent under test, but it was not an instance" - + " of IllegalArgumentException" + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName(); - } - } - - // validate methods from java.util.Map - map.put("key", "value"); - - if (!"value".equals(map.get("key"))) { - return "Unabled to get the value for key 'key' after adding" - + " the key and value via the 'put' operation."; - } - - if (!(map.size() >= 1)) { - return "Map.size() returned unexpected value. Expected the map " - + "to contain at least one element. Size returned: " + map.size(); - } - - map.clear(); - - if (map.size() != 0) { - return "Map.clear() failed to clear the Map under test of all " - + "entries"; - } - - if (map.containsKey("key")) { - return "Map.containsKey() returned true when no such key exists"; - } - - map.put("key", "value"); - - if (!map.containsKey("key")) { - return "Map.containsKey() returned false when a known key exists" - + " in the Map."; - } - - map.remove("key"); - - if (map.size() != 0) { - return "Map.remove() failed to clear the specified entry from" - + " the Map."; - } - - if (map.containsValue("value")) { - return "Map.containsValue() returned true when no such value " + "exists"; - } - - map.put("key", "value"); - - if (!map.containsValue("value")) { - return "Map.containsValue() returned false when a known value " - + "exists in the Map."; - } - - Set entrySet = map.entrySet(); - if (entrySet.size() == 1) { - for (Iterator i = entrySet.iterator(); i.hasNext();) { - Map.Entry entry = (Map.Entry) i.next(); - if (!"key".equals(entry.getKey())) { - return "Map.Entry returned from Map.entrySet() contains an" - + " invalid Key."; - } - if (!"value".equals(entry.getValue())) { - return "Map.Entry returned from Map.entrySet() contains an" - + " invalid Value."; - } - } - } else { - return "Expected the Set returned by Map.entrySet() to contain" - + " one entry. Number of Entries found: " + entrySet.size(); - } - - if (!map.equals(map)) { - return "Map.equals() returned false when the same map was provided" - + " as the argument."; - } - - if (map.equals(new HashMap())) { - return "Map.equals() returned true when this Map was compared to a " - + "new HashMap instance."; - } - - if (map.isEmpty()) { - return "Map.isEmpty() returned true when a known entry is " - + "known to exist."; - } - - map.clear(); - - if (!map.isEmpty()) { - return "Map.isEmpty() returned false when all entries were cleared" - + " prior to calling isEmpty()."; - } - - map.put("key", "value"); - - Set keySet = map.keySet(); - - if (keySet.size() == 1) { - for (Iterator i = keySet.iterator(); i.hasNext();) { - String key = (String) i.next(); - if (!"key".equals(key)) { - return "The key found in the Set returned by Map.keySet() " - + "was not the key expected to be found."; - } - } - } else { - return "Map.keySet() returned a set with more than 1 entry."; - } - - map.clear(); - - HashMap hashMap = new HashMap(); - hashMap.put("key", "value"); - - map.putAll(hashMap); - - if (map.size() != 1 && !map.containsKey("key") - && !map.containsValue("value")) { - return "Map.putAll() failed to yeild the expected results." - + JSFTestUtil.NL + "Size: " + map.size() + JSFTestUtil.NL - + "Contains 'key': " + map.containsKey("key") + JSFTestUtil.NL - + "Contains 'value': " + map.containsValue("value"); - } - - Collection values = map.values(); - if (values.size() == 1) { - for (Iterator i = values.iterator(); i.hasNext();) { - String value = (String) i.next(); - if (!"value".equals(value)) { - return "The Collection returned by Map.values() didn't contain" - + " the expected values."; - } - } - } else { - return "Map.values() returned a Collection with more than 1 entry."; - } - - return null; - } - - /** - * The returned implementation must support all of the standard and optional - * Map methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value must throw a - * NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must throw a - * ClassCastException.
  • - *
  • Any attempt to add a value that is not a {@link UIComponent} must throw - * a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must be set to this - * component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is removed: - *
      - *
    • The parent property of the facet must be set to - * null.
    • - *
    - *
  • - *
- * - * @param component - * the {@link UIComponent} that provides the {@link Map} under test. - * @return a null if validation succeeds, otherwise an error. - */ - private String validateFacetMap(UIComponent component) { - - Map map = component.getFacets(); - - // Validate special requirements - if (!(map instanceof Serializable)) { - return "The Map does not implement java.io.Serializable"; - } - - try { - map.put(null, new UIOutput()); - return "No Exception thrown if a null Key was added to the Map."; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - return "Exception thrown when a null Key was added to the Map," - + " but it wasn't an instance of NullPointerException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - map.put("Key", null); - return "No Exception thrown if a null Value was added to the Map."; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - return "Exception thrown when a null Value was added to the Map," - + " but it wasn't an instance of NullPointerException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - map.put(new Object(), new UIOutput()); - return "No Exception thrown if a non-String Key was added to the Map."; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - return "Exception thrown when a null Value was added to the Map," - + " but it wasn't an instance of ClassCastException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - map.put("key", "value"); - return "No Exception thrown if a non-UIComponent value was added " - + "to the Map."; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - return "Exception thrown when a non-UIComponent value was " - + "added to the Map, but it wasn't an instance of " - + "ClassCastException." + JSFTestUtil.NL + "Exception Received: " - + e.getClass().getName(); - } - } - - UIComponent comp = new UIOutput(); - map.put("facet1", comp); - - if (!component.equals(comp.getParent())) { - return "The parent property of the Facet added " - + "to the component under test did was not set, or was " - + "not the expected value." + JSFTestUtil.NL + "Expected: " - + component + JSFTestUtil.NL + "Received: " + comp.getParent(); - } - - map.remove("facet1"); - if (comp.getParent() != null) { - return "The parent propery of the Facet just removed from the " - + "parent component was not null."; - } - - comp = new UIOutput(); - - // validate methods from java.util.Map - map.put("key", comp); - - if (!comp.equals(map.get("key"))) { - return "Unabled to get the value for key 'key' after adding" - + " the key and value via the 'put' operation."; - } - - if (!(map.size() >= 1)) { - return "Map.size() returned unexpected value. Expected the map " - + "to contain at least one element. Size returned: " + map.size(); - } - - map.clear(); - - if (map.size() != 0) { - return "Map.clear() failed to clear the Map under test of all " - + "entries"; - } - - if (map.containsKey("key")) { - return "Map.containsKey() returned true when no such key exists"; - } - - map.put("key", comp); - - if (!map.containsKey("key")) { - return "Map.containsKey() returned false when a known key exists" - + " in the Map."; - } - - map.remove("key"); - - if (map.size() != 0) { - return "Map.remove() failed to clear the specified entry from" - + " the Map."; - } - - if (map.containsValue(comp)) { - return "Map.containsValue() returned true when no such value " + "exists"; - } - - map.put("key", comp); - - if (!map.containsValue(comp)) { - return "Map.containsValue() returned false when a known value " - + "exists in the Map."; - } - - Set entrySet = map.entrySet(); - if (entrySet.size() == 1) { - for (Iterator i = entrySet.iterator(); i.hasNext();) { - Map.Entry entry = (Map.Entry) i.next(); - if (!"key".equals(entry.getKey())) { - return "Map.Entry returned from Map.entrySet() contains " - + "an invalid Key."; - } - if (!comp.equals(entry.getValue())) { - return "Map.Entry returned from Map.entrySet() contains " - + "an invalid Value."; - } - } - } else { - return "Expected the Set returned by Map.entrySet() to contain" - + " one entry. Number of Entries found: " + entrySet.size(); - } - - if (!map.equals(map)) { - return "Map.equals() returned false when the same map was " - + "provided as the argument."; - } - - if (map.equals(new HashMap())) { - return "Map.equals() returned true when this Map was compared to " - + "a new HashMap instance."; - } - - if (map.isEmpty()) { - return "Map.isEmpty() returned true when a known entry is " - + "known to exist."; - } - - map.clear(); - - if (!map.isEmpty()) { - return "Map.isEmpty() returned false when all entries were cleared" - + " prior to calling isEmpty()."; - } - - map.put("key", comp); - - Set keySet = map.keySet(); - - if (keySet.size() == 1) { - for (Iterator i = keySet.iterator(); i.hasNext();) { - String key = (String) i.next(); - if (!"key".equals(key)) { - return "The key found in the Set returned by Map.keySet() " - + "was not the key expected to be found."; - } - } - } else { - return "Map.keySet() returned a set with more than 1 entry."; - } - - map.clear(); - - HashMap hashMap = new HashMap(); - hashMap.put("key", comp); - - map.putAll(hashMap); - - if (map.size() != 1 && !map.containsKey("key") - && !map.containsValue(comp)) { - return "Map.putAll() failed to yeild the expected results." - + JSFTestUtil.NL + "Size: " + map.size() + JSFTestUtil.NL - + "Contains 'key': " + map.containsKey("key") + JSFTestUtil.NL - + "Contains 'value': " + map.containsValue("value"); - } - - Collection values = map.values(); - if (values.size() == 1) { - for (Iterator i = values.iterator(); i.hasNext();) { - Object value = i.next(); - if (!comp.equals(value)) { - return "The Collection returned by Map.values() didn't " - + "contain the expected values."; - } - } - } else { - return "Map.values() returned a Collection with more than 1 entry."; - } - - return null; - } - - /** - * The returned implementation must support all of the standard and optional - * List methods, plus support the following additional - * requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a non-null - * componentId that contains invalid characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than letters, digits, '-', - * or '_') must throw IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be set to this - * component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be set to - * null.
    • - *
    - *
  • - *
- * - * @param component - * the {@link UIComponent} that will yield the {@link List} under - * test - * @return null if all validations succeed, or a String containing an error - * message. - */ - private String validateListMethods(UIComponent component) { - StringBuffer sb = new StringBuffer(25); - - List list = component.getChildren(); - // Begin section for validating List methods - UIComponent c0 = new UIInput(); - UIComponent c1 = new UIInput(); - UIComponent c2 = new UIInput(); - UIComponent c3 = new UIInput(); - c0.setId("index0"); - c1.setId("index1"); - c2.setId("index2"); - c3.setId("index3"); - - list.clear(); - - if (!list.isEmpty()) { - sb.append("List.clear() failed to clear all of the elements from"); - sb.append("the List."); - return sb.toString(); - } - - list.add(0, c0); - - if (list.isEmpty()) { - sb.append("List.isEmpty() returned true after an element was added"); - sb.append("to the List"); - return sb.toString(); - } - - if (!"index0".equals(((UIComponent) list.get(0)).getId())) { - sb.append(JSFTestUtil.FAIL + " Unabled to obtain Object from index 0"); - sb.append(" that was explicitly set to that index by add"); - sb.append("(int, Object)" + JSFTestUtil.NL); - return sb.toString(); - } - - list.add(c1); - - if (!"index1".equals(((UIComponent) list.get(1)).getId())) { - sb.append(JSFTestUtil.FAIL + " Unabled to obtain Object from index 1"); - sb.append(" that was added via add(Object)" + JSFTestUtil.NL); - return sb.toString(); - } - - Collection c = new ArrayList(); - c.add(c2); - c.add(c3); - - list.addAll(c); - - if (list.size() != 4) { - sb.append("Called addAll(Collection) with a Set containing 2 "); - sb.append("elements. The resulting list should have had a size"); - sb.append(" of four." + JSFTestUtil.NL).append("Actual size: ") - .append(list.size()); - return sb.toString(); - } - - if (!"index2".equals(((UIComponent) list.get(2)).getId()) - && !"index3".equals(((UIComponent) list.get(3)).getId())) { - sb.append("Expected the values stored at index 2 and 3 to be"); - sb.append( - " 'index2' and 'index3'" + JSFTestUtil.NL + "Value at index 2: "); - sb.append(((UIComponent) list.get(2)).getId()).append('\n'); - sb.append("Value at index 3: ") - .append(((UIComponent) list.get(3)).getId()).append('\n'); - return sb.toString(); - } - - list.addAll(0, c); - - if (list.size() != 4) { - sb.append("Called addAll(int, Collection) with a Set containing 2 "); - sb.append("elements to replace elements 0 and 1. The resulting "); - sb.append("list should have had a size"); - sb.append(" of four." + JSFTestUtil.NL).append("Actual size: ") - .append(list.size()); - return sb.toString(); - } - - if (!"index2".equals(((UIComponent) list.get(0)).getId()) - && !"index3".equals(((UIComponent) list.get(1)).getId())) { - sb.append("Expected the values stored at index 0 and 1 to be"); - sb.append( - " 'index2' and 'index3'" + JSFTestUtil.NL + "Value at index 0: "); - sb.append(((UIComponent) list.get(0)).getId()).append('\n'); - sb.append("Value at index 1: ") - .append(((UIComponent) list.get(1)).getId()).append('\n'); - return sb.toString(); - } - - list.clear(); - - if (!list.isEmpty()) { - sb.append("List.clear() failed to clear all of the elements from"); - sb.append("the List."); - return sb.toString(); - } - - list.add(c0); - list.add(c1); - - if (!list.contains(c0)) { - sb.append("List.contains(Object) returned false for an object"); - sb.append(" known to exist in the List."); - return sb.toString(); - } - - if (list.contains(c3)) { - sb.append("List.contains(Object) returned true for an object"); - sb.append(" known not to exist in the List."); - return sb.toString(); - } - - if (!list.containsAll(list)) { - sb.append("List.containsAll(Collection) failed to return true"); - sb.append(" when a Collection containing the same elements was passed."); - return sb.toString(); - } - - c = new ArrayList(); - c.add(new UICommand()); - c.add(new UIOutput()); - - if (list.containsAll(c)) { - sb.append("List.containsAll(Collection) returned true when passed"); - sb.append(" a Collection with non matching elements"); - return sb.toString(); - } - - if (!list.equals(list)) { - sb.append("List.equals() returned false when providing itself as"); - sb.append(" an argument."); - return sb.toString(); - } - - if (list.equals(new ArrayList())) { - sb.append("List.equals() returned true when providing a new"); - sb.append(" ArrayList with no elements."); - return sb.toString(); - } - - list.hashCode(); - list.add(c1); - - if (list.indexOf(c1) != 1) { - sb.append("List.indexOf(Object) failed to return the expected index"); - sb.append(" of '1'. Index returned: ").append(list.indexOf(c1)); - return sb.toString(); - } - - if (list.indexOf("INNNNDEX") != -1) { - sb.append("List.indexOf(Object) failed to return the expected value"); - sb.append(" of -1 when the Object supplied didn't exist in the list."); - return sb.toString(); - } - - list.clear(); - list.add(c0); - list.add(c1); - list.add(c2); - - UIComponent[] values = { c0, c1, c2 }; - int count = 0; - for (Iterator i = list.iterator(); i.hasNext();) { - String val = ((UIComponent) i.next()).getId(); - if (!values[count].getId().equals(val)) { - sb.append("Iterator returned by List.iterator() didn't return"); - sb.append(" the elements in the expected order." + JSFTestUtil.NL); - sb.append("Index of failure: ").append(count).append('\n'); - sb.append("Expected value: ").append(values[count].getId()) - .append('\n'); - sb.append("Received: ").append(val); - return sb.toString(); - } - count++; - } - - list.add(c3); - if (list.lastIndexOf(c3) != 3) { - sb.append("List.lastIndexOf(Object) failed to return the expected"); - sb.append(" result of 3." + JSFTestUtil.NL + "Recevied: ") - .append(list.lastIndexOf(c1)); - return sb.toString(); - } - - if (list.lastIndexOf("INNNNDEX") != -1) { - sb.append("List.lastIndexOf(Object) failed to return the expected value"); - sb.append(" of -1 when the Object supplied didn't exist in the list."); - return sb.toString(); - } - - values = new UIComponent[] { c0, c1, c2, c3 }; - count = 0; - for (ListIterator i = list.listIterator(); i.hasNext();) { - String val = ((UIComponent) i.next()).getId(); - if (!values[count].getId().equals(val)) { - sb.append( - "ListIterator returned by List.listIterator() " + "didn't return"); - sb.append(" the elements in the expected order." + JSFTestUtil.NL); - sb.append("Index of failure: ").append(count).append('\n'); - sb.append("Expected value: ").append(values[count].getId()) - .append('\n'); - sb.append("Received: ").append(val); - return sb.toString(); - } - count++; - } - - values = new UIComponent[] { c2, c3 }; - count = 0; - for (ListIterator i = list.listIterator(2); i.hasNext();) { - Object val = ((UIComponent) i.next()).getId(); - if (!values[count].getId().equals(val)) { - sb.append("ListIterator returned by List.listIterator(int) " - + "didn't return"); - sb.append(" the elements in the expected order." + JSFTestUtil.NL); - sb.append("Index of failure: ").append(count).append('\n'); - sb.append("Expected value: ").append(values[count].getId()) - .append('\n'); - sb.append("Received: ").append(val); - return sb.toString(); - } - count++; - } - - Object ret = list.remove(0); - - if (!"index0".equals(((UIComponent) ret).getId())) { - sb.append("Expected List.remove(int) to return the object removed"); - sb.append(" from the specified index." + JSFTestUtil.NL); - sb.append("Expected: index0" + JSFTestUtil.NL); - sb.append("Recevied: ").append(((UIComponent) ret).getId()); - return sb.toString(); - } - - if (list.size() != 3) { - sb.append("List.remove(int) didn't remove the element at index 0"); - sb.append(" as doing so would have put the size of the List at 3."); - sb.append("Current List size: ").append(list.size()); - return sb.toString(); - } - - if (!"index1".equals(((UIComponent) list.get(0)).getId())) { - sb.append("List.remove(int) didn't shift the remaining elements." - + JSFTestUtil.NL); - sb.append("Expected Object at index 0: index1" + JSFTestUtil.NL); - sb.append("Actual: ").append(((UIComponent) list.get(0)).getId()); - return sb.toString(); - } - - if (!list.remove(c1)) { - sb.append("List.remove(Object) failed to return true as expected."); - } - - if (list.size() != 2) { - sb.append("List.remove(Object) didn't remove the element specified"); - sb.append(" as doing so would have put the size of the List at 2."); - sb.append("Current List size: ").append(list.size()); - return sb.toString(); - } - - if (!"index2".equals(((UIComponent) list.get(0)).getId())) { - sb.append("List.remove(int) didn't shift the remaining " + "elements." - + JSFTestUtil.NL); - sb.append("Expected Object at index 0: index2" + JSFTestUtil.NL); - sb.append("Actual: ").append(((UIComponent) list.get(0)).getId()); - return sb.toString(); - } - - list.clear(); - - list.add(c0); - list.add(c1); - list.add(c2); - list.add(c3); - c = new ArrayList(); - c.add(c1); - c.add(c2); - - if (!list.removeAll(c)) { - sb.append("List.removeAll(c) didn't return true as expected."); - return sb.toString(); - } - - if (list.size() != 2) { - sb.append("List.removeAll(Collection) failed to remove the number"); - sb.append(" of expected elements. The List contained 4 elements,"); - sb.append(" and the Collection passed, contained 2." + JSFTestUtil.NL - + "The result"); - sb.append("ing size should have been 2. The current size: "); - sb.append(list.size()); - return sb.toString(); - } - - if (!"index0".equals(((UIComponent) list.get(0)).getId()) - && !"index3".equals(((UIComponent) list.get(1)).getId())) { - sb.append("List.removeAll(Collection) removed the wrong elements."); - sb.append("Expected the remaining elements to be 'index0' and"); - sb.append(" 'index3'" + JSFTestUtil.NL); - sb.append("Element at index 0: ") - .append(((UIComponent) list.get(0)).getId()).append('\n'); - sb.append("Element at index 1: ") - .append(((UIComponent) list.get(1)).getId()); - return sb.toString(); - } - - list.clear(); - list.add(c0); - list.add(c1); - list.add(c2); - list.add(c3); - - c = new ArrayList(); - c.add(c1); - c.add(c3); - - if (!list.retainAll(c)) { - sb.append("List.retainAll(Collect) failed to return true as expected."); - return sb.toString(); - } - - if (list.size() != 2) { - sb.append("List.retainAll(Collection) failed to remove the number"); - sb.append(" of expected elements. The List contained 4 elements,"); - sb.append(" and the Collection passed, contained 2." + JSFTestUtil.NL - + "The result"); - sb.append("ing size should have been 2. The current size: "); - sb.append(list.size()); - return sb.toString(); - } - - if (!"index1".equals(((UIComponent) list.get(0)).getId()) - && !"index3".equals(((UIComponent) list.get(1)).getId())) { - sb.append("List.retainAll(Collection) removed the wrong elements."); - sb.append("Expected the remaining elements to be 'index1' and"); - sb.append(" 'index3'" + JSFTestUtil.NL); - sb.append("Element at index 0: ") - .append(((UIComponent) list.get(0)).getId()).append('\n'); - sb.append("Element at index 1: ") - .append(((UIComponent) list.get(1)).getId()); - return sb.toString(); - } - - ret = list.set(1, c2); - - if (!"index3".equals(((UIComponent) ret).getId())) { - sb.append("List.set(int, Object) failed to return the expected"); - sb.append( - " value when a valid index replacement occurred." + JSFTestUtil.NL); - sb.append("Expected: index3" + JSFTestUtil.NL); - sb.append("Received: ").append(((UIComponent) ret).getId()); - return sb.toString(); - } - - if (!"index2".equals(((UIComponent) list.get(1)).getId())) { - sb.append("List.set(int, Object) failed to set the value at"); - sb.append(" index 1." + JSFTestUtil.NL); - sb.append("Expected: index2" + JSFTestUtil.NL); - sb.append("Received: ").append(((UIComponent) list.get(1)).getId()); - return sb.toString(); - } - - list.clear(); - list.add(c0); - list.add(c1); - list.add(c2); - list.add(c3); - - List subList = list.subList(1, 3); - if (subList.size() != 2) { - sb.append("List.subList(1, 3) failed to return a List containing two"); - sb.append(" elements." + JSFTestUtil.NL); - sb.append("Number of elements returned: ").append(subList.size()); - return sb.toString(); - } - - if (!"index1".equals(((UIComponent) subList.get(0)).getId()) - && !"index2".equals(((UIComponent) subList.get(1)).getId())) { - sb.append("The List returned by List.subList() failed to contain"); - sb.append( - " the expected values of 'index1' and 'index2'." + JSFTestUtil.NL); - sb.append("Element at index 0: ") - .append(((UIComponent) subList.get(0)).getId()).append('\n'); - sb.append("Element at index 1: ") - .append(((UIComponent) subList.get(1)).getId()); - return sb.toString(); - } - - String[] strValues = new String[] { "index0", "index1", "index2", - "index3" }; - - Object[] array = list.toArray(); - Object[] temp = new String[array.length]; - for (int i = 0; i < array.length; i++) { - temp[i] = ((UIComponent) array[i]).getId(); - } - array = temp; - - Arrays.sort(strValues); - Arrays.sort(array); - - if (!Arrays.equals(array, strValues)) { - sb.append("List.toArray() didn't return all of the expected values"); - sb.append("Expected a length of 4, received: ").append(array.length) - .append('\n'); - sb.append( - "Values expected: index0, index1, index2, index3" + JSFTestUtil.NL); - sb.append("Values received: ").append(JSFTestUtil.getAsString(array)); - return sb.toString(); - } - - UIComponent[] strArray = (UIComponent[]) list - .toArray(new UIComponent[list.size()]); - temp = new String[strArray.length]; - for (int i = 0; i < strArray.length; i++) { - temp[i] = (strArray[i]).getId(); - } - array = temp; - - if (!Arrays.equals(array, strValues)) { - sb.append("List.toArray(Object[]) didn't return all of the " - + "expected values"); - sb.append("Expected a length of 4, received: ").append(array.length) - .append('\n'); - sb.append( - "Values expected: index0, index1, index2, index3" + JSFTestUtil.NL); - sb.append("Values received: ").append(JSFTestUtil.getAsString(array)); - return sb.toString(); - } - - // Now check for Faces specific List behavior - if (!(list instanceof java.io.Serializable)) { - sb.append("List returned by getChildren() is not an instance of "); - sb.append("java.io.Serializable."); - return sb.toString(); - } - - try { - list.add(null); - return "No Exception thrown if a null value was added to the List."; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - return "Exception thrown when a null value was added to the " - + "List, but it wasn't an instance of " + "NullPointerException." - + JSFTestUtil.NL + "Exception Received: " + e.getClass().getName(); - } - } - - try { - list.add("StringType"); - return "No Exception thrown if a non-UIComponent value was added " - + "to the List."; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - return "Exception thrown when a non-UIComponent value was " - + "added to the List, but it wasn't an instance of " - + "ClassCastException." + JSFTestUtil.NL + "Exception Received: " - + e.getClass().getName(); - } - } - - UIInput input = new UIInput(); - input.setId("id"); - list.add(input); - - if (!input.getParent().equals(component)) { - return "When child component was added to List, it didn't have its" - + " parent component explicitly set to the Component where " - + "the List originated from."; - } - - list.remove(input); - if (input.getParent() != null) { - return "After removing a child component from the parents list, the" - + " child still contained a reference to its previous parent. " - + " The reference should have been set to null."; - } - return null; - } - - /** - *

- * Using the {@link UIComponent}s and expression provided, call findComponent - * on the searchFrom component using the specified - * expression. If the component is not found, write a message to - * the provided Writer. - * - * @param searchFrom - * the UIComponent to perform the search from - * @param searchFor - * the UIComponent to search for - * @param expression - * the search expression - * @param out - * the StringBuffer to write error messages to - */ - private void assertFound(UIComponent searchFrom, UIComponent searchFor, - String expression, StringBuffer out) { - - UIComponent comp = searchFrom.findComponent(expression); - if (searchFor != comp) { - out.append(JSFTestUtil.FAIL + " Unabled to find component '"); - out.append(searchFor.getId()).append("' relative to component '"); - out.append(searchFrom.getId()).append("' using expression '"); - out.append(expression).append("'." + JSFTestUtil.NL); - out.append("Component found: ") - .append(comp != null ? comp.getId() : "null"); - out.append(JSFTestUtil.NL); - } - } - - /** - *

- * Using the {@link UIComponent} and expression provided, assert that no - * component is found when findComponent is called. If a - * component is found, print an error message. - *

- * - * @param searchFrom - * the UIComponent to perform the search from - * @param expression - * the search expression - * @param out - * the StringBuffer to write error messages to - */ - private void assertNotFound(UIComponent searchFrom, String expression, - StringBuffer out) { - UIComponent comp = searchFrom.findComponent(expression); - if (comp != null) { - out.append(JSFTestUtil.FAIL + " Expected findComponent() to return null"); - out.append(" when calling findComponent() from component '"); - out.append(searchFrom.getId()).append("' using expression '"); - out.append(expression).append("'." + JSFTestUtil.NL); - out.append("Component found: ").append(comp.getId()); - } - } - - // ------------------------------------------- Test Methods ---- - // UIComponent.getAttributes() - public void uiComponentGetAttributesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String result = validateAttributeMap(createComponent()); - if (result != null) { - out.println(JSFTestUtil.FAIL + " " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getClientId(FacesContext) - public void uiComponentGetClientIdContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewRoot root = getFacesContext().getViewRoot(); - root.setViewId("/test"); - root.setId("root"); - UIComponent comp = createComponent(); - root.getChildren().add(comp); - - // Not much can be done here aside from ensuring the result is - // not null. - if (comp.getClientId(getFacesContext()) == null) { - out.println( - JSFTestUtil.FAIL + " getClientId(FacesContext) " + "returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getClientId() - public void uiComponentGetClientIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewRoot root = getFacesContext().getViewRoot(); - root.setViewId("/test"); - root.setId("root"); - UIComponent comp = createComponent(); - root.getChildren().add(comp); - - // Not much can be done here aside from ensuring the result is - // not null. (Client IDs themselves can be Implementation specific.) - if (comp.getClientId() == null) { - out.println(JSFTestUtil.FAIL + " getClientId() returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentComponent() - public void uiComponentGetCurrentComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String expectedId = "myComp"; - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId("myComp"); - - String uicType = component.getClass().getSimpleName(); - - component.encodeBegin(context); - - UIComponent mc = UIComponent.getCurrentComponent(context); - String recId = mc.getId(); - - if (!expectedId.equals(recId)) { - out.println("Test FAILED. " + uicType + ".getCurrentComponent() " - + "returned unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected ID: " + expectedId + JSFTestUtil.NL + "Receieved ID: " - + recId); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentComponent() - public void uiComponentGetCurrentComponentNullTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId("test_ID"); - String uicType = component.getClass().getSimpleName(); - - /* - * Push UIComponents onto the EL Data Structure. - */ - component.encodeBegin(context); - - /* - * Remove the Component from the Data Structure. - */ - component.encodeEnd(context); - if (null != UIComponent.getCurrentComponent(context)) { - out.println("Test FAILED. " + uicType + ".getCurrentComponent() " - + "returned unexpected UIComponent." + JSFTestUtil.NL - + "Expected Call to UIComponent." - + "getCurrentComponent(context) to return null." + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentComponent() - public void uiComponentGetCurrentComponentNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - createComponent(); - - try { - UIComponent.getCurrentComponent(null); - out.println(JSFTestUtil.FAIL + " UIComponent.getCurrentComponent(null) " - + "failed to throw an exception when a null " - + "FacesContext argument was passed."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. Unexpected Exception thrown for " - + "UIComponent.getCurrentComponent(null)" - + " it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentCompositeComponent() - public void uiComponentGetCurrentCompositeComponentNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId("test_ID"); - String uicType = component.getClass().getSimpleName(); - - /* - * Push UIComponents onto the EL Data Structure. - */ - component.encodeBegin(context); - - /* - * Remove the Component from the Data Structure. - */ - component.encodeEnd(context); - if (null != UIComponent.getCurrentCompositeComponent(context)) { - out.println("Test FAILED. " + uicType - + ".getCurrentCompositeComponent() returned unexpected " - + "UIComponent." + JSFTestUtil.NL + "Expected Call to UIComponent." - + "getCurrentCompositeComponent(context) to return null." - + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentComponent() - public void uiComponentGetCurrentCompositeComponentNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - createComponent(); - - try { - UIComponent.getCurrentCompositeComponent(null); - out.println(JSFTestUtil.FAIL + " UIComponent." - + "getCurrentCompositeComponent(null) " - + "failed to throw an exception when a null " - + "FacesContext argument was passed."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. Unexpected Exception thrown for " - + "UIComponent.getCurrentCompositeComponent(null)" - + " it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.isCompositeComponent() - public void uiComponentIsCompositeComponentNegTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId("test_ID"); - String uicType = component.getClass().getSimpleName(); - - if (false != UIComponent.isCompositeComponent(component)) { - out.println("Test FAILED. " + uicType - + ".isCompositeComponent() returned unexpected " + "UIComponent." - + JSFTestUtil.NL + "Expected Call to UIComponent." - + "isCurrentCompositeComponent(context) to return false." - + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getCurrentComponent() - public void uiComponentIsCompositeComponentNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - createComponent(); - - try { - UIComponent.isCompositeComponent(null); - out.println( - JSFTestUtil.FAIL + " UIComponent." + "isCompositeComponent(null) " - + "failed to throw an exception when a null " - + "FacesContext argument was passed."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. Unexpected Exception thrown for " - + "UIComponent.isCompositeComponent(null)" - + " it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getClientId() throws NPE if FacesContext arg is null - public void uiComponentGetClientIdNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - createComponent().getClientId(null); - out.println(JSFTestUtil.FAIL + " getClientId() failed to throw an " - + "exception when a null FacesContext argument was passed."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " getClientId() threw an Exception " - + "when a null FacesContext argument was passed, but" - + " it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.{get,set}Id - public void uiComponentGetSetIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - String id = "compID"; - - comp.setId(id); - if (!id.equals(comp.getId())) { - out.println(JSFTestUtil.FAIL + " getId() failed to return" - + " the expected value '" + id + "'."); - return; - } - - comp.setId(null); - if (comp.getId() != null) { - out.println(JSFTestUtil.FAIL + " getId() failed to return null" - + " after null was explicitly set via setId()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.queueEvent() throws NullPointerException - public void uiComponentQueueEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "queueEvent", - new Class[] { FacesEvent.class }, new Object[] { null }, out); - } - - // UIComponent.restoreAttachedState() throws NullPointerException - public void uiComponentRestoreAttachedStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), - "restoreAttachedState", - new Class[] { FacesContext.class, Object.class }, - new Object[] { null, "test" }, out); - } - - // UIComponent.saveAttachedState() throws NullPointerException - public void uiComponentSaveAttachedStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "saveAttachedState", - new Class[] { FacesContext.class, Object.class }, - new Object[] { null, "test" }, out); - } - - // UIComponent.setId(String) enforces certain restrictions - public void uiComponentSetIdRestrictionsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - - try { - comp.setId(""); - out.println(JSFTestUtil.FAIL + " No Exception thrown when setId() was" - + " passed a zero-length String."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when setId() was" - + " passed a zero-length String, but it wasn't an" - + " instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - comp.setId("1__simple-ID"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when setId() was" - + " passed an ID that starts with a numeric."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when setId() was" - + " passed an ID that starts with a numeric, but it wasn't an" - + " instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - comp.setId("illegal#id"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when setId() was" - + " passed an ID that contains an illegal character(#)."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when setId() was" - + " passed an ID contains an illegal character(#)" - + ", but it wasn't an" + " instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - comp.setId("_this--is_a_val-idID"); - } catch (Exception e) { - if (e instanceof IllegalArgumentException) { - out.println(JSFTestUtil.FAIL + " IllegalArgumentException thrown " - + "when setId() was passed a valid id " - + "(_this--is_a_val-idID)."); - return; - - } - throw new ServletException("Unexpected Exception: " + e.toString(), e); - } - - try { - comp.setId(null); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception thrown " - + "when setId() was passed null."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test for UIComponent.subscribeToEvent - public void uiComponentSubscribeToEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - UIComponent uic = createComponent(); - SystemEvent cse = new TCKSystemEvent(uic); - - ComponentSystemEventListener csel = new TCKComponentSystemEventlistener(); - - if (application != null) { - try { - uic.subscribeToEvent(cse.getClass(), csel); - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED."); - e.printStackTrace(); - } - - } else { - out.println(JSFTestUtil.FAIL + " Unable to obtain Application instance."); - } - } - - // Test for UIComponent.subscribeToEvent - public void uiComponentSubscribeToEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Application application = getApplication(); - - UIComponent uic = createComponent(); - SystemEvent cse = new TCKSystemEvent(uic); - ComponentSystemEventListener csel = new TCKComponentSystemEventlistener(); - - boolean status = true; - // UIComponent.subscribeToEvent(Class, null) - if (application != null) { - try { - uic.subscribeToEvent(cse.getClass(), null); - status = false; - out.println("Test FAILED. Expected NullPointerException!" - + JSFTestUtil.NL + "When ComponentSystemEventListener is null. " - + "No Exception thrown for the following test case:" - + JSFTestUtil.NL + "UIComponent.SubscribeToEvent(Class, null)"); - - } catch (NullPointerException npe) { - // Do Nothing Test passed. - } catch (Exception e) { - status = false; - out.println("Test FAILED. UnExpected Exception!" + JSFTestUtil.NL - + "Expected: NulPointerException" + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - // UIComponent.subscribeToEvent(null, ComponentSystemEventlistener) - try { - uic.subscribeToEvent(null, csel); - status = false; - out.println("Test FAILED. Expected NullPointerException!" - + JSFTestUtil.NL + "When SystemEvent is null. No Exception thrown " - + "for the following test case:" + JSFTestUtil.NL - + "UIComponent.SubscribeToEvent(null, " - + "ComponentSystemEventlistener)"); - - } catch (NullPointerException npe) { - // Do Nothing Test passed. - } catch (Exception e) { - status = false; - out.println("Test FAILED."); - out.println("UnExpected Exception!" + JSFTestUtil.NL - + "Expected: NulPointerException" + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - } else { - out.println(JSFTestUtil.FAIL + " Unable to obtain Application instance."); - } - - // Did anything fail? - if (status) { - out.println(JSFTestUtil.PASS); - } - } - - // UIComponent.{get,set}Parent() - public void uiComponentGetSetParentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - if (comp.getParent() != null) { - out.println(JSFTestUtil.FAIL + " UIComponent.getParent() returned a non" - + "-null result for a newly created component."); - return; - } - - UIViewRoot root = getFacesContext().getViewRoot(); - root.getChildren().add(comp); - - if (!root.equals(comp.getParent())) { - out.println(JSFTestUtil.FAIL + " getParent() returned an unexpected " - + "parent component."); - out.println("Expected: " + root); - out.println("Received: " + comp.getParent()); - } - - root.getChildren().remove(comp); - UIComponent input = new UIInput(); - root.getChildren().add(input); - input.getChildren().add(comp); - - if (!input.equals(comp.getParent())) { - out.println(JSFTestUtil.FAIL + " getParent() returned an unexpected " - + "parent component."); - out.println("Expected: " + input); - out.println("Received: " + comp.getParent()); - } - - comp.setParent(null); - if (comp.getParent() != null) { - out.println(JSFTestUtil.FAIL + " UIComponent.getParent() returned a non" - + "-null result after calling setParent(null)."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.{is,set}Rendered() - public void uiComponentIsSetRenderedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - comp.setRendered(true); - if (!comp.isRendered()) { - out.println(JSFTestUtil.FAIL + " isRendered() returned false after" - + " calling setRendered(true)."); - return; - } - - comp.setRendered(false); - if (comp.isRendered()) { - out.println(JSFTestUtil.FAIL + " isRendered() returned true after" - + " calling setRendered(false)."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.isInView() - public void uiComponentIsInViewTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewRoot root = getFacesContext().getViewRoot(); - UIComponent comp = createComponent(); - - String ct = comp.getClass().getName(); - root.getChildren().add(comp); - - if (!comp.isInView()) { - out.println("Test FAILED. " + ct + "isInView() returned false. " - + "Expected UIcomponent to be in the View."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.isInView() - public void uiComponentIsInViewNegTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - String ct = comp.getClass().getName(); - - if (comp.isInView()) { - out.println("Test FAILED. " + ct + "isInView() returned true. " - + "Expected UIcomponent *NOT* to be in the View."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getChildren() - public void uiComponentGetChildrenTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String result = validateListMethods(createComponent()); - - if (result != null) { - out.println(result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.{get,set}RendererType - public void uiComponentGetSetRendererTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - - // First check the default return value for the component - // under test base on the rendererType variable. If null, - // then expect the return type to be null, if non null, - // make sure the values are equal. - if (rendererType == null) { - if (comp.getRendererType() != null) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to" - + " return null for this component type."); - out.println("Value received: " + comp.getRendererType()); - return; - } - } else { - if (!rendererType.equals(comp.getRendererType())) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to" - + " return '" + rendererType + "' for this component " + "type."); - out.println("Value received: " + comp.getRendererType()); - return; - } - } - - // now ensure that the value can be overridden - comp.setRendererType("string"); - - if (!"string".equals(comp.getRendererType())) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to" - + " return 'string' for this component " - + "after having explicitly set it via setRendererType()"); - out.println("Value received: " + comp.getRendererType()); - return; - } - - // ensure we can set null - comp.setRendererType(null); - if (comp.getRendererType() != null) { - out.println(JSFTestUtil.FAIL + " Expeccted getRendererType() to return" - + " null after having explicitly set it via setRendererType()."); - return; - } - - // reset the renderer type - comp.setRendererType(rendererType); - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getRendersChildren() - public void uiComponentGetRendersChildrenTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - boolean expectRendersChildren; - UIComponent comp = createComponent(); - - if (rendersChildren != null) { - expectRendersChildren = rendersChildren.booleanValue(); - } else { - - // Follow the default algorithm as outlined in the javadocs to - // determine - // if the component under test renders children, and then compare - // the - // return value of getRendersChildren() to what we discover. - String rendererType = comp.getRendererType(); - String rendererFamily = comp.getFamily(); - if (rendererType != null) { - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - getFacesContext().getViewRoot().getRenderKitId()); - Renderer renderer = renderKit.getRenderer(rendererFamily, rendererType); - expectRendersChildren = renderer.getRendersChildren(); - - } else { - expectRendersChildren = false; - } - } - - // test setup is complete, now validate. - if (comp.getRendersChildren() != expectRendersChildren) { - out.println(JSFTestUtil.FAIL + " Expected getRendersChildren()" - + " to return '" + expectRendersChildren + "' but " + "recevied: " - + comp.getRendersChildren()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getChildCount() - public void uiComponentGetChildCountTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - if (comp.getChildCount() != 0) { - out.println(JSFTestUtil.FAIL + " getChildCount() returned a value greater" - + " than zero for a newly created component."); - out.println("Value returned: " + comp.getChildCount()); - return; - } - - UIComponent child1 = new UIInput(); - UIComponent child2 = new UIForm(); - UIComponent child2_1 = new UIInput(); - UIComponent child1_1 = new UIOutput(); - child1.setId("child1"); - child2.setId("child2"); - child2_1.setId("child2_1"); - child1_1.setId("child1_1"); - child2.getChildren().add(child2_1); - child1.getChildren().add(child1_1); - - List children = comp.getChildren(); - - children.add(child1); - children.add(child2); - - // children count should be 2 - if (comp.getChildCount() != 2) { - out.println(JSFTestUtil.FAIL + " Expected getChildCount() to return 2."); - out.println("Child count received: " + comp.getChildCount()); - return; - } - - children.remove(child1); - if (comp.getChildCount() != 1) { - out.println(JSFTestUtil.FAIL + " Expected getChildCount() to return 1."); - out.println("Child count received: " + comp.getChildCount()); - return; - } - - child2.getChildren().remove(child2_1); - if (comp.getChildCount() != 1) { - out.println(JSFTestUtil.FAIL + " Expected getChildCount() to return 1."); - out.println("Child count received: " + comp.getChildCount()); - return; - } - - children.remove(child2); - if (comp.getChildCount() != 0) { - out.println(JSFTestUtil.FAIL + " Expected getChildCount() to return 0."); - out.println("Child count received: " + comp.getChildCount()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getFacets() - public void uiComponentGetFacetsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String result = validateFacetMap(createComponent()); - if (result != null) { - out.println(JSFTestUtil.FAIL + " " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getFacet() - public void uiComponentGetFacetTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - UIComponent output = new UIOutput(); - comp.getFacets().put("facet", output); - - if (!output.equals(comp.getFacet("facet"))) { - out.println(JSFTestUtil.FAIL + " getFacet() either returned null or" - + " returned an unexpected UIComponent."); - out.println("Expected: " + output); - out.println("Received: " + comp.getFacet("facet")); - return; - } - - if (comp.getFacet("TCKFACET_1_2_3") != null) { - out.println(JSFTestUtil.FAIL + " getFacet() failed to return null when" - + " requesting a Facet that did not exist."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getFacetCount() - public void uiComponentGetFacetCountTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - UIComponent output = new UIOutput(); - comp.getFacets().put("facet", output); - int golden = 1; - int result = comp.getFacetCount(); - - if (result < golden) { - out.println(JSFTestUtil.FAIL + " getFacetCount() either returned null or" - + " returned an unexpected Integer." + JSFTestUtil.NL + "Expected: " - + golden + " |<" + JSFTestUtil.NL + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // End uiComponentGetFacetCountTest - - // UIComponent.getFacetsAndChildren() - public void uiComponentGetFacetsAndChildrenTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - // pre-test initialization - UIComponent child1 = new UIOutput(); - child1.setId("child1"); - UIComponent child2 = new UIOutput(); - child2.setId("child2"); - UIComponent child3 = new UIOutput(); - child3.setId("child3"); - UIComponent child1_1 = new UIOutput(); - child1_1.setId("child1_1"); - - UIComponent facet = new UIOutput(); - facet.setId("facet"); - UIComponent _facet = new UIOutput(); - _facet.setId("_facet"); - UIComponent facet1_1 = new UIOutput(); - facet1_1.setId("facet1_1"); - UIComponent facet1_2 = new UIOutput(); - facet1_2.setId("facet1_2"); - UIComponent facet2_1 = new UIOutput(); - facet2_1.setId("facet2_1"); - UIComponent facet3_1 = new UIOutput(); - facet3_1.setId("facet3_1"); - UIComponent facet1_1_1 = new UIOutput(); - facet1_1_1.setId("facet1_1_1"); - - child1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1_2", facet1_2); - child2.getFacets().put("facet2_1", facet2_1); - child3.getFacets().put("facet3_1", facet3_1); - child1_1.getFacets().put("facet_1_1_1", facet1_1_1); - - List children = comp.getChildren(); - children.add(child1); - children.add(child2); - children.add(child3); - child1.getChildren().add(child1_1); - comp.getFacets().put("facet", facet); - comp.getFacets().put("_facet", _facet); - - Iterator iter = comp.getFacetsAndChildren(); - - try { - iter.remove(); - out.println(JSFTestUtil.FAIL + " Expected the Iterator returned by" - + " getFacetsAndChildren() to *NOT* support the remove()" - + " method."); - } catch (Exception e) { - ; // Exception thrown. - - } - - UIComponent facet1 = (UIComponent) iter.next(); - UIComponent facet2 = (UIComponent) iter.next(); - - String id1 = facet1.getId(); - String id2 = facet2.getId(); - - if (id1.equals(id2)) { - out.println(JSFTestUtil.FAIL + " The ID for the first two components " - + "of the Iterator were equal. Expected two unique " - + "values: 'facet' or '_facet'"); - out.println("ID for the first component: " + id1); - out.println("ID for the second component: " + id2); - return; - } - - if ("facet".equals(id1) || "_facet".equals(id1)) { - // found a match - } else { - out.println(JSFTestUtil.FAIL + " Expected the ID of the first component" - + " in the Iterator to have an ID of 'facet' or '_facet'."); - out.println("ID for the first component: " + id1); - return; - } - - if ("facet".equals(id2) || "_facet".equals(id2)) { - // found a match - } else { - out.println(JSFTestUtil.FAIL + " Expected the ID of the second component" - + " in the Iterator to have an ID of 'facet' or '_facet'."); - out.println("ID for the second component: " + id2); - return; - } - - // the remainder of the components in the iterator should be children - String[] childrenIds = new String[3]; - for (int i = 0; i < 3; i++) { - childrenIds[i] = ((UIComponent) iter.next()).getId(); - } - - if (iter.hasNext()) { - out.println(JSFTestUtil.FAIL + " Expected the Iterator to contain only" - + " 3 additional elements after popping the two facets" - + " from the Iterator."); - } - - String[] expectedIds = { "child1", "child2", "child3" }; - - Arrays.sort(childrenIds); - Arrays.sort(expectedIds); - - if (!Arrays.equals(childrenIds, expectedIds)) { - out.println(JSFTestUtil.FAIL + " Unable to find all of the expected" - + " components in the Iterator."); - out.println("Expected components with IDs in this order: " - + JSFTestUtil.getAsString(expectedIds)); - out.println( - "Components received: " + JSFTestUtil.getAsString(childrenIds)); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.getFamily() - public void uiComponentGetFamilyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - - if (!comp.getFamily().contains("jakarta.faces.")) { - out.println(JSFTestUtil.FAIL - + " Incorrect value returned from UIComponent.getFamily()" - + JSFTestUtil.NL + "Expected FamilyName to have: jakarta.faces." - + JSFTestUtil.NL + "Received: " + comp.getFamily()); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // UIComponent.findComponent() - public void uiComponentFindComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - out.println( - "Set up a component hierarchy as follows (component ids in quotes)"); - out.println("\"a\" - UIViewRoot at head of hierarchy"); - out.println("\"a\" has children \"b\" and \"c\""); - out.println("\"b\" has children \"d\" and \"g\""); - out.println("d\" has children \"e\" and \"f\""); - out.println("\"c\" has children \"h\" and \"i\""); - out.println("Components \"b\" and \"d\" implement NamingContainer"); - - UIViewRoot a = createViewRoot(); - a.setId("a"); - UIForm b = new UIForm(); - b.setId("b"); - UIPanel c = new UIPanel(); - c.setId("c"); - UINamingContainer d = new UINamingContainer(); - d.setId("d"); - UIPanel e = new UIPanel(); - e.setId("e"); - UIPanel f = new UIPanel(); - f.setId("f"); - UIPanel g = new UIPanel(); - g.setId("g"); - UIPanel h = new UIPanel(); - h.setId("h"); - UIPanel i = new UIPanel(); - i.setId("i"); - a.getChildren().add(b); - a.getChildren().add(c); - b.getChildren().add(d); - b.getChildren().add(g); - c.getChildren().add(h); - c.getChildren().add(i); - d.getChildren().add(e); - d.getChildren().add(f); - - StringBuffer buf = new StringBuffer(128); - - // Positive relative searches from "a" - assertFound(a, a, "a", buf); - assertFound(a, b, "b", buf); - assertFound(a, c, "c", buf); - assertFound(a, d, "b:d", buf); - assertFound(a, e, "b:d:e", buf); - assertFound(a, f, "b:d:f", buf); - assertFound(a, g, "b:g", buf); - assertFound(a, h, "h", buf); - assertFound(a, i, "i", buf); - - // Negative relative searches from "a" - assertNotFound(a, "d", buf); - assertNotFound(a, "e", buf); - assertNotFound(a, "f", buf); - assertNotFound(a, "g", buf); - - // Positive relative searches from "b" - assertFound(b, b, "b", buf); - assertFound(b, d, "d", buf); - assertFound(b, e, "d:e", buf); - assertFound(b, f, "d:f", buf); - assertFound(b, g, "g", buf); - - // Negative relative searches from "b" - assertNotFound(b, "a", buf); - assertNotFound(b, "c", buf); - assertNotFound(b, "e", buf); - assertNotFound(b, "f", buf); - assertNotFound(b, "h", buf); - assertNotFound(b, "i", buf); - - // Positive relative searches from "c" - assertFound(c, a, "a", buf); - assertFound(c, b, "b", buf); - assertFound(c, c, "c", buf); - assertFound(c, d, "b:d", buf); - assertFound(c, e, "b:d:e", buf); - assertFound(c, f, "b:d:f", buf); - assertFound(c, g, "b:g", buf); - assertFound(c, h, "h", buf); - assertFound(c, i, "i", buf); - - // Negative relative searches from "c" - assertNotFound(c, "d", buf); - assertNotFound(c, "e", buf); - assertNotFound(c, "f", buf); - assertNotFound(c, "g", buf); - - // Positive relative searches from "d" - assertFound(d, d, "d", buf); - assertFound(d, e, "e", buf); - assertFound(d, f, "f", buf); - - // Negative relative searches from "d" - assertNotFound(d, "a", buf); - assertNotFound(d, "b", buf); - assertNotFound(d, "c", buf); - assertNotFound(d, "g", buf); - assertNotFound(d, "h", buf); - assertNotFound(d, "i", buf); - - // Positive relative searches from "e" - assertFound(e, d, "d", buf); - assertFound(e, e, "e", buf); - assertFound(e, f, "f", buf); - - // Negative relative searches from "e" - assertNotFound(e, "a", buf); - assertNotFound(e, "b", buf); - assertNotFound(e, "c", buf); - assertNotFound(e, "g", buf); - assertNotFound(e, "h", buf); - assertNotFound(e, "i", buf); - - // Positive relative searches from "f" - assertFound(f, d, "d", buf); - assertFound(f, e, "e", buf); - assertFound(f, f, "f", buf); - - // Negative relative searches from "f" - assertNotFound(f, "a", buf); - assertNotFound(f, "b", buf); - assertNotFound(f, "c", buf); - assertNotFound(f, "g", buf); - assertNotFound(f, "h", buf); - assertNotFound(f, "i", buf); - - // Positive relative searches from "g" - assertFound(g, b, "b", buf); - assertFound(g, d, "d", buf); - assertFound(g, e, "d:e", buf); - assertFound(g, f, "d:f", buf); - assertFound(g, g, "g", buf); - - // Negative relative searches from "g" - assertNotFound(g, "a", buf); - assertNotFound(g, "c", buf); - assertNotFound(g, "e", buf); - assertNotFound(g, "f", buf); - assertNotFound(g, "h", buf); - assertNotFound(g, "i", buf); - - // Positive relative searches from "h" - assertFound(h, a, "a", buf); - assertFound(h, b, "b", buf); - assertFound(h, c, "c", buf); - assertFound(h, d, "b:d", buf); - assertFound(h, e, "b:d:e", buf); - assertFound(h, f, "b:d:f", buf); - assertFound(h, g, "b:g", buf); - assertFound(h, h, "h", buf); - assertFound(h, i, "i", buf); - - // Negative relative searches from "h" - assertNotFound(h, "d", buf); - assertNotFound(h, "e", buf); - assertNotFound(h, "f", buf); - assertNotFound(h, "g", buf); - - // Positive relative searches from "i" - assertFound(i, a, "a", buf); - assertFound(i, b, "b", buf); - assertFound(i, c, "c", buf); - assertFound(i, d, "b:d", buf); - assertFound(i, e, "b:d:e", buf); - assertFound(i, f, "b:d:f", buf); - assertFound(i, g, "b:g", buf); - assertFound(i, h, "h", buf); - assertFound(i, i, "i", buf); - - // Negative relative searches from "i" - assertNotFound(i, "d", buf); - assertNotFound(i, "e", buf); - assertNotFound(i, "f", buf); - assertNotFound(i, "g", buf); - - // Absolute searches from a - i - UIComponent[] comps = { a, b, c, d, e, f, g, h, i }; - - String[] exprs = { ":a", ":b", ":c", ":b:d", ":b:d:e", ":b:d:f", ":b:g", - ":h", ":i" }; - - for (int ii = 0; ii < comps.length; ii++) { - UIComponent searchFrom = comps[ii]; - for (int j = 0; j < comps.length; j++) { - assertFound(searchFrom, comps[j], exprs[j], buf); - } - } - - if (buf.length() > 0) { - out.print(buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - } - - // UIComponent.findComponent throws IAE if intermediate identifier in - // expression identifies UIComponent that isnt' a NamingContainer - public void uiComponentFindComponentIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - out.println( - "Set up a component hierarchy as follows (component ids in quotes)"); - out.println("\"a\" - UIViewRoot at head of hierarchy"); - out.println("\"a\" has children \"b\" and \"c\""); - out.println("\"b\" has children \"d\" and \"g\""); - out.println("d\" has children \"e\" and \"f\""); - out.println("\"c\" has children \"h\" and \"i\""); - out.println("Components \"b\" and \"d\" implement NamingContainer"); - - UIViewRoot a = createViewRoot(); - a.setId("a"); - UIForm b = new UIForm(); - b.setId("b"); - UIPanel c = new UIPanel(); - c.setId("c"); - UINamingContainer d = new UINamingContainer(); - d.setId("d"); - UIPanel e = new UIPanel(); - e.setId("e"); - UIPanel f = new UIPanel(); - f.setId("f"); - UIPanel g = new UIPanel(); - g.setId("g"); - UIPanel h = new UIPanel(); - h.setId("h"); - UIPanel i = new UIPanel(); - i.setId("i"); - a.getChildren().add(b); - a.getChildren().add(c); - b.getChildren().add(d); - b.getChildren().add(g); - c.getChildren().add(h); - c.getChildren().add(i); - d.getChildren().add(e); - d.getChildren().add(f); - - String[] exprs = { "a:c:h", "a:c:i", ":a:c:h", ":a:c:i", "c:h", "c:i", - ":c:h", ":c:i" }; - - StringBuffer buf = new StringBuffer(128); - - for (int ii = 0; ii < exprs.length; ii++) { - String expr = exprs[ii]; - try { - a.findComponent(expr); - buf.append( - JSFTestUtil.FAIL + " No Exception thrown when findComponent()"); - buf.append(" was called with an expression where the intermediate"); - buf.append(" identifier didn't identify a NamingContainer.\n"); - buf.append("Search was relative to: '").append(a.getId()).append("'\n"); - buf.append("Expression: '").append(expr).append("'\n\n"); - } catch (Exception ex) { - if (!(ex instanceof IllegalArgumentException)) { - buf.append( - JSFTestUtil.FAIL + " Exception thrown when findComponent()"); - buf.append(" was called with an expression where the intermediate"); - buf.append(" identifier didn't identify a NamingContainer, but it"); - buf.append(" wasn't an instance of IllegalArgumentException.\n"); - buf.append("Search was relative to: '").append(a.getId()) - .append("'\n"); - buf.append("Expression: '").append(expr).append("'\n"); - buf.append("Exception received: ").append(ex.getClass().getName()); - } - } - } - - if (buf.length() > 0) { - out.print(buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // UIComponent.findComponent() throws NullPointerException - public void uiComponentFindComponentNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent component = this.createComponent(); - - try { - component.findComponent(null); - out.println("Test FAILED" + JSFTestUtil.NL - + "Expected NullPointerException to be thrown when" - + "expr is null."); - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED" + JSFTestUtil.NL - + "Expected NullPointerException to be thrown when" + "expr is null." - + JSFTestUtil.NL + "Instead received: " + JSFTestUtil.NL - + e.toString()); - } - - } - - // UIComponent.InvokeOnComponent() - public void uiComponentInvokeOnComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - out.println("Set up a component hierarchy as follows (component ids in " - + "quotes)"); - out.println("\"root\" - UIViewRoot at head of hierarchy"); - out.println("\"root\" has children \"form1\" and \"form2\""); - out.println("\"form1\" has child \"panel1\""); - out.println("panel1\" has children \"input1\" and \"input2\""); - out.println("\"form2\" has child \"panel2\""); - out.println("panel2\" has children \"input1\" and \"input2\""); - - Map tree = setupInvokeOnComponentTree(); - - UIViewRoot rootTree = (UIViewRoot) tree.get("root"); - UIInput input1 = (UIInput) tree.get("input1"); - - boolean result = false; - - FacesContext context = getFacesContext(); - - result = rootTree.invokeOnComponent(context, input1.getClientId(context), - new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - } - }); - - if (!(foundComponent.equals(input1))) { - out.println(JSFTestUtil.FAIL + " Expected the Object returned by " - + "InvokeOnComponent() to be named input1."); - return; - } else if (!result) { - out.println(JSFTestUtil.FAIL + " Expect the value of \"result\" to " - + "be true" + " Instead found: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.InvokeOnComponent() Negative Test. - public void uiComponentInvokeOnComponentNegativeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Map tree = setupInvokeOnComponentTree(); - - UIViewRoot root = (UIViewRoot) tree.get("root"); - - foundComponent = null; - boolean result = false; - - FacesContext context = getFacesContext(); - ContextCallback callback = new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - } - }; - - // Negative case 0, null pointers - try { - root.invokeOnComponent(context, "form:input7", null); - - out.println("Test FAILED. invokeOnComponent(context," - + " form:input7, null) Did not throw an" + "Exception"); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. invokeOnComponent(context," - + " form:input7, null) threw an Exception" - + " when a null Callback argument was passed, but it " - + "wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - root.invokeOnComponent(context, null, callback); - - out.println("Test FAILED. invokeOnComponent(context," - + " null, callback) Did not throw an" + "Exception"); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. invokeOnComponent(Context," - + " null, callback) threw an Exception" - + " when a null clientId argument was passed, but it " - + "wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - root.invokeOnComponent(null, "form:input7", callback); - - out.println("Test FAILED. invokeOnComponent(null," - + "form:input7, callback) Did not throw an Exception"); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Test FAILED. invokeOnComponent(null," - + "form:input7, callback) threw an Exception" - + " when a null FacesContext argument was passed, but" - + " it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - // Negative case 1, not found component. - result = root.invokeOnComponent(context, "form:input7", callback); - - if (result) { - out.println(JSFTestUtil.FAIL + " Expected \"false\" returned by" - + " InvokeOnComponent() when passing in \"form:input7\"" - + " as clientId arg. Instead received " + result); - return; - } - - // Negative case 2A, callback throws exception with found component - try { - result = root.invokeOnComponent(context, "form2:input2", - new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - // When else am I going to get the chance to throw - // this exception? - throw new IllegalStateException(); - } - }); - } catch (Exception e) { - if (!(e instanceof FacesException)) { - out.println("Test FAILED. invokeOnComponent(facesContext," - + " form2:input2, Callback) threw an Exception," - + " but it wasn't an instance of FacesException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - // Negative case 2B, callback throws exception with not found component - try { - result = root.invokeOnComponent(context, "form2:input6", - new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - // When else am I going to get the chance to throw - // this exception? - throw new IllegalStateException(); - } - }); - } catch (Exception e) { - if (!(e instanceof FacesException)) { - out.println("Test FAILED. invokeOnComponent(facesContext," - + " form2:input6, Callback) threw an Exception," - + " but it wasn't an instance of FacesException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processSaveRestoreState() - public void uiComponentProcessSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setTransient(false); - TCKComponent child1 = new TCKComponent("child1"); - child1.setTransient(false); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setTransient(false); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setTransient(false); - TCKComponent facet1_1 = new TCKComponent("facet1_1"); - facet1_1.setTransient(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - Object savedState = comp.processSaveState(getFacesContext()); - - if (!(savedState instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + " Expected the Object returned by " - + "processSaveState() to be Serializable."); - return; - } - - // validate the processSaveState was recursively called. - if (!"/PSSchild1/SSchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PSSchild1/SSchild1"); - return; - } - - if (!"/PSSchild1_1/SSchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PSSchild1_1/SSchild1_1"); - return; - } - if (!"/PSSfacet1/SSfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PSSfacet1/SSfacet1"); - return; - } - - if (!"/PSSfacet1_1/SSfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PSSfacet1_1/SSfacet1_1"); - return; - } - - child1.resetTraceLog(); - child1_1.resetTraceLog(); - facet1.resetTraceLog(); - facet1_1.resetTraceLog(); - - // Check processRestoreState() - comp.processRestoreState(getFacesContext(), savedState); - // validate the processSaveState was recursively called. - if (!"/PRSchild1/RSchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PRSchild1/RSchild1"); - return; - } - - if (!"/PRSchild1_1/RSchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PRSchild1_1/RSchild1_1"); - return; - } - if (!"/PRSfacet1/RSfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PRSfacet1/RSfacet1"); - return; - } - - if (!"/PRSfacet1_1/RSfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PRSfacet1_1/RSfacet1_1"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processSaveState(null) throws NullPointerException - public void uiComponentProcessSaveStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - - try { - comp.processSaveState(null); - out.println("Test FAILED No Exception Thrown!"); - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED" + JSFTestUtil.NL - + "Expected: NullPointerException when context is null!" - + JSFTestUtil.NL + "Received: " + JSFTestUtil.NL + e.toString()); - } - - } - - // UIComponent.processRestoreState(null) throws NullPointerException - public void uiComponentProcessRestoreStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - Object savedState = comp.processSaveState(getFacesContext()); - - try { - comp.processRestoreState(null, savedState); - out.println("Test FAILED No Exception Thrown!"); - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED" + JSFTestUtil.NL - + "Expected: NullPointerException when context is null!" - + JSFTestUtil.NL + "Received: " + JSFTestUtil.NL + e.toString()); - } - - } - - // UIComponent.processSaveState() skips transient components. - public void uiComponentProcessSaveStateTransientTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setTransient(false); - TCKComponent child1 = new TCKComponent("child1"); - child1.setTransient(false); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setTransient(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setTransient(false); - TCKComponent facet1_1 = new TCKComponent("facet1_1"); - facet1_1.setTransient(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - // facet1_1 and child1_1 are marked transient. - // child1_1 should have no trace for processSaveState() or - // saveState(). Because facet1_1 is a facet of - // child1_1 there should be no call to processSaveState() or - // saveState(). - comp.processSaveState(getFacesContext()); - - // validate the processSaveState was recursively called. - if (!"/PSSchild1/SSchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PSSchild1/SSchild1"); - return; - } - - if (!"".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected no trace."); - return; - } - if (!"/PSSfacet1/SSfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PSSfacet1/SSfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processUpdates test - public void uiComponentProcessUpdatesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(false); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processUpdates(getFacesContext()); - - // child1 and facet1_1 are instances of UIInput. - // These should have updateModel called on them - // during process updates. The other non-UIInput - // components will not call updateModel. - // Child2 shoudln't have UM in the trace as it's parent - // renders children but isn't rendered itself. - if (!"/PUchild1/UMchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PUchild1/UMchild1"); - return; - } - - if (!"/PUchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PUchild1_1."); - return; - } - if (!"/PUfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PUfacet1"); - return; - } - - if (!"/PUfacet1_1/UMfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PUfacet1_1/UMfacet1_1"); - return; - } - - if (!"/PUchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PUchild2"); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processUpdates() will not continue if a component's - // rendered property is false. - public void uiComponentProcessUpdatesNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(false); - TCKInputComponent facet1 = new TCKInputComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - comp.processUpdates(getFacesContext()); - - // child1_1 and facet1_1 have their rendered properties set to false. - // This means that child1 will have processUpdates called against it, - // but it will not call processUpdates() on facet1_1. - if (!"/PUchild1/UMchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PUchild1/UMchild1"); - return; - } - - if (!"/PUchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PUchild1_1."); - return; - } - if (!"/PUfacet1/UMfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PUfacet1/UMfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace to be generated."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processUpdates() - if updateModel throws RuntimeException - // call FacesContext.renderResponse() - public void uiComponentProcessUpdatesRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processUpdates(getFacesContext()); - } catch (Exception re) { - if (!"UpdateModelRTE".equals(re.getMessage())) { - out.println(JSFTestUtil.FAIL + " RuntimeException not rethrown up to" - + " the calling component."); - return; - } - } - - if (!getFacesContext().getRenderResponse()) { - out.println( - JSFTestUtil.FAIL + " RuntimeException thrown during updateModule()" - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processUpdates(FacesContext) throws NullPointerException - public void uiComponentProcessUpdatesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processUpdates(null); - out.println("Test FAILED No Exception Thrown!"); - } catch (NullPointerException npe) { - out.println("Test PASSED Expected NullPointerException Thrown!"); - } catch (Exception e) { - out.println("Test FAILED" + JSFTestUtil.NL - + "Expected: NullPointerException when context is null!" - + JSFTestUtil.NL + "Received: " + JSFTestUtil.NL + e.toString()); - } - - } - - // UIComponent.processValidators test - public void uiComponentProcessValidatorsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(false); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processValidators(getFacesContext()); - - // child1 and facet1_1 are instances of UIInput. - // These should have validate() called on them - // during process validations. The other non-UIInput - // components will not call validate().. - // Child2 shoudln't have V in the trace as it's parent - // renders children but isn't rendered itself. - if (!"/PVchild1/Vchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PVchild1/Vchild1"); - return; - } - - if (!"/PVchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PVchild1_1."); - return; - } - if (!"/PVfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PVfacet1"); - return; - } - - if (!"/PVfacet1_1/Vfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PVfacet1_1/Vfacet1_1"); - return; - } - - if (!"/PVchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PVchild2"); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processValidators() throws NullPointerException - public void uiComponentProcessValidatorsNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "processValidators", - new Class[] { FacesContext.class }, new Object[] { null }, out); - } - - // UIComponent.processValidators() will not continue if a component's - // rendered property is false. - public void uiComponentProcessValidatorsNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(false); - TCKInputComponent facet1 = new TCKInputComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - comp.processValidators(getFacesContext()); - - // child1_1 and facet1_1 have their rendered properties set to false. - // This means that child1 will have processValidators called against it, - // but it will not call processValidators() on facet1_1. - if (!"/PVchild1/Vchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PVchild1/Vchild1"); - return; - } - - if (!"/PVchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PVchild1_1."); - return; - } - if (!"/PVfacet1/Vfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PVfacet1/Vfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace to be generated."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processValidators() - if validate() throws RuntimeException - // call FacesContext.renderResponse() - public void uiComponentProcessValidatorsRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processValidators(getFacesContext()); - } catch (Exception re) { - if (!"ValidateRTE".equals(re.getMessage())) { - out.println(JSFTestUtil.FAIL + " RuntimeException not rethrown up to" - + " the calling component."); - return; - } - } - - if (!getFacesContext().getRenderResponse()) { - out.println( - JSFTestUtil.FAIL + " RuntimeException thrown during validate()" - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processValidators() - if isValid() returns false - // call FacesContext.renderResponse() - public void uiComponentProcessValidatorsIsValidRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - TCKInputComponent tckInput = new TCKInputComponent("in1"); - tckInput.setInvalidOnValidate(true); - comp.getChildren().add(tckInput); - - comp.processValidators(getFacesContext()); - - if (!getFacesContext().getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " isValid() returned false " - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processDecodes() - public void uiComponentProcessDecodesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(false); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processDecodes(getFacesContext()); - - // Child2 shoudln't have D in the trace as it's parent - // renders children but isn't rendered itself. - if (!"/PDchild1/Dchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1/Dchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PDchild1_1/Dchild1_1"); - return; - } - if (!"/PDfacet1/Dfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"/PDfacet1_1/Dfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PDfacet1_1/Dfacet1_1"); - return; - } - - if (!"/PDchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PDchild2"); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processDecodes() throws NullPointerException - public void uiComponentProcessDecodesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "processDecodes", - new Class[] { FacesContext.class }, new Object[] { null }, out); - } - - public void uiComponentPushComponentToELTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent compOne = createComponent(); - UIComponent compTwo = createComponent(); - compOne.setId("compOne"); - compTwo.setId("compTwo"); - String oneType = compOne.getClass().getSimpleName(); - String twoType = compTwo.getClass().getSimpleName(); - - /* - * Test that a call to push puts this UIComponent as the current component. - */ - compOne.encodeBegin(context); - String recId = UIComponent.getCurrentComponent(context).getId(); - - if (!"compOne".equals(recId)) { - out.println("Test FAILED. " + oneType + ".getCurrentComponent() " - + "returned unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected ID: compOne" + JSFTestUtil.NL + "Receieved ID: " + recId); - return; - } - - /* - * Add another Component to the stack and retest. - */ - compTwo.encodeBegin(context); - String recId2 = UIComponent.getCurrentComponent(context).getId(); - - if (!"compTwo".equals(recId2)) { - out.println("Test FAILED. " + twoType + ".getCurrentComponent() " - + "returned unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected ID: compTwo" + JSFTestUtil.NL + "Receieved ID: " - + recId2); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // UIComponent.pushComponentToEL() throws NullPointerException - public void uiComponentPushComponentToELNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "pushComponentToEL", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { null, createComponent() }, out); - } - - public void uiComponentPopComponentFromELTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - String recId; - - UIComponent compOne = createComponent(); - UIComponent compTwo = createComponent(); - compOne.setId("compOne"); - compTwo.setId("compTwo"); - String oneType = compOne.getClass().getSimpleName(); - String twoType = compTwo.getClass().getSimpleName(); - - /* - * Push Two UIComponents onto the EL Data Structure. - */ - compOne.encodeBegin(context); - compTwo.encodeBegin(context); - - /* - * Make sre that the current Component is compTwo. - */ - recId = UIComponent.getCurrentComponent(context).getId(); - - if (!"compTwo".equals(recId)) { - out.println("Test FAILED. " + twoType + ".getCurrentComponent() " - + "returned unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected ID: CompTwo" + JSFTestUtil.NL + "Receieved ID: " + recId); - return; - } - - /* - * Call Pop to make the current component is set to compOne & not compTwo. - */ - compTwo.encodeEnd(context); - recId = UIComponent.getCurrentComponent(context).getId(); - - if (!"compOne".equals(recId)) { - out.println("Test FAILED. " + oneType + ".getCurrentComponent() " - + "returned unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected ID: compOne" + JSFTestUtil.NL + "Receieved ID: " + recId); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - public void uiComponentPopComponentFromELNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent compTwo = createComponent(); - - compTwo.setId("compTwo"); - - try { - compTwo.encodeEnd(null); - out.println("Test FAILED No Exception Thrown!"); - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println("Test FAILED Unexpected Excetion Thrown!" + JSFTestUtil.NL - + "Expected: NullPointerException when FaceContext is null" - + JSFTestUtil.NL + "Received: " + JSFTestUtil.NL + e.toString()); - } - - } - - // UIComponent.processDecodes() -- decode() not called if component is - // not rendered - public void uiComponentProcessDecodesNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(false); - TCKInputComponent facet1 = new TCKInputComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - comp.processDecodes(getFacesContext()); - - // child1_1 and facet1_1 have their rendered properties set to false. - // This means that child1 will have processDecodes called against it, - // but it will not call decode() on facet1_1. - if (!"/PDchild1/Dchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PDchild1_1."); - return; - } - if (!"/PDfacet1/Dfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace to be generated."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processDecodes() - if RuntimeException thrown by decode() - // then FacesContext.renderResponse must be called - public void uiComponentProcessDecodesRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processDecodes(getFacesContext()); - } catch (Exception re) { - if (!"DecodeRTE".equals(re.getMessage())) { - out.println(JSFTestUtil.FAIL + " RuntimeException not rethrown up to" - + " the calling component."); - out.println("Exception received: " + re.toString()); - out.println("Exception message: " + re.getMessage()); - return; - } - } - - if (!getFacesContext().getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " RuntimeException thrown during decode()" - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeBegin() - public void uiComponentEncodeBeginELTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - String expected = "comp"; - UIComponent component = createComponent(); - component.setId(expected); - String uicType = component.getClass().getSimpleName(); - - component.encodeBegin(context); - - UIComponent mc = UIComponent.getCurrentComponent(context); - String recId = mc.getId(); - - if (!expected.equals(recId)) { - out.println("Test FAILED. " + uicType + ".encodeBegin() must " + "call " - + uicType + ".pushComponentToEL()!" + JSFTestUtil.NL - + "Unexpected UIComponent ID." + JSFTestUtil.NL + "Expected ID: " - + expected + JSFTestUtil.NL + "Receieved ID: " + recId); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeBegin() - public void uiComponentEncodeBeginTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(true); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - TCKRenderer renderer = new TCKRenderer(); - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - comp.setRendererType(sRendererType); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeBegin() delegates to - // the underlying renderer - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeBegin(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"/EB".equals(trace)) { - out.println(JSFTestUtil.FAIL + " encodeBegin() was not called on " - + "the renderer of the component under test." + JSFTestUtil.NL - + "Expected Renderer trace: /EB" + JSFTestUtil.NL + "Actual trace: " - + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeBegin() - Component should not call through to renderer - // if the rendered property is false. - public void uiComponentEncodeBeginNotRenderedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(false); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - TCKRenderer renderer = new TCKRenderer(); - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - comp.setRendererType(sRendererType); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeBegin() does not delegate - // to - // the underlying renderer - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeBegin(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"".equals(trace)) { - out.println(JSFTestUtil.FAIL + " encodeBegin() was called on the renderer" - + " of the component under test when the rendered property " - + "was false."); - out.println("Expected no information returned in trace."); - out.println("Actual trace: " + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeEnd() - public void uiComponentEncodeEndELTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String testId = "comp"; - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId(testId); - String uicType = component.getClass().getSimpleName(); - - // Put the current UIComponent on the EL Stack. - component.encodeBegin(context); - - if (!testId.equals(component.getId())) { - out.println("Test FAILED."); - out.println( - "Attempt to setup test with call to " + uicType + ".encodeBegin()"); - return; - } - - /* - * Remove the current UIComponent from the EL Stack. Stack should have no - * UIComponent on it. A null should be returned. - */ - component.encodeEnd(context); - if (null != UIComponent.getCurrentComponent(context)) { - out.println("Test FAILED. " + uicType + ".encodeEnd() must call " - + uicType + ".popComponentFromEL()!" + JSFTestUtil.NL - + "unexpected UIComponent ID." + JSFTestUtil.NL - + "Expected component to return null!"); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // UIComponent.encodeAll() throws NullPointerException - public void uiComponentEncodeAllNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String testId = "comp"; - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - - ResponseWriter rw = new TCKResponseWriter(); - context.setResponseWriter(rw); - - UIComponent component = createComponent(); - component.setId(testId); - - try { - component.encodeAll(null); - out.println("Test FAILED. No NullPointerException thrown when " - + "FacesContext is null"); - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception thrown when " - + "context is null!" + JSFTestUtil.NL - + "Expected: NullPointerException" + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - } - } - - // UIComponent.encodeEnd() - public void uiComponentEncodeEndTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(true); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - TCKRenderer renderer = new TCKRenderer(); - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - comp.setRendererType(sRendererType); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeEnd() delegates to - // the underlying renderer - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeEnd(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"/EE".equals(trace)) { - out.println( - JSFTestUtil.FAIL + " encodeEnd() was not called on the renderer" - + " of the component under test."); - out.println("Expected Renderer trace: /EE"); - out.println("Actual trace: " + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeEnd -- Renderer.encodeEnd not called if component's - // render property is false - public void uiComponentEncodeEndNotRenderedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(false); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - - TCKRenderer renderer = new TCKRenderer(); - comp.setRendererType(sRendererType); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeEnd() does not delegate to - // the underlying renderer - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeEnd(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"".equals(trace)) { - out.println(JSFTestUtil.FAIL + " encodeEnd() was called on the renderer" - + " of the component under test when the rendered property " - + "was false."); - out.println("Expected no information returned in trace."); - out.println("Actual trace: " + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeChildren() - public void uiComponentEncodeChildrenTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(true); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - TCKRenderer renderer = new TCKRenderer(); - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - comp.setRendererType(sRendererType); - renderer.setRendersChildren(true); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeChildren() delegates to - // the underlying renderer. - - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeChildren(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"/EC".equals(trace)) { - out.println(JSFTestUtil.FAIL + " encodeChildren() was not called on the " - + "renderer of the component under test."); - out.println("Expected Renderer trace: /EC"); - out.println("Actual trace: " + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeChildren() -- component will not delegate to renderer - // when render property is false - public void uiComponentEncodeChildrenNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - comp.setRendered(false); - String sRendererType = comp.getRendererType(); - String sRendererFamily = comp.getFamily(); - - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - - Renderer origRenderer = null; - - if (sRendererType != null) { - origRenderer = renderKit.getRenderer(sRendererFamily, sRendererType); - } - - TCKRenderer renderer = new TCKRenderer(); - if (sRendererType == null) { - sRendererType = "TCKTemp"; - } - comp.setRendererType(sRendererType); - renderer.setRendersChildren(true); - renderKit.addRenderer(sRendererFamily, sRendererType, renderer); - - // ensure that the call to UIComponent.encodeChildren() does not - // delegate to the underlying renderer - // NOTE: THIS TEST MUST ONLY BE CALLED FOR COMPONENTS THAT HAVE - // RENDERERS - comp.encodeChildren(getFacesContext()); - - String trace = renderer.getTrace(); - - if (!"".equals(trace)) { - out.println( - JSFTestUtil.FAIL + " encodeChildren() was called on the renderer" - + " of the component under test when the rendered property " - + "was false."); - out.println("Expected no information returned in trace."); - out.println("Actual trace: " + trace); - return; - } - - if ("TCKTemp".equals(sRendererType)) { - comp.setRendererType(null); - } - - if (origRenderer != null) { - renderKit.addRenderer(sRendererFamily, sRendererType, origRenderer); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeBegin() - throws NPE if context arg is null - public void uiComponentEncodeBeginNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - createComponent().encodeBegin(null); - out.println(JSFTestUtil.FAIL + " No Exception thrown when encodeBegin() " - + "was passed a null value for the context argument."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Exception thrown when encodeBegin() was passed a " - + "null value for the context argument, but it wasn't" - + " an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeEnd() - throws NPE if context arg is null - public void uiComponentEncodeEndNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - createComponent().encodeEnd(null); - out.println(JSFTestUtil.FAIL + " No Exception thrown when encodeEnd() " - + "was passed a null value for the context argument."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Exception thrown when encodeEnd() was passed a " - + "null value for the context argument, but it wasn't" - + " an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.encodeChildren() - throws NPE if context arg is null - public void uiComponentEncodeChildrenNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - createComponent().encodeChildren(null); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when encodeChidlren() " - + "was passed a null value for the context argument."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println("Exception thrown when encodeChidlren() was passed a " - + "null value for the context argument, but it wasn't" - + " an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void componentAttributesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String[] attrNames = getAttributeNames(); - UIComponent component = createComponent(); - out.println("COMPONENT: " + component.getClass().getName()); - boolean passed = true; - for (int i = 0; i < attrNames.length; i++) { - out.println("Processing attribute: " + attrNames[i]); - PropertyDescriptor[] descriptors = null; - try { - descriptors = Introspector.getBeanInfo(component.getClass()) - .getPropertyDescriptors(); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unable to obtain PropertyDescriptors" - + " for component: " + component.getClass().getName()); - passed = false; - } - - boolean found = false; - for (int ii = 0; ii < descriptors.length; ii++) { - if (!descriptors[ii].getName().equals(attrNames[i])) { - continue; - } - found = true; - Object[] val; - if (descriptors[ii].getPropertyType() == String.class) { - val = new Object[] { "newValue" }; - } else if (descriptors[ii].getPropertyType() == Boolean.TYPE) { - val = new Object[] { Boolean.TRUE }; - } else { - val = new Object[] { Integer.valueOf(1) }; - } - - Method writeMethod = descriptors[ii].getWriteMethod(); - try { - writeMethod.invoke(component, val); - } catch (Exception e) { - Throwable t; - if (e instanceof InvocationTargetException) { - t = ((InvocationTargetException) e).getTargetException(); - } else { - t = e; - } - out.println(JSFTestUtil.FAIL + " Exception invoking write method " - + " for attribute '" + attrNames[i] + "': " + t); - passed = false; - } - - Method readMethod = descriptors[ii].getReadMethod(); - - try { - Object result = readMethod.invoke(component, null); - if (descriptors[ii].getPropertyType() == String.class) { - if (!"newValue".equals(result)) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned" - + " for property '" + attrNames[i] + "'."); - out.println("Expected: newValue"); - out.println("Received: " + result); - } - } else if (descriptors[ii].getPropertyType() == Boolean.TYPE) { - if (!Boolean.TRUE.equals(result)) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned" - + " for property '" + attrNames[i] + "'."); - out.println("Expected: " + Boolean.TRUE); - out.println("Received: " + result); - } - } else if (descriptors[ii].getPropertyType() == Integer.TYPE) { - if (!(Integer.valueOf(1).equals(result))) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned" - + " for property '" + attrNames[i] + "'."); - out.println("Expected: 1"); - out.println("Received: " + result); - } - } else { - out.println(JSFTestUtil.FAIL + " Unexpected type for " - + "attribute '" + attrNames[i] + "'"); - } - } catch (IllegalArgumentException iae) { - // TODO Auto-generated catch block - iae.printStackTrace(); - } catch (IllegalAccessException iae) { - out.println("Test FAILED."); - iae.printStackTrace(); - } catch (InvocationTargetException ite) { - out.println(JSFTestUtil.FAIL + " Exception invoking read method for " - + "attribute '" + attrNames[i] + "': " + ite.getTargetException() - + JSFTestUtil.NL); - ite.printStackTrace(); - } - - break; - } - - if (!found) { - out.println( - JSFTestUtil.FAIL + " Unable to locate attribute '" + attrNames[i] - + "' in class '" + component.getClass().getName() + "'"); - passed = false; - } - found = false; - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - } - - public void uiComponentGetSetValueExpressionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - request.setAttribute("bean", new SimpleBean()); - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class); - - UIComponent component = createComponent(); - - // calling setValueExpression() with a non-literal ValueExpression - // should result in getValueExpression() returning the ValueExpression - // and no value being set in the components attribute map. - component.setValueExpression("bean", expression); - - if (component.getValueExpression("bean") != expression) { - out.println(JSFTestUtil.FAIL + " Expected getValueExpression() to return" - + " the non-literal ValueExpression set via " - + "setValueExpression()."); - out.println("Expected: " + expression); - out.println("Received: " + component.getValueExpression("bean")); - return; - } - - ValueExpression literalExpr = factory.createValueExpression( - getFacesContext().getELContext(), "literalValue", - java.lang.String.class); - - // Literal expression - The evaluated value should be stored in the - // component attribute map, and should not be returned by - // getValueExpression() - - component.setValueExpression("literal", literalExpr); - - if (component.getValueExpression("literal") != null) { - out.println(JSFTestUtil.FAIL + " Expected getValueExpression() to return" - + " null when setValueExpression() was called with a " - + "literal ValueExpression (isLiteralText() returns true)."); - return; - } - - if (!"literalValue".equals(component.getAttributes().get("literal"))) { - out.println(JSFTestUtil.FAIL + " Expected literal ValueExpression to be" - + "evaluated and stored in the component's attribute map" - + " under the key 'literal'."); - out.println("Expected value: literalValue"); - out.println("Received: " + component.getAttributes().get("literal")); - return; - } - - // If null is passed as a ValueExpression for an existing key, - // the ValueExpression should be removed from internal map. - // getValueExpression() should then return null. - - component.setValueExpression("bean", null); - - if (component.getValueExpression("bean") != null) { - out.println(JSFTestUtil.FAIL + " setValueExpression() did not remove" - + " the ValueExpression associated with a particular key from" - + " its internal Map when passing a null value for the " - + "ValueExpression argument."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiComponentGetSetValueExpressionNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - StringBuffer buf = new StringBuffer(128); - - UIComponent component = createComponent(); - - // getValueExpression throws NPE - try { - component.getValueExpression(null); - buf.append(JSFTestUtil.FAIL + " No exception thrown when passin null" - + " to getValueExpression()."); - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - buf.append(JSFTestUtil.FAIL + " Exception thrown when passing null" - + " to getValueExpression(), but it wasn't an instance" - + " of NullPointerException." + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName()); - } - } - - // setValueExpression() throw NPE - try { - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - - ValueExpression literalExpr = factory.createValueExpression( - getFacesContext().getELContext(), "literalValue", - java.lang.String.class); - - component.setValueExpression(null, literalExpr); - buf.append(JSFTestUtil.FAIL + " No exception thrown when passin null" - + " to setValueExpression()."); - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - buf.append(JSFTestUtil.FAIL + " Exception thrown when passing null" - + " to setValueExpression(), but it wasn't an instance" - + " of NullPointerException." + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName()); - return; - } - } - - if (buf.length() > 0) { - out.println("Test FAILED" + JSFTestUtil.NL + buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - } - - public void uiComponentSetValueExpressionNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - UIComponent component = createComponent(); - request.setAttribute("bean", new SimpleBean()); - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class); - - try { - component.setValueExpression(null, expression); - out.println(JSFTestUtil.FAIL + " No exception thrown when passin null" - + " as the 'name' argument of setValueExpression()."); - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when passing null" - + " as the 'name' argument to setValueExpression(), but " - + "it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void uiComponentSetValueExpressionIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent component = createComponent(); - request.setAttribute("bean", new SimpleBean()); - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class); - - // if 'id' or 'parent' are the values for the name argument, - // then an IAE must be thrown - try { - component.setValueExpression("id", expression); - out.println(JSFTestUtil.FAIL + " No exception thrown when passin 'id'" - + " as the 'name' argument of setValueExpression()."); - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when passing 'id'" - + " as the 'name' argument to setValueExpression(), but " - + "it wasn't an instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - component.setValueExpression("parent", expression); - out.println(JSFTestUtil.FAIL + " No exception thrown when passin 'parent'" - + " as the 'name' argument of setValueExpression()."); - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when passing 'parent'" - + " as the 'name' argument to setValueExpression(), but " - + "it wasn't an instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void uiComponentVisitTreeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - UIComponent component = createComponent(); - String cName = component.getClass().getName(); - - if (!component.visitTree(new TCKVisitContext(), new CompleteCallback())) { - out.println(JSFTestUtil.FAIL + " expected " + cName + ".visitTree() " - + "to return true."); - } else { - out.println(JSFTestUtil.PASS); - } - } - - public void uiComponentVisitTreeNegTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - UIComponent component = createComponent(); - String cName = component.getClass().getName(); - - if (component.visitTree(new TCKVisitContext(), new RejectCallback())) { - out.println(JSFTestUtil.FAIL + " expected " + cName + ".visitTree() " - + "to return false."); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // UIComponent.decode(FacesContext) throws NullPointerException - public void uiComponentDecodeNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "decode", - new Class[] { FacesContext.class }, new Object[] { null }, out); - } - - // UIComponent.getContainerClientId(FacesContext) throws NullPointerException - public void uiComponentGetContainerClientIdNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), - "getContainerClientId", new Class[] { FacesContext.class }, - new Object[] { null }, out); - } - - // UIComponent.getContainerClientId(FacesContext) - public void uiComponentGetContainerClientIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setViewId("/test"); - root.setId("root"); - UIComponent comp = createComponent(); - root.getChildren().add(comp); - - // Not much can be done here aside from ensuring the result is - // not null. - if (comp.getContainerClientId(context) == null) { - out.println(JSFTestUtil.FAIL + " getContainerClientId() returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------------------- protected Classes - - protected static class TCKRenderer extends Renderer { - - private StringBuffer traceLog; - - private boolean rendersChildren = false; - - private Renderer wrapped; - - /** - *

- * Creates a new TCKRenderer instance that calls into the - * {@link Renderer} parent class. - *

- */ - public TCKRenderer() { - traceLog = new StringBuffer(); - } - - /** - *

- * Creates a new TCKRenderer that wraps the provided - * {@link Renderer}. All calls will be delegated to the wrapped instance. - *

- * - * @param wrapped - * the {@link Renderer} to delegate calls to - */ - public TCKRenderer(Renderer wrapped) { - this(); - this.wrapped = wrapped; - } - - /** - *

- * Render the ending of the current state of the specified - * {@link UIComponent}, following the rules described for - * encodeBegin() to acquire the appropriate value to be - * rendered. - *

- * - * @param context - * {@link FacesContext} for the response we are creating - * @param component - * {@link UIComponent} to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is - * null - */ - public void encodeEnd(FacesContext context, UIComponent component) - throws IOException { - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EE"); - if (wrapped != null) { - wrapped.encodeEnd(context, component); - } else { - super.encodeEnd(context, component); - } - } - - /** - *

- * Render the child components of this {@link UIComponent}, following the - * rules described for encodeBegin() to acquire the appropriate - * value to be rendered. This method will only be called if the - * rendersChildren property of this component is - * true. - *

- * - * @param context - * {@link FacesContext} for the response we are creating - * @param component - * {@link UIComponent} whose children are to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is - * null - */ - public void encodeChildren(FacesContext context, UIComponent component) - throws IOException { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EC"); - if (wrapped != null) { - wrapped.encodeChildren(context, component); - } else { - super.encodeChildren(context, component); - } - } - - /** - *

- * Convert the component generated client id to a form suitable for - * transmission to the client. - *

- *

- *

- * The default implementation returns the argument clientId - * unchanged. - *

- * - * @param context - * {@link FacesContext} for the current request - * @param clientId - * the client identifier to be converted to client a specific - * format. - * @throws NullPointerException - * if context or clientId is - * null - */ - public String convertClientId(FacesContext context, String clientId) { - if (context == null || clientId == null) { - throw new NullPointerException(); - } - if (wrapped != null) { - return wrapped.convertClientId(context, clientId); - } else { - return super.convertClientId(context, clientId); - } - } - - /** - *

- * Return a flag indicating whether this renderer is responsible for - * rendering the children the component it is asked to render. The default - * implementation returns false. - *

- */ - public boolean getRendersChildren() { - if (wrapped != null) { - return wrapped.getRendersChildren(); - } - return rendersChildren; - } - - /** - *

- * Decode the current state of the specified {@link UIComponent} from the - * request contained in the specified {@link FacesContext}, and attempt to - * convert this state information into an object of the type required for - * this component (optionally using the registered {@link Converter} for - * this component, if there is one). - *

- *

- *

- * If conversion is successful: - *

- *
    - *
  • Save the new local value of this component by calling - * setValue() and passing the new value.
  • - *
  • Set the value property of this component to - * true.
  • - *
- *

- *

- * If conversion is not successful: - *

- *
    - *
  • Save the state information (inside the component) in such a way that - * encoding can reproduce the previous input (even though it was - * syntactically or semantically incorrect).
  • - *
  • Add an appropriate conversion failure error message by calling - * addMessage() on the specified {@link FacesContext}.
  • - *
  • Set the valid property of this component to - * false.
  • - *
- *

- *

- * During decoding, events may be enqueued for later processing (by event - * listeners that have registered an interest), by calling - * queueEvent() on the associated {@link UIComponent}. - *

- * - * @param context - * {@link FacesContext} for the request we are processing - * @param component - * {@link UIComponent} to be decoded. - * @throws NullPointerException - * if context or component is - * null - */ - public void decode(FacesContext context, UIComponent component) { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/DC"); - if (wrapped != null) { - wrapped.decode(context, component); - } else { - super.decode(context, component); - } - } - - /** - *

- * Render the beginning specified {@link UIComponent} to the output stream - * or writer associated with the response we are creating. If the conversion - * attempted in a previous call to decode for this component - * failed, the state information saved during execution of - * decode() should be utilized to reproduce the incorrect - * input. If the conversion was successful, or if there was no previous call - * to decode(), the value to be displayed should be acquired by - * calling component.currentValue(), and rendering the value as - * appropriate. - *

- * - * @param context - * {@link FacesContext} for the request we are processing - * @param component - * {@link UIComponent} to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is null - */ - public void encodeBegin(FacesContext context, UIComponent component) - throws IOException { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EB"); - if (wrapped != null) { - wrapped.encodeBegin(context, component); - } else { - super.encodeBegin(context, component); - } - } - - /** - *

- * Returns the content of the current trace log. - *

- */ - public String getTrace() { - return traceLog.toString(); - } - - /** - *

- * Sets the return value of {@link #getRendersChildren()}. - *

- */ - public void setRendersChildren(boolean rendersChildren) { - this.rendersChildren = rendersChildren; - } - } - - protected static class TCKComponent extends UIComponentBase { - - private StringBuffer traceLog; - - private String id; - - public TCKComponent(String id) { - super(); - traceLog = new StringBuffer(); - this.id = id; - this.setId(id); - } - - public String getFamily() { - return ""; - } - - public void processDecodes(FacesContext context) { - trace("/PD" + id); - super.processDecodes(context); - } - - public void processRestoreState(FacesContext context, Object state) { - trace("/PRS" + id); - super.processRestoreState(context, state); - } - - public Object processSaveState(FacesContext context) { - trace("/PSS" + id); - return super.processSaveState(context); - } - - public void processUpdates(FacesContext context) { - trace("/PU" + id); - super.processUpdates(context); - } - - public void processValidators(FacesContext context) { - trace("/PV" + id); - super.processValidators(context); - } - - public Object saveState(FacesContext context) { - trace("/SS" + id); - return super.saveState(context); - } - - public void restoreState(FacesContext context, Object state) { - trace("/RS" + id); - super.restoreState(context, state); - } - - public void decode(FacesContext context) { - trace("/D" + id); - super.decode(context); - } - - public String getTrace() { - return traceLog.toString(); - } - - public void resetTraceLog() { - traceLog = new StringBuffer(); - } - - private void trace(String message) { - traceLog.append(message); - } - } - - protected static class TCKInputComponent extends UIInput { - - private StringBuffer traceLog; - - private String id; - - private boolean throwRuntime; - - private boolean isInvalid; - - public TCKInputComponent(String id) { - super(); - traceLog = new StringBuffer(); - this.id = id; - this.setId(id); - } - - public TCKInputComponent(String id, boolean throwRuntime) { - this(id); - this.throwRuntime = throwRuntime; - } - - public void setInvalidOnValidate(boolean isInvalid) { - this.isInvalid = isInvalid; - } - - public void processDecodes(FacesContext context) { - trace("/PD" + id); - super.processDecodes(context); - } - - public void processUpdates(FacesContext context) { - trace("/PU" + id); - super.processUpdates(context); - } - - public void updateModel(FacesContext context) { - trace("/UM" + id); - if (throwRuntime) { - throw new RuntimeException("UpdateModelRTE"); - } - super.updateModel(context); - } - - public void processValidators(FacesContext context) { - trace("/PV" + id); - super.processValidators(context); - } - - public void validate(FacesContext context) { - trace("/V" + id); - if (throwRuntime) { - throw new RuntimeException("ValidateRTE"); - } - super.validate(context); - if (isInvalid) { - this.setValid(false); - } - } - - public void decode(FacesContext context) { - trace("/D" + id); - if (throwRuntime) { - throw new RuntimeException("DecodeRTE"); - } - super.decode(context); - } - - public String getTrace() { - return traceLog.toString(); - } - - public void resetTraceLog() { - traceLog = new StringBuffer(); - } - - private void trace(String message) { - traceLog.append(message); - } - - public void callPushComponent(FacesContext context) { - pushComponentToEL(context, null); - } - - public void callPopComponent(FacesContext context) { - popComponentFromEL(context); - } - } - - protected static class SimpleBean { - - public String getAction() { - - return "action"; - - } - } // END SimpleBean - - private static class TCKSystemEvent extends SystemEvent { - - public TCKSystemEvent(UIComponent component) { - super(component); - } - - @Override - public boolean isAppropriateListener(FacesListener listener) { - return false; - } - - @Override - public void processListener(FacesListener listener) { - } - } - - private static class TCKComponentSystemEventlistener - implements ComponentSystemEventListener { - - public void processEvent(ComponentSystemEvent arg0) - throws AbortProcessingException { - throw new UnsupportedOperationException("Not supported yet."); - } - } - - protected static class TCKResponseWriter extends ResponseWriter { - - @Override - public String getContentType() { - return "ContentType"; - - } - - @Override - public String getCharacterEncoding() { - return "Character Encoding"; - } - - @Override - public void flush() throws IOException { - System.out.println("Flushed!"); - } - - @Override - public void startDocument() throws IOException { - System.out.println("Start Document"); - } - - @Override - public void endDocument() throws IOException { - System.out.println("End Document"); - } - - @Override - public void startElement(String arg0, UIComponent arg1) throws IOException { - System.out.println("Start Element: " + arg0); - } - - @Override - public void endElement(String arg0) throws IOException { - System.out.println("End Element: " + arg0); - } - - @Override - public void writeAttribute(String arg0, Object arg1, String arg2) - throws IOException { - - if ((arg0 != null) && (arg1 != null)) { - System.out.println("Attribute: " + arg0 + " = " + arg1.toString()); - } - - } - - @Override - public void writeURIAttribute(String arg0, Object arg1, String arg2) - throws IOException { - - if (arg0 == null) { - System.out.println(arg0 + ": arg1 is null."); - } else { - System.out.println(arg0 + ": " + arg1.toString()); - } - } - - @Override - public void writeComment(Object arg0) throws IOException { - if (arg0 == null) { - System.out.println("Comment: arg0 is null."); - } else { - System.out.println("Comment: " + arg0.toString()); - } - } - - @Override - public void writeText(Object arg0, String arg1) throws IOException { - if (arg0 == null) { - System.out.println("arg0 is null"); - } else { - System.out.println(arg0.toString()); - } - } - - @Override - public void writeText(char[] arg0, int arg1, int arg2) throws IOException { - - String text = null; - for (int i = 0; i != arg0.length; i++) { - text = "" + arg0[i]; - } - - System.out.println("Write Text: " + text); - } - - @Override - public ResponseWriter cloneWithWriter(Writer arg0) { - return this; - } - - @Override - public void write(char[] arg0, int arg1, int arg2) throws IOException { - String data = null; - for (int i = 0; i != arg0.length; i++) { - data = "" + arg0[i]; - } - - System.out.println("Write Text: " + data); - } - - @Override - public void close() throws IOException { - System.out.println("Close!"); - } - } - - protected static class TCKVisitContext extends VisitContext { - - private Collection subTreeIds; - - private Collection visitIds; - - @Override - public FacesContext getFacesContext() { - return FacesContext.getCurrentInstance(); - } - - @Override - public Collection getIdsToVisit() { - List children = this.getFacesContext().getViewRoot() - .getChildren(); - visitIds = new ArrayList(); - - for (UIComponent comp : children) { - visitIds.add(comp.getClientId()); - } - - return visitIds; - } - - @Override - public Collection getSubtreeIdsToVisit(UIComponent component) { - subTreeIds = new ArrayList(); - for (UIComponent comp : component.getChildren()) { - subTreeIds.add(comp.getClientId()); - } - - return subTreeIds; - } - - @Override - public VisitResult invokeVisitCallback(UIComponent component, - VisitCallback callback) { - - return callback.visit(this, component); - } - - @Override - public Set getHints() { - Set hints = new HashSet(); - hints.add(VisitHint.EXECUTE_LIFECYCLE); - - return hints; - } - } - - protected static class RejectCallback implements VisitCallback { - - public VisitResult visit(VisitContext context, UIComponent component) { - return VisitResult.REJECT; - } - } - - protected static class CompleteCallback implements VisitCallback { - - public VisitResult visit(VisitContext context, UIComponent component) { - return VisitResult.COMPLETE; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseValueHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseValueHolderTestServlet.java deleted file mode 100644 index b847a8a2fb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BaseValueHolderTestServlet.java +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.ValueHolder; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base tests for methods defined in {@link ValueHolder}. - *

- */ -public abstract class BaseValueHolderTestServlet - extends BaseUIComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - // ValueHolder.getValue(), ValueHolder.setValue() - public void valueHolderGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ValueHolder holder = (ValueHolder) createComponent(); - Object value = createComponent(); - holder.setValue(value); - if (!value.equals(holder.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() failed to return the " - + "expected value as set by setValue()."); - out.println("Expected: " + value); - out.println("Received: " + holder.getValue()); - return; - } - - // make sure we can set null - holder.setValue(null); - if (holder.getValue() != null) { - out.println(JSFTestUtil.FAIL + " getValue() failed to return null" - + " as set by setValue()."); - out.println("Value received: " + holder.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ValueHolder.getValueRef(), ValueHolder.setValueRef() - // public void valueHolderGetSetValueRefTest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // - // ValueHolder holder = (ValueHolder) createComponent(); - // - // holder.setValueRef("requestScope"); - // if (!"requestScope".equals(holder.getValueRef())) { - // out.println(FAIL + " getValueRef() failed to return the " + - // "expected value as set by setValueRef()."); - // out.println("Expected: requestScope"); - // out.println("Received: " + holder.getValueRef()); - // return; - // } - // - // // make sure we can set null - // holder.setValueRef(null); - // if (holder.getValueRef() != null) { - // out.println(FAIL + " getValueRef() failed to return null" + - // " as set by setValueRef()."); - // out.println("Value received: " + holder.getValueRef()); - // return; - // } - // - // out.println(PASS); - // } - // - // - // // ValueHolder.getCurrentValue() - // public void valueHolderGetCurrentValueTest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // - // ValueHolder holder = (ValueHolder) createComponent(); - // FacesContext context = getFacesContext(); - // - // holder.setValueRef(null); - // holder.setValue(null); - // - // request.setAttribute("valueRef", "valueRef value"); - // - // Object result = holder.currentValue(context); - // - // if (result != null) { - // out.println(FAIL + " Expected currentValue() to return null" + - // " if no local value or valueRef were set on the" + - // " ValueHolder."); - // out.println("Value received: " + result); - // return; - // } - // - // // now set a local value and valueRef. The local value should be - // // returned - // holder.setValue("local value"); - // holder.setValueRef("requestScope.valueRef"); - // - // result = holder.currentValue(context); - // if (!"local value".equals(result)) { - // out.println(FAIL + " Expected currentValue() to return the" + - // " local value of the component when local value has been" + - // " specified."); - // out.println("Value expected: local value"); - // out.println("Value received: " + result); - // return; - // } - // - // holder.setValue(null); - // - // result = holder.currentValue(context); - // if (!"valueRef value".equals(result)) { - // out.println(FAIL + " Expected currentValue to return the" + - // " result of the value reference expression when no local" + - // " value has been set on the ValueHolder."); - // out.println("Value expected: valueRef value"); - // out.println("Value received: " + result); - // return; - // } - // - // out.println(PASS); - // } - // - // - // // ValueHolder.currentValue() throws NPE if context argument is null - // public void valueHolderCurrentValueNPETest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // - // ValueHolder holder = (ValueHolder) createComponent(); - // try { - // holder.currentValue(null); - // out.println(FAIL + " No Exception thrown when a null " + - // "FacesContext argument was passed to currentValue()"); - // return; - // } catch (Exception e) { - // if (!(e instanceof NullPointerException)) { - // out.println(FAIL + " Test FAILED. Exception thrown when" + - // " a null FacesContext argument was passed to " + - // "currentValue() but it wasn't an instance of" + - // " NullPointerException."); - // out.println("Exeception received: " + e.getClass().getName()); - // return; - // } - // } - // - // out.println(PASS); - // } - // - // - // // ValueHolder.currentValue() throws EvaluationException if valueRef cannot - // // be evaluated. - // public void valueHolderCurrentValueEvalExcTest(HttpServletRequest request, - // HttpServletResponse response) - // throws ServletException, IOException { - // PrintWriter out = response.getWriter(); - // - // ValueHolder holder = (ValueHolder) createComponent(); - // holder.setValue(null); - // holder.setValueRef("requestScope.bean.invalidProperty"); - // - // request.setAttribute("bean", new Bean()); - // - // try { - // holder.currentValue(getFacesContext()); - // out.println(FAIL + " No Exception thrown when currentValue() " + - // "was called with a valueRef that should fail to evaluate" + - // " at runtime."); - // return; - // } catch (Exception e) { - // if (!(e instanceof ELException)) { - // out.println(FAIL + " Test FAILED. Exception thrown when" + - // " currentValue() was called with a valueRef that should" + - // " fail to evaluate at runtime, but it wasn't an" + - // " instance of ELException."); - // out.println("Exeception received: " + e.getClass().getName()); - // return; - // } - // } - // - // out.println(PASS); - // } - - // ------------------------------------------------------------ PrivateClasses - - private static class Bean { - private String value; - - public void setValue(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BufferedResponseWrapper.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BufferedResponseWrapper.java deleted file mode 100644 index 5ac2c81257..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/BufferedResponseWrapper.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; - -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.http.HttpServletResponseWrapper; - -public class BufferedResponseWrapper extends HttpServletResponseWrapper { - - // HttpServletResponse response; - StringWriter writer; - - public BufferedResponseWrapper(HttpServletResponse response) { - - super(response); - // this.response = response; - - } - - public PrintWriter getWriter() throws IOException { - - writer = new StringWriter(); - return new PrintWriter(writer); - - } - - public StringWriter getBufferedWriter() { - - if (writer == null) { - return new StringWriter(); - } - return writer; - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKConverter.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKConverter.java deleted file mode 100644 index b4587d3667..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKConverter.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.faces.convert.ConverterException; - -public class TCKConverter implements Converter { - - public Object getAsObject(FacesContext context, UIComponent component, - String value) { - if ("fail".equals(value)) - throw new ConverterException(); - else - return "converted"; - } - - public String getAsString(FacesContext context, UIComponent component, - Object value) { - return value.toString(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValidator.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValidator.java deleted file mode 100644 index b0784f3f73..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValidator.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.validator.Validator; - -public class TCKValidator implements Validator { - - private static StringBuffer log = new StringBuffer(); - - private String id; - - private boolean markInvalid; - - public TCKValidator() { - } - - public TCKValidator(String id, boolean markInvalid) { - this.id = id; - this.markInvalid = markInvalid; - } - - public void validate(FacesContext context, UIComponent component, - Object value) { - log.append("/" + id); - if (markInvalid) { - ((UIInput) component).setValid(false); - } - } - - public void markInvalid(boolean markInvalid) { - this.markInvalid = markInvalid; - } - - public static String getTrace() { - return log.toString(); - } - - public static void clearTrace() { - log = new StringBuffer(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueBinding.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueBinding.java deleted file mode 100644 index ae38ba7364..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueBinding.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import jakarta.faces.component.StateHolder; -import jakarta.faces.context.FacesContext; -import jakarta.el.ELException; -import jakarta.el.ELContext; -import jakarta.el.PropertyNotFoundException; -import jakarta.el.ValueExpression; - -public class TCKValueBinding extends ValueExpression implements StateHolder { - - private ValueExpression binding; - - private String ref; - - public TCKValueBinding() { - super(); - } - - public TCKValueBinding(ValueExpression binding, String ref) { - this.binding = binding; - this.ref = ref; - } - - public Class getExpectedType() { - return Object.class; - } - - - public Class getType(ELContext context) throws PropertyNotFoundException { - return binding.getType(context); - } - - public Object getValue(ELContext context) - throws ELException, PropertyNotFoundException { - return binding.getValue(context); - } - - public boolean isReadOnly(ELContext context) - throws PropertyNotFoundException { - return binding.isReadOnly(context); - } - - public void setValue(ELContext context, Object value) - throws ELException, PropertyNotFoundException { - binding.setValue(context, value); - } - - public Object saveState(FacesContext context) { - Object values[] = new Object[2]; - values[0] = ref; - values[1] = binding; - return (values); - } - - public boolean isTransient() { - return false; - } - - public boolean isLiteralText() { - return false; - } - - - public void setTransient(boolean newTransientValue) { - // ignore - } - - public void restoreState(FacesContext context, Object state) { - Object values[] = (Object[]) state; - ref = (String) values[0]; - binding = (ValueExpression) values[1]; - } - - public void restoreState(ELContext context, Object state) { - Object values[] = (Object[]) state; - ref = (String) values[0]; - binding = (ValueExpression) values[1]; - } - - public String getRef() { - return ref; - } - - public String getExpressionString() { - return binding.getExpressionString(); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((binding == null) ? 0 : binding.hashCode()); - result = prime * result + ((ref == null) ? 0 : ref.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - TCKValueBinding other = (TCKValueBinding) obj; - if (binding == null) { - if (other.binding != null) - return false; - } else if (!binding.equals(other.binding)) - return false; - if (ref == null) { - if (other.ref != null) - return false; - } else if (!ref.equals(other.ref)) - return false; - return true; - } - - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueChangeListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueChangeListener.java deleted file mode 100644 index 7f21367739..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/TCKValueChangeListener.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.common; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; - -public class TCKValueChangeListener implements ValueChangeListener { - - private String id = null; - - public TCKValueChangeListener() { - } - - public TCKValueChangeListener(String id) { - this.id = id; - } - - // ----------------------------------------------------------- Pubic Methods - - public String getId() { - return (this.id); - } - - public void processValueChange(ValueChangeEvent event) { - trace(getId() + '@' + JSFTestUtil.getPhaseIdAsString(event.getPhaseId())); - } - - // ---------------------------------------------------- Static Trace Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - - // this needs to be named differently because other test methods - // rely on the standard equal method. - public boolean isEqual(Object otherObj) { - if (!(otherObj instanceof TCKValueChangeListener)) { - return false; - } - TCKValueChangeListener other = (TCKValueChangeListener) otherObj; - if ((null != id && null == other.id) || (null == id && null != other.id)) { - return false; - } - boolean idsAreEqual = true; - if (null != id) { - idsAreEqual = id.equals(other.id); - } - return idsAreEqual; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/component.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/component.common.xml deleted file mode 100644 index 569178b7be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/common/component.common.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/build.xml deleted file mode 100644 index d23aba7917..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/TestServlet.java deleted file mode 100644 index 9d6bfb5bbf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandbutton; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlCommandButton; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand.TestServlet { - - private static final String[] attributes = { "accesskey", "alt", "dir", - "image", "lang", "onblur", "onchange", "onclick", "ondblclick", "onfocus", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "onselect", "style", - "styleClass", "tabindex", "title", "type", "disabled", "readonly" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Button"); - setAttributeNames(attributes); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlCommandButton(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/URLClient.java deleted file mode 100644 index a7c1b827e9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/URLClient.java +++ /dev/null @@ -1,1177 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandbutton; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_combutton_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------- - // ActionSource - - /** - * @testName: actionSourceSetIsImmediateTest - * @assertion_ids: JSF:JAVADOC:397; JSF:JAVADOC:402 - * @test_Strategy: Verify {is,set}Immediate() - if a value is set, the same - * value is returned. - */ - public void actionSourceSetIsImmediateTest() throws EETest.Fault { - super.actionSourceSetIsImmediateTest(); - } - - /** - * @testName: actionSourceAddActListNPETest - * @assertion_ids: JSF:JAVADOC:393; JSF:JAVADOC:457 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceAddActListNPETest() throws EETest.Fault { - super.actionSourceAddActListNPETest(); - } - - /** - * @testName: actionSourceRemoveActListNPETest - * @assertion_ids: JSF:JAVADOC:456; JSF:JAVADOC:399; JSF:JAVADOC:471 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceRemoveActListNPETest() throws EETest.Fault { - super.actionSourceRemoveActListNPETest(); - } - - /** - * @testName: actionSourceAddGetRemoveActListTest - * @assertion_ids: JSF:JAVADOC:392; JSF:JAVADOC:395; JSF:JAVADOC:398; - * JSF:JAVADOC:396; JSF:JAVADOC:465 - * @test_Strategy: Verify the following: - If no ActionListeners have been - * added, an empty array is returned. - Verify listeners added - * are present in the array returned by getActionListeners(). - * - Verify listeners that have been removed are not present - * in the array returned by getActionListeners(). - */ - public void actionSourceAddGetRemoveActListTest() throws EETest.Fault { - super.actionSourceAddGetRemoveActListTest(); - } - - /** - * @testName: actionSourceGetSetActionTest - * @assertion_ids: JSF:JAVADOC:400; JSF:JAVADOC:462; JSF:JAVADOC:472 - * @test_Strategy: Verify {get,set}Action() - if a value is set, the same - * value is returned. - */ - public void actionSourceGetSetActionTest() throws EETest.Fault { - super.actionSourceGetSetActionTest(); - } - - /** - * @testName: actionSourceGetSetActListTest - * @assertion_ids: JSF:JAVADOC:395; JSF:JAVADOC:401; JSF:JAVADOC:464; - * JSF:JAVADOC:474 - * @test_Strategy: Verify {get,set}ActionListener() - if a value is set, the - * same value is returned. - */ - public void actionSourceGetSetActListTest() throws EETest.Fault { - super.actionSourceGetSetActListTest(); - } - - // ----------------------------------------------------------- ActionSource2 - - /** - * @testName: actionSource2GetSetActionExpressionTest - * @assertion_ids: JSF:JAVADOC:403; JSF:JAVADOC:403; JSF:JAVADOC:463; - * JSF:JAVADOC:473 - * @test_Strategy: Verify {get,set}ActionExpression in ActionSource2 - * components accept and properly return a provided - * MethodExpression instance. - * - * @since 1.2 - */ - public void actionSource2GetSetActionExpressionTest() throws Fault { - super.actionSource2GetSetActionExpressionTest(); - } - - // --------------------------------------------------------------- UICommand - - /** - * @testName: uiCommandSetGetValueTest - * @assertion_ids: JSF:JAVADOC:467; JSF:JAVADOC:476 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiCommandSetGetValueTest() throws EETest.Fault { - super.uiCommandSetGetValueTest(); - } - - /** - * @testName: uiCommandBroadcastImmediateTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Verify that if the UICommand instance has the immediate - * property set to true, any registered Listeners will be - * invoked during the APPLY_REQUEST_VALUES phase and in the - * order they were registered. - */ - public void uiCommandBroadcastImmediateTest() throws EETest.Fault { - super.uiCommandBroadcastImmediateTest(); - } - - /** - * @testName: uiCommandBroadcastInvokeActionListenerTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Ensure Listeners associated with a UICommand via the - * actionListenerRef property is invoked. - */ - public void uiCommandBroadcastInvokeActionListenerTest() throws EETest.Fault { - super.uiCommandBroadcastInvokeActionListenerTest(); - } - - /** - * @testName: uiCommandBroadcastTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Verify any Listeners registered with the UICommand instance - * are invoked during the INVOKE_APPLICATION_PHASE and in order - * of registration. - */ - public void uiCommandBroadcastTest() throws EETest.Fault { - super.uiCommandBroadcastTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/build.xml deleted file mode 100644 index a50c1951d1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.war.sun-web.xml deleted file mode 100644 index 0ba336e702..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_combutton_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.xml deleted file mode 100644 index 1760a74669..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandbutton/jsf_chtml_combutton_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_combutton - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandbutton.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/TestServlet.java deleted file mode 100644 index bac08be5da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandlink; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlCommandLink; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand.TestServlet { - - private static final String[] attrNames = { "accesskey", "charset", "coords", - "dir", "hreflang", "lang", "onblur", "onclick", "ondblclick", "onfocus", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "rel", "rev", "shape", "style", - "styleClass", "tabindex", "target", "title", "type" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Link"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlCommandLink(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/URLClient.java deleted file mode 100644 index bba16f9e23..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/URLClient.java +++ /dev/null @@ -1,1180 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandlink; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_comlink_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */// ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483; - * JSF:JAVADOC:620 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------- - // ActionSource - - /** - * @testName: actionSourceSetIsImmediateTest - * @assertion_ids: JSF:JAVADOC:397; JSF:JAVADOC:402 - * @test_Strategy: Verify {is,set}Immediate() - if a value is set, the same - * value is returned. - */ - public void actionSourceSetIsImmediateTest() throws EETest.Fault { - super.actionSourceSetIsImmediateTest(); - } - - /** - * @testName: actionSourceAddActListNPETest - * @assertion_ids: JSF:JAVADOC:393; JSF:JAVADOC:457 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceAddActListNPETest() throws EETest.Fault { - super.actionSourceAddActListNPETest(); - } - - /** - * @testName: actionSourceRemoveActListNPETest - * @assertion_ids: JSF:JAVADOC:456; JSF:JAVADOC:399; JSF:JAVADOC:471 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceRemoveActListNPETest() throws EETest.Fault { - super.actionSourceRemoveActListNPETest(); - } - - /** - * @testName: actionSourceAddGetRemoveActListTest - * @assertion_ids: JSF:JAVADOC:392; JSF:JAVADOC:395; JSF:JAVADOC:398; - * JSF:JAVADOC:396; JSF:JAVADOC:465 - * @test_Strategy: Verify the following: - If no ActionListeners have been - * added, an empty array is returned. - Verify listeners added - * are present in the array returned by getActionListeners(). - * - Verify listeners that have been removed are not present - * in the array returned by getActionListeners(). - */ - public void actionSourceAddGetRemoveActListTest() throws EETest.Fault { - super.actionSourceAddGetRemoveActListTest(); - } - - /** - * @testName: actionSourceGetSetActionTest - * @assertion_ids: JSF:JAVADOC:400; JSF:JAVADOC:462; JSF:JAVADOC:472 - * @test_Strategy: Verify {get,set}Action() - if a value is set, the same - * value is returned. - */ - public void actionSourceGetSetActionTest() throws EETest.Fault { - super.actionSourceGetSetActionTest(); - } - - /** - * @testName: actionSourceGetSetActListTest - * @assertion_ids: JSF:JAVADOC:395; JSF:JAVADOC:401; JSF:JAVADOC:464; - * JSF:JAVADOC:474 - * @test_Strategy: Verify {get,set}ActionListener() - if a value is set, the - * same value is returned. - */ - public void actionSourceGetSetActListTest() throws EETest.Fault { - super.actionSourceGetSetActListTest(); - } - - // -------------------------------------------------------------- - // ActionSource2 - - /** - * @testName: actionSource2GetSetActionExpressionTest - * @assertion_ids: JSF:JAVADOC:403; JSF:JAVADOC:403; JSF:JAVADOC:463; - * JSF:JAVADOC:473 - * @test_Strategy: Verify {get,set}ActionExpression in ActionSource2 - * components accept and properly return a provided - * MethodExpression instance. - * - * @since 1.2 - */ - public void actionSource2GetSetActionExpressionTest() throws Fault { - super.actionSource2GetSetActionExpressionTest(); - } - - // ------------------------------------------------------------------ - // UICommand - - /** - * @testName: uiCommandSetGetValueTest - * @assertion_ids: JSF:JAVADOC:467; JSF:JAVADOC:476 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiCommandSetGetValueTest() throws EETest.Fault { - super.uiCommandSetGetValueTest(); - } - - /** - * @testName: uiCommandBroadcastImmediateTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Verify that if the UICommand instance has the immediate - * property set to true, any registered Listeners will be - * invoked during the APPLY_REQUEST_VALUES phase and in the - * order they were registered. - */ - public void uiCommandBroadcastImmediateTest() throws EETest.Fault { - super.uiCommandBroadcastImmediateTest(); - } - - /** - * @testName: uiCommandBroadcastInvokeActionListenerTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Ensure Listeners associated with a UICommand via the - * actionListenerRef property is invoked. - */ - public void uiCommandBroadcastInvokeActionListenerTest() throws EETest.Fault { - super.uiCommandBroadcastInvokeActionListenerTest(); - } - - /** - * @testName: uiCommandBroadcastTest - * @assertion_ids: JSF:JAVADOC:458 - * @testStrategy: Verify any Listeners registered with the UICommand instance - * are invoked during the INVOKE_APPLICATION_PHASE and in order - * of registration. - */ - public void uiCommandBroadcastTest() throws EETest.Fault { - super.uiCommandBroadcastTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/build.xml deleted file mode 100644 index 3efae1f1c0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.war.sun-web.xml deleted file mode 100644 index c1ab0323b4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_comlink_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.xml deleted file mode 100644 index de3c3af136..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlcommandlink/jsf_chtml_comlink_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_comlink - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlcommandlink.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/TestServlet.java deleted file mode 100644 index f1ad16aacf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/TestServlet.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmldatatable; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlDataTable; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uidata.TestServlet { - - private static final String[] attrNames = { "bgcolor", "border", - "cellpadding", "cellspacing", "columnClasses", "dir", "footerClass", - "frame", "headerClass", "lang", "onclick", "ondblclick", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "rowClasses", "rules", "style", "styleClass", - "summary", "title", "width" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Table"); - setRendersChildren(Boolean.TRUE); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlDataTable(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/URLClient.java deleted file mode 100644 index cd63336111..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/URLClient.java +++ /dev/null @@ -1,1003 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmldatatable; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uidata.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_datatab_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetContainerClientIdNPETest - * @assertion_ids: JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws EETest.Fault { - super.uiComponentGetContainerClientIdNPETest(); - } - - /** - * @testName: uiComponentGetContainerClientIdTest - * @assertion_ids: JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws EETest.Fault { - super.uiComponentGetContainerClientIdTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643; JSF:JAVADOC:617; JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554; JSF:JAVADOC:649 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539; JSF:JAVADOC:649 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540; JSF:JAVADOC:649 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------------- - // UIData - /** - * @testName: uiDataGetRowCountTest - * @assertion_ids: JSF:JAVADOC:664 - * @test_Strategy: Verify the following: - No backing data; getRowCount() - * returns -1 - Valid backing data, getRowCount() returns the - * value as returned from DataModel.getRowCount(); - */ - public void uiDataGetRowCountTest() throws EETest.Fault { - super.uiDataGetRowCountTest(); - } - - /** - * @testName: uiDataGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:668 - * @test_Strategy: Verify the following: - getRowData() throws IAE if the no - * data is available at the specified index. In this case, the - * index is out of range - */ - public void uiDataGetRowDataIAETest() throws EETest.Fault { - super.uiDataGetRowDataIAETest(); - } - - /** - * @testName: uiDataGetRowDataTest - * @assertion_ids: JSF:JAVADOC:666 - * @test_Strategy: Verify the following: - getRowData() returns the expected - * object when specifying various row index values - */ - public void uiDataGetRowDataTest() throws EETest.Fault { - super.uiDataGetRowDataTest(); - } - - /** - * @testName: uiDataGetSetFirstTest - * @assertion_ids: JSF:JAVADOC:661; JSF:JAVADOC:688 - * @test_Strategy: Verify that getFirst() returns 0 on a newly created - * component. Additionally verify that getFirst() will return - * the value as set by setFirst(). - */ - public void uiDataGetSetFirstTest() throws EETest.Fault { - super.uiDataGetSetFirstTest(); - } - - /** - * @testName: uiDataGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:694 - * @test_Strategy: Verify the following: - getRowIndex returns -1 when called - * against a newly created component. - if the var property - * has been specified, and setRowIndex() is set to a valid - * index, ensure the request scoped attribute name as - * specified by var has the value as returned by - * getDataValue(); - getRowIndex() returns the value as set by - * setRowIndex() - */ - public void uiDataGetSetRowIndexTest() throws EETest.Fault { - super.uiDataGetSetRowIndexTest(); - } - - /** - * @testName: uiDataGetSetRowsTest - * @assertion_ids: JSF:JAVADOC:697; JSF:JAVADOC:671 - * @test_Strategy: Verify the following: - getRows() returns the value as - * specified by setRows() - */ - public void uiDataGetSetRowsTest() throws EETest.Fault { - super.uiDataGetSetRowsTest(); - } - - /** - * @testName: uiDataGetSetVarTest - * @assertion_ids: JSF:JAVADOC:673; JSF:JAVADOC:706 - * @test_Strategy: Verify the following: - getVar() returns the value as - * specified by setVar() - */ - public void uiDataGetSetVarTest() throws EETest.Fault { - super.uiDataGetSetVarTest(); - } - - /** - * @testName: uiDataIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:677 - * @test_Strategy: Verify the following: - No backing data; isRowAvailable() - * returns false - Current row index is out of range; - * isRowAvailable() returns false - Current row index points - * to valid row, isRowAvailable() returns true - */ - public void uiDataIsRowAvailableTest() throws EETest.Fault { - super.uiDataIsRowAvailableTest(); - } - - /** - * @testName: uiDataSetFirstIAETest - * @assertion_ids: JSF:JAVADOC:661; JSF:JAVADOC:688 - * @test_Strategy: Verify setFirst() throws an IAE if the integer argument - * provided is negative. - */ - public void uiDataSetFirstIAETest() throws EETest.Fault { - super.uiDataSetFirstIAETest(); - } - - /** - * @testName: uiDataSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:696 - * @test_Strategy: Verify the following: - setRowIndex() throws IAE if the - * integer value specified is less than -1 - */ - public void uiDataSetRowIndexIAETest() throws EETest.Fault { - super.uiDataSetRowIndexIAETest(); - } - - /** - * @testName: uiDataSetRowsIAETest - * @assertion_ids: JSF:JAVADOC:689 - * @test_Strategy: Verify the following: - setRows() throws IAE if the integer - * value specified is negative - */ - public void uiDataSetRowsIAETest() throws EETest.Fault { - super.uiDataSetRowsIAETest(); - } - - /** - * @testName: uiDataGetSetValueTest - * @assertion_ids: JSF:JAVADOC:661; JSF:JAVADOC:688 - * @test_Strategy: Validate the value set vis setValue() is returned by - * getValue(). - */ - public void uiDataGetSetValueTest() throws EETest.Fault { - super.uiDataGetSetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/build.xml deleted file mode 100644 index e74d00c0a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.war.sun-web.xml deleted file mode 100644 index 9d0ab0e5f8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_datatab_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.xml deleted file mode 100644 index c2ad7b7be8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmldatatable/jsf_chtml_datatab_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_datatab - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmldatatable.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/TestServlet.java deleted file mode 100644 index 34c44966d6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/TestServlet.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlform; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlForm; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiform.TestServlet { - - private static final String[] attrNames = { "accept", "acceptcharset", "dir", - "enctype", "lang", "onclick", "ondblclick", "onkeydown", "onkeypress", - "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", - "onmouseup", "onreset", "onsubmit", "style", "styleClass", "target", - "title" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Form"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - HtmlForm form = new HtmlForm(); - form.setSubmitted(true); - return form; - } - - protected UIComponent createForm(boolean submitted) { - HtmlForm form = new HtmlForm(); - form.setSubmitted(submitted); - return form; - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/URLClient.java deleted file mode 100644 index 2110ef8d86..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/URLClient.java +++ /dev/null @@ -1,1109 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlform; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiform.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_form_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetContainerClientIdNPETest - * @assertion_ids: JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws EETest.Fault { - super.uiComponentGetContainerClientIdNPETest(); - } - - /** - * @testName: uiComponentGetContainerClientIdTest - * @assertion_ids: JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws EETest.Fault { - super.uiComponentGetContainerClientIdTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # - * Ensure the UIForm's decode() method is called prior to - * processing its children # Call the processDecodes() method - * of all facets and children of this UIComponent. # Call the - * decode() method of this component, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. Enforce that extra requirement that - * when saveState is called, the submitted property is set to - * false. Finally verify that no state about the forms - * submission state (i.e. the submitted property is true), the - * value isn't saved in the state by restoring the state - * object and ensuring that return value of isSubmitted() is - * false. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------------- - // UIForm - /** - * @testName: uiFormIsSetSubmittedTest - * @assertion_ids: JSF:JAVADOC:714; JSF:JAVADOC:722 - * @test_Strategy: Verify the following: - The default return value of - * isSubmitted() is false (on a newly created component) - - * isSubmitted() returns the value as set by setSubmitted() - */ - public void uiFormIsSetSubmittedTest() throws EETest.Fault { - super.uiFormIsSetSubmittedTest(); - } - - /** - * @testName: uiFormProcessUpdatesIsSubmittedTest - * @assertion_ids: JSF:JAVADOC:718; JSF:JAVADOC:714; JSF:JAVADOC:722 - * @test_Strategy: Verify that the children of the UIForm component will be - * processed if the UIForm's submitted is true; ensure the - * inverse occurs when the submitted property is false. - */ - public void uiFormProcessUpdatesIsSubmittedTest() throws EETest.Fault { - super.uiFormProcessUpdatesIsSubmittedTest(); - } - - /** - * @testName: uiFormProcessValidationsIsSubmittedTest - * @assertion_ids: JSF:JAVADOC:714; JSF:JAVADOC:722; JSF:JAVADOC:719 - * @test_Strategy: Verify that the children of the UIForm component will be - * processed if the UIForm's submitted is true; ensure the - * inverse occurs when the submitted property is false. - */ - public void uiFormProcessValidationsIsSubmittedTest() throws EETest.Fault { - super.uiFormProcessValidationsIsSubmittedTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/build.xml deleted file mode 100644 index f5fef42a0e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.war.sun-web.xml deleted file mode 100644 index 6befa7f3d0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_form_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.xml deleted file mode 100644 index 05e9cfe4b5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlform/jsf_chtml_form_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_form - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlform.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/TestServlet.java deleted file mode 100644 index 20516456b4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/TestServlet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlgraphicimage; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlGraphicImage; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uigraphic.TestServlet { - - private static final String[] attrNames = { "alt", "dir", "height", "lang", - "longdesc", "onclick", "ondblclick", "onkeydown", "onkeypress", "onkeyup", - "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", - "style", "styleClass", "title", "usemap", "width", "ismap" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Image"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlGraphicImage(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/URLClient.java deleted file mode 100644 index 26a8749dc1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/URLClient.java +++ /dev/null @@ -1,1082 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlgraphicimage; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uigraphic.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_gimage_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------------- - // UIGraphic - - /** - * @testName: uiGraphicSetGetValueTest - * @assertion_ids: JSF:JAVADOC:727; JSF:JAVADOC:733 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiGraphicSetGetValueTest() throws EETest.Fault { - super.uiGraphicSetGetValueTest(); - } - - /** - * @testName: uiGraphicGetSetURLTest - * @assertion_ids: JSF:JAVADOC:726; JSF:JAVADOC:732 - * @test_Strategy: Verify {get,set}URL() - if a URL value is set, the same - * value is returned. - */ - public void uiGraphicGetSetURLTest() throws EETest.Fault { - super.uiGraphicGetSetURLTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/build.xml deleted file mode 100644 index 23a8dd4007..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.war.sun-web.xml deleted file mode 100644 index 8e84ffae62..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_gimage_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.xml deleted file mode 100644 index 7b4582129b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlgraphicimage/jsf_chtml_gimage_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_gimage - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlgraphicimage.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/TestServlet.java deleted file mode 100644 index 4529d265da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/TestServlet.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputfile; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlInputFile; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.annotation.MultipartConfig; - -@MultipartConfig -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.File"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlInputFile(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/URLClient.java deleted file mode 100644 index 815d8a9c43..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/URLClient.java +++ /dev/null @@ -1,1303 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputfile; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_infile_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the cureent component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/build.xml deleted file mode 100644 index 857ff611b1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_infile_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_infile_web.xml deleted file mode 100644 index df723a8def..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_infile_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_infile_web - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputfile.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_inhidden_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_inhidden_web.war.sun-web.xml deleted file mode 100644 index c47aead730..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputfile/jsf_chtml_inhidden_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_infile_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/TestServlet.java deleted file mode 100644 index 630c3703b4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/TestServlet.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputhidden; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlInputHidden; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Hidden"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlInputHidden(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/URLClient.java deleted file mode 100644 index 4d80f6a1a1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/URLClient.java +++ /dev/null @@ -1,1360 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputhidden; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_inhidden_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the cureent component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/build.xml deleted file mode 100644 index 0463f350d8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.war.sun-web.xml deleted file mode 100644 index 9fdf5a6aff..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_inhidden_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.xml deleted file mode 100644 index 18d0dfc1a2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputhidden/jsf_chtml_inhidden_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_inhidden_web - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputhidden.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/TestServlet.java deleted file mode 100644 index 0244dc4b31..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/TestServlet.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputsecret; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlInputSecret; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - private static final String[] attrNames = { "accesskey", "alt", - "autocomplete", "dir", "lang", "maxlength", "onblur", "onchange", - "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", "onkeyup", - "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", - "onselect", "size", "style", "styleClass", "tabindex", "title", - "disabled", "readonly", "redisplay" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Secret"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlInputSecret(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/URLClient.java deleted file mode 100644 index d7c79fde90..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/URLClient.java +++ /dev/null @@ -1,1376 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputsecret; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_insecret_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/build.xml deleted file mode 100644 index 2066b8fcc2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.war.sun-web.xml deleted file mode 100644 index 14bea5cae1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_insecret_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.xml deleted file mode 100644 index 008cf85d8e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputsecret/jsf_chtml_insecret_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_insecret_web - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputsecret.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/TestServlet.java deleted file mode 100644 index e42a143668..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/TestServlet.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtext; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlInputText; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - private static final String[] attrNames = { "accesskey", "alt", - "autocomplete", "dir", "lang", "maxlength", "onblur", "onchange", - "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", "onkeyup", - "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", - "onselect", "size", "style", "tabindex", "title", "disabled", - "readonly" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Text"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlInputText(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/URLClient.java deleted file mode 100644 index 3eba3c832f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/URLClient.java +++ /dev/null @@ -1,1351 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_intext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/build.xml deleted file mode 100644 index 722ec19b0b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.war.sun-web.xml deleted file mode 100644 index 15712c082b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_intext_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.xml deleted file mode 100644 index 00f250bb08..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtext/jsf_chtml_intext_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - jsf_chtml_intext - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtext.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/TestServlet.java deleted file mode 100644 index d5add318f8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtextarea; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlInputTextarea; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - private static final String[] attrNames = { "accesskey", "cols", "dir", - "lang", "onblur", "onchange", "onclick", "ondblclick", "onfocus", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "onselect", "rows", "style", - "styleClass", "tabindex", "title", "disabled", "readonly" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Textarea"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlInputTextarea(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/URLClient.java deleted file mode 100644 index a7c17d1187..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/URLClient.java +++ /dev/null @@ -1,1374 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtextarea; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_intextarea_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/build.xml deleted file mode 100644 index a91fb5be2c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/build.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.war.sun-web.xml deleted file mode 100644 index b691831d96..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_intextarea_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.xml deleted file mode 100644 index 052e816050..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlinputtextarea/jsf_chtml_intextarea_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_intextarea - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlinputtextarea.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/TestServlet.java deleted file mode 100644 index 3810a43aa8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/TestServlet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessage; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlMessage; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessage.TestServlet { - - private static final String[] attrNames = { "errorClass", "errorStyle", - "fatalClass", "fatalStyle", "infoClass", "infoStyle", "style", - "styleClass", "title", "warnClass", "warnStyle", "tooltip", "dir", - "lang" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Message"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlMessage(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/URLClient.java deleted file mode 100644 index 85bb5637fd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/URLClient.java +++ /dev/null @@ -1,1062 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessage; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessage.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_message_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/build.xml deleted file mode 100644 index e532634fa1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.war.sun-web.xml deleted file mode 100644 index d9145232c8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_message_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.xml deleted file mode 100644 index 19fa947fd6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessage/jsf_chtml_message_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_message - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessage.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/TestServlet.java deleted file mode 100644 index 77decff49e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/TestServlet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessages; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlMessages; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessages.TestServlet { - - private static final String[] attrNames = { "errorClass", "errorStyle", - "fatalClass", "fatalStyle", "infoClass", "infoStyle", "style", - "styleClass", "title", "warnClass", "warnStyle", "tooltip", "layout", - "dir", "lang" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Messages"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlMessages(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/URLClient.java deleted file mode 100644 index 7f4bb5170b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/URLClient.java +++ /dev/null @@ -1,1062 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessages; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessages.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_messages_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/build.xml deleted file mode 100644 index c4c6eb74bf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.war.sun-web.xml deleted file mode 100644 index b130292123..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_messages_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.xml deleted file mode 100644 index 24904c434f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlmessages/jsf_chtml_messages_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_messages - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlmessages.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/TestServlet.java deleted file mode 100644 index d6f99a2110..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetbutton; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutcomeTargetButton; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutcometarget.TestServlet { - - private static final String[] attrNames = { "accesskey", "alt", "dir", - "image", "lang", "onblur", "onclick", "ondblclick", "onfocus", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "style", "styleClass", - "tabindex", "title" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Button"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutcomeTargetButton(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/URLClient.java deleted file mode 100644 index c5d31d49a6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/URLClient.java +++ /dev/null @@ -1,1184 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetbutton; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outcometargetbutton_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - * - * @since 2.0 - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - * - * @since 2.0 - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - * - * @since 2.0 - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - * - * @since 2.0 - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - * - * @since 2.0 - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - * - * @since 2.0 - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - * - * @since 2.0 - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - * - * @since 2.0 - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - * - * @since 2.0 - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - * - * @since 2.0 - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - * - * @since 2.0 - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - * - * @since 2.0 - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - * - * @since 2.0 - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - * - * @since 2.0 - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - * - * @since 2.0 - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - * - * @since 2.0 - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - * - * @since 2.0 - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/build.xml deleted file mode 100644 index 58bab67808..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.war.sun-web.xml deleted file mode 100644 index cb4d0b84d9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outcometargetbutton_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.xml deleted file mode 100644 index 9b703784d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetbutton/jsf_chtml_outcometargetbutton_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_chtml_outcometargetbutton - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetbutton.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/TestServlet.java deleted file mode 100644 index 7594a007d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/TestServlet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetlink; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutcomeTargetLink; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutcometarget.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", - "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", - "onmouseup", "style", "styleClass", "tabindex", "title" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Link"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutcomeTargetLink(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/URLClient.java deleted file mode 100644 index 5d1b375085..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/URLClient.java +++ /dev/null @@ -1,1184 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetlink; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outcometargetlink_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - * - * @since 2.0 - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - * - * @since 2.0 - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - * - * @since 2.0 - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - * - * @since 2.0 - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - * - * @since 2.0 - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - * - * @since 2.0 - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - * - * @since 2.0 - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - * - * @since 2.0 - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - * - * @since 2.0 - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- * - * @since 2.0 - */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - * - * @since 2.0 - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - * - * @since 2.0 - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - * - * @since 2.0 - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - * - * @since 2.0 - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - * - * @since 2.0 - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - * - * @since 2.0 - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - * - * @since 2.0 - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - * - * @since 2.0 - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - * - * @since 2.0 - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - * - * @since 2.0 - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - * - * @since 2.0 - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - * - * @since 2.0 - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - * - * @since 2.0 - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - * - * @since 2.0 - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - * - * @since 2.0 - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/build.xml deleted file mode 100644 index d77bb98dec..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.war.sun-web.xml deleted file mode 100644 index 72e06bf47e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outcometargetlink_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.xml deleted file mode 100644 index bd3f1d655e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutcometargetlink/jsf_chtml_outcometargetlink_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_chtml_outcometargetlink - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutcometargetlink.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/TestServlet.java deleted file mode 100644 index 294282ab66..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/TestServlet.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputformat; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutputFormat; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.TestServlet { - - private static final String[] attrNames = { "style", "styleClass", "title", - "escape", "dir", "lang" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Format"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutputFormat(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/URLClient.java deleted file mode 100644 index c12b7112c2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/URLClient.java +++ /dev/null @@ -1,1076 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputformat; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outformat_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/build.xml deleted file mode 100644 index e4b21d2bf0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.war.sun-web.xml deleted file mode 100644 index dffe614dc5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outformat_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.xml deleted file mode 100644 index 10e75de79d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputformat/jsf_chtml_outformat_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_outformat - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputformat.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/TestServlet.java deleted file mode 100644 index 6f5540d426..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/TestServlet.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlabel; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutputLabel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "for", "lang", - "onblur", "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", - "onkeyup", "onmousedown", "onmousemove", "onmouseout", "onmouseover", - "onmouseup", "style", "styleClass", "tabindex", "title" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Label"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutputLabel(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/URLClient.java deleted file mode 100644 index c631781b44..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/URLClient.java +++ /dev/null @@ -1,1076 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlabel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outlabel_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/build.xml deleted file mode 100644 index beb12d168c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.war.sun-web.xml deleted file mode 100644 index e172963d83..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outlabel_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.xml deleted file mode 100644 index 743184067f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlabel/jsf_chtml_outlabel_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_outlabel - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlabel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/TestServlet.java deleted file mode 100644 index 0e65596f3f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlink; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutputLink; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.TestServlet { - - private static final String[] attrNames = { "accesskey", "charset", "coords", - "dir", "hreflang", "lang", "onblur", "onclick", "ondblclick", "onfocus", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "rel", "rev", "shape", "style", - "styleClass", "tabindex", "target", "title", "type" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Link"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutputLink(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/URLClient.java deleted file mode 100644 index 4c61a8250b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/URLClient.java +++ /dev/null @@ -1,1084 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlink; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outlink_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/build.xml deleted file mode 100644 index d6235db783..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.war.sun-web.xml deleted file mode 100644 index 00f2842616..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outlink_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.xml deleted file mode 100644 index 6cb2e4a39d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputlink/jsf_chtml_outlink_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_outlink - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputlink.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/TestServlet.java deleted file mode 100644 index ca2f578877..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/TestServlet.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputtext; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlOutputText; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.TestServlet { - - private static final String[] attrNames = { "style", "styleClass", "title", - "escape", "dir", "lang" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Text"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlOutputText(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/URLClient.java deleted file mode 100644 index 6c275151dc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/URLClient.java +++ /dev/null @@ -1,1084 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputtext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_outtext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/build.xml deleted file mode 100644 index a3e4fb77ea..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.war.sun-web.xml deleted file mode 100644 index 7b934ebaff..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_outtext_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.xml deleted file mode 100644 index d4d4490df8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmloutputtext/jsf_chtml_outtext_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_outtext - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmloutputtext.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/TestServlet.java deleted file mode 100644 index 3fe4278116..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/TestServlet.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgrid; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlPanelGrid; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel.TestServlet { - - private static final String[] attrNames = { "bgcolor", "border", - "cellpadding", "cellspacing", "columnClasses", "columns", "dir", - "footerClass", "frame", "headerClass", "lang", "onclick", "ondblclick", - "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmousemove", - "onmouseout", "onmouseover", "onmouseup", "rowClasses", "rules", "style", - "styleClass", "summary", "title", "width" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Grid"); - setRendersChildren(Boolean.TRUE); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlPanelGrid(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/URLClient.java deleted file mode 100644 index 3e029debb8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/URLClient.java +++ /dev/null @@ -1,1055 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgrid; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_panelgrid_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/build.xml deleted file mode 100644 index c01f9744f7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.war.sun-web.xml deleted file mode 100644 index 60b4c6f26f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_panelgrid_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.xml deleted file mode 100644 index 86d26df10d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgrid/jsf_chtml_panelgrid_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_panelgrid - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgrid.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/TestServlet.java deleted file mode 100644 index d5481717cc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/TestServlet.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgroup; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlPanelGroup; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel.TestServlet { - - private static final String[] attrNames = { "style", "styleClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Group"); - setRendersChildren(Boolean.TRUE); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlPanelGroup(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/URLClient.java deleted file mode 100644 index f75f4152f9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/URLClient.java +++ /dev/null @@ -1,1055 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgroup; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_panelgroup_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/build.xml deleted file mode 100644 index 35f3b2e4cf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.war.sun-web.xml deleted file mode 100644 index 72dd9837ba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_panelgroup_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.xml deleted file mode 100644 index 8f1ff8ec57..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlpanelgroup/jsf_chtml_panelgroup_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_panelgroup - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlpanelgroup.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/TestServlet.java deleted file mode 100644 index 35a56866db..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectbooleancheckbox; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectBooleanCheckbox; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectboolean.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "onselect", "style", "styleClass", "tabindex", - "title", "disabled", "readonly" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Checkbox"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectBooleanCheckbox(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/URLClient.java deleted file mode 100644 index 1d8c73eb58..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/URLClient.java +++ /dev/null @@ -1,1371 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectbooleancheckbox; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectboolean.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selbchkbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------------------------- - // ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ - // EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/build.xml deleted file mode 100644 index 3b926993d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.war.sun-web.xml deleted file mode 100644 index 68b41f001d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selbchkbox_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.xml deleted file mode 100644 index b674e5ae59..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectbooleancheckbox/jsf_chtml_selbchkbox_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selbchkbox - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectbooleancheckbox.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/TestServlet.java deleted file mode 100644 index 63f0bac89c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/TestServlet.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanycheckbox; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.component.html.HtmlSelectManyCheckbox; -import jakarta.faces.context.FacesContext; -import jakarta.el.MethodExpression; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.TestServlet { - - private static final String[] attrNames = { "accesskey", "border", "dir", - "disabledClass", "enabledClass", "lang", "layout", "onblur", "onchange", - "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", "onkeyup", - "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", - "onselect", "style", "styleClass", "tabindex", "title", "disabled", - "readonly", "disabledClass", "enabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Checkbox"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectManyCheckbox(); - } - - // ------------------------------------------- Test Methods ---- - - // Test event queuing and broadcasting (any phase listeners) - public void uiInputBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = facesContext.getApplication().getViewHandler() - .createView(facesContext, "/root"); - root.getChildren().add(input); - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - - // Register three listeners - input.addValueChangeListener(new TCKValueChangeListener("AP0")); - input.addValueChangeListener(new TCKValueChangeListener("AP1")); - input.addValueChangeListener(new TCKValueChangeListener("AP2")); - - // Fire events and evaluate results - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - String trace = TCKValueChangeListener.trace(); - String expectedTrace = "/AP0@PROCESS_VALIDATIONS/AP1@PROCESS_VALIDATIONS/AP2@PROCESS_VALIDATIONS"; - if (!expectedTrace.equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected trace: " + expectedTrace); - out.println("Trace received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputBroadcastValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(input); - - TCKValueChangeListener listener = new TCKValueChangeListener("VCLR"); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - facesContext.getELContext(), "#{requestScope.reqVCL.processValueChange}", null, - new Class[] { ValueChangeEvent.class }); - MethodExpressionValueChangeListener lnr = new MethodExpressionValueChangeListener(binding); - - request.setAttribute("reqVCL", listener); - input.addValueChangeListener(lnr); - - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - - String trace = TCKValueChangeListener.trace(); - - if (trace.length() == 0) { - out.println(JSFTestUtil.FAIL + " The ValueChangeListener as referenced" - + " by ValueChangeListenerRef 'requestScope.reqVCL.processValueChange'" - + " was not invoked."); - return; - } - - if (!"/VCLR@PROCESS_VALIDATIONS".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected Listener trace."); - out.println("Expected: /VCLR@PROCESS_VALIDATIONS"); - out.println("Received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/URLClient.java deleted file mode 100644 index 6c7e32f14b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/URLClient.java +++ /dev/null @@ -1,1363 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanycheckbox; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selmchkbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ - // EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws EETest.Fault { - super.uiInputValidate6Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/build.xml deleted file mode 100644 index c93b5d4df2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.war.sun-web.xml deleted file mode 100644 index 2884b299e3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selmchkbox_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.xml deleted file mode 100644 index 888a31c0df..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanycheckbox/jsf_chtml_selmchkbox_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selmchkbox - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanycheckbox.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/TestServlet.java deleted file mode 100644 index 54633b0def..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanylistbox; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectManyListbox; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "size", "style", "styleClass", "tabindex", - "title", "disabled", "readonly", "disabledClass", "enabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Listbox"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectManyListbox(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/URLClient.java deleted file mode 100644 index 7bdf4e8677..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/URLClient.java +++ /dev/null @@ -1,1359 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanylistbox; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selmlistbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws EETest.Fault { - super.uiInputValidate6Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/build.xml deleted file mode 100644 index 2974c8519d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.war.sun-web.xml deleted file mode 100644 index 71d66b38e1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selmlistbox_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.xml deleted file mode 100644 index 83e20bf2a7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanylistbox/jsf_chtml_selmlistbox_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selmlistbox - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanylistbox.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/TestServlet.java deleted file mode 100644 index 05fcbb5d2f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanymenu; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectManyMenu; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "style", "styleClass", "tabindex", "title", - "disabled", "readonly", "disabledClass", "enabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Menu"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectManyMenu(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/URLClient.java deleted file mode 100644 index d22224eb13..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/URLClient.java +++ /dev/null @@ -1,1358 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanymenu; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selmmenu_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws Fault { - super.uiInputValidate6Test(); - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/build.xml deleted file mode 100644 index 9871df65e2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.war.sun-web.xml deleted file mode 100644 index f000545e0e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selmmenu_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.xml deleted file mode 100644 index 879b7fe53e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectmanymenu/jsf_chtml_selmmenu_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selmmenu - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectmanymenu.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/TestServlet.java deleted file mode 100644 index a84f90bdc3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonelistbox; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectOneListbox; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "size", "style", "styleClass", "tabindex", - "title", "disabled", "readonly", "disabledClass", "enabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Listbox"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectOneListbox(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/URLClient.java deleted file mode 100644 index 271d0ac23a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/URLClient.java +++ /dev/null @@ -1,1388 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonelistbox; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selolistbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws EETest.Fault { - super.uiInputValidate6Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/build.xml deleted file mode 100644 index b899152a8b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.war.sun-web.xml deleted file mode 100644 index b242423864..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selolistbox_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.xml deleted file mode 100644 index 6c940cccfa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonelistbox/jsf_chtml_selolistbox_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selolistbox - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonelistbox.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/TestServlet.java deleted file mode 100644 index 9405de0f0a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/TestServlet.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonemenu; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectOneMenu; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.TestServlet { - - private static final String[] attrNames = { "accesskey", "dir", "lang", - "onblur", "onchange", "onclick", "ondblclick", "onfocus", "onkeydown", - "onkeypress", "onkeyup", "onmousedown", "onmousemove", "onmouseout", - "onmouseover", "onmouseup", "style", "styleClass", "tabindex", "title", - "disabled", "readonly", "enabledClass", "disabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Menu"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectOneMenu(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/URLClient.java deleted file mode 100644 index 0507cbed8c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/URLClient.java +++ /dev/null @@ -1,1389 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonemenu; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_selomenu_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws EETest.Fault { - super.uiInputValidate6Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/build.xml deleted file mode 100644 index 78b354ee15..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.war.sun-web.xml deleted file mode 100644 index 43f218c542..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_selomenu_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.xml deleted file mode 100644 index d9b60feb79..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectonemenu/jsf_chtml_selomenu_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_selomenu - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectonemenu.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/TestServlet.java deleted file mode 100644 index ee2b7a84a0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/TestServlet.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectoneradio; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.html.HtmlSelectOneRadio; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public final class TestServlet extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.TestServlet { - - private static final String[] attrNames = { "accesskey", "border", "dir", - "disabledClass", "enabledClass", "lang", "layout", "onblur", "onchange", - "onclick", "ondblclick", "onfocus", "onkeydown", "onkeypress", "onkeyup", - "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onselect", - "style", "styleClass", "tabindex", "title", "disabled", "readonly", - "disabledClass", "enabledClass" }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Radio"); - setAttributeNames(attrNames); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected UIComponentBase createComponent() { - return new HtmlSelectOneRadio(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/URLClient.java deleted file mode 100644 index c5f4b93b79..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/URLClient.java +++ /dev/null @@ -1,1388 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectoneradio; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_chtml_seloradio_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return - * false.
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // -------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - super.uiInputValidate3aTest(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - super.uiInputValidate3bTest(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws EETest.Fault { - super.uiInputValidate3cTest(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws EETest.Fault { - super.uiInputValidate6Test(); // To change body of overridden methods use - // Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // ----------------------------------------------- HTML Component Attributes - - /** - * @testName: componentAttributesTest - * @assertion_ids: JSF:JAVADOC:500 - * @test_Strategy: Validate the values of the HTML component attributes can be - * set and then obtained. - */ - public void componentAttributesTest() throws EETest.Fault { - super.componentAttributesTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/build.xml deleted file mode 100644 index 4c78988eba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.war.sun-web.xml deleted file mode 100644 index 2abc508f14..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_chtml_seloradio_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.xml deleted file mode 100644 index 2a46703b73..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/html/htmlselectoneradio/jsf_chtml_seloradio_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_chtml_seloradio - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.html.htmlselectoneradio.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/TestServlet.java deleted file mode 100644 index 0d994d51a0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/TestServlet.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicolumn; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIColumn; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutput; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIColumn(); - } - - // ------------------------------------------- UIColumn Methods ---- - - // UIColumn.setFooter() throws NullPointerException - public void uiColumnSetFooterNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(this.createComponent().getClass(), "setFooter", - new Class[] { UIComponent.class }, new Object[] { null }, out); - } - - // UIColumn.{get,set}Footer() - public void uiColumnGetSetFooterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "Testing"; - UIColumn uic = (UIColumn) createComponent(); - UIOutput footNotes = new UIOutput(); - - footNotes.setId(golden); - uic.setFooter(footNotes); - - String result = uic.getFooter().getId(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from UIColumn.getFooter()." - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Recieved: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiColumnGetSetFooterTest - - // UIColumn.{get,set}Header() - public void uiColumnGetSetHeaderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "Testing"; - UIColumn uic = (UIColumn) createComponent(); - UIOutput header = new UIOutput(); - - header.setId(golden); - uic.setHeader(header); - - String result = uic.getHeader().getId(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from UIColumn.getFooter()." - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Recieved: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiColumnGetSetFooterTest - - // UIColumn.setHeader() throws NullPointerException - public void uiColumnSetHeaderNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(this.createComponent().getClass(), "setHeader", - new Class[] { UIComponent.class }, new Object[] { null }, out); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/URLClient.java deleted file mode 100644 index 4f20b415bb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/URLClient.java +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * Copyright (c) 2003, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicolumn; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_column_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */// ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584; JSF:JAVADOC:455 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584; JSF:JAVADOC:455 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:455 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:455; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590; JSF:JAVADOC:455 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590; JSF:JAVADOC:455 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590; JSF:JAVADOC:455 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487; JSF:JAVADOC:455 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586; JSF:JAVADOC:455 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589; JSF:JAVADOC:455 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592; JSF:JAVADOC:455 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594; JSF:JAVADOC:455 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595; JSF:JAVADOC:455 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593; JSF:JAVADOC:455 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500; JSF:JAVADOC:455 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501; JSF:JAVADOC:455 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598; JSF:JAVADOC:455 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601; JSF:JAVADOC:455 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600; JSF:JAVADOC:455 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504; JSF:JAVADOC:455 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509; JSF:JAVADOC:455 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510; JSF:JAVADOC:455 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509; JSF:JAVADOC:455 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512; JSF:JAVADOC:455 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511; JSF:JAVADOC:455 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535; JSF:JAVADOC:455 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534; JSF:JAVADOC:455 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607; JSF:JAVADOC:455 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606; JSF:JAVADOC:455 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604; JSF:JAVADOC:455 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:448 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611; JSF:JAVADOC:455 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:455 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:455 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523; JSF:JAVADOC:563; JSF:JAVADOC:455 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614; JSF:JAVADOC:455 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643; JSF:JAVADOC:455 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536; JSF:JAVADOC:455 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570; JSF:JAVADOC:455 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547; JSF:JAVADOC:455 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553; JSF:JAVADOC:455 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539; JSF:JAVADOC:455 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540; JSF:JAVADOC:455 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541; JSF:JAVADOC:455 - * @test_Strategy: Validate that a NullPointerException is thrown if - * FacesContext is null. - * - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541; JSF:JAVADOC:455 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483; - * JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623; JSF:JAVADOC:455 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:455 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627; JSF:JAVADOC:455 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628; JSF:JAVADOC:455 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628; JSF:JAVADOC:455 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559; JSF:JAVADOC:455 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567; JSF:JAVADOC:528; JSF:JAVADOC:455 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529; JSF:JAVADOC:455 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569; JSF:JAVADOC:455 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568; JSF:JAVADOC:455 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575; JSF:JAVADOC:455 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575; JSF:JAVADOC:455 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ------------------------------------------------------------- StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442; JSF:JAVADOC:447; JSF:JAVADOC:455 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443; JSF:JAVADOC:455 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445; JSF:JAVADOC:455 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446; JSF:JAVADOC:455 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- UIColumn - - /** - * @testName: uiColumnSetFooterNPETest - * @assertion_ids: JSF:JAVADOC:452 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiColumnSetFooterNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiColumnSetFooterNPETest"); - invoke(); - } - - /** - * @testName: uiColumnSetHeaderNPETest - * @assertion_ids: JSF:JAVADOC:454 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiColumnSetHeaderNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiColumnSetHeaderNPETest"); - invoke(); - } - - /** - * @testName: uiColumnGetSetFooterTest - * @assertion_ids: JSF:JAVADOC:449; JSF:JAVADOC:451 - * @test_Strategy: Validate That we are able to set and get the footer facet - * of the column. - */ - public void uiColumnGetSetFooterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiColumnGetSetFooterTest"); - invoke(); - } - - /** - * @testName: uiColumnGetSetHeaderTest - * @assertion_ids: JSF:JAVADOC:450; JSF:JAVADOC:453 - * @test_Strategy: Validate That we are able to set and get the header facet - * of the column. - */ - public void uiColumnGetSetHeaderTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiColumnGetSetHeaderTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/build.xml deleted file mode 100644 index c403e2591f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.war.sun-web.xml deleted file mode 100644 index 0222e55181..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_column_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.xml deleted file mode 100644 index 1593323c5a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicolumn/jsf_comp_column_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_comp_column - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uicolumn.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestActionListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestActionListener.java deleted file mode 100644 index fa6aa220fd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestActionListener.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; - -public final class TestActionListener implements ActionListener { - private String id = null; - - private TestActionListener() { - } - - // ----------------------------------------------------------- Public Methods - - /** - * Create a TestActionListener with with the given ID(id) - * - * @param id - * - The id of the TestActionListener. - * @return TestActionListener - */ - public static TestActionListener withID(String id) { - TestActionListener tal = new TestActionListener(); - tal.setId(id); - - return tal; - - } - - /** - * Set the id of this TestActionListener - * - * @param id - * - The id you want this TestActionListener Object to have. - */ - public void setId(String id) { - this.id = id; - } - - /** - * Get the id of this TestActionListener - * - * @return The id that has been previously set. - */ - public String getId() { - return (this.id); - } - - public void processAction(ActionEvent event) { - trace(getId() + "@" + JSFTestUtil.getPhaseIdAsString(event.getPhaseId())); - } - - public boolean equals(Object otherObj) { - if (!(otherObj instanceof TestActionListener)) { - return false; - } - TestActionListener other = (TestActionListener) otherObj; - if ((null != id && null == other.id) || (null == id && null != other.id)) { - return false; - } - boolean idsAreEqual = true; - if (null != id) { - idsAreEqual = id.equals(other.id); - } - - return idsAreEqual; - } - - public int hashCode() { - assert false : "hashCode not designed"; - return 42; // any arbitrary constant will do - } - - // ---------------------------------------------------- Static Trace Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestServlet.java deleted file mode 100644 index 8fe503d22a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/TestServlet.java +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.MethodExpressionActionListener; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Button"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UICommand(); - } - - // ------------------------------------------- Test Methods ---- - - // ------------------------------------------------------------------- - // UICommand - - public void uiCommandSetGetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UICommand command = (UICommand) createComponent(); - - command.setValue("value"); - - if (!"value".equals(command.getValue())) { - out.println(JSFTestUtil.FAIL + " UICommand.getValue() didn't return" - + " the value as set by UICommand.setValue()."); - out.println("Expected: value"); - out.println("Received: " + command.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiCommandBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - // Ensure listeners are invoked in the proper order - // and are invoked during the invoke application phase - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UICommand command = (UICommand) createComponent(); - command.setRendererType(null); - - ActionEvent event = new ActionEvent(command); - TestActionListener.trace(null); - - // Register three listeners - command.addActionListener(TestActionListener.withID("AP0")); - command.addActionListener(TestActionListener.withID("AP1")); - command.addActionListener(TestActionListener.withID("AP2")); - - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(command); - command.queueEvent(event); - root.processDecodes(context); - root.processValidators(context); - root.processApplication(context); - - String traceExpected = "/AP0@INVOKE_APPLICATION/AP1@INVOKE_APPLICATION/AP2@INVOKE_APPLICATION"; - String traceReceived = TestActionListener.trace(); - if (!traceExpected.equals(traceReceived)) { - out.println(JSFTestUtil.FAIL + " Listeners not invoked in the expected" - + " order or were invoked too many times."); - out.println("Listener trace expected: " + traceExpected); - out.println("Listener trace received: " + traceReceived); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiCommandBroadcastImmediateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - // Ensure listeners are invoked in the proper order - // and since immediate is true, the listeners - // are processed during APPLY_REQUEST_VALUES - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UICommand command = (UICommand) createComponent(); - command.setImmediate(true); - command.setRendererType(null); - - ActionEvent event = new ActionEvent(command); - TestActionListener.trace(null); - // Register three listeners - command.addActionListener(TestActionListener.withID("AP0")); - command.addActionListener(TestActionListener.withID("AP1")); - command.addActionListener(TestActionListener.withID("AP2")); - - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(command); - command.queueEvent(event); - root.processDecodes(context); - root.processValidators(context); - root.processApplication(context); - - String traceExpected = "/AP0@APPLY_REQUEST_VALUES/AP1@APPLY_REQUEST_VALUES/AP2@APPLY_REQUEST_VALUES"; - String traceReceived = TestActionListener.trace(); - if (!traceExpected.equals(traceReceived)) { - out.println(JSFTestUtil.FAIL + " Listeners not invoked in the expected" - + " order or were invoked too many times."); - out.println("Listener trace expected: " + traceExpected); - out.println("Listener trace received: " + traceReceived); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiCommandBroadcastInvokeActionListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - // Ensure that for instances of UICommand, that any actionListenerRefs - // that are associated with this instance are invoked. - PrintWriter out = response.getWriter(); - UICommand command = (UICommand) createComponent(); - command.setRendererType(null); - FacesContext context = getFacesContext(); - System.out.println("COMMAND CLASS: " + command.getClass().getName()); - - // Defaults to ANY_PHASE - ActionEvent event = new ActionEvent(command); - TestActionListener listener = TestActionListener.withID("ALR"); - - request.setAttribute("ListRef", listener); - MethodExpressionActionListener lnr = new MethodExpressionActionListener(getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{ListRef.processAction}", null, new Class[] { ActionEvent.class })); - command.addActionListener(lnr); - command.setImmediate(true); - TestActionListener.trace(null); - - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(command); - command.queueEvent(event); - root.processDecodes(context); - root.processValidators(context); - root.processApplication(context); - - String traceExpected = "/ALR@APPLY_REQUEST_VALUES"; - String traceReceived = TestActionListener.trace(); - if (!traceExpected.equals(traceReceived)) { - out.println(JSFTestUtil.FAIL + " Listeners defined via actionListenerRefs" - + "not invoked."); - out.println("Listener trace expected: " + traceExpected); - out.println("Listener trace received: " + traceReceived); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UICommand.broadcast(FacesContext) throws NullPointerException - public void uiCommandBroadcastNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UICommand command = (UICommand) createComponent(); - command.setRendererType(null); - - try { - command.broadcast(null); - out.println(JSFTestUtil.FAIL - + "Expected a NullPointerException to be thrown and it wasn't!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + "Wrong Exception Thrown!" + JSFTestUtil.NL - + "Expected: NullPointerException" + JSFTestUtil.NL + "Received: " - + e.toString()); - } - - } - - // UIComponent.processDecodes() - public void uiComponentProcessDecodesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendererType(null); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(false); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processDecodes(getFacesContext()); - - // Child2 shoudln't have D in the trace as it's parent - // renders children but isn't rendered itself. - if (!"/PDchild1/Dchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1/Dchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PDchild1_1/Dchild1_1"); - return; - } - if (!"/PDfacet1/Dfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"/PDfacet1_1/Dfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PDfacet1_1/Dfacet1_1"); - return; - } - - if (!"/PDchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PDchild2"); - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processDecodes() -- decode() not called if component is - // not rendered - public void uiComponentProcessDecodesNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // build a component tree. - UIComponent comp = createComponent(); - comp.setRendered(true); - comp.setRendererType(null); - TCKInputComponent child1 = new TCKInputComponent("child1"); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(false); - TCKInputComponent facet1 = new TCKInputComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - comp.processDecodes(getFacesContext()); - - // child1_1 and facet1_1 have their rendered properties set to false. - // This means that child1 will have processDecodes called against it, - // but it will not call decode() on facet1_1. - if (!"/PDchild1/Dchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PDchild1_1."); - return; - } - if (!"/PDfacet1/Dfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace to be generated."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIComponent.processDecodes() - if RuntimeException thrown by decode() - // then FacesContext.renderResponse must be called - public void uiComponentProcessDecodesRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - comp.setRendererType(null); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processDecodes(getFacesContext()); - } catch (Exception re) { - if (!"DecodeRTE".equals(re.getMessage())) { - out.println(JSFTestUtil.FAIL + " RuntimeException not rethrown up to" - + " the calling component."); - out.println("Exception received: " + re.toString()); - out.println("Exception message: " + re.getMessage()); - return; - } - } - - if (!getFacesContext().getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " RuntimeException thrown during decode()" - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/URLClient.java deleted file mode 100644 index dadf736e52..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/URLClient.java +++ /dev/null @@ -1,1215 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_command_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ------------------------------------------------------------- Test - // Methods - // ------------------------------------------------------------- UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiCommandBroadcastNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:461; JSF:JAVADOC:481; - * JSF:JAVADOC:580 - * @testStrategy: Verify that if the FacesContext is passed in a - * NullPointerException is thrown. - */ - public void uiCommandBroadcastNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiCommandBroadcastNPETest"); - invoke(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:477; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:502 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:503 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:516 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:515 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:513 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:517; JSF:JAVADOC:466 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:524 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:518;JSF:JAVADOC:558 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:522;JSF:JAVADOC:561 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:561; JSF:JAVADOC:632; - * JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:523;JSF:JAVADOC:563 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:537; JSF:JAVADOC:562 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:477; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:482; JSF:JAVADOC:530; - * JSF:JAVADOC:538 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------- - // ActionSource - /** - * @testName: actionSourceSetIsImmediateTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:397; JSF:JAVADOC:402; - * JSF:JAVADOC:468; JSF:JAVADOC:475 - * @test_Strategy: Verify {is,set}Immediate() - if a value is set, the same - * value is returned. - */ - public void actionSourceSetIsImmediateTest() throws EETest.Fault { - super.actionSourceSetIsImmediateTest(); - } - - /** - * @testName: actionSourceAddActListNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:393; JSF:JAVADOC:456; - * JSF:JAVADOC:457 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceAddActListNPETest() throws EETest.Fault { - super.actionSourceAddActListNPETest(); - } - - /** - * @testName: actionSourceRemoveActListNPETest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:456; JSF:JAVADOC:399; - * JSF:JAVADOC:471 - * @test_Strategy: Verify an NPE is thrown when attempting to pass a null - * value to addActionListener(). - */ - public void actionSourceRemoveActListNPETest() throws EETest.Fault { - super.actionSourceRemoveActListNPETest(); - } - - /** - * @testName: actionSourceAddGetRemoveActListTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:392; JSF:JAVADOC:395; - * JSF:JAVADOC:398; JSF:JAVADOC:396; JSF:JAVADOC:456; - * JSF:JAVADOC:470 - * @test_Strategy: Verify the following: - If no ActionListeners have been - * added, an empty array is returned. - Verify listeners added - * are present in the array returned by getActionListeners(). - * - Verify listeners that have been removed are not present - * in the array returned by getActionListeners(). - */ - public void actionSourceAddGetRemoveActListTest() throws EETest.Fault { - super.actionSourceAddGetRemoveActListTest(); - } - - /** - * @testName: actionSourceGetSetActionTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:400; JSF:JAVADOC:462; - * JSF:JAVADOC:472 - * @test_Strategy: Verify {get,set}Action() - if a value is set, the same - * value is returned. - */ - public void actionSourceGetSetActionTest() throws EETest.Fault { - super.actionSourceGetSetActionTest(); - } - - /** - * @testName: actionSourceGetSetActListTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:395; JSF:JAVADOC:401; - * JSF:JAVADOC:464; JSF:JAVADOC:474 - * @test_Strategy: Verify {get,set}ActionListener() - if a value is set, the - * same value is returned. - */ - public void actionSourceGetSetActListTest() throws EETest.Fault { - super.actionSourceGetSetActListTest(); - } - - // -------------------------------------------------------------- - // ActionSource2 - /** - * @testName: actionSource2GetSetActionExpressionTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:403; JSF:JAVADOC:403; - * JSF:JAVADOC:463; JSF:JAVADOC:473 - * @test_Strategy: Verify {get,set}ActionExpression in ActionSource2 - * components accept and properly return a provided - * MethodExpression instance. - * - * @since 1.2 - */ - public void actionSource2GetSetActionExpressionTest() throws Fault { - super.actionSource2GetSetActionExpressionTest(); - } - - // ------------------------------------------------------------------ - // UICommand - /** - * @testName: uiCommandSetGetValueTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:467; JSF:JAVADOC:476 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiCommandSetGetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiCommandSetGetValueTest"); - invoke(); - } - - /** - * @testName: uiCommandBroadcastTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:458; JSF:JAVADOC:479 - * @testStrategy: Verify any Listeners registered with the UICommand instance - * are invoked during the INVOKE_APPLICATION_PHASE and in order - * of registration. - */ - public void uiCommandBroadcastTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiCommandBroadcastTest"); - invoke(); - } - - /** - * @testName: uiCommandBroadcastImmediateTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:458 - * @testStrategy: Verify that if the UICommand instance has the immediate - * property set to true, any registered Listeners will be - * invoked during the APPLY_REQUEST_VALUES phase and in the - * order they were registered. - */ - public void uiCommandBroadcastImmediateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiCommandBroadcastImmediateTest"); - invoke(); - } - - /** - * @testName: uiCommandBroadcastInvokeActionListenerTest - * @assertion_ids: JSF:JAVADOC:477; JSF:JAVADOC:458 - * @testStrategy: Ensure Listeners associated with a UICommand via the - * actionListener property are invoked. - */ - public void uiCommandBroadcastInvokeActionListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiCommandBroadcastInvokeActionListenerTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/build.xml deleted file mode 100644 index e020721ee0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.war.sun-web.xml deleted file mode 100644 index 0902e866c3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_command_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.xml deleted file mode 100644 index 139fbc4138..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uicommand/jsf_comp_command_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_command - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uicommand.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/TestServlet.java deleted file mode 100644 index 0f33e5d3a6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/TestServlet.java +++ /dev/null @@ -1,1484 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uidata; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValidator; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ELContext; -import jakarta.el.ValueExpression; -import jakarta.faces.FacesException; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.component.ContextCallback; -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIColumn; -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIData; -import jakarta.faces.component.UIForm; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.component.visit.VisitCallback; -import jakarta.faces.component.visit.VisitContext; -import jakarta.faces.component.visit.VisitResult; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.FacesEvent; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.PhaseId; -import jakarta.faces.model.DataModel; -import jakarta.faces.model.DataModelEvent; -import jakarta.faces.model.DataModelListener; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - protected DataModel testDM; - - protected List beans; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendersChildren(Boolean.TRUE); - setRendererType("jakarta.faces.Table"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIData(); - } - - /** - *

- * Initialize a the objects used for the Model tier. - *

- */ - protected void initDataModel() { - beans = new ArrayList(); - for (int i = 0; i < 10; i++) { - TCKDataBean bean = new TCKDataBean(); - bean.setCommand("command" + i); - bean.setInput("input" + i); - bean.setOutput("output" + i); - beans.add(bean); - } - testDM = new TCKDataModel(beans); - } - - // ---------------------------------------------------------------- Test - // Methods - - // UIData.{get,set}First() - public void uiDataGetSetFirstTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - initDataModel(); - - UIData data = (UIData) createComponent(); - - data.setValue(testDM); - - int result = data.getFirst(); - if (result != 0) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getFirst() to return" - + " 0 when called agains a newly created component."); - out.println("Value returned: " + result); - return; - } - - data.setFirst(5); - result = data.getFirst(); - if (result != 5) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getFirst() to return" - + " the value as set by UIData.setFirst(), in this case" + " 5."); - out.println("Value received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.{get,set}Footer() - public void uiDataGetSetFooterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "Testing"; - UIData data = (UIData) createComponent(); - UIOutput footNotes = new UIOutput(); - - footNotes.setId(golden); - data.setFooter(footNotes); - - String result = data.getFooter().getId(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from UIData.getFooter()." - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Recieved: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiDataGetSetFooterTest - - // UIData.setFooter() throws NullPointerException - public void uiDataSetFooterNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "setFooter", - new Class[] { UIComponent.class }, new Object[] { null }, out); - - }// End uiDataSetFooterNPETest - - // UIData.{get,set}Header() - public void uiDataGetSetHeaderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "Testing"; - UIData data = (UIData) createComponent(); - UIOutput header = new UIOutput(); - - header.setId(golden); - data.setHeader(header); - - String result = data.getHeader().getId(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from UIData.getHeader()." - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Recieved: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiDataGetSetHeaderTest - - // UIData.setHeader() throws NullPointerException - public void uiDataSetHeaderNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "setHeader", - new Class[] { UIComponent.class }, new Object[] { null }, out); - - }// End uiDataSetHeaderNPETest - - // UIData.queueEvent() throws NullPointerException - public void uiDataQueueEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewRoot root = getFacesContext().getViewRoot(); - UIData data = (UIData) this.createComponent(); - - root.getChildren().add(data); - - try { - data.queueEvent(null); - out.println(JSFTestUtil.FAIL + "No Exception thrown!" + JSFTestUtil.NL - + "Expected a NullPointerException " + "to be thrown " - + JSFTestUtil.NL + "when testing: UIData.queueEvent()."); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + JSFTestUtil.NPE_MESS); - e.printStackTrace(); - } - - }// End uiDataQueueEventNPETest - - // UIData.queueEvent() throws IllegalStateException - public void uiDataQueueEventISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIData data = (UIData) createComponent(); - UIComponent root = getApplication() - .createComponent(UIOutput.COMPONENT_TYPE); - - root.getChildren().add(data); - - JSFTestUtil.checkForISE(data, "queueEvent", - new Class[] { FacesEvent.class }, - new Object[] { new TCKFacesEvent(data) }, out); - - }// End uiDataQueueEventISETest - - // UIData.setFirst() throws IAE if argument is negative - public void uiDataSetFirstIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - initDataModel(); - - UIData data = (UIData) createComponent(); - - data.setValue(testDM); - - try { - data.setFirst(-1); - out.println(JSFTestUtil.FAIL + " No Exception thrown when UIData." - + "setFirst() was called with a negative integer " + "argument."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when UIData." - + "setFirst() was called with a negative integer" - + " argument, but it wasn't an instance of" - + " IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.isRowAvailable() - public void uiDataIsRowAvailableTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - TCKDataModel model = new TCKDataModel(); - - data.setValue(model); - - // Model with no wrapped data source, isRowAvailable() must return - // false. - if (data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected UIData.isRowAvailable() to " - + "return false if the DataModel object didn't wrap" - + " an underlying data source."); - return; - } - - initDataModel(); - - data.setValue(testDM); - data.setFirst(0); - data.setRowIndex(0); - - if (!data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected UIData.isRowAvailable() to" - + " return true when row index was within a valid range."); - return; - } - - // next, set the row index out of range. isRowAvailable() should - // return false. - data.setRowIndex(11); - if (data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected UIData.isRowAvailable() to" - + " return false when specified row index was out of" + " range."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.getRowCount() - public void uiDataGetRowCountTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - TCKDataModel model = new TCKDataModel(); - - data.setValue(model); - - // There is no backing data in the DataModel instance, - // so getRowCount() should return 01 - int result = data.getRowCount(); - if (result != -1) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getRowCount() to" - + " return -1 if no data was available on the Model " + "tier."); - out.println("Row count received: " + result); - return; - } - - initDataModel(); - data.setValue(testDM); - - // backing DataModel instance has 10 objects, therefore getRowCount() - // should return 10. - result = data.getRowCount(); - if (result != 10) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getRowCount() to " - + "return 10."); - out.println("Row count received: " + result); - return; - } - - // make sure the rowcount is handled dynamically - beans.remove(9); - result = data.getRowCount(); - if (result != 9) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getRowCount() to " - + "return 9."); - out.println("Row count received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.getRowData() - public void uiDataGetRowDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - - // using the same indexes, getRowData() should return the first - // Object from the DataModel - Object result = data.getRowData(); - if (result == null) { - out.println("Test FAILED[1]. Expected UIData.getRowData() to " - + "returna non-null result."); - return; - } - - TCKDataBean bean = (TCKDataBean) result; - if (bean != beans.get(0)) { - out.println("Test FAILED[1]. The Object returned by UIData." - + "getRowData() at index 0 was not the expected Object."); - out.println("Expected: " + beans.get(0)); - out.println("Recevied: " + bean); - return; - } - - // move the current row index up a few notches and verify we get - // the expected result - data.setRowIndex(5); - result = data.getRowData(); - if (result == null) { - out.println("Test FAILED[2]. Expected UIData.getRowData() to " - + "return a non-null result."); - return; - } - - bean = (TCKDataBean) result; - if (bean != beans.get(5)) { - out.println("Test FAILED[1]. The Object returned by UIData." - + "getRowData() at index 5 was not expected the Object."); - out.println("Expected: " + beans.get(5)); - out.println("Recevied: " + bean); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.getRowData throws IAE if the current index is out of range - public void uiDataGetRowDataIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - data.setFirst(0); - data.setRowIndex(11); - - try { - data.getRowData(); - out.println(JSFTestUtil.FAIL + " No Exception thrown when UIData." - + "getRowData() was called and the row index was out" + " of range."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when UIData." - + "getRowData() was called and the row index was " - + "out of range, but it wasn't an intance of " - + "IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.{get,set}RowIndex() - public void uiDataGetSetRowIndexTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - String attrName = "com.sun.ts.jsftck.rowidx"; - - initDataModel(); - - data.setValue(testDM); - - // no index has been specified, so getRowIndex() should return -1 - if (!checkRowIndex(data, -1, out)) { - return; - } - - // blur some testing boundries a bit here. If 'var' is specified, - // then the data value at the index specified will be placed in - // a request scoped variable with the value of 'var' as the key. - data.setVar(attrName); - data.setRowIndex(0); - - Object ret = request.getAttribute(attrName); - if (!beans.get(0).equals(ret)) { - out.println(JSFTestUtil.FAIL + " The object stored in Request scope" - + " after calling setRowIndex() was not the expected" + " Object."); - out.println("Expected: " + beans.get(0)); - out.println("Received: " + ret); - return; - } - - if (!checkRowIndex(data, 0, out)) { - return; - } - - // If 'var' is specified and we set the rowIndex to -1, then remove - // the request scoped object associated with that name. - data.setRowIndex(-1); - - ret = request.getAttribute(attrName); - if (ret != null) { - out.println(JSFTestUtil.FAIL + " Expected the request scope variable " - + "'" + attrName + "'to be removed when setRowIndex(" - + ") was called passing -1."); - out.println("Object received: " + ret); - return; - } - - if (!checkRowIndex(data, -1, out)) { - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.setRowIndex throws IAE if arg passed is less than -1 - public void uiDataSetRowIndexIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - - try { - data.setRowIndex(-2); - out.println(JSFTestUtil.FAIL + " No Exception thrown when UIData." - + "setRowIndex() was called with a row index that was" - + " less than -1"); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when UIData." - + "setRowIndex() was called with a row index that " - + "was less than -1, but it wasn't an intance of " - + "IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.{get,set}Rows() - public void uiDataGetSetRowsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - - data.setRows(5); - int result = data.getRows(); - if (result != 5) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getRows() to return" - + " the value as set by UIData.setRows()."); - out.println("Expected: 5"); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.setRows() throws IAE if arg is a negative integer - public void uiDataSetRowsIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - - try { - data.setRows(-1); - out.println(JSFTestUtil.FAIL + " No Exception thrown when UIData." - + "setRows() was called with a negative integer " + "argument"); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when UIData." - + "setRows() was called with a negative integer" - + "argument, but it wasn't an intance of " - + "IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.setValueExpression() throws NullPointerException - public void uiDataSetValueExpressionNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "setValueExpression", - new Class[] { String.class, ValueExpression.class }, - new Object[] { null, new TCKVallueExpr() }, out); - - }// End uiDataSetValueExpressionNPETest - - // UIData.{get,set}Var() - public void uiDataGetSetVarTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - - initDataModel(); - - data.setValue(testDM); - - data.setVar("var"); - String result = data.getVar(); - if (!"var".equals(result)) { - out.println(JSFTestUtil.FAIL + " Expected UIData.getVar() to return" - + " the value as set by UIData.setVar()."); - out.println("Expected: 'var'"); - out.println("Received: '" + result + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiDataGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIData data = (UIData) createComponent(); - data.setValue("value"); - - if (!"value".equals(data.getValue())) { - out.println(JSFTestUtil.FAIL + " Value returned by getValue() was" - + " not the value as set by setValue()."); - out.println("Expected: value"); - out.println("Received: " + data.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiDataPositiveInvokeOnComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - final PrintWriter out = response.getWriter(); - out.println("beginning uiDataPositiveInvokeOnComponentTest"); - initDataModel(); - - // Create UIData component - UIData data = (UIData) createComponent(); - data.setFirst(3); - data.setRows(5); - data.setVar("foo"); - data.setValue(testDM); - if (data.getValue() == null || testDM != data.getValue()) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + " Bad value for data.getValue()"); - return; - } - - // build component tree - UIViewRoot viewRoot = new UIViewRoot(); - viewRoot.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - viewRoot.setViewId("/view"); - getFacesContext().setViewRoot(viewRoot); - - UIForm form1 = new UIForm(); - form1.setId("form1"); - viewRoot.getChildren().add(form1); - setupTree(form1, data); - - // find the data component - UIData data1 = (UIData) viewRoot.findComponent("form1:data"); - - boolean found = false; - data1.setRowIndex(3); - - if (!checkRowIndex(data1, 3, out)) { - return; - } - - found = viewRoot.invokeOnComponent(getFacesContext(), - "form1:data:4:commandHeader", new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - out.println("entering invokeContextCallback()"); - - UIData data = (UIData) getNamingContainer(component); - UIForm form = (UIForm) getNamingContainer(data); - - if (!checkRowIndex(data, 4, out)) { - return; - } - - if (!"form1".equals(form.getId())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Incorrect form id" + JSFTestUtil.NL + "Expected: form1" - + JSFTestUtil.NL + "Computed: " + form.getId()); - } - - if (!"commandHeader".equals(component.getId())) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Incorrect component id" - + JSFTestUtil.NL + "Expected: commandHeader" - + JSFTestUtil.NL + "Computed: " + component.getId()); - } - } - }); - - if (!checkRowIndex(data1, 3, out)) { - return; - } - - if (!found) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Call to invokeOnComponent() returned false"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.processDecodes() throws NullPointerException - public void uiDataProcessDecodesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewRoot root = getFacesContext().getViewRoot(); - UIData data = (UIData) this.createComponent(); - - root.getChildren().add(data); - - try { - data.processDecodes(null); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + JSFTestUtil.NPE_MESS); - e.printStackTrace(); - } - - }// End uiDataProcessDecodesNPETest - - public void uiDataNPEInvokeOnComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - out.println("beginning uiDataNPEInvokeOnComponentTest"); - initDataModel(); - - // Create UIData component - UIData data = (UIData) createComponent(); - data.setFirst(3); - data.setRows(5); - data.setVar("foo"); - data.setValue(testDM); - if (data.getValue() == null || testDM != data.getValue()) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + " Bad value for data.getValue()"); - return; - } - - // build component tree - UIViewRoot viewRoot = new UIViewRoot(); - viewRoot.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - viewRoot.setViewId("/view"); - getFacesContext().setViewRoot(viewRoot); - - UIForm form1 = new UIForm(); - form1.setId("form1"); - viewRoot.getChildren().add(form1); - setupTree(form1, data); - - int npesCaught = 0; - - try { - viewRoot.invokeOnComponent(null, "form1:data:4:commandHeader", - new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - } - }); - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null FacesContext argument did not throw an exception"); - - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null FacesContext argument did not throw a"); - out.println( - "NullPointerException, instead threw " + e.getClass().getName()); - } else { - ++npesCaught; - } - } - - try { - viewRoot.invokeOnComponent(getFacesContext(), null, - new ContextCallback() { - - public void invokeContextCallback(FacesContext context, - UIComponent component) { - } - }); - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null clientId argument did not throw an exception"); - - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null clientId argument did not throw a"); - out.println( - "NullPointerException, instead threw " + e.getClass().getName()); - } else { - ++npesCaught; - } - } - - try { - viewRoot.invokeOnComponent(getFacesContext(), - "form1:data:4:commandHeader", null); - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null callback argument did not throw an exception"); - - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + "invokeOnComponent() called with"); - out.println("null callback argument did not throw a"); - out.println( - "NullPointerException, instead threw " + e.getClass().getName()); - } else { - ++npesCaught; - } - } - - if (npesCaught == 3) - out.println(JSFTestUtil.PASS); - } - - private Object foundComponent; - - public void uiDataFEInvokeOnComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - out.println("beginning uiDataFEInvokeOnComponentTest"); - initDataModel(); - - // Create UIData component - UIData data = (UIData) createComponent(); - data.setFirst(3); - data.setRows(5); - data.setVar("foo"); - data.setValue(testDM); - if (data.getValue() == null || testDM != data.getValue()) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + " Bad value for data.getValue()"); - return; - } - - // build component tree - UIViewRoot viewRoot = new UIViewRoot(); - viewRoot.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - viewRoot.setViewId("/view"); - getFacesContext().setViewRoot(viewRoot); - - UIForm form1 = new UIForm(); - form1.setId("form1"); - viewRoot.getChildren().add(form1); - setupTree(form1, data); - - // foundComponent = null; - FacesContext context = getFacesContext(); - boolean result = false; - - // Negative case 1, not found component. - result = viewRoot.invokeOnComponent(context, "form1:input7", - new ContextCallback() { - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - } - }); - - if (result) { - out.println(JSFTestUtil.FAIL + " Expected \"false\" returned by" - + " InvokeOnComponent() when passing in \"form:input7\"" - + " as clientId arg. Instead received " + result); - return; - } - - // Negative case 2A, callback throws exception with found component - try { - result = viewRoot.invokeOnComponent(context, "form1:data:4:commandHeader", - new ContextCallback() { - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - // When else am I going to get the chance to throw - // this exception? - throw new IllegalStateException(); - } - }); - } catch (Exception e) { - if (!(e instanceof FacesException)) { - out.println(JSFTestUtil.FAIL + "invokeOnComponent(facesContext," - + " form2:input2, Callback) threw an Exception," - + " but it wasn't an instance of FacesException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - // Negative case 2B, callback throws exception with not found component - try { - result = viewRoot.invokeOnComponent(context, "form2:input6", - new ContextCallback() { - public void invokeContextCallback(FacesContext context, - UIComponent component) { - foundComponent = component; - // When else am I going to get the chance to throw - // this exception? - throw new IllegalStateException(); - } - }); - } catch (Exception e) { - if (!(e instanceof FacesException)) { - out.println(JSFTestUtil.FAIL + "invokeOnComponent(facesContext," - + " form2:input6, Callback) threw an Exception," - + " but it wasn't an instance of FacesException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // UIData.createUniqueId() - public void uiDataCreateUniqueIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - initDataModel(); - String seed = "tckId"; - UIData data = (UIData) createComponent(); - String uniqueId = data.createUniqueId(context, seed); - - if (!uniqueId.contains(seed)) { - out.println(JSFTestUtil.FAIL + "Test Value not found in ID!" - + JSFTestUtil.NL + "Expected Component ID to contain: " + seed - + JSFTestUtil.NL + "Received: " + uniqueId); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // End uiDataCreateUniqueIdTest - - // ------------------------------------------------------------- Private - // Classes - - private static class TCKDataActionListener implements ActionListener { - - // ---------------------------------------------------------- Public - // Methods - - public PhaseId getPhaseId() { - return (PhaseId.ANY_PHASE); - } - - public void processAction(ActionEvent event) { - - trace( - event.getComponent().getClientId(FacesContext.getCurrentInstance())); - - } - - // ---------------------------------------------------- Static Trace - // Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - - } - - private static class TCKDataValidator implements Validator { - - // ---------------------------------------------------------- Public - // Methods - - public void validate(FacesContext context, UIComponent component, - Object value) { - trace(component.getClientId(context)); - Object vlu; - - vlu = (value == null) ? "" : value; - - trace((String) vlu); - if ("bad".equals(vlu)) { - trace("ERROR"); - context.addMessage(component.getClientId(context), new FacesMessage( - FacesMessage.SEVERITY_ERROR, component.getClientId(context), null)); - ((UIInput) component).setValid(false); - } - - } - - // ---------------------------------------------------- Static Trace - // Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - - } - - // --------------------------- private classes - - /** - *

- * ListDataModel is a convenience implementation of - * {@link DataModel} that wraps an List of Java objects. - *

- */ - - public static class TCKDataModel extends DataModel { - - private int index; - - private List list; - - /** - *

- * Construct a new {@link TCKDataModel} with no specified wrapped data. - *

- */ - public TCKDataModel() { - this(null); - } - - /** - *

- * Construct a new {@link TCKDataModel} wrapping the specified list. - *

- * - * @param list - * List to be wrapped (if any) - */ - public TCKDataModel(List list) { - setWrappedData(list); - } - - public boolean isRowAvailable() { - - if (list == null) { - return (false); - } else if ((index >= 0) && (index < list.size())) { - return (true); - } else { - return (false); - } - - } - - public int getRowCount() { - - if (list == null) { - return (-1); - } - return (list.size()); - - } - - public Object getRowData() { - - if (list == null) { - return (null); - } else if (!isRowAvailable()) { - throw new IllegalArgumentException(); - } else { - return (list.get(index)); - } - - } - - public int getRowIndex() { - - return (index); - - } - - public void setRowIndex(int rowIndex) { - - if (rowIndex < -1) { - throw new IllegalArgumentException(); - } - int old = index; - index = rowIndex; - if (list == null) { - return; - } - DataModelListener[] listeners = getDataModelListeners(); - if ((old != index) && (listeners != null)) { - Object rowData = null; - if (isRowAvailable()) { - rowData = getRowData(); - } - DataModelEvent event = new DataModelEvent(this, index, rowData); - - for (int i = 0; i < listeners.length; i++) { - listeners[i].rowSelected(event); - } - } - - } - - public Object getWrappedData() { - - return (this.list); - - } - - public void setWrappedData(Object data) { - - if (data == null) { - list = null; - return; - } - list = (List) data; - index = 0; - - } - - }// End TCKDataModel - - public static class TCKDataBean implements Serializable { - - private String command; - - public String getCommand() { - return (this.command); - } - - public void setCommand(String command) { - this.command = command; - } - - private String input; - - public String getInput() { - return (this.input); - } - - public void setInput(String input) { - this.input = input; - } - - private String output; - - public String getOutput() { - return (this.output); - } - - public void setOutput(String output) { - this.output = output; - } - - public String toString() { - return (command + "|" + input + "|" + output); - } - - } - - private void setupTree(UIComponent root, UIData data) { - - FacesContext fc = getFacesContext(); - ELContext elContext = fc.getELContext(); - - // Attach our UIData to the view root - // UIData data = new UIData(); - data.setId("data"); - root.getChildren().add(data); - - // Set up columns with facets and fields for each property - UIColumn column; - UICommand command; - UIInput input; - UIOutput output; - UIOutput label; - UIOutput constant; - - column = new UIColumn(); - column.setId("commandColumn"); - label = new UIOutput(); - label.setId("commandHeader"); - label.setValue("Command Header"); - column.getFacets().put("header", label); - - label = new UIOutput(); - label.setId("commandFooter"); - label.setValue("Command Footer"); - column.getFacets().put("footer", label); - command = new UICommand(); - command.setId("command"); - command.setValueExpression("value", - getApplication().getExpressionFactory().createValueExpression(elContext, "#{foo.command}", Object.class)); - column.getChildren().add(command); - data.getChildren().add(column); - command.addActionListener(new TCKDataActionListener()); - - column = new UIColumn(); - column.setId("inputColumn"); - label = new UIOutput(); - label.setId("inputHeader"); - label.setValue("Input Header"); - column.getFacets().put("header", label); - - label = new UIOutput(); - label.setId("inputFooter"); - label.setValue("Input Footer"); - column.getFacets().put("footer", label); - input = new UIInput(); - input.setId("input"); - input.setValueExpression("value", - getApplication().getExpressionFactory().createValueExpression(elContext, "#{foo.input}", Object.class)); - column.getChildren().add(input); - data.getChildren().add(column); - - input.addValidator(new TCKValidator()); - input.addValueChangeListener(new TCKValueChangeListener()); - - column = new UIColumn(); - column.setId("outputColumn"); - label = new UIOutput(); - label.setId("outputHeader"); - label.setValue("Output Header"); - column.getFacets().put("header", label); - - label = new UIOutput(); - label.setId("outputFooter"); - label.setValue("Output Footer"); - column.getFacets().put("footer", label); - - output = new UIOutput(); - output.setId("output"); - output.setValueExpression("value", - getApplication().getExpressionFactory().createValueExpression(elContext, "#{foo.output}", Object.class)); - column.getChildren().add(output); - data.getChildren().add(column); - - column = new UIColumn(); - column.setId("constantColumn"); - label = new UIOutput(); - label.setId("constantHeader"); - label.setValue("Constant Header"); - column.getFacets().put("header", label); - - label = new UIOutput(); - label.setId("constantFooter"); - label.setValue("Constant Footer"); - column.getFacets().put("footer", label); - constant = new UIOutput(); - constant.setId("constant"); - constant.setValue("Constant Value"); - column.getChildren().add(constant); - data.getChildren().add(column); - - } - - private UIComponent getNamingContainer(UIComponent start) { - UIComponent namingContainer = start.getParent(); - while (namingContainer != null) { - if (namingContainer instanceof NamingContainer) { - return namingContainer; - } - namingContainer = namingContainer.getParent(); - } - return null; - } - - // UIData.broadcast(FacesContext) throws NullPointerException - public void uiDataBroadcastNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIData command = (UIData) createComponent(); - command.setRendererType(null); - - try { - command.broadcast(null); - out.println(JSFTestUtil.FAIL - + "Expected a NullPointerException to be thrown and it wasn't!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + "Wrong Exception Thrown!" + JSFTestUtil.NL - + "Expected: NullPointerException" + JSFTestUtil.NL + "Received: " - + e.toString()); - } - - } - - public void uiDatatVisitTreeNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "visitTree", - new Class[] { VisitContext.class, VisitCallback.class }, - new Object[] { null, new TCKVisitCallback() }, out); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "visitTree", - new Class[] { VisitContext.class, VisitCallback.class }, - new Object[] { VisitContext.createVisitContext(getFacesContext()), - null }, - out); - - } // End uiDatatVisitTreeNPETest - - // UIData.{is,set}RowStatePreserved() - public void uiDataIsSetRowStatePreservedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - initDataModel(); - - boolean resultOne; - boolean resultTwo; - String result; - UIData data = (UIData) createComponent(); - - data.setRowStatePreserved(true); - resultOne = data.isRowStatePreserved(); - - data.setRowStatePreserved(false); - resultTwo = data.isRowStatePreserved(); - - result = (resultOne && (!resultTwo)) ? JSFTestUtil.PASS : JSFTestUtil.FAIL; - - out.println(result); - - } // End uiDataIsSetRowStatePreservedTest - - // ------------------------------------- private implementations - - private boolean checkRowIndex(UIData data, int expected, PrintWriter out) { - if (data.getRowIndex() != expected) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value for getRowIndex() after setting row " + "index." - + JSFTestUtil.NL + "Expected value: " + expected + JSFTestUtil.NL - + "Computed value: " + data.getRowIndex()); - return false; - } - - return true; - } - - private static class TCKVisitCallback implements VisitCallback { - - @Override - public VisitResult visit(VisitContext context, UIComponent target) { - // TODO Auto-generated method stub - return null; - } - - } - - private static class TCKFacesEvent extends FacesEvent { - - public TCKFacesEvent(UIComponent component) { - super(component); - } - - public boolean isAppropriateListener(FacesListener listener) { - return false; - } - - public void processListener(FacesListener listener) { - - } - } - - private static class TCKVallueExpr extends ValueExpression { - - @Override - public Class getExpectedType() { - // TODO Auto-generated method stub - return null; - } - - @Override - public Class getType(ELContext arg0) { - // TODO Auto-generated method stub - return null; - } - - @Override - public Object getValue(ELContext arg0) { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isReadOnly(ELContext arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setValue(ELContext arg0, Object arg1) { - // TODO Auto-generated method stub - - } - - @Override - public boolean equals(Object arg0) { - // TODO Auto-generated method stub - return false; - } - - @Override - public String getExpressionString() { - // TODO Auto-generated method stub - return null; - } - - @Override - public int hashCode() { - // TODO Auto-generated method stub - return 0; - } - - @Override - public boolean isLiteralText() { - // TODO Auto-generated method stub - return false; - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/URLClient.java deleted file mode 100644 index edbefd098c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/URLClient.java +++ /dev/null @@ -1,1200 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uidata; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_data_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:490; JSF:JAVADOC:586; - * JSF:JAVADOC:657 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:488; JSF:JAVADOC:656 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:707; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetContainerClientIdNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws EETest.Fault { - super.uiComponentGetContainerClientIdNPETest(); - } - - /** - * @testName: uiComponentGetContainerClientIdTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws EETest.Fault { - super.uiComponentGetContainerClientIdTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:502 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:505; JSF:JAVADOC:601; - * JSF:JAVADOC:659 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:503 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:516 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:515 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:513 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:517; JSF:JAVADOC:466; - * JSF:JAVADOC:660 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:524 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:518;JSF:JAVADOC:558; - * JSF:JAVADOC:658 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:522;JSF:JAVADOC:561 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:523;JSF:JAVADOC:563 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataPositiveInvokeOnComponentTest"); - invoke(); - } - - /** - * @testName: uiComponentInvokeOnComponentNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:676 - * @test_Strategy: Validate that InvokeOnComponent() throws a - * NullPointerException if any of its parameters are null. - */ - public void uiComponentInvokeOnComponentNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataNPEInvokeOnComponentTest"); - invoke(); - } - - /** - * @testName: uiComponentInvokeOnComponentFETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:675 - * @test_Strategy: Validate that InvokeOnComponent() throws FacesException. - */ - public void uiComponentInvokeOnComponentFETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataFEInvokeOnComponentTest"); - invoke(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:537; JSF:JAVADOC:562 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627; JSF:JAVADOC:682 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:552; JSF:JAVADOC:629; - * JSF:JAVADOC:684 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:569; JSF:JAVADOC:709 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------------ UIData - - /** - * @testName: uiDataGetSetFirstTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:661; JSF:JAVADOC:688 - * @test_Strategy: Verify that getFirst() returns 0 on a newly created - * component. Additionally verify that getFirst() will return - * the value as set by setFirst(). - */ - public void uiDataGetSetFirstTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetFirstTest"); - invoke(); - } - - /** - * @testName: uiDataGetSetFooterTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:662; JSF:JAVADOC:690 - * @test_Strategy: Validate that we can set/get Footer Facet. - */ - public void uiDataGetSetFooterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetFooterTest"); - invoke(); - } - - /** - * @testName: uiDataGetSetHeaderTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:663; JSF:JAVADOC:693; - * JSF:JAVADOC:692 - * @test_Strategy: Validate that we can set/get Header Facet. - */ - public void uiDataGetSetHeaderTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetHeaderTest"); - invoke(); - } - - /** - * @testName: uiDataSetFooterNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:691 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiDataSetFooterNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataSetFooterNPETest"); - invoke(); - } - - /** - * @testName: uiDataSetFirstIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:689 - * @test_Strategy: Verify setFirst() throws an IAE if the integer argument - * provided is negative. - */ - public void uiDataSetFirstIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataSetFirstIAETest"); - invoke(); - } - - /** - * @testName: uiDataIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:677 - * @test_Strategy: Verify the following: - No backing data; isRowAvailable() - * returns false - Current row index is out of range; - * isRowAvailable() returns false - Current row index points - * to valid row, isRowAvailable() returns true - */ - public void uiDataIsRowAvailableTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataIsRowAvailableTest"); - invoke(); - } - - /** - * @testName: uiDataBroadcastNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:481; JSF:JAVADOC:580; - * JSF:JAVADOC:653 - * @testStrategy: Verify that if the FacesContext is passed in a - * NullPointerException is thrown. - */ - public void uiDataBroadcastNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataBroadcastNPETest"); - invoke(); - } - - /** - * @testName: uiDataGetRowCountTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:664 - * @test_Strategy: Verify the following: - No backing data; getRowCount() - * returns -1 - Valid backing data, getRowCount() returns the - * value as returned from DataModel.getRowCount(); - */ - public void uiDataGetRowCountTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetRowCountTest"); - invoke(); - } - - /** - * @testName: uiDataGetRowDataTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:666 - * @test_Strategy: Verify the following: - getRowData() returns the expected - * object when specifying various row index values - */ - public void uiDataGetRowDataTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetRowDataTest"); - invoke(); - } - - /** - * @testName: uiDataGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:668 - * @test_Strategy: Verify the following: - getRowData() throws IAE if the no - * data is available at the specified index. In this case, the - * index is out of range - */ - public void uiDataGetRowDataIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetRowDataIAETest"); - invoke(); - } - - /** - * @testName: uiDataGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:694; JSF:JAVADOC:695 - * @test_Strategy: Verify the following: - getRowIndex returns -1 when called - * against a newly created component. - if the var property - * has been specified, and setRowIndex() is set to a valid - * index, ensure the request scoped attribute name as - * specified by var has the value as returned by - * getDataValue(); - getRowIndex() returns the value as set by - * setRowIndex() - */ - public void uiDataGetSetRowIndexTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetRowIndexTest"); - invoke(); - } - - /** - * @testName: uiDataSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:696 - * @test_Strategy: Verify the following: - setRowIndex() throws IAE if the - * integer value specified is less than -1 - */ - public void uiDataSetRowIndexIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataSetRowIndexIAETest"); - invoke(); - } - - /** - * @testName: uiDataGetSetRowsTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:697; JSF:JAVADOC:671; - * JSF:JAVADOC:698 - * @test_Strategy: Verify the following: - getRows() returns the value as - * specified by setRows() - */ - public void uiDataGetSetRowsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetRowsTest"); - invoke(); - } - - /** - * @testName: uiDataSetRowsIAETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:689 - * @test_Strategy: Verify the following: - setRows() throws IAE if the integer - * value specified is negative - */ - public void uiDataSetRowsIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataSetRowsIAETest"); - invoke(); - } - - /** - * @testName: uiDataGetSetVarTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:673; JSF:JAVADOC:706 - * @test_Strategy: Verify the following: - getVar() returns the value as - * specified by setVar() - */ - public void uiDataGetSetVarTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetVarTest"); - invoke(); - } - - /** - * @testName: uiDataQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:561; JSF:JAVADOC:687 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiDataQueueEventNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataQueueEventNPETest"); - invoke(); - } - - /** - * @testName: uiDataQueueEventISETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:561; JSF:JAVADOC:686; - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiDataQueueEventISETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataQueueEventISETest"); - invoke(); - } - - /** - * @testName: uiDataGetSetValueTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:661; JSF:JAVADOC:672; - * JSF:JAVADOC:688; JSF:JAVADOC:699 - * @test_Strategy: Validate the value set vis setValue() is returned by - * getValue(). - */ - public void uiDataGetSetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataGetSetValueTest"); - invoke(); - } - - /** - * @testName: uiDataProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621; JSF:JAVADOC:680 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiDataProcessDecodesNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataProcessDecodesNPETest"); - invoke(); - } - - /** - * @testName: uiDataSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621; JSF:JAVADOC:705 - * @test_Strategy: Validate a NullPointerException is thrown when String arg - * is null. - */ - public void uiDataSetValueExpressionNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiDataSetValueExpressionNPETest"); - invoke(); - } - - /** - * @testName: uiDatatVisitTreeNPETest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:709 - * @test_Strategy: Validate that a NullPointerException is thrown when any arg - * is null. - */ - public void uiDatatVisitTreeNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDatatVisitTreeNPETest"); - invoke(); - } - - /** - * @testName: uiDataCreateUniqueIdTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:654 - * @test_Strategy: Validate that we are able to supplu a 'seed' to be included - * into the generated Unique ID. - */ - public void uiDataCreateUniqueIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataCreateUniqueIdTest"); - invoke(); - } - - /** - * @testName: uiDataIsSetRowStatePreservedTest - * @assertion_ids: JSF:JAVADOC:707; JSF:JAVADOC:2550; JSF:JAVADOC:2554 - * @test_Strategy: Validate that we are able to set and that we get returned - * the same value. - */ - public void uiDataIsSetRowStatePreservedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiDataIsSetRowStatePreservedTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/build.xml deleted file mode 100644 index 683b0bd207..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.war.sun-web.xml deleted file mode 100644 index 07d237ce8b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_data_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.xml deleted file mode 100644 index ac7902cad9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uidata/jsf_comp_data_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_data - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uidata.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/TestServlet.java deleted file mode 100644 index 3abd442597..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/TestServlet.java +++ /dev/null @@ -1,1121 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiform; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIForm; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.Renderer; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Form"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - UIForm form = new UIForm(); - form.setSubmitted(true); - return form; - } - - protected UIComponent createForm(boolean submitted) { - UIForm form = new UIForm(); - form.setSubmitted(submitted); - return form; - } - - // ---------------------------------------------------------------- Test - // Methods - - // UIForm.{is,set}Submitted() - public void uiFormIsSetSubmittedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIForm form = new UIForm(); - - // default return value for isSubmitted() is false - if (form.isSubmitted()) { - out.println(JSFTestUtil.FAIL + " Expected the default return value" - + " of UIForm.isSubmitted() to be false."); - return; - } - - form.setSubmitted(true); - if (!form.isSubmitted()) { - out.println(JSFTestUtil.FAIL + " Expected UIForm.isSubmitted to return" - + " true after having explicitly set it as such via" - + " UIForm.setSubmitted()."); - return; - } - - form.setSubmitted(false); - if (form.isSubmitted()) { - out.println(JSFTestUtil.FAIL + " Expected UIForm.isSubmitted to return" - + " false after having explicitly set it as such via" - + " UIForm.setSubmitted()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // StateHolder.saveState(), StateHolder.restoreState() - // Override parent test - ensure that setSubmitted is set to false - // what save state is called. - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - - UIForm preSave = (UIForm) createComponent(); - preSave.setSubmitted(true); - UIComponent facet1 = new UIOutput(); - facet1.setId("facet1"); - preSave.getFacets().put("facet1 key", facet1); - UIComponent facet2 = new UIOutput(); - facet2.setId("facet2"); - preSave.getFacets().put("facet2 key", facet2); - populateComponent(preSave); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - // 1.1 saveState() no longer resets submitted property. - if (!preSave.isSubmitted()) { - out.println(JSFTestUtil.FAIL + " Expected the return value of " - + "UIForm.isSubmitted() to return true after having" - + " called saveState()."); - return; - } - - if (state == null) { - out.println(JSFTestUtil.FAIL + " saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + " The Object returned by saveState() was" - + " not an instance of java.io.Serializable."); - return; - } - - UIComponent postSave = createForm(false); - postSave.restoreState(getFacesContext(), state); - - // information pertaining to the submit state of the form must not - // have been serialized, therefore, isSubmitted() will return false - if (((UIForm) postSave).isSubmitted()) { - out.println(JSFTestUtil.FAIL + " Expected the return value of " - + "UIForm.isSubmitted() to return false after having" - + " called restoreState()."); - return; - } - - StringBuffer buf = new StringBuffer(128); - - checkComponents(preSave.findComponent("componentId"), - postSave.findComponent("componentId"), buf); - - if (buf.length() > 0) { - out.println(buf.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // Ensure that the Form is decoded first, then call into super - // test class for verification of standard behavior - public void uiComponentProcessDecodesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - - // build a component tree. - UIComponent comp = createComponent(); - Renderer origRenderer = renderKit.getRenderer(comp.getFamily(), - UIForm.COMPONENT_TYPE); - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, renderer); - renderKit.addRenderer("TCK", "TCK", renderer); - comp.setId("form"); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(false); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processDecodes(getFacesContext()); - - String result = renderer.getTrace(); - - if (!result.startsWith("/DCform")) { - out.println(JSFTestUtil.FAIL + " Expected Form component to be decoded" - + " before children components."); - out.println("Expected renderer trace to begin with '/DCform'"); - out.println("Actual trace: " + result); - return; - } - - comp = createComponent(); - comp.setRendered(true); - TCKInputComponent cchild1 = new TCKInputComponent("child1"); - TCKComponent cchild2 = new TCKComponent("child2"); - cchild2.setRendererType("TCK"); - cchild2.setRendered(false); - cchild1.setRendered(true); - TCKComponent cchild1_1 = new TCKComponent("child1_1"); - cchild1_1.setRendered(true); - TCKComponent ffacet1 = new TCKComponent("facet1"); - ffacet1.setRendered(true); - TCKInputComponent ffacet1_1 = new TCKInputComponent("facet1_1"); - ffacet1_1.setRendered(true); - - cchild1_1.getFacets().put("facet1_1", ffacet1_1); - cchild1.getFacets().put("facet1", ffacet1); - cchild1.getChildren().add(cchild1_1); - comp.getChildren().add(cchild1); - comp.getChildren().add(cchild2); - - comp.processDecodes(getFacesContext()); - - // Child2 shoudln't have D in the trace as it's parent - // renders children but isn't rendered itself. - if (!"/PDchild1/Dchild1".equals(cchild1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + cchild1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1/Dchild1_1".equals(cchild1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + cchild1_1.getTrace()); - out.println("Expected trace: /PDchild1_1/Dchild1_1"); - return; - } - if (!"/PDfacet1/Dfacet1".equals(ffacet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + ffacet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"/PDfacet1_1/Dfacet1_1".equals(ffacet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + ffacet1_1.getTrace()); - out.println("Expected trace: /PDfacet1_1/Dfacet1_1"); - return; - } - - if (!"/PDchild2".equals(cchild2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + ffacet1_1.getTrace()); - out.println("Expected trace: /PDchild2"); - return; - } - - out.println(JSFTestUtil.PASS); - - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, - origRenderer); - - // super.uiComponentProcessDecodesTest(request, response); - } - - // UIComponent.processDecodes() -- decode() not called if component is - // not rendered - public void uiComponentProcessDecodesNotRenderedTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - - // build a component tree. - UIComponent comp = createComponent(); - Renderer origRenderer = renderKit.getRenderer(comp.getFamily(), - UIForm.COMPONENT_TYPE); - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, renderer); - comp.setRendered(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(false); - TCKInputComponent facet1 = new TCKInputComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(false); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - - comp.processDecodes(getFacesContext()); - - // child1_1 and facet1_1 have their rendered properties set to false. - // This means that child1 will have processDecodes called against it, - // but it will not call decode() on facet1_1. - if (!"/PDchild1/Dchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PDchild1/Dchild1"); - return; - } - - if (!"/PDchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PDchild1_1."); - return; - } - if (!"/PDfacet1/Dfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED."); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PDfacet1/Dfacet1"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace to be generated."); - return; - } - - out.println(JSFTestUtil.PASS); - - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, - origRenderer); - } - - // UIComponent.processDecodes() - if RuntimeException thrown by decode() - // then FacesContext.renderResponse must be called - public void uiComponentProcessDecodesRenderResponseTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - - UIComponent comp = createComponent(); - Renderer origRenderer = renderKit.getRenderer(comp.getFamily(), - UIForm.COMPONENT_TYPE); - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, renderer); - TCKInputComponent tckInput = new TCKInputComponent("in1", true); - comp.getChildren().add(tckInput); - - try { - comp.processDecodes(getFacesContext()); - } catch (Exception re) { - if (!"DecodeRTE".equals(re.getMessage())) { - out.println(JSFTestUtil.FAIL + " RuntimeException not rethrown up to" - + " the calling component."); - out.println("Exception received: " + re.toString()); - out.println("Exception message: " + re.getMessage()); - return; - } - } - - if (!getFacesContext().getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " RuntimeException thrown during decode()" - + " but FacesContext.renderResponse() was not called."); - return; - } - - out.println(JSFTestUtil.PASS); - - renderKit.addRenderer(comp.getFamily(), UIForm.COMPONENT_TYPE, - origRenderer); - } - - // UIForm.processUpdates() only performed on children if isSubmitted() - // returns true - public void uiFormProcessUpdatesIsSubmittedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIForm comp = (UIForm) createComponent(); - comp.setId("form"); - comp.setRendered(true); - comp.setSubmitted(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(true); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processUpdates(getFacesContext()); - - if (!"/PUchild1/UMchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PUchild1/UMchild1"); - return; - } - - if (!"/PUchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child2.getTrace()); - out.println("Expected trace: /PUchild2"); - return; - } - - if (!"/PUchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PUchild1"); - return; - } - - if (!"/PUfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PUfacet1"); - return; - } - - if (!"/PUfacet1_1/UMfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PUfacet1_1/UMfacet1_1"); - return; - } - - // rebuild the tree and set the submitted property of the form - // to false. Child components should not be touched. - child1.resetTraceLog(); - child2.resetTraceLog(); - child1_1.resetTraceLog(); - facet1.resetTraceLog(); - facet1_1.resetTraceLog(); - - comp.setSubmitted(false); - - comp.processUpdates(getFacesContext()); - - if (!"".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child2.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIForm.processValidators() only performed on children if isSubmitted() - // returns true - public void uiFormProcessValidatorsIsSubmittedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Setup a specialized RenderKit - RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit renderKit = renderKitFactory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - TCKRenderer renderer = new TCKRenderer(); - renderer.setRendersChildren(true); - renderKit.addRenderer("TCK", "TCK", renderer); - - // build a component tree. - UIForm comp = (UIForm) createComponent(); - comp.setId("form"); - comp.setRendered(true); - comp.setSubmitted(true); - TCKInputComponent child1 = new TCKInputComponent("child1"); - TCKComponent child2 = new TCKComponent("child2"); - child2.setRendererType("TCK"); - child2.setRendered(true); - child1.setRendered(true); - TCKComponent child1_1 = new TCKComponent("child1_1"); - child1_1.setRendered(true); - TCKComponent facet1 = new TCKComponent("facet1"); - facet1.setRendered(true); - TCKInputComponent facet1_1 = new TCKInputComponent("facet1_1"); - facet1_1.setRendered(true); - - child1_1.getFacets().put("facet1_1", facet1_1); - child1.getFacets().put("facet1", facet1); - child1.getChildren().add(child1_1); - comp.getChildren().add(child1); - comp.getChildren().add(child2); - - comp.processValidators(getFacesContext()); - - if (!"/PVchild1/vchild1".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected trace: /PVchild1/Vchild1"); - return; - } - - if (!"/PVchild2".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child2.getTrace()); - out.println("Expected trace: /PVchild2"); - return; - } - - if (!"/PVchild1_1".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected trace: /PVchild1"); - return; - } - - if (!"/PVfacet1".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected trace: /PVfacet1"); - return; - } - - if (!"/PVfacet1_1/Vfacet1_1".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected trace: /PVfacet1_1/Vfacet1_1"); - return; - } - - // rebuild the tree and set the submitted property of the form - // to false. Child componentns should not be touched. - child1.resetTraceLog(); - child2.resetTraceLog(); - child1_1.resetTraceLog(); - facet1.resetTraceLog(); - facet1_1.resetTraceLog(); - - comp.setSubmitted(false); - - comp.processValidators(getFacesContext()); - - if (!"".equals(child1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(child2.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child2.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(child1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + child1_1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(facet1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1.getTrace()); - out.println("Expected no trace"); - return; - } - - if (!"".equals(facet1_1.getTrace())) { - out.println("Test FAILED"); - out.println("Component trace: " + facet1_1.getTrace()); - out.println("Expected no trace"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIForm.createUniqueId() - public void uiFormCreateUniqueIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - String seed = "tckId"; - UIForm form = (UIForm) createComponent(); - String uniqueId = form.createUniqueId(context, seed); - - if (!uniqueId.contains(seed)) { - out.println(JSFTestUtil.FAIL + "Test Value not found in ID!" - + JSFTestUtil.NL + "Expected Component ID to contain: " + seed - + JSFTestUtil.NL + "Received: " + uniqueId); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // End uiFormCreateUniqueIdTest - - // UIForm.{is,set}PrependId() - public void uiFormIsSetPrependIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIForm form = (UIForm) createComponent(); - - form.setPrependId(false); - boolean result = form.isPrependId(); - if (result) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from UIForm.isPrependId() !" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + result); - - } else { - out.println(JSFTestUtil.PASS); - } - }// end uiFormIsSetPrependIdTest - - // ------------------------------------------------------------- Private - // Classes - - private static class TCKRenderer extends Renderer { - - private static StringBuffer traceLog; - - private boolean rendersChildren = false; - - private Renderer wrapped; - - /** - *

- * Creates a new TCKRenderer instance that calls into the - * {@link Renderer} parent class. - *

- */ - public TCKRenderer() { - traceLog = new StringBuffer(); - } - - /** - *

- * Creates a new TCKRenderer that wraps the provided - * {@link Renderer}. All calls will be delegated to the wrapped instance. - *

- * - * @param wrapped - * the {@link Renderer} to delegate calls to - */ - public TCKRenderer(Renderer wrapped) { - this(); - this.wrapped = wrapped; - } - - /** - *

- * Render the ending of the current state of the specified - * {@link UIComponent}, following the rules described for - * encodeBegin() to acquire the appropriate value to be - * rendered. - *

- * - * @param context - * {@link FacesContext} for the response we are creating - * @param component - * {@link UIComponent} to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is - * null - */ - public void encodeEnd(FacesContext context, UIComponent component) - throws IOException { - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EE"); - if (wrapped != null) { - wrapped.encodeEnd(context, component); - } else { - super.encodeEnd(context, component); - } - } - - /** - *

- * Render the child components of this {@link UIComponent}, following the - * rules described for encodeBegin() to acquire the appropriate - * value to be rendered. This method will only be called if the - * rendersChildren property of this component is - * true. - *

- * - * @param context - * {@link FacesContext} for the response we are creating - * @param component - * {@link UIComponent} whose children are to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is - * null - */ - public void encodeChildren(FacesContext context, UIComponent component) - throws IOException { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EC"); - if (wrapped != null) { - wrapped.encodeChildren(context, component); - } else { - super.encodeChildren(context, component); - } - } - - /** - *

- * Convert the component generated client id to a form suitable for - * transmission to the client. - *

- *

- *

- * The default implementation returns the argument clientId - * unchanged. - *

- * - * @param context - * {@link FacesContext} for the current request - * @param clientId - * the client identifier to be converted to client a specific - * format. - * @throws NullPointerException - * if context or clientId is - * null - */ - public String convertClientId(FacesContext context, String clientId) { - if (context == null || clientId == null) { - throw new NullPointerException(); - } - if (wrapped != null) { - return wrapped.convertClientId(context, clientId); - } else { - return super.convertClientId(context, clientId); - } - } - - /** - *

- * Return a flag indicating whether this renderer is responsible for - * rendering the children the component it is asked to render. The default - * implementation returns false. - *

- */ - - public boolean getRendersChildren() { - if (wrapped != null) { - return wrapped.getRendersChildren(); - } - return rendersChildren; - } - - /** - *

- * Decode the current state of the specified {@link UIComponent} from the - * request contained in the specified {@link FacesContext}, and attempt to - * convert this state information into an object of the type required for - * this component (optionally using the registered {@link Converter} for - * this component, if there is one). - *

- *

- *

- * If conversion is successful: - *

- *
    - *
  • Save the new local value of this component by calling - * setValue() and passing the new value.
  • - *
  • Set the value property of this component to - * true.
  • - *
- *

- *

- * If conversion is not successful: - *

- *
    - *
  • Save the state information (inside the component) in such a way that - * encoding can reproduce the previous input (even though it was - * syntactically or semantically incorrect).
  • - *
  • Add an appropriate conversion failure error message by calling - * addMessage() on the specified {@link FacesContext}.
  • - *
  • Set the valid property of this component to - * false.
  • - *
- *

- *

- * During decoding, events may be enqueued for later processing (by event - * listeners that have registered an interest), by calling - * queueEvent() on the associated {@link UIComponent}. - *

- * - * @param context - * {@link FacesContext} for the request we are processing - * @param component - * {@link UIComponent} to be decoded. - * @throws NullPointerException - * if context or component is - * null - */ - public void decode(FacesContext context, UIComponent component) { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/DC" + component.getId()); - if (wrapped != null) { - wrapped.decode(context, component); - } else { - super.decode(context, component); - } - } - - /** - *

- * Render the beginning specified {@link UIComponent} to the output stream - * or writer associated with the response we are creating. If the conversion - * attempted in a previous call to decode for this component - * failed, the state information saved during execution of - * decode() should be utilized to reproduce the incorrect - * input. If the conversion was successful, or if there was no previous call - * to decode(), the value to be displayed should be acquired by - * calling component.currentValue(), and rendering the value as - * appropriate. - *

- * - * @param context - * {@link FacesContext} for the request we are processing - * @param component - * {@link UIComponent} to be rendered - * @throws IOException - * if an input/output error occurs while rendering - * @throws NullPointerException - * if context or component is null - */ - public void encodeBegin(FacesContext context, UIComponent component) - throws IOException { - - if (context == null || component == null) { - throw new NullPointerException(); - } - traceLog.append("/EB"); - if (wrapped != null) { - wrapped.encodeBegin(context, component); - } else { - super.encodeBegin(context, component); - } - } - - /** - *

- * Returns the content of the current trace log. - *

- */ - public String getTrace() { - return traceLog.toString(); - } - - /** - *

- * Sets the return value of {@link #getRendersChildren()}. - *

- */ - public void setRendersChildren(boolean rendersChildren) { - this.rendersChildren = rendersChildren; - } - } - - private static class TCKComponent extends UIComponentBase { - - private StringBuffer traceLog; - - private String id; - - public String getFamily() { - return "TCK"; - } - - public TCKComponent(String id) { - super(); - traceLog = new StringBuffer(); - this.id = id; - this.setId(id); - } - - public void processDecodes(FacesContext context) { - trace("/PD" + id); - super.processDecodes(context); - } - - public void processRestoreState(FacesContext context, Object state) { - trace("/PRS" + id); - super.processRestoreState(context, state); - } - - public Object processSaveState(FacesContext context) { - trace("/PSS" + id); - return super.processSaveState(context); - } - - public void processUpdates(FacesContext context) { - trace("/PU" + id); - super.processUpdates(context); - } - - public void processValidators(FacesContext context) { - trace("/PV" + id); - super.processValidators(context); - } - - public Object saveState(FacesContext context) { - trace("/SS" + id); - return super.saveState(context); - } - - public void restoreState(FacesContext context, Object state) { - trace("/RS" + id); - super.restoreState(context, state); - } - - public void decode(FacesContext context) { - trace("/D" + id); - super.decode(context); - } - - public String getTrace() { - return traceLog.toString(); - } - - public void resetTraceLog() { - traceLog = new StringBuffer(); - } - - private void trace(String message) { - traceLog.append(message); - } - } - - private static class TCKInputComponent extends UIInput { - - private StringBuffer traceLog; - - private String id; - - private boolean throwRuntime; - - private boolean isInvalid; - - public TCKInputComponent(String id) { - super(); - traceLog = new StringBuffer(); - this.id = id; - this.setId(id); - } - - public TCKInputComponent(String id, boolean throwRuntime) { - this(id); - this.throwRuntime = throwRuntime; - } - - public void setInvalidOnValidate(boolean isInvalid) { - this.isInvalid = isInvalid; - } - - public void processDecodes(FacesContext context) { - trace("/PD" + id); - super.processDecodes(context); - } - - public void processUpdates(FacesContext context) { - trace("/PU" + id); - super.processUpdates(context); - } - - public void updateModel(FacesContext context) { - trace("/UM" + id); - if (throwRuntime) { - throw new RuntimeException("UpdateModelRTE"); - } - super.updateModel(context); - } - - public void processValidators(FacesContext context) { - trace("/PV" + id); - super.processValidators(context); - } - - public void validate(FacesContext context) { - trace("/V" + id); - if (throwRuntime) { - throw new RuntimeException("ValidateRTE"); - } - super.validate(context); - if (isInvalid) { - this.setValid(false); - } - } - - public void decode(FacesContext context) { - trace("/D" + id); - if (throwRuntime) { - throw new RuntimeException("DecodeRTE"); - } - super.decode(context); - } - - public String getTrace() { - return traceLog.toString(); - } - - public void resetTraceLog() { - traceLog = new StringBuffer(); - } - - private void trace(String message) { - traceLog.append(message); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/URLClient.java deleted file mode 100644 index 4153d4986d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/URLClient.java +++ /dev/null @@ -1,1171 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiform; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_form_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:723; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetContainerClientIdNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws EETest.Fault { - super.uiComponentGetContainerClientIdNPETest(); - } - - /** - * @testName: uiComponentGetContainerClientIdTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws EETest.Fault { - super.uiComponentGetContainerClientIdTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:502 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:503 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:516 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:515 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:513 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:517; JSF:JAVADOC:712 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:524 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:518;JSF:JAVADOC:558 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:522;JSF:JAVADOC:561 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:561; JSF:JAVADOC:632; - * JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:523;JSF:JAVADOC:563 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:537; JSF:JAVADOC:562 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:723; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes is called: # - * Ensure the UIForm's decode() method is called prior to - * processing its children # Call the processDecodes() method - * of all facets and children of this UIComponent. # Call the - * decode() method of this component, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:542; JSF:JAVADOC:621; - * JSF:JAVADOC:716 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:552; JSF:JAVADOC:629; - * JSF:JAVADOC:720 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. Enforce that extra requirement that - * when saveState is called, the submitted property is set to - * false. Finally verify that no state about the forms - * submission state (i.e. the submitted property is true), the - * value isn't saved in the state by restoring the state - * object and ensuring that return value of isSubmitted() is - * false. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------------------------- - // UIForm - - /** - * @testName: uiFormIsSetSubmittedTest - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:714; JSF:JAVADOC:722 - * @test_Strategy: Verify the following: - The default return value of - * isSubmitted() is false (on a newly created component) - - * isSubmitted() returns the value as set by setSubmitted() - */ - public void uiFormIsSetSubmittedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiFormIsSetSubmittedTest"); - invoke(); - } - - /* - * @testName: uiFormProcessUpdatesIsSubmittedTest - * - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:714; JSF:JAVADOC:717 - * - * @test_Strategy: Verify that the children of the UIForm component will be - * processed if the UIForm's submitted is true; ensure the inverse occurs when - * the submitted property is false. - */ - public void uiFormProcessUpdatesIsSubmittedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiFormProcessUpdatesIsSubmittedTest"); - invoke(); - } - - /* - * @testName: uiFormProcessValidationsIsSubmittedTest - * - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:714; JSF:JAVADOC:719 - * - * @test_Strategy: Verify that the children of the UIForm component will be - * processed if the UIForm's submitted is true; ensure the inverse occurs when - * the submitted property is false. - */ - public void uiFormProcessValidationsIsSubmittedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiFormProcessUpdatesIsSubmittedTest"); - invoke(); - } - - /* - * @testName: uiFormCreateUniqueIdTest - * - * @assertion_ids: JSF:JAVADOC:723; JSF:JAVADOC:710 - * - * @test_Strategy: Validate that we receive a uniqueId with a specific 'seed' - * value contained within. - */ - public void uiFormCreateUniqueIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiFormCreateUniqueIdTest"); - invoke(); - } - - /* - * @testName: uiFormIsSetPrependIdTest - * - * @assertion_ids: JSF:JAVADOC:713; JSF:JAVADOC:721 - * - * @test_Strategy: Validate that we are able to set and get the Prepend flag. - * - * @since 2.2 - */ - public void uiFormIsSetPrependIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiFormIsSetPrependIdTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/build.xml deleted file mode 100644 index f6bff50888..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.war.sun-web.xml deleted file mode 100644 index ac9fc57932..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_form_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.xml deleted file mode 100644 index 6219ff8a56..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiform/jsf_comp_form_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_form - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiform.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/TestServlet.java deleted file mode 100644 index abd550ccaf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/TestServlet.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uigraphic; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BufferedResponseWrapper; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIGraphic; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Image"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIGraphic(); - } - - // ------------------------------------------- Test Methods ---- - - @Override - public void uiComponentGetSetValueExpressionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - BufferedResponseWrapper wrapper = new BufferedResponseWrapper(response); - - super.uiComponentGetSetValueExpressionTest(request, wrapper); - String result = wrapper.getBufferedWriter().toString(); - - PrintWriter out = response.getWriter(); - - if (result.indexOf(JSFTestUtil.PASS) == -1) { - out.println(result); - return; - } - - // default processing of get,setValueExpression is ok, now validate - // processing specific to UIGraphic - request.setAttribute("tckUrl", "http://java.sun.com"); - - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{requestScope.tckUrl}", - java.lang.String.class); - ValueExpression literalExpr = factory.createValueExpression( - getFacesContext().getELContext(), "http://java.net", - java.lang.String.class); - - UIGraphic graphic = (UIGraphic) createComponent(); - - graphic.setValueExpression("url", expression); - - if (!"http://java.sun.com".equals(graphic.getValue())) { - out.println(JSFTestUtil.FAIL + " setValueExpression() with a key of 'url'" - + " didn't set the ValueExpression provided as the value" - + " of the component."); - out.println("Expected: http://java.net"); - out.println("Received: " + graphic.getValue()); - return; - } - - // ensure there is no special processing if the ValueExpression - // happens to be literal - graphic.setValueExpression("url", literalExpr); - if (!"http://java.net".equals(graphic.getValue())) { - out.println(JSFTestUtil.FAIL + " setValueExpression() with a key of 'url'" - + " didn't set the literal ValueExpression provided as the " - + "value of the component."); - out.println("Expected: " + expression); - out.println("Received: " + graphic.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - public void uiGraphicSetGetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIGraphic command = (UIGraphic) createComponent(); - - command.setValue("value"); - - if (!"value".equals(command.getValue())) { - out.println(JSFTestUtil.FAIL + " UIGraphic.getValue() didn't return" - + " the value as set by UIGraphic.setValue()."); - out.println("Expected: value"); - out.println("Received: " + command.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiGraphicGetSetURLTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIGraphic graphic = (UIGraphic) createComponent(); - - String url = "http://java.sun.com"; - - graphic.setUrl(url); - String result = graphic.getUrl(); - if (!url.equals(result)) { - out.println(JSFTestUtil.FAIL + " Expected UIGraphic.getURL() to return" - + " the value as set by UIGraphic.setURL()."); - out.println("Expected: " + url); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/URLClient.java deleted file mode 100644 index 72d9c93a7b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/URLClient.java +++ /dev/null @@ -1,1092 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uigraphic; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_graphic_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:488 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:491 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:491 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:494 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:494 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:738; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:502 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:503 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:516 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:515 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:513 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:517; JSF:JAVADOC:725 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:524 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:518;JSF:JAVADOC:558 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:522;JSF:JAVADOC:561 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:561; JSF:JAVADOC:632; - * JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:523;JSF:JAVADOC:563 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:738; JJSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:537; JSF:JAVADOC:562 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:738; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:736; JSF:JAVADOC:730 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:529; JSF:JAVADOC:731; - * JSF:JAVADOC:737 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------------- - // UIGraphic - /** - * @testName: uiGraphicSetGetValueTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:727; JSF:JAVADOC:733 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiGraphicSetGetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiGraphicSetGetValueTest"); - invoke(); - } - - /** - * @testName: uiGraphicGetSetURLTest - * @assertion_ids: JSF:JAVADOC:738; JSF:JAVADOC:726; JSF:JAVADOC:732 - * @test_Strategy: Verify {get,set}URL() - if a URL value is set, the same - * value is returned. - */ - public void uiGraphicGetSetURLTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiGraphicGetSetURLTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/build.xml deleted file mode 100644 index e4cdf60cbe..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.war.sun-web.xml deleted file mode 100644 index eeaced5cca..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_graphic_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.xml deleted file mode 100644 index 130ee8b09f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uigraphic/jsf_comp_graphic_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_graphic - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uigraphic.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/TestServlet.java deleted file mode 100644 index 9ea795c6c8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/TestServlet.java +++ /dev/null @@ -1,918 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Iterator; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKConverter; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValidator; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ValueExpression; -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.faces.convert.ConverterException; -import jakarta.el.MethodExpression; -import jakarta.el.ELContext; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.Renderer; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.faces.validator.MethodExpressionValidator; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Text"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIInput(); - } - - // --------------------------------------------------------- Private Methods - - // Check that the number of queued messages equals the expected count - protected int checkMessages() { - - int n = 0; - Iterator messages = getFacesContext().getMessages(); - while (messages.hasNext()) { - FacesMessage message = (FacesMessage) messages.next(); - n++; - System.err.println(message.getSummary()); - } - return n; - } - - // ------------------------------------------- Test Methods ---- - - // ----------------------------------------------------------------- UIInput - - // Test event queuing and broadcasting (any phase listeners) - public void uiInputBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - UIViewRoot root = facesContext.getApplication().getViewHandler() - .createView(facesContext, "/root"); - root.getChildren().add(input); - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - - // Register three listeners - input.addValueChangeListener(new TCKValueChangeListener("AP0")); - input.addValueChangeListener(new TCKValueChangeListener("AP1")); - input.addValueChangeListener(new TCKValueChangeListener("AP2")); - - // Fire events and evaluate results - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - String trace = TCKValueChangeListener.trace(); - String expectedTrace = "/AP0@PROCESS_VALIDATIONS/AP1@PROCESS_VALIDATIONS/AP2@PROCESS_VALIDATIONS"; - if (!expectedTrace.equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected trace: " + expectedTrace); - out.println("Trace received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputBroadcastValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(input); - - TCKValueChangeListener listener = new TCKValueChangeListener("VCLR"); - - ELContext context2 = facesContext.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(context2, - "#{requestScope.reqVCL.processValueChange}", null, new Class[] { ValueChangeEvent.class }); - - request.setAttribute("reqVCL", listener); - MethodExpressionValueChangeListener lnr = new MethodExpressionValueChangeListener(binding); - input.addValueChangeListener(lnr); - - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - - String trace = TCKValueChangeListener.trace(); - - if (trace.length() == 0) { - out.println(JSFTestUtil.FAIL + " The ValueChangeListener as referenced" - + " by ValueChangeListenerRef 'requestScope.reqVCL.processValueChange'" - + " was not invoked."); - return; - } - - if (!"/VCLR@PROCESS_VALIDATIONS".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected Listener trace."); - out.println("Expected: /VCLR@PROCESS_VALIDATIONS"); - out.println("Received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputUpdateModelNoActionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setValue(Boolean.FALSE); - TestBean testBean = new TestBean(); - testBean.setBoolProp(true); - - FacesContext context = getFacesContext(); - - request.setAttribute("TestBean", testBean); - - // if valid property is false, then no action is taken - input.setValid(false); - - ELContext context2 = context.getELContext(); - input.setValueExpression("attr", context.getApplication().getExpressionFactory().createValueExpression(context2, - "#{requestScope.TestBean.boolProp}", ELContext.class )); - - input.updateModel(context); - - int messageCount = checkMessages(); - if (messageCount != 0) { - out.println(JSFTestUtil.FAIL + " Didn't expect to find any messages " - + "in the FacesContext."); - out.println("Message count: " + messageCount); - } - - if (!testBean.getBoolProp()) { - out.println(JSFTestUtil.FAIL + " UIInput instance's valid property was " - + "false. The updateModel() method should not have updated the value" - + " referenced by the set ValueExpression."); - return; - } - - // If there is no value binding, nothing should occur - input = (UIInput) createComponent(); - input.setValue(Boolean.FALSE); - input.setValid(true); - - input.updateModel(context); - - messageCount = checkMessages(); - if (messageCount != 0) { - out.println(JSFTestUtil.FAIL + " Didn't expect to find any messages " - + "in the FacesContext."); - out.println("Message count: " + messageCount); - } - - if (!testBean.getBoolProp()) { - out.println(JSFTestUtil.FAIL + " UIInput instance has no ValueExpression. " - + "The updateModel() method should not have performed any action."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputUpdateModelSucceedsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - TestBean testBean = new TestBean(); - testBean.setBoolProp(false); - request.setAttribute("TestBean", testBean); - - FacesContext context = getFacesContext(); - - input.setValueExpression("value", this.getVExpression(context, - "#{requestScope.TestBean.boolProp}", boolean.class)); - - input.setValue(Boolean.TRUE); - - input.updateModel(context); - - int messageCount = checkMessages(); - if (messageCount != 0) { - out.println(JSFTestUtil.FAIL + " Didn't expect to find any messages " - + "in the FacesContext."); - out.println("Message count: " + messageCount); - return; - } - - if (testBean.getBoolProp() != true) { - out.println( - JSFTestUtil.FAIL + " updateModel() call failed. Boolean property" - + " of TestBean instance was not updated."); - return; - } - - if (input.getLocalValue() != null) { - out.println(JSFTestUtil.FAIL + " The local value of the component was not" - + " set to null after updateModel() succeeded updating the " - + "model tier."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputUpdateModelFailsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - TestBean testBean = new TestBean(); - request.setAttribute("TestBean", testBean); - - FacesContext context = getFacesContext(); - - input.setValueExpression("value", this.getVExpression(context, - "#{requestScope.TestBean.stkTrace}", String.class)); - - // This will trigger an exception to be thrown to the ExceptionHandler - input.setValue("Nothing"); - - input.updateModel(context); - - if (context.getExceptionHandler() - .getUnhandledExceptionQueuedEvents() == null) { - out.println("Test FAILED. Expected to find an Unhandled " - + "ExceptionEvent in the FacesContext to reflect the " - + "conversion failure."); - return; - } - - if (!"false".equals(testBean.getStkTrace())) { - out.println(JSFTestUtil.FAIL + " updateModel() call failed. Boolean " - + "property of TestBean instance was altered."); - out.println("Expected value to be: false"); - out.println("Actual value: " + testBean.getBoolProp()); - return; - } - - if (!input.getLocalValue().equals("Nothing")) { - out.println(JSFTestUtil.FAIL + " The local value of the UIInput " - + "instance was modified."); - out.println("Expected: String Nothing"); - out.println("Received: " + input.getLocalValue()); - return; - } - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Expected the valid property of the " - + "UIInput instance to be false after the updateModel() " - + "call failed."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIInput.updateModel() throws NullPointerException - public void uiInputUpdateModelNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "updateModel", - new Class[] { FacesContext.class }, new Object[] { null }, out); - - }// End uiInputUpdateModelNPETest - - // UIInput.validate() throws NullPointerException - public void uiInputValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(createComponent().getClass(), "validate", - new Class[] { FacesContext.class }, new Object[] { null }, out); - - }// End uiInputValidateNPETest - - public void uiInputValidate1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - RenderKitFactory rFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit rKit = rFactory.getRenderKit(context, - RenderKitFactory.HTML_BASIC_RENDER_KIT); - String rendererType = input.getRendererType(); - String family = input.getFamily(); - Renderer orig = rKit.getRenderer(family, rendererType); - Renderer1 renderer1 = new Renderer1(); - rKit.addRenderer(family, rendererType, renderer1); - - input.setValid(true); - input.setRequired(true); - input.setSubmittedValue("null"); - - input.validate(context); - - if (!renderer1.wasCalled()) { - out.println(JSFTestUtil.FAIL + " A Renderer was associated with the " - + "component, but the getConvertedValue() method was not invoked" - + " on the Renderer."); - return; - } - - if (orig != null) - rKit.addRenderer(family, rendererType, orig); - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - RenderKitFactory rFactory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - RenderKit rKit = rFactory.getRenderKit(context, - RenderKitFactory.HTML_BASIC_RENDER_KIT); - String rendererType = input.getRendererType(); - String family = input.getFamily(); - Renderer orig = rKit.getRenderer(family, rendererType); - Renderer1 renderer1 = new Renderer1(); - rKit.addRenderer(family, rendererType, renderer1); - - // null or "" should result in a message being queued and the component - // being marked as invalid - input.setValid(true); - input.setRequired(true); - // setting to "null" as string cuases custom Renderer to return null - input.setSubmittedValue("null"); - - input.validate(context); - - Object[] messages = JSFTestUtil.getAsArray(context.getMessages()); - - if (messages.length != 1) { - out.println(JSFTestUtil.FAIL + " Expected one message to be queued to" - + " the FacesContext if the UIInput being validated had a " - + "null value."); - out.println("Number of messages: " + messages.length); - return; - } - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Component was not marked invalid after" - + " attempting to validate with a null value."); - return; - } - - input.setValid(true); - input.setSubmittedValue(""); - - input.validate(context); - - messages = JSFTestUtil.getAsArray(context.getMessages()); - - if (messages.length != 2) { - out.println(JSFTestUtil.FAIL + " Expected two messages to be queued to" - + " the FacesContext if the UIInput being validated had a " - + "zero-length string as the value."); - out.println("Number of messages: " + messages.length); - return; - } - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Component was not marked invalid after" - + " attempting to validate with a zero-length string as the" - + " value."); - return; - } - - // restore original Renderer - if (orig != null) - rKit.addRenderer(family, rendererType, orig); - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate3aTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context2, "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate3bTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context2, "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - // All validators succeed, and the value differs from the previous. - // ensure the listener was invoked. - validator2.markInvalid(false); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - input.setValid(true); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (!"/VCL1@ANY_PHASE".equals(listenerTrace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected: /VCL1@ANY_PHASE"); - out.println("Received: " + listenerTrace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate3cTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - // input.setValue("new"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context2, "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // finally, if the new and previous values do not differ, - // the listener will not be invoked. - input.setSubmittedValue("value"); - input.setValue("value"); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - Converter converter = new TCKConverter(); - input.setConverter(converter); - - input.setSubmittedValue("value"); - - input.setValid(true); - input.setRequired(true); - input.validate(context); - - if (!"converted".equals(input.getValue())) { - out.println(JSFTestUtil.FAIL + " Converter available to the component" - + " via getConverter(), but the converter wasn't called."); - out.println("Expected the value after conversion to be 'converted'"); - out.println("Value received: " + input.getValue()); - return; - } - - // now verify the proper behavior if conversion fails - input.setSubmittedValue("fail"); - input.validate(context); - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Conversion failure should have resulted" - + " in the component in question being marked as invalid."); - return; - } - - if (JSFTestUtil.getAsArray(context.getMessages()).length != 1) { - out.println(JSFTestUtil.FAIL + " No messages queued as required in the " - + "case of conversion failure."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate5Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - FacesContext context = getFacesContext(); - Application application = getApplication(); - UIViewRoot root = application.getViewHandler().createView(context, "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - application.addConverter(Boolean.class, - "com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKConverter"); - - // setup value binding - request.setAttribute("simple", new TestBean()); - - input.setValueExpression("value", this.getVExpression(context, - "#{requestScope.simple.boolWrapProp}", boolean.class)); - - // run through validation - input.setSubmittedValue("value"); - - input.setValid(true); - input.setRequired(true); - input.validate(context); - - if (!"converted".equals(input.getValue())) { - out.println(JSFTestUtil.FAIL + " Converter available to the component" - + " via getConverter(), but the converter wasn't called."); - out.println("Expected the value after conversion to be 'converted'"); - out.println("Value received: " + input.getValue()); - return; - } - - // now verify the proper behavior if conversion fails - input.setSubmittedValue("fail"); - input.validate(context); - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Conversion failure should have resulted" - + " in the component in question being marked as invalid."); - return; - } - - if (JSFTestUtil.getAsArray(context.getMessages()).length != 1) { - out.println(JSFTestUtil.FAIL + " No messages queued as required in the " - + "case of conversion failure."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - /* @since 1.2 */ - public void uiInputResetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - - input.setValue("currentValue"); - input.setSubmittedValue("submittedValue"); - input.setLocalValueSet(true); - input.setValid(false); - - input.resetValue(); - - // resetValue() must pass null to setValue() and setSubmittedValue() - // resetValue() must pass false to setLocaleValueSet() - // resetValue() must pass true to setValid() - - boolean passed = true; - if (input.getValue() != null) { - out.println(JSFTestUtil.FAIL + " resetValue() called, but getValue()" - + "returned a non-null value."); - passed = false; - } - - if (input.getSubmittedValue() != null) { - out.println(JSFTestUtil.FAIL + " resetValue() called, but " - + "getSubmittedValue() returned a non-null value."); - passed = false; - } - - if (input.isLocalValueSet()) { - out.println(JSFTestUtil.FAIL + " resetValue() called, but " - + "isLocalValueSet() returned true."); - passed = false; - } - - if (!input.isValid()) { - out.println(JSFTestUtil.FAIL + " resetValue() called, but " - + "isValid() returned false"); - passed = false; - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END uiInputResetValueTest - - // --------------------------------------------------------- Private Methods - - private ValueExpression getVExpression(FacesContext context, String expr, - Class expType) { - ValueExpression ve = context.getApplication().getExpressionFactory() - .createValueExpression(FacesContext.getCurrentInstance().getELContext(), - expr, expType); - - return ve; - - } - - public void uiInputSetGetConverterMessTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - - String golden = "Bytor"; - input.setConverterMessage(golden); - String result = input.getConverterMessage(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from getConverterMessage() " - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiInputSetGetConverterMessTest - - public void uiInputSetGetValidatorMessTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - - String golden = "SnowDog"; - input.setValidatorMessage(golden); - String result = input.getValidatorMessage(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from getValidatorMessage() " - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiInputSetGetValidatorMessTest - - public void uiInputSetGetRequiredMessTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - - String golden = "ZoSo"; - input.setRequiredMessage(golden); - String result = input.getRequiredMessage(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL - + " Unexpected Value returned from getRequiredMessage() " - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiInputSetGetRequiredMessTest - - // --------------------------------------------------------- Private Classes - - private static class Renderer1 extends Renderer { - - boolean called; - - public Object getConvertedValue(FacesContext context, UIComponent component, - Object submittedValue) throws ConverterException { - called = true; - if (submittedValue.equals("null")) - return null; - - return submittedValue; - } - - public void reset() { - called = false; - } - - public boolean wasCalled() { - return called; - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/URLClient.java deleted file mode 100644 index f25745f947..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/URLClient.java +++ /dev/null @@ -1,1490 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_input_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentDecodeNPETest - * @assertion_ids: JSF:JAVADOC:583; JSF:JAVADOC:484; JSF:JAVADOC:745 - * @test_Strategy: Verify that when decode() is called passing null as the - * context, a NullPointException is thrown. - */ - public void uiComponentDecodeNPETest() throws EETest.Fault { - super.uiComponentDecodeNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:747 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /* - * @testName: uiComponentInvokeOnComponentTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /* - * @testName: uiComponentInvokeOnComponentNegativeTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621; JSF:JAVADOC:762 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627; JSF:JAVADOC:764 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628; JSF:JAVADOC:765 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629; JSF:JAVADOC:766 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443; JSF:JAVADOC:771; JSF:JAVADOC:772 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433; JSF:JAVADOC:743; - * JSF:JAVADOC:760 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968; JSF:JAVADOC:782 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------------- EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427; JSF:JAVADOC:759; - * JSF:JAVADOC:779 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419; JSF:JAVADOC:739; JSF:JAVADOC:752; - * JSF:JAVADOC:767 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * Validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426; JSF:JAVADOC:778; - * JSF:JAVADOC:749 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425; JSF:JAVADOC:758; - * JSF:JAVADOC:776 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420; JSF:JAVADOC:768 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407; JSF:JAVADOC:740 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409; JSF:JAVADOC:742 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421; JSF:JAVADOC:769 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423; JSF:JAVADOC:756; - * JSF:JAVADOC:774 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424; JSF:JAVADOC:757; - * JSF:JAVADOC:775 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputBroadcastTest"); - invoke(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputBroadcastValueChangeListenerTest"); - invoke(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueExpression associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputUpdateModelNoActionTest"); - invoke(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputUpdateModelSucceedsTest"); - invoke(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputUpdateModelFailsTest"); - invoke(); - } - - /** - * @testName: uiInputUpdateModelNPETest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:786 - * @test_Strategy: Validate that a NullPointerException is thrown if - * FacesContext is null. - * - */ - public void uiInputUpdateModelNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputUpdateModelNPETest"); - invoke(); - } - - /** - * @testName: uiInputValidateNPETest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:788 - * @test_Strategy: Validate that a NullPointerException is thrown if - * FacesContext is null. - * - */ - public void uiInputValidateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidateNPETest"); - invoke(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate1Test"); - invoke(); - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate2Test"); - invoke(); - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3aTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3bTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3cTest"); - invoke(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate4Test"); - invoke(); - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueExpression, use the type of the - * expression to create a Converter for that type and use it - * to convert the submitted value. Additionally verify if an - * exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate5Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate5Test"); - invoke(); - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:784; JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputResetValueTest"); - invoke(); - } - - /** - * @testName: uiInputSetGetConverterMessTest - * @assertion_ids: JSF:JAVADOC:746; JSF:JAVADOC:773 - * @test_Strategy: Validate that {set,get}ConverterMessage() methods work - * properly. - * - * @since 2.2 - */ - public void uiInputSetGetConverterMessTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputSetGetConverterMessTest"); - invoke(); - } - - /** - * @testName: uiInputSetGetValidatorMessTest - * @assertion_ids: JSF:JAVADOC:751; JSF:JAVADOC:777 - * @test_Strategy: Validate that {set,get}ValidatorMessage() methods work - * properly. - * - * @since 2.2 - */ - public void uiInputSetGetValidatorMessTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputSetGetValidatorMessTest"); - invoke(); - } - - /** - * @testName: uiInputSetGetRequiredMessTest - * @assertion_ids: JSF:JAVADOC:748; JSF:JAVADOC:781 - * @test_Strategy: Validate that {set,get}RequiredMessage() methods work - * properly. - * - * @since 2.2 - */ - public void uiInputSetGetRequiredMessTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputSetGetRequiredMessTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/build.xml deleted file mode 100644 index 8030dd2f8a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.war.sun-web.xml deleted file mode 100644 index b9e19ffd76..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_input_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.xml deleted file mode 100644 index c060911123..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiinput/jsf_comp_input_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_input - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/TestServlet.java deleted file mode 100644 index 37a1fdfe2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/TestServlet.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessage; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIMessage; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Message"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIMessage(); - } - - // ----------------------------------------- UIMessage Specific Test Methods - // UIMessage.{get,set}For - public void uiMessageGetSetForTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String myto = "mytestobject"; - UIMessage message = (UIMessage) createComponent(); - message.setFor(myto); - - if (!myto.equals(message.getFor())) { - out.println(JSFTestUtil.FAIL + " Expected result calling " - + "UIMessage.setFor() or UIMessage.getFor()!" + JSFTestUtil.NL - + "Expected: " + myto + JSFTestUtil.NL + "Received: " - + message.getFor()); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiMessageGetSetForTest - - public void uiMessageIsSetRedisplayTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessage message = (UIMessage) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = message.isRedisplay(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isRedisplay()!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - message.setRedisplay(false); - tf = message.isRedisplay(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isRedisplay() after " - + "setting it with .setRedisplay()!" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessageIsSetRedisplayTest - - public void uiMessageIsSetShowDetailTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessage message = (UIMessage) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = message.isShowDetail(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isShowDetail()!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - message.setShowDetail(false); - tf = message.isShowDetail(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isShowDetail() after " - + "setting it with .setShowDetail()!" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessageIsSetShowDetailTest - - public void uiMessageIsSetShowSummaryTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessage message = (UIMessage) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = message.isShowSummary(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isShowSummary()!" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - message.setShowSummary(true); - tf = message.isShowSummary(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isShowSummary() after " - + "setting it with .setShowSummary()!" + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessageIsSetShowSummaryTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/URLClient.java deleted file mode 100644 index 19097cba46..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/URLClient.java +++ /dev/null @@ -1,1126 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessage; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_message_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:789 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ---------------------------------------------------------- UIMessage - // specific - - /** - * @testName: uiMessageGetSetForTest - * @assertion_ids: JSF:JAVADOC:798; JSF:JAVADOC:790; JSF:JAVADOC:794 - * @test_Strategy: Verify that the UiMessage.setFor() & UIMessage.getFor() - * methods perform as expected. - * @since 2.0 - */ - public void uiMessageGetSetForTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessageGetSetForTest"); - invoke(); - } - - /** - * @testName: uiMessageIsSetRedisplayTest - * @assertion_ids: JSF:JAVADOC:798; JSF:JAVADOC:791; JSF:JAVADOC:795 - * @test_Strategy: Verify that the {is, set}Redisplay() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessageIsSetRedisplayTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessageIsSetRedisplayTest"); - invoke(); - } - - /** - * @testName: uiMessageIsSetShowDetailTest - * @assertion_ids: JSF:JAVADOC:798; JSF:JAVADOC:792; JSF:JAVADOC:796 - * @test_Strategy: Verify that the {is, set}ShowDetail() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessageIsSetShowDetailTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessageIsSetShowDetailTest"); - invoke(); - } - - /** - * @testName: uiMessageIsSetShowSummaryTest - * @assertion_ids: JSF:JAVADOC:798; JSF:JAVADOC:793; JSF:JAVADOC:797 - * @test_Strategy: Verify that the {is, set}ShowSummary() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessageIsSetShowSummaryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessageIsSetShowSummaryTest"); - invoke(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/build.xml deleted file mode 100644 index b09ca639e8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.war.sun-web.xml deleted file mode 100644 index 2981a37f98..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_message_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.xml deleted file mode 100644 index 690d0fc756..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessage/jsf_comp_message_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_message - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessage.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/TestServlet.java deleted file mode 100644 index 9579af0678..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/TestServlet.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessages; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIMessages; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Messages"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIMessages(); - } - - // ----------------------------------------- UIMessage Specific Test Methods - // UIMessage.{get,set}For - public void uiMessagesGetSetForTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String myto = "mytestobject"; - UIMessages messages = (UIMessages) createComponent(); - messages.setFor(myto); - - if (!myto.equals(messages.getFor())) { - out.println(JSFTestUtil.FAIL + " Expected result calling " - + "UIMessages.setFor() or UIMessages.getFor()!" + JSFTestUtil.NL - + "Expected: " + myto + JSFTestUtil.NL + "Received: " - + messages.getFor()); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - public void uiMessagesIsSetRedisplayTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessages messages = (UIMessages) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = messages.isRedisplay(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isRedisplay()!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - messages.setRedisplay(false); - tf = messages.isRedisplay(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isRedisplay() after " - + "setting it with .setRedisplay()!" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessagesIsSetRedisplayTest - - public void uiMessagesIsSetShowDetailTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessages messages = (UIMessages) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = messages.isShowDetail(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isShowDetail()!" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - messages.setShowDetail(true); - tf = messages.isShowDetail(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isShowDetail() after " - + "setting it with .setShowDetail()!" + JSFTestUtil.NL - + "Expected: tue" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessagesIsSetShowDetailTest - - public void uiMessagesIsSetShowSummaryTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessages messages = (UIMessages) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = messages.isShowSummary(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isShowSummary()!" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - messages.setShowSummary(false); - tf = messages.isShowSummary(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isShowSummary() after " - + "setting it with .setShowSummary()!" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessagesIsSetShowSummaryTest - - public void uiMessagesIsSetGlobalOnlyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIMessages messages = (UIMessages) createComponent(); - boolean tf; - - // Check redisplay for default value. - tf = messages.isGlobalOnly(); - if (tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected Default value returned from .isGlobalOnly()!" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + tf); - return; - } - - // Set value then check it again. - messages.setGlobalOnly(true); - tf = messages.isGlobalOnly(); - if (!tf) { - out.println(JSFTestUtil.FAIL - + " Unexpected value returned from .isShowSummary() after " - + "setting it with .setGlobalOnly()!" + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: " + tf); - return; - } - - out.println(JSFTestUtil.PASS); - - } // end uiMessagesIsSetGlobalOnlyTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/URLClient.java deleted file mode 100644 index 58860a4b1a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/URLClient.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessages; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_messages_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:799 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // --------------------------------------------------------- UIMessages - // specific - - /** - * @testName: uiMessagesGetSetForTest - * @assertion_ids: JSF:JAVADOC:810; JSF:JAVADOC:800; JSF:JAVADOC:805 - * @test_Strategy: Verify that the UiMessages.setFor() & UIMessages.getFor() - * methods preform as expected. - * @since 2.0 - */ - public void uiMessagesGetSetForTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessagesGetSetForTest"); - invoke(); - } - - /** - * @testName: uiMessagesIsSetRedisplayTest - * @assertion_ids: JSF:JAVADOC:810; JSF:JAVADOC:802; JSF:JAVADOC:807 - * @test_Strategy: Verify that the {is, set}Redisplay() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessagesIsSetRedisplayTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessagesIsSetRedisplayTest"); - invoke(); - } - - /** - * @testName: uiMessagesIsSetShowDetailTest - * @assertion_ids: JSF:JAVADOC:810; JSF:JAVADOC:803; JSF:JAVADOC:808 - * @test_Strategy: Verify that the {is, set}ShowDetail() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessagesIsSetShowDetailTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessagesIsSetShowDetailTest"); - invoke(); - } - - /** - * @testName: uiMessagesIsSetShowSummaryTest - * @assertion_ids: JSF:JAVADOC:810; JSF:JAVADOC:804; JSF:JAVADOC:809 - * @test_Strategy: Verify that the {is, set}ShowSummary() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessagesIsSetShowSummaryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessagesIsSetShowSummaryTest"); - invoke(); - } - - /** - * @testName: uiMessagesIsSetGlobalOnlyTest - * @assertion_ids: JSF:JAVADOC:810; JSF:JAVADOC:801; JSF:JAVADOC:806 - * @test_Strategy: Verify that the {is, set}GlobalOnly() methods perform as - * expected. - * - * @since 2.0 - */ - public void uiMessagesIsSetGlobalOnlyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiMessagesIsSetGlobalOnlyTest"); - invoke(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/build.xml deleted file mode 100644 index bac458316c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.war.sun-web.xml deleted file mode 100644 index a8224466e2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_messages_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.xml deleted file mode 100644 index 7d6a19f76a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uimessages/jsf_comp_messages_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_messages - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uimessages.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/TestServlet.java deleted file mode 100644 index 2b4f4f04ed..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/TestServlet.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uinamingcontainer; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UINamingContainer; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UINamingContainer(); - } - - // ------------------------------------------- Test Methods ---- - - // ------------------------------------------------------------- - // UINamingContainer Specific - - public void uiNamingContainerGetSeparatorCharTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - char golden = ':'; - char result = UINamingContainer.getSeparatorChar(context); - - if (!(golden == result)) { - out.println(JSFTestUtil.FAIL + " Unexpected result calling " - + "UINamingContainer.getSeparatorChar()!" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/URLClient.java deleted file mode 100644 index 7bc83a35b6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/URLClient.java +++ /dev/null @@ -1,1109 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uinamingcontainer; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_naming_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:814; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetContainerClientIdNPETest - * @assertion_ids: JSF:JAVADOC:508 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentGetContainerClientIdNPETest() throws EETest.Fault { - super.uiComponentGetContainerClientIdNPETest(); - } - - /** - * @testName: uiComponentGetContainerClientIdTest - * @assertion_ids: JSF:JAVADOC:507 - * @test_Strategy: Validate a that we get a non null value return. - */ - public void uiComponentGetContainerClientIdTest() throws EETest.Fault { - super.uiComponentGetContainerClientIdTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:812 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- - // UINamingContainer Specific - - /** - * @testName: uiNamingContainerGetSeparatorCharTest - * @assertion_ids: JSF:JAVADOC:814; JSF:JAVADOC:813 - * @test_Strategy: Verify that we are able to set a value for this webapp and - * retrieve it using get.SeparatorChar(). - * - * @since 2.0 - */ - public void uiNamingContainerGetSeparatorCharTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiNamingContainerGetSeparatorCharTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/build.xml deleted file mode 100644 index bc02eac154..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.war.sun-web.xml deleted file mode 100644 index f8fc74e123..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_naming_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.xml deleted file mode 100644 index ea0b5ee1da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uinamingcontainer/jsf_comp_naming_web.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - jsf_comp_naming - - tckattribute - tckValue - - - jakarta.faces.SEPARATOR_CHAR - : - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uinamingcontainer.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/TestServlet.java deleted file mode 100644 index 03c438459c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/TestServlet.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutcometarget; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutcomeTarget; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - private List rendererType; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - rendererType = new ArrayList(); - rendererType.add("jakarta.faces.Link"); - rendererType.add("jakarta.faces.Button"); - - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIOutcomeTarget(); - } - - // --------------------------------------------------- overridden test cases - // UIComponent.{get,set}RendererType - @Override - public void uiComponentGetSetRendererTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIComponent comp = createComponent(); - - // First check the default return value for the component - // under test base on the rendererType variable. If null, - // then expect the return type to be null, if non null, - // make sure the values are equal. - if (this.rendererType == null) { - if (comp.getRendererType() != null) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to" - + " return null for this component type."); - out.println("Value received: " + comp.getRendererType()); - return; - } - } else { - if (!this.rendererType.contains(comp.getRendererType())) { - out.println(JSFTestUtil.FAIL + " Unexpected renderType returned " - + "from getRendererType()." + JSFTestUtil.NL + "Expected" - + rendererType.get(0) + " or " + rendererType.get(1) - + JSFTestUtil.NL + "Received: " + comp.getRendererType()); - return; - } - } - - // now ensure that the value can be overridden - comp.setRendererType("string"); - - if (!"string".equals(comp.getRendererType())) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to" - + " return 'string' for this component " - + "after having explicitly set it via setRendererType()"); - out.println("Value received: " + comp.getRendererType()); - return; - } - - // ensure we can set null - comp.setRendererType(null); - if (comp.getRendererType() != null) { - out.println(JSFTestUtil.FAIL + " Expected getRendererType() to return" - + " null after having explicitly set it via setRendererType()."); - return; - } - - // reset the renderer type - // comp.setRendererType(rendererType); - - out.println(JSFTestUtil.PASS); - } - - // -------------------------------------------------------------- - // UIOutcomeTarget - - public void uiOutcomeTargetGetSetOutcomeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIOutcomeTarget outcome = (UIOutcomeTarget) createComponent(); - - String golden = "frodo"; - outcome.setOutcome(golden); - String result = outcome.getOutcome(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL + " Unexpected value for outcome property!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiOutcomeTargetGetSetOutcomeTest - - public void uiOutcomeTargetIsSetIncludeViewParamsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIOutcomeTarget outcome = (UIOutcomeTarget) createComponent(); - - boolean golden = true; - outcome.setIncludeViewParams(golden); - boolean result = outcome.isIncludeViewParams(); - - if (!result) { - out.println(JSFTestUtil.FAIL - + " Unexpected value for for view parameters setting!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // end uiOutcomeTargetIsSetIncludeViewParamsTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/URLClient.java deleted file mode 100644 index 65bcc0798c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/URLClient.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutcometarget; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_outcometarget_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ------------------------------------------------------------- UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - * - * - Identify the UIComponent that will be the base for - * searching, by stopping as soon as one of the following - * conditions is met: o If the search expression begins with - * the the separator character (called an "absolute" search - * expression), the base will be the root UIComponent of the - * component tree. The leading separator character will be - * stripped off, and the remainder of the search expression - * will be treated as a "relative" search expression as - * described below. o Otherwise, if this UIComponent is a - * NamingContainer it will serve as the basis. o Otherwise, - * search up the parents of this component. If a - * NamingContainer is encountered, it will be the base. o - * Otherwise (if no NamingContainer is encountered) the root - * UIComponent will be the base. - * - * - The search expression (possibly modified in the previous - * step) is now a "relative" search expression that will be - * used to locate the component (if any) that has an id that - * matches, within the scope of the base component. The match - * is performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:816 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ UIOutcomeTarget - - /** - * @testName: uiOutcomeTargetGetSetOutcomeTest - * @assertion_ids: JSF:JAVADOC:821; JSF:JAVADOC:817; JSF:JAVADOC:820 - * @test_Strategy: Validate that we are able to set and get the outcome - * Property. - * - * @since 2.0 - */ - public void uiOutcomeTargetGetSetOutcomeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiOutcomeTargetGetSetOutcomeTest"); - invoke(); - } - - /** - * @testName: uiOutcomeTargetIsSetIncludeViewParamsTest - * @assertion_ids: JSF:JAVADOC:821; JSF:JAVADOC:818; JSF:JAVADOC:819 - * @test_Strategy: Assert the following: - Set whether or not the page - * parameters should be encoded into the target url. - Return - * whether or not the view parameters should be encoded into - * the target url. - * - * @since 2.0 - */ - public void uiOutcomeTargetIsSetIncludeViewParamsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiOutcomeTargetIsSetIncludeViewParamsTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/build.xml deleted file mode 100644 index 704312f425..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.war.sun-web.xml deleted file mode 100644 index 6f7f6cf4f4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_outcometarget_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.xml deleted file mode 100644 index 661bd1541b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutcometarget/jsf_comp_outcometarget_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_comp_outcometarget - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutcometarget.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/TestServlet.java deleted file mode 100644 index 556cb288e3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/TestServlet.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; - -import jakarta.faces.application.ResourceDependencies; -import jakarta.faces.application.ResourceDependency; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutput; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.ComponentSystemEventListener; -import jakarta.faces.event.ListenerFor; -import jakarta.faces.event.PostAddToViewEvent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Text"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIOutput(); - } - // --------------------------------------------------------- Private Classes - - @ListenerFor(systemEventClass = PostAddToViewEvent.class, sourceClass = CustomOutput.class) - @ResourceDependencies({ - @ResourceDependency(name = "#{'hello.js'}", library = "test", target = "#{'body'}"), - @ResourceDependency(name = "black-n-blue.css", library = "#{'test'}") }) - - public static final class CustomOutput extends UIOutput - implements ComponentSystemEventListener { - - private boolean processEventInvoked; - - private ComponentSystemEvent event; - - @Override - public void processEvent(ComponentSystemEvent event) - throws AbortProcessingException { - processEventInvoked = true; - this.event = event; - } - - public void reset() { - processEventInvoked = false; - event = null; - } - - public boolean isProcessEventInvoked() { - return processEventInvoked; - } - - public ComponentSystemEvent getEvent() { - return event; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/URLClient.java deleted file mode 100644 index ab6e695888..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/URLClient.java +++ /dev/null @@ -1,1098 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_output_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ---------------------------------------------------- UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:513; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:517; JSF:JAVADOC:824 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:518; JSF:JAVADOC:558; - * JSF:JAVADOC:608; JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:522; JSF:JAVADOC:561; - * JSF:JAVADOC:609; JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:561; JSF:JAVADOC:632; - * JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:523;JSF:JAVADOC:563; - * JSF:JAVADOC:610; JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:537; JSF:JAVADOC:562; - * JSF:JAVADOC:617; JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:582; JSF:JAVADOC:541; - * JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:545; JSF:JAVADOC:547; - * JSF:JAVADOC:622; JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:443; JSF:JAVADOC:828; - * JSF:JAVADOC:829 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:822; - * JSF:JAVADOC:832; JSF:JAVADOC:827 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:966; JSF:JAVADOC:968; - * JSF:JAVADOC:826; JSF:JAVADOC:831 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:832; JSF:JAVADOC:964; JSF:JAVADOC:967; - * JSF:JAVADOC:823; JSF:JAVADOC:830 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/build.xml deleted file mode 100644 index ccafb5fd4a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.war.sun-web.xml deleted file mode 100644 index 9a8cd8dfda..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_output_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.xml deleted file mode 100644 index 459a43f28c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uioutput/jsf_comp_output_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_output - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uioutput.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/TestServlet.java deleted file mode 100644 index 024c6e74c4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/TestServlet.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; - -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIPanel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; - -public class TestServlet extends BaseComponentTestServlet { - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - setRendersChildren(Boolean.FALSE); - } - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIPanel(); - } - - // ------------------------------------------- Test Methods ---- - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/URLClient.java deleted file mode 100644 index 9cd4f503af..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/URLClient.java +++ /dev/null @@ -1,1073 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_panel_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:513; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:517; JSF:JAVADOC:833 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:518; JSF:JAVADOC:558; - * JSF:JAVADOC:608; JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:522; JSF:JAVADOC:561; - * JSF:JAVADOC:609; JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:561; JSF:JAVADOC:632; - * JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:523;JSF:JAVADOC:563; - * JSF:JAVADOC:610; JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:537; JSF:JAVADOC:562; - * JSF:JAVADOC:617; JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:582; JSF:JAVADOC:541; - * JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:545; JSF:JAVADOC:547; - * JSF:JAVADOC:622; JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:834; JSF:JAVADOC:482; JSF:JAVADOC:530; - * JSF:JAVADOC:538; JSF:JAVADOC:581; JSF:JAVADOC:619 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/build.xml deleted file mode 100644 index 58b6c61a90..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.war.sun-web.xml deleted file mode 100644 index c6a4a9117c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_panel_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.xml deleted file mode 100644 index 0f488846e0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uipanel/jsf_comp_panel_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_panel - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uipanel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/TestServlet.java deleted file mode 100644 index 88443f50ce..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/TestServlet.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiparameter; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIParameter; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIParameter(); - } - - // ------------------------------------------- Test Methods ---- - - // ------------------------------------------- UIparameter Tests - - public void uiParameterSetGetNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIParameter param = (UIParameter) createComponent(); - String golden = "Frodo"; - - param.setName(golden); - String result = param.getName(); - - if (!result.equals(golden)) { - out.println(JSFTestUtil.FAIL + " UIParameter.getName() didn't return" - + " the value as set by UIParameter.setName()."); - out.println("Expected: " + golden); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiParameterSetGetNameTest - - public void uiParameterSetGetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIParameter param = (UIParameter) createComponent(); - boolean golden = true; - - param.setValue(golden); - boolean result = (Boolean) param.getValue(); - - if (!result) { - out.println(JSFTestUtil.FAIL + " UIParameter.getValue() didn't return" - + " the value as set by UIParameter.setValue()."); - out.println("Expected: " + golden); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiParameterSetGetValueTest - - public void uiParameterIsSetDisableTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIParameter param = (UIParameter) createComponent(); - boolean golden = true; - - param.setDisable(golden); - boolean result = (Boolean) param.isDisable(); - - if (!result) { - out.println(JSFTestUtil.FAIL + " UIParameter.isDisable() didn't return" - + " the value as set by UIParameter.setDisable()."); - out.println("Expected: " + golden); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiParameterIsSetDisableTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/URLClient.java deleted file mode 100644 index ee7e9bdcca..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/URLClient.java +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiparameter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_param_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:835 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ------------------------------------------------------------- UIParameter - - /** - * @testName: uiParameterSetGetNameTest - * @assertion_ids: JSF:JAVADOC:842; JSF:JAVADOC:836; JSF:JAVADOC:840 - * @test_Strategy: Validate that we can set and get 'name' on this UIParameter - * Object. - */ - public void uiParameterSetGetNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiParameterSetGetNameTest"); - invoke(); - } - - /** - * @testName: uiParameterSetGetValueTest - * @assertion_ids: JSF:JAVADOC:842; JSF:JAVADOC:837; JSF:JAVADOC:841 - * @test_Strategy: Validate that we can set and get 'value' on this - * UIParameter Object. - */ - public void uiParameterSetGetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiParameterSetGetValueTest"); - invoke(); - } - - /** - * @testName: uiParameterIsSetDisableTest - * @assertion_ids: JSF:JAVADOC:842; JSF:JAVADOC:838; JSF:JAVADOC:839 - * @test_Strategy: Validate that we can set and get 'disable' on this - * UIParameter Object. - */ - public void uiParameterIsSetDisableTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiParameterIsSetDisableTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/build.xml deleted file mode 100644 index 76d32aec03..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.war.sun-web.xml deleted file mode 100644 index e56939a96e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_param_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.xml deleted file mode 100644 index 1f1df4db5f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiparameter/jsf_comp_param_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_param - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiparameter.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/TestServlet.java deleted file mode 100644 index 33fe5a4ac1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/TestServlet.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectboolean; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BufferedResponseWrapper; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValidator; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UISelectBoolean; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.el.MethodExpression; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.faces.validator.MethodExpressionValidator; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Checkbox"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UISelectBoolean(); - } - - // ------------------------------------------- Test Methods ---- - - @Override - public void uiComponentGetSetValueExpressionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - BufferedResponseWrapper wrapper = new BufferedResponseWrapper(response); - - super.uiComponentGetSetValueExpressionTest(request, wrapper); - String result = wrapper.getBufferedWriter().toString(); - - PrintWriter out = response.getWriter(); - - if (result.indexOf(JSFTestUtil.PASS) == -1) { - out.println(result); - return; - } - - // default processing of get,setValueExpression is ok, now validate - // processing specific to UIGraphic - request.setAttribute("value", "selectedValue"); - - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{requestScope.value}", - java.lang.String.class); - - UISelectBoolean selBoolean = (UISelectBoolean) createComponent(); - - selBoolean.setValueExpression("selected", expression); - - if (!"selectedValue".equals(selBoolean.getValue())) { - out.println( - JSFTestUtil.FAIL + " setValueExpression() with a key of 'selected'" - + " didn't set the ValueExpression provided as the value" - + " of the component."); - out.println("Expected: " + expression); - out.println("Received: " + selBoolean.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - - } - - // Test event queuing and broadcasting (any phase listeners) - @Override - public void uiInputBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = facesContext.getApplication().getViewHandler() - .createView(facesContext, "/root"); - root.getChildren().add(input); - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - - // Register three listeners - input.addValueChangeListener(new TCKValueChangeListener("AP0")); - input.addValueChangeListener(new TCKValueChangeListener("AP1")); - input.addValueChangeListener(new TCKValueChangeListener("AP2")); - - // Fire events and evaluate results - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - String trace = TCKValueChangeListener.trace(); - String expectedTrace = "/AP0@PROCESS_VALIDATIONS/AP1@PROCESS_VALIDATIONS/AP2@PROCESS_VALIDATIONS"; - if (!expectedTrace.equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected trace: " + expectedTrace); - out.println("Trace received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputBroadcastValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(input); - - TCKValueChangeListener listener = new TCKValueChangeListener("VCLR"); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - facesContext.getELContext(), "#{requestScope.reqVCL.processValueChange}", null, - new Class[] { ValueChangeEvent.class }); - MethodExpressionValueChangeListener lnr = new MethodExpressionValueChangeListener(binding); - - request.setAttribute("reqVCL", listener); - input.addValueChangeListener(lnr); - - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - - String trace = TCKValueChangeListener.trace(); - - if (trace.length() == 0) { - out.println(JSFTestUtil.FAIL + " The ValueChangeListener as referenced" - + " by ValueChangeListenerRef 'requestScope.reqVCL.processValueChange'" - + " was not invoked."); - return; - } - - if (!"/VCLR@PROCESS_VALIDATIONS".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected Listener trace."); - out.println("Expected: /VCLR@PROCESS_VALIDATIONS"); - out.println("Received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3aTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - input.setRendererType(null); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3bTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - input.setRendererType(null); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // Next, all validators succeed, and the value differs from the previous. - // ensure the listener was invoked. - validator2.markInvalid(false); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - input.setValid(true); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (!"/VCL1@ANY_PHASE".equals(listenerTrace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected: /VCL1@ANY_PHASE"); - out.println("Received: " + listenerTrace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3cTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("previous"); - input.setRendererType(null); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new-value"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // If the new and previous values do not differ, - // the listener will not be invoked. - input.setSubmittedValue("value"); - input.setValue("value"); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println( - "Test FAILED[3]. Validator trace did not return as " + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println("Test FAILED[3]. ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ---------------- UISelectBoolean Tests - - public void uiSelectBooleanIsSetSelectedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectBoolean select = (UISelectBoolean) createComponent(); - boolean value = true; - select.setSelected(value); - boolean result = select.isSelected(); - - if (!result) { - out.println( - JSFTestUtil.FAIL + " UISelectBoolean.isselected() didn't return" - + " the value as set by UISelectBoolean.setSelected()."); - out.println("Expected: " + value); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectBooleanIsSetSelectedTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/URLClient.java deleted file mode 100644 index a5f19612c7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/URLClient.java +++ /dev/null @@ -1,1405 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectboolean; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_selboolean_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:843 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567; JSF:JAVADOC:528; JSF:JAVADOC:846; - * JSF:JAVADOC:852 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529; JSF:JAVADOC:847; JSF:JAVADOC:853 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ----------------------------------------------------------------- - // ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // --------------------------------------------------------- - // EditableValueHolder - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407; JSF:JAVADOC:854 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409; JSF:JAVADOC:854 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421; JSF:JAVADOC:854 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3aTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3bTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3cTest"); - invoke(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // --------------------------- UISelectBoolean Tests - - /** - * @testName: uiSelectBooleanIsSetSelectedTest - * @assertion_ids: JSF:JAVADOC:848; JSF:JAVADOC:849 - * @test_Strategy: Validate that we can set and get if the component is - * selected. - */ - public void uiSelectBooleanIsSetSelectedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectBooleanIsSetSelectedTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/build.xml deleted file mode 100644 index 7c7705ce3e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.war.sun-web.xml deleted file mode 100644 index 18c886cb78..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_selboolean_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.xml deleted file mode 100644 index 23ed12829a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectboolean/jsf_comp_selboolean_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_selboolean - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectboolean.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/TestServlet.java deleted file mode 100644 index e842533a61..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/TestServlet.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitem; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UISelectItem; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UISelectItem(); - } - - // ------------------------------------------- Test Methods ---- - - public void uiSelectItemGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - String test = "value"; - command.setValue(test); - String result = (String) command.getValue(); - - if (!test.equals(result)) { - out.println(JSFTestUtil.FAIL + " UISelectItem.getValue() didn't return" - + " the value as set by UISelectItem.setValue()."); - out.println("Expected: " + test); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End uiSelectItemGetSetValueTest - - public void uiSelectItemGetSetItemDescriptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - String test = "Description"; - command.setItemDescription(test); - String result = command.getItemDescription(); - - if (!test.equals(result)) { - out.println( - JSFTestUtil.FAIL + " UISelectItem.getItemDescription() didn't return" - + " the value as set by UISelectItem.setItemDescription()."); - out.println("Expected: " + test); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectItemGetSetItemDescriptionTest - - public void uiSelectItemGetSetItemLabelTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - String test = "Label"; - command.setItemLabel(test); - String result = command.getItemLabel(); - - if (!test.equals(result)) { - out.println( - JSFTestUtil.FAIL + " UISelectItem.getItemLabel() didn't return" - + " the value as set by UISelectItem.setItemLabel()."); - out.println("Expected: " + test); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectItemGetSetItemLabelTest - - public void uiSelectItemIsSetItemDisabledTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - boolean value = true; - command.setItemDisabled(value); - boolean result = command.isItemDisabled(); - - if (!result) { - out.println( - JSFTestUtil.FAIL + " UISelectItem.isItemDisabled() didn't return" - + " the value as set by UISelectItem.setItemDisabled()."); - out.println("Expected: " + value); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectItemIsSetItemDisabledTest - - public void uiSelectItemIsSetItemEscapedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - boolean value = true; - command.setItemEscaped(value); - boolean result = command.isItemEscaped(); - - if (!result) { - out.println( - JSFTestUtil.FAIL + " UISelectItem.isItemEscaped() didn't return" - + " the value as set by UISelectItem.setItemEscaped()."); - out.println("Expected: " + value); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectItemIsSetItemEscapedTest - - public void uiSelectItemIsSetNoSelectionOptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - boolean value = true; - command.setNoSelectionOption(value); - boolean result = command.isNoSelectionOption(); - - if (!result) { - out.println(JSFTestUtil.FAIL - + " UISelectItem.isNoSelectionOptionTest() didn't return" - + " the value as set by UISelectItem.setNoSelectionOptionTest()."); - out.println("Expected: " + value); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // uiSelectItemIsSetNoSelectionOptionTest - - public void uiSelectItemGetSetItemValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItem command = (UISelectItem) createComponent(); - boolean test = true; - - command.setItemValue(test); - boolean result = (Boolean) command.getItemValue(); - - if (!result) { - out.println( - JSFTestUtil.FAIL + " UISelectItem.getItemValue() didn't return" - + " the value as set by UISelectItem.setItemValue()."); - out.println("Expected: " + test); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End uiSelectItemGetSetValueTest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/URLClient.java deleted file mode 100644 index ba6857948f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/URLClient.java +++ /dev/null @@ -1,1151 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitem; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_selitem_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:855 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -----------------------------------------------------------------UISelectItem - /** - * @testName: uiSelectItemGetSetValueTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:869 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiSelectItemGetSetValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemGetSetValueTest"); - invoke(); - } - - /** - * @testName: uiSelectItemGetSetItemValueTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:834; JSF:JAVADOC:858 - * @test_Strategy: Verify {get,set}ItemValue() - if a value is set, the same - * value is returned. - */ - public void uiSelectItemGetSetItemValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemGetSetItemValueTest"); - invoke(); - } - - /** - * @testName: uiSelectItemGetSetItemDescriptionTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:856; - * JSF:JAVADOC:863 - * @test_Strategy: Verify {get, set}ItemDescription() returns the expected - * value. - */ - public void uiSelectItemGetSetItemDescriptionTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemGetSetItemDescriptionTest"); - invoke(); - } - - /** - * @testName: uiSelectItemGetSetItemLabelTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:857; - * JSF:JAVADOC:866 - * @test_Strategy: Verify {get, set}ItemLabel() returns the expected value. - */ - public void uiSelectItemGetSetItemLabelTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemGetSetItemLabelTest"); - invoke(); - } - - /** - * @testName: uiSelectItemIsSetItemDisabledTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:860; - * JSF:JAVADOC:864 - * @test_Strategy: Verify {is, set}ItemDisabled() returns the expected value. - */ - public void uiSelectItemIsSetItemDisabledTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemIsSetItemDisabledTest"); - invoke(); - } - - /** - * @testName: uiSelectItemIsSetItemEscapedTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:861; - * JSF:JAVADOC:865 - * @test_Strategy: Verify {is, set}ItemEscaped() returns the expected value. - */ - public void uiSelectItemIsSetItemEscapedTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemIsSetItemEscapedTest"); - invoke(); - } - - /** - * @testName: uiSelectItemIsSetNoSelectionOptionTest - * @assertion_ids: JSF:JAVADOC:870; JSF:JAVADOC:859; JSF:JAVADOC:862; - * JSF:JAVADOC:868 - * @test_Strategy: Verify {is, set}NoSelectionOption() returns the expected - * value. - */ - public void uiSelectItemIsSetNoSelectionOptionTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemIsSetNoSelectionOptionTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/build.xml deleted file mode 100644 index 0a800023b7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.war.sun-web.xml deleted file mode 100644 index 8769088e7c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_selitem_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.xml deleted file mode 100644 index 25dfb2bc01..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitem/jsf_comp_selitem_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_selitem - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitem.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/TestServlet.java deleted file mode 100644 index 1934f6563e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/TestServlet.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitems; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Vector; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UISelectItems; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UISelectItems(); - } - - // ------------------------------------------- Test Methods ---- - public void uiSelectItemsGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItems command = (UISelectItems) createComponent(); - - command.setValue("value"); - - if (!"value".equals(command.getValue())) { - out.println(JSFTestUtil.FAIL + " UISelectItem.getValue() didn't return" - + " the value as set by UISelectItem.setValue()."); - out.println("Expected: value"); - out.println("Received: " + command.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiSelectItemsGetArrayValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItems command = (UISelectItems) createComponent(); - - String[] colors = { "red", "green", "black", "tan" }; - - command.setValue(colors); - - if (!Arrays.equals(colors, (String[]) command.getValue())) { - out.println(JSFTestUtil.FAIL + " UISelectItem.getValue() didn't return" - + " the value as set by UISelectItem.setValue()."); - out.println("Arrays objects were not equal!"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiSelectItemsGetCollectionValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItems command = (UISelectItems) createComponent(); - - Vector cars = new Vector(); - cars.add(new Car("passenger", "green")); - cars.add(new Car("sport", "red")); - cars.add(new Car("sedan", "red")); - - command.setValue(cars); - - if (!Arrays.equals(cars.toArray(), - ((Vector) command.getValue()).toArray())) { - out.println(JSFTestUtil.FAIL + " UISelectItem.getValue() didn't return" - + " the value as set by UISelectItem.setValue()."); - out.println("Vector objects were not equal!"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiSelectItemsMapGetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UISelectItems command = (UISelectItems) createComponent(); - - HashMap employeeLvl = new HashMap(); - employeeLvl.put("MGR", "4"); - employeeLvl.put("VP", "6"); - employeeLvl.put("DIR", "5"); - employeeLvl.put("WB", "0"); - - command.setValue(employeeLvl); - - if (!Arrays.equals(employeeLvl.entrySet().toArray(), - ((HashMap) command.getValue()).entrySet().toArray())) { - out.println(JSFTestUtil.FAIL + " UISelectItem.getValue() didn't return" - + " the value as set by UISelectItem.setValue()."); - out.println("HashMap objects were not equal!"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // --------------------------------------------------------- private classes - private static class Car { - - private String style; - - private String color; - - public Car(String style, String color) { - this.style = style; - this.color = color; - } - - public String getColor() { - return color; - } - - public void setColor(String color) { - this.color = color; - } - - public String getStyle() { - return style; - } - - public void setStyle(String style) { - this.style = style; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/URLClient.java deleted file mode 100644 index 07b76e1f86..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/URLClient.java +++ /dev/null @@ -1,1117 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitems; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_selitems_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:871 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // --------------------------------------------------------------- - // UISelectItems - /** - * @testName: uiSelectItemsGetSetValueTest - * @assertion_ids: JSF:JAVADOC:874; JSF:JAVADOC:872; JSF:JAVADOC:873 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void uiSelectItemsGetSetValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemsGetSetValueTest"); - invoke(); - } - - /** - * @testName: uiSelectItemsGetArrayValueTest - * @assertion_ids: JSF:JAVADOC:874; JSF:JAVADOC:872; JSF:JAVADOC:873 - * @test_Strategy: Verify {get,set}Value() - if a value is set using Arrays, - * the same value is returned. - */ - public void uiSelectItemsGetArrayValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemsGetArrayValueTest"); - invoke(); - } - - /** - * @testName: uiSelectItemsGetCollectionValueTest - * @assertion_ids: JSF:JAVADOC:874; JSF:JAVADOC:872; JSF:JAVADOC:873 - * @test_Strategy: Verify {get,set}Value() - if a value is set using a Vector, - * the same value is returned. - */ - public void uiSelectItemsGetCollectionValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemsGetCollectionValueTest"); - invoke(); - } - - /** - * @testName: uiSelectItemsMapGetValueTest - * @assertion_ids: JSF:JAVADOC:874; JSF:JAVADOC:872; JSF:JAVADOC:873 - * @test_Strategy: Verify {get,set}Value() - if a value is set using a Vector, - * the same value is returned. - */ - public void uiSelectItemsMapGetValueTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectItemsMapGetValueTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/build.xml deleted file mode 100644 index 108083dbeb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.war.sun-web.xml deleted file mode 100644 index 1bfc54662b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_selitems_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.xml deleted file mode 100644 index f6dcb921cf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectitems/jsf_comp_selitems_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_selitems - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectitems.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/TestServlet.java deleted file mode 100644 index ff121d98b0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/TestServlet.java +++ /dev/null @@ -1,515 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BufferedResponseWrapper; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValidator; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.ValueExpression; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UISelectItem; -import jakarta.faces.component.UISelectMany; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.el.MethodExpression; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.faces.validator.MethodExpressionValidator; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Listbox"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UISelectMany(); - } - - // ------------------------------------------- Test Methods ---- - - @Override - public void uiComponentGetSetValueExpressionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - BufferedResponseWrapper wrapper = new BufferedResponseWrapper(response); - - super.uiComponentGetSetValueExpressionTest(request, wrapper); - String result = wrapper.getBufferedWriter().toString(); - - PrintWriter out = response.getWriter(); - - if (result.indexOf(JSFTestUtil.PASS) == -1) { - out.println(result); - return; - } - - List values = new ArrayList(); - values.add("value1"); - values.add("value2"); - - // default processing of get,setValueExpression is ok, now validate - // processing specific to UIGraphic - request.setAttribute("values", values); - - ExpressionFactory factory = JSFTestUtil - .getExpressionFactory(servletContext); - ValueExpression expression = factory.createValueExpression( - getFacesContext().getELContext(), "#{requestScope.values}", - java.util.List.class); - - UISelectMany many = (UISelectMany) createComponent(); - - many.setValueExpression("selectedValues", expression); - - if (many.getValue() != values) { - out.println(JSFTestUtil.FAIL + " getValue() returned unexpected value" - + " after having called setValueExpression()."); - out.println("Expected: " + values); - out.println("Received: " + many.getValue()); - } - out.println(JSFTestUtil.PASS); - - } - - // Test event queuing and broadcasting (any phase listeners) - @Override - public void uiInputBroadcastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = facesContext.getApplication().getViewHandler() - .createView(facesContext, "/root"); - root.getChildren().add(input); - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - - // Register three listeners - input.addValueChangeListener(new TCKValueChangeListener("AP0")); - input.addValueChangeListener(new TCKValueChangeListener("AP1")); - input.addValueChangeListener(new TCKValueChangeListener("AP2")); - - // Fire events and evaluate results - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - String trace = TCKValueChangeListener.trace(); - String expectedTrace = "/AP0@PROCESS_VALIDATIONS/AP1@PROCESS_VALIDATIONS/AP2@PROCESS_VALIDATIONS"; - if (!expectedTrace.equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected trace: " + expectedTrace); - out.println("Trace received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputBroadcastValueChangeListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UIViewRoot root = new UIViewRoot(); - root.getChildren().add(input); - - TCKValueChangeListener listener = new TCKValueChangeListener("VCLR"); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - facesContext.getELContext(), "#{requestScope.reqVCL.processValueChange}", null, - new Class[] { ValueChangeEvent.class }); - MethodExpressionValueChangeListener lnr = new MethodExpressionValueChangeListener(binding); - - request.setAttribute("reqVCL", listener); - input.addValueChangeListener(lnr); - - ValueChangeEvent event = new ValueChangeEvent(input, null, null); - event.setPhaseId(PhaseId.PROCESS_VALIDATIONS); - TCKValueChangeListener.trace(null); - input.queueEvent(event); - root.processDecodes(facesContext); - root.processValidators(facesContext); - root.processApplication(facesContext); - - String trace = TCKValueChangeListener.trace(); - - if (trace.length() == 0) { - out.println(JSFTestUtil.FAIL + " The ValueChangeListener as referenced" - + " by ValueChangeListenerRef 'requestScope.reqVCL.processValueChange'" - + " was not invoked."); - return; - } - - if (!"/VCLR@PROCESS_VALIDATIONS".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected Listener trace."); - out.println("Expected: /VCLR@PROCESS_VALIDATIONS"); - out.println("Received: " + trace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3aTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - UISelectItem item3 = new UISelectItem(); - item3.setItemValue("new3"); - input.getChildren().add(item1); - input.getChildren().add(item2); - input.getChildren().add(item3); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue(new String[] { "new" }); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3bTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - UISelectItem item3 = new UISelectItem(); - item3.setItemValue("new3"); - input.getChildren().add(item1); - input.getChildren().add(item2); - input.getChildren().add(item3); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue(new String[] { "new" }); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // All validators succeed, and the value differs from the previous. - // ensure the listener was invoked. - validator2.markInvalid(false); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - input.setValid(true); - input.setSubmittedValue(new String[] { "new3" }); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (!"/VCL1@ANY_PHASE".equals(listenerTrace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected: /VCL1@ANY_PHASE"); - out.println("Received: " + listenerTrace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3cTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - UISelectItem item3 = new UISelectItem(); - item3.setItemValue("new3"); - input.getChildren().add(item1); - input.getChildren().add(item2); - input.getChildren().add(item3); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue(new String[] { "new" }); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression( - context.getELContext(), "#{requestScope.TCKValidator.validate}", null, - new Class[] { FacesContext.class, UIComponent.class, Object.class }); - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // finally, if the new and previous values do not differ, - // the listener will not be invoked. - input.setSubmittedValue(new String[] { "new2" }); - input.setValue(new String[] { "new2" }); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Expected no trace"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate6Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - UISelectItem item3 = new UISelectItem(); - item3.setItemValue("new3"); - input.getChildren().add(item1); - input.getChildren().add(item2); - input.getChildren().add(item3); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - root.getChildren().add(input); - - // lastly, if the item selected doens't match the list of - // available items, then queue a message and mark the component - // invalid. - - input.setSubmittedValue(new String[] { "invalid" }); - input.setValid(true); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - int messageCount = checkMessages(); - if (messageCount != 1) { - out.println(JSFTestUtil.FAIL + " No message queued into the FacesContext" - + " when the item selected doesn't match the list of available" - + " items."); - return; - } - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " UIInput instance was not marked invalid" - + " when the item selected didn't match the list of available" - + " values."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------- selectMany Tests - - public void uiSelectManyGetSetSelectedValuesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UISelectMany many = (UISelectMany) createComponent(); - - String[] test = new String[] { "red", "white", "blue" }; - - many.setSelectedValues(test); - String[] result = (String[]) many.getSelectedValues(); - - int resultSize = result.length; - - for (int i = 0; i < resultSize; i++) { - if (!Arrays.asList(test).contains(result[i])) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected returned array of selected items to have the below value in it!" - + JSFTestUtil.NL + "Missing: " + result[i]); - return; - } - } - - out.println(JSFTestUtil.PASS); - - } // end uiComponentGetSetSelectedValuesTest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/URLClient.java deleted file mode 100644 index 71a2ae6937..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/URLClient.java +++ /dev/null @@ -1,1430 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_selmany_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run tests */ - - // ============================================ Tests ====== - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:875 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567; JSF:JAVADOC:528; JSF:JAVADOC:879; - * JSF:JAVADOC:884 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529; JSF:JAVADOC:880; JSF:JAVADOC:885 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ------------------------------------------------------ - // EditableValueHolder - - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407; JSF:JAVADOC:886 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409; JSF:JAVADOC:886 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421; JSF:JAVADOC:886 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ------------------------------------------------------------------UIInput - - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueBinding associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3aTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3bTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3cTest"); - invoke(); - } - - // NOT TESTABLE IN THIS CASE AS VALUE WON'T BE A STRING - /* - * testName: uiInputValidate4Test - * - * @assertion_ids: JSF:JAVADOC:787 - * - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify if an exception - * is thrown during the conversion process, a message is queued to the - * FacesContext and the component is marked invalid. - */ - // public void uiInputValidate4Test() throws EETest.Fault { - // super.uiInputValidate4Test(); //To change body of overridden methods use - // Options | File Templates. - // } - - // NOT TESTABLE IN THIS CASE AS VALUE WON'T BE A STRING - /* - * testName: uiInputValidate5Test - * - * @assertion_ids: JSF:JAVADOC:787 - * - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueBinding, get the use the type to create a Converter - * for that type and use it to convert the submitted value. Additionally - * verify if an exception is thrown during the conversion process, a message - * is queued to the FacesContext and the component is marked invalid. - */ - // public void uiInputValidate5Test() throws EETest.Fault { - // super.uiInputValidate5Test(); //To change body of overridden methods use - // Options | File Templates. - // } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate6Test"); - invoke(); - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } - - // -------------------------------- selectMany Tests - - /** - * @testName: uiSelectManyGetSetSelectedValuesTest - * @assertion_ids: JSF:JAVADOC:876; JSF:JAVADOC:881 - * @test_Strategy: Validate that we are able to {set, get}SelectedValues(). - * - * @since 2.2 - */ - public void uiSelectManyGetSetSelectedValuesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiSelectManyGetSetSelectedValuesTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/build.xml deleted file mode 100644 index e8cfe313e9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.war.sun-web.xml deleted file mode 100644 index 7327b3123b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_selmany_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.xml deleted file mode 100644 index 52ef0aa09f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectmany/jsf_comp_selmany_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_comp_selmany - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectmany.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/TestServlet.java deleted file mode 100644 index 6d5ecb7a32..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/TestServlet.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKConverter; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValidator; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKValueChangeListener; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UISelectItem; -import jakarta.faces.component.UISelectOne; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.el.MethodExpression; -import jakarta.el.ValueExpression; -import jakarta.el.ELContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.faces.validator.MethodExpressionValidator; - - -public class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.TestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType("jakarta.faces.Menu"); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UISelectOne(); - } - - // ------------------------------------------- Test Methods ---- - - @Override - public void uiInputValidate3aTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("new"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(context2, - "#{requestScope.TCKValidator.validate}", null, new Class[] { FacesContext.class, UIComponent.class, Object.class }); - - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new2"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3bTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("new"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(context2, - "#{requestScope.TCKValidator.validate}", null, new Class[] { FacesContext.class, UIComponent.class, Object.class }); - - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new2"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // All validators succeed, and the value differs from the previous. - // ensure the listener was invoked. - validator2.markInvalid(false); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - input.setValid(true); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (!"/VCL1@ANY_PHASE".equals(listenerTrace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace."); - out.println("Expected: /VCL1@ANY_PHASE"); - out.println("Received: " + listenerTrace); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate3cTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("new"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("new2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - // Verify that a UIInput instance that has a local value, - // and the valid property is true all validators associated - // with the component are invoked, if the component is marked - // invalid by a validator, no listener is invoked. - input.setSubmittedValue("new"); - - // Setup the validators - TCKValidator validator1 = new TCKValidator("VL1", false); - TCKValidator validator2 = new TCKValidator("VL2", true); - - input.addValidator(validator1); - request.setAttribute("TCKValidator", validator2); - - ELContext context2 = context.getELContext(); - MethodExpression binding = getApplication().getExpressionFactory().createMethodExpression(context2, - "#{requestScope.TCKValidator.validate}", null, new Class[] { FacesContext.class, UIComponent.class, Object.class }); - - MethodExpressionValidator validator = new MethodExpressionValidator(binding); - input.addValidator(validator); - - // Setup the listeners - TCKValueChangeListener listener = new TCKValueChangeListener("VCL1"); - - input.addValueChangeListener(listener); - input.setSubmittedValue("new2"); - - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - // finally, if the new and previous values do not differ, - // the listener will not be invoked. - input.setSubmittedValue("new"); - input.setValue("new"); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - String valTrace = TCKValidator.getTrace(); - if (!"/VL1/VL2".equals(valTrace)) { - out.println(JSFTestUtil.FAIL + " Validator trace did not return as " - + "expected."); - out.println("Traced expected: /VL1/VL2"); - out.println("Trace received: " + valTrace); - return; - } - - String listenerTrace = TCKValueChangeListener.trace(); - if (listenerTrace.length() != 0) { - out.println(JSFTestUtil.FAIL + " ValueChangeListener was incorrectly" - + " invoked after a Validator marked the component as invalid."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("converted"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("converted2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - Converter converter = new TCKConverter(); - input.setConverter(converter); - - input.setSubmittedValue("new"); - - input.setValid(true); - input.setRequired(true); - input.validate(context); - - if (!"converted".equals(input.getValue())) { - out.println(JSFTestUtil.FAIL + " Converter available to the component" - + " via getConverter(), but the converter wasn't called."); - out.println("Expected the value after conversion to be 'converted'"); - out.println("Value received: " + input.getValue()); - return; - } - - // now verify the proper behavior if conversion fails - input.setSubmittedValue("fail"); - input.validate(context); - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Conversion failure should have resulted" - + " in the component in question being marked as invalid."); - return; - } - - if (JSFTestUtil.getAsArray(context.getMessages()).length < 1) { - out.println(JSFTestUtil.FAIL + " No messages queued as required in the " - + "case of conversion failure."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - @Override - public void uiInputValidate5Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - input.setRendererType(null); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("converted"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("converted2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - Application application = getApplication(); - UIViewRoot root = application.getViewHandler().createView(context, "/root"); - context.setViewRoot(root); - root.getChildren().add(input); - - application.addConverter(Boolean.class, - "com.sun.ts.tests.jsf.api.jakarta_faces.component.common.TCKConverter"); - - // setup value binding - request.setAttribute("simple", new TestBean()); - - ELContext context2 = context.getELContext(); - ValueExpression binding = getApplication().getExpressionFactory().createValueExpression(context2, - "#{requestScope.simple.boolWrapProp}", Object.class); - input.setValueExpression("value", binding); - - // run through validation - input.setSubmittedValue("new"); - - input.setValid(true); - input.setRequired(true); - input.validate(context); - - if (!"converted".equals(input.getValue())) { - out.println(JSFTestUtil.FAIL + " Converter available to the component" - + " via getConverter(), but the converter wasn't called."); - out.println("Expected the value after conversion to be 'converted'"); - out.println("Value received: " + input.getValue()); - return; - } - - // now verify the proper behavior if conversion fails - input.setSubmittedValue("fail"); - input.validate(context); - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " Conversion failure should have resulted" - + " in the component in question being marked as invalid."); - return; - } - - if (JSFTestUtil.getAsArray(context.getMessages()).length < 1) { - out.println(JSFTestUtil.FAIL + " No messages queued as required in the " - + "case of conversion failure."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void uiInputValidate6Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIInput input = (UIInput) createComponent(); - UISelectItem item1 = new UISelectItem(); - item1.setItemValue("converted"); - UISelectItem item2 = new UISelectItem(); - item2.setItemValue("converted2"); - input.getChildren().add(item1); - input.getChildren().add(item2); - FacesContext context = getFacesContext(); - UIViewRoot root = getApplication().getViewHandler().createView(context, - "/root"); - root.getChildren().add(input); - - // if the item selected doens't match the list of - // available items, then queue a message and mark the component - // invalid. - - input.setSubmittedValue("invalid"); - input.setValid(true); - TCKValueChangeListener.trace(null); - TCKValidator.clearTrace(); - - root.processValidators(context); - - int messageCount = checkMessages(); - if (messageCount != 1) { - out.println(JSFTestUtil.FAIL + " No message queued into the FacesContext" - + " when the item selected doesn't match the list of available" - + " items."); - return; - } - - if (input.isValid()) { - out.println(JSFTestUtil.FAIL + " UIInput instance was not marked invalid" - + " when the item selected didn't match the list of available" - + " values."); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/URLClient.java deleted file mode 100644 index ac49db5900..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/URLClient.java +++ /dev/null @@ -1,1400 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.component.uiinput.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_selone_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Run tests */ - // ============================================ Tests ====== - // ----------------------------------------------------------------- - // UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null if there is no - * currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:887 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:536 - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:541; JSF:JAVADOC:483 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:540 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:443 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - /** - * @testName: valueHolderGetSetValueTest - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - /** - * @testName: valueHolderGetSetConverterTest - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // ----------------------------------------------------- EditableValueHolder - /** - * @testName: editableValueHolderIsSetValidTest - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderGetSetSubmittedValueTest - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426 - * @test_Strategy: Verify {get,set}SubmittedValue() - if a value is set, the - * expected value is returned. - */ - public void editableValueHolderGetSetSubmittedValueTest() - throws EETest.Fault { - super.editableValueHolderGetSetSubmittedValueTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * @assertion_ids: JSF:JAVADOC:407; JSF:JAVADOC:888 - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:409; JSF:JAVADOC:888 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * @assertion_ids: JSF:JAVADOC:421; JSF:JAVADOC:888 - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderIsSetImmediateTest - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:423 - * @test_Strategy: editableValueHolder.{is,set}Immediate(): Validate that the - * default value is false and that if we change the value via - * setImmediate that we get the correct value back. - */ - public void editableValueHolderIsSetImmediateTest() throws EETest.Fault { - super.editableValueHolderIsSetImmediateTest(); - } - - /** - * @testName: editableValueHolderIsSetLocalValueSetTest - * @assertion_ids: JSF:JAVADOC:416; JSF:JAVADOC:424 - * @test_Strategy: Validate the following statements. isLocalValueSet() - - * Return the "local value set" state for this component. - * Calls to setValue() automatically reset this property to - * true. - * - * setLocalValueSet() - Sets the "local value set" state for - * this component. - */ - public void editableValueHolderIsSetLocalValueSetTest() throws EETest.Fault { - super.editableValueHolderIsSetLocalValueSetTest(); - } - - // ----------------------------------------------------------------- UIInput - /** - * @testName: uiInputBroadcastTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify that the ValueChangeListeners are invoked in order - * or registration and that they are only invoked during the - * PROCESS_VALIDATIONS phase. - */ - public void uiInputBroadcastTest() throws EETest.Fault { - super.uiInputBroadcastTest(); - } - - /** - * @testName: uiInputBroadcastValueChangeListenerTest - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:741 - * @test_Strategy: Verify any listeners referenced via a value change listener - * ref are invoked when broadcast() is invoked(). - */ - public void uiInputBroadcastValueChangeListenerTest() throws EETest.Fault { - super.uiInputBroadcastValueChangeListenerTest(); - } - - /** - * @testName: uiInputUpdateModelFailsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is unsuccessful, the - * underlying bean is not updated, the local value is not - * modified, the valid property of the component is false, and - * a message is queued into the FacesContext. - */ - public void uiInputUpdateModelFailsTest() throws EETest.Fault { - super.uiInputUpdateModelFailsTest(); - } - - /** - * @testName: uiInputUpdateModelNoActionTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify if the component's valid property is false, or there - * is no ValueExpression associated wit the component, no action - * is taken when updateModel() is called. - */ - public void uiInputUpdateModelNoActionTest() throws EETest.Fault { - super.uiInputUpdateModelNoActionTest(); - } - - /** - * @testName: uiInputUpdateModelSucceedsTest - * @assertion_ids: JSF:JAVADOC:785 - * @test_Strategy: Verify when the updateModel() call is successful, the - * underlying bean is indeed updated and the local value of - * the component is set to null. - */ - public void uiInputUpdateModelSucceedsTest() throws EETest.Fault { - super.uiInputUpdateModelSucceedsTest(); - } - - /** - * @testName: uiInputValidate1Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify a message is queued to the FacesContext and the - * UIInput object is marked invalid if it has a null or a - * zero-length String as its value when processing - * validations. - */ - public void uiInputValidate1Test() throws EETest.Fault { - super.uiInputValidate1Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate2Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that getConvertedValue() is called on the Renderer - * that is associated with the component under test when the - * validate() method is called. - */ - public void uiInputValidate2Test() throws EETest.Fault { - super.uiInputValidate2Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate3aTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If a - * validator marked a component as invalid, the associated - * ValueChangeListener must not be invoked. - */ - public void uiInputValidate3aTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3aTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3bTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is - * different from the previous value, invoke the - * ValueChangeListener. - */ - public void uiInputValidate3bTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3bTest"); - invoke(); - } - - /** - * @testName: uiInputValidate3cTest - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: - If the component is valid, call the validate() method on - * all registered validators, and THEN the validate() method - * on the validator referenced by validatorRef - If the - * validators pass the component, and the new value is the - * same as the old, do not invoke the ValueChangeListener - */ - public void uiInputValidate3cTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate3cTest"); - invoke(); - } - - /** - * @testName: uiInputValidate4Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that a converter available via getConverter() is - * called to convert the submitted value. Additionally verify - * if an exception is thrown during the conversion process, a - * message is queued to the FacesContext and the component is - * marked invalid. - */ - public void uiInputValidate4Test() throws EETest.Fault { - super.uiInputValidate4Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate5Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: Verify that if no Converter is returned by getConverter() - * and 'value' is a ValueExpression, get the use the type to - * create a Converter for that type and use it to convert the - * submitted value. Additionally verify if an exception is - * thrown during the conversion process, a message is queued - * to the FacesContext and the component is marked invalid. - */ - public void uiInputValidate5Test() throws EETest.Fault { - super.uiInputValidate5Test(); // To change body of overridden methods - // use Options | File Templates. - } - - /** - * @testName: uiInputValidate6Test - * @assertion_ids: JSF:JAVADOC:787 - * @test_Strategy: If the selected item is not one of the available sections, - * ensure a message is queued to the FacesContext and the - * component is marked invalid. - */ - public void uiInputValidate6Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiInputValidate6Test"); - invoke(); - } - - /** - * @testName: uiInputResetValueTest - * @assertion_ids: JSF:JAVADOC:770 - * @test_Strategy: Verify that calling resetValue() will cause the following: - * - value set to null - submitted value set to null - - * component is marked as valid - flag denoting that a local - * value is set is false - * @since 1.2 - */ - public void uiInputResetValueTest() throws Fault { - super.uiInputResetValueTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/build.xml deleted file mode 100644 index 47657aa01e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.war.sun-web.xml deleted file mode 100644 index cc2a3e7b9d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_selone_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.xml deleted file mode 100644 index 1a6dfb2a3d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiselectone/jsf_comp_selone_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - jsf_comp_selone - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiselectone.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/TestServlet.java deleted file mode 100644 index 6f7cdd460e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/TestServlet.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewaction; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIViewAction; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIViewAction(); - } - - // ------------------------------------------- UIViewAction Tests - - // UIViewAction.broadcast(FacesContext) throws NullPointerException - public void uiViewActionBroadcastNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewAction viewAction = (UIViewAction) createComponent(); - viewAction.setRendererType(null); - - try { - viewAction.broadcast(null); - out.println(JSFTestUtil.FAIL - + "Expected a NullPointerException to be thrown and it wasn't!"); - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + "Wrong Exception Thrown!" + JSFTestUtil.NL - + "Expected: NullPointerException" + JSFTestUtil.NL + "Received: " - + e.toString()); - } - - } // End uiViewActionBroadcastNPETest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/URLClient.java deleted file mode 100644 index 0b69309e71..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/URLClient.java +++ /dev/null @@ -1,1212 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/** - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewaction; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_viewaction_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** Run tests */ - - // ------------------------------------------------ UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * - * @assertion_ids: JSF:JAVADOC:487 - * - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * - * @assertion_ids: JSF:JAVADOC:504 - * - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * - * @assertion_ids: JSF:JAVADOC:509 - * - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:510 - * - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:509 - * - * @test_Strategy: Verify getCurrentComponent() returns null if there is no - * currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:512 - * - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:511 - * - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:535 - * - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * - * @assertion_ids: JSF:JAVADOC:535 - * - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:887 - * - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * - * @assertion_ids: JSF:JAVADOC:536 - * - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * - * @assertion_ids: JSF:JAVADOC:536 - * - * @test_Strategy: Verify isInView() Retuns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:541 - * - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:549 - * - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:549 - * - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629 - * - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * - * @assertion_ids: JSF:JAVADOC:553 - * - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * - * @assertion_ids: JSF:JAVADOC:554 - * - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * - * @assertion_ids: JSF:JAVADOC:539 - * - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * - * @assertion_ids: JSF:JAVADOC:540 - * - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:529 - * - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:569 - * - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * - * @assertion_ids: JSF:JAVADOC:568 - * - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * - * @assertion_ids: JSF:JAVADOC:570 - * - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * - * @assertion_ids: JSF:JAVADOC:2547 - * - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * - * @assertion_ids: JSF:JAVADOC:575 - * - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * - * @assertion_ids: JSF:JAVADOC:575 - * - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - /** - * @testName: stateHolderIsSetTransientTest - * - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:443 - * - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:446 - * - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // ---------------------------------------------------UIViewAction - - /** - * @testName: uiViewActionBroadcastNPETest - * - * @assertion_ids: JSF:JAVADOC:478; JSF:JAVADOC:2559 - * - * @test_Strategy: Validate that a NullPointerException is thrown, if event is - * null. - * - * @since: 2.2 - */ - public void uiViewActionBroadcastNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "uiViewActionBroadcastNPETest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/build.xml deleted file mode 100644 index c0ab8b2f2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.war.sun-web.xml deleted file mode 100644 index 80f8893f7f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_viewaction_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.xml deleted file mode 100644 index 3b398a76bc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewaction/jsf_comp_viewaction_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - uiviewaction - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewaction.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/TestServlet.java deleted file mode 100644 index 128bea9668..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/TestServlet.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewparameter; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIViewParameter; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIViewParameter(); - } - - // ----------------------------------------- UIViewParameter - - public void uiViewParameterIsImmediateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewParameter viewparam = (UIViewParameter) createComponent(); - - if (viewparam.isImmediate()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Default setting for 'isImmediate() " + " MUST be false!"); - - } else { - // UIViewparameter.isImmediate() should always return false. - // (according to API doc.) - viewparam.setImmediate(true); - if (viewparam.isImmediate()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unxpected value returned from isImmediate()" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: true"); - - } else { - out.println(JSFTestUtil.PASS); - } - } - } // End uiViewParameterIsImmediateTest - - public void uiViewParameterGetSetNameTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String golden = "Bytor"; - UIViewParameter viewparam = (UIViewParameter) createComponent(); - - viewparam.setName(golden); - - if (golden.equals(viewparam.getName())) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + " Unexpected Value returned from getName()!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + viewparam.getName()); - } - - } // End uiViewParameterGetSetNameTest - - public void uiViewParameterGetSetSubmittedValueTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewParameter viewparam = (UIViewParameter) createComponent(); - String golden = "true"; - - viewparam.setSubmittedValue(golden); - String result = (String) viewparam.getSubmittedValue(); - - if (!(golden.equals(result))) { - out.println(JSFTestUtil.FAIL - + " Value returned by getSubmittedValue() was not the value set by " - + "setSubmittedValue()." + JSFTestUtil.NL + "Expected: " + golden - + JSFTestUtil.NL + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End uiViewParameterGetSetSubmittedValueTest - - public void uiViewParameterGetStringValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewParameter viewparam = (UIViewParameter) createComponent(); - String golden = "true"; - - viewparam.setValue(golden); - String result = viewparam.getStringValue(context); - - if (!(golden.equals(result))) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Wrong value returned by getStringValue()!" + JSFTestUtil.NL - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End uiViewParameterGetStringValueTest - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/URLClient.java deleted file mode 100644 index 719ccff270..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/URLClient.java +++ /dev/null @@ -1,1378 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewparameter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_viewparameter_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ============================================ Tests ====== - - // ----------------------------------------------------- EditableValueHolder - /** - * @testName: editableValueHolderIsSetValidTest - * - * @assertion_ids: JSF:JAVADOC:418; JSF:JAVADOC:427 - * - * @test_Strategy: Verify {is,set}Valid() - if a value is set, the same value - * is returned. - */ - public void editableValueHolderIsSetValidTest() throws EETest.Fault { - super.editableValueHolderIsSetValidTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValidatorTest - * - * @assertion_ids: JSF:JAVADOC:412; JSF:JAVADOC:406; JSF:JAVADOC:411; - * JSF:JAVADOC:419 - * - * @test_Strategy: Verify the default behavior of addValidator(), - * removeValidator(), and getValidators() by first adding a - * validator to the EditableValueHolder instance, then calling - * getValidators() and ensure the expected length and instance - * contained in the array. Then call removeValidator(). Ensure - * the array size is as expected. - */ - public void editableValueHolderAddGetRemoveValidatorTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValidatorTest(); - } - - /** - * @testName: editableValueHolderIsSetRequiredTest - * - * @assertion_ids: JSF:JAVADOC:417; JSF:JAVADOC:425 - * - * @test_Strategy: Verify {is,set}Required - if a value is set, the expected - * value is returned. - */ - public void editableValueHolderIsSetRequiredTest() throws EETest.Fault { - super.editableValueHolderIsSetRequiredTest(); - } - - /** - * @testName: editableValueHolderAddGetRemoveValueChangeListenerTest - * - * @assertion_ids: JSF:JAVADOC:414; JSF:JAVADOC:408; JSF:JAVADOC:413; - * JSF:JAVADOC:420 - * - * @test_Strategy: Verify the addition and or removal of ValueChangeListeners - * from the component is property reflected in the value - * returned by getValueChangeListeners(). - */ - public void editableValueHolderAddGetRemoveValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderAddGetRemoveValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderGetSetValueChangeListenerTest - * - * @assertion_ids: JSF:JAVADOC:413; JSF:JAVADOC:429 - * - * @test_Strategy: editableValueHolder.{set,get}ValueChangeListener - if a - * value is set, the expected value is returned. - */ - public void editableValueHolderGetSetValueChangeListenerTest() - throws EETest.Fault { - super.editableValueHolderGetSetValueChangeListenerTest(); - } - - /** - * @testName: editableValueHolderAddValidatorNPETest - * - * @assertion_ids: JSF:JAVADOC:407; JSF:JAVADOC:888 - * - * @test_Strategy: Validate that addValidator throws a NullPointerException - * when Validator is null - */ - public void editableValueHolderAddValidatorNPETest() throws EETest.Fault { - super.editableValueHolderAddValidatorNPETest(); - } - - /** - * @testName: editableValueHolderAddValueChangeListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:409; JSF:JAVADOC:888 - * - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderAddValueChangeListenerNPETest() throws Fault { - super.editableValueHolderAddValueChangeListenerNPETest(); - } - - /** - * @testName: editableValueHolderRemoveValueChangeListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:421; JSF:JAVADOC:888 - * - * @test_Strategy: Validate that addValueChangeListener throws a - * NullPointerException when ValueChangeListener is null - */ - public void editableValueHolderRemoveValueChangeListenerNPETest() - throws Fault { - super.editableValueHolderRemoveValueChangeListenerNPETest(); - } - - // ----------------------------------------------------------------- - // UIComponent - - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * - * @assertion_ids: JSF:JAVADOC:490; JSF:JAVADOC:586 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginELTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that when encodeBegin() is called that a call is - * made to - * pushComponentToEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeBeginELTest() throws EETest.Fault { - super.uiComponentEncodeBeginELTest(); - } - - /** - * @testName: uiComponentEncodeBeginTest - * - * @assertion_ids: JSF:JAVADOC:488; JSF:JAVADOC:584 - * - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * - * @assertion_ids: JSF:JAVADOC:493; JSF:JAVADOC:589 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * - * @assertion_ids: JSF:JAVADOC:491; JSF:JAVADOC:587 - * - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * - * @assertion_ids: JSF:JAVADOC:496; JSF:JAVADOC:592 - * - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * - * @assertion_ids: JSF:JAVADOC:487 - * - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeEndELTest - * - * @assertion_ids: JSF:JAVADOC:494; JSF:JAVADOC:590 - * - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it calls - * popComponentFromEL(jakarta.faces.context.FacesContext). - * - * @since 2.0 - */ - public void uiComponentEncodeEndELTest() throws EETest.Fault { - super.uiComponentEncodeEndELTest(); - - } - - /** - * @testName: uiComponentFindComponentIAETest - * - * @assertion_ids: JSF:JAVADOC:498; JSF:JAVADOC:594 - * - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:499; JSF:JAVADOC:595 - * - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * - * @assertion_ids: JSF:JAVADOC:497; JSF:JAVADOC:593 - * - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:500 - * - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * - * @assertion_ids: JSF:JAVADOC:597; JSF:JAVADOC:501 - * - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * - * @assertion_ids: JSF:JAVADOC:502; JSF:JAVADOC:598 - * - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * - * @assertion_ids: JSF:JAVADOC:505; JSF:JAVADOC:601 - * - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * - * @assertion_ids: JSF:JAVADOC:503; JSF:JAVADOC:600 - * - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * - * @assertion_ids: JSF:JAVADOC:504 - * - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * - * @assertion_ids: JSF:JAVADOC:509 - * - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:510 - * - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:509 - * - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:512 - * - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * - * @assertion_ids: JSF:JAVADOC:511 - * - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * - * @assertion_ids: JSF:JAVADOC:535 - * - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * - * @assertion_ids: JSF:JAVADOC:534 - * - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * - * @assertion_ids: JSF:JAVADOC:516; JSF:JAVADOC:607 - * - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * - * @assertion_ids: JSF:JAVADOC:515; JSF:JAVADOC:606 - * - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:604 - * - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * - * @assertion_ids: JSF:JAVADOC:517; JSF:JAVADOC:892 - * - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * - * @assertion_ids: JSF:JAVADOC:524; JSF:JAVADOC:611 - * - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * - * @assertion_ids: JSF:JAVADOC:518; JSF:JAVADOC:558; JSF:JAVADOC:608; - * JSF:JAVADOC:641 - * - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * - * @assertion_ids: JSF:JAVADOC:522; JSF:JAVADOC:561; JSF:JAVADOC:609; - * JSF:JAVADOC:642 - * - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * - * @assertion_ids: JSF:JAVADOC:523;JSF:JAVADOC:563; JSF:JAVADOC:610; - * JSF:JAVADOC:644 - * - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:614 - * - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * - * @assertion_ids: JSF:JAVADOC:531; JSF:JAVADOC:532; JSF:JAVADOC:533; - * JSF:JAVADOC:615; JSF:JAVADOC:616 - * - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * - * @assertion_ids: JSF:JAVADOC:537; JSF:JAVADOC:562; JSF:JAVADOC:617; - * JSF:JAVADOC:643 - * - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentIsInViewTest - * - * @assertion_ids: JSF:JAVADOC:536 - * - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewTest() throws EETest.Fault { - super.uiComponentIsInViewTest(); - } - - /** - * @testName: uiComponentIsInViewNegTest - * - * @assertion_ids: JSF:JAVADOC:536 - * - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - */ - public void uiComponentIsInViewNegTest() throws EETest.Fault { - super.uiComponentIsInViewNegTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:541; JSF:JAVADOC:889 - * - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:545; JSF:JAVADOC:547; JSF:JAVADOC:622; - * JSF:JAVADOC:624 - * - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:548; JSF:JAVADOC:625 - * - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:546; JSF:JAVADOC:623 - * - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * - * @assertion_ids: JSF:JAVADOC:545;JSF:JAVADOC:547 - * - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:549 - * - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:549 - * - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * - * @assertion_ids: JSF:JAVADOC:549; JSF:JAVADOC:763 - * - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:627 - * - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * - * @assertion_ids: JSF:JAVADOC:628 - * - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629; JSF:JAVADOC:899 - * - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * - * @assertion_ids: JSF:JAVADOC:553 - * - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * - * @assertion_ids: JSF:JAVADOC:554 - * - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * - * @assertion_ids: JSF:JAVADOC:539 - * - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * - * @assertion_ids: JSF:JAVADOC:540 - * - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * - * @assertion_ids: JSF:JAVADOC:640; JSF:JAVADOC:559 - * - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * - * @assertion_ids: JSF:JAVADOC:567;JSF:JAVADOC:528 - * - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:529 - * - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * - * @since 2.0 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * - * @assertion_ids: JSF:JAVADOC:569 - * - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * - * @assertion_ids: JSF:JAVADOC:568 - * - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * - * @since 2.0 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * - * @assertion_ids: JSF:JAVADOC:570 - * - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * - * @assertion_ids: JSF:JAVADOC:2547 - * - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * - * @assertion_ids: JSF:JAVADOC:575 - * - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * - * @assertion_ids: JSF:JAVADOC:575 - * - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // ----------------------------------------------------------------- - // StateHolder - - /** - * @testName: stateHolderIsSetTransientTest - * - * @assertion_ids: JSF:JAVADOC:442;JSF:JAVADOC:447 - * - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:443 - * - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:444; JSF:JAVADOC:445 - * - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:446 - * - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ------------------------------------------------------------- - // PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - - // -------------------------------------------------------------- - // ValueHolder - - /** - * @testName: valueHolderGetSetValueTest - * - * @assertion_ids: JSF:JAVADOC:966; JSF:JAVADOC:968 - * - * @test_Strategy: Verify {get,set}Value() - if a value is set, the same value - * is returned. - */ - public void valueHolderGetSetValueTest() throws EETest.Fault { - super.valueHolderGetSetValueTest(); - } - - // ------------------------------------------------------------- ValueHolder - - /** - * @testName: valueHolderGetSetConverterTest - * - * @assertion_ids: JSF:JAVADOC:964; JSF:JAVADOC:967 - * - * @test_Strategy: Verify {get,set}Converter() - if a value is set, the same - * value is returned. - */ - public void valueHolderGetSetConverterTest() throws EETest.Fault { - super.valueHolderGetSetConverterTest(); - } - - // --------------------------------------------- UIViewParameter - - /** - * @testName: uiViewParameterIsImmediateTest - * - * @assertion_ids: JSF:JAVADOC:415; JSF:JAVADOC:898; JSF:JAVADOC:902 - * - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiViewParameterIsImmediateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewParameterIsImmediateTest"); - invoke(); - } - - /** - * @testName: uiViewParameterGetSetNameTest - * - * @assertion_ids: JSF:JAVADOC:893; JSF:JAVADOC:900 - * - * @test_Strategy: Validate the following: we can set the name - * value(setname()) we can get the name value(getname()) - */ - public void uiViewParameterGetSetNameTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewParameterGetSetNameTest"); - invoke(); - } - - /** - * @testName: uiViewParameterGetStringValueTest - * - * @assertion_ids: JSF:JAVADOC:410; JSF:JAVADOC:426; JSF:JAVADOC:894 - * - * @test_Strategy: Verify getStringValue() - if a value is set, the expected - * value is returned. - */ - public void uiViewParameterGetStringValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewParameterGetStringValueTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/build.xml deleted file mode 100644 index a0f0dcc298..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.war.sun-web.xml deleted file mode 100644 index 9150129192..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_viewparameter_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.xml deleted file mode 100644 index 67060151b1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewparameter/jsf_comp_viewparameter_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_comp_viewparameter - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewparameter.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/CustomOutput.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/CustomOutput.java deleted file mode 100644 index ed8fe9a233..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/CustomOutput.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot; - -import jakarta.faces.component.UIOutput; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ComponentSystemEvent; - -public class CustomOutput extends UIOutput { - - private boolean processEventInvoked; - - private ComponentSystemEvent event; - - private String myValue = "Default_Test_Value"; - - public void processEvent(ComponentSystemEvent event) - throws AbortProcessingException { - processEventInvoked = true; - this.event = event; - } - - public void reset() { - processEventInvoked = false; - event = null; - } - - public boolean isProcessEventInvoked() { - return processEventInvoked; - } - - public ComponentSystemEvent getEvent() { - return event; - } - - @Override - public String getValue() { - return myValue; - } - - public void setValue(Object s) { - myValue = s.toString(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKPhaseListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKPhaseListener.java deleted file mode 100644 index 1785eeb905..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKPhaseListener.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot; - -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; - -public class TCKPhaseListener implements PhaseListener { - - @Override - public void afterPhase(PhaseEvent event) { - // TODO Auto-generated method stub - - } - - @Override - public void beforePhase(PhaseEvent event) { - // TODO Auto-generated method stub - - } - - @Override - public PhaseId getPhaseId() { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKSystemEventListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKSystemEventListener.java deleted file mode 100644 index 4c93384915..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TCKSystemEventListener.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListener; - -public class TCKSystemEventListener implements SystemEventListener { - - @Override - public void processEvent(SystemEvent event) throws AbortProcessingException { - // TODO Auto-generated method stub - - } - - @Override - public boolean isListenerForSource(Object source) { - // TODO Auto-generated method stub - return false; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TestServlet.java deleted file mode 100644 index 2b35bbda69..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/TestServlet.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; - -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseComponentTestServlet; -import com.sun.ts.tests.jsf.common.beans.AlbumBean; -import com.sun.ts.tests.jsf.common.event.TCKSystemEvent; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.MethodExpression; -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIComponentBase; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.FacesEvent; -import jakarta.faces.event.PhaseListener; -import jakarta.faces.event.SystemEventListener; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; - -public final class TestServlet extends BaseComponentTestServlet { - - private static final String TEST_VALUE = "Default_Test_Value"; - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - setRendererType(null); - } - - /** - *

- * Creates a new {@link jakarta.faces.component.UIComponent} instance. - *

- * - * @return a new {@link jakarta.faces.component.UIComponent} instance. - */ - @Override - protected UIComponentBase createComponent() { - return new UIViewRoot(); - } - - // ------------------------------------------- Test Methods - - // Test for UIViewRoot.addComponentResource(FacesContext, UIComponent) - public void uiViewRootaddComponentResourceFCTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - UIComponent myComp = new CustomOutput(); - - root.addComponentResource(context, myComp); - List children = root.getComponentResources(context, "head"); - - if (testValue(out, children, TEST_VALUE) - && testSize(out, children, 1, "head")) { - out.println(JSFTestUtil.PASS); - } - } - - // UIViewRoot.addComponentResource(FacesContext, UIComponent, String) - public void uiViewRootaddComponentResourceFCTTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - UIComponent myComp = new CustomOutput(); - - root.addComponentResource(context, myComp, "body"); - List children = root.getComponentResources(context, "body"); - - if (testValue(out, children, TEST_VALUE) - && testSize(out, children, 1, "body")) { - out.println(JSFTestUtil.PASS); - } - } - - // UIViewRoot.addComponentResource(FacesContext, UIComponent, null) - public void uiViewRootaddComponentResourceComponentTargetTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - UIComponent myComp = new CustomOutput(); - - boolean tf = true; - root.addComponentResource(context, myComp, null); - List children = root.getComponentResources(context, "head"); - - if (!(testValue(out, children, TEST_VALUE) - && testSize(out, children, 1, "head"))) { - tf = false; - } - - // Added target value to teh Component itself. - myComp.getAttributes().put("target", "body"); - root.addComponentResource(context, myComp, null); - List childrenTwo = root.getComponentResources(context, "body"); - if (!(testValue(out, childrenTwo, TEST_VALUE) - && testSize(out, childrenTwo, 1, "body "))) { - tf = false; - } - - if (tf) { - out.println(JSFTestUtil.PASS); - } - } - - // Test for UIViewRoot.addComponentResource(FacesContext, UIComponent, - // String) - public void uiViewRootaddComponentResourceComponentNegTargetTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - UIComponent myComp = new CustomOutput(); - - boolean tf = true; - myComp.getAttributes().put("target", "head"); - root.addComponentResource(context, myComp, "body"); - List bodyComp = root.getComponentResources(context, "body"); - List headComp = root.getComponentResources(context, "head"); - - if (!(headComp.isEmpty())) { - if (!(testValue(out, headComp, "NONE"))) { - tf = false; - } - } - if (!(testSize(out, bodyComp, 1, "body"))) { - tf = false; - } - - if (tf) { - out.println(JSFTestUtil.PASS); - } - } - - // Test for UIViewRoot.getComponentResources(FacesContext, null) - public void uiViewRootgetComponentResourcesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // UIViewRoot.getComponentResources(FacesContext, null) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "getComponentResources", - new Class[] { FacesContext.class, String.class }, - new Object[] { getFacesContext(), null }, out); - - } - - // Test for UIViewRoot.removeComponentResource(FacesContext, UIComponent) - public void uiViewRootremoveComponentResourceTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - UIComponent myComp = new CustomOutput(); - - // add the resource & test to make sure its there. - root.addComponentResource(context, myComp); - List children = root.getComponentResources(context, "head"); - - if (testValue(out, children, TEST_VALUE) - && testSize(out, children, 1, "head")) { - // do nothing the resource is has been added. - } else { - return; - } - - // Remove the resource & test to make sure it is no longer available. - root.removeComponentResource(context, myComp); - children = root.getComponentResources(context, "head"); - if (children.isEmpty()) { - out.println(JSFTestUtil.PASS); - } else { - testValue(out, children, "Empty"); - } - - } - - // Test for UIViewRoot.removeComponentResource(FacesContext, UIComponent) - public void uiViewRootremoveComponentResourceNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // UIViewRoot.removeComponentResource(FacesContext, null) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "removeComponentResource", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { getFacesContext(), null }, out); - } - - // UIViewRoot.isInView() - public void uiViewRootIsInViewTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewRoot root = getFacesContext().getViewRoot(); - UIComponent comp = createComponent(); - - String ct = comp.getClass().getName(); - root.getChildren().add(comp); - - if (!comp.isInView()) { - out.println(JSFTestUtil.FAIL + ct + "isInView() returned false. " - + "Expected UIcomponent to be in the View."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIViewRoot.isInView() - public void uiViewRootIsInViewNegTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent comp = createComponent(); - - String ct = comp.getClass().getName(); - - if (!comp.isInView()) { - out.println(JSFTestUtil.FAIL + ct + "isInView() returned false. " - + "Expected UIcomponent to be in the View."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // UIViewRoot.addPhaseListeners(PhaseListener) - // UIViewRoot.getPhaseListeners() - public void uiViewRootAddGetPhaseListenersTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - List result = new ArrayList(); - - PhaseListener myListener = new TCKPhaseListener(); - root.addPhaseListener(myListener); - - result = root.getPhaseListeners(); - - if (!result.contains(myListener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected result from add/getPhaseListners!" + JSFTestUtil.NL - + "We are missing a customer PhaseListener that should " - + "have been added by this testcase."); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiViewRootAddGetPhaseListenersTest - - // UIViewRoot.getViewId() - // UIViewRoot.setViewId(String) - public void uiViewRootSetGetViewIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - String myId = "myId"; - - root.setViewId(myId); - String result = root.getViewId(); - - if (!myId.equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected result set/getViewId()!" + JSFTestUtil.NL + "Expected: " - + myId + JSFTestUtil.NL + "Received: " + result); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End uiViewRootSetGetViewIdTest - - public void uiViewRootSubscribeToViewEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - List listeners; - SystemEventListener tckListener = new TCKSystemEventListener(); - - // Added listener to UIViewRoot - root.subscribeToViewEvent(TCKSystemEvent.class, tckListener); - - // Check to make sure listener is available. - listeners = root.getViewListenersForEventClass(TCKSystemEvent.class); - if (!listeners.contains(tckListener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected TCKSystemEventListener to be available!"); - return; - } - - // Remove listener from UIViewRoot - root.unsubscribeFromViewEvent(TCKSystemEvent.class, tckListener); - - // Check to make sure listener is NOT available. - listeners = root.getViewListenersForEventClass(TCKSystemEvent.class); - if (listeners.contains(tckListener)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected TCKSystemEventListener NOT to be available!"); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End uiViewRootSubscribeToViewEventNPETest - - // UIViewRoot.unsubscribeFromViewEvent(Class,SystemEventListener) - // throws NullPointerException - public void uiViewRootUnsubscribeFromViewEventNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // UIViewRoot.unsubscribeFromViewEvent(null, SystemEventListener) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "unsubscribeFromViewEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { null, new TCKSystemEventListener() }, out); - - // UIViewRoot.unsubscribeFromViewEvent(Class, null) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "unsubscribeFromViewEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { new TCKSystemEvent(new UICommand()).getClass(), null }, - out); - - }// End uiViewRootUnsubscribeFromViewEventNPETest - - // UIViewRoot.subscribeToViewEvent(Class, SystemEventListener) - // throws NullPointerException - public void uiViewRootSubscribeToViewEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // UIViewRoot.subscribeToViewEvent(null, SystemEventListener) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "subscribeToViewEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { null, new TCKSystemEventListener() }, out); - - // UIViewRoot.subscribeToViewEvent(Class, null) - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "subscribeToViewEvent", - new Class[] { Class.class, SystemEventListener.class }, - new Object[] { new TCKSystemEvent(new UICommand()).getClass(), null }, - out); - - }// End uiViewRootSubscribeToViewEventNPETest - - // UIViewRoot.createUniquId(FacesContext, String) - public void uiViewRootCreateUniqueIDTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String tckSeed = "TCK_ID"; - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - root.setId(root.createUniqueId(context, tckSeed)); - String result = root.getId(); - String prefix = UIViewRoot.UNIQUE_ID_PREFIX; - - if (!result.contains(tckSeed)) { - out.println(JSFTestUtil.FAIL + "Unexpected result from .getId()!" - + JSFTestUtil.NL + "Expected ViewId to contain: " + tckSeed - + JSFTestUtil.NL + "Received: " + root); - - } else if (!result.contains(prefix)) { - out.println(JSFTestUtil.FAIL + "Unexpected result from .getId()!" - + JSFTestUtil.NL + "Expected ViewId to contain: " + prefix - + JSFTestUtil.NL + "Received: " + root); - } else { - out.println(JSFTestUtil.PASS); - } - } // End uiViewRootCreateUniqueIDTest - - // UIViewRoot.setLocale(Locale) - // UIViewRoot.getLocale() - public void uiViewRootSetGetLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "English"; - getFacesContext().getViewRoot().setLocale(Locale.ENGLISH); - String result = getFacesContext().getViewRoot().getLocale() - .getDisplayName(); - - if (!golden.equalsIgnoreCase(result)) { - out.println(JSFTestUtil.FAIL + "Inexpected result from set/getLocale!" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - } // End uiViewRootSetGetLocaleTest - - // UIViewRoot.setRenderKitId(String) - // UIViewRoot.getRenderKitId() - public void uiViewRootSetGetRenderKitIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String golden = "tck_kit"; - getFacesContext().getViewRoot().setRenderKitId(golden); - String result = getFacesContext().getViewRoot().getRenderKitId(); - - if (!golden.equals(result)) { - out.println(JSFTestUtil.FAIL - + "Inexpected result from set/getRenderKitId!" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - } // End uiViewRootSetGetRenderKitIdTest - - // UIViewRoot.getViewListenersForEventClass(Class) throws - // NullPointerException - public void uiViewRootGetViewListenersForEventClassNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "getViewListenersForEventClass", new Class[] { Class.class }, - new Object[] { null }, out); - - }// End uiViewRootGetViewListenersForEventClassNPETest - - // UIViewRoot.processApplication(FacesContext) throws NullPointerException - public void uiViewRootProcessApplicationNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "processApplication", new Class[] { FacesContext.class }, - new Object[] { null }, out); - - }// End uiViewRootProcessApplicationNPETest - - // UIViewRoot.processDecodes(FacesContext) throws NullPointerException - public void uiViewRootProcessDecodesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "processDecodes", new Class[] { FacesContext.class }, - new Object[] { null }, out); - - }// End uiViewRootProcessDecodesNPETest - - // UIViewRoot.processUpdates(FacesContext) throws NullPointerException - public void uiViewRootProcessUpdatesNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", - "processUpdates", new Class[] { FacesContext.class }, - new Object[] { null }, out); - - }// End uiViewRootProcessUpdatesNPETest - - // UIViewRoot.queueEvent(FacesEvent) throws NullPointerException - public void uiViewRootQueueEventNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE("jakarta.faces.component.UIViewRoot", "queueEvent", - new Class[] { FacesEvent.class }, new Object[] { null }, out); - - }// End uiViewRootQueueEventNPETest - - public void uiViewRootGetSetBeforePhaseListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewRoot root = getFacesContext().getViewRoot(); - MethodExpression me = createMethodExpression(request); - - root.setBeforePhaseListener(me); - String result = root.getBeforePhaseListener().getExpressionString(); - String golden = me.getExpressionString(); - - if (!golden.equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected result returned from getBeforePhaseListener()" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End uiViewRootGetSetBeforePhaseListenerTest - - public void uiViewRootGetSetAfterPhaseListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - UIViewRoot root = getFacesContext().getViewRoot(); - MethodExpression me = createMethodExpression(request); - - root.setAfterPhaseListener(me); - String result = root.getAfterPhaseListener().getExpressionString(); - String golden = me.getExpressionString(); - - if (!golden.equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected result returned from getAfterPhaseListener()" - + JSFTestUtil.NL + "Expected: " + golden + JSFTestUtil.NL - + "Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End uiViewRootGetSetAfterPhaseListenerTest - - // ------------------------------------------------ private methods - - private MethodExpression createMethodExpression(HttpServletRequest request) { - request.setAttribute("LP", new AlbumBean()); - ExpressionFactory factory = JspFactory.getDefaultFactory() - .getJspApplicationContext(servletContext).getExpressionFactory(); - MethodExpression me = factory.createMethodExpression( - getFacesContext().getELContext(), "#{LP.album}", java.lang.String.class, - new Class[] {}); - - return me; - } - - private boolean testValue(PrintWriter out, List components, - String expValue) { - // Validate the Value of the Component. - Iterator childIterator = components.listIterator(); - while (childIterator.hasNext()) { - UIOutput uio = (UIOutput) childIterator.next(); - String resValue = (String) uio.getValue(); - - if (!(expValue.equals(resValue))) { - out.println("Test FAILED Incorrect value for " + "value attribute." - + JSFTestUtil.NL + "Expected: " + expValue + JSFTestUtil.NL - + "Received: " + resValue + JSFTestUtil.NL); - return false; - } - - } - - return true; - } - - private boolean testSize(PrintWriter out, List components, - int expSize, String target) { - int resultSize = components.size(); - - if (components.isEmpty()) { - out.println("Test FAILED no Resources rendered in the " + target - + " of the rendered output."); - return false; - } - - if (expSize != resultSize) { - out.println("Test FAILED wrong number of Resource objects" - + JSFTestUtil.NL + "Expected: " + expSize + JSFTestUtil.NL - + "Received: " + resultSize + JSFTestUtil.NL); - return false; - } - - return true; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/URLClient.java deleted file mode 100644 index 6a243eac79..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/URLClient.java +++ /dev/null @@ -1,1375 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.component.common.BaseUIComponentClient; - -import jakarta.faces.component.NamingContainer; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; - -public class URLClient extends BaseUIComponentClient { - - private static final String CONTEXT_ROOT = "/jsf_comp_viewroot_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ------------------------------------------------------------- UIComponent - /** - * @testName: uiComponentEncodeBeginNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:488 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeBegin() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeBeginNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeBeginNotRenderedTest(); - } - - /** - * /** - * - * @testName: uiComponentEncodeBeginTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:912 - * @test_Strategy: Verify that when encodeBegin() is called on the component - * under test, it delegates this call to the encodeBegin() - * method of the Renderer - */ - public void uiComponentEncodeBeginTest() throws EETest.Fault { - super.uiComponentEncodeBeginTest(); - } - - /** - * @testName: uiComponentEncodeChildrenNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:914 - * @test_Strategy: Verify that the component doesn't delegate the - * encodeChildren() call when the rendered property of the - * component is false. - */ - public void uiComponentEncodeChildrenNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeChildrenNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeChildrenTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:914 - * @test_Strategy: Verify that when encodeChildren() is called on the - * component under test, it delegates this call to the - * encodeChildren() method of the Renderer - */ - public void uiComponentEncodeChildrenTest() throws EETest.Fault { - super.uiComponentEncodeChildrenTest(); - } - - /** - * @testName: uiComponentEncodeEndNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:916 - * @test_Strategy: Verify that the component doesn't delegate the encodeEnd() - * call when the rendered property of the component is false. - */ - public void uiComponentEncodeEndNotRenderedTest() throws EETest.Fault { - super.uiComponentEncodeEndNotRenderedTest(); - } - - /** - * @testName: uiComponentEncodeEndTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:916 - * @test_Strategy: Verify that when encodeEnd() is called on the component - * under test, it delegates this call to the encodeEnd() - * method of the Renderer - */ - public void uiComponentEncodeEndTest() throws EETest.Fault { - super.uiComponentEncodeEndTest(); - } - - /** - * @testName: uiComponentEncodeAllNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:487 - * @test_Strategy: Verify that when encodeAll() is called passing null as the - * context, a NullPointException is thrown. - * - * @since 2.0 - */ - public void uiComponentEncodeAllNPETest() throws EETest.Fault { - super.uiComponentEncodeAllNPETest(); - } - - /** - * @testName: uiComponentEncodeBeginNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:490 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeBeginNPETest() throws EETest.Fault { - super.uiComponentEncodeBeginNPETest(); - } - - /** - * @testName: uiComponentEncodeChildrenNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:493 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeChildrenNPETest() throws EETest.Fault { - super.uiComponentEncodeChildrenNPETest(); - } - - /** - * @testName: uiComponentEncodeEndNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:496 - * @test_Strategy: Verify an NPE is thrown if the context - * argument is null. - */ - public void uiComponentEncodeEndNPETest() throws EETest.Fault { - super.uiComponentEncodeEndNPETest(); - } - - /** - * @testName: uiComponentFindComponentIAETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:498; JSF:JAVADOC:594 - * @test_Strategy: Verify an IllegalArgumentException is thrown by - * findComponent when an intermediate identifier in a search - * expression identifies a UIComponent that is not a - * NamingContainer - */ - public void uiComponentFindComponentIAETest() throws EETest.Fault { - super.uiComponentFindComponentIAETest(); - } - - /** - * @testName: uiComponentFindComponentNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:499 - * @test_Strategy: Verify a NullPointerException is thrown if expr is null. - */ - public void uiComponentFindComponentNPETest() throws EETest.Fault { - super.uiComponentFindComponentNPETest(); - } - - /** - * @testName: uiComponentFindComponentTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:497; JSF:JAVADOC:593 - * @test_Strategy: Validate the behavior of findConponent(): - Identify the - * UIComponent that will be the base for searching, by - * stopping as soon as one of the following conditions is met: - * o If the search expression begins with the the separator - * character (called an "absolute" search expression), the - * base will be the root UIComponent of the component tree. - * The leading separator character will be stripped off, and - * the remainder of the search expression will be treated as a - * "relative" search expression as described below. o - * Otherwise, if this UIComponent is a NamingContainer it will - * serve as the basis. o Otherwise, search up the parents of - * this component. If a NamingContainer is encountered, it - * will be the base. o Otherwise (if no NamingContainer is - * encountered) the root UIComponent will be the base. - The - * search expression (possibly modified in the previous step) - * is now a "relative" search expression that will be used to - * locate the component (if any) that has an id that matches, - * within the scope of the base component. The match is - * performed as follows: o If the search expression is a - * simple identifier, this value is compared to the id - * property, and then recursively through the facets and - * children of the base UIComponent (except that if a - * descendant NamingContainer is found, its own facets and - * children are not searched). o If the search expression - * includes more than one identifier separated by the - * separator character, the first identifier is used to locate - * a NamingContainer by the rules in the previous bullet - * point. Then, the findComponent() method of this - * NamingContainer will be called, passing the remainder of - * the search expression. - */ - public void uiComponentFindComponentTest() throws EETest.Fault { - super.uiComponentFindComponentTest(); - } - - /** - * @testName: uiComponentGetAttributesTest - * @assertion_ids: JSF:JAVADOC:596; JSF:JAVADOC:958; JSF:JAVADOC:500 - * @test_Strategy: Assert the following: - *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • If the attribute name specified as a key matches a - * property of this {@link UIComponent}'s implementation - * class, the following methods will have special behavior: - *
      - *
    • containsKey - Return false. - *
    • - *
    • remove - Throw - * IllegalArgumentException.
    • - *
    - *
  • - *
- * - */ - public void uiComponentGetAttributesTest() throws EETest.Fault { - super.uiComponentGetAttributesTest(); - } - - /** - * @testName: uiComponentGetChildCountTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:501 - * @test_Strategy: Validate getChildCount() returns the expected value. - */ - public void uiComponentGetChildCountTest() throws EETest.Fault { - super.uiComponentGetChildCountTest(); - } - - /** - * @testName: uiComponentGetChildrenTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:502 - * @test_Strategy: Verify the following: * implementation must support all of - * the standard and optional List methods, plus - * support the following additional requirements: - *

- *
    - *
  • The List implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null must throw a - * NullPointerException
  • - *
  • Any attempt to add an object that does not implement - * {@link UIComponent} must throw a ClassCastException.
  • - * - *
  • Any attempt to add a child {@link UIComponent} with a - * non-null componentId that contains invalid - * characters, or begins with - * {@link NamingContainer#SEPARATOR_CHAR}, or - * {@link UIViewRoot#UNIQUE_ID_PREFIX} (i.e. other than - * letters, digits, '-', or '_') must throw - * IllegalArgumentException.
  • - * - *
  • Whenever a new child component is added: - *
      - *
    • The parent property of the child must be - * set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing child component is removed: - *
      - *
    • The parent property of the child must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetChildrenTest() throws EETest.Fault { - super.uiComponentGetChildrenTest(); - } - - /** - * @testName: uiComponentGetClientIdNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:505 - * @test_Strategy: Verify getClientId() throws NPE if the context - * argument is null. - */ - public void uiComponentGetClientIdNPETest() throws EETest.Fault { - super.uiComponentGetClientIdNPETest(); - } - - /** - * @testName: uiComponentGetClientIdTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:503 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdTest() throws EETest.Fault { - super.uiComponentGetClientIdTest(); - } - - /** - * @testName: uiComponentGetClientIdContextTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:504 - * @test_Strategy: Verify getClientId() returns a non-null value. - */ - public void uiComponentGetClientIdContextTest() throws EETest.Fault { - super.uiComponentGetClientIdContextTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns current component that - * is processing. - */ - public void uiComponentGetCurrentComponentTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentTest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:510 - * @test_Strategy: Verify getCurrentComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentComponentNPETest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentComponentNullTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:509 - * @test_Strategy: Verify getCurrentComponent() returns null return null if - * there is no currently processing UIComponent - */ - public void uiComponentGetCurrentComponentNullTest() throws EETest.Fault { - super.uiComponentGetCurrentComponentNullTest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:512 - * @test_Strategy: Verify getCurrentCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentGetCurrentCompositeComponentNPETest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentGetCurrentCompositeComponentNullTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:511 - * @test_Strategy: Verify getCurrentCompositeComponent() returns null return - * null if there is no currently processing UIComponent - */ - public void uiComponentGetCurrentCompositeComponentNullTest() - throws EETest.Fault { - super.uiComponentGetCurrentCompositeComponentNullTest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:535 - * @test_Strategy: Verify isCompositeComponent(null) throws a - * NullPointerException when arg "FacesContext" is null. - */ - public void uiComponentIsCompositeComponentNPETest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNPETest(); - } - - /** - * @testName: uiComponentIsCompositeComponentNegTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:534 - * @test_Strategy: Verify isCompositeComponent() returns false return null if - * there is no currently processing UIComponent - */ - public void uiComponentIsCompositeComponentNegTest() throws EETest.Fault { - super.uiComponentIsCompositeComponentNegTest(); - } - - /** - * @testName: uiComponentGetFacetsAndChildrenTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:516 - * @test_Strategy: Ensure the Iterator returned has the expected values, and - * in the case of the UIComponent instances contained in the - * iterator, ensure the order is correct. - */ - public void uiComponentGetFacetsAndChildrenTest() throws EETest.Fault { - super.uiComponentGetFacetsAndChildrenTest(); - } - - /** - * @testName: uiComponentGetFacetsTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:515 - * @test_Strategy: Assert the following: The returned implementation must - * support all of the standard and optional Map - * methods, plus support the following additional - * requirements: - *

- *
    - *
  • The Map implementation must implement the - * java.io.Serializable interface.
  • - *
  • Any attempt to add a null key or value - * must throw a NullPointerException.
  • - *
  • Any attempt to add a key that is not a String must - * throw a ClassCastException.
  • - *
  • Any attempt to add a value that is not a - * {@link UIComponent} must throw a ClassCastException.
  • - *
  • Whenever a new facet {@link UIComponent} is added: - *
      - *
    • The parent property of the component must - * be set to this component instance.
    • - *
    - *
  • - *
  • Whenever an existing facet {@link UIComponent} is - * removed: - *
      - *
    • The parent property of the facet must be - * set to null.
    • - *
    - *
  • - *
- */ - public void uiComponentGetFacetsTest() throws EETest.Fault { - super.uiComponentGetFacetsTest(); - } - - /** - * @testName: uiComponentGetFacetTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:513 - * @test_Strategy: Ensure a facet of a component can be obtained by name. - */ - public void uiComponentGetFacetTest() throws EETest.Fault { - super.uiComponentGetFacetTest(); - } - - /** - * @testName: uiComponentGetFacetCountTest - * @assertion_ids: JSF:JAVADOC:513; JSF:JAVADOC:514; JSF:JAVADOC:605 - * @test_Strategy: Validate that we receive 1 or more facets. - */ - public void uiComponentGetFacetCountTest() throws EETest.Fault { - super.uiComponentGetFacetCountTest(); - } - - /** - * @testName: uiComponentGetFamilyTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:517; JSF:JAVADOC:922 - * @test_Strategy: Ensure we receive the correct component family. - */ - public void uiComponentGetFamilyTest() throws EETest.Fault { - super.uiComponentGetFamilyTest(); - } - - /** - * @testName: uiComponentGetRendersChildrenTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:524; JSF:JAVADOC:926 - * @test_Strategy: Verify getRendersChildren() returns the expected value by - * obtaining this components Renderer and calling - * getRendersChildren() in the Renderer, and comparing that - * value with what is returned by calling getRendersChildren() - * on the component. - */ - public void uiComponentGetRendersChildrenTest() throws EETest.Fault { - super.uiComponentGetRendersChildrenTest(); - } - - /** - * @testName: uiComponentGetSetIdTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:518;JSF:JAVADOC:558 - * @test_Strategy: Verify {get,set}Id() - if a value is set, the same value is - * returned. - */ - public void uiComponentGetSetIdTest() throws EETest.Fault { - super.uiComponentGetSetIdTest(); - } - - /** - * @testName: uiComponentGetSetParentTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:522;JSF:JAVADOC:561 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. - */ - public void uiComponentGetSetParentTest() throws EETest.Fault { - super.uiComponentGetSetParentTest(); - } - - /** - * @testName: uiComponentQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:561; JSF:JAVADOC:632; JSF:JAVADOC:557 - * @test_Strategy: Validate that a NullPointerException is thrown when arg is - * null. - */ - public void uiComponentQueueEventNPETest() throws EETest.Fault { - super.uiComponentQueueEventNPETest(); - } - - /** - * @testName: uiComponentRestoreAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:635 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentRestoreAttachedStateNPETest() throws Fault { - super.uiComponentRestoreAttachedStateNPETest(); - } - - /** - * @testName: uiComponentSaveAttachedStateNPETest - * @assertion_ids: JSF:JAVADOC:550; JSF:JAVADOC:638 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - */ - public void uiComponentSaveAttachedStateNPETest() throws Fault { - super.uiComponentSaveAttachedStateNPETest(); - } - - /** - * @testName: uiComponentGetSetRendererTypeTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:523;JSF:JAVADOC:563 - * @test_Strategy: Verify {get,set}Parent() - if a value is set, the same - * value is returned. Also verify that the default return - * value. If a component is specified as having a specific - * Renderer type, ensure that value is returned, otherwise - * ensure that null is returned. - */ - public void uiComponentGetSetRendererTypeTest() throws EETest.Fault { - super.uiComponentGetSetRendererTypeTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:531 - * @test_Strategy: Validate the behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentTest(); - } - - /** - * @testName: uiComponentInvokeOnComponentNegativeTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:531; JSF:JAVADOC:532; - * JSF:JAVADOC:533; JSF:JAVADOC:615; JSF:JAVADOC:616 - * @test_Strategy: Validate the negative behavior of InvokeOnComponent(): - */ - public void uiComponentInvokeOnComponentNegativeTest() throws EETest.Fault { - super.uiComponentInvokeOnComponentNegativeTest(); - } - - /** - * @testName: uiComponentIsSetRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:537; JSF:JAVADOC:562 - * @test_Strategy: Verify {is,set}Rendered() - if a value is set, the same - * value is returned. - */ - public void uiComponentIsSetRenderedTest() throws EETest.Fault { - super.uiComponentIsSetRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:541; JSF:JAVADOC:935 - * @test_Strategy: Assert the following when processDecodes() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessDecodesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessDecodesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessDecodesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:541 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling decode() on a particular component. - */ - public void uiComponentProcessDecodesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessDecodesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessDecodesTest - * @assertion_ids: JSF:JAVADOC:582; JSF:JAVADOC:958; JSF:JAVADOC:541 - * @test_Strategy: Assert the following when processDecodes is called: # Call - * the processDecodes() method of all facets and children of - * this UIComponent. # Call the decode() method of this - * component, if this component's rendered property is true - * and it is not nested in a parent component whose - * rendersChildren property is true but whose rendered - * property is false. - */ - public void uiComponentProcessDecodesTest() throws EETest.Fault { - super.uiComponentProcessDecodesTest(); - } - - /** - * @testName: uiComponentProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:542; JSF:JAVADOC:621 - * @test_Strategy: Validate a NullPointerException is thrown when arg is null. - */ - public void uiComponentProcessDecodesNPETest() throws EETest.Fault { - super.uiComponentProcessDecodesNPETest(); - } - - /** - * @testName: uiComponentProcessSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Assert the following when process{Save,Restore}State() is - * called: - Call the process{Save,Restore}State() method of - * all facets and children of this UIComponent in the order - * determined by a call to getFacetsAndChildren(). - Call the - * {save,restore}State() method of this component. - */ - public void uiComponentProcessSaveRestoreStateTest() throws EETest.Fault { - super.uiComponentProcessSaveRestoreStateTest(); - } - - /** - * @testName: uiComponentProcessSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:548 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessSaveStateNPETest() throws EETest.Fault { - super.uiComponentProcessSaveStateNPETest(); - } - - /** - * @testName: uiComponentProcessRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:546 - * @test_Strategy: Validate that a NullPointerException is thrown when context - * is null. - */ - public void uiComponentProcessRestoreStateNPETest() throws EETest.Fault { - super.uiComponentProcessRestoreStateNPETest(); - } - - /** - * @testName: uiComponentProcessSaveStateTransientTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:545;JSF:JAVADOC:547 - * @test_Strategy: Verify that when a component is marked transient, that - * saveState() is not called, nor is - * processSaveState()/saveState() is called on any children of - * the transient component. - */ - public void uiComponentProcessSaveStateTransientTest() throws EETest.Fault { - super.uiComponentProcessSaveStateTransientTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:549; JSF:JAVADOC:938 - * @test_Strategy: Assert the following when processUpdates() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessUpdatesNotRenderedTest() throws EETest.Fault { - super.uiComponentProcessUpdatesNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessUpdatesRenderResponseTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:549 - * @test_Strategy: Assert the following when calling processUpdates() and a - * component is marked as invalid: If the valid property of - * this UIComponent is now false, call - * FacesContext.renderResponse() to transfer control at the - * end of the current phase. - */ - public void uiComponentProcessUpdatesRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessUpdatesRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessUpdatesTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:549; JSF:JAVADOC:763 - * @test_Strategy: Assert the following when processUpdates() is called: # - * Call the processUpdates() method of all facets and children - * of this UIComponent. # If the current component is an - * UIInput, call its updateModel() method of this component, - * if this component's rendered property is true and it is not - * nested in a parent component whose rendersChildren property - * is true but whose rendered property is false. - */ - public void uiComponentProcessUpdatesTest() throws EETest.Fault { - super.uiComponentProcessUpdatesTest(); - } - - /** - * @testName: uiComponentProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:550 - * @test_Strategy: Validate a NullPointerException is thrown if context is - * null. - * - * @since 2.0 - */ - public void uiComponentProcessUpdatesNPETest() throws EETest.Fault { - super.uiComponentProcessUpdatesNPETest(); - } - - /** - * @testName: uiComponentProcessValidatorsIsValidRenderResponseTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component has been marked invalid: - If the isValid() - * method of this component returns false, call the - * renderResponse() method on the FacesContext instance for - * this request. - */ - public void uiComponentProcessValidatorsIsValidRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsIsValidRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNotRenderedTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:628 - * @test_Strategy: Assert the following when processValidators() is called and - * the component's rendered property is false: - If the - * rendered property of this UIComponent is false, skip - * further processing. - */ - public void uiComponentProcessValidatorsNotRenderedTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsNotRenderedTest(); - } - - /** - * @testName: uiComponentProcessValidatorsRenderResponseTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:628 - * @test_Strategy: Assert renderResponse() is called if a RuntimeException is - * thrown when calling validate() on a particular component. - */ - public void uiComponentProcessValidatorsRenderResponseTest() - throws EETest.Fault { - super.uiComponentProcessValidatorsRenderResponseTest(); - } - - /** - * @testName: uiComponentProcessValidatorsTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:628; JSF:JAVADOC:940 - * @test_Strategy: Assert the following when processValidators() is called: # - * Call the processValidators() method of all facets and - * children of this UIComponent. # If the current component is - * an UIInput, call its validate() method, if this component's - * rendered property is true and it is not nested in a parent - * component whose rendersChildren property is true but whose - * rendered property is false. - */ - public void uiComponentProcessValidatorsTest() throws EETest.Fault { - super.uiComponentProcessValidatorsTest(); - } - - /** - * @testName: uiComponentProcessValidatorsNPETest - * @assertion_ids: JSF:JAVADOC:552; JSF:JAVADOC:629; JSF:JAVADOC:941 - * @test_Strategy: Validate that a NullPointerException is thrown when - * argument is null. - */ - - public void uiComponentProcessValidatorsNPETest() throws EETest.Fault { - super.uiComponentProcessValidatorsNPETest(); - } - - /** - * @testName: uiComponentPushComponentToELTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:553 - * @test_Strategy: Assert that a call to pushComponentToEL does put a - * UIComponent onto the EL stack, and that another call to the - * method causes the newly added component to be the current - * component. - */ - public void uiComponentPushComponentToELTest() throws EETest.Fault { - super.uiComponentPushComponentToELTest(); - } - - /** - * @testName: uiComponentPushComponentToELNPETest - * @assertion_ids: JSF:JAVADOC:554 - * @test_Strategy: Validate hat a NullPointerException is thrown when - * FacesContext is null. - */ - public void uiComponentPushComponentToELNPETest() throws EETest.Fault { - super.uiComponentPushComponentToELNPETest(); - } - - /** - * @testName: uiComponentPopComponentFromELTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELTest() throws EETest.Fault { - super.uiComponentPopComponentFromELTest(); - } - - /** - * @testName: uiComponentPopComponentFromELNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:539 - * @test_Strategy: Assert that a call to popComponentToEL removes "this" - * component as being the current component and that the - * previous UIComponent is set to the current component being - * processed. - */ - public void uiComponentPopComponentFromELNPETest() throws EETest.Fault { - super.uiComponentPopComponentFromELNPETest(); - } - - /** - * @testName: uiComponentSetIdRestrictionsTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:640; JSF:JAVADOC:559 - * @test_Strategy: Verify that component under test enforces the component ID - * restrictions as specified: # Must not be a zero-length - * String. # First character must be a letter or an underscore - * ('_'). # Subsequent characters must be a letter, a digit, - * an underscore ('_'), or a dash ('-'). - */ - public void uiComponentSetIdRestrictionsTest() throws EETest.Fault { - super.uiComponentSetIdRestrictionsTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:567;JSF:JAVADOC:528 - * @test_Strategy: Verify the following: - setValueExpression with a - * non-literal ValueExpression results in getValueExpression() - * returning the non-literal ValueExpression - - * setValueExpression with a literal ValueExpression results - * in getValueExpression returning null for that particular - * key and the evaluated value of the ValueExpression is - * stored in the component's attribute map. - Providing a null - * value for the ValueExpression argument of - - * setValueExpression() where a ValueExpression has already - * been stored using the same key, will result in the - * ValueExpression being removed from its internal collection - * - this is verified by calling getValueExpression() and - * ensuring a null return - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionTest() throws Fault { - super.uiComponentGetSetValueExpressionTest(); - } - - /** - * @testName: uiComponentGetSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:529 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to getValueExpression(). - * @since 1.2 - */ - public void uiComponentGetSetValueExpressionNPETest() throws Fault { - super.uiComponentGetSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:569 - * @test_Strategy: Verify an NPE is thrown if a null value for the 'name' - * argument is passed to setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionNPETest() throws Fault { - super.uiComponentSetValueExpressionNPETest(); - } - - /** - * @testName: uiComponentSetValueExpressionIAETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:568 - * @test_Strategy: Verify an IAE is thrown if a null value for the 'name' - * argument is 'id' or 'parent' setValueExpression(). - * @since 1.2 - */ - public void uiComponentSetValueExpressionIAETest() throws Fault { - super.uiComponentSetValueExpressionIAETest(); - } - - /** - * @testName: uiComponentSubscribeToEventTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:570 - * @test_Strategy: Ensure UIComponent.subscribeToEvent Does not throw any - * Exceptions when called correctly. - * - * Test case(s): UIComponent.subscribeToEvent(SystemEvent, - * ComponentSystemEventlistener) - * @since 2.0 - */ - public void uiComponentSubscribeToEventTest() throws EETest.Fault { - super.uiComponentSubscribeToEventTest(); - } - - /** - * @testName: uiComponentSubscribeToEventNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:2547 - * @test_Strategy: Ensure UIComponent.uiComponentSubscribeToEventNPETest - * throws a NullPointerException in the following test cases: - * - * Test cases: UIComponent.subscribeToEvent(null, - * ComponentSystemEventlistener) - * UIComponent.subscribeToEvent(SystemEvent, null) - * @since 2.0 - */ - public void uiComponentSubscribeToEventNPETest() throws EETest.Fault { - super.uiComponentSubscribeToEventNPETest(); - } - - /** - * @testName: uiComponentVisitTreeTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeTest() throws Fault { - super.uiComponentVisitTreeTest(); - } - - /** - * @testName: uiComponentVisitTreeNegTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:575 - * @test_Strategy: Verify that we receive false when calling - * UIComponent.visitTree(). - * @since 2.0 - */ - public void uiComponentVisitTreeNegTest() throws Fault { - super.uiComponentVisitTreeNegTest(); - } - - // -------------------------------------------------------- UIViewRoot - /** - * @testName: uiViewRootaddComponentResourceFCTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:906; JSF:JAVADOC:907; - * JSF:JAVADOC:920 - * @test_Strategy: Verify that UIViewRoot.addComponentResource, renders a - * UIOutput Component to the 'head'(default location) and that - * the test value returned from UIOutput.getValue() is - * correct. - * - * Tested Method: - * UIViewRoot.addComponentResource(FacesContext, UIComponent) - * UIViewRoot.getComponentResources(FacesContext, String) - * - * @since 2.0 - */ - public void uiViewRootaddComponentResourceFCTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootaddComponentResourceFCTest"); - invoke(); - } - - /** - * @testName: uiViewRootaddComponentResourceFCTTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:906; JSF:JAVADOC:907; - * JSF:JAVADOC:920 - * @test_Strategy: Verify that UIViewRoot.addComponentResource, renders a - * UIOutput Component to the 'body'(specified location) and - * that the test value returned from UIOutput.getValue() is - * correct. - * - * Tested Method: - * UIViewRoot.addComponentResource(FacesContext, UIComponent, - * String) UIViewRoot.getComponentResources(FacesContext, - * String) - * - * @since 2.0 - */ - public void uiViewRootaddComponentResourceFCTTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootaddComponentResourceFCTTest"); - invoke(); - } - - /** - * @testName: uiViewRootaddComponentResourceComponentTargetTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:906; JSF:JAVADOC:907 - * @test_Strategy: Verify that UIViewRoot.addComponentResource, renders a - * UIOutput Component to the 'body'(specified by the - * component) and that the test value returned from - * UIOutput.getValue() is correct. - * - * Tested Method: - * UIViewRoot.addComponentResource(FacesContext, UIComponent, - * null) UIViewRoot.getComponentResources(FacesContext, - * String) - * - * @since 2.0 - */ - public void uiViewRootaddComponentResourceComponentTargetTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiViewRootaddComponentResourceComponentTargetTest"); - invoke(); - } - - /** - * @testName: uiViewRootgetComponentResourcesNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:921 - * @test_Strategy: Verify that UIViewRoot.getComponentResources, throws a - * NullPointerException if the 'target' argument is null. - * - * Tested Method: - * UIViewRoot.getComponentResources(FacesContext, null) - * - * @since 2.0 - */ - public void uiViewRootgetComponentResourcesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootgetComponentResourcesNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootaddComponentResourceComponentNegTargetTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:906; JSF:JAVADOC:907 - * @test_Strategy: Verify that when a target is given at the UIComponent and - * the UIViewRoot.addComponent() level that the latter takes - * president - * - * @since 2.0 - */ - public void uiViewRootaddComponentResourceComponentNegTargetTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiViewRootaddComponentResourceComponentNegTargetTest"); - invoke(); - } - - /** - * @testName: uiViewRootremoveComponentResourceTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:946 - * @test_Strategy: Verify that a given resource from the view. - * - * Tested Method: - * UIViewRoot.removeComponentResource(FacesContext, - * UIComponent) - * - * @since 2.0 - */ - public void uiViewRootremoveComponentResourceTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootremoveComponentResourceTest"); - invoke(); - } - - /** - * @testName: uiViewRootremoveComponentResourceNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:945 - * @test_Strategy: - * - * Tested Method: - * UIViewRoot.removeComponentResource(FacesContext, null) - * @since 2.0 - */ - public void uiViewRootremoveComponentResourceNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootremoveComponentResourceNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootIsInViewTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiViewRootIsInViewTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootIsInViewTest"); - invoke(); - } - - /** - * @testName: uiViewRootAddGetPhaseListenersTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:908; - * JSF:JAVADOC:924 - * @test_Strategy: Verify that we can add a PhaseListener and that that - * PhaseListener is in the List returned from - * getPhaseListeners(). - * - * @since 1.2 - */ - public void uiViewRootAddGetPhaseListenersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootAddGetPhaseListenersTest"); - invoke(); - } - - /** - * @testName: uiViewRootIsInViewNegTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932 - * @test_Strategy: Verify isInView() Returns true if the component is in the - * current view. - * - * @since 2.0 - */ - public void uiViewRootIsInViewNegTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootIsInViewNegTest"); - invoke(); - } - - /** - * @testName: uiViewRootSetGetViewIdTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:927; - * JSF:JAVADOC:955 - * @test_Strategy: Verify that we can set the ViewId and that we get the - * correct Id back. - * - */ - public void uiViewRootSetGetViewIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootSetGetViewIdTest"); - invoke(); - } - - /** - * @testName: uiViewRootUnsubscribeFromViewEventNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:960 - * @test_Strategy: Verify that we get a NullPointerException if - * systemEventClass or listener are null. - * - */ - public void uiViewRootUnsubscribeFromViewEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiViewRootUnsubscribeFromViewEventNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootSubscribeToViewEventNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:957 - * @test_Strategy: Verify that we get a NullPointerException if - * systemEventClass or listener are null. - * - */ - public void uiViewRootSubscribeToViewEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootSubscribeToViewEventNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootSubscribeToViewEventTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:951; JSF:JAVADOC:956; - * JSF:JAVADOC:928 - * @test_Strategy: Verify that we can add SystemEventListener to the View and - * remove it from the view as well. - * - * UIViewRoot.subscribeToViewEvent (Class , - * SystemEventListener) - * UIViewRoot.unsubscribeFromViewEvent(Class, - * SystemEventListener) - * UIViewRoot.getViewListenersForEventClass(Class) - * - */ - public void uiViewRootSubscribeToViewEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootSubscribeToViewEventTest"); - invoke(); - } - - /** - * @testName: uiViewRootCreateUniqueIDTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:910; - * JSF:JAVADOC:911 - * @test_Strategy: Validate that we are able to create a unique ID with a - * given seed. - * - */ - public void uiViewRootCreateUniqueIDTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootCreateUniqueIDTest"); - invoke(); - } - - /** - * @testName: uiViewRootSetGetLocaleTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:923; - * JSF:JAVADOC:953 - * @test_Strategy: Validate that we are able to set and get a given Locale. - * - */ - public void uiViewRootSetGetLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootSetGetLocaleTest"); - invoke(); - } - - /** - * @testName: uiViewRootSetGetRenderKitIdTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:932; JSF:JAVADOC:925; - * JSF:JAVADOC:954 - * @test_Strategy: Validate that we are able to set and get a RenderKitId. - * - */ - public void uiViewRootSetGetRenderKitIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootSetGetRenderKitIdTest"); - invoke(); - } - - /** - * @testName: uiViewRootGetViewListenersForEventClassNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:929 - * @test_Strategy: Validate that a NullPointerException is thrown when - * SystemEven is null. - * - */ - public void uiViewRootGetViewListenersForEventClassNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "uiViewRootGetViewListenersForEventClassNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootProcessApplicationNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:934 - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - * - */ - public void uiViewRootProcessApplicationNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootProcessApplicationNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootProcessDecodesNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:936 - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - * - */ - public void uiViewRootProcessDecodesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootProcessDecodesNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootProcessUpdatesNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:939 - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - * - */ - public void uiViewRootProcessUpdatesNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootProcessUpdatesNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootQueueEventNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:944 - * @test_Strategy: Validate that a NullPointerException is thrown when - * FacesContext is null. - * - */ - public void uiViewRootQueueEventNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootQueueEventNPETest"); - invoke(); - } - - /** - * @testName: uiViewRootGetSetBeforePhaseListenerTest - * - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:919; JSF:JAVADOC:951 - * - * @test_Strategy: Validate that we can set an arbitrary method to be called - * for the "beforePhase" event as the UIViewRoot runs through - * its lifecycle. - * - * UIViewRoot.getBeforePhaseListener - * UIViewRoot.setBeforePhaseListener(MethodExpression) - */ - public void uiViewRootGetSetBeforePhaseListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootGetSetBeforePhaseListenerTest"); - invoke(); - } - - /** - * @testName: uiViewRootGetSetAfterPhaseListenerTest - * - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:918; JSF:JAVADOC:950 - * - * @test_Strategy: Validate that we can set an arbitrary method to be called - * for the "afterPhase" event as the UIViewRoot runs through - * its lifecycle. - * - * UIViewRoot.getAfterPhaseListener - * UIViewRoot.setAfterPhaseListener(MethodExpression) - */ - public void uiViewRootGetSetAfterPhaseListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "uiViewRootGetSetAfterPhaseListenerTest"); - invoke(); - } - - // ---------------------------------------------------------- StateHolder - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:443; JSF:JAVADOC:948; - * JSF:JAVADOC:949 - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be - * restored when passing this state back into the - * restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws EETest.Fault { - super.stateHolderSaveRestoreStateTest(); - } - - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:442;JSF:JAVADOC:447 - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:444; JSF:JAVADOC:445 - * @test_Strategy: Verify restoreState throws a NullPointerException if either - * context or state are null - */ - public void stateHolderRestoreStateNPETest() throws EETest.Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: JSF:JAVADOC:958; JSF:JAVADOC:446 - * @test_Strategy: Verify saveState throws a NullPointerException if context - * is null - */ - public void stateHolderSaveStateNPETest() throws EETest.Fault { - super.stateHolderSaveStateNPETest(); - } - - // ---------------------------------------------------- PartialStateholder - - /** - * @testName: partialStateHolderMICStateTest - * @assertion_ids: JSF:JAVADOC:482; JSF:JAVADOC:530; JSF:JAVADOC:538; - * JSF:JAVADOC:581; JSF:JAVADOC:619; JSF:JAVADOC:431; - * JSF:JAVADOC:432; JSF:JAVADOC:433 - * @test_Strategy: Verify that clearInitialState(), initialStateMarked(), and - * markInitialState() work correctly, by setting and checking - * values. - */ - public void partialStateHolderMICStateTest() throws EETest.Fault { - super.partialStateHolderMICStateTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/build.xml deleted file mode 100644 index fd602b3429..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.war.sun-web.xml deleted file mode 100644 index 5041bcaeb9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_comp_viewroot_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.xml deleted file mode 100644 index 6fc677184b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/component/uiviewroot/jsf_comp_viewroot_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - jsf_comp_vewiroot - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.component.uiviewroot.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/build.xml deleted file mode 100644 index b0cc345067..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/DispatchTarget.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/DispatchTarget.java deleted file mode 100644 index 0039a38cb3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/DispatchTarget.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontext; - -import java.io.IOException; - -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class DispatchTarget extends HttpServlet { - - public DispatchTarget() { - } - - public void init(ServletConfig servletConfig) throws ServletException { - super.init(servletConfig); - } - - protected void service(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - response.getWriter().write("Test PASSED"); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/TestServlet.java deleted file mode 100644 index 40446db9df..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/TestServlet.java +++ /dev/null @@ -1,900 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontext; - -import java.io.IOException; -import java.io.InputStream; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.ListIterator; -import java.util.Locale; -import java.util.Map; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.context.ExternalContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; -import jakarta.servlet.http.Cookie; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.http.HttpSession; - -public final class TestServlet extends HttpTCKServlet { - - private static final String TCK_ATTRIBUTE = "tckattribute"; - - private static final String TCK_VALUE = "tckValue"; - - private static final String NO_SUCH_ATTRIBUTE = "no_such_attribute_could_possibly_exist"; - - private static final String NO_SUCH_VALUE = "no_such_value_could_possibly_exist"; - - private ServletContext servletContext; - - private static final String TCK_KEY = "tckKey1"; - - private static final String TCK_VALUE1 = "tckValue1"; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // ExternalContext.dispatch(String) - public void extContextDispatchTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - getFacesContext().getExternalContext().dispatch("/target"); - } - - // ExternalContext.encodeActionURL(null) throws NullPointerException - public void extContextEncodeActionURLNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "encodeActionURL", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextEncodeActionURLNPETest - - // ExternalContext.encodePartialActionURL(null) throws NullPointerException - public void extContextEncodePartialActionURLNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "encodePartialActionURL", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextEncodePartialActionURLNPETest - - // ExternalContext.encodeResourceURL(null) throws NullPointerException - public void extContextEncodeResourceURLNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "encodeResourceURL", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextEncodeResourceURLNPETest - - // ExternalContext.getResource(null) throws NullPointerException - public void extContextGetResourceNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "getResource", new Class[] { String.class }, - new Object[] { null }, out); - - }// End extContextGetResourceNPETest - - // ExternalContext.getResourceAsStream(null) throws NullPointerException - public void extContextGetResourceAsStreamNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "getResourceAsStream", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextGetResourceAsStreamNPETest - - // ExternalContext.getResourcePaths(null) throws NullPointerException - public void extContextGetResourcePathsNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "getResourcePaths", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextGetResourcePathsNPETest - - // ExternalContext.getInitParameter(null) throws NullPointerException - public void extContextGetInitParameterNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - ExternalContext ec = getFacesContext().getExternalContext(); - - JSFTestUtil.checkForNPE(ec, "getInitParameter", - new Class[] { String.class }, new Object[] { null }, out); - - }// End extContextGetInitParameterNPETest - - // ExternalContext.redirect(String) - public void extContextRedirectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - getFacesContext().getExternalContext().redirect("/target"); - } - - // ExternalContext.getSession(boolean) - public void extContextGetSessionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContext context = getFacesContext().getExternalContext(); - // no current session, so false will result in null - Object session = context.getSession(false); - if (session != null) { - out.println(JSFTestUtil.FAIL - + " No session has been established - ExternalContext." - + "getSession(false) should have returned null."); - return; - } - - session = context.getSession(true); - if (session == null) { - out.println(JSFTestUtil.FAIL - + " No session was returned whne calling ExternalContext." - + "getSession(true)."); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExtenalContext.getContext() - // Test CANNOT run in a Portlet env. - public void extContextGetContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Object context = getFacesContext().getExternalContext().getContext(); - if (context != null) { - if (context instanceof ServletContext) { - if (servletContext != context) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getContext() returned a ServletContext," - + " but it was not the ServletContext instance that was expected."); - out.println("Expected: " + servletContext); - out.println("Received: " + context); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getContext() did not return a ServletContext" - + " as expected."); - out.println( - "Class of object received: " + context.getClass().getName()); - return; - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getContext() returned null."); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequest() - // Test CANNOT run in a Portlet env. - public void extContextGetRequestTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - request.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - Object req = getFacesContext().getExternalContext().getRequest(); - if (req != null) { - if (req instanceof ServletRequest) { - if (!TCK_VALUE - .equals(((ServletRequest) req).getAttribute(TCK_ATTRIBUTE))) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() returned a ServletRequest," - + " but it was not the same ServletRequest used by the current request."); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() did not return a ServletRequest" - + " as expected."); - out.println("Class of object received: " + req.getClass().getName()); - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequest() returned null."); - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getResponse() - // Test CANNOT run in a Portlet env. - public void extContextGetResponseTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - response.addHeader(TCK_ATTRIBUTE, TCK_VALUE); - Object res = getFacesContext().getExternalContext().getResponse(); - if (res != null) { - if (res instanceof ServletResponse) { - if (!((HttpServletResponse) res).containsHeader(TCK_ATTRIBUTE)) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getResponse() returned a ServletResponse," - + " but it was not the same ServletResponse used by the current request."); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() did not return a ServletResponse" - + " as expected."); - out.println("Class of object received: " + res.getClass().getName()); - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getResponse() returned null."); - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getApplicationMap() - public void extContextGetApplicationMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - servletContext.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - Map applMap = getFacesContext().getExternalContext().getApplicationMap(); - - if (applMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getApplicationMap() returned null"); - return; - } - - String result = validateMutableMap(applMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(servletContext.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in ServletContext"); - out.println("value: " + servletContext.getAttribute(TCK_KEY)); - return; - } - - // cleanup - servletContext.removeAttribute(TCK_ATTRIBUTE); - servletContext.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getSessionMap() - public void extContextGetSessionMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - HttpSession session = request.getSession(true); - session.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - Map sessMap = getFacesContext().getExternalContext().getSessionMap(); - - if (sessMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getSessionMap() returned null"); - return; - } - - String result = validateMutableMap(sessMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(session.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in Session"); - out.println("value: " + session.getAttribute(TCK_KEY)); - return; - } - - // cleanup - session.removeAttribute(TCK_ATTRIBUTE); - session.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestMap() - public void extContextGetRequestMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - request.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - Map applMap = getFacesContext().getExternalContext().getRequestMap(); - - if (applMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequestMap() returned null"); - return; - } - - String result = validateMutableMap(applMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(request.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in Request"); - out.println("value: " + request.getAttribute(TCK_KEY)); - return; - } - - // cleanup - request.removeAttribute(TCK_ATTRIBUTE); - request.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getInitParameterMap() - public void extContextGetInitParameterMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Map initMap = getFacesContext().getExternalContext().getInitParameterMap(); - - if (initMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequestMap() returned null"); - return; - } - - String result = validateNonMutableMap(initMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestHeaderMap() - public void extContextGetRequestHeaderMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Map headerMap = getFacesContext().getExternalContext() - .getRequestHeaderMap(); - - if (headerMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestHeaderMap() returned null"); - return; - } - - String result = validateNonMutableMap(headerMap, TCK_VALUE, true); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestParameterMap() - public void extContextGetRequestParameterMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Map parameterMap = getFacesContext().getExternalContext() - .getRequestParameterMap(); - - if (parameterMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestParameterMap() returned null"); - return; - } - - String result = validateNonMutableMap(parameterMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestParameterValuesMap() - public void extContextGetRequestParameterValuesMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Map parameterValuesMap = getFacesContext().getExternalContext() - .getRequestParameterValuesMap(); - - if (parameterValuesMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestParameterValuesMap() returned null"); - return; - } - - String result = validateNonMutableMap(parameterValuesMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestCookieMap() - public void extContextGetRequestCookieMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Map cookieMap = getFacesContext().getExternalContext() - .getRequestCookieMap(); - - if (cookieMap == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExternalContext.getCookieMap() returned null"); - return; - } - - Cookie[] cookies = request.getCookies(); - Cookie controlCookie = null; - for (int i = 0; i < cookies.length; i++) { - if (cookies[i].getName().equals(TCK_ATTRIBUTE)) { - controlCookie = cookies[i]; - break; - } - } - - if (controlCookie == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected cookie not found in request."); - return; - } - - String result = validateNonMutableMap(cookieMap, controlCookie, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getInitParamter(String) - public void extContextGetInitParameterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String value = getFacesContext().getExternalContext() - .getInitParameter(TCK_ATTRIBUTE); - - if (!TCK_VALUE.equals(value)) { - out.println(JSFTestUtil.FAIL + " Expected a value of '" + TCK_VALUE - + "' for Context init parameter" + " '" + TCK_ATTRIBUTE + "'."); - out.println("Received: " + value); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.isUserInRole(String) - public void extContextIsUserInRoleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext().getExternalContext(), - "isUserInRole", new Class[] { String.class }, new Object[] { null }, - pw); - - }// End extContextIsUserInRoleNPETest - - // ExternalContext.log(String) - // ExternalContext.log(String, Throwable) - public void extContextLogNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - pw.println("Testing: ExternalContext.log(null)"); - JSFTestUtil.checkForNPE(getFacesContext().getExternalContext(), "log", - new Class[] { String.class }, new Object[] { null }, pw); - - pw.println("Testing: ExternalContext.log(null, Exception)"); - JSFTestUtil.checkForNPE(getFacesContext().getExternalContext(), "log", - new Class[] { String.class, Throwable.class }, - new Object[] { null, new Exception() }, pw); - - pw.println("Testing: ExternalContext.log(String, null)"); - JSFTestUtil.checkForNPE(getFacesContext().getExternalContext(), "log", - new Class[] { String.class, Throwable.class }, - new Object[] { "message", null }, pw); - - }// End extContextLogNPETest - - // ExternalContext.getMimeType(String) - public void extContextGetMimeTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String fileName = "duke-boxer.gif"; - String expected = "image/gif"; - String value = getFacesContext().getExternalContext().getMimeType(fileName); - - if (!expected.equals(value)) { - out.println(JSFTestUtil.FAIL + " Unexpected value return from " - + "ExternalContext.getMimeType(" + fileName + ")" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Received: " + value - + JSFTestUtil.NL); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRemoteUser() - // Security is optional in ServletContainers, so expect null from this - // method - public void extContextGetRemoteUserTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String result = getFacesContext().getExternalContext().getRemoteUser(); - if (result != null) { - out.println(JSFTestUtil.FAIL - + " No 'login' performed, yet ExternalContext.getRemoveUser() returned" - + " a non-null value."); - out.println("Received: " + result); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getResourcePaths() - public void extContextGetResourcePathsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Set resourcePaths = servletContext.getResourcePaths("/"); - Set extResourcePaths = getFacesContext().getExternalContext() - .getResourcePaths("/"); - if (!resourcePaths.equals(extResourcePaths)) { - out.println(JSFTestUtil.FAIL - + " The Set returned by ServletContext.getResourcePaths(String)," - + " was not the same as the Set returned by ExternalContext.getResourcePaths(String)."); - out.println( - "Expected: " + JSFTestUtil.getAsString(resourcePaths.iterator())); - out.println( - "Received: " + JSFTestUtil.getAsString(extResourcePaths.iterator())); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getResourceAsStream() - public void extContextGetResourceAsStreamTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - InputStream in = getFacesContext().getExternalContext() - .getResourceAsStream("/WEB-INF/web.xml"); - if (in == null) { - out.println( - "ExternalContext.getResourceAsStream(\"/WEB-INF/web.xml\") returned null."); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestContextPath() - public void extContextGetRequestContextPathTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String expectedPath = request.getContextPath(); - String testPath = getFacesContext().getExternalContext() - .getRequestContextPath(); - - if (!expectedPath.equals(testPath)) { - out.println(JSFTestUtil.FAIL - + " The value returned by ExternalContext.getRequestContextPath()" - + " returned a different result than that from ServletRequest.getContextPath()."); - out.println("Expected: " + expectedPath); - out.println("Received: " + testPath); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestLocale() - public void extContextGetRequestLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Locale controlLocale = request.getLocale(); - Locale testLocale = getFacesContext().getExternalContext() - .getRequestLocale(); - - if (!controlLocale.equals(testLocale)) { - out.println(JSFTestUtil.FAIL - + " The values returned by ExternalContext.getRequestLocale() " - + "and ServletRequest.getLocale() differ."); - out.println("Expected: " + controlLocale); - out.println("Received:" + testLocale); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestParameterNames - public void extContextGetRequestParameterNamesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String[] controlNames = JSFTestUtil - .getAsStringArray(request.getParameterNames()); - String[] testNames = JSFTestUtil.getAsStringArray( - getFacesContext().getExternalContext().getRequestParameterNames()); - - if (controlNames.length != testNames.length) { - out.println(JSFTestUtil.FAIL - + " The number of parameter names returned by ServletRequest." - + "getParameterNames() differs from what was returned by ExternalContext." - + "getParameterNames()."); - return; - } - - for (int i = 0; i < controlNames.length; i++) { - if (Arrays.binarySearch(testNames, controlNames[i]) < 0) { - out.println(JSFTestUtil.FAIL + " Unable to find the parameter name '" - + controlNames[i] + "'" - + " in the set of parameter names returned by ExternalContext.getParameterNames()."); - out.println("ExternalContext.getParameterNames() returned: " - + JSFTestUtil.getAsString(testNames)); - return; - } - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestPathInfo() - public void extContextGetRequestPathInfoTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String controlPath = request.getPathInfo(); - String testPath = getFacesContext().getExternalContext() - .getRequestPathInfo(); - - if (!controlPath.equals(testPath)) { - out.println(JSFTestUtil.FAIL - + " The path info returned by ExternalContext.getRequestPathInfo()" - + " didn't match the value returned by ServletRequest.getPathInfo()."); - out.println("Expected: " + controlPath); - out.println("Received: " + testPath); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.setSessionMaxInactiveInterval(int) - public void setGetSessionMaxInactiveIntervalTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContext econtext = getFacesContext().getExternalContext(); - int result; - - ArrayList testValues = new ArrayList(); - { - testValues.add(-1); - testValues.add(0); - testValues.add(1); - } - - ListIterator litr = testValues.listIterator(); - while (litr.hasNext()) { - Integer tv = (Integer) litr.next(); - - try { - econtext.setSessionMaxInactiveInterval(tv); - } catch (Exception e) { - out.println("Test FAILED. Unexpected Exception when setting " - + "MaxInactiveInterval to " + tv + JSFTestUtil.NL); - e.printStackTrace(); - } - - result = econtext.getSessionMaxInactiveInterval(); - if (result != tv) { - out.println("Test FAILED. " + JSFTestUtil.NL - + "Unexpected value returned from getSessionMaxInactiveInterval()." - + JSFTestUtil.NL + "Expected: " + tv + JSFTestUtil.NL - + "Received: " + result); - return; - } - } - - out.println(JSFTestUtil.PASS); - - }// End setGetSessionMaxInactiveIntervalTest - - // ------------------------------------------------------ Private Methods - // -------- - private String validateCommonMethods(Map map, Object value, - boolean ignoreCase) { - - if (!value.equals(map.get(TCK_ATTRIBUTE))) { - return "Map.get(\"" + TCK_ATTRIBUTE - + "\") didn't return the expected value, '" + TCK_VALUE + "'.\n" - + " Received: " + map.get(TCK_ATTRIBUTE); - } - - if (map.get(NO_SUCH_ATTRIBUTE) != null) { - return "Map.get() for a non-existent attribute returned a non-null value."; - } - - if (!map.containsKey(TCK_ATTRIBUTE)) { - return "Map.containsKey(\"" + TCK_ATTRIBUTE + "\") returned false"; - } - - if (map.containsKey(NO_SUCH_ATTRIBUTE)) { - return "Map.containsKey(Object) returned true for a key that doesn't exist in the map."; - } - - Set entrySet = map.entrySet(); - if (entrySet == null) { - return "Map.entrySet() returned null."; - } - - boolean found = false; - for (Iterator i = entrySet.iterator(); i.hasNext();) { - Map.Entry entry = (Map.Entry) i.next(); - boolean test = (ignoreCase) - ? TCK_ATTRIBUTE.equalsIgnoreCase(entry.getKey().toString()) - : TCK_ATTRIBUTE.equals(entry.getKey()); - if (test) { - if (value.equals(entry.getValue())) { - found = true; - break; - } - } - } - - if (!found) { - return "Map.entrySet() did not return a Map.Entry for a key/value pair.\n" - + "Key " + TCK_ATTRIBUTE + ", Value: " + value; - } - - if (!(map.equals(map))) { - return "Map.equals(Object) returned false when passing the same map as an argument."; - } - - if (map.equals(new HashMap())) { - return "Map.equals(new HashMap()) returned true when the two instances were not equal"; - } - - if (!map.containsValue(value)) { - return "Map.containsValue(\"" + value + "\") returned false"; - } - - if (map.containsValue(NO_SUCH_VALUE)) { - return "Map.containsvalue() returned true for a value that doesn't exist in the map."; - } - - if (map.hashCode() != map.hashCode()) { - return "Map.hasCode() returned different values each time it was called on the " - + "same Map instance."; - } - - if (map.isEmpty()) { - return "Map.isEmtpy() returned true when values exist in the Map."; - } - - Set keySet = map.keySet(); - if (!keySet.contains(TCK_ATTRIBUTE)) { - return "Map.keySet() returned a Set that didn't contain one of the expected keys: " - + TCK_ATTRIBUTE; - } - - if (!(map.size() > 0)) { - return "Map.size() returned a value less than or equal to zero when there are entries in the Map."; - } - - Collection values = map.values(); - if (!values.contains(value)) { - return "Map.values() returned a Collection missing one of the values expected to be found in the Map."; - } - - if (values.contains(NO_SUCH_VALUE)) { - return "Map.values() returned a Collection with a value that should not have been present"; - } - - return null; - } - - private String validateMutableMap(Map map, Object value) { - map.remove(NO_SUCH_ATTRIBUTE); - - String result = validateCommonMethods(map, value, false); - if (result != null) { - return result; - } - - map.put(TCK_KEY, TCK_VALUE1); - if (!"tckValue1".equals(map.get("tckKey1"))) { - return "Unable to find value for key 'tckKey1' that was just added to the Map."; - } - - map.remove(TCK_KEY); - if (map.get("tckKey1") != null) { - return "Map.remove() didn't remove the key/value pair from map."; - } - - map.put(TCK_KEY, TCK_VALUE1); - - return null; - } - - private String validateNonMutableMap(Map map, Object value, - boolean ignoreCase) { - - String result = validateCommonMethods(map, value, ignoreCase); - if (result != null) { - return result; - } - - try { - map.remove(NO_SUCH_ATTRIBUTE); - return "Map.remove() should not be supported by this Map."; - } catch (Throwable t) { - ; - } - - try { - map.put("key1", "val1"); - return "Map.put() should not be supported by this Map."; - } catch (Throwable t) { - ; - } - - return null; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/URLClient.java deleted file mode 100644 index 730540b75c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/URLClient.java +++ /dev/null @@ -1,473 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TCK_ATTRIBUTE = "tckattribute"; - - private static final String TCK_VALUE = "tckValue"; - - private static final String CONTEXT_ROOT = "/jsf_ctx_extctx_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: extContextDispatchTest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1094 - * - * @test_Strategy: Verify that dispatch(), in a Servlet environment, can be - * successfully used to dispatch the current request to - * another resource within the web application. - */ - public void extContextDispatchTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextDispatchTest"); - invoke(); - } - - /** - * @testName: extContextEncodeActionURLNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1100 - * - * @test_Strategy: Verify that a NullPointerException is thrown if url is null - */ - public void extContextEncodeActionURLNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextEncodeActionURLNPETest"); - invoke(); - } - - /** - * @testName: extContextEncodePartialActionURLNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1105 - * - * @test_Strategy: Verify that a NullPointerException is thrown if url is null - */ - public void extContextEncodePartialActionURLNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextEncodePartialActionURLNPETest"); - invoke(); - } - - /** - * @testName: extContextEncodeResourceURLNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1108 - * - * @test_Strategy: Verify that a NullPointerException is thrown if url is null - */ - public void extContextEncodeResourceURLNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextEncodeResourceURLNPETest"); - invoke(); - } - - /** - * @testName: extContextGetResourceNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1142 - * - * @test_Strategy: Verify that a NullPointerException is thrown if arg is null - */ - public void extContextGetResourceNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResourceNPETest"); - invoke(); - } - - /** - * @testName: extContextGetResourceAsStreamNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1144 - * - * @test_Strategy: Verify that a NullPointerException is thrown if arg is null - */ - public void extContextGetResourceAsStreamNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResourceAsStreamNPETest"); - invoke(); - } - - /** - * @testName: extContextGetResourcePathsNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1146 - * - * @test_Strategy: Verify that a NullPointerException is thrown if arg is null - */ - public void extContextGetResourcePathsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResourcePathsNPETest"); - invoke(); - } - - /** - * @testName: extContextIsUserInRoleNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1161 - * - * @test_Strategy: Verify that a NullPointerException is thrown if arg is null - */ - public void extContextIsUserInRoleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextIsUserInRoleNPETest"); - invoke(); - } - - /** - * @testName: extContextLogNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1163; - * JSF:JAVADOC:1165 - * - * @test_Strategy: Verify that a NullPointerException is thrown if arg is null - */ - public void extContextLogNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextLogNPETest"); - invoke(); - } - - /** - * @testName: extContextGetInitParameterNPETest - * - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86; JSF:JAVADOC:1116 - * - * @test_Strategy: Verify that a NullPointerException is thrown if name is - * null - */ - public void extContextGetInitParameterNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetInitParameterNPETest"); - invoke(); - } - - /** - * @testName: extContextRedirectTest - * @assertion_ids: JSF:SPEC:85; JSF:SPEC:86 - * @test_Strategy: Verify that redirect(), in a Servlet environment, can be - * successfully used to redirect the current request to - * another resource. The client will verify that the Location - * header is present in the response with the appropriate - * host, port, and path. - */ - public void extContextRedirectTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, "GET " + CONTEXT_ROOT - + "/TestServlet?testname=extContextRedirectTest HTTP/1.0"); - TEST_PROPS.setProperty(EXPECTED_HEADERS, - "Location:http://" + _hostname + ":" + _port + "/target"); - invoke(); - } - - /** - * @testName: extContextGetSessionTest - * @assertion_ids: JSF:JAVADOC:1155; JSF:JAVADOC:1109 - * @test_Strategy: Ensure the behavior of getSession(). - if no session - * established with client, getSession(false) returns null. - - * getSession(true) will create a new session - */ - public void extContextGetSessionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetSessionTest"); - invoke(); - } - - /** - * @testName: extContextGetContextTest - * @assertion_ids: JSF:JAVADOC:1113; JSF:JAVADOC:1109 - * @test_Strategy: Ensure getContext() returns the ServletContext of the - * current web application instance. - */ - public void extContextGetContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetContextTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1121 - * @test_Strategy: Ensure getRequest() returns the same ServletRequest as what - * was used to invoke the test servlet. - */ - public void extContextGetRequestTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestTest"); - invoke(); - } - - /** - * @testName: extContextGetResponseTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1147 - * @test_Strategy: Ensure getResponse() returns the same ServletResponse as - * what was used to invoke the test servlet. - */ - public void extContextGetResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResponseTest"); - invoke(); - } - - /** - * @testName: extContextGetApplicationMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1110 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the application map instance. Additionally verify the - * required specialized behavior of the map (mutable) as well - * as verifying that the methods of the Map work as expected. - */ - public void extContextGetApplicationMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetApplicationMapTest"); - invoke(); - } - - /** - * @testName: extContextGetSessionMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1156 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the session map instance. Additionally verify the required - * specialized behavior of the map (mutable) as well as - * verifying that the methods of the Map work as expected. - */ - public void extContextGetSessionMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetSessionMapTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1131 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the request map instance. Additionally verify the required - * specialized behavior of the map (mutable) as well as - * verifying that the methods of the Map work as expected. - */ - public void extContextGetRequestMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestMapTest"); - invoke(); - } - - /** - * @testName: extContextGetInitParameterMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1115 - * @test_Strategy: Verify context init parameters can be retrieved from the - * init parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextGetInitParameterMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetInitParameterMapTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestHeaderMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1127 - * @test_Strategy: Verify request headers can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextGetRequestHeaderMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestHeaderMapTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, TCK_ATTRIBUTE + ":" + TCK_VALUE); - invoke(); - } - - /** - * @testName: extContextGetRequestParameterMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1132 - * @test_Strategy: Verify request parameters can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextGetRequestParameterMapTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctx_web/TestServlet?testname=extContextGetRequestParameterMapTest&" - + TCK_ATTRIBUTE + "=" + TCK_VALUE + " HTTP/1.0"); - invoke(); - } - - /** - * @testName: extContextGetRequestParameterValuesMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1134 - * @test_Strategy: Verify request parameter values can be retrieved from the - * init parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextGetRequestParameterValuesMapTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctx_web/TestServlet?testname=extContextGetRequestParameterValuesMapTest&" - + TCK_ATTRIBUTE + "=" + TCK_VALUE + " HTTP/1.0"); - invoke(); - } - - /** - * @testName: extContextGetRequestCookieMapTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1126 - * @test_Strategy: Verify request cookies can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextGetRequestCookieMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestCookieMapTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, - "Cookie: $Version=1; " + TCK_ATTRIBUTE + "=" + TCK_VALUE + "; $Domain=" - + _hostname + "; $Path=" + getContextRoot()); - invoke(); - } - - /** - * @testName: extContextGetInitParameterTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1115 - * @test_Strategy: Ensure context initialization parameters are correctly - * returned by getInitParameter(). - */ - public void extContextGetInitParameterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetInitParameterTest"); - invoke(); - } - - /** - * @testName: extContextGetMimeTypeTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1118 - * @test_Strategy: Ensure when getMimeType(String) is called that the correct - * mime type is returned. - */ - public void extContextGetMimeTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetMimeTypeTest"); - invoke(); - } - - /** - * @testName: extContextGetRemoteUserTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1120 - * @test_Strategy: Ensure getRemoveUser() returns null as no login - * authentication is performed. - */ - public void extContextGetRemoteUserTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRemoteUserTest"); - invoke(); - } - - /** - * @testName: extContextGetResourcePathsTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1145 - * @test_Strategy: Ensure the Set returned by - * ExternalContext.getResourcePaths() is equal to the Set - * returned by ServletContext.getResourcePaths(). - */ - public void extContextGetResourcePathsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResourcePathsTest"); - invoke(); - } - - /** - * @testName: extContextGetResourceAsStreamTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1143 - * @test_Strategy: Ensure a non-null stream is returned when calling - * ExternalContext.getResourceAsStream() passing the path to - * the web application's deployment descriptor. - */ - public void extContextGetResourceAsStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetResourceAsStreamTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestContextPathTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1125 - * @test_Strategy: Ensure the path returned by getRequestContextPath() is the - * same as that returned by ServletContext.getContextPath(). - */ - public void extContextGetRequestContextPathTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestContextPathTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestLocaleTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1129 - * @test_Strategy: Ensure the Locale returned by getRequestLocale() is the - * same as the Locale returned by ServletRequest.getLocale(). - */ - public void extContextGetRequestLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestLocaleTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, "Accept-Language: en-IE-EURO"); - invoke(); - } - - /** - * @testName: extContextGetRequestParameterNamesTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1133 - * @test_Strategy: Ensure the parameter names returned by - * getRequestParameterNames() are the same as those returned - * by ServletRequest.getParameterNames(). - */ - public void extContextGetRequestParameterNamesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextGetRequestParameterNamesTest"); - invoke(); - } - - /** - * @testName: extContextGetRequestPathInfoTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:1135 - * @test_Strategy: Ensure the path info returned by getRequestPathInfo() is - * the same as that returned by ServletRequest.getPathInfo(). - */ - public void extContextGetRequestPathInfoTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctx_web/TestServlet/pathInfo?testname=extContextGetRequestPathInfoTest" - + " HTTP/1.0"); - invoke(); - } - - /** - * @testName: setGetSessionMaxInactiveIntervalTest - * @assertion_ids: JSF:JAVADOC:1109; JSF:JAVADOC:2582 - * @test_Strategy: Validate that we can set/get the Inactive value. Test - * values used are ( 1, 0, -1). - * - * @since 2.1 - */ - public void setGetSessionMaxInactiveIntervalTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctx_web/TestServlet/pathInfo?testname=setGetSessionMaxInactiveIntervalTest" - + " HTTP/1.0"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/build.xml deleted file mode 100644 index 373c0101fe..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.war.sun-web.xml deleted file mode 100644 index bdee70e151..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_extctx_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.xml deleted file mode 100644 index ff8c41ffa0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontext/jsf_ctx_extctx_web.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - jsf_ctx_extctx - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontext.TestServlet - - - DispatchTarget - com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontext.DispatchTarget - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - DispatchTarget - /target - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/TestServlet.java deleted file mode 100644 index 8b58782e1e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/TestServlet.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextfactory; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.ExternalContextFactory; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - ServletContext servletContext; - - Lifecycle lifecycle; - - public void init(ServletConfig config) throws ServletException { - servletContext = config.getServletContext(); - LifecycleFactory lifeFactory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - lifecycle = lifeFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - public void externalContextFactoryGetExternalContextTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ExternalContextFactory contextFactory = (ExternalContextFactory) FactoryFinder - .getFactory(FactoryFinder.EXTERNAL_CONTEXT_FACTORY); - - ExternalContext context = contextFactory.getExternalContext(servletContext, - request, response); - - if (context == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain a FacesContext instance from" - + " the FacesContextFactory."); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End externalContextFactoryGetExternalContextTest - - public void externalCtxFactoryGetExternalContextNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ExternalContextFactory contextFactory = (ExternalContextFactory) FactoryFinder - .getFactory(FactoryFinder.EXTERNAL_CONTEXT_FACTORY); - - // null context - JSFTestUtil.checkForNPE(contextFactory, "getExternalContext", - new Class[] { Object.class, Object.class, Object.class }, - new Object[] { null, request, response }, out); - - // null request - JSFTestUtil.checkForNPE(contextFactory, "getExternalContext", - new Class[] { Object.class, Object.class, Object.class }, - new Object[] { servletContext, null, response }, out); - - // null response - JSFTestUtil.checkForNPE(contextFactory, "getExternalContext", - new Class[] { Object.class, Object.class, Object.class }, - new Object[] { servletContext, request, null }, out); - - }// End externalCtxFactoryGetExternalContextNPETest - - public void externalContextFactoryGetWrappedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ExternalContextFactory contextFactory = (ExternalContextFactory) FactoryFinder - .getFactory(FactoryFinder.EXTERNAL_CONTEXT_FACTORY); - - ExternalContextFactory context = contextFactory.getWrapped(); - - if (context != null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain a FacesContext instance from" - + " the FacesContextFactory."); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End externalContextFactoryGetWrappedTest - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/URLClient.java deleted file mode 100644 index f51addd533..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/URLClient.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextfactory; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_ctx_externalctxfactory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: externalContextFactoryGetExternalContextTest - * - * @assertion_ids: JSF:JAVADOC:1186; JSF:JAVADOC:1187 - * - * @test_Strategy: Ensure a ExternalContext instance can be obtained from the - * ExternalContextFactory when providing the correct objects. - */ - public void externalContextFactoryGetExternalContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "externalContextFactoryGetExternalContextTest"); - invoke(); - } - - /** - * @testName: externalCtxFactoryGetExternalContextNPETest - * - * @assertion_ids: JSF:JAVADOC:1186; JSF:JAVADOC:1189 - * - * @test_Strategy: Ensure NullPointerExceptions are thrown if any of the - * arguments to ExternalContextFactory are null. - */ - public void externalCtxFactoryGetExternalContextNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "externalCtxFactoryGetExternalContextNPETest"); - invoke(); - } - - /** - * @testName: externalContextFactoryGetWrappedTest - * - * @assertion_ids: JSF:JAVADOC:1186; JSF:JAVADOC:1190 - * - * @test_Strategy: Ensure that A default implementation is provided that - * returns null. - */ - public void externalContextFactoryGetWrappedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "externalContextFactoryGetWrappedTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/build.xml deleted file mode 100644 index 070220a140..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.war.sun-web.xml deleted file mode 100644 index f6559ac13a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_externalctxfactory_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.xml deleted file mode 100644 index b9e61218ce..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextfactory/jsf_ctx_externalctxfactory_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - jsf_ctx_externalctxfactory - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextfactory.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/DispatchTarget.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/DispatchTarget.java deleted file mode 100644 index 48b66a0d28..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/DispatchTarget.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextwrapper; - -import java.io.IOException; - -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class DispatchTarget extends HttpServlet { - - public DispatchTarget() { - } - - public void init(ServletConfig servletConfig) throws ServletException { - super.init(servletConfig); - } - - protected void service(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - response.getWriter().write("Test PASSED"); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/TestServlet.java deleted file mode 100644 index 81541f3e82..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/TestServlet.java +++ /dev/null @@ -1,833 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextwrapper; - -import java.io.IOException; -import java.io.InputStream; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.ListIterator; -import java.util.Locale; -import java.util.Map; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.ExternalContextWrapper; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; -import jakarta.servlet.http.Cookie; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.http.HttpSession; - -public final class TestServlet extends HttpTCKServlet { - - private static final String TCK_ATTRIBUTE = "tckattribute"; - - private static final String TCK_VALUE = "tckValue"; - - private static final String NO_SUCH_ATTRIBUTE = "no_such_attribute_could_possibly_exist"; - - private static final String NO_SUCH_VALUE = "no_such_value_could_possibly_exist"; - - private ServletContext servletContext; - - private static final String TCK_KEY = "tckKey1"; - - private static final String TCK_VALUE1 = "tckValue1"; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - // ExternalContext.dispatch(String) - public void extContextWrapperDispatchTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - ExternalContextWrapper ecw = new TCKExternalContext(); - ecw.dispatch("/target"); - } - - // ExternalContext.redirect(String) - public void extContextWrapperRedirectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - ExternalContextWrapper ecw = new TCKExternalContext(); - ecw.redirect("/target"); - } - - // ExternalContext.getSession(boolean) - public void extContextWrapperGetSessionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper context = new TCKExternalContext(); - - // no current session, so false will result in null - Object session = context.getSession(false); - if (session != null) { - out.println(JSFTestUtil.FAIL - + " No session has been established - ExternalContext." - + "getSession(false) should have returned null."); - return; - } - - session = context.getSession(true); - if (session == null) { - out.println(JSFTestUtil.FAIL - + " No session was returned whne calling ExternalContext." - + "getSession(true)."); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExtenalContext.getContext() - // Test CANNOT run in a Portlet env. - public void extContextWrapperGetContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Object context = ecw.getContext(); - - if (context != null) { - if (context instanceof ServletContext) { - if (servletContext != context) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getContext() returned a ServletContext," - + " but it was not the ServletContext instance that was expected."); - out.println("Expected: " + servletContext); - out.println("Received: " + context); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getContext() did not return a ServletContext" - + " as expected."); - out.println( - "Class of object received: " + context.getClass().getName()); - return; - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getContext() returned null."); - return; - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequest() - // Test CANNOT run in a Portlet env. - public void extContextWrapperGetRequestTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - request.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - ExternalContextWrapper ecw = new TCKExternalContext(); - Object req = ecw.getRequest(); - - if (req != null) { - if (req instanceof ServletRequest) { - if (!TCK_VALUE - .equals(((ServletRequest) req).getAttribute(TCK_ATTRIBUTE))) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() returned a ServletRequest," - + " but it was not the same ServletRequest used by the current request."); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() did not return a ServletRequest" - + " as expected."); - out.println("Class of object received: " + req.getClass().getName()); - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequest() returned null."); - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getResponse() - // Test CANNOT run in a Portlet env. - public void extContextWrapperGetResponseTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - response.addHeader(TCK_ATTRIBUTE, TCK_VALUE); - ExternalContextWrapper ecw = new TCKExternalContext(); - Object res = ecw.getResponse(); - - if (res != null) { - if (res instanceof ServletResponse) { - if (!((HttpServletResponse) res).containsHeader(TCK_ATTRIBUTE)) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getResponse() returned a ServletResponse," - + " but it was not the same ServletResponse used by the current request."); - return; - } - } else { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequest() did not return a ServletResponse" - + " as expected."); - out.println("Class of object received: " + res.getClass().getName()); - } - } else { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getResponse() returned null."); - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getApplicationMap() - public void extContextWrapperGetApplicationMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - servletContext.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map applMap = ecw.getApplicationMap(); - - if (applMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getApplicationMap() returned null"); - return; - } - - String result = validateMutableMap(applMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(servletContext.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in ServletContext"); - out.println("value: " + servletContext.getAttribute(TCK_KEY)); - return; - } - - // cleanup - servletContext.removeAttribute(TCK_ATTRIBUTE); - servletContext.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getSessionMap() - public void extContextWrapperGetSessionMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - HttpSession session = request.getSession(true); - session.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map sessMap = ecw.getSessionMap(); - - if (sessMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getSessionMap() returned null"); - return; - } - - String result = validateMutableMap(sessMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(session.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in Session"); - out.println("value: " + session.getAttribute(TCK_KEY)); - return; - } - - // cleanup - session.removeAttribute(TCK_ATTRIBUTE); - session.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestMap() - public void extContextWrapperGetRequestMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - request.setAttribute(TCK_ATTRIBUTE, TCK_VALUE); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map applMap = ecw.getRequestMap(); - - if (applMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequestMap() returned null"); - return; - } - - String result = validateMutableMap(applMap, TCK_VALUE); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - if (!TCK_VALUE1.equals(request.getAttribute(TCK_KEY))) { - out.println( - "Unable to find expected value for attribute 'tckKey1' in Request"); - out.println("value: " + request.getAttribute(TCK_KEY)); - return; - } - - // cleanup - request.removeAttribute(TCK_ATTRIBUTE); - request.removeAttribute(TCK_KEY); - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getInitParameterMap() - public void extContextWrapperGetInitParameterMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map initMap = ecw.getInitParameterMap(); - - if (initMap == null) { - out.println( - JSFTestUtil.FAIL + " ExternalContext.getRequestMap() returned null"); - return; - } - - String result = validateNonMutableMap(initMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestHeaderMap() - public void extContextWrapperGetRequestHeaderMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map headerMap = ecw.getRequestHeaderMap(); - - if (headerMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestHeaderMap() returned null"); - return; - } - - String result = validateNonMutableMap(headerMap, TCK_VALUE, true); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestParameterMap() - public void extContextWrapperGetRequestParameterMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map parameterMap = ecw.getRequestParameterMap(); - - if (parameterMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestParameterMap() returned null"); - return; - } - - String result = validateNonMutableMap(parameterMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestParameterValuesMap() - public void extContextWrapperGetRequestParameterValuesMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map parameterValuesMap = ecw - .getRequestParameterValuesMap(); - - if (parameterValuesMap == null) { - out.println(JSFTestUtil.FAIL - + " ExternalContext.getRequestParameterValuesMap() returned null"); - return; - } - - String result = validateNonMutableMap(parameterValuesMap, TCK_VALUE, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestCookieMap() - public void extContextWrapperGetRequestCookieMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Map cookieMap = ecw.getRequestCookieMap(); - - if (cookieMap == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExternalContext.getCookieMap() returned null"); - return; - } - - Cookie[] cookies = request.getCookies(); - Cookie controlCookie = null; - for (int i = 0; i < cookies.length; i++) { - if (cookies[i].getName().equals(TCK_ATTRIBUTE)) { - controlCookie = cookies[i]; - break; - } - } - - if (controlCookie == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected cookie not found in request."); - return; - } - - String result = validateNonMutableMap(cookieMap, controlCookie, false); - - if (result != null) { - out.println("Test FAILED. " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getInitParamter(String) - public void extContextWrapperGetInitParameterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - String value = ecw.getInitParameter(TCK_ATTRIBUTE); - - if (!TCK_VALUE.equals(value)) { - out.println(JSFTestUtil.FAIL + " Expected a value of '" + TCK_VALUE - + "' for Context init parameter" + " '" + TCK_ATTRIBUTE + "'." - + JSFTestUtil.NL + "Received: " + value); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // ExternalContext.getMimeType(String) - public void extContextWrapperGetMimeTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String fileName = "duke-boxer.gif"; - String expected = "image/gif"; - ExternalContextWrapper ecw = new TCKExternalContext(); - String value = ecw.getMimeType(fileName); - - if (!expected.equals(value)) { - out.println(JSFTestUtil.FAIL + " Unexpected value return from " - + "ExternalContext.getMimeType(" + fileName + ")" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Received: " + value - + JSFTestUtil.NL); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // ExternalContext.getRemoteUser() - // Security is optional in ServletContainers, so expect null from this method - public void extContextWrapperGetRemoteUserTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - String result = ecw.getRemoteUser(); - - if (result != null) { - out.println(JSFTestUtil.FAIL - + " No 'login' performed, yet ExternalContext.getRemoveUser() returned" - + " a non-null value." + JSFTestUtil.NL + "Received: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // ExternalContext.getResourcePaths() - public void extContextWrapperGetResourcePathsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Set resourcePaths = servletContext.getResourcePaths("/"); - ExternalContextWrapper ecw = new TCKExternalContext(); - Set extResourcePaths = ecw.getResourcePaths("/"); - - if (!resourcePaths.equals(extResourcePaths)) { - out.println(JSFTestUtil.FAIL - + " The Set returned by ServletContext.getResourcePaths(String)," - + " was not the same as the Set returned by ExternalContext.getResourcePaths(String)." - + JSFTestUtil.NL + "Expected: " - + JSFTestUtil.getAsString(resourcePaths.iterator()) + "Received: " - + JSFTestUtil.getAsString(extResourcePaths.iterator())); - - } else { - out.println(JSFTestUtil.PASS); - } - - } - - // ExternalContext.getResourceAsStream() - public void extContextWrapperGetResourceAsStreamTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - InputStream in = ecw.getResourceAsStream("/WEB-INF/web.xml"); - - if (in == null) { - out.println( - "ExternalContext.getResourceAsStream(\"/WEB-INF/web.xml\") returned null."); - } else { - out.println(JSFTestUtil.PASS); - } - - } - - // ExternalContext.getRequestContextPath() - public void extContextWrapperGetRequestContextPathTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String expectedPath = request.getContextPath(); - ExternalContextWrapper ecw = new TCKExternalContext(); - String testPath = ecw.getRequestContextPath(); - - if (!expectedPath.equals(testPath)) { - out.println(JSFTestUtil.FAIL - + " The value returned by ExternalContext.getRequestContextPath()" - + " returned a different result than that from ServletRequest.getContextPath()." - + JSFTestUtil.NL + "Expected: " + expectedPath + JSFTestUtil.NL - + "Received: " + testPath); - - } else { - out.println(JSFTestUtil.PASS); - } - - } - - // ExternalContext.getRequestLocale() - public void extContextWrapperGetRequestLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Locale controlLocale = request.getLocale(); - ExternalContextWrapper ecw = new TCKExternalContext(); - Locale testLocale = ecw.getRequestLocale(); - - if (!controlLocale.equals(testLocale)) { - out.println(JSFTestUtil.FAIL + " The values returned by " - + "ExternalContext.getRequestLocale() and ServletRequest.getLocale() differ." - + JSFTestUtil.NL + "Expected: " + controlLocale + JSFTestUtil.NL - + "Received:" + testLocale); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // ExternalContext.getRequestParameterNames - public void extContextWrapperGetRequestParameterNamesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper ecw = new TCKExternalContext(); - - String[] controlNames = JSFTestUtil - .getAsStringArray(request.getParameterNames()); - - String[] testNames = JSFTestUtil - .getAsStringArray(ecw.getRequestParameterNames()); - - if (controlNames.length != testNames.length) { - out.println(JSFTestUtil.FAIL - + " The number of parameter names returned by ServletRequest." - + "getParameterNames() differs from what was returned by ExternalContext." - + "getParameterNames()."); - return; - } - - for (int i = 0; i < controlNames.length; i++) { - if (Arrays.binarySearch(testNames, controlNames[i]) < 0) { - out.println(JSFTestUtil.FAIL + " Unable to find the parameter name '" - + controlNames[i] + "'" - + " in the set of parameter names returned by " - + "ExternalContext.getParameterNames()." + JSFTestUtil.NL - + "ExternalContext.getParameterNames() returned: " - + JSFTestUtil.getAsString(testNames)); - return; - } - } - out.println(JSFTestUtil.PASS); - } - - // ExternalContext.getRequestPathInfo() - public void extContextWrapperGetRequestPathInfoTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String controlPath = request.getPathInfo(); - ExternalContextWrapper ecw = new TCKExternalContext(); - String testPath = ecw.getRequestPathInfo(); - - if (!controlPath.equals(testPath)) { - out.println(JSFTestUtil.FAIL - + " The path info returned by ExternalContext.getRequestPathInfo()" - + " didn't match the value returned by ServletRequest.getPathInfo()." - + JSFTestUtil.NL + "Expected: " + controlPath + JSFTestUtil.NL - + "Received: " + testPath); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - // ExternalContext.setSessionMaxInactiveInterval(int) - public void extContextWrapperSetGetSessionMaxInactiveIntervalTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ExternalContextWrapper econtext = new TCKExternalContext(); - int result; - - ArrayList testValues = new ArrayList(); - { - testValues.add(-1); - testValues.add(0); - testValues.add(1); - } - - ListIterator litr = testValues.listIterator(); - while (litr.hasNext()) { - Integer tv = (Integer) litr.next(); - - try { - econtext.setSessionMaxInactiveInterval(tv); - } catch (Exception e) { - out.println("Test FAILED. Unexpected Exception when setting " - + "MaxInactiveInterval to " + tv + JSFTestUtil.NL); - e.printStackTrace(); - } - - result = econtext.getSessionMaxInactiveInterval(); - if (result != tv) { - out.println("Test FAILED. " + JSFTestUtil.NL - + "Unexpected value returned from getSessionMaxInactiveInterval()." - + JSFTestUtil.NL + "Expected: " + tv + JSFTestUtil.NL - + "Received: " + result); - return; - } - } - - out.println(JSFTestUtil.PASS); - - }// End extContextWrapperSetGetSessionMaxInactiveIntervalTest - - // ------------------------------------------------------ Private Methods - // -------- - private String validateCommonMethods(Map map, Object value, - boolean ignoreCase) { - - if (!value.equals(map.get(TCK_ATTRIBUTE))) { - return "Map.get(\"" + TCK_ATTRIBUTE - + "\") didn't return the expected value, '" + TCK_VALUE + "'.\n" - + " Received: " + map.get(TCK_ATTRIBUTE); - } - - if (map.get(NO_SUCH_ATTRIBUTE) != null) { - return "Map.get() for a non-existent attribute returned a non-null value."; - } - - if (!map.containsKey(TCK_ATTRIBUTE)) { - return "Map.containsKey(\"" + TCK_ATTRIBUTE + "\") returned false"; - } - - if (map.containsKey(NO_SUCH_ATTRIBUTE)) { - return "Map.containsKey(Object) returned true for a key that doesn't exist in the map."; - } - - Set entrySet = map.entrySet(); - if (entrySet == null) { - return "Map.entrySet() returned null."; - } - - boolean found = false; - for (Iterator i = entrySet.iterator(); i.hasNext();) { - Map.Entry entry = (Map.Entry) i.next(); - boolean test = (ignoreCase) - ? TCK_ATTRIBUTE.equalsIgnoreCase(entry.getKey().toString()) - : TCK_ATTRIBUTE.equals(entry.getKey()); - if (test) { - if (value.equals(entry.getValue())) { - found = true; - break; - } - } - } - - if (!found) { - return "Map.entrySet() did not return a Map.Entry for a key/value pair.\n" - + "Key " + TCK_ATTRIBUTE + ", Value: " + value; - } - - if (!(map.equals(map))) { - return "Map.equals(Object) returned false when passing the same map as an argument."; - } - - if (map.equals(new HashMap())) { - return "Map.equals(new HashMap()) returned true when the two instances were not equal"; - } - - if (!map.containsValue(value)) { - return "Map.containsValue(\"" + value + "\") returned false"; - } - - if (map.containsValue(NO_SUCH_VALUE)) { - return "Map.containsvalue() returned true for a value that doesn't exist in the map."; - } - - if (map.hashCode() != map.hashCode()) { - return "Map.hasCode() returned different values each time it was called on the " - + "same Map instance."; - } - - if (map.isEmpty()) { - return "Map.isEmtpy() returned true when values exist in the Map."; - } - - Set keySet = map.keySet(); - if (!keySet.contains(TCK_ATTRIBUTE)) { - return "Map.keySet() returned a Set that didn't contain one of the expected keys: " - + TCK_ATTRIBUTE; - } - - if (!(map.size() > 0)) { - return "Map.size() returned a value less than or equal to zero when there are entries in the Map."; - } - - Collection values = map.values(); - if (!values.contains(value)) { - return "Map.values() returned a Collection missing one of the values expected to be found in the Map."; - } - - if (values.contains(NO_SUCH_VALUE)) { - return "Map.values() returned a Collection with a value that should not have been present"; - } - - return null; - } - - private String validateMutableMap(Map map, Object value) { - map.remove(NO_SUCH_ATTRIBUTE); - - String result = validateCommonMethods(map, value, false); - if (result != null) { - return result; - } - - map.put(TCK_KEY, TCK_VALUE1); - if (!"tckValue1".equals(map.get("tckKey1"))) { - return "Unable to find value for key 'tckKey1' that was just added to the Map."; - } - - map.remove(TCK_KEY); - if (map.get("tckKey1") != null) { - return "Map.remove() didn't remove the key/value pair from map."; - } - - map.put(TCK_KEY, TCK_VALUE1); - - return null; - } - - private String validateNonMutableMap(Map map, Object value, - boolean ignoreCase) { - - String result = validateCommonMethods(map, value, ignoreCase); - if (result != null) { - return result; - } - - try { - map.remove(NO_SUCH_ATTRIBUTE); - return "Map.remove() should not be supported by this Map."; - } catch (Throwable t) { - ; - } - - try { - map.put("key1", "val1"); - return "Map.put() should not be supported by this Map."; - } catch (Throwable t) { - ; - } - - return null; - } - - // --------------------------------------------------------- private classes - - private static class TCKExternalContext extends ExternalContextWrapper { - - @Override - public ExternalContext getWrapped() { - return FacesContext.getCurrentInstance().getExternalContext(); - } - - } // End TCKExternalContext - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/URLClient.java deleted file mode 100644 index 618a7cec7b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/URLClient.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TCK_ATTRIBUTE = "tckattribute"; - - private static final String TCK_VALUE = "tckValue"; - - private static final String CONTEXT_ROOT = "/jsf_ctx_extctxwrapper_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: extContextWrapperDispatchTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1193 - * @test_Strategy: Verify that dispatch(), in a Servlet environment, can be - * successfully used to dispatch the current request to - * another resource within the web application. - */ - public void extContextWrapperDispatchTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperDispatchTest"); - invoke(); - } - - /** - * @testName: extContextWrapperRedirectTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:SPEC:1253 - * @test_Strategy: Verify that redirect(), in a Servlet environment, can be - * successfully used to redirect the current request to - * another resource. The client will verify that the Location - * header is present in the response with the appropriate - * host, port, and path. - */ - public void extContextWrapperRedirectTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, "GET " + CONTEXT_ROOT - + "/TestServlet?testname=extContextWrapperRedirectTest HTTP/1.0"); - TEST_PROPS.setProperty(EXPECTED_HEADERS, - "Location:http://" + _hostname + ":" + _port + "/target"); - invoke(); - } - - /** - * @testName: extContextWrapperGetSessionTest - * @assertion_ids: JSF:JAVADOC:1155; JSF:JAVADOC:1244 - * @test_Strategy: Ensure the behavior of getSession(). - if no session - * established with client, getSession(false) returns null. - - * getSession(true) will create a new session - */ - public void extContextWrapperGetSessionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetSessionTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetContextTest - * @assertion_ids: JSF:JAVADOC:1205; JSF:JAVADOC:1202 - * @test_Strategy: Ensure getContext() returns the ServletContext of the - * current web application instance. - */ - public void extContextWrapperGetContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetContextTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1213 - * @test_Strategy: Ensure getRequest() returns the same ServletRequest as what - * was used to invoke the test servlet. - */ - public void extContextWrapperGetRequestTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRequestTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetResponseTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1236 - * @test_Strategy: Ensure getResponse() returns the same ServletResponse as - * what was used to invoke the test servlet. - */ - public void extContextWrapperGetResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetResponseTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetApplicationMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1203 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the application map instance. Additionally verify the - * required specialized behavior of the map (mutable) as well - * as verifying that the methods of the Map work as expected. - */ - public void extContextWrapperGetApplicationMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetApplicationMapTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetSessionMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1245 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the session map instance. Additionally verify the required - * specialized behavior of the map (mutable) as well as - * verifying that the methods of the Map work as expected. - */ - public void extContextWrapperGetSessionMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetSessionMapTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1223 - * @test_Strategy: Verify attributes added to the Map can be retrieved from - * the request map instance. Additionally verify the required - * specialized behavior of the map (mutable) as well as - * verifying that the methods of the Map work as expected. - */ - public void extContextWrapperGetRequestMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRequestMapTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetInitParameterMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1209 - * @test_Strategy: Verify context init parameters can be retrieved from the - * init parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextWrapperGetInitParameterMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetInitParameterMapTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestHeaderMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1219 - * @test_Strategy: Verify request headers can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextWrapperGetRequestHeaderMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRequestHeaderMapTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, TCK_ATTRIBUTE + ":" + TCK_VALUE); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestParameterMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1224 - * @test_Strategy: Verify request parameters can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextWrapperGetRequestParameterMapTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctxwrapper_web/TestServlet?testname=" - + "extContextWrapperGetRequestParameterMapTest&" + TCK_ATTRIBUTE - + "=" + TCK_VALUE + " HTTP/1.0"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestParameterValuesMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1226 - * @test_Strategy: Verify request parameter values can be retrieved from the - * init parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextWrapperGetRequestParameterValuesMapTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctxwrapper_web/TestServlet?testname=" - + "extContextWrapperGetRequestParameterValuesMapTest&" - + TCK_ATTRIBUTE + "=" + TCK_VALUE + " HTTP/1.0"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestCookieMapTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1218 - * @test_Strategy: Verify request cookies can be retrieved from the init - * parameter map. Additionally ensure that the map is - * immutable and the methods that don't affect its content - * work as expected. - */ - public void extContextWrapperGetRequestCookieMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRequestCookieMapTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, - "Cookie: $Version=1; " + TCK_ATTRIBUTE + "=" + TCK_VALUE + "; $Domain=" - + _hostname + "; $Path=" + getContextRoot()); - invoke(); - } - - /** - * @testName: extContextWrapperGetInitParameterTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1208 - * @test_Strategy: Ensure context initialization parameters are correctly - * returned by getInitParameter(). - */ - public void extContextWrapperGetInitParameterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetInitParameterTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetMimeTypeTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1210 - * @test_Strategy: Ensure when getMimeType(String) is called that the correct - * mime type is returned. - */ - public void extContextWrapperGetMimeTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetMimeTypeTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRemoteUserTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1212 - * @test_Strategy: Ensure getRemoveUser() returns null as no login - * authentication is performed. - */ - public void extContextWrapperGetRemoteUserTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRemoteUserTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetResourcePathsTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1235 - * @test_Strategy: Ensure the Set returned by - * ExternalContext.getResourcePaths() is equal to the Set - * returned by ServletContext.getResourcePaths(). - */ - public void extContextWrapperGetResourcePathsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetResourcePathsTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetResourceAsStreamTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1234 - * @test_Strategy: Ensure a non-null stream is returned when calling - * ExternalContext.getResourceAsStream() passing the path to - * the web application's deployment descriptor. - */ - public void extContextWrapperGetResourceAsStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetResourceAsStreamTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestContextPathTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1217 - * @test_Strategy: Ensure the path returned by getRequestContextPath() is the - * same as that returned by ServletContext.getContextPath(). - */ - public void extContextWrapperGetRequestContextPathTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "extContextWrapperGetRequestContextPathTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestLocaleTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1221 - * @test_Strategy: Ensure the Locale returned by getRequestLocale() is the - * same as the Locale returned by ServletRequest.getLocale(). - */ - public void extContextWrapperGetRequestLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "extContextWrapperGetRequestLocaleTest"); - TEST_PROPS.setProperty(REQUEST_HEADERS, "Accept-Language: en-IE-EURO"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestParameterNamesTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1225 - * @test_Strategy: Ensure the parameter names returned by - * getRequestParameterNames() are the same as those returned - * by ServletRequest.getParameterNames(). - */ - public void extContextWrapperGetRequestParameterNamesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "extContextWrapperGetRequestParameterNamesTest"); - invoke(); - } - - /** - * @testName: extContextWrapperGetRequestPathInfoTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:1227 - * @test_Strategy: Ensure the path info returned by getRequestPathInfo() is - * the same as that returned by ServletRequest.getPathInfo(). - */ - public void extContextWrapperGetRequestPathInfoTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctxwrapper_web/TestServlet/pathInfo?testname=" - + "extContextWrapperGetRequestPathInfoTest HTTP/1.0"); - invoke(); - } - - /** - * @testName: extContextWrapperSetGetSessionMaxInactiveIntervalTest - * @assertion_ids: JSF:JAVADOC:1202; JSF:JAVADOC:2586 - * @test_Strategy: Validate that we can set/get the Inactive value. Test - * values used are ( 1, 0, -1). - * - * @since 2.1 - */ - public void extContextWrapperSetGetSessionMaxInactiveIntervalTest() - throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET /jsf_ctx_extctxwrapper_web/TestServlet/pathInfo?testname=" - + "extContextWrapperSetGetSessionMaxInactiveIntervalTest HTTP/1.0"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/build.xml deleted file mode 100644 index 8802db846c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.war.sun-web.xml deleted file mode 100644 index 35e46f9f38..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_extctxwrapper_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.xml deleted file mode 100644 index b88fc2204d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/externalcontextwrapper/jsf_ctx_extctxwrapper_web.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - jsf_ctx_extctxwrapper - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextwrapper.TestServlet - - - DispatchTarget - com.sun.ts.tests.jsf.api.jakarta_faces.context.externalcontextwrapper.DispatchTarget - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - DispatchTarget - /target - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/TestServlet.java deleted file mode 100644 index e309417c03..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/TestServlet.java +++ /dev/null @@ -1,1323 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontext; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Writer; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ELContext; -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.application.ProjectStage; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.ExceptionHandler; -import jakarta.faces.context.ExceptionHandlerWrapper; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.PartialViewContext; -import jakarta.faces.context.ResponseStream; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.event.PhaseId; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.RenderKitWrapper; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - // ------------------------------------------------ Test Methods ------- - // FacesContext.getClientIdsWithMessages() - - public void facesCtxGetClientIdsWithMessagesTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(createViewRoot()); - - UIComponent component1 = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - component1.setId("component1"); - UIComponent component2 = getApplication() - .createComponent(UIOutput.COMPONENT_TYPE); - component2.setId("component2"); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - - context.addMessage(component1.getClientId(context), message1); - context.addMessage(component2.getClientId(context), message1); - - String[] controlClientIds = { component1.getClientId(context), - component2.getClientId(context) }; - String[] testClientIds = JSFTestUtil - .getAsStringArray(context.getClientIdsWithMessages()); - - if (controlClientIds.length != testClientIds.length) { - out.println( - JSFTestUtil.FAIL + " Unexpected number of client IDs returned by " - + "FacesContext.getComponentIdsWithMessages()."); - out.println( - "Exected the number of IDs returned to be 2. Actual number returned: " - + testClientIds.length); - return; - } - - List list = Arrays.asList(testClientIds); - for (int i = 0; i < controlClientIds.length; i++) { - if (!list.contains(controlClientIds[i])) { - out.println(JSFTestUtil.FAIL + " Unable to find '" + controlClientIds[i] - + "' in the client IDs returned" - + " by FacesContext.getClientIdsWithMessages()."); - for (int j = 0; j < testClientIds.length; j++) { - out.println("Client ID received: " + testClientIds[j]); - } - return; - } - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.getClientIdsWithMessages() returning an empty Iterator when no - // components are found. - - public void facesCtxGetClientIdsWithMessagesEmptyTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - Iterator i = context.getClientIdsWithMessages(); - - if (i == null) { - out.println(JSFTestUtil.FAIL - + " FacesContext.getClientIdsWithMessages() returned null" - + " when instead of an empty Iterator."); - return; - } - - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL - + " FacesContext.getClientIdsWithMessages() returned a" - + " non-empty Iterator even though no messages have been added."); - while (i.hasNext()) { - UIComponent comp = (UIComponent) i.next(); - out.println("Component: " + ((comp == null) ? null : comp.getId())); - } - return; - } - - context.addMessage(null, new FacesMessage()); - context.addMessage(null, new FacesMessage()); - i = context.getClientIdsWithMessages(); - - if (i == null) { - out.println("Test FAILED[2]. FacesContext.getClientIds" - + "WithMessages() returned null when instead of an empty " - + "Iterator."); - return; - } - - if (i.hasNext()) { - UIComponent comp = (UIComponent) i.next(); - if (comp != null) { - out.println( - JSFTestUtil.FAIL + " Non-null value returned from iterator."); - return; - } - - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " Iterator contained more than 1" - + " value after when getClientIdWithMessages() was " - + "called where a Message existed with no client id."); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.addMessage(UIComponent, FacesMessage) - // FacesContext.getMessages() - // FacesContext.getMessages(UIComponent) - // 7/18/05 updated test to ensure message order is retained by returned - // iterators. - - public void facesCtxAddGetMessagesTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - component.setId("input1"); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message4 summary", "message4 detail", "message4"); - - FacesContext context = getFacesContext(); - context.setViewRoot(createViewRoot()); - - context.addMessage(component.getClientId(context), message1); - context.addMessage(component.getClientId(context), message3); - context.addMessage(null, message2); - context.addMessage(null, message4); - - FacesMessage[] controlMessagesComp = { message1, message3 }; - FacesMessage[] controlMessagesNoComp = { message1, message3, message2, - message4 }; - FacesMessage[] controlMessagesNullComp = { message2, message4 }; - - FacesMessage[] testMessagesComp = getMessagesAsArray( - context.getMessages(component.getClientId(context))); - - // the next two should be equivalent - FacesMessage[] testMessagesNullComp = getMessagesAsArray( - context.getMessages(null)); - FacesMessage[] testMessages = getMessagesAsArray(context.getMessages()); - - // check the messages associated with a component - if (controlMessagesComp.length != testMessagesComp.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages" - + " returned when FacesContext. getMessages(UIComponent)" - + " was called."); - out.println("Expected 2 messages to be returned. Actual message " - + "count: " + testMessagesComp.length); - return; - } - - List messages = Arrays.asList(testMessagesComp); - for (int i = 0; i < controlMessagesComp.length; i++) { - if (!messages.get(i).equals(controlMessagesComp[i])) { - out.println(JSFTestUtil.FAIL + " Unable to find '" - + controlMessagesComp[i] + "' in the return value of FacesContext." - + "getMessages(UIComponent) when the appropriate" - + " component was provided."); - out.println( - "Messages returned: " + JSFTestUtil.getAsString(testMessagesComp)); - return; - } - } - - // check the messages returned when a null value is provided - // to FacesContext.getMessages(null) - if (controlMessagesNullComp.length != testMessagesNullComp.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages " - + "returned when FacesContext. getMessages(null) was " + "called."); - out.println("Expected 2 messages to be returned. Actual message " - + "count: " + testMessagesNullComp.length); - return; - } - - messages = Arrays.asList(testMessagesNullComp); - for (int i = 0; i < controlMessagesNullComp.length; i++) { - if (!messages.get(i).equals(controlMessagesNullComp[i])) { - out.println( - JSFTestUtil.FAIL + " Unable to find '" + controlMessagesNullComp[i] - + "' in the return value of FacesContext." - + "getMessages(UIComponent) when null was passed to the" - + " method."); - out.println("Messages returned: " - + JSFTestUtil.getAsString(testMessagesNullComp)); - return; - } - } - - // check the messages returned by FacesContext.getMessages() - if (controlMessagesNoComp.length != testMessages.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages " - + "returned when FacesContext." + "getMessages() was called."); - out.println("Expected 4 messages to be returned. Actual message" - + " count: " + testMessages.length); - return; - } - - messages = Arrays.asList(testMessages); - for (int i = 0; i < controlMessagesNoComp.length; i++) { - if (!messages.get(i).equals(controlMessagesNoComp[i])) { - out.println( - JSFTestUtil.FAIL + " Unable to find '" + controlMessagesNoComp[i] - + "' in the return value of FacesContext." + "getMessages()"); - out.println( - "Messages returned: " + JSFTestUtil.getAsString(testMessages)); - return; - } - } - out.println(JSFTestUtil.PASS); - } - // FacesContext.getMessages(UIComponent) - // FacesContext.getMessages() - // - both return an empty Iterator if no messages were added. - - public void facesCtxGetMessagesEmptyTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(createViewRoot()); - - Iterator i = context.getMessages(); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages() " - + "returned a non-empty Iterator when no FacesMessage " - + "instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages() returned " - + "null as opposed to an empty Iterator."); - return; - } - - i = context.getMessages(getApplication() - .createComponent(UIInput.COMPONENT_TYPE).getClientId(context)); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(" - + "UIComponent) returned a non-empty Iterator when no " - + "FacesMessage instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(UIComponent)" - + " returned null as opposed to an empty Iterator."); - return; - } - - i = context.getMessages(null); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(null) " - + "returned a non-empty Iterator when no FacesMessage" - + " instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(null) " - + "returned null as opposed to an empty Iterator."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void facesCtxGetMessageListTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - this.addTestMessagesToContext(context, null); - - try { - List allMessages = context.getMessageList(); - if (allMessages.size() != 4) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getMessageList unexepected size! " + JSFTestUtil.NL - + "Expected: 4" + JSFTestUtil.NL + "Received: " - + allMessages.size()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetMessageListTest - - public void facesCtxGetMessageListByIdTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - this.addTestMessagesToContext(context, "test_one"); - - try { - List allMessages = context.getMessageList("test_one"); - if (allMessages.size() != 2) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getMessageList unexepected size! " + JSFTestUtil.NL - + "Expected: 2" + JSFTestUtil.NL + "Received: " - + allMessages.size()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetMessageListByIdTest - - public void facesCtxisValidationFailedTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - Boolean isFailed; - try { - isFailed = context.isValidationFailed(); - if (isFailed) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isValadationFailed()" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + isFailed); - return; - } - - context.validationFailed(); - isFailed = context.isValidationFailed(); - if (!isFailed) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isValadationFailed() after calling " - + "FacesContext.validationFailed." + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: " + isFailed); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxisValidationFailedTest - - public void facesCtxisPostbackTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.getApplication(); - Boolean isPB; - - try { - isPB = context.isPostback(); - if (isPB) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isPostback() before calling " - + "StateManger.writeState()." + JSFTestUtil.NL + "Expected: false" - + JSFTestUtil.NL + "Received: " + isPB); - return; - } - - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxisPostbackTest - - // FacesContext.getApplication() - public void facesCtxGetApplicationTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - Application controlApplication = getApplication(); - Application testApplication = getFacesContext().getApplication(); - - if (controlApplication == null) { - out.println(JSFTestUtil.FAIL + " Application.getCurrentInstance() " - + "unexpectedly returned null."); - return; - } - - if (controlApplication != testApplication) { - out.println(JSFTestUtil.FAIL + " The Application instance returned by " - + "Application. getCurrentInstance() differs from the " - + "Application returned by FacesContext.getApplication()."); - out.println("Application.getCurrentInstance(): " + controlApplication); - out.println("FacesContext.getApplication():" + testApplication); - return; - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.addMessage(UIComponent, FacesMessage) throws NPE if - // FacesMessage is null - - public void facesCtxAddMessageNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext(), "addMessage", - new Class[] { String.class, FacesMessage.class }, - new Object[] { "id", null }, out); - } - - // FacesContext.isProjectStage(ProjectStage stage) throws NPE if stage is null - public void facesCtxIsProjectStageNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext(), "isProjectStage", - new Class[] { ProjectStage.class }, new Object[] { null }, out); - } - - // FacesContext.getCurrentInstance() - public void facesCtxSetGetCurrentInstanceTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext controlContext = getFacesContext(); - FacesContext testContext = FacesContext.getCurrentInstance(); - - if (controlContext != testContext) { - out.println(JSFTestUtil.FAIL + " FacesContext.getCurrentInstance() " - + "returned a FacesContext instance that differs from the " - + "one that is currently services this request."); - out.println("Current FacesContext: " + controlContext); - out.println("FacesContext.getCurrentInstance(): " + testContext); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesContext.getMaximumSeverity() - public void facesCtxGetMaximumSeverityTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(new UIViewRoot()); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_WARN, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_ERROR, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_FATAL, - "message4 summary", "message4 detail", "message4"); - - /* - * if no messages have been queued, then FacesContext.getMaximumSeverity - * should return null - */ - if (context.getMaximumSeverity() != null) { - out.println( - JSFTestUtil.FAIL + " FacesContext.getMaximumSeverity returned a" - + "non null value when no messages have been added to the" - + " FacesContext."); - out.println( - "Severity received: " + context.getMaximumSeverity().getOrdinal()); - return; - } - - context.addMessage(null, message1); - int severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_INFO.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_INFO when only a SEVERITY_INFO message exists" - + " in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_INFO: " - + FacesMessage.SEVERITY_INFO); - return; - } - - context.addMessage(null, message2); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_WARN.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_WARN when both a SEVERITY_INFO and " - + "SEVERITY_WARN message exist in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_WARN: " - + FacesMessage.SEVERITY_WARN); - return; - } - - context.addMessage(null, message3); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_ERROR.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_ERROR when messages with SEVERITY_INFO, " - + "SEVERITY_WARN, and SEVERITY_ERROR exist in the" - + " FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_ERROR: " - + FacesMessage.SEVERITY_ERROR); - return; - } - - context.addMessage(null, message4); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_FATAL.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_ERROR when messages with SEVERITY_INFO, " - + "SEVERITY_WARN, SEVERITY_ERROR, SEVERITY_FATAL exist" - + " in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_FATAL: " - + FacesMessage.SEVERITY_FATAL); - return; - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.getResponseComplete() - // FacesContext.responseComplete() - - public void facesCtxResponseCompleteTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(new UIViewRoot()); - - if (context.getResponseComplete()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getResponseComplete() to return false if FacesContext." - + "responseComplete() hasn't been called."); - return; - } - - context.responseComplete(); - - if (!context.getResponseComplete()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getResponseComplete() to return true if" - + " FacesContext.responseComplete() has been called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.getRenderResponse() - // FacesContext.renderResponse() - - public void facexCtxRenderResponseTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(new UIViewRoot()); - - if (context.getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getRenderResponse() to return false if" - + " FacesContext.renderResponse() hasn't been called."); - return; - } - - context.renderResponse(); - - if (!context.getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getRenderResponse() to return true if" - + " FacesContext.renderResponse() has been called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - // FacesContext.setResponseWriter() - // FacesContext.getResponseWriter() - - public void facesCtxSetGetResponseWriterTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(new UIViewRoot()); - - ResponseWriter writer = new TCKResponseWriter(); - - context.setResponseWriter(writer); - ResponseWriter test = context.getResponseWriter(); - - if (test == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseWriter() " - + "returned null after FacesContext.setResponseWriter(" - + "ResponseWriter) was called."); - return; - } - - if (test != writer) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseWriter()" - + " did not return the expected" + " ResponseWriter instance."); - out.println("Expected: " + writer); - out.println("Received: " + test); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesContext.[get, set]ResponseStream() - public void facesCtxSetGetResponseStreamTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - context.setViewRoot(new UIViewRoot()); - - ResponseStream stream = new TCKResponseStream(); - - context.setResponseStream(stream); - ResponseStream test = context.getResponseStream(); - - if (test == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseStream()" - + " returned null after FacesContext.setResponseStream(" - + "ResponseStream) was called."); - return; - } - - if (test != stream) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseStream() " - + "did not return the expected ResponseStream instance."); - out.println("Expected: " + stream); - out.println("Received: " + test); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End facesCtxSetGetResponseStreamTest - - public void facesCtxSetResponseStreamNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext(), "setResponseStream", - new Class[] { ResponseStream.class }, new Object[] { null }, out); - - }// End facesCtxSetResponseStreamNPETest - - public void facesCtxSetResponseWriterNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext(), "setResponseWriter", - new Class[] { ResponseWriter.class }, new Object[] { null }, out); - - }// End facesCtxSetResponseWriterNPETest - - // FacesContext.[get, set]ViewRoot() - public void facesCtxSetGetViewRootTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = (UIViewRoot) getApplication() - .createComponent(UIViewRoot.COMPONENT_TYPE); - - context.setViewRoot(root); - UIViewRoot test = context.getViewRoot(); - - if (test == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getViewRoot() returned " - + "null after FacesContext.setViewRoot(UIViewRoot) " + "was called."); - return; - } - - if (test != root) { - out.println(JSFTestUtil.FAIL + " FacesContext.getViewRoot() did not " - + "return the expected UIViewRoot instance."); - out.println("Expected: " + root); - out.println("Received: " + test); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxSetGetViewRootTest - - // FacesContext.[is, set]ProcessingEvents() - public void facesCtxIsGetProcessingEventTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - context.setProcessingEvents(true); - if (!context.isProcessingEvents()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from FacesContext.isProcessingEvents()" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + context.isProcessingEvents()); - - } else { - context.setProcessingEvents(false); - if (context.isProcessingEvents()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from FacesContext.isProcessingEvents()" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + context.isProcessingEvents()); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - } // End facesCtxIsGetProcessingEventTest - - // FacesContext.[get, set]CurrentPhaseId() - public void facesCtxSetGetCurrentPhaseIdTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - context.setCurrentPhaseId(PhaseId.ANY_PHASE); - PhaseId result = context.getCurrentPhaseId(); - if (PhaseId.ANY_PHASE.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + " FacesContext.getCurrentPhaseId() did not " - + "return the expected PhaseId."); - out.println("Expected: " + PhaseId.ANY_PHASE); - out.println("Received: " + result); - } - - } // End facesCtxSetGetCurrentPhaseIdTest - - // Ensure NPE is thrown if a null argument is passed to - // FacesContext.setViewRoot(). - public void facesCtxSetViewRootNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(getFacesContext(), "setViewRoot", - new Class[] { UIViewRoot.class }, new Object[] { null }, out); - } - - // All methods of FacesContext must throw an IllegalStateException - // if called after FacesContext.release() has been called with the - // Exception of those referenced in the exMethods List. - public void facesCtxISEAfterReleaseTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - // Excluded methods that do not throw IllegalStateException. - List exMethods = new ArrayList(); - exMethods.add("release"); - exMethods.add("isReleased"); - exMethods.add("getComponentModificationManager"); - exMethods.add("setCurrentInstance"); - exMethods.add("getCurrentInstance"); - exMethods.add("getCurrentPhaseId"); - exMethods.add("setExceptionHandler"); - exMethods.add("getExceptionHandler"); - exMethods.add("setProcessingEvents"); - exMethods.add("isProcessingEvents"); - - Method[] methods = FacesContext.class.getDeclaredMethods(); - // loop through the remaining methods an ensure they all - // throw an IllegalStateException - context.release(); - - for (int i = 0; i < methods.length; i++) { - Method method = methods[i]; - String name = method.getName(); - - if (!isExcluded(name, exMethods)) { - Class[] types = method.getParameterTypes(); - Object[] params = new Object[types.length]; - - if (name.equals("isProjectStage")) { - params[0] = ProjectStage.Development; - } - - JSFTestUtil.checkForISE(context, name, types, params, out); - - } - } - } - - public void facesCtxGetELContextTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - ELContext elContext = context.getELContext(); - - if (elContext == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getELContext() returned" - + " null."); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxGetELContextTest - - public void facesCtxGetAttributesTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - if (!(context.getAttributes() instanceof Map)) { - out.println("Test FAILED. Unexpected class type returned from" - + "FacesContext.getAttributes() method." + JSFTestUtil.NL - + "Expected: java.util.Map" + JSFTestUtil.NL + "Received: " - + context.getAttributes().getClass().getName()); - return; - } else { - try { - context.getAttributes().put("test_key", "test_value"); - - } catch (UnsupportedOperationException usoe) { - out.print("Test FAILED. Map Not Mutable!"); - out.print(usoe.toString()); - } catch (Exception e) { - /* - * Swallow any other exception since we only care if the Map is mutable. - */ - } - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetAttributesTest - - public void facesCtxGetAttributesEmptyTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - try { - context.getAttributes().put("test_key", "test_value"); - // validate that the attribute was put in. - HashMap hm = (HashMap) context.getAttributes(); - if (!hm.containsKey("test_key")) { - out.println( - "Test FAILED. Attribute not added to context" + "attribute Map!"); - return; - } else { - // map should be empty after this call. - context.release(); - if (!hm.isEmpty()) { - out.println("Test FAILED. Attributes still found in " - + "context attribute Map, After 'context.release()" - + "was called!"); - return; - } - - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetAttributesEmptyTest - - public void facesCtxGetPartialViewContextTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - try { - PartialViewContext pvc = context.getPartialViewContext(); - if (!(pvc instanceof PartialViewContext)) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getPartialViewContext() should have " - + "returned a PartialViewContext." + JSFTestUtil.NL - + "Instead Received: " + pvc.getClass().getSimpleName()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetPartialViewContextTest - - public void facesCtxSetGetExceptionHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - ExceptionHandler eh = new TCKExceptionHandler(); - context.setExceptionHandler(eh); - - String golden = "TCKExceptionHandler"; - String result = context.getExceptionHandler().getClass().getSimpleName(); - - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.print( - "Test FAILED." + JSFTestUtil.NL + " Unexpected value returned from" - + "FacesContext.getExceptionHandler()!" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - } - - } // END facesCtxSetGetExceptionHandlerTest - - public void facesCtxsetExceptionHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - try { - context.setExceptionHandler(new TCKExceptionHandler()); - ExceptionHandler eh = context.getExceptionHandler(); - if (!("TCKExceptionHandler".equals(eh.getClass().getSimpleName()))) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.setExceptionHandler() did not set " + "Handler!" - + JSFTestUtil.NL + "Expected: TCKExceptionHandler" + JSFTestUtil.NL - + "Received: " + eh.getClass().getSimpleName()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetExceptionHandlerTest - - public void facesCtxGetExternalContextTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - try { - ExternalContext ec = context.getExternalContext(); - if (!(ec instanceof ExternalContext)) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getExternalContext did not return" - + "correct instance type." + JSFTestUtil.NL - + "Expected: ExternalContext" + JSFTestUtil.NL + "Received: " - + ec.getClass().getSimpleName()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxgetExternalContextTest - - public void facesCtxisReleasedTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - // Test before release. - if (context.isReleased()) { - out.println("Test FAILED"); - out.println("Unexpected value returned from FacesContext.isReleased() " - + "before FacesContext.release() was callled." + JSFTestUtil.NL - + "Expected: FALSE " + JSFTestUtil.NL + "Received: TRUE" - + JSFTestUtil.NL); - return; - } - - // Test After release - context.release(); - if (!context.isReleased()) { - out.println("Test FAILED"); - out.println("Unexpected value returned from FacesContext.isReleased() " - + "after FacesContext.release() was called. " + JSFTestUtil.NL - + "Expected: TRUE " + JSFTestUtil.NL + "Received: FALSE" - + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxisReleasedTest - - public void facesCtxGetRenderKitTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIViewRoot root = context.getViewRoot(); - String rkn = "TCKRenderKit"; - - // Setup renderKit - RenderKit renderKit = new TCKRenderKit(); - RenderKitFactory factory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - factory.addRenderKit(rkn, renderKit); - - root.setRenderKitId(rkn); - RenderKit result = context.getRenderKit(); - - if (rkn.equals(result.getClass().getSimpleName())) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected RenderKit returned from FacesContext.getRenderKit()" - + JSFTestUtil.NL + "Expected: " + rkn + JSFTestUtil.NL + "Received: " - + result); - } - } // END facesCtxGetRenderKitTest - - // ------------------------------------------- Private Methods ----------- - private String validateIllegalStateException(Method methodToInvoke, - Object target, Object[] params) { - String result = null; - - try { - methodToInvoke.invoke(target, params); - result = JSFTestUtil.FAIL + " No Exception thrown when calling '" - + methodToInvoke.getName() + "'" - + " after FacesContext.release() was called."; - - } catch (Throwable throwable) { - Throwable t = throwable; - if (throwable instanceof InvocationTargetException) { - t = ((InvocationTargetException) throwable).getTargetException(); - } - - if (!(t instanceof IllegalStateException)) { - StringBuffer sb = new StringBuffer(100); - sb.append(JSFTestUtil.FAIL + " Exception thrown when '") - .append(methodToInvoke.getName()); - sb.append("' was called after FacesContext.release(), but it " - + "wasn't an instance of"); - sb.append(" IllegalStateException.\nException received: ") - .append(t.getClass().getName()); - result = sb.toString(); - } - } - return result; - } - - private boolean isExcluded(String methodName, List excludeList) { - boolean result = false; - - for (String excluded : excludeList) { - if (excluded.equals(methodName) || methodName.charAt(0) == '$') { - result = true; - } - } - - return result; - } - - private FacesMessage[] getMessagesAsArray(Iterator iterator) { - List list = new ArrayList(); - while (iterator.hasNext()) { - list.add(iterator.next()); - } - return (FacesMessage[]) list.toArray(new FacesMessage[list.size()]); - } - - /* - * Add test messages to the given FacesContext. - */ - private void addTestMessagesToContext(FacesContext context, String compId) { - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - if (compId == null) { - component.setId("nothing"); - } else { - component.setId(compId); - } - - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message4 summary", "message4 detail", "message4"); - - context.setViewRoot(createViewRoot()); - - context.addMessage(component.getClientId(context), message1); - context.addMessage(component.getClientId(context), message3); - context.addMessage(null, message2); - context.addMessage(null, message4); - } - - // ------------------------------------------- Inner Classes ----------- - // skeletal implementation of ResponseStream - private static final class TCKResponseStream extends ResponseStream { - - @Override - public void write(int b) throws IOException { - } - } - - // skeletal implementation of ResponseWriter - private static final class TCKResponseWriter extends ResponseWriter { - - public void closeStartTag(UIComponent component) throws IOException { - } - - @Override - public String getContentType() { - return null; - } - - @Override - public String getCharacterEncoding() { - return null; - } - - @Override - public void write(char cbuf[], int off, int len) throws IOException { - } - - @Override - public void flush() throws IOException { - } - - @Override - public void close() throws IOException { - } - - @Override - public void startDocument() throws IOException { - } - - @Override - public void endDocument() throws IOException { - } - - @Override - public void startElement(String name, UIComponent component) - throws IOException { - } - - @Override - public void endElement(String name) throws IOException { - } - - @Override - public void writeAttribute(String name, Object value, String property) - throws IOException { - } - - @Override - public void writeURIAttribute(String name, Object value, String property) - throws IOException { - } - - @Override - public void writeComment(Object comment) throws IOException { - } - - @Override - public void writeText(Object text, String property) throws IOException { - } - - @Override - public void writeText(char text[], int off, int len) throws IOException { - } - - @Override - public ResponseWriter cloneWithWriter(Writer writer) { - return null; - } - } - - // simple implementation of FacesMessage - private static final class TCKMessage extends FacesMessage { - - private FacesMessage.Severity messageSeverity; - - private String messageSummary; - - private String messageDetail; - - String name; - - TCKMessage(FacesMessage.Severity severity, String messageSummary, - String messageDetail, String name) { - this.messageSeverity = severity; - this.messageSummary = messageSummary; - this.messageDetail = messageDetail; - this.name = name; - } - - @Override - public String getDetail() { - return messageDetail; - } - - @Override - public FacesMessage.Severity getSeverity() { - return messageSeverity; - } - - @Override - public String getSummary() { - return messageSummary; - } - - @Override - public String toString() { - return name; - } - } - - // simple implementation of ExceptionHandler - private static final class TCKExceptionHandler - extends ExceptionHandlerWrapper { - - @Override - public ExceptionHandler getWrapped() { - // TODO Auto-generated method stub - return null; - } - - } // End TCKExceptionHandler - - private static class TCKRenderKit extends RenderKitWrapper { - - @Override - public RenderKit getWrapped() { - return FacesContext.getCurrentInstance().getRenderKit(); - } - - } // End TCKRenderKit - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/URLClient.java deleted file mode 100644 index 070cb2cc83..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/URLClient.java +++ /dev/null @@ -1,480 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_ctx_facesctx_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: facesCtxAddGetMessagesTest - * @assertion_ids: JSF:JAVADOC:1270; JSF:JAVADOC:1280; JSF:JAVADOC:1294; - * JSF:JAVADOC:1273 - * @test_Strategy: Verify the behavior of addMessage(UIComponent, - * FacesMessage), FacesContext.getMessage(), and - * FacesContext.getMessages(UIComponent). Add four messages to - * the FacesContext, two of them have a client ID and the - * others have no client ID. - call getMessages(clientID) - - * ensure the expected 2 messages are returned. - call - * getMessages(null) - ensure the expected 2 messages are - * returned. - call getMessages() - ensure the expected 4 - * messages are returned. This will additionally ensure that - * the messages returned by the implementations Iterator - * preserves the order in which the messages were added. - */ - public void facesCtxAddGetMessagesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxAddGetMessagesTest"); - invoke(); - } - - /** - * @testName: facesCtxGetClientIdsWithMessagesEmptyTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1280; JSF:JAVADOC:1278 - * @test_Strategy: Ensure an empty Iterator is returned if there are no - * messages queued. Additionally, if there are messages with - * no particular client ID, the iterator will contain a null - * value. - */ - public void facesCtxGetClientIdsWithMessagesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesCtxGetClientIdsWithMessagesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxGetClientIdsWithMessagesTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1280; JSF:JAVADOC:1278; - * JSF:JAVADOC:1296 - * @test_Strategy: Ensure getClientIdsWithMessages returns the expected values - * based on messages added to the faces context that may or - * may not have an ID. - */ - public void facesCtxGetClientIdsWithMessagesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetClientIdsWithMessagesTest"); - invoke(); - } - - /** - * @testName: facesCtxGetMessagesEmptyTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1280; JSF:JAVADOC:1294 - * @test_Strategy: Ensure both getMessages(UIComponent) and getMessages() - * returns an empty Iterator if no messages are queued within - * the FacesContext. - */ - public void facesCtxGetMessagesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetMessagesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxGetApplicationTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1274 - * @test_Strategy: Ensure the Application instance returned by - * getApplication() is the same instance as that returned by - * Application.getCurrentInstance(). - */ - public void facesCtxGetApplicationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetApplicationTest"); - invoke(); - } - - /** - * @testName: facesCtxAddMessageNPETest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1272 - * @test_Strategy: Ensure a NullPointerException is thrown if the FacesContext - * argument provided to addMessage(String, FacesContext) is - * null. - */ - public void facesCtxAddMessageNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxAddMessageNPETest"); - invoke(); - } - - /** - * @testName: facesCtxIsProjectStageNPETest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1317 - * @test_Strategy: Ensure a NullPointerException is thrown if the - * FacesContext.isPrejectStage(null) is called. - * - * @since 2.0 - */ - public void facesCtxIsProjectStageNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxIsProjectStageNPETest"); - invoke(); - } - - /** - * @testName: facesCtxSetGetCurrentInstanceTest - * @assertion_ids: JSF:JAVADOC:1280 - * @test_Strategy: Ensure the FacesContext instance can be set and returned by - * calling {set,get}CurrentInstance. - */ - public void facesCtxSetGetCurrentInstanceTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetCurrentInstanceTest"); - invoke(); - } - - /** - * @testName: facesCtxGetMaximumSeverityTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1288 - * @test_Strategy: Validate the severity hierarchy of Messages stored in the - * FacesContext instance. First, if there are no messages - * getMaximumSeverity() must return null. Then add a - * SEVERITY_INFO message and ensure getMaximumSeverity() - * returns the expected message. Add SEVERITY_WARN, and ensure - * that the SEVERITY_WARN message is returned by - * getMaximumSeverity(). Add SEVERITY_ERROR and ensure - * getMaximumSeverity() returns the SEVERITY_ERROR message. - * Finally, add a SEVERITY_FATAL message to the context and - * ensure SEVERITY_FATAL message is returned by - * getMaximumSeverity(). - */ - public void facesCtxGetMaximumSeverityTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetMaximumSeverityTest"); - invoke(); - } - - /** - * @testName: facesCtxResponseCompleteTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1324 - * @test_Strategy: Ensure getResponseComplete() returns false on a new - * FacesContext instance. Call responseComplete() and ensure - * getResponseComplete() returns true. - */ - public void facesCtxResponseCompleteTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxResponseCompleteTest"); - invoke(); - } - - /** - * @testName: facexCtxRenderResponseTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1322 - * @test_Strategy: Ensure getRenderResponse() returns false on a new - * FacesContext instance. Call renderResponse() and ensure - * getRenderResponse() returns true. - */ - public void facexCtxRenderResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facexCtxRenderResponseTest"); - invoke(); - } - - /** - * @testName: facesCtxSetGetResponseWriterTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1380; JSF:JAVADOC:1333 - * @test_Strategy: Ensure the Writer set by setResponseWriter() is returned by - * getResponseWriter(). - */ - public void facesCtxSetGetResponseWriterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetResponseWriterTest"); - invoke(); - } - - /** - * @testName: facesCtxSetGetResponseStreamTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1306; JSF:JAVADOC:1330 - * @test_Strategy: Ensure the Stream set by setResponseStream() is returned by - * getResponseStream(). - */ - public void facesCtxSetGetResponseStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetResponseStreamTest"); - invoke(); - } - - /** - * @testName: facesCtxSetResponseStreamNPETest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1331 - * @test_Strategy: Validate a NullPointerException is thrown when response - * stream is null - */ - public void facesCtxSetResponseStreamNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetResponseStreamNPETest"); - invoke(); - } - - /** - * @testName: facesCtxSetResponseWriterNPETest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1335 - * @test_Strategy: Validate a NullPointerException is thrown when response - * stream is null - */ - public void facesCtxSetResponseWriterNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetResponseWriterNPETest"); - invoke(); - } - - /** - * @testName: facesCtxSetGetViewRootTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1310; JSF:JAVADOC:1336 - * @test_Strategy: Ensure the UIViewRoot set by setViewRoot() is properly - * returned by getViewRoot(). - */ - public void facesCtxSetGetViewRootTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetViewRootTest"); - invoke(); - } - - /** - * @testName: facesCtxSetViewRootNPETest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1338 - * @test_Strategy: Ensure an NPE is thrown if a null argument is passed to - * FacesContext.setViewRoot(); - * - * @since 1.2 - */ - public void facesCtxSetViewRootNPETest() throws Fault { - - TEST_PROPS.setProperty(APITEST, "facesCtxSetViewRootNPETest"); - invoke(); - - } // END facesCtxSetViewRootNPETest - - /** - * @testName: facesCtxSetGetCurrentPhaseIdTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1281; JSF:JAVADOC:1326 - * @test_Strategy: Validate that we can can set and retrieve the current - * PhaseId. - * - * @since 2.0 - */ - public void facesCtxSetGetCurrentPhaseIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetCurrentPhaseIdTest"); - invoke(); - } - - /** - * @testName: facesCtxISEAfterReleaseTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1337; JSF:JAVADOC:1271; - * JSF:JAVADOC:1275; JSF:JAVADOC:1279; JSF:JAVADOC:1282; - * JSF:JAVADOC:1284; JSF:JAVADOC:1287; JSF:JAVADOC:1289; - * JSF:JAVADOC:1291; JSF:JAVADOC:1293; JSF:JAVADOC:1295; - * JSF:JAVADOC:1297; JSF:JAVADOC:1299; JSF:JAVADOC:1301; - * JSF:JAVADOC:1303; JSF:JAVADOC:1305; JSF:JAVADOC:1307; - * JSF:JAVADOC:1309; JSF:JAVADOC:1311; JSF:JAVADOC:1313; - * JSF:JAVADOC:1316; JSF:JAVADOC:1319; JSF:JAVADOC:1321; - * JSF:JAVADOC:1323; JSF:JAVADOC:1325; JSF:JAVADOC:1327; - * JSF:JAVADOC:1332; JSF:JAVADOC:1334; JSF:JAVADOC:1337; - * JSF:JAVADOC:1340; JSF:JAVADOC:1277; JSF:JAVADOC:2720 - * @test_Strategy: Ensure all methods, with the exception of the following - * throw an IllegalStateException if called after - * FacesContext.release() has been called. - * - * Excluding the following methods: release() isReleased() - * setCurrentInstance() getCurrentInstance() - * getCurrentPhaseId() setExceptionHandler() - * getExceptionHandler() setProcessingEvents() - * isProcessingEvents() - */ - public void facesCtxISEAfterReleaseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxISEAfterReleaseTest"); - invoke(); - } - - /** - * @testName: facesCtxGetELContextTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1283 - * @test_Strategy: Ensure we get a non-null return when calling this method. - * - * @since 1.2 - */ - public void facesCtxGetELContextTest() throws Fault { - - TEST_PROPS.setProperty(APITEST, "facesCtxGetELContextTest"); - invoke(); - - } // END facesCtxGetELContextTest - - /** - * @testName: facesCtxGetAttributesEmptyTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1276 - * @test_Strategy: Validate that a the Attribute map is empty after - * FacesContext.release() is called. - * - * @since 2.0 - */ - public void facesCtxGetAttributesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetAttributesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxGetAttributesTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1276 - * @test_Strategy: Validate that a returned mutable Map is returned. - * - * @since 2.0 - */ - public void facesCtxGetAttributesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetAttributesTest"); - invoke(); - } - - /** - * @testName: facesCtxGetPartialViewContextTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1298 - * @test_Strategy: Validate that a PartialViewContext is returned for this - * request. This method must return a new PartialViewContext - * if one does not already exist. - * - * @since 2.0 - */ - public void facesCtxGetPartialViewContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetPartialViewContextTest"); - invoke(); - } - - /** - * @testName: facesCtxSetGetExceptionHandlerTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1285; JSF:JAVADOC:1328 - * @test_Strategy: Validate that a ExceptionHandler is returned for this - * request. - * @since 2.0 - */ - public void facesCtxSetGetExceptionHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxSetGetExceptionHandlerTest"); - invoke(); - } - - /** - * @testName: facesCtxGetExternalContextTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1286 - * @test_Strategy: Validate that we get an instance of ExternalContext. - * @since 2.0 - */ - public void facesCtxGetExternalContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetExternalContextTest"); - invoke(); - } - - /** - * @testName: facesCtxGetMessageListTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1290 - * @test_Strategy: Validate that we get the correct number of messages from - * the context. - * @since 2.0 - */ - public void facesCtxGetMessageListTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetMessageListTest"); - invoke(); - } - - /** - * @testName: facesCtxGetMessageListByIdTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1292 - * @test_Strategy: Validate that we get the correct number of messages from - * the context when passing in with UIComponent ID. - * @since 2.0 - */ - public void facesCtxGetMessageListByIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetMessageListByIdTest"); - invoke(); - } - - /** - * @testName: facesCtxisValidationFailedTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1318 - * @test_Strategy: Validate that: - if a call to isValidationFailed comes - * before a call to validationFailed that 'false' is returned. - * - if a call to isValidationFailed comes after a call to - * validationFailed that 'true' is returned. - * - * @since 2.0 - */ - public void facesCtxisValidationFailedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxisValidationFailedTest"); - invoke(); - } - - /** - * @testName: facesCtxisPostbackTest - * @assertion_ids: JSF:JAVADOC:1273; JSF:JAVADOC:1312 - * @test_Strategy: Validate that we get the correct number of messages from - * the context. - * @since 2.0 - */ - public void facesCtxisPostbackTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxisPostbackTest"); - invoke(); - } - - /** - * @testName: facesCtxisReleasedTest - * @assertion_ids: JSF:JAVADOC:2589; JSF:JAVADOC:1320 - * @test_Strategy: Validate that if the resources associated with this - * FacesContext instance have been released. - * - * @since 2.1 - */ - public void facesCtxisReleasedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxisReleasedTest"); - invoke(); - } - - /** - * @testName: facesCtxGetRenderKitTest - * @assertion_ids: JSF:JAVADOC:2589; JSF:JAVADOC:1300 - * @test_Strategy: Validate that FacesContext.getRenderKit() returns the - * current RenderKit that has been set for the current - * UIViewRoot. - * - * @since 1.2 - */ - public void facesCtxGetRenderKitTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxGetRenderKitTest"); - invoke(); - } - - /** - * @testName: facesCtxIsGetProcessingEventTest - * @assertion_ids: JSF:JAVADOC:1314; JSF:JAVADOC:1329 - * @test_Strategy: Validate that we can set the processing event flag and we - * we get the correct value returned. - * - * @since 1.2 - */ - public void facesCtxIsGetProcessingEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxIsGetProcessingEventTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/build.xml deleted file mode 100644 index df11f4adea..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.war.sun-web.xml deleted file mode 100644 index 67b96ccb4c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_facesctx_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.xml deleted file mode 100644 index 4f16d38646..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontext/jsf_ctx_facesctx_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_ctx_facesctx - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontext.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/TestServlet.java deleted file mode 100644 index 3466fd0a79..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/TestServlet.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextfactory; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - ServletContext servletContext; - - Lifecycle lifecycle; - - public void init(ServletConfig config) throws ServletException { - servletContext = config.getServletContext(); - LifecycleFactory lifeFactory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - lifecycle = lifeFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - // FacesContextFactory.getFacesContext() - public void facesCtxFactoryGetFacesContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - FacesContext context = contextFactory.getFacesContext(servletContext, - request, response, lifecycle); - - if (context == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain a FacesContext instance from" - + " the FacesContextFactory."); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End facesCtxFactoryGetFacesContextTest - - // FacesContextFactory.getFacesContext() throws NPE if any arguments are - // null. - public void facesCtxFactoryGetFacesContextNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContextFactory contextFactory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - // null context - JSFTestUtil.checkForNPE(contextFactory, "getFacesContext", - new Class[] { Object.class, Object.class, Object.class, - Lifecycle.class }, - new Object[] { null, request, response, lifecycle }, out); - - // null request - JSFTestUtil.checkForNPE(contextFactory, "getFacesContext", - new Class[] { Object.class, Object.class, Object.class, - Lifecycle.class }, - new Object[] { servletContext, null, response, lifecycle }, out); - - // null response - JSFTestUtil.checkForNPE(contextFactory, "getFacesContext", - new Class[] { Object.class, Object.class, Object.class, - Lifecycle.class }, - new Object[] { servletContext, request, null, lifecycle }, out); - - // null lifecycle - JSFTestUtil.checkForNPE(contextFactory, "getFacesContext", - new Class[] { Object.class, Object.class, Object.class, - Lifecycle.class }, - new Object[] { servletContext, request, response, null }, out); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/URLClient.java deleted file mode 100644 index af0497bf45..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/URLClient.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextfactory; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_ctx_facesctxfactory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: facesCtxFactoryGetFacesContextTest - * @assertion_ids: JSF:JAVADOC:1341; JSF:JAVADOC:1342 - * @test_Strategy: Ensure a FacesContext instance can be obtained from the - * FacesContextFactory when providing the correct objects. - */ - public void facesCtxFactoryGetFacesContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxFactoryGetFacesContextTest"); - invoke(); - } - - /** - * @testName: facesCtxFactoryGetFacesContextNPETest - * - * @assertion_ids: JSF:JAVADOC:1341; JSF:JAVADOC:1344 - * - * @test_Strategy: Ensure NullPointerExceptions are thrown if any of the - * arguments to FacesContextFactory are null. - */ - public void facesCtxFactoryGetFacesContextNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxFactoryGetFacesContextNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/build.xml deleted file mode 100644 index b8cc8a2fad..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.war.sun-web.xml deleted file mode 100644 index fe530e09df..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_facesctxfactory_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.xml deleted file mode 100644 index 6ee0e9dbb3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextfactory/jsf_ctx_facesctxfactory_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_ctx_facesctxfactory - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextfactory.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/TestServlet.java deleted file mode 100644 index 7039a31155..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/TestServlet.java +++ /dev/null @@ -1,1208 +0,0 @@ -/* - * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Writer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ELContext; -import jakarta.faces.FacesException; -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.ExceptionHandler; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextWrapper; -import jakarta.faces.context.PartialViewContext; -import jakarta.faces.context.ResponseStream; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ExceptionQueuedEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.RenderKitWrapper; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------------ Test Methods ------- - - // FacesContextWrapper.getClientIdsWithMessages() - public void facesCtxWrapperGetClientIdsWithMessagesTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(createViewRoot()); - - UIComponent component1 = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - component1.setId("component1"); - UIComponent component2 = getApplication() - .createComponent(UIOutput.COMPONENT_TYPE); - component2.setId("component2"); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - - context.addMessage(component1.getClientId(context), message1); - context.addMessage(component2.getClientId(context), message1); - - String[] controlClientIds = { component1.getClientId(context), - component2.getClientId(context) }; - - String[] testClientIds = JSFTestUtil - .getAsStringArray(context.getClientIdsWithMessages()); - - if (controlClientIds.length != testClientIds.length) { - out.println( - JSFTestUtil.FAIL + " Unexpected number of client IDs returned by " - + "FacesContext.getComponentIdsWithMessages()."); - out.println( - "Exected the number of IDs returned to be 2. Actual number returned: " - + testClientIds.length); - return; - } - - List list = Arrays.asList(testClientIds); - for (int i = 0; i < controlClientIds.length; i++) { - if (!list.contains(controlClientIds[i])) { - out.println(JSFTestUtil.FAIL + " Unable to find '" + controlClientIds[i] - + "' in the client IDs returned" - + " by FacesContext.getClientIdsWithMessages()."); - for (int j = 0; j < testClientIds.length; j++) { - out.println("Client ID received: " + testClientIds[j]); - } - return; - } - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetClientIdsWithMessagesTest - - public void facesCtxWrapperGetClientIdsWithMessagesEmptyTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - Iterator i = context.getClientIdsWithMessages(); - - if (i == null) { - out.println(JSFTestUtil.FAIL - + " FacesContext.getClientIdsWithMessages() returned null" - + " when instead of an empty Iterator."); - return; - } - - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL - + " FacesContext.getClientIdsWithMessages() returned a" - + " non-empty Iterator even though no messages have been added."); - return; - } - - context.addMessage(null, new FacesMessage()); - context.addMessage(null, new FacesMessage()); - i = context.getClientIdsWithMessages(); - - if (i == null) { - out.println("Test FAILED[2]. FacesContext.getClientIds" - + "WithMessages() returned null when instead of an empty " - + "Iterator."); - return; - } - - if (i.hasNext()) { - String clientId = i.next(); - if (!(clientId == null)) { - out.println( - JSFTestUtil.FAIL + " Non-null value returned from iterator."); - return; - } - - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " Iterator contained more than 1" - + " value after when getClientIdWithMessages() was " - + "called where a Message existed with no client id."); - return; - } - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetClientIdsWithMessagesEmptyTest - - // FacesContextWrapper.addMessage(UIComponent, FacesMessage) - // FacesContextWrapper.getMessages() - // FacesContextWrapper.getMessages(UIComponent) - public void facesCtxWrapperAddGetMessagesTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - component.setId("input1"); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message4 summary", "message4 detail", "message4"); - - FacesContextWrapper context = new TCKFacesContext(); - - context.setViewRoot(createViewRoot()); - - context.addMessage(component.getClientId(context), message1); - context.addMessage(component.getClientId(context), message3); - context.addMessage(null, message2); - context.addMessage(null, message4); - - FacesMessage[] controlMessagesComp = { message1, message3 }; - FacesMessage[] controlMessagesNoComp = { message1, message3, message2, - message4 }; - FacesMessage[] controlMessagesNullComp = { message2, message4 }; - - FacesMessage[] testMessagesComp = getMessagesAsArray( - context.getMessages(component.getClientId(context))); - - // the next two should be equivalent - FacesMessage[] testMessagesNullComp = getMessagesAsArray( - context.getMessages(null)); - FacesMessage[] testMessages = getMessagesAsArray(context.getMessages()); - - // check the messages associated with a component - if (controlMessagesComp.length != testMessagesComp.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages" - + " returned when FacesContext. getMessages(UIComponent)" - + " was called."); - out.println("Expected 2 messages to be returned. Actual message " - + "count: " + testMessagesComp.length); - return; - } - - List messages = Arrays.asList(testMessagesComp); - for (int i = 0; i < controlMessagesComp.length; i++) { - if (!messages.get(i).equals(controlMessagesComp[i])) { - out.println(JSFTestUtil.FAIL + " Unable to find '" - + controlMessagesComp[i] + "' in the return value of FacesContext." - + "getMessages(UIComponent) when the appropriate" - + " component was provided."); - out.println( - "Messages returned: " + JSFTestUtil.getAsString(testMessagesComp)); - return; - } - } - - // check the messages returned when a null value is provided - // to FacesContextWrapper.getMessages(null) - if (controlMessagesNullComp.length != testMessagesNullComp.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages " - + "returned when FacesContext. getMessages(null) was " + "called."); - out.println("Expected 2 messages to be returned. Actual message " - + "count: " + testMessagesNullComp.length); - return; - } - - messages = Arrays.asList(testMessagesNullComp); - for (int i = 0; i < controlMessagesNullComp.length; i++) { - if (!messages.get(i).equals(controlMessagesNullComp[i])) { - out.println( - JSFTestUtil.FAIL + " Unable to find '" + controlMessagesNullComp[i] - + "' in the return value of FacesContext." - + "getMessages(UIComponent) when null was passed to the" - + " method."); - out.println("Messages returned: " - + JSFTestUtil.getAsString(testMessagesNullComp)); - return; - } - } - - // check the messages returned by FacesContext.getMessages() - if (controlMessagesNoComp.length != testMessages.length) { - out.println(JSFTestUtil.FAIL + " An unexpected number of messages " - + "returned when FacesContext." + "getMessages() was called."); - out.println("Expected 4 messages to be returned. Actual message" - + " count: " + testMessages.length); - return; - } - - messages = Arrays.asList(testMessages); - for (int i = 0; i < controlMessagesNoComp.length; i++) { - if (!messages.get(i).equals(controlMessagesNoComp[i])) { - out.println( - JSFTestUtil.FAIL + " Unable to find '" + controlMessagesNoComp[i] - + "' in the return value of FacesContext." + "getMessages()"); - out.println( - "Messages returned: " + JSFTestUtil.getAsString(testMessages)); - return; - } - } - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperAddGetMessagesTest - - // FacesContextWrapper.getMessages(UIComponent) - // FacesContextWrapper.getMessages() - public void facesCtxWrapperGetMessagesEmptyTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(createViewRoot()); - - Iterator i = context.getMessages(); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages() " - + "returned a non-empty Iterator when no FacesMessage " - + "instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages() returned " - + "null as opposed to an empty Iterator."); - return; - } - - i = context.getMessages(getApplication() - .createComponent(UIInput.COMPONENT_TYPE).getClientId(context)); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(" - + "UIComponent) returned a non-empty Iterator when no " - + "FacesMessage instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(UIComponent)" - + " returned null as opposed to an empty Iterator."); - return; - } - - i = context.getMessages(null); - if (i != null) { - if (i.hasNext()) { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(null) " - + "returned a non-empty Iterator when no FacesMessage" - + " instances were added."); - return; - } - } else { - out.println(JSFTestUtil.FAIL + " FacesContext.getMessages(null) " - + "returned null as opposed to an empty Iterator."); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetMessagesEmptyTest - - public void facesCtxWrapperGetMessageListTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - this.addTestMessagesToContext(context, null); - - try { - List allMessages = context.getMessageList(); - if (allMessages.size() != 4) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getMessageList unexepected size! " + JSFTestUtil.NL - + "Expected: 4" + JSFTestUtil.NL + "Received: " - + allMessages.size()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetMessageListTest - - public void facesCtxWrapperGetMessageListByIdTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - this.addTestMessagesToContext(context, "test_one"); - - try { - List allMessages = context.getMessageList("test_one"); - if (allMessages.size() != 2) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getMessageList unexepected size! " + JSFTestUtil.NL - + "Expected: 2" + JSFTestUtil.NL + "Received: " - + allMessages.size()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetMessageListByIdTest - - public void facesCtxWrapperIsValidationFailedTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - Boolean isFailed; - - try { - isFailed = context.isValidationFailed(); - if (isFailed) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isValadationFailed()" + JSFTestUtil.NL - + "Expected: false" + JSFTestUtil.NL + "Received: " + isFailed); - return; - } - - context.validationFailed(); - isFailed = context.isValidationFailed(); - if (!isFailed) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isValadationFailed() after calling " - + "FacesContext.validationFailed." + JSFTestUtil.NL - + "Expected: true" + JSFTestUtil.NL + "Received: " + isFailed); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrapperIsValidationFailedTest - - public void facesCtxWrapperIsReleasedTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - // Test before release. - if (context.isReleased()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from FacesContextWrapper.isReleased() " - + "before FacesContextWrapper.release() was callled." + JSFTestUtil.NL - + "Expected: FALSE " + JSFTestUtil.NL + "Received: TRUE" - + JSFTestUtil.NL); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrapperIsReleasedTest - - public void facesCtxWrapperIsPostbackTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - context.getApplication(); - Boolean isPB; - - try { - isPB = context.isPostback(); - if (isPB) { - out.print("Test FAILED." + JSFTestUtil.NL + "Unexpected result from " - + "FacesContext.isPostback() before calling " - + "StateManger.writeState()." + JSFTestUtil.NL + "Expected: false" - + JSFTestUtil.NL + "Received: " + isPB); - return; - } - - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrapperIsPostbackTest - - // FacesContextWrapper.getApplication() - public void facesCtxWrapperGetApplicationTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - Application controlApplication = getApplication(); - FacesContextWrapper context = new TCKFacesContext(); - - Application testApplication = context.getApplication(); - - if (controlApplication == null) { - out.println(JSFTestUtil.FAIL + " Application.getCurrentInstance() " - + "unexpectedly returned null."); - return; - } - - if (controlApplication != testApplication) { - out.println(JSFTestUtil.FAIL + " The Application instance returned by " - + "Application. getCurrentInstance() differs from the " - + "Application returned by FacesContext.getApplication()."); - out.println("Application.getCurrentInstance(): " + controlApplication); - out.println("FacesContext.getApplication():" + testApplication); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetApplicationTest - - // FacesContextWrapper.getMaximumSeverity() - public void facesCtxWrapperGetMaximumSeverityTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - context.setViewRoot(new UIViewRoot()); - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_WARN, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_ERROR, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_FATAL, - "message4 summary", "message4 detail", "message4"); - - /* - * if no messages have been queued, then FacesContext.getMaximumSeverity - * should return null - */ - if (context.getMaximumSeverity() != null) { - out.println( - JSFTestUtil.FAIL + " FacesContext.getMaximumSeverity returned a" - + "non null value when no messages have been added to the" - + " FacesContext."); - out.println( - "Severity received: " + context.getMaximumSeverity().getOrdinal()); - return; - } - - context.addMessage(null, message1); - int severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_INFO.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_INFO when only a SEVERITY_INFO message exists" - + " in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_INFO: " - + FacesMessage.SEVERITY_INFO); - return; - } - - context.addMessage(null, message2); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_WARN.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_WARN when both a SEVERITY_INFO and " - + "SEVERITY_WARN message exist in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_WARN: " - + FacesMessage.SEVERITY_WARN); - return; - } - - context.addMessage(null, message3); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_ERROR.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_ERROR when messages with SEVERITY_INFO, " - + "SEVERITY_WARN, and SEVERITY_ERROR exist in the" - + " FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_ERROR: " - + FacesMessage.SEVERITY_ERROR); - return; - } - - context.addMessage(null, message4); - severity = context.getMaximumSeverity().getOrdinal(); - if (severity != FacesMessage.SEVERITY_FATAL.getOrdinal()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getMaximumSeverity() to return FacesMessage." - + "SEVERITY_ERROR when messages with SEVERITY_INFO, " - + "SEVERITY_WARN, SEVERITY_ERROR, SEVERITY_FATAL exist" - + " in the FacesContext."); - out.println("Severity Recieved: " + severity); - out.println("Integer value of FacesMessage.SEVERITY_FATAL: " - + FacesMessage.SEVERITY_FATAL); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetMaximumSeverityTest - - // FacesContextWrapper.getResponseComplete() - // FacesContextWrapper.responseComplete() - public void facesCtxWrapperGetResponseCompleteTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(new UIViewRoot()); - - if (context.getResponseComplete()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getResponseComplete() to return false if FacesContext." - + "responseComplete() hasn't been called."); - return; - } - - context.responseComplete(); - - if (!context.getResponseComplete()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getResponseComplete() to return true if" - + " FacesContext.responseComplete() has been called."); - return; - } - - out.println(JSFTestUtil.PASS); - - } // End facesCtxWrapperGetResponseCompleteTest - - // FacesContextWrapper.getRenderResponse() - // FacesContextWrapper.renderResponse() - public void facesCtxWrapperRenderResponseTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(new UIViewRoot()); - - if (context.getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getRenderResponse() to return false if" - + " FacesContext.renderResponse() hasn't been called."); - return; - } - - context.renderResponse(); - - if (!context.getRenderResponse()) { - out.println(JSFTestUtil.FAIL + " Expected FacesContext." - + "getRenderResponse() to return true if" - + " FacesContext.renderResponse() has been called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesContextWrapper.setResponseWriter() - // FacesContextWrapper.getResponseWriter() - public void facesCtxWrapperSetGetResponseWriterTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(new UIViewRoot()); - - ResponseWriter writer = new TCKResponseWriter(); - - context.setResponseWriter(writer); - ResponseWriter test = context.getResponseWriter(); - - if (test == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseWriter() " - + "returned null after FacesContext.setResponseWriter(" - + "ResponseWriter) was called."); - return; - } - - if (test != writer) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseWriter()" - + " did not return the expected" + " ResponseWriter instance."); - out.println("Expected: " + writer); - out.println("Received: " + test); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // FacesContextWrapper.[get, set]CurrentPhaseId() - public void facesCtxWrapperSetGetCurrentPhaseIdTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - context.setCurrentPhaseId(PhaseId.ANY_PHASE); - PhaseId result = context.getCurrentPhaseId(); - if (PhaseId.ANY_PHASE.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println( - JSFTestUtil.FAIL + " FacesContext.getCurrentPhaseId() did not " - + "return the expected PhaseId."); - out.println("Expected: " + PhaseId.ANY_PHASE); - out.println("Received: " + result); - } - - } // End facesCtxWrapperSetGetCurrentPhaseIdTest - - // FacesContextWrapper.[get, set]ResponseStream() - public void facesCtxWrapperSetGetResponseStreamTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - context.setViewRoot(new UIViewRoot()); - - ResponseStream stream = new TCKResponseStream(); - - context.setResponseStream(stream); - ResponseStream test = context.getResponseStream(); - - if (test == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseStream()" - + " returned null after FacesContext.setResponseStream(" - + "ResponseStream) was called."); - return; - } - - if (test != stream) { - out.println(JSFTestUtil.FAIL + " FacesContext.getResponseStream() " - + "did not return the expected ResponseStream instance."); - out.println("Expected: " + stream); - out.println("Received: " + test); - return; - } - - out.println(JSFTestUtil.PASS); - - }// End facesCtxWrapperSetGetResponseStreamTest - - // FacesContextWrapper.setViewRoot() - public void facesCtxWrapperGetViewRootTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - UIViewRoot root = (UIViewRoot) getApplication() - .createComponent(UIViewRoot.COMPONENT_TYPE); - - String golden = "TCKViewRoot"; - - root.setId(golden); - context.setViewRoot(root); - - String result = context.getViewRoot().getId(); - - if (!golden.equals(result)) { - out.println(JSFTestUtil.FAIL + "Unexpected value returned from " - + "FacesContextWrapper.getViewRoot()." + JSFTestUtil.NL + "Expected: " - + golden + JSFTestUtil.NL + "Receieved: " + result); - - } else { - out.println(JSFTestUtil.PASS); - } - - }// End facesCtxWrapperGetViewRootTest - - public void facesCtxWrapperGetELContextTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - ELContext elContext = context.getELContext(); - - if (elContext == null) { - out.println(JSFTestUtil.FAIL + " FacesContext.getELContext() returned" - + " null."); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // END facesCtxGetELContextTest - - public void facesCtxWrapperGetAttributesTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - if (!(context.getAttributes() instanceof Map)) { - out.println("Test FAILED. Unexpected class type returned from" - + "FacesContext.getAttributes() method." + JSFTestUtil.NL - + "Expected: java.util.Map" + JSFTestUtil.NL + "Received: " - + context.getAttributes().getClass().getName()); - return; - } else { - try { - context.getAttributes().put("test_key", "test_value"); - - } catch (UnsupportedOperationException usoe) { - out.print("Test FAILED. Map Not Mutable!"); - out.print(usoe.toString()); - } catch (Exception e) { - /* - * Swallow any other exception since we only care if the Map is mutable. - */ - } - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetAttributesTest - - public void facesCtxWrapperGetAttributesEmptyTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - try { - context.getAttributes().put("test_key", "test_value"); - // validate that the attribute was put in. - HashMap hm = (HashMap) context.getAttributes(); - if (!hm.containsKey("test_key")) { - out.println( - "Test FAILED. Attribute not added to context" + "attribute Map!"); - return; - } else { - // map should be empty after this call. - context.release(); - if (!hm.isEmpty()) { - out.println("Test FAILED. Attributes still found in " - + "context attribute Map, After 'context.release()" - + "was called!"); - return; - } - - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetAttributesEmptyTest - - public void facesCtxWrapperGetPartialViewContextTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - try { - PartialViewContext pvc = context.getPartialViewContext(); - if (!(pvc instanceof PartialViewContext)) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getPartialViewContext() should have " - + "returned a PartialViewContext." + JSFTestUtil.NL - + "Instead Received: " + pvc.getClass().getSimpleName()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetPartialViewContextTest - - public void facesCtxWrapperGetExceptionHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - try { - ExceptionHandler eh = context.getExceptionHandler(); - - if (!(eh instanceof ExceptionHandler)) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getExceptionHandler() should have " - + "returned a ExceptionHandler." + JSFTestUtil.NL - + "Instead Received: " + eh.getClass().getSimpleName()); - return; - } - - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetExceptionHandlerTest - - public void facesCtxWrapperSetExceptionHandlerTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - try { - context.setExceptionHandler(new TCKExceptionHandler()); - ExceptionHandler eh = context.getExceptionHandler(); - - if (!("TCKExceptionHandler".equals(eh.getClass().getSimpleName()))) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.setExceptionHandler() did not set " + "Handler!" - + JSFTestUtil.NL + "Expected: TCKExceptionHandler" + JSFTestUtil.NL - + "Received: " + eh.getClass().getSimpleName()); - return; - } - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrapperSetExceptionHandlerTest - - public void facesCtxWrapperGetExternalContextTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - try { - ExternalContext ec = context.getExternalContext(); - - if (!(ec instanceof ExternalContext)) { - out.print("Test FAILED." + JSFTestUtil.NL + "Call to " - + "FacesContext.getExternalContext did not return" - + "correct instance type." + JSFTestUtil.NL - + "Expected: ExternalContext" + JSFTestUtil.NL + "Received: " - + ec.getClass().getSimpleName()); - return; - } - - } catch (Exception e) { - out.print("Test FAILED." + JSFTestUtil.NL + e.toString()); - } - - out.println(JSFTestUtil.PASS); - - } // END facesCtxWrappergetExternalContextTest - - public void facesCtxWrapperGetRenderKitTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - UIViewRoot root = context.getViewRoot(); - String rkn = "TCKRenderKit"; - - // Setup renderKit - RenderKit renderKit = new TCKRenderKit(); - RenderKitFactory factory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - factory.addRenderKit(rkn, renderKit); - - root.setRenderKitId(rkn); - RenderKit result = context.getRenderKit(); - - if (rkn.equals(result.getClass().getSimpleName())) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected RenderKit returned from FacesContext.getRenderKit()" - + JSFTestUtil.NL + "Expected: " + rkn + JSFTestUtil.NL + "Received: " - + result); - } - } // END facesCtxWrapperGetRenderKitTest - - // FacesContextWrapper.[is, set]ProcessingEvents() - public void facesCtxWrapperIsGetProcessingEventTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - FacesContextWrapper context = new TCKFacesContext(); - - context.setProcessingEvents(true); - if (!context.isProcessingEvents()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from FacesContext.isProcessingEvents()" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + context.isProcessingEvents()); - - } else { - context.setProcessingEvents(false); - if (context.isProcessingEvents()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned from FacesContext.isProcessingEvents()" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + context.isProcessingEvents()); - - } else { - out.println(JSFTestUtil.PASS); - } - } - - } // End facesCtxWrapperIsGetProcessingEventTest - - // ------------------------------------------- Private Methods ----------- - - private FacesMessage[] getMessagesAsArray(Iterator iterator) { - List list = new ArrayList(); - while (iterator.hasNext()) { - list.add(iterator.next()); - } - return (FacesMessage[]) list.toArray(new FacesMessage[list.size()]); - } - - /* - * Add test messages to the given FacesContext. - */ - private void addTestMessagesToContext(FacesContext context, String compId) { - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - if (compId == null) { - component.setId("nothing"); - } else { - component.setId(compId); - } - - FacesMessage message1 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message1 summary", "message1 detail", "message1"); - FacesMessage message2 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message2 summary", "message2 detail", "message2"); - FacesMessage message3 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message3 summary", "message3 detail", "message3"); - FacesMessage message4 = new TCKMessage(FacesMessage.SEVERITY_INFO, - "message4 summary", "message4 detail", "message4"); - - context.setViewRoot(createViewRoot()); - - context.addMessage(component.getClientId(context), message1); - context.addMessage(component.getClientId(context), message3); - context.addMessage(null, message2); - context.addMessage(null, message4); - } - - // ------------------------------------------- Inner Classes ----------- - // skeletal implementation of ResponseStream - private static final class TCKResponseStream extends ResponseStream { - - @Override - public void write(int b) throws IOException { - } - } - // skeletal implementation of ResponseWriter - - private static final class TCKResponseWriter extends ResponseWriter { - - public void closeStartTag(UIComponent component) throws IOException { - } - - @Override - public String getContentType() { - return null; - } - - @Override - public String getCharacterEncoding() { - return null; - } - - @Override - public void write(char cbuf[], int off, int len) throws IOException { - } - - @Override - public void flush() throws IOException { - } - - @Override - public void close() throws IOException { - } - - @Override - public void startDocument() throws IOException { - } - - @Override - public void endDocument() throws IOException { - } - - @Override - public void startElement(String name, UIComponent component) - throws IOException { - } - - @Override - public void endElement(String name) throws IOException { - } - - @Override - public void writeAttribute(String name, Object value, String property) - throws IOException { - } - - @Override - public void writeURIAttribute(String name, Object value, String property) - throws IOException { - } - - @Override - public void writeComment(Object comment) throws IOException { - } - - @Override - public void writeText(Object text, String property) throws IOException { - } - - @Override - public void writeText(char text[], int off, int len) throws IOException { - } - - @Override - public ResponseWriter cloneWithWriter(Writer writer) { - return null; - } - } - - // simple implementation of FacesMessage - private static final class TCKMessage extends FacesMessage { - - private FacesMessage.Severity messageSeverity; - - private String messageSummary; - - private String messageDetail; - - String name; - - TCKMessage(FacesMessage.Severity severity, String messageSummary, - String messageDetail, String name) { - this.messageSeverity = severity; - this.messageSummary = messageSummary; - this.messageDetail = messageDetail; - this.name = name; - } - - @Override - public String getDetail() { - return messageDetail; - } - - @Override - public FacesMessage.Severity getSeverity() { - return messageSeverity; - } - - @Override - public String getSummary() { - return messageSummary; - } - - @Override - public String toString() { - return name; - } - } - - // simple implementation of ExceptionHandler - private static final class TCKExceptionHandler extends ExceptionHandler { - - @Override - public void handle() throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public ExceptionQueuedEvent getHandledExceptionQueuedEvent() { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Iterable getUnhandledExceptionQueuedEvents() { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Iterable getHandledExceptionQueuedEvents() { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void processEvent(SystemEvent arg0) throws AbortProcessingException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public boolean isListenerForSource(Object arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Throwable getRootCause(Throwable arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - } - - // Simple FacesContextWrapper implementation - private static final class TCKFacesContext extends FacesContextWrapper { - - @Override - public FacesContext getWrapped() { - return FacesContext.getCurrentInstance(); - } - - } // EndTCKExceptionHandler - - private static class TCKRenderKit extends RenderKitWrapper { - - @Override - public RenderKit getWrapped() { - return FacesContext.getCurrentInstance().getRenderKit(); - } - - } // End TCKRenderKit - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/URLClient.java deleted file mode 100644 index f24ccdcf10..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/URLClient.java +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_ctx_facesctxwrap_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: facesCtxWrapperAddGetMessagesTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1346; JSF:JAVADOC:1358; - * JSF:JAVADOC:1358 - * @test_Strategy: Verify the default behavior of the following is to call - * through to FacesContext... - * FacesContextWrapper.addMessage(UIComponent, FacesMessage), - * FacesContextWrapper.getMessage(), - * FacesContextWrapper.getMessages(UIComponent). - * - * Add four messages to the FacesContext, two of them have a - * client ID and the others have no client ID. - call - * getMessages(clientID) - ensure the expected 2 messages are - * returned. - call getMessages(null) - ensure the expected 2 - * messages are returned. - call getMessages() - ensure the - * expected 4 messages are returned. - * - * This will additionally ensure that the messages returned by - * the implementations Iterator preserves the order in which - * the messages were added. - */ - public void facesCtxWrapperAddGetMessagesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperAddGetMessagesTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetClientIdsWithMessagesEmptyTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1350 - * @test_Strategy: Ensure an empty Iterator is returned if there are no - * messages queued. Additionally, if there are messages with - * no particular client ID, the iterator will contain a null - * value. - */ - public void facesCtxWrapperGetClientIdsWithMessagesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesCtxWrapperGetClientIdsWithMessagesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetClientIdsWithMessagesTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1350 - * @test_Strategy: Ensure getClientIdsWithMessages returns the expected values - * based on messages added to the faces context that may or - * may not have an ID. - */ - public void facesCtxWrapperGetClientIdsWithMessagesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesCtxWrapperGetClientIdsWithMessagesTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetMessagesEmptyTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1358; JSF:JAVADOC:1359 - * @test_Strategy: Ensure both getMessages(UIComponent) and getMessages() - * returns an empty Iterator if no messages are queued within - * the FacesContext. - */ - public void facesCtxWrapperGetMessagesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetMessagesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetApplicationTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1348 - * @test_Strategy: Ensure the Application instance returned by - * FacesContestWrapper.getApplication() is the same instance - * as that returned by Application.getCurrentInstance(). - */ - public void facesCtxWrapperGetApplicationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetApplicationTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperSetExceptionHandlerTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1376 - * @test_Strategy: Ensure the Application instance returned by - * FacesContestWrapper.getApplication() is the same instance - * as that returned by Application.getCurrentInstance(). - */ - public void facesCtxWrapperSetExceptionHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperSetExceptionHandlerTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetMaximumSeverityTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1355 - * @test_Strategy: Validate the severity hierarchy of Messages stored in the - * FacesContext instance. First, if there are no messages - * getMaximumSeverity() must return null. Then add a - * SEVERITY_INFO message and ensure getMaximumSeverity() - * returns the expected message. Add SEVERITY_WARN, and ensure - * that the SEVERITY_WARN message is returned by - * getMaximumSeverity(). Add SEVERITY_ERROR and ensure - * getMaximumSeverity() returns the SEVERITY_ERROR message. - * Finally, add a SEVERITY_FATAL message to the context and - * ensure SEVERITY_FATAL message is returned by - * getMaximumSeverity(). - * - */ - public void facesCtxWrapperGetMaximumSeverityTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetMaximumSeverityTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetResponseCompleteTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1363; JSF:JAVADOC:1373 - * @test_Strategy: Ensure getResponseComplete() returns false on a new - * FacesContext instance. Call responseComplete() and ensure - * getResponseComplete() returns true. - */ - public void facesCtxWrapperGetResponseCompleteTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetResponseCompleteTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperRenderResponseTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1373; JSF:JAVADOC:1362 - * @test_Strategy: Ensure getRenderResponse() returns false on a new - * FacesContext instance. Call renderResponse() and ensure - * getRenderResponse() returns true. - */ - public void facesCtxWrapperRenderResponseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperRenderResponseTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperSetGetResponseWriterTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1365; JSF:JAVADOC:1379 - * @test_Strategy: Ensure the Writer set by setResponseWriter() is returned by - * getResponseWriter(). - */ - public void facesCtxWrapperSetGetResponseWriterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperSetGetResponseWriterTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperSetGetCurrentPhaseIdTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1351; JSF:JAVADOC:1375 - * @test_Strategy: Validate that we can can set and retrieve the current - * PhaseId. - * - * @since 2.0 - */ - public void facesCtxWrapperSetGetCurrentPhaseIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperSetGetCurrentPhaseIdTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperSetGetResponseStreamTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1364; JSF:JAVADOC:1378 - * @test_Strategy: Ensure the Stream set by setResponseStream() is returned by - * getResponseStream(). - */ - public void facesCtxWrapperSetGetResponseStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperSetGetResponseStreamTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetViewRootTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1366 - * @test_Strategy: Ensure the UIViewRoot set by setViewRoot() is properly - * returned by getViewRoot(). - */ - public void facesCtxWrapperGetViewRootTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetViewRootTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetELContextTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1352 - * @test_Strategy: Ensure we get a non-null return when calling this method. - * - * @since 1.2 - */ - public void facesCtxWrapperGetELContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetELContextTest"); - invoke(); - } // END facesCtxWrapperGetELContextTest - - /** - * @testName: facesCtxWrapperGetAttributesEmptyTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1349 - * @test_Strategy: Validate that a the Attribute map is empty after - * FacesContextWrapper.release() is called. - * - * @since 2.0 - */ - public void facesCtxWrapperGetAttributesEmptyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetAttributesEmptyTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetAttributesTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1349 - * @test_Strategy: Validate that a returned mutable Map is returned. - * - * @since 2.0 - */ - public void facesCtxWrapperGetAttributesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetAttributesTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetPartialViewContextTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1360 - * @test_Strategy: Validate that a PartialViewContext is returned for this - * request. This method must return a new PartialViewContext - * if one does not already exist. - * - * @since 2.0 - */ - public void facesCtxWrapperGetPartialViewContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetPartialViewContextTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetExceptionHandlerTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1353 - * @test_Strategy: Validate that a ExceptionHandler is returned for this - * request. - * - * @since 2.0 - */ - public void facesCtxWrapperGetExceptionHandlerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetExceptionHandlerTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetExternalContextTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1354 - * @test_Strategy: Validate that we get an instance of ExternalContext. - * - * @since 2.0 - */ - public void facesCtxWrapperGetExternalContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetExternalContextTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetMessageListTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1356; JSF:JAVADOC:1357 - * @test_Strategy: Validate that we get the correct number of messages from - * the context. - * - * @since 2.0 - */ - public void facesCtxWrapperGetMessageListTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetMessageListTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetMessageListByIdTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1359 - * @test_Strategy: Validate that we get the correct number of messages from - * the context when passing in with UIComponent ID. - * @since 2.0 - */ - public void facesCtxWrapperGetMessageListByIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetMessageListByIdTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperIsValidationFailedTest - * @assertion_ids: JSF:JAVADOC:1374; JSF:JAVADOC:1371 - * @test_Strategy: Validate that: - if a call to isValidationFailed comes - * before a call to validationFailed that 'false' is returned. - * - if a call to isValidationFailed comes after a call to - * validationFailed that 'true' is returned. - * - * @since 2.0 - */ - public void facesCtxWrapperIsValidationFailedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperIsValidationFailedTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperIsPostbackTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1368 - * @test_Strategy: Validate that we get the correct number of messages from - * the context. - * @since 2.0 - */ - public void facesCtxWrapperIsPostbackTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperIsPostbackTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperIsReleasedTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1372; JSF:JAVADOC:2590 - * @test_Strategy: Validate that if the resources associated with this - * FacesContext instance have been released. - * - * @since 2.1 - */ - public void facesCtxWrapperIsReleasedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperIsReleasedTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperGetRenderKitTest - * @assertion_ids: JSF:JAVADOC:1347; JSF:JAVADOC:1361 - * @test_Strategy: Validate that FacesContextWrapper.getRenderKit() returns - * the current RenderKit that has been set for the current - * UIViewRoot. - * - * @since 1.2 - */ - public void facesCtxWrapperGetRenderKitTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperGetRenderKitTest"); - invoke(); - } - - /** - * @testName: facesCtxWrapperIsGetProcessingEventTest - * @assertion_ids: JSF:JAVADOC:1369; JSF:JAVADOC:1377 - * @test_Strategy: Validate that we can set the processing event flag and we - * we get the correct value returned. - * - * @since 1.2 - */ - public void facesCtxWrapperIsGetProcessingEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesCtxWrapperIsGetProcessingEventTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/build.xml deleted file mode 100644 index 7a7b4bd7c9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.war.sun-web.xml deleted file mode 100644 index 5f620e4dd5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_ctx_facesctxwrap_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.xml deleted file mode 100644 index 600c025b9d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/context/facescontextwrapper/jsf_ctx_facesctxwrap_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_ctx_facesctxwrap - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.context.facescontextwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/URLClient.java deleted file mode 100644 index 1e2b00cc9f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.bigdecimalconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_bigdecimal_web"; - - private static final String TYPE = "bigdecimal"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: bigDecimalConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void bigDecimalConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigDecimalConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void bigDecimalConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigDecimalConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void bigDecimalConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigDecimalConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void bigDecimalConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/build.xml deleted file mode 100644 index 390a80d864..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.war.sun-web.xml deleted file mode 100644 index 7a8db1ddb7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_bigdecimal_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.xml deleted file mode 100644 index 5961ac0832..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigdecimalconverter/jsf_convert_bigdecimal_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_bigdecimal - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/URLClient.java deleted file mode 100644 index c7f4c50192..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.bigintegerconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_biginteger_web"; - - private static final String TYPE = "biginteger"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: bigIntegerConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1546; JSF:JAVADOC:1547 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void bigIntegerConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigIntegerConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1546; JSF:JAVADOC:1549 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void bigIntegerConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigIntegerConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1546; JSF:JAVADOC:1550 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void bigIntegerConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: bigIntegerConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1546; JSF:JAVADOC:1552 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void bigIntegerConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/build.xml deleted file mode 100644 index e592abb156..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.war.sun-web.xml deleted file mode 100644 index 2062da7756..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_biginteger_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.xml deleted file mode 100644 index a760e41a85..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/bigintegerconverter/jsf_convert_biginteger_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_biginteger - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/URLClient.java deleted file mode 100644 index 56663414e4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.booleanconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "boolean"; - - private static final String CONTEXT_ROOT = "/jsf_convert_boolean_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: booleanConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1553; JSF:JAVADOC:1554; JSF:JAVADOC:1574 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void booleanConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: booleanConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1553; JSF:JAVADOC:1556; JSF:JAVADOC:1576 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void booleanConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: booleanConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1553; JSF:JAVADOC:1557; JSF:JAVADOC:1577 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void booleanConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: booleanConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1553; JSF:JAVADOC:1559; JSF:JAVADOC:1579 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void booleanConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/build.xml deleted file mode 100644 index 38f646d200..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.war.sun-web.xml deleted file mode 100644 index e9f63d5853..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_boolean_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.xml deleted file mode 100644 index 1150b19b61..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/booleanconverter/jsf_convert_boolean_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_boolean - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/build.xml deleted file mode 100644 index a0be0d20a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/URLClient.java deleted file mode 100644 index 9dcdd29ec4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/URLClient.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.byteconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "byte"; - - private static final String CONTEXT_ROOT = "/jsf_convert_byte_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: byteConverterGetAsObjectTest - * - * @assertion_ids: JSF:JAVADOC:1560; JSF:JAVADOC:1561; JSF:JAVADOC:1574 - * - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void byteConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: byteConverterGetAsObjectNPETest - * - * @assertion_ids: JSF:JAVADOC:1560; JSF:JAVADOC:1563; JSF:JAVADOC:1576 - * - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void byteConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: byteConverterGetAsStringTest - * - * @assertion_ids: JSF:JAVADOC:1560; JSF:JAVADOC:1564; JSF:JAVADOC:1577 - * - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void byteConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: byteConverterGetAsStringNPETest - * - * @assertion_ids: JSF:JAVADOC:1560; JSF:JAVADOC:1566; JSF:JAVADOC:1579 - * - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void byteConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/build.xml deleted file mode 100644 index c0d80413d5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.war.sun-web.xml deleted file mode 100644 index abce13848b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_byte_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.xml deleted file mode 100644 index 02001b2a4b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/byteconverter/jsf_convert_byte_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_byte - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/URLClient.java deleted file mode 100644 index c8eb296695..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.characterconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "character"; - - private static final String CONTEXT_ROOT = "/jsf_convert_character_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: characterConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1567; JSF:JAVADOC:1568; JSF:JAVADOC:1574 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void characterConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: characterConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1567; JSF:JAVADOC:1570; JSF:JAVADOC:1576 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void characterConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: characterConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1567; JSF:JAVADOC:1571; JSF:JAVADOC:1577 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void characterConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: characterConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1567; JSF:JAVADOC:1573; JSF:JAVADOC:1579 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void characterConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/build.xml deleted file mode 100644 index 35de5dff33..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.war.sun-web.xml deleted file mode 100644 index dbbf7e8a83..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_character_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.xml deleted file mode 100644 index 2164561ca5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/characterconverter/jsf_convert_character_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_character - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/BaseConverterTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/BaseConverterTestServlet.java deleted file mode 100644 index 4ea3df8fa3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/BaseConverterTestServlet.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* -* $Id$ -*/ -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.time.LocalDate; -import java.time.LocalDateTime; -import java.time.LocalTime; -import java.time.OffsetDateTime; -import java.time.OffsetTime; -import java.time.ZonedDateTime; -import java.util.HashMap; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.BigDecimalConverter; -import jakarta.faces.convert.BigIntegerConverter; -import jakarta.faces.convert.BooleanConverter; -import jakarta.faces.convert.ByteConverter; -import jakarta.faces.convert.CharacterConverter; -import jakarta.faces.convert.Converter; -import jakarta.faces.convert.DateTimeConverter; -import jakarta.faces.convert.DoubleConverter; -import jakarta.faces.convert.FloatConverter; -import jakarta.faces.convert.IntegerConverter; -import jakarta.faces.convert.LongConverter; -import jakarta.faces.convert.ShortConverter; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Common test Servlet for testing convertions to Object and String using - * standard Java boxed types. - *

- */ -public final class BaseConverterTestServlet extends HttpTCKServlet { - - private Map objectMap; - - private Map stringMap; - - private Map converterMap; - - private UIComponent component; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - objectMap = new HashMap(); - stringMap = new HashMap(); - converterMap = new HashMap(); - component = new UIInput(); - - objectMap.put("boolean", Boolean.TRUE); - stringMap.put("boolean", objectMap.get("boolean").toString()); - converterMap.put("boolean", new BooleanConverter()); - - objectMap.put("byte", Byte.valueOf((byte) 'a')); - stringMap.put("byte", objectMap.get("byte").toString()); - converterMap.put("byte", new ByteConverter()); - - objectMap.put("character", Character.valueOf('b')); - stringMap.put("character", objectMap.get("character").toString()); - converterMap.put("character", new CharacterConverter()); - - objectMap.put("short", Short.valueOf("1")); - stringMap.put("short", objectMap.get("short").toString()); - converterMap.put("short", new ShortConverter()); - - objectMap.put("integer", Integer.valueOf(2)); - stringMap.put("integer", objectMap.get("integer").toString()); - converterMap.put("integer", new IntegerConverter()); - - objectMap.put("long", Long.valueOf(3l)); - stringMap.put("long", objectMap.get("long").toString()); - converterMap.put("long", new LongConverter()); - - objectMap.put("float", Float.valueOf(4.1f)); - stringMap.put("float", objectMap.get("float").toString()); - converterMap.put("float", new FloatConverter()); - - objectMap.put("double", Double.valueOf(5.1d)); - stringMap.put("double", objectMap.get("double").toString()); - converterMap.put("double", new DoubleConverter()); - - objectMap.put("bigdecimal", BigDecimal.valueOf(5.1d)); - stringMap.put("bigdecimal", objectMap.get("bigdecimal").toString()); - converterMap.put("bigdecimal", new BigDecimalConverter()); - - objectMap.put("biginteger", BigInteger.valueOf(6)); - stringMap.put("biginteger", objectMap.get("biginteger").toString()); - converterMap.put("biginteger", new BigIntegerConverter()); - - objectMap.put("localtime", LocalTime.parse("00:00")); - DateTimeConverter localtimeConverter = new DateTimeConverter(); - localtimeConverter.setType("localTime"); - localtimeConverter.setPattern("HH:mm"); - stringMap.put("localtime", "00:00"); - converterMap.put("localtime", localtimeConverter); - - objectMap.put("localdate", LocalDate.parse("2017-02-03")); - DateTimeConverter localDateConverter = new DateTimeConverter(); - localDateConverter.setType("localDate"); - localDateConverter.setPattern("yyyy-MM-dd"); - stringMap.put("localdate", "2017-02-03"); - converterMap.put("localdate", localDateConverter); - - objectMap.put("localdatetime", LocalDateTime.parse("2017-02-03T12:34:56")); - DateTimeConverter localDateTimeConverter = new DateTimeConverter(); - localDateTimeConverter.setType("localDateTime"); - localDateTimeConverter.setPattern("yyyy-MM-dd HH:mm:ss"); - stringMap.put("localdatetime", "2017-02-03 12:34:56"); - converterMap.put("localdatetime", localDateTimeConverter); - - objectMap.put("offsettime", OffsetTime.parse("10:15:30+01:00")); - DateTimeConverter offsettimeConverter = new DateTimeConverter(); - offsettimeConverter.setType("offsetTime"); - offsettimeConverter.setPattern("HH:mm:ssXXX"); - stringMap.put("offsettime", "10:15:30+01:00"); - converterMap.put("offsettime", offsettimeConverter); - - objectMap.put("offsetdatetime", - OffsetDateTime.parse("2017-02-03T12:34:56+01:00")); - DateTimeConverter offsetDateTimeConverter = new DateTimeConverter(); - offsetDateTimeConverter.setType("offsetDateTime"); - offsetDateTimeConverter.setPattern("yyyy-MM-dd HH:mm:ssXXX"); - stringMap.put("offsetdatetime", "2017-02-03 12:34:56+01:00"); - converterMap.put("offsetdatetime", offsetDateTimeConverter); - - objectMap.put("zoneddatetime", - ZonedDateTime.parse("2017-02-03T12:34:56+01:00[Europe/Paris]")); - DateTimeConverter zonedDateTimeConverter = new DateTimeConverter(); - zonedDateTimeConverter.setType("zonedDateTime"); - zonedDateTimeConverter.setPattern("yyyy-MM-dd HH:mm:ssXXX'['VV']'"); - stringMap.put("zoneddatetime", "2017-02-03 12:34:56+01:00[Europe/Paris]"); - converterMap.put("zoneddatetime", zonedDateTimeConverter); - } - - // ------------------------------------------- Test Methods ---- - public void converterGetAsObjectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String type = request.getParameter("type"); - - Converter converter = (Converter) converterMap.get(type); - String inputValue = (String) stringMap.get(type); - Object expectedResult = objectMap.get(type); - Object convResult = converter.getAsObject(getFacesContext(), component, - inputValue); - - if (!expectedResult.equals(convResult)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected conversion of String value " + inputValue + ": " - + expectedResult.toString() + JSFTestUtil.NL + "'Received: " - + convResult.toString()); - return; - } - - convResult = converter.getAsObject(getFacesContext(), component, ""); - if (convResult != null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Expected getAsObject() to return null if value was" - + " a zero-length String." + JSFTestUtil.NL + "Value returned: " - + convResult); - return; - } - - try { - convResult = converter.getAsObject(getFacesContext(), component, null); - if (convResult != null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected getAsObject() to return null if value " + "was null." - + JSFTestUtil.NL + "Value returned: " + convResult); - return; - } - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when " + "passing a null value." - + JSFTestUtil.NL + "Exception: " + e); - } - - out.println(JSFTestUtil.PASS); - } - - public String converterGetAsObjectNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String type = request.getParameter("type"); - Converter converter = (Converter) converterMap.get(type); - String inputValue = (String) stringMap.get(type); - - JSFTestUtil.checkForNPE(converter, "getAsObject", - new Class[] { FacesContext.class, UIComponent.class, String.class }, - new Object[] { null, component, inputValue }, pw); - - JSFTestUtil.checkForNPE(converter, "getAsObject", - new Class[] { FacesContext.class, UIComponent.class, String.class }, - new Object[] { getFacesContext(), null, inputValue }, pw); - - return JSFTestUtil.PASS; - } - - public void converterGetAsStringTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String type = request.getParameter("type"); - Converter converter = (Converter) converterMap.get(type); - Object inputValue = objectMap.get(type); - Object expectedResult = stringMap.get(type); - Object convResult = converter.getAsString(getFacesContext(), component, - inputValue); - if (!expectedResult.equals(convResult)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected conversion of Object value " + inputValue + ": " - + expectedResult.toString() + JSFTestUtil.NL + "Result: " - + convResult.toString()); - return; - } - - convResult = converter.getAsString(getFacesContext(), component, ""); - if (!"".equals(convResult)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected getAsString() to return a zero-length " - + "String if value was a zero-length String." + JSFTestUtil.NL - + "Value returned: " + convResult); - return; - } - - try { - convResult = converter.getAsString(getFacesContext(), component, null); - if (!"".equals(convResult)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected getAsString() to return a zero-length " - + "String if value was null." + JSFTestUtil.NL + "Value returned: " - + convResult); - return; - } - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected Exception thrown when passing a null " + "value." - + JSFTestUtil.NL + "Exception: " + e); - } - - out.println(JSFTestUtil.PASS); - } - - public String converterGetAsStringNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String type = request.getParameter("type"); - Converter converter = (Converter) converterMap.get(type); - Object inputValue = objectMap.get(type); - - JSFTestUtil.checkForNPE(converter, "getAsString", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, component, inputValue }, pw); - - JSFTestUtil.checkForNPE(converter, "getAsString", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { getFacesContext(), null, inputValue }, pw); - - return JSFTestUtil.PASS; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/convert.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/convert.common.xml deleted file mode 100644 index c9e432c671..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/common/convert.common.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/TestServlet.java deleted file mode 100644 index 6890b10518..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/TestServlet.java +++ /dev/null @@ -1,1168 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.datetimeconverter; - -import java.io.IOException; -import java.io.PrintWriter; -import java.text.DateFormat; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.Locale; -import java.util.TimeZone; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.ConverterException; -import jakarta.faces.convert.DateTimeConverter; -import jakarta.faces.render.RenderKitFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - // Valid values for {set,get}{Date,Time}Style() - private static final String STYLE_DEFAULT = "default"; - - private static final String STYLE_SHORT = "short"; - - private static final String STYLE_MEDIUM = "medium"; - - private static final String STYLE_LONG = "long"; - - private static final String STYLE_FULL = "full"; - - // Valid values for {set,get}Type() - private static final String TYPE_DATE = "date"; - - private static final String TYPE_TIME = "time"; - - private static final String TYPE_BOTH = "both"; - - private static final String[] FORMAT_STYLES = { STYLE_DEFAULT, STYLE_SHORT, - STYLE_MEDIUM, STYLE_LONG, STYLE_FULL }; - - private static final int[] DATE_FORMAT_STYLES = { DateFormat.DEFAULT, - DateFormat.SHORT, DateFormat.MEDIUM, DateFormat.LONG, DateFormat.FULL }; - - private static final TimeZone AMERICA_NEW_YORK = TimeZone - .getTimeZone("America/New_York"); - - private static final Date CURRENT_DATE_TIME = new Date(); - - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - // DateTimeConverter.setDateStyle(String) - // DateTimeConverter.getDateStyle() - public void dateTimeConverterGetSetDateStyleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - - if (!STYLE_DEFAULT.equals(converter.getDateStyle())) { - out.println( - JSFTestUtil.FAIL + " Expected DateTimeConverter.getDateStyle()" - + " to return 'default' if no style was specified."); - out.println("Style received: " + converter.getDateStyle()); - return; - } - - converter.setDateStyle(STYLE_FULL); - String result = converter.getDateStyle(); - if (!STYLE_FULL.equals(result)) { - out.println(JSFTestUtil.FAIL - + " DateTimeConverter.getTimeStyle() didn't returned the same" - + " value previously set. Expected 'full', but received '" + result - + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.setLocale(Locale) - // DateTimeConverter.getLocale() - public void dateTimeConverterSetGetLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - getFacesContext().setViewRoot(root); - DateTimeConverter converter = new DateTimeConverter(); - - if (!new Locale("en", "US").equals(converter.getLocale())) { - out.println( - JSFTestUtil.FAIL + " Exepcted locale specified in FacesContext" - + " to be returned if locale was not explicitly set on" - + " DateTimeConverter instanced."); - out.println("Locale received: " + converter.getLocale()); - return; - } - converter.setLocale(Locale.CANADA); - Locale result = converter.getLocale(); - if (!Locale.CANADA.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The Locale returned by DateTimeConverter was not the same " - + " as was previously set. Expected '" + Locale.CANADA - + "'. Received '" + result + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.setTimeZone(Timezone) - // DateTimeConverter.getTimeZone() - public void dateTimeConverterSetGetTimeZoneTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - TimeZone defaultTimeZone = TimeZone.getTimeZone("GMT"); - - if (!defaultTimeZone.equals(converter.getTimeZone())) { - out.println(JSFTestUtil.FAIL + " Expected DateTimeConverter.getTimeZone()" - + " to return the default timezone of GMT."); - out.println("Received: " + converter.getTimeZone().getDisplayName()); - return; - } - - TimeZone control = TimeZone.getTimeZone("PST"); - converter.setTimeZone(control); - TimeZone tz = converter.getTimeZone(); - if (!control.equals(tz)) { - out.println(JSFTestUtil.FAIL - + " The TimeZone returned by DateTimeConverter was not the same " - + " as was previously set. Expected '" + control.getDisplayName() - + "'. Received '" + tz.getDisplayName() + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.setPattern(String) - // DateTimeConverter.getPattern() - public void dateTimeConverterSetGetPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - String pattern = "yyyy.MM.dd G 'at' HH:mm:ss Z"; - converter.setPattern(pattern); - String result = converter.getPattern(); - if (!result.equals(pattern)) { - out.println(JSFTestUtil.FAIL - + " The Pattern returned by DateTimeConverter was not the same " - + " as was previously set. Expected '" + pattern + "'. Received '" - + result + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.setTimeStyle(String) - // DateTimeConverter.getTimeStyle() - public void dateTimeConverterSetGetTimeStyleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - - if (!STYLE_DEFAULT.equals(converter.getTimeStyle())) { - out.println( - JSFTestUtil.FAIL + " Expected DateTimeConverter.getDateStyle()" - + " to return 'default' if no style was specified."); - out.println("Style received: " + converter.getTimeStyle()); - return; - } - - converter.setTimeStyle(STYLE_SHORT); - String result = converter.getTimeStyle(); - if (!result.equals(STYLE_SHORT)) { - out.println(JSFTestUtil.FAIL - + " The time style returned by DateTimeConverter was not the same " - + " as was previously set. Expected '" + STYLE_SHORT - + "'. Received '" + result + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.setType(String) - // DateTimeConverter.getType(String) - public void dateTimeConverterSetGetTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - - if (!TYPE_DATE.equals(converter.getType())) { - out.println(JSFTestUtil.FAIL + " Expected DateTimeConverter.getType()" - + " to return 'date' when type was specified."); - out.println("Received: " + converter.getType()); - return; - } - converter.setType(TYPE_BOTH); - String result = converter.getType(); - if (!TYPE_BOTH.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The type returned by DateTimeConverter was not the same " - + " as was previously set. Expected '" + TYPE_BOTH + "'. Received '" - + result + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.isTransient() - // DateTimeConverter.setTransient() - public void dateTimeConverterIsSetTransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DateTimeConverter converter = new DateTimeConverter(); - - // by default DateTimeConverter is not transient - if (converter.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected DateTimeConverter.isT" - + "ransient() to return false on a newly created instance."); - return; - } - - converter.setTransient(false); - if (converter.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected DateTimeConverter.isTransient()" - + " to return false when DateTimeConverter.setTransient(false) was" - + " called."); - return; - } - - converter.setTransient(true); - if (!converter.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected DateTimeConverter.isTransient()" - + " to return true when DateTimeConverter.setTransient(true) was" - + " called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // Test getAsObject() with a specified date style - public void dateTimeConverterGetAsObjectDateStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Date current = new Date(); - DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, - Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - converter.setTimeZone(AMERICA_NEW_YORK); - String control = dateFormat.format(current); - Object controlObj; - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - context.setViewRoot(root); - - // in test order - - Object result; - - // if date style is not specified, 'default' will be used. - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObj.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject() didn't yield the expected result."); - out.println("Expected: " + current.toString()); - out.println("Received: " + result.toString()); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0; i < DATE_FORMAT_STYLES.length; i++) { - dateFormat = DateFormat.getDateInstance(DATE_FORMAT_STYLES[i], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(current); - try { - controlObj = dateFormat.parse(control); - } catch (Exception e) { - throw new ServletException(e); - } - converter.setDateStyle(FORMAT_STYLES[i]); - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "' using a style of '" + FORMAT_STYLES[i] + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObj.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject didn't yield the expected result using " - + "formatting style '" + FORMAT_STYLES[i] + "'"); - out.println("Expected: " + current.toString()); - out.println("Received: " + result.toString()); - failed = true; - } - } - if (failed) - return; - else - out.println(JSFTestUtil.PASS); - } - - // Test getAsString() with a specified date style - public void dateTimeConverterGetAsStringDateStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, - Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - String control = dateFormat.format(CURRENT_DATE_TIME); - Object controlObj; - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - context.setViewRoot(root); - - // in test order - - String result; - - // if date style is not specified, 'default' will be used. - try { - result = converter.getAsString(context, component, controlObj); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0; i < DATE_FORMAT_STYLES.length; i++) { - dateFormat = DateFormat.getDateInstance(DATE_FORMAT_STYLES[i], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(CURRENT_DATE_TIME); - try { - controlObj = dateFormat.parse(control); - } catch (Exception e) { - throw new ServletException(e); - } - converter.setDateStyle(FORMAT_STYLES[i]); - converter.setType(TYPE_DATE); - try { - result = converter.getAsString(context, component, controlObj); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "' using a style of '" + FORMAT_STYLES[i] - + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result using " - + "formatting style '" + FORMAT_STYLES[i] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - failed = true; - } - } - if (failed) - return; - else - out.println(JSFTestUtil.PASS); - } - - // Test getAsObject() with a specified time style - public void dateTimeConverterGetAsObjectTimeStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Date current = new Date(); - DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT, - Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - converter.setType(TYPE_TIME); - converter.setTimeZone(AMERICA_NEW_YORK); - String control = dateFormat.format(current); - Object controlObj; - - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - root.getChildren().add(component); - context.setViewRoot(root); - - // in test order - Object result; - - // if time style is not specified, 'default' will be used. - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObj.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject() didn't yield the expected result."); - out.println("Expected: " + controlObj.toString()); - out.println("Received: " + result.toString()); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0; i < DATE_FORMAT_STYLES.length; i++) { - if (System.getProperty("java.version").startsWith("1.5.") - && ("long".equals(FORMAT_STYLES[i]) - || "full".equals(FORMAT_STYLES[i]))) { - continue; // ADDED DUE TO JDK 1.5.0 BUG 6247963 (REGRESSION) - } - dateFormat = DateFormat.getTimeInstance(DATE_FORMAT_STYLES[i], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(current); - try { - controlObj = dateFormat.parse(control); - } catch (Exception e) { - throw new ServletException(e); - } - converter.setType(TYPE_TIME); - converter.setTimeStyle(FORMAT_STYLES[i]); - converter.setTimeZone(AMERICA_NEW_YORK); - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "' using a style of '" + FORMAT_STYLES[i] + "'"); - return; - } - - if (!controlObj.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject didn't yield the expected result using " - + "formatting style '" + FORMAT_STYLES[i] + "'"); - out.println("Expected: " + controlObj.toString()); - out.println("Received: " + result.toString()); - failed = true; - } - } - if (!failed) { - out.println(JSFTestUtil.PASS); - } - } - - // Test getAsString() with a specified time style - public void dateTimeConverterGetAsStringTimeStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateFormat dateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT, - Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - converter.setType(TYPE_TIME); - converter.setTimeZone(AMERICA_NEW_YORK); - String control = dateFormat.format(CURRENT_DATE_TIME); - Object controlObj; - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - context.setViewRoot(root); - - // in test order - String result; - - // if time style is not specified, 'default' will be used. - try { - result = converter.getAsString(context, component, controlObj); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0; i < DATE_FORMAT_STYLES.length; i++) { - dateFormat = DateFormat.getTimeInstance(DATE_FORMAT_STYLES[i], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(CURRENT_DATE_TIME); - try { - controlObj = dateFormat.parse(control); - } catch (Exception e) { - throw new ServletException(e); - } - converter.setTimeStyle(FORMAT_STYLES[i]); - converter.setType(TYPE_TIME); - converter.setTimeZone(AMERICA_NEW_YORK); - converter.setLocale(Locale.US); - try { - result = converter.getAsString(context, component, CURRENT_DATE_TIME); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "' using a style of '" + FORMAT_STYLES[i] - + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result using " - + "formatting style '" + FORMAT_STYLES[i] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - failed = true; - } - } - if (failed) { - return; - } else { - out.println(JSFTestUtil.PASS); - } - } - - // Test getAsObject() with a style set to both - public void dateTimeConverterGetAsObjectBothStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - Date current = new Date(); - DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, - DateFormat.DEFAULT, Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - converter.setType(TYPE_BOTH); - converter.setTimeZone(AMERICA_NEW_YORK); - String control = dateFormat.format(current); - Object controlObj; - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - context.setViewRoot(root); - - // in test order - Object result; - - // if time style is not specified, 'default' will be used. - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObj.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject() didn't yield the expected result."); - out.println("Expected: " + controlObj.toString()); - out.println("Received: " + result.toString()); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0, j = 4; i < DATE_FORMAT_STYLES.length; i++, j--) { - dateFormat = DateFormat.getDateTimeInstance(DATE_FORMAT_STYLES[i], - DATE_FORMAT_STYLES[j], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(current); - try { - controlObj = dateFormat.parse(control); - } catch (Exception e) { - throw new ServletException(e); - } - converter.setTimeStyle(FORMAT_STYLES[j]); - converter.setType(TYPE_BOTH); - converter.setDateStyle(FORMAT_STYLES[i]); - converter.setTimeZone(AMERICA_NEW_YORK); - try { - result = converter.getAsObject(context, component, control); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsObject() with a input value of" + " '" - + control + "' using a date style of '" + FORMAT_STYLES[i] - + "' and a time style of '" + FORMAT_STYLES[j] + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObj.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject didn't yield the expected result using " - + "date style '" + FORMAT_STYLES[i] + "' and time style" + " '" - + FORMAT_STYLES[j] + "'"); - out.println("Expected: " + controlObj.toString()); - out.println("Received: " + result.toString()); - failed = true; - } - } - if (failed) { - return; - } else { - out.println(JSFTestUtil.PASS); - } - } - - // Test getAsString() with a specified style set for both - public void dateTimeConverterGetAsStringBothStyleTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.DEFAULT, - DateFormat.DEFAULT, Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - DateTimeConverter converter = new DateTimeConverter(); - converter.setType(TYPE_BOTH); - converter.setTimeZone(AMERICA_NEW_YORK); - String control = dateFormat.format(CURRENT_DATE_TIME); - Object controlObj; - - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext context = getFacesContext(); - UIViewRoot root = new UIViewRoot(); - root.setLocale(Locale.US); - context.setViewRoot(root); - - // in test order - String result; - - // if time style is not specified, 'default' will be used. - try { - result = converter.getAsString(context, component, controlObj); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - - // loop through the known styles and ensure the results are as expected - boolean failed = false; - for (int i = 0, j = 4; i < DATE_FORMAT_STYLES.length; i++, j--) { - dateFormat = DateFormat.getDateTimeInstance(DATE_FORMAT_STYLES[i], - DATE_FORMAT_STYLES[j], Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - control = dateFormat.format(CURRENT_DATE_TIME); - try { - controlObj = dateFormat.parse(control); - } catch (ParseException e) { - throw new ServletException(e); - } - converter.setTimeStyle(FORMAT_STYLES[j]); - converter.setDateStyle(FORMAT_STYLES[i]); - converter.setType(TYPE_BOTH); - converter.setTimeZone(AMERICA_NEW_YORK); - converter.setLocale(Locale.US); - try { - result = converter.getAsString(context, component, CURRENT_DATE_TIME); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObj.toString() + "' using a date style of '" - + FORMAT_STYLES[i] + "' and a time style of '" + FORMAT_STYLES[j] - + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!control.equals(result)) { - out.println( - JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsString() didn't yield the expected result using " - + "date style '" + FORMAT_STYLES[i] + "' and time style" + " '" - + FORMAT_STYLES[j] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - failed = true; - } - } - if (failed) { - return; - } else { - out.println(JSFTestUtil.PASS); - } - } - - // DateTimeConverter.getAsObject() using a pattern - public void dateTimeConverterGetAsObjectPatternTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String pattern = "yyyyy.MMMMM.dd GGG hh:mm aaa"; - SimpleDateFormat dateFormat = new SimpleDateFormat(pattern, Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setLocale(Locale.US); - converter.setTimeZone(AMERICA_NEW_YORK); - converter.setPattern(pattern); - - // setting other formatting properties will be ignored - // if pattern is set - converter.setType(TYPE_DATE); - converter.setDateStyle(STYLE_SHORT); - converter.setTimeStyle(STYLE_SHORT); - - String controlString = dateFormat.format(CURRENT_DATE_TIME); - Object controlObject; - - try { - controlObject = dateFormat.parse(controlString); - } catch (ParseException pe) { - throw new ServletException(pe); - } - - Object result; - - try { - result = converter.getAsObject(getFacesContext(), - getApplication().createComponent(UIInput.COMPONENT_TYPE), - controlString); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlString + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlObject.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject() didn't yield the expected result."); - out.println("Expected: " + controlObject.toString()); - out.println("Received: " + result.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.getAsString() using a pattern - public void dateTimeConverterGetAsStringPatternTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String pattern = "yyyyy.MMMMM.dd GGG hh:mm aaa"; - SimpleDateFormat dateFormat = new SimpleDateFormat(pattern, Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setLocale(Locale.US); - converter.setTimeZone(AMERICA_NEW_YORK); - converter.setPattern(pattern); - - // setting other formatting properties will be ignored - // if pattern is set - converter.setType(TYPE_DATE); - converter.setDateStyle(STYLE_SHORT); - converter.setTimeStyle(STYLE_SHORT); - - String controlString = dateFormat.format(CURRENT_DATE_TIME); - Object controlObject; - try { - controlObject = dateFormat.parse(controlString); - } catch (ParseException pe) { - throw new ServletException(pe); - } - - Object result; - - try { - result = converter.getAsString(getFacesContext(), - getApplication().createComponent(UIInput.COMPONENT_TYPE), - controlObject); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected Exception when calling" - + " DateTimeConverter.getAsString() with a input value of" + " '" - + controlObject.toString() + "'"); - out.println("Exception: " + e.toString()); - return; - } - - if (!controlString.equals(result)) { - out.println(JSFTestUtil.FAIL + " The result returned by DateTimeConverter" - + ".getAsObject() didn't yield the expected result."); - out.println("Expected: " + controlString); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // DateTimeConverter.{getAsString(),getAsObject()} throws - // ConverterException with invalid date style. - public void dateTimeConverterInvalidDateStyleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setDateStyle("INVALID"); - String result = checkInvalidConfiguration(converter, "date style"); - if (result != null) { - out.println(result); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // DateTimeConverter.{getAsString(),getAsObject()} throws - // ConverterException with invalid pattern. - public void dateTimeConverterInvalidPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setPattern("INVALID"); - String result = checkInvalidConfiguration(converter, "pattern"); - if (result != null) { - out.println(result); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // DateTimeConverter.{getAsString(),getAsObject()} throws - // ConverterException with invalid time style. - public void dateTimeConverterInvalidTimeStyleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setType(TYPE_TIME); - converter.setTimeStyle("INVALID"); - String result = checkInvalidConfiguration(converter, "time style"); - if (result != null) { - out.println(result); - } else { - out.println(JSFTestUtil.PASS); - } - } - - // DateTimeConverter.{getAsString(),getAsObject()} throws - // ConverterException with invalid type. - public void dateTimeConverterInvalidTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - converter.setType("INVALID"); - String result = checkInvalidConfiguration(converter, "type"); - if (result != null) { - out.println(result); - } else { - out.println(JSFTestUtil.PASS); - } - } - - public void dateTimeConverterGetAsStringNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - UIComponent component = new UIInput(); - FacesContext context = getFacesContext(); - - try { - converter.getAsString(null, component, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'context' argument of" - + " getAsString()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'context' argument of getAsString()," - + " but it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsString(context, null, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'component' argument of" - + " getAsString()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'component' argument of getAsString()," - + " but it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsString(null, null, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'component' and " - + "'context' arguments of getAsString()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'component' and 'context' arguments" - + " of getAsString(), but it wasn't an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - - } - - public void dateTimeConverterGetAsObjectNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DateTimeConverter converter = new DateTimeConverter(); - UIComponent component = new UIInput(); - FacesContext context = getFacesContext(); - - try { - converter.getAsObject(null, component, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'context' argument of" - + " getAsObject()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'context' argument of getAsObject()," - + " but it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsObject(context, null, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'component' argument of" - + " getAsObject()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'component' argument of getAsString()," - + " but it wasn't an instance of NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsObject(null, null, "value"); - out.println(JSFTestUtil.FAIL + " NullPointerException not thrown" - + " when a null value was passed to the 'component' and " - + "'context' arguments of getAsObject()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null value" - + " was passed to the 'component' and 'context' arguments" - + " of getAsObject(), but it wasn't an instance of " - + "NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - - } - - // -------------------------------------------------- Private Methods ------ - - // Ensure CoverterException is thrown when getAsString() or - // getAsObject() is called against a mis-configured - // DateTimeConverter - private String checkInvalidConfiguration(DateTimeConverter converter, - String type) { - DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT, - Locale.US); - dateFormat.setTimeZone(AMERICA_NEW_YORK); - FacesContext context = getFacesContext(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - try { - converter.getAsObject(context, component, - dateFormat.format(CURRENT_DATE_TIME)); - return (JSFTestUtil.FAIL + " No Exception thrown when DateTimeConveter" - + " was configured with an invalid " + type + " ."); - } catch (Exception e) { - if (!(e instanceof ConverterException)) { - return (JSFTestUtil.FAIL + " Exception thrown when DateTime" - + "Converter was configured with an invalid " + type - + " but it wasn't an instance of ConverterException.\n" - + "Exception received: " + e.getClass().getName()); - } - } - - try { - converter.getAsString(context, component, - dateFormat.parse(dateFormat.format(CURRENT_DATE_TIME))); - return ("Test FAILED [2]. No Exception thrown when DateTimeConveter" - + " was configured with an invalid " + type + "."); - } catch (Exception e) { - if (!(e instanceof ConverterException)) { - return ("Test FAILED [2]. Exception thrown when DateTime" - + "Converter was configured with an invalid " + type - + " but it wasn't an instance of ConverterException.\n" - + "Exception received: " + e.getClass().getName()); - } - } - return null; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/URLClient.java deleted file mode 100644 index f7a97ea40b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/URLClient.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.datetimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_datetime_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: dateTimeConverterGetSetDateStyleTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1595; JSF:JAVADOC:1606 - * @test_Strategy: Ensure the default value of 'default' is returned if the - * value is not explicitly set using setDateStyle(). Then - * verify the value passed to setDateStyle() is returned when - * getDateStyle() is called. - */ - public void dateTimeConverterGetSetDateStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterGetSetDateStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterSetGetLocaleTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1596; JSF:JAVADOC:1607 - * @test_Strategy: Ensure the locale of the FacesContext is returned if not - * explicitly set via setLocale(). Also verify that the Locale - * set by setLocale() is returned when getLocale() is called. - */ - public void dateTimeConverterSetGetLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterSetGetLocaleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterSetGetTimeZoneTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1599; JSF:JAVADOC:1610 - * @test_Strategy: Ensure the default TimeZone is returned if the TimeZone was - * not explicitly set via setTimeZone. Also verify that the - * TimeZone set by setTimeZone() is returned when - * getTimeZone() is called. - */ - public void dateTimeConverterSetGetTimeZoneTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterSetGetTimeZoneTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterSetGetPatternTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1597; JSF:JAVADOC:1608 - * @test_Strategy: Ensure the pattern set via setPattern() is returned when - * getPattern() is called. - */ - public void dateTimeConverterSetGetPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterSetGetPatternTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterSetGetTimeStyleTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1598; JSF:JAVADOC:1609 - * @test_Strategy: Ensure the default value of 'default' is returned if the - * value is not explicitly set using setTimeStyle(). Then - * verify the value passed to setTimeStyle() is returned when - * getTimeStyle() is called. - */ - public void dateTimeConverterSetGetTimeStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterSetGetTimeStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterSetGetTypeTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1600; JSF:JAVADOC:1612 - * @test_Strategy: Ensure the default value of 'date' is returned if the value - * is not explicitly set using setType(). Then verify the - * value passed to setType() is returned when getType() is - * called. - */ - public void dateTimeConverterSetGetTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterSetGetTypeTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1602; JSF:JAVADOC:1611 - * @test_Strategy: Ensure the default value of isTransient() is indeed false. - * Then call setTransient() and validate isTransient() returns - * true. - */ - public void dateTimeConverterIsSetTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterIsSetTransientTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsObjectDateStyleTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1589 - * @test_Strategy: Ensure getAsObject() behaves as expected when calling - * getAsObject when date style is not explicitly set and when - * setting all of the valid values for date style. This also - * verifies the locale and timezones are used. - */ - public void dateTimeConverterGetAsObjectDateStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsObjectDateStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsStringDateStyleTest - * @assertion_ids: JSF:JAVADOC:1588; JSF:JAVADOC:1592 - * @test_Strategy: Ensure getAsString() behaves as expected when calling - * getAsObject when date style is not explicitly set and when - * setting all of the valid values for date style. This also - * verifies the locale and timezones are used. - */ - public void dateTimeConverterGetAsStringDateStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsStringDateStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsObjectTimeStyleTest - * @assertion_ids: JSF:JAVADOC:1589; JSF:JAVADOC:1598 - * @test_Strategy: Ensure getAsObject() behaves as expected when calling - * getAsObject when time style is not explicitly set and when - * setting all of the valid values for time style. This also - * verifies the locale and timezones are used. - */ - public void dateTimeConverterGetAsObjectTimeStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsObjectTimeStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsStringTimeStyleTest - * @assertion_ids: JSF:JAVADOC:1598; JSF:JAVADOC:1592 - * @test_Strategy: Ensure getAsString() behaves as expected when calling - * getAsObject when time style is not explicitly set and when - * setting all of the valid values for time style. This also - * verifies the locale and timezones are used. - */ - public void dateTimeConverterGetAsStringTimeStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsStringTimeStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsObjectBothStyleTest - * @assertion_ids: JSF:JAVADOC:1589; JSF:JAVADOC:1598 - * @test_Strategy: Ensure getAsObject() behaves as expected when calling - * getAsObject when both date and time styles are not - * explicitly and type is set to both. Then cycle through all - * of the styles for both time and date to ensure the possible - * valid values work in combination. This also verifies the - * locale and timezones are used. - */ - public void dateTimeConverterGetAsObjectBothStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsObjectBothStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsStringBothStyleTest - * @assertion_ids: JSF:JAVADOC:1592; JSF:JAVADOC:1598 - * @test_Strategy: Ensure getAsString() behaves as expected when calling - * getAsObject when both date and time styles are not - * explicitly and type is set to both. Then cycle through all - * of the styles for both time and date to ensure the possible - * valid values work in combination. This also verifies the - * locale and timezones are used. - */ - public void dateTimeConverterGetAsStringBothStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dateTimeConverterGetAsStringBothStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsObjectPatternTest - * @assertion_ids: JSF:JAVADOC:1589; JSF:JAVADOC:1597 - * @test_Strategy: Ensure getAsObject() behaves as expected when a pattern is - * specified and that values for date style, time style, and - * type are ignored when specified. This also verifies the - * locale and timezones are used. - */ - public void dateTimeConverterGetAsObjectPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterGetAsObjectPatternTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsStringPatternTest - * @assertion_ids: JSF:JAVADOC:1590; JSF:JAVADOC:1597 - * @test_Strategy: Ensure getAsString() behaves as expected when a pattern is - * specified and that values for date style, time style, and - * type are ignored when specified. This also verifies the - * locale and timezones are used. - */ - public void dateTimeConverterGetAsStringPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterGetAsStringPatternTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterInvalidDateStyleTest - * @assertion_ids: JSF:JAVADOC:1590; JSF:JAVADOC:1593 - * @test_Strategy: Ensure ConverterException is thrown when getAsObject() or - * getAsString() is called with an invalid date style. - */ - public void dateTimeConverterInvalidDateStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterInvalidDateStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterInvalidPatternTest - * @assertion_ids: JSF:JAVADOC:1590; JSF:JAVADOC:1593 - * @test_Strategy: Ensure ConverterException is thrown when getAsObject() or - * getAsString() is called with an invalid pattern. - */ - public void dateTimeConverterInvalidPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterInvalidPatternTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterInvalidTimeStyleTest - * @assertion_ids: JSF:JAVADOC:1590; JSF:JAVADOC:1593 - * @test_Strategy: Ensure ConverterException is thrown when getAsObject() or - * getAsString() is called with an invalid time style. - */ - public void dateTimeConverterInvalidTimeStyleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterInvalidTimeStyleTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterInvalidTypeTest - * @assertion_ids: JSF:JAVADOC:1590; JSF:JAVADOC:1593 - * @test_Strategy: Ensure ConverterException is thrown when getAsObject() or - * getAsString() is called with an invalid type. - */ - public void dateTimeConverterInvalidTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterInvalidTypeTest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1593; JSF:JAVADOC:1594 - * @test_Strategy: Ensure DateTimeConverter.getAsString() throws an NPE if - * either the context or component - * arguments are null. - * @since 1.2 - */ - public void dateTimeConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterGetAsStringNPETest"); - invoke(); - } - - /** - * @testName: dateTimeConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1591 - * @test_Strategy: Ensure DateTimeConverter.getAsString() throws an NPE if - * either the context or component - * arguments are null. - * @since 1.2 - */ - public void dateTimeConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dateTimeConverterGetAsObjectNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/build.xml deleted file mode 100644 index c89c75cee4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.war.sun-web.xml deleted file mode 100644 index c836ba46de..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_datetime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.xml deleted file mode 100644 index d2861e4a25..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/datetimeconverter/jsf_convert_datetime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_datetime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.datetimeconverter.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/URLClient.java deleted file mode 100644 index 596c717ada..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.doubleconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "double"; - - private static final String CONTEXT_ROOT = "/jsf_convert_double_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: doubleConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1614 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void doubleConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: doubleConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1616 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void doubleConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: doubleConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1617 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void doubleConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: doubleConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1619 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void doubleConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/build.xml deleted file mode 100644 index c5ba8273d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.war.sun-web.xml deleted file mode 100644 index 5f819e2b5e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_double_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.xml deleted file mode 100644 index cedb1d37b8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/doubleconverter/jsf_convert_double_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_double - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/TestServlet.java deleted file mode 100644 index e757c79c41..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/TestServlet.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.enumconverter; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.ConverterException; -import jakarta.faces.convert.EnumConverter; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - enum Suit { - SPADES, CLUBS, HEARTS, DIAMONDS - } - - enum Royal { - JACK, QUEEN, KING - } - - // EnumConverter.isTransient() - // EnumConverter.setTransient() - public void enumConverterIsSetTransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - EnumConverter noArgsConverter = new EnumConverter(); - EnumConverter argConverter = new EnumConverter(Suit.class); - - // by default EnumConverter is not transient - if (noArgsConverter.isTransient()) { - out.println("Test FAILED. noArgsConverter: Expected EnumConverter.isT" - + "ransient() to return false on a newly created instance."); - return; - } - - if (argConverter.isTransient()) { - out.println(JSFTestUtil.FAIL + " argConverter: Expected EnumConverter.isT" - + "ransient() to return false on a newly created instance."); - return; - } - - noArgsConverter.setTransient(false); - argConverter.setTransient(false); - - if (noArgsConverter.isTransient()) { - out.println( - "Test FAILED. noArgsConverter: Expected EnumConverter.isTransient()" - + " to return false when EnumConverter.setTransient(false) was" - + " called."); - return; - } - - if (argConverter.isTransient()) { - out.println( - "Test FAILED. argConverter: Expected EnumConverter.isTransient()" - + " to return false when EnumConverter.setTransient(false) was" - + " called."); - return; - } - - noArgsConverter.setTransient(true); - argConverter.setTransient(true); - - if (!noArgsConverter.isTransient()) { - out.println( - "Test FAILED. noArgsConverter: Expected EnumConverter.isTransient()" - + " to return true when EnumConverter.setTransient(true) was" - + " called."); - return; - } - - if (!argConverter.isTransient()) { - out.println( - "Test FAILED. argConverter: Expected EnumConverter.isTransient()" - + " to return true when EnumConverter.setTransient(false) was" - + " called."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void enumConverterGetAsObjectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - EnumConverter converter = new EnumConverter(Suit.class); - Object obj = converter.getAsObject(context, component, "HEARTS"); - - if (!Suit.HEARTS.equals(obj)) { - out.println("Test FAILED. Bad conversion of String to enum object."); - return; - } - - if (converter.getAsObject(context, component, null) != null) { - out.println( - "Test FAILED. Non-null value returned when String to be converted is null"); - return; - } - - if (converter.getAsObject(context, component, "") != null) { - out.println("Test FAILED. Non-null value returned when String to be " - + "converted is zero-length"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void enumConverterGetAsObjectCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - boolean pass1 = false; - boolean pass2 = false; - - EnumConverter noArgsConverter = new EnumConverter(); - EnumConverter argConverter = new EnumConverter(Suit.class); - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - // ConverterException when target class is null - try { - noArgsConverter.getAsObject(context, component, "some string"); - } catch (ConverterException ce) { - out.println( - "Conversion of value for converter constructed with no target " - + "class failed as expected"); - pass1 = true; - } - - // ConverterException when value to be converted does not exist in the enum - // class - try { - argConverter.getAsObject(context, component, "SMARTS"); - } catch (ConverterException ce) { - out.println("Conversion of invalid value failed as expected"); - pass2 = true; - } - - out.println((pass1 && pass2) ? "Test PASSED," : "Test FAILED."); - } - - public void enumConverterGetAsObjectNPE1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - EnumConverter converter = new EnumConverter(Suit.class); - try { - converter.getAsObject(null, component, "SPADES"); - } catch (NullPointerException npe) { - out.println( - "Test PASSED. Conversion with null FacesContext failed as expected"); - return; - } - - out.println("Test FAILED. Conversion with null FacesContext was allowed."); - } - - public void enumConverterGetAsObjectNPE2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - EnumConverter converter = new EnumConverter(Suit.class); - try { - converter.getAsObject(context, null, "SPADES"); - } catch (NullPointerException npe) { - out.println( - "Test PASSED. Conversion with null component failed as expected"); - return; - } - - out.println("Test FAILED. Conversion with null component was allowed."); - } - - public void enumConverterGetAsStringTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - EnumConverter converter = new EnumConverter(Suit.class); - String str = converter.getAsString(context, component, Suit.CLUBS); - - if (!str.equals("CLUBS")) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Bad conversion of enum object to String." + JSFTestUtil.NL - + "Expected value = CLUBS" + JSFTestUtil.NL + "Computed value = " - + str); - return; - } - - str = converter.getAsString(context, component, null); - - if (!str.isEmpty()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected empty String whenpassing in null as value." - + JSFTestUtil.NL + "Received: " + str); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void enumConverterGetAsStringCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - String ExpectedException = "ConverterException"; - boolean pass1 = false; - boolean pass2 = false; - boolean pass3 = false; - - EnumConverter argsConverter = new EnumConverter(Suit.class); - EnumConverter noArgsConverter = new EnumConverter(); - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - // ConverterException when value to be converted is not an enum constant - try { - argsConverter.getAsString(context, component, "some string"); - out.println("Conversion to String of value that is not an enum constant " - + "class did thorw a " + ExpectedException); - - } catch (ConverterException ce) { - pass1 = true; - - } catch (Exception e) { - out.println( - "Conversion to String of value that is not an enum constant throw incorrect " - + "Exception: " + JSFTestUtil.NL + "Expected: " - + ExpectedException + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - // ConverterException when value to be converted is a constant from a - // different enum class - try { - argsConverter.getAsString(context, component, Royal.JACK); - out.println( - "Conversion to String of constant from a different enum class " - + "did thorw a " + ExpectedException); - - } catch (ConverterException ce) { - pass2 = true; - - } catch (Exception e) { - out.println( - "Conversion to String of constant from a different enum class throw incorrect " - + "Exception: " + JSFTestUtil.NL + "Expected: " - + ExpectedException + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - // ConverterException when target class is null - try { - noArgsConverter.getAsString(context, component, Suit.DIAMONDS); - out.println("Conversion to String of constant when target class is null " - + "did thorw a " + ExpectedException); - - } catch (ConverterException ce) { - pass3 = true; - - } catch (Exception e) { - out.println( - "Conversion to String of constant when target class is null throw incorrect " - + "Exception: " + JSFTestUtil.NL + "Expected: " - + ExpectedException + JSFTestUtil.NL + "Received: " - + e.getClass().getSimpleName()); - e.printStackTrace(); - } - - out.println((pass1 && pass2 && pass3) ? "Test PASSED," : "Test FAILED."); - - } // End enumConverterGetAsStringCETest - - public void enumConverterGetAsStringNPE1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - UIComponent component = getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - EnumConverter converter = new EnumConverter(Suit.class); - try { - converter.getAsString(null, component, Suit.SPADES); - } catch (NullPointerException npe) { - out.println( - "Test PASSED. Conversion to String with null FacesContext failed as expected"); - return; - } - - out.println( - "Test FAILED. Conversion to String with null FacesContext was allowed."); - } - - public void enumConverterGetAsStringNPE2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - - EnumConverter converter = new EnumConverter(Suit.class); - try { - converter.getAsString(context, null, Suit.SPADES); - } catch (NullPointerException npe) { - out.println( - "Test PASSED. Conversion to String with null component failed as expected"); - return; - } - - out.println( - "Test FAILED. Conversion to String with null component was allowed."); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/URLClient.java deleted file mode 100644 index 781ee75a46..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/URLClient.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.enumconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_enum_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: enumConverterIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1630; JSF:JAVADOC:1634 - * @test_Strategy: Ensure the default value of isTransient() is indeed false. - * Then call setTransient() and validate isTransient() returns - * true. - */ - public void enumConverterIsSetTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterIsSetTransientTest"); - invoke(); - } - - /** - * @testName: enumConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1623 - * @test_Strategy: Ensure that the EnumConverter successfully converts a - * string value into the proper enum object and converts a - * null value or a String of zero length to null. - */ - public void enumConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsObjectTest"); - invoke(); - } - - /** - * @testName: enumConverterGetAsObjectCETest - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1624 - * @test_Strategy: Ensure that the EnumConverter throws a ConverterException - * when attempting to convert an invalid string value or when - * the target class is null. - */ - public void enumConverterGetAsObjectCETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsObjectCETest"); - invoke(); - } - - /** - * @testName: enumConverterGetAsObjectNPE1Test - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1625 - * @test_Strategy: Ensure that the EnumConverter throws a NullPointerException - * when attempting to convert with a null FacesContext. - */ - public void enumConverterGetAsObjectNPE1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsObjectNPE1Test"); - invoke(); - } - - /** - * @testName: enumConverterGetAsObjectNPE2Test - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1625 - * @test_Strategy: Ensure that the EnumConverter throws a NullPointerException - * when attempting to convert with a null Component. - */ - public void enumConverterGetAsObjectNPE2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsObjectNPE2Test"); - invoke(); - } - - /** - * @testName: enumConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1626 - * @test_Strategy: Ensure that the EnumConverter successfully converts an enum - * object into the proper String value, and that a null enum - * object converts to a String of zero length. - */ - public void enumConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsStringTest"); - invoke(); - } - - /** - * @testName: enumConverterGetAsStringCETest - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1627 - * @test_Strategy: Ensure that the EnumConverter throws a ConverterException - * when attempting to convert an object that is not a member - * of an enum class to a String, when attempting to convert a - * object of a different enum class to a String, or when - * attempting to convert an object where the target class is - * null. - */ - public void enumConverterGetAsStringCETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsStringCETest"); - invoke(); - } - - /** - * @testName: enumConverterGetAsStringNPE1Test - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1628 - * @test_Strategy: Ensure that the EnumConverter throws a NullPointerException - * when attempting to convert an enum object to a String with - * a null FacesContext. - */ - public void enumConverterGetAsStringNPE1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsStringNPE1Test"); - invoke(); - } - - /** - * @testName: enumConverterGetAsStringNPE2Test - * @assertion_ids: JSF:JAVADOC:1621; JSF:JAVADOC:1628 - * @test_Strategy: Ensure that the EnumConverter throws a NullPointerException - * when attempting to convert an enum object to a String with - * a null Component. - */ - public void enumConverterGetAsStringNPE2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "enumConverterGetAsStringNPE2Test"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/build.xml deleted file mode 100644 index 1a5d48d5a6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enum_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enum_web.xml deleted file mode 100644 index 2d6458c7ed..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enum_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_enum - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.enumconverter.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enun_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enun_web.war.sun-web.xml deleted file mode 100644 index 583f998fae..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/enumconverter/jsf_convert_enun_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_enum_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/URLClient.java deleted file mode 100644 index c0eed4f995..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.floatconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "float"; - - private static final String CONTEXT_ROOT = "/jsf_convert_float_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: floatConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1637; JSF:JAVADOC:1638 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void floatConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: floatConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1637; JSF:JAVADOC:1640 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void floatConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: floatConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1637; JSF:JAVADOC:1641 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void floatConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: floatConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1637; JSF:JAVADOC:1643 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void floatConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/build.xml deleted file mode 100644 index b18d4d78c3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.war.sun-web.xml deleted file mode 100644 index c2ce974f65..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_float_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.xml deleted file mode 100644 index be19e578e0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/floatconverter/jsf_convert_float_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_float - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/URLClient.java deleted file mode 100644 index 9683689a34..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/URLClient.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.integerconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "integer"; - - private static final String CONTEXT_ROOT = "/jsf_convert_integer_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: integerConverterGetAsObjectTest - * - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1644; JSF:JAVADOC:1650 - * - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void integerConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: integerConverterGetAsObjectNPETest - * - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1646; JSF:JAVADOC:1650 - * - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void integerConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: integerConverterGetAsStringTest - * - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1647; JSF:JAVADOC:1650 - * - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void integerConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: integerConverterGetAsStringNPETest - * - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1649; JSF:JAVADOC:1650 - * - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void integerConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/build.xml deleted file mode 100644 index 8181550c91..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.war.sun-web.xml deleted file mode 100644 index db5c8b25e1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_integer_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.xml deleted file mode 100644 index 424caa8ceb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/integerconverter/jsf_convert_integer_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_integer - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/URLClient.java deleted file mode 100644 index c6c4dcf739..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.localdateconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_localdate_web"; - - private static final String TYPE = "localdate"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalDateConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/build.xml deleted file mode 100644 index a69896c39f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.war.sun-web.xml deleted file mode 100644 index b9d267d18a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_localdate_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.xml deleted file mode 100644 index be9e245705..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdateconverter/jsf_convert_localdate_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_localdate - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/URLClient.java deleted file mode 100644 index 55bca96dde..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.localdatetimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_localdatetime_web"; - - private static final String TYPE = "localdatetime"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalDateTimeConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateTimeConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateTimeConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateTimeConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateTimeConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/build.xml deleted file mode 100644 index d11f76b8b9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.war.sun-web.xml deleted file mode 100644 index ddb2e7eca4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_localdatetime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.xml deleted file mode 100644 index e913e09d41..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localdatetimeconverter/jsf_convert_localdatetime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_localdatetime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/URLClient.java deleted file mode 100644 index ac2ae034c5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.localtimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_localtime_web"; - - private static final String TYPE = "localtime"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalTimeConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalTimeConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalTimeConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalTimeConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalTimeConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/build.xml deleted file mode 100644 index ef3199a4d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.war.sun-web.xml deleted file mode 100644 index 2021e91620..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_localtime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.xml deleted file mode 100644 index 23717f115d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/localtimeconverter/jsf_convert_localtime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_localtime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/URLClient.java deleted file mode 100644 index 591d64ee5b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.longconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "long"; - - private static final String CONTEXT_ROOT = "/jsf_convert_long_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: longConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1657; JSF:JAVADOC:1651 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void longConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: longConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1576; JSF:JAVADOC:1657; JSF:JAVADOC:1653 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void longConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: longConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1657; JSF:JAVADOC:1654 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void longConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: longConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1657; JSF:JAVADOC:1656 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void longConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/build.xml deleted file mode 100644 index eefe19b143..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.war.sun-web.xml deleted file mode 100644 index cd6362869b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_long_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.xml deleted file mode 100644 index c277cbd7e2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/longconverter/jsf_convert_long_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_integer - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/TestServlet.java deleted file mode 100644 index e8659ef2ea..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/TestServlet.java +++ /dev/null @@ -1,1547 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.numberconverter; - -import java.io.IOException; -import java.io.PrintWriter; -import java.lang.reflect.Method; -import java.text.DecimalFormat; -import java.text.DecimalFormatSymbols; -import java.text.NumberFormat; -import java.text.ParseException; -import java.util.Locale; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.NumberConverter; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - private static Class currencyClass; - static { - try { - currencyClass = Thread.currentThread().getContextClassLoader() - .loadClass("java.util.Currency"); - } catch (ClassNotFoundException cnfe) { - ; - } - } - - private static final String[] TYPES = { "number", "currency", "percent" }; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - // NumberConverter.{get,set}CurrencyCode() - public void numConverterGetSetCurrencyCodeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - String currencyCode = "USD"; - converter.setCurrencyCode(currencyCode); - if (!currencyCode.equals(converter.getCurrencyCode())) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter." - + "getCurrencyCode() to return the value 'USD' to be " - + "returned as set by setCurrencyCode()."); - out.println("Received: " + converter.getCurrencyCode()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}CurrencySymbol() - public void numConverterGetSetCurrencySymbolTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - String currencySymbol = "$"; - converter.setCurrencySymbol(currencySymbol); - if (!currencySymbol.equals(converter.getCurrencySymbol())) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter." - + "getCurrencySymbol() to return the value '$' to be " - + "returned as set by setCurrencySymbol()."); - out.println("Received: " + converter.getCurrencySymbol()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}Locale() - public void numConverterGetSetLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - getFacesContext().getViewRoot().setLocale(Locale.CANADA_FRENCH); - - Locale locale = converter.getLocale(); - if (!Locale.CANADA_FRENCH.equals(locale)) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter.getLocale()" - + "to return the locale stored in the UIViewRoot of" - + " the current FacesContext if not already explicitly" + " set."); - out.println("Expected: " + Locale.CANADA_FRENCH.getDisplayName()); - out.println( - "Received: " + locale != null ? locale.getDisplayName() : "null"); - return; - } - - converter.setLocale(Locale.ENGLISH); - locale = converter.getLocale(); - if (!Locale.ENGLISH.equals(locale)) { - out.println(JSFTestUtil.FAIL + " Unexpected return value from Number" - + "Converter.getLocale() after explicitly setting the " - + "locake to Locale.ENGLISH."); - out.println( - "Received: " + locale != null ? locale.getDisplayName() : "null"); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}MaxFractionDigits - public void numConverterGetSetMaxFractionDigitsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - converter.setMaxFractionDigits(3); - int result = converter.getMaxFractionDigits(); - - if (result != 3) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from" - + " getMaxFractionDigits() after explicitly setting " - + "the value to '3'."); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}MaxIntegerDigits - public void numConverterGetSetMaxIntegerDigitsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - converter.setMaxIntegerDigits(3); - int result = converter.getMaxIntegerDigits(); - - if (result != 3) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from" - + " getMaxIntegerDigits() after explicitly setting " - + "the value to '3'."); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}MinFractionDigits - public void numConverterGetSetMinFractionDigitsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - converter.setMinFractionDigits(3); - int result = converter.getMinFractionDigits(); - - if (result != 3) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from" - + " getMinFractionDigits() after explicitly setting " - + "the value to '3'."); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}MinIntegerDigits - public void numConverterGetSetMinIntegerDigitsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - converter.setMinIntegerDigits(3); - int result = converter.getMinIntegerDigits(); - - if (result != 3) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from" - + " getMinIntegerDigits() after explicitly setting " - + "the value to '3'."); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}Pattern - public void numConverterGetSetPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - String pattern = "#,##0.##"; - converter.setPattern(pattern); - String result = converter.getPattern(); - - if (!pattern.equals(result)) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from " - + "getPattern() after explicitly setting the value to " + pattern); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{get,set}Type - public void numConverterGetSetTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - if (!"number".equals(converter.getType())) { - out.println(JSFTestUtil.FAIL + " Expected default value of " - + "NumberConverter.getType() to be 'number'."); - out.println("Received: " + converter.getType()); - return; - } - - String type = "integer"; - converter.setType(type); - String result = converter.getType(); - - if (!type.equals(result)) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned from " - + "getType() after explicitly setting the value to " + type); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{is,set}GroupingUsed - public void numConverterIsSetGroupingUsedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - if (!converter.isGroupingUsed()) { - out.println(JSFTestUtil.FAIL + " Expected the default value of" - + " NumberConverter.isGroupingUsed() to be true."); - return; - } - - converter.setGroupingUsed(false); - if (converter.isGroupingUsed()) { - out.println(JSFTestUtil.FAIL + " Expected isGroupingUsed() to return" - + " false after having explicitly set it as such."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{is,set}IntegerOnly - public void numConverterIsSetIntegerOnlyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - if (converter.isIntegerOnly()) { - out.println(JSFTestUtil.FAIL + " Expected the default value of" - + " NumberConverter.isIntegerOnly() to be false."); - return; - } - - converter.setGroupingUsed(true); - if (!converter.isGroupingUsed()) { - out.println(JSFTestUtil.FAIL + " Expected isIntegerOnly() to return" - + " true after having explicitly set it as such."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.{is,set}Transient - public void numConverterIsSetTransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - converter.setTransient(false); - if (converter.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return" - + " false after having explicitly set it as such."); - return; - } - - converter.setTransient(true); - if (!converter.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return" - + " true after having explicitly set it as such."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsObject() returns null of input - // is null or a zero-length String - public void numConverterGetAsObjectNullZeroLengthTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - FacesContext context = getFacesContext(); - UIComponent comp = new UIInput(); - - Object result = converter.getAsObject(context, comp, null); - if (result != null) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter.getAsObject() " - + "to return null if a null String value was passed."); - out.println("Recevied: " + result.toString()); - return; - } - - result = converter.getAsObject(context, comp, ""); - if (result != null) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter.getAsObject() " - + "to retun null if a zero-length String argument was passed."); - out.println("Received: " + result.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConveter.getAsObject() interaction with Locales - public void numConverterGetAsObjectLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - // If Locale is not explictly set, convert the Number using the Locale - // from the UIViewRoot - NumberFormat parser = NumberFormat.getNumberInstance(Locale.FRENCH); - Object control; - try { - control = parser.parse("5.5"); - } catch (ParseException pe) { - throw new ServletException("Unexpected Exception", pe); - } - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.parse(String)."); - return; - } - - FacesContext context = getFacesContext(); - UIComponent comp = new UIInput(); - context.getViewRoot().setLocale(Locale.FRENCH); - - try { - Object result = converter.getAsObject(context, comp, "5.5"); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The value returned by NumberConverter.getAsObject()" - + " for '5.5' using Locale.FRENCH doesn't match that" - + " returned by NumberFormat.parse() using the same settings."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - - // If Locale is explicitly set, then the converter should use that - // locale vs the one in the ViewRoot - converter.setLocale(Locale.ENGLISH); - parser = NumberFormat.getNumberInstance(Locale.ENGLISH); - try { - control = parser.parse("5.5"); - } catch (ParseException pe) { - throw new ServletException("Unexpected Exception", pe); - } - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.parse(String)."); - return; - } - - try { - Object result = converter.getAsObject(context, comp, "5.5"); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The value returned by NumberConverter.getAsObject()" - + " for '5.5' using Locale.ENGLISH doesn't match that" - + " returned by NumberFormat.parse() using the same settings."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsObject() with pattern specified - public void numConverterGetAsObjectPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String pattern = "$#,##0.00;($#.##0.00)"; - String inputValue = "$12.50"; - NumberConverter converter = new NumberConverter(); - converter.setLocale(Locale.ENGLISH); - converter.setPattern(pattern); - - DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH); - DecimalFormat parser = new DecimalFormat(pattern, symbols); - - Object control; - try { - control = parser.parse(inputValue); - } catch (ParseException pe) { - throw new ServletException("Unexpected Exception", pe); - } - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.parse(String)."); - return; - } - - try { - Object result = converter.getAsObject(getFacesContext(), new UIInput(), - inputValue); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " The value returned by NumberConverter" - + ".getAsObject() using a pattern of '" + pattern - + " was not the same value as that returned by" - + " DecimalFormat."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - - // NumberConverter.getAsObject() must ignore the value of the type - // property if pattern is set - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - try { - Object result = converter.getAsObject(getFacesContext(), new UIInput(), - inputValue); - if (!control.equals(result)) { - out.println("Type seems to have impacted the return value" - + "of NumberFormat.getAsObject() when a pattern" - + "has been specified."); - out.println("Pattern: " + pattern); - out.println("Type: " + TYPES[i] + " (should have been ignored)"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsObject() with type specified. - public void numConverterGetAsObjectTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - Locale locale = new Locale("en", "US"); - converter.setLocale(locale); - Class[] params = { Locale.class }; - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - String[] inputs = { "1,234", "$1,234.00", "1.5%" }; - - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - NumberFormat parser; - try { - parser = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), e); - } - - if (parser == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain NumberFormat " + "instance."); - return; - } - - Object control; - try { - control = parser.parse(inputs[i]); - } catch (ParseException pe) { - throw new ServletException("Unexpected Exception", pe); - } - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.parse(String)."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsObject(getFacesContext(), new UIInput(), - inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsObject with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsObject() with setParseIntegerOnly() - public void numConverterGetAsObjectParseIntOnlyTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - Locale locale = new Locale("en", "US"); - converter.setLocale(locale); - converter.setIntegerOnly(true); - Class[] params = { Locale.class }; - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - String[] inputs = { "1,234.56", "$1,234.56", - // "150%" --> commented out due to J2SE bug 4663895 - }; - - String types[] = { "number", "currency" }; - - for (int i = 0; i < types.length; i++) { - converter.setType(TYPES[i]); - NumberFormat parser; - try { - parser = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), e); - } - - if (parser == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain NumberFormat " + "instance."); - return; - } - - Object control; - try { - parser.setParseIntegerOnly(true); - control = parser.parse(inputs[i]); - } catch (ParseException pe) { - throw new ServletException("Unexpected Exception. " + pe.toString(), - pe); - } - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.parse(String)."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsObject(getFacesContext(), new UIInput(), - inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsObject with type specified as" + " '" + types[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsObject().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------------------- getAsString - - // NumberConverter.getAsString() returns zero-length String if input - // is null or a zero-length String - public void numConverterGetAsStringNullZeroLengthTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - FacesContext context = getFacesContext(); - UIComponent comp = new UIInput(); - - Object result = converter.getAsString(context, comp, null); - if (!result.equals("")) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter.getAsString() " - + "to return a zero-length String if a null value was passed."); - out.println("Recevied: " + result.toString()); - return; - } - - result = converter.getAsString(context, comp, ""); - if (!"".equals(result)) { - out.println(JSFTestUtil.FAIL + " Expected NumberConverter.getAsString() " - + "to return a zero-length String if a zero-length String argument was passed."); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() will convert String arguments to - // Number (Long or Double) to be formatted. - public void numConverterGetAsStringStringInputTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - converter.setLocale(Locale.FRENCH); - FacesContext context = getFacesContext(); - UIComponent comp = new UIInput(); - - NumberFormat formatter = NumberFormat.getNumberInstance(Locale.FRENCH); - formatter.setGroupingUsed(true); - - // if input is String, the result should be the same value as the - // input value - String control = "1235.5"; - try { - Object result = converter.getAsString(context, comp, "1235.5"); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " NumberConverter.getAsString() failed" - + " to return the same result using the same input arguments" - + " as that returned by NumberFormat.format()."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException("Unexpected Exception: " + e.toString(), e); - } - - control = "1234"; - - try { - Object result = converter.getAsString(context, comp, "1234"); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " NumberConverter.getAsString() failed" - + " to return the same result using the same input arguments" - + " as that returned by NumberFormat.format()."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException("Unexpected Exception: " + e.toString(), e); - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConveter.getAsString() interaction with Locales - public void numConverterGetAsStringLocaleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - // If Locale is not explictly set, convert the Number using the Locale - // from the UIViewRoot - NumberFormat formatter = NumberFormat.getNumberInstance(Locale.FRENCH); - formatter.setGroupingUsed(true); - String control; - - control = formatter.format(Double.valueOf(5.5)); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.format(Double)."); - return; - } - - FacesContext context = getFacesContext(); - UIComponent comp = new UIInput(); - context.getViewRoot().setLocale(Locale.FRENCH); - - try { - Object result = converter.getAsString(context, comp, Double.valueOf(5.5)); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The value returned by NumberConverter.getAsString()" - + " for '5.5' using Locale.FRENCH doesn't match that" - + " returned by NumberFormat.format() using the same settings."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - - // If Locale is explicitly set, then the converter should use that - // locale vs the one in the ViewRoot - converter.setLocale(Locale.ENGLISH); - formatter = NumberFormat.getNumberInstance(Locale.ENGLISH); - - control = formatter.format(Double.valueOf(5.5)); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.format(Double)."); - return; - } - - try { - Object result = converter.getAsString(context, comp, Double.valueOf(5.5)); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL - + " The value returned by NumberConverter.getAsString()" - + " for '5.5' using Locale.ENGLISH doesn't match that" - + " returned by NumberFormat.parse() using the same settings."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() with pattern specified - public void numConverterGetAsStringPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String pattern = "0.###E0"; - Long inputValue = Long.valueOf(1234); - NumberConverter converter = new NumberConverter(); - converter.setLocale(Locale.ENGLISH); - converter.setPattern(pattern); - - DecimalFormatSymbols symbols = new DecimalFormatSymbols(Locale.ENGLISH); - DecimalFormat formatter = new DecimalFormat(pattern, symbols); - formatter.setGroupingUsed(true); - - Object control; - - control = formatter.format(inputValue); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.format(String)."); - return; - } - - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - Long.valueOf(1234)); - if (!control.equals(result)) { - out.println(JSFTestUtil.FAIL + " The value returned by NumberConverter" - + ".getAsString() using a pattern of '" + pattern - + " was not the same value as that returned by" - + " DecimalFormat."); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - - // NumberConverter.getAsString() must ignore the value of the type - // property if pattern is set - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - inputValue); - if (!control.equals(result)) { - out.println("Type seems to have impacted the return value" - + "of NumberFormat.getAsString() when a pattern" - + "has been specified."); - out.println("Pattern: " + pattern); - out.println("Type: " + TYPES[i] + " (should have been ignored)"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() using specified types - public void numConverterGetAsStringTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - Locale locale = new Locale("en", "US"); - converter.setLocale(locale); - Class[] params = { Locale.class }; - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), e); - } - - if (formatter == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain NumberFormat " + "instance."); - return; - } - formatter.setGroupingUsed(true); - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() using setGroupingUsed(); - public void numConverterGetAsStringGroupingTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Class[] params = { Locale.class }; - Locale locale = new Locale("en", "US"); - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int j = 0; j < 2; j++) { - NumberConverter converter = new NumberConverter(); - converter.setLocale(locale); - if (j == 0) { - converter.setGroupingUsed(true); - } else { - converter.setGroupingUsed(false); - } - - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), - e); - } - - if (formatter == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain NumberFormat " - + "instance."); - return; - } - if (j == 0) { - formatter.setGroupingUsed(true); - } else { - formatter.setGroupingUsed(false); - } - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " DecimalFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), - new UIInput(), inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - out.println("And a grouping set to: " + converter.isGroupingUsed()); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException( - JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", - e); - } - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() {max,min}IntegerDigits - public void numConverterGetAsStringMinMaxIntegerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Class[] params = { Locale.class }; - Locale locale = new Locale("en", "US"); - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int j = 0; j < 2; j++) { - NumberConverter converter = new NumberConverter(); - converter.setLocale(locale); - if (j == 0) { - converter.setMaxIntegerDigits(1); - } else { - converter.setMinIntegerDigits(8); - } - - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), - e); - } - - if (formatter == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain NumberFormat " - + "instance."); - return; - } - formatter.setGroupingUsed(true); - if (j == 0) { - formatter.setMaximumIntegerDigits(1); - } else { - formatter.setMinimumIntegerDigits(8); - } - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), - new UIInput(), inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - if (j == 0) { - out.println("And with Max int digits set to: " - + converter.getMaxIntegerDigits()); - } else { - out.println("And with Min int digits set to: " - + converter.getMinIntegerDigits()); - } - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException( - JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", - e); - } - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() {max,min}FractionalDigits - public void numConverterGetAsStringMinMaxFractionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Class[] params = { Locale.class }; - Locale locale = new Locale("en", "US"); - Method[] numMethods; - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int j = 0; j < 2; j++) { - NumberConverter converter = new NumberConverter(); - converter.setLocale(locale); - if (j == 0) { - converter.setMaxFractionDigits(3); - } else { - converter.setMinFractionDigits(1); - } - - for (int i = 0; i < TYPES.length; i++) { - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), - e); - } - - if (formatter == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain NumberFormat " - + "instance."); - return; - } - formatter.setGroupingUsed(true); - if (j == 0) { - formatter.setMaximumFractionDigits(3); - } else { - formatter.setMinimumFractionDigits(1); - } - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), - new UIInput(), inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'"); - if (j == 0) { - out.println("And with Max fraction digits set to: " - + converter.getMaxFractionDigits()); - } else { - out.println("And with Min fraction digits set to: " - + converter.getMinFractionDigits()); - } - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException( - JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", - e); - } - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() currencySymbol - public void numConverterGetAsStringCurrencySymbolTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - Locale locale = new Locale("en", "US"); - converter.setLocale(locale); - converter.setCurrencySymbol("@"); - Class[] params = { Locale.class }; - Method[] numMethods; - - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int i = 0; i < TYPES.length; i++) { - // Currency symbol should not impact the result - // if type is number or percent - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), e); - } - - if (formatter == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain NumberFormat " + "instance."); - return; - } - formatter.setGroupingUsed(true); - if (TYPES[i].equals("currency")) { - DecimalFormat df = (DecimalFormat) formatter; - DecimalFormatSymbols symbols = df.getDecimalFormatSymbols(); - symbols.setCurrencySymbol("@"); - df.setDecimalFormatSymbols(symbols); - } - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'" - + " and currencySymbol set to '@'"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() currencyCode - public void numConverterGetAsStringCurrencyCodeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Locale locale = new Locale("en", "US"); - String code = "USD"; - - Class[] params = { Locale.class }; - Method[] numMethods; - - try { - numMethods = new Method[] { - NumberFormat.class.getDeclaredMethod("getNumberInstance", params), - NumberFormat.class.getDeclaredMethod("getCurrencyInstance", params), - NumberFormat.class.getDeclaredMethod("getPercentInstance", params) }; - } catch (NoSuchMethodException nsme) { - throw new ServletException("Test initialization failed!", nsme); - } - - Object[] inputs = { Double.valueOf(1234.56), Double.valueOf(45.6666666), - Long.valueOf(3145192) }; - - for (int i = 0; i < TYPES.length; i++) { - NumberConverter converter = new NumberConverter(); - converter.setLocale(locale); - converter.setCurrencyCode(code); - converter.setType(TYPES[i]); - NumberFormat formatter; - try { - formatter = (NumberFormat) numMethods[i].invoke(null, - new Object[] { locale }); - } catch (Exception e) { - throw new ServletException("Unexpected Exception! " + e.toString(), e); - } - - if (formatter == null) { - out.println( - JSFTestUtil.FAIL + " Unable to obtain NumberFormat " + "instance."); - return; - } - - formatter.setGroupingUsed(true); - - if (TYPES[i].equals("currency")) { - if (currencyClass != null) { - try { - Object[] methodArgs = new Object[1]; - - /* - * java.util.Currency.getInstance() - */ - Method m = currencyClass.getMethod("getInstance", - new Class[] { String.class }); - methodArgs[0] = code; - Object currency = m.invoke(null, methodArgs); - - /* - * java.text.NumberFormat.setCurrency() - */ - Class[] paramTypes = new Class[1]; - paramTypes[0] = currencyClass; - Class numberFormatClass = Class.forName("java.text.NumberFormat"); - m = numberFormatClass.getMethod("setCurrency", paramTypes); - methodArgs[0] = currency; - m.invoke(formatter, methodArgs); - } catch (Exception e) { - throw new ServletException("Unexpected Exception: " + e.toString(), - e); - } - } else { - DecimalFormat df = (DecimalFormat) formatter; - DecimalFormatSymbols symbols = df.getDecimalFormatSymbols(); - symbols.setCurrencySymbol(code); - df.setDecimalFormatSymbols(symbols); - } - } else { - - } - - Object control = formatter.format(inputs[i]); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - inputs[i]); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " '" + TYPES[i] - + "' with an input value of" + "'" + inputs[i] + "'" - + " and currencyCode set to 'USD'"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() currencyCode and currencySymbol - // both specified - public void numConverterGetAsStringCurrencyCodeSymbolTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Locale locale = new Locale("en", "us"); - NumberConverter converter = new NumberConverter(); - converter.setLocale(locale); - converter.setType("currency"); - String symbol = "@"; - String code = "USD"; - converter.setCurrencySymbol(symbol); - converter.setCurrencyCode(code); - - NumberFormat formatter = NumberFormat.getCurrencyInstance(locale); - - formatter.setGroupingUsed(true); - - if (currencyClass != null) { - try { - Object[] methodArgs = new Object[1]; - - /* - * java.util.Currency.getInstance() - */ - Method m = currencyClass.getMethod("getInstance", - new Class[] { String.class }); - methodArgs[0] = code; - Object currency = m.invoke(null, methodArgs); - - /* - * java.text.NumberFormat.setCurrency() - */ - Class[] paramTypes = new Class[1]; - paramTypes[0] = currencyClass; - Class numberFormatClass = Class.forName("java.text.NumberFormat"); - m = numberFormatClass.getMethod("setCurrency", paramTypes); - methodArgs[0] = currency; - m.invoke(formatter, methodArgs); - } catch (Exception e) { - throw new ServletException("Unexpected Exception: " + e.toString(), e); - } - } else { - DecimalFormat df = (DecimalFormat) formatter; - DecimalFormatSymbols symbols = df.getDecimalFormatSymbols(); - symbols.setCurrencySymbol(symbol); - df.setDecimalFormatSymbols(symbols); - } - - Object control = formatter.format(Double.valueOf(1234.56)); - - if (control == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain result from" - + " NumberFormat.Format()."); - return; - } - - // Now get the result from the NumberConverter - try { - Object result = converter.getAsString(getFacesContext(), new UIInput(), - Double.valueOf(1234.56)); - if (!control.equals(result)) { - out.println("Unexpected result returned from NumberCon" - + "verter.getAsString with type specified as" + " 'currency'" - + " with an input value of" + "'1234.34'" - + " and currencyCode set to 'USD' and currency" - + "Symbol set to '@'"); - out.println("Expected: " + control); - out.println("Received: " + result); - return; - } - } catch (Exception e) { - throw new ServletException(JSFTestUtil.FAIL + " Unexpected Exception" - + "thrown when calling NumberConverter." + "getAsString().", e); - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsObject() throws NPE if either context or - // component are null - public void numConverterGetAsObjectNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - try { - converter.getAsObject(null, new UIInput(), "1.23"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null" - + " FacesContext is passed to NumberConveter.getAs" + "Object()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null" - + " FacesContext was passed to NumberConverter.get" - + "asObject(), but it wasn't an instance of" - + " NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsObject(getFacesContext(), null, "1.23"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null" - + " UIComponent is passed to NumberConveter.getAs" + "Object()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null" - + " UIComponent was passed to NumberConverter.get" - + "asObject(), but it wasn't an instance of" - + " NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // NumberConverter.getAsString() throws NPE if either context or - // component are null - public void numConverterGetAsStringNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - NumberConverter converter = new NumberConverter(); - - try { - converter.getAsString(null, new UIInput(), "1.23"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null" - + " FacesContext is passed to NumberConveter.getAs" + "Object()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null" - + " FacesContext was passed to NumberConverter.get" - + "asObject(), but it wasn't an instance of" - + " NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - converter.getAsString(getFacesContext(), null, "1.23"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when a null" - + " UIComponent is passed to NumberConveter.getAs" + "Object()."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when a null" - + " UIComponent was passed to NumberConverter.get" - + "asObject(), but it wasn't an instance of" - + " NullPointerException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/URLClient.java deleted file mode 100644 index 49744b58ec..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/URLClient.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.numberconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_number_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: numConverterGetSetCurrencyCodeTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1665; JSF:JAVADOC:1682 - * @test_Strategy: Validate behavior of {get,set}CurrencyCode(). - */ - public void numConverterGetSetCurrencyCodeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetCurrencyCodeTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetCurrencySymbolTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1666; JSF:JAVADOC:1683 - * @test_Strategy: Validate behavior of {get,set}CurrencySymbol(). - */ - public void numConverterGetSetCurrencySymbolTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetCurrencySymbolTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetLocaleTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1667; JSF:JAVADOC:1686 - * @test_Strategy: Ensure that if the Locale is not explicitly set, that the - * Locale in the ViewRoot of the FacesContext is used. Next, - * ensure that the Locale explicitly set on the Converter is - * returned. - */ - public void numConverterGetSetLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetLocaleTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetMaxFractionDigitsTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1687; JSF:JAVADOC:1668 - * @test_Strategy: Validate behavior of {get,set}MaxFractionDigits(). - */ - public void numConverterGetSetMaxFractionDigitsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetMaxFractionDigitsTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetMaxIntegerDigitsTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1669; JSF:JAVADOC:1688 - * @test_Strategy: Validate behavior of {get,set}MaxIntegerDigits(). - */ - public void numConverterGetSetMaxIntegerDigitsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetMaxIntegerDigitsTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetMinFractionDigitsTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1670; JSF:JAVADOC:1689 - * @test_Strategy: Validate behavior of {get,set}MinFractionDigits(). - */ - public void numConverterGetSetMinFractionDigitsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetMinFractionDigitsTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetMinIntegerDigitsTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1671; JSF:JAVADOC:1690 - * @test_Strategy: Validate behavior of {get,set}MaxIntegerDigits(). - */ - public void numConverterGetSetMinIntegerDigitsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetMinIntegerDigitsTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetPatternTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1672; JSF:JAVADOC:1691 - * @test_Strategy: Validate behavior of {get,set}Pattern(). - */ - public void numConverterGetSetPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetPatternTest"); - invoke(); - } - - /** - * @testName: numConverterGetSetTypeTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1673; JSF:JAVADOC:1693 - * @test_Strategy: Validate behavior of {get,set}Type(). - */ - public void numConverterGetSetTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetSetTypeTest"); - invoke(); - } - - /** - * @testName: numConverterIsSetGroupingUsedTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1675; JSF:JAVADOC:1684 - * @test_Strategy: Confirm the default value is true, then ensure that to - * proper value is returned by isGroupingUsed() when - * setGroupingUsed() has been called. - */ - public void numConverterIsSetGroupingUsedTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterIsSetGroupingUsedTest"); - invoke(); - } - - /** - * @testName: numConverterIsSetIntegerOnlyTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1676; JSF:JAVADOC:1685 - * @test_Strategy: Confirm the default value is false, then ensure that to - * proper value is returned by isIntegerOnly() when - * setIntegerOnly() has been called. - */ - public void numConverterIsSetIntegerOnlyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterIsSetIntegerOnlyTest"); - invoke(); - } - - /** - * @testName: numConverterIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1677; JSF:JAVADOC:1692 - * @test_Strategy: Ensure that isTransient() returns the expected values after - * setTransient() has been called. - */ - public void numConverterIsSetTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterIsSetTransientTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectNullZeroLengthTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1659 - * @test_Strategy: Ensure null is returned if the input value is null or a - * zero-length String, null is returned. - */ - public void numConverterGetAsObjectNullZeroLengthTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "numConverterGetAsObjectNullZeroLengthTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectLocaleTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1667; JSF:JAVADOC:1659 - * @test_Strategy: Ensure getAsObject() picks up the Locale from the - * appropriate locations and uses it to create its value. - */ - public void numConverterGetAsObjectLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsObjectLocaleTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectPatternTest - * @assertion_ids: JSF:JAVADOC:1659; JSF:JAVADOC:1679; JSF:JAVADOC:1672 - * @test_Strategy: Ensure the specified pattern is used when creating the - * return value of getAsObject(). - */ - public void numConverterGetAsObjectPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsObjectPatternTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectTypeTest - * @assertion_ids: JSF:JAVADOC:1659; JSF:JAVADOC:1679; JSF:JAVADOC:1673 - * @test_Strategy: Ensure the different specifications of type impact the - * result of getAsObject(). - */ - public void numConverterGetAsObjectTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsObjectTypeTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectParseIntOnlyTest - * @assertion_ids: JSF:JAVADOC:1659; JSF:JAVADOC:1679; JSF:JAVADOC:1676 - * @test_Strategy: Ensure that getAsObject() only parsed Integer values when - * this is set. - */ - public void numConverterGetAsObjectParseIntOnlyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsObjectParseIntOnlyTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringNullZeroLengthTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662 - * @test_Strategy: Ensure a zero-length String is returned by getAsString() - * when the value to be converted is either null or a - * zero-length String. - */ - public void numConverterGetAsStringNullZeroLengthTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "numConverterGetAsStringNullZeroLengthTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringStringInputTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1674 - * @test_Strategy: Ensure getAsString() can properly handle input values of - * type String. - */ - public void numConverterGetAsStringStringInputTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringStringInputTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringLocaleTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1667 - * @test_Strategy: Ensure getAsString() uses the locale from the approriate - * location when creating the return value. - */ - public void numConverterGetAsStringLocaleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringLocaleTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringPatternTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1672 - * @test_Strategy: Ensure a specified pattern is used to create the result if - * getAsString(). - */ - public void numConverterGetAsStringPatternTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringPatternTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringTypeTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1673 - * @test_Strategy: Ensure the specification of different types results in the - * expected result from getAsString(). - */ - public void numConverterGetAsStringTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringTypeTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringGroupingTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1675 - * @test_Strategy: Ensure that the expected result is returned when grouping - * is enabled or disabled. - */ - public void numConverterGetAsStringGroupingTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringGroupingTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringMinMaxIntegerTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1669; - * JSF:JAVADOC:1671 - * @test_Strategy: Ensure that the expected result is returned when a max or - * min integer is specified. - */ - public void numConverterGetAsStringMinMaxIntegerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringMinMaxIntegerTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringMinMaxFractionTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1668; - * JSF:JAVADOC:1670 - * @test_Strategy: Ensure that the expected result is returned when a max or - * min fractional is specified. - */ - public void numConverterGetAsStringMinMaxFractionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "numConverterGetAsStringMinMaxFractionTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringCurrencySymbolTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1683 - * @test_Strategy: Ensure that the expected result is returned when currency - * symbol is specified. - */ - public void numConverterGetAsStringCurrencySymbolTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "numConverterGetAsStringCurrencySymbolTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringCurrencyCodeTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1682 - * @test_Strategy: Ensure that the expected result is returned when currency - * code is specified taking into account the version of the VM - * in which the test is running in. - */ - public void numConverterGetAsStringCurrencyCodeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringCurrencyCodeTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringCurrencyCodeSymbolTest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1683; - * JSF:JAVADOC:1682 - * @test_Strategy: Ensure that the expected result is returned when both - * currency code and currency symbol are specified, taking - * into account the version of the VM in which the test is - * running in. - */ - public void numConverterGetAsStringCurrencyCodeSymbolTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "numConverterGetAsStringCurrencyCodeSymbolTest"); - invoke(); - } - - /** - * @testName: numConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1661 - * @test_Strategy: Ensure an NPE is thrown if either context or component - * arguments are null. - */ - public void numConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsObjectNPETest"); - invoke(); - } - - /** - * @testName: numConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1679; JSF:JAVADOC:1662; JSF:JAVADOC:1664 - * @test_Strategy: Ensure an NPE is thrown if either context or component - * arguments are null. - */ - public void numConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "numConverterGetAsStringNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/build.xml deleted file mode 100644 index f948c44042..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.war.sun-web.xml deleted file mode 100644 index 8f5cdc5301..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_number_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.xml deleted file mode 100644 index 38b3333f5f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/numberconverter/jsf_convert_number_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_number - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.numberconverter.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/URLClient.java deleted file mode 100644 index 00c5d8837c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.offsetdatetimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_offsetdatetime_web"; - - private static final String TYPE = "offsetdatetime"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalDateTimeConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateTimeConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateTimeConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateTimeConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateTimeConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateTimeConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/build.xml deleted file mode 100644 index 082addbf0b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.war.sun-web.xml deleted file mode 100644 index 70161c028c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_offsetdatetime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.xml deleted file mode 100644 index 35f2012df7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsetdatetimeconverter/jsf_convert_offsetdatetime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_offsetdatetime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/URLClient.java deleted file mode 100644 index 83e6c049e3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.offsettimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_offsettime_web"; - - private static final String TYPE = "offsettime"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalTimeConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalTimeConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalTimeConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalTimeConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalTimeConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalTimeConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/build.xml deleted file mode 100644 index c7d1325e1f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.war.sun-web.xml deleted file mode 100644 index dcef15d891..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_offsettime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.xml deleted file mode 100644 index d7cdddcc49..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/offsettimeconverter/jsf_convert_offsettime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_offsettime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/URLClient.java deleted file mode 100644 index 1f7ef28d91..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.shortconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String TYPE = "short"; - - private static final String CONTEXT_ROOT = "/jsf_convert_short_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /** - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** Test Declarations */ - - /** - * @testName: shortConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1700; JSF:JAVADOC:1694 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void shortConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: shortConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1700; JSF:JAVADOC:1696 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void shortConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: shortConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1700; JSF:JAVADOC:1697 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void shortConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: shortConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1700; JSF:JAVADOC:1699 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void shortConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/build.xml deleted file mode 100644 index 4db0a0e7bf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.war.sun-web.xml deleted file mode 100644 index dd74c72555..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_short_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.xml deleted file mode 100644 index cf040a0feb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/shortconverter/jsf_convert_short_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_short - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/URLClient.java deleted file mode 100644 index 55d902485d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68229 2012-10-23 17:16:06Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.convert.zoneddatetimeconverter; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_convert_zoneddatetime_web"; - - private static final String TYPE = "zoneddatetime"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: LocalDateConverterGetAsObjectTest - * @assertion_ids: JSF:JAVADOC:1574; JSF:JAVADOC:1539; JSF:JAVADOC:1540 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateConverterGetAsObjectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsObjectNPETest - * @assertion_ids: JSF:JAVADOC:1577; JSF:JAVADOC:1539; JSF:JAVADOC:1542 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateConverterGetAsObjectNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsObjectNPETest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsStringTest - * @assertion_ids: JSF:JAVADOC:1579; JSF:JAVADOC:1539; JSF:JAVADOC:1543 - * @test_Strategy: Ensure the proper result is returned when passing in a - * valid value, null, or a zero-length String. - */ - public void LocalDateConverterGetAsStringTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringTest&type=" + TYPE); - invoke(); - } - - /** - * @testName: LocalDateConverterGetAsStringNPETest - * @assertion_ids: JSF:JAVADOC:1539; JSF:JAVADOC:1545 - * @test_Strategy: Ensure an NPE is thrown if either the context or component - * parameters are null. - */ - public void LocalDateConverterGetAsStringNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "converterGetAsStringNPETest&type=" + TYPE); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/build.xml deleted file mode 100644 index f38b1c95f6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.war.sun-web.xml deleted file mode 100644 index c65454c62c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_convert_zoneddatetime_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.xml deleted file mode 100644 index 3ab2ffe1c3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/convert/zoneddatetimeconverter/jsf_convert_zoneddatetime_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_convert_zoneddatetime - - tckattribute - tckValue - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.convert.common.BaseConverterTestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/build.xml deleted file mode 100644 index a0be0d20a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/BaseELExceptionTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/BaseELExceptionTestServlet.java deleted file mode 100644 index aa0e4904ab..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/BaseELExceptionTestServlet.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.el.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.lang.reflect.Constructor; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FacesException; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseELExceptionTestServlet extends HttpTCKServlet { - - private static final String EXCEPTION_MESSAGE = "exception message"; - - private Class exceptionClass; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods ---- - - public void noArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Constructor ctor; - try { - ctor = exceptionClass.getDeclaredConstructor(null); - } catch (NoSuchMethodException nsme) { - out.println(JSFTestUtil.FAIL + " Unable to locate no-arg ctor" - + " for Exception class: " + exceptionClass.getName()); - out.println(nsme); - return; - } - - try { - ctor.newInstance(null); - } catch (Exception e) { - out.println("Unable to create instance of Exception class '" - + exceptionClass.getName() + "' using no-arg ctor."); - out.println(e.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void messageArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Constructor ctor; - try { - ctor = exceptionClass - .getDeclaredConstructor(new Class[] { String.class }); - } catch (NoSuchMethodException nsme) { - out.println(JSFTestUtil.FAIL + " Unable to located message arg ctor" - + " for Exception class: " + exceptionClass.getName()); - out.println(nsme); - return; - } - - try { - FacesException fe = (FacesException) ctor - .newInstance(new Object[] { EXCEPTION_MESSAGE }); - String message = fe.getMessage().trim(); - if (!EXCEPTION_MESSAGE.equals(message)) { - out.println(JSFTestUtil.FAIL + " Unexpected message received" - + " when getMessage() was called."); - out.println("Expected: " + EXCEPTION_MESSAGE); - out.println("Received: " + message); - } - } catch (Exception e) { - out.println("Unable to create instance of Exception class '" - + exceptionClass.getName() + "' using String arg ctor."); - out.println(e.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void rootCauseArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Constructor ctor; - try { - ctor = exceptionClass - .getDeclaredConstructor(new Class[] { Throwable.class }); - } catch (NoSuchMethodException nsme) { - out.println(JSFTestUtil.FAIL + " Unable to located root cause arg ctor" - + " for Exception class: " + exceptionClass.getName()); - out.println(nsme); - return; - } - - try { - ServletException se = new ServletException(); - FacesException fe = (FacesException) ctor - .newInstance(new Object[] { se }); - Throwable t = fe.getCause(); - if (!se.equals(t)) { - out.println("Unexpected exception type received when calling" - + " getCause on newly created instance."); - out.println("Received: " + t.getClass().getName()); - } - } catch (Exception e) { - out.println("Unable to create instance of Exception class '" - + exceptionClass.getName() + "' using Throwable" + " arg ctor."); - out.println(e.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void rootCauseMessageArgsCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Constructor ctor; - try { - ctor = exceptionClass.getDeclaredConstructor( - new Class[] { String.class, Throwable.class }); - } catch (NoSuchMethodException nsme) { - out.println(JSFTestUtil.FAIL + " Unable to located message/root cause " - + "arg ctor for Exception class: " + exceptionClass.getName()); - out.println(nsme); - return; - } - - try { - FacesException fe = (FacesException) ctor.newInstance( - new Object[] { EXCEPTION_MESSAGE, new ServletException() }); - - String message = fe.getMessage().trim(); - if (!EXCEPTION_MESSAGE.equals(message)) { - out.println(JSFTestUtil.FAIL + " Unexpected message received" - + " when getMessage() was called."); - out.println("Expected: " + EXCEPTION_MESSAGE); - out.println("Received: " + message); - } - - ServletException se = new ServletException(); - Throwable t = fe.getCause(); - if (!se.equals(t)) { - out.println("Unexpected exception type received when calling" - + " getCause on newly created instance."); - out.println("Received: " + t.getClass().getName()); - } - } catch (Exception e) { - out.println("Unable to create instance of Exception class '" - + exceptionClass.getName() + "' using " - + "String/Throwable arg ctor."); - out.println(e.toString()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ------------------------------------------- Protected Methods - // --------------- - - protected void setExceptionClass(Class exceptionClass) { - this.exceptionClass = exceptionClass; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/TestBean.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/TestBean.java deleted file mode 100644 index 3fba7a6488..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/TestBean.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.el.common; - -public class TestBean { - - // Read-only property - Integer readOnly = Integer.valueOf(1); - - // Read/Write property - boolean writable = true; - - boolean onlyWritable = false; - - public Integer getReadOnly() { - return readOnly; - } - - public void setWritable(boolean writable) { - this.writable = writable; - } - - public boolean getWritable() { - return writable; - } - - public void setOnlyWritable(boolean onlyWritable) { - this.onlyWritable = onlyWritable; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/el.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/el.common.xml deleted file mode 100644 index 88df0ea8c3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/el/common/el.common.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/TestServlet.java deleted file mode 100644 index 989d13f8c4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/TestServlet.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.abortprocessingexception; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void abortProcessingExceptionNoArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // No-Arg constructor test - try { - throw new AbortProcessingException(); - - } catch (AbortProcessingException ape) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected Exception thrownl"); - e.printStackTrace(); - } - } - - public void abortProcessingExceptionCtor01Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // constructor that takes a message as an argument test - String message = "Test Message"; - AbortProcessingException ape = new AbortProcessingException(message); - - if (!message.equals(ape.getMessage())) { - pw.println(JSFTestUtil.FAIL - + ": AbortProcessingException() did not return the correct " - + "message" + JSFTestUtil.NL + "Expected: " + message + JSFTestUtil.NL - + "Recieved: " + ape.getMessage()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - public void abortProcessingExceptionCtor02Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // constructor that takes Throwable as an argument test - String message = "Test Message"; - Throwable cause = new Throwable(message); - AbortProcessingException ape = new AbortProcessingException(cause); - - if (!(cause.equals(ape.getCause()))) { - pw.println(JSFTestUtil.FAIL - + ": AbortProcessingException() did not return the correct cause"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - public void abortProcessingExceptionCtor03Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // constructor that takes Throwable and a message as an argument test - String message = "Test Message"; - Throwable cause = new Throwable(message); - AbortProcessingException ape = new AbortProcessingException(message, cause); - - if ((!(message.equals(ape.getMessage()))) - && (!(cause.equals(ape.getCause())))) { - - pw.println( - JSFTestUtil.FAIL + ": AbortProcessingException() did not return the " - + "correct cause or message"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/URLClient.java deleted file mode 100644 index e12794ec4b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/URLClient.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.abortprocessingexception; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_abortprocessingexception_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: abortProcessingExceptionNoArgCtorTest - * @assertion_ids: JSF:JAVADOC:1774 - * @test_Strategy: Verify AbortProcessingException no-arg ctor. - */ - public void abortProcessingExceptionNoArgCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "abortProcessingExceptionNoArgCtorTest"); - invoke(); - } - - /** - * @testName: abortProcessingExceptionCtor01Test - * @assertion_ids: JSF:JAVADOC:1775 - * @test_Strategy: Verify an AbortProcessingException can be created passing a - * message argument and that the message can be obtained via - * getMessage(). - */ - public void abortProcessingExceptionCtor01Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "abortProcessingExceptionCtor01Test"); - invoke(); - } - - /** - * @testName: abortProcessingExceptionCtor02Test - * @assertion_ids: JSF:JAVADOC:1776 - * @test_Strategy: Verify an AbortProcessingException can be created passing a - * message and root cause exception and that the message can - * be obtained via getMessage() and the root cause can be - * obtained by getCause(). - */ - public void abortProcessingExceptionCtor02Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "abortProcessingExceptionCtor02Test"); - invoke(); - } - - /** - * @testName: abortProcessingExceptionCtor03Test - * @assertion_ids: JSF:JAVADOC:1777 - * @test_Strategy: Verify an AbortProcessingException can be created passing a - * root cause Exception and that the exception can be obtained - * by calling getCause(). - */ - public void abortProcessingExceptionCtor03Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "abortProcessingExceptionCtor03Test"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/build.xml deleted file mode 100644 index 144755c2b0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.war.sun-web.xml deleted file mode 100644 index cf0b8ff7ee..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_abortprocessingexception_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.xml deleted file mode 100644 index bc8266c1ca..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/abortprocessingexception/jsf_event_abortprocessingexception_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_abortprocessingexception - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.abortprocessingexception.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/TestServlet.java deleted file mode 100644 index 8625d80b5b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/TestServlet.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.actionevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void actionEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - new ActionEvent(new UICommand()); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + ": Unexpected Exception thrown."); - e.printStackTrace(); - } - } - - public void actionEventCtorIllegalArgumentExceptionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new ActionEvent(null); - pw.println(JSFTestUtil.FAIL + " The constructor of ActionEvent should " - + "have thrown an IllegalArgumentException when provided a " - + "null component. No Exception was thrown."); - - } catch (IllegalArgumentException iae) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + ": Exception thrown, but was not an " - + "instance of IllegalArgumentException."); - e.printStackTrace(); - } - } - - public void actionEventGetComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = new UICommand(); - ActionEvent ae = new ActionEvent(uic); - if (uic.equals(ae.getComponent())) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.getComponent() didn't " - + "return the same UIComponent provided to its constructor."); - } - } - - public void actionEventIsApproiateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is true if ActionListener is passed as - // a parameter to isAppropriateListener. - UIComponent uic = new UICommand(); - FacesListener testListener = new TestActionListener(); - ActionEvent ae = new ActionEvent(uic); - if (ae.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.isAppropriateListener" - + " did not return true when ActionListener was passed in " - + "as a parameter"); - } - } - - public void actionEventIsApproiateListenerNegativeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is false if valuechangeListener is passed as - // a parameter to isAppropriateListener. - UIComponent uic = new UICommand(); - FacesListener testListener = new TestValueChangeListener(); - ActionEvent ae = new ActionEvent(uic); - if (!(ae.isAppropriateListener(testListener))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.isAppropriateListener" - + " did not return false when ValueChangeListener was " - + "passed in as a parameter"); - } - } - - public void actionEventProcessListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the ActionListener.processAction() is called from - // ActionEvent.processListener. - UIComponent uic = new UICommand(); - TestActionListener testListener = new TestActionListener(); - ActionEvent ae = new ActionEvent(uic); - ae.processListener(testListener); - - if (("success".equals(testListener.getActionString()))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.processListener" - + " did not invoke processAction on the input listener. "); - } - } - - private static class TestActionListener implements ActionListener { - - String action = null; - - public TestActionListener() { - super(); - } - - public void processAction(ActionEvent event) { - action = "success"; - System.out.println("Processed Action"); - } - - public String getActionString() { - return action; - } - } - - private static class TestValueChangeListener implements ValueChangeListener { - - public TestValueChangeListener() { - super(); - } - - public void processValueChange(ValueChangeEvent event) { - System.out.println("Processed Value Change"); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/URLClient.java deleted file mode 100644 index 20bb2c800c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/URLClient.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.actionevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_actionevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: actionEventCtorTest - * @assertion_ids: JSF:JAVADOC:1778 - * @test_Strategy: Ensure an ActionEvent can be created by passing a valid - * UIComponent. - */ - public void actionEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionEventCtorTest"); - invoke(); - } - - /** - * @testName: actionEventCtorIllegalArgumentExceptionTest - * @assertion_ids: JSF:JAVADOC:1778 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the ActionEvent constructor. - */ - public void actionEventCtorIllegalArgumentExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "actionEventCtorIllegalArgumentExceptionTest"); - invoke(); - } - - /** - * @testName: actionEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1778 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * ActionEvent constructor. - */ - public void actionEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionEventGetComponentTest"); - invoke(); - } - - /** - * @testName: actionEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1779; JSF:JAVADOC:1812 - * @test_Strategy: Ensure isAppropriateListener() returns true if an - * ActionListener is passed. - */ - public void actionEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "actionEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: actionEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1779; JSF:JAVADOC:1783 - * @test_Strategy: Ensure isAppropriateListener() returns false if a non- - * ActionListener is passed. - */ - public void actionEventIsApproiateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "actionEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: actionEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1780; JSF:JAVADOC:1813; JSF:JAVADOC:1782 - * @test_Strategy: Ensure calling ActionEvent.processListener() calls through - * to ActionListener.processAction(). - */ - public void actionEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "actionEventProcessListenerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/build.xml deleted file mode 100644 index 053a1700e5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.war.sun-web.xml deleted file mode 100644 index 47897c4460..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_actionevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.xml deleted file mode 100644 index 22b4a86750..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/actionevent/jsf_event_actionevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_actionevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.actionevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/TestServlet.java deleted file mode 100644 index 8029503a88..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/TestServlet.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.ajaxbehaviorevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseBehaviorEventTestServlet; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.behavior.AjaxBehavior; -import jakarta.faces.component.behavior.Behavior; -import jakarta.faces.event.AjaxBehaviorEvent; -import jakarta.faces.event.BehaviorEvent; - -public class TestServlet extends BaseBehaviorEventTestServlet { - - private static final UICommand uic = new UICommand(); - - private static final Behavior behavior = new AjaxBehavior(); - - @Override - protected BehaviorEvent createEvent(UIComponent component, - Behavior behavior) { - return new AjaxBehaviorEvent(component, behavior); - } - - @Override - protected Behavior getTestBehavior() { - return behavior; - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - - // ------------------------------------------------------------- test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/URLClient.java deleted file mode 100644 index d006349a1f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/URLClient.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.ajaxbehaviorevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_ajaxbehaviorevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ------------------------------------------------------------ - // BahaviorEvent - /** - * @testName: behaviorEventCtorTest - * @assertion_ids: JSF:JAVADOC:1784; JSF:JAVADOC:1790 - * @test_Strategy: Ensure an AjaxBehaviorEvent can be created by passing a - * valid UIComponent. - */ - public void behaviorEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventCtorTest"); - invoke(); - } - - /** - * @testName: behaviorEventIAETest - * @assertion_ids: JSF:JAVADOC:1784 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a null is - * passed for either the component or behavior args to the - * AjaxBehaviorEvent constructor. - */ - public void behaviorEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventIAETest"); - invoke(); - } - - /** - * @testName: behaviorEventGetBehaviorTest - * @assertion_ids: JSF:JAVADOC:1784; JSF:JAVADOC:1791 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * AjaxBehaviorEvent constructor. - */ - public void behaviorEventGetBehaviorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventGetBehaviorTest"); - invoke(); - } - - /** - * @testName: behaviorEventIsApproiateListenerPosTest - * @assertion_ids: JSF:JAVADOC:1785; JSF:JAVADOC:1812 - * @test_Strategy: Ensure isAppropriateListener() returns true if an - * BehaviorListener is passed. - */ - public void behaviorEventIsApproiateListenerPosTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventIsApproiateListenerPosTest"); - invoke(); - } - - /** - * @testName: behaviorEventIsApproiateListenerNegTest - * @assertion_ids: JSF:JAVADOC:1785 - * @test_Strategy: Ensure isAppropriateListener() returns false if a non- - * BehaviorListener is passed. - */ - public void behaviorEventIsApproiateListenerNegTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventIsApproiateListenerNegTest"); - invoke(); - } - - /** - * @testName: behaviorEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1788; JSF:JAVADOC:1813; JSF:JAVADOC:1786 - * @test_Strategy: Ensure calling behaviorEvent.processListener() calls - * through to BehaviorListener. - */ - public void behaviorEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "behaviorEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/build.xml deleted file mode 100644 index 567fcfd12e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.war.sun-web.xml deleted file mode 100644 index 8914c0115b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_ajaxbehaviorevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.xml deleted file mode 100644 index 3026e636f6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/ajaxbehaviorevent/jsf_event_ajaxbehaviorevent_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_event_ajaxbehaviorevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.ajaxbehaviorevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/build.xml deleted file mode 100644 index a0be0d20a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseBehaviorEventTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseBehaviorEventTestServlet.java deleted file mode 100644 index f628fe8ee9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseBehaviorEventTestServlet.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.behavior.Behavior; -import jakarta.faces.event.BehaviorEvent; -import jakarta.faces.event.FacesListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseBehaviorEventTestServlet extends HttpTCKServlet { - - private BehaviorEvent be = null; - - private String eventName = null; - - // --------------------------------------------------------- abstract methods - /** - *

- * Creates a new {@link BehaviorEvent} instance. - *

- * - * @return a new {@link BehaviorEvent} instance. - */ - protected abstract BehaviorEvent createEvent(UIComponent component, - Behavior behavior); - - /** - *

- * Creates a new {@link Behavior} instance. - *

- * - * @return a new {@link Behavior} instance. - */ - protected abstract Behavior getTestBehavior(); - - /** - *

- * Creates a new {@link UIcomponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected abstract UIComponent getTestComponent(); - - // ---------------------------------------------------------- private methods - private void setupEvent() { - be = createEvent(getTestComponent(), getTestBehavior()); - eventName = be.getClass().getName(); - } - - // ------------------------------------------------------------- test methods - public void behaviorEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - if (be == null) { - pw.println("Test FAILED. " + eventName + "(UIComponent, Behavior) " - + "returned null"); - } else { - pw.println(JSFTestUtil.PASS); - } - }// -- End behaviorEventCtorTest - - public void behaviorEventIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String pass = "no"; - // UIComponent null - try { - createEvent(null, getTestBehavior()); - pw.println(JSFTestUtil.FAIL + " The constructor for " + eventName - + " should have thrown an IllegalArgumentException when " - + "provided a null UIComponent. No Exception was thrown."); - } catch (IllegalArgumentException iae) { - pass = "yes"; - - } catch (Exception e) { - pw.println("Test FAILED. Wrong exception thrown!" + JSFTestUtil.NL - + "Expected: IllegalArgumentException"); - e.printStackTrace(); - } - - // Behavior null - try { - createEvent(this.getTestComponent(), null); - pw.println(JSFTestUtil.FAIL + " The constructor for " + eventName - + " should have thrown an IllegalArgumentException when " - + "provided a null behavior. No Exception was thrown."); - } catch (IllegalArgumentException iae) { - pass = pass + "yes"; - - } catch (Exception e) { - pw.println("Test FAILED. Wrong exception thrown!" + JSFTestUtil.NL - + "Expected: IllegalArgumentException"); - e.printStackTrace(); - } - - if ("yesyes".equals(pass)) { - pw.println("Test PASSED."); - } - }// -- End behaviorEventIAETest - - public void behaviorEventGetBehaviorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - Behavior exp = getTestBehavior(); - Behavior result = be.getBehavior(); - if (!exp.equals(result)) { - pw.println("Test FAILED. Unexpected result when calling " + eventName - + ".getBehavior()." + JSFTestUtil.NL + "Expected: " + exp - + JSFTestUtil.NL + "Received: " + result); - } else { - pw.println(JSFTestUtil.PASS); - } - }// -- End behaviorEventGetBehaviorTest - - public void behaviorEventIsApproiateListenerPosTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is true if BahaviorListener is - // passed as a parameter to isAppropriateListener. - - FacesListener testListener = new TestAjaxBehaviorListener(); - - this.setupEvent(); - - if (be.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when BehaviorListener was passed in " - + "as a parameter"); - } - } - - public void behaviorEventIsApproiateListenerNegTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is false if valuechangeListener is passed - // as a parameter to isAppropriateListener. - - FacesListener testListener = new TestValueChangeListener(); - - this.setupEvent(); - - if (!(be.isAppropriateListener(testListener))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return false when ValueChangeListener was " - + "passed in as a parameter"); - } - } - - public void behaviorEventProcessListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // make sure the SystemEventListener.processAction() is called from - // ActionEvent.processListener. - - TestAjaxBehaviorListener testListener = new TestAjaxBehaviorListener(); - - this.setupEvent(); - - be.processListener(testListener); - if ((testListener.getActionString()).equals("success")) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " FacesEvent.processListener" - + " did not invoke processAction on the input listener. "); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseComponentSystemEventTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseComponentSystemEventTestServlet.java deleted file mode 100644 index 6b686d51ca..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseComponentSystemEventTestServlet.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.ComponentSystemEventListener; -import jakarta.faces.event.FacesListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - * This class mirrors "jakarta.faces.event.ComponentSystemEvent" - * - */ -public abstract class BaseComponentSystemEventTestServlet - extends HttpTCKServlet { - - private ComponentSystemEvent cse = null; - - private String eventName = null; - - private UIComponent uic = null; - - // --------------------------------------------------------- abstract methods - - /** - *

- * Creates a new {@link ComponentSystemEvent} instance. - *

- * - * @return a new {@link ComponentSystemEvent} instance. - */ - protected abstract ComponentSystemEvent createEvent(UIComponent component); - - /** - *

- * Creates a new {@link UIcomponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected abstract UIComponent getTestComponent(); - - // ---------------------------------------------------------- private methods - - private void setupEvent() { - uic = getTestComponent(); - cse = createEvent(uic); - eventName = cse.getClass().getName(); - } - - // ------------------------------------------------------------- test methods - - public void componentSystemEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - if (cse == null) { - pw.println( - JSFTestUtil.FAIL + eventName + "(UIComponent) " + "returned null"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - public void componentSystemEventIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - createEvent(null); - pw.println(JSFTestUtil.FAIL + " The constructor for " + eventName - + " should have thrown an IllegalArgumentException when " - + "provided a null component. No Exception was thrown."); - - } catch (IllegalArgumentException iae) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + ": Wrong exception thrown!" + JSFTestUtil.NL - + "Expected: IllegalArgumentException"); - e.printStackTrace(); - } - } - - public void componentSystemEventGetComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - if (uic.equals(cse.getComponent())) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".getComponent() " - + "didn't return the same UIComponent provided to its " - + "constructor!" + JSFTestUtil.NL + "Expected: " - + uic.getClass().getName() + JSFTestUtil.NL + "Received: " - + cse.getComponent().getClass().getName()); - } - } - - public void componentSystemEventIsApproiateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is true if ComponentSystemEventListener is - // passed as a parameter to isAppropriateListener. - - ComponentSystemEventListener testListener = new TCKComponentSystemEventListener(); - - this.setupEvent(); - - if (cse.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when ComponentSystemEventListener was passed in " - + "as a parameter"); - } - } - - public void componentSystemEventIsApproiateListenerNegativeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is false if valuechangeListener is passed - // as a parameter to isAppropriateListener. - - FacesListener testListener = new TestValueChangeListener(); - - this.setupEvent(); - - if (!(cse.isAppropriateListener(testListener))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return false when ValueChangeListener was " - + "passed in as a parameter"); - } - } - - public void componentSystemEventProcessListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // make sure the SystemEventListener.processAction() is called from - // ActionEvent.processListener. - - TCKComponentSystemEventListener testListener = new TCKComponentSystemEventListener(); - - this.setupEvent(); - - cse.processListener(testListener); - if ((testListener.getActionString()).equals("success")) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.processListener" - + " did not invoke processAction on the input listener. "); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseEventClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseEventClient.java deleted file mode 100644 index c34b631470..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseEventClient.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public abstract class BaseEventClient extends AbstractUrlClient { - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ------------------------------------------ Test Declarations - // ------------------------------------------- SystemEvent Tests - - /* - * testName: systemEventIsAppropriateListenerPostiveTest - * - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "systemEventIsAppropriateListenerPostiveTest"); - invoke(); - } - - /* - * testName: systemEventIsAppropriateListenerNegativeTest - * - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "systemEventIsAppropriateListenerNegativeTest"); - invoke(); - } - - /* - * testName: systemEventProcessListenerTest - * - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void systemEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "systemEventProcessListenerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseExceptionQueuedEventTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseExceptionQueuedEventTestServlet.java deleted file mode 100644 index 2144ac0db6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseExceptionQueuedEventTestServlet.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.event.ExceptionQueuedEvent; -import jakarta.faces.event.ExceptionQueuedEventContext; -import jakarta.faces.event.FacesListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseExceptionQueuedEventTestServlet - extends HttpTCKServlet { - - private ExceptionQueuedEventContext eqeContext; - - private ExceptionQueuedEvent eqe = null; - - private String eventName = null; - - // --------------------------------------------------------- abstract methods - /** - *

- * Creates a new {@link ExceptionQueuedEvent} instance. - *

- * - * @return a new {@link ExceptionQueuedEvent} instance. - */ - protected abstract ExceptionQueuedEvent createEvent( - ExceptionQueuedEventContext exceptionqueuedeventcontext); - - /** - *

- * Creates a new {@link ExceptionQueuedEvent} instance. - *

- * - * @return a new {@link ExceptionQueuedEventContext} instance. - */ - protected abstract ExceptionQueuedEventContext getExceptionQueuedEventContext(); - - // ---------------------------------------------------------- private methods - private void setupEvent() { - - eqeContext = getExceptionQueuedEventContext(); - eqe = createEvent(eqeContext); - eventName = eqe.getClass().getName(); - } - - // ------------------------------------------------------------ tests methods - public void exceptionQueuedEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - if (eqe == null) { - pw.println(JSFTestUtil.FAIL + eventName - + "(ExceptionQueuedEventContext) returned null"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - public void exceptionQueuedEventGetContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - if (eqeContext.equals(eqe.getContext())) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".getContext() " - + "didn't return the same UIComponent provided to its " - + "constructor!" + JSFTestUtil.NL + "Expected: " - + eqeContext.getClass().getName() + JSFTestUtil.NL + "Received: " - + eqe.getContext().getClass().getName()); - } - } - - public void exceptionQueuedEventIsApproiateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is true if SystemEventListener is - // passed as a parameter to isAppropriateListener. - - FacesListener testListener = new TestSystemEventListener(); - - this.setupEvent(); - - if (eqe.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when ActionListener was passed in " - + "as a parameter"); - } - } - - public void exceptionQueuedEventIsApproiateListenerNegativeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is false if valuechangeListener is passed - // as a parameter to isAppropriateListener. - - FacesListener testListener = new TestValueChangeListener(); - - this.setupEvent(); - - if (!(eqe.isAppropriateListener(testListener))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return false when ValueChangeListener was " - + "passed in as a parameter"); - } - } - - public void exceptionQueuedEventProcessListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // make sure the SystemEventListener.processAction() is called from - // ActionEvent.processListener. - - TestSystemEventListener testListener = new TestSystemEventListener(); - - this.setupEvent(); - - eqe.processListener(testListener); - if ((testListener.getActionString()).equals("success")) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ExceptionQueuedEvent.processListener" - + " did not invoke processAction on the input listener. "); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseSystemEventTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseSystemEventTestServlet.java deleted file mode 100644 index 21d35bc32a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/BaseSystemEventTestServlet.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - * This class mirrors "jakarta.faces.event.SystemEvent" - * - */ -public abstract class BaseSystemEventTestServlet extends HttpTCKServlet { - - private Application app; - - private SystemEvent se = null; - - private String eventName = null; - - // --------------------------------------------------------- abstract methods - /** - *

- * Creates a new {@link SystemEvent} instance. - *

- * - * @return a new {@link SystemEvent} instance. - */ - protected abstract SystemEvent createEvent(Object src); - - // ---------------------------------------------------------- private methods - private void setupEvent() { - app = getFacesContext().getApplication(); - se = createEvent(app); - eventName = se.getClass().getName(); - } - - // ------------------------------------------------------------- test methods - public void systemEventIsAppropriateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is true if SystemEventListener is - // passed as a parameter to isAppropriateListener. - - FacesListener testListener = new TestSystemEventListener(); - - this.setupEvent(); - - if (se.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when ActionListener was passed in " - + "as a parameter"); - } - } - - public void systemEventIsAppropriateListenerNegativeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - // make sure the return value is false if valuechangeListener is passed - // as a parameter to isAppropriateListener. - - FacesListener testListener = new TestValueChangeListener(); - - this.setupEvent(); - - if (!(se.isAppropriateListener(testListener))) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return false when ValueChangeListener was " - + "passed in as a parameter"); - } - } - - public void systemEventProcessListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - // make sure the SystemEventListener.processAction() is called from - // ActionEvent.processListener. - - TestSystemEventListener testListener = new TestSystemEventListener(); - - this.setupEvent(); - - se.processListener(testListener); - if ((testListener.getActionString()).equals("success")) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ActionEvent.processListener" - + " did not invoke processAction on the input listener. "); - } - } - -}// End BaseSystemEventTestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TCKComponentSystemEventListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TCKComponentSystemEventListener.java deleted file mode 100644 index 62c0d54bca..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TCKComponentSystemEventListener.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.ComponentSystemEventListener; - -public class TCKComponentSystemEventListener - implements ComponentSystemEventListener { - - private String action = null; - - @Override - public void processEvent(ComponentSystemEvent event) - throws AbortProcessingException { - action = "success"; - System.out.println("Processed Action"); - - } - - public String getActionString() { - return action; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestAjaxBehaviorListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestAjaxBehaviorListener.java deleted file mode 100644 index a98f7e911e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestAjaxBehaviorListener.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import jakarta.faces.event.AjaxBehaviorEvent; -import jakarta.faces.event.AjaxBehaviorListener; - -public class TestAjaxBehaviorListener implements AjaxBehaviorListener { - - private String action = null; - - public String getActionString() { - return action; - } - - @Override - public void processAjaxBehavior(AjaxBehaviorEvent arg0) { - action = "success"; - System.out.println("Processed Action"); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestSystemEventListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestSystemEventListener.java deleted file mode 100644 index a46223e95b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestSystemEventListener.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListener; - -public class TestSystemEventListener implements SystemEventListener { - - private String action = null; - - @Override - public void processEvent(SystemEvent arg0) throws AbortProcessingException { - action = "success"; - System.out.println("Processed Action"); - } - - @Override - public boolean isListenerForSource(Object arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - - public String getActionString() { - return action; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestValueChangeListener.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestValueChangeListener.java deleted file mode 100644 index d804a48bbd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/TestValueChangeListener.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.common; - -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; - -public class TestValueChangeListener implements ValueChangeListener { - - public TestValueChangeListener() { - super(); - } - - @Override - public void processValueChange(ValueChangeEvent event) { - System.out.println("Processed Value Change"); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/event.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/event.common.xml deleted file mode 100644 index 05798bfaa5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/common/event.common.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/TestServlet.java deleted file mode 100644 index 8ddc4fd9da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/TestServlet.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseExceptionQueuedEventTestServlet; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.ExceptionQueuedEvent; -import jakarta.faces.event.ExceptionQueuedEventContext; - -public class TestServlet extends BaseExceptionQueuedEventTestServlet { - - private FacesContext fcontext; - - @Override - protected ExceptionQueuedEvent createEvent(ExceptionQueuedEventContext eqec) { - return new ExceptionQueuedEvent(eqec); - } - - @Override - protected ExceptionQueuedEventContext getExceptionQueuedEventContext() { - fcontext = getFacesContext(); - ExceptionQueuedEventContext eqec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException()); - - return eqec; - } - - // ------------------------------------------------------------- test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/URLClient.java deleted file mode 100644 index abfda4c017..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/URLClient.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_exceptionqueuedevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: exceptionQueuedEventCtorTest - * @assertion_ids: JSF:JAVADOC:1796 - * @test_Strategy: Ensure Instantiate a new ExceptionQueuedEvent. - * - * @since 2.0 - */ - public void exceptionQueuedEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventCtorTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventGetContextTest - * @assertion_ids: JSF:JAVADOC:1797 - * @test_Strategy: Ensure getContext() returns the - * ExceptionQueuedEventContext. - * - * @since 2.0 - */ - public void exceptionQueuedEventGetContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventGetContextTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1796 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void exceptionQueuedEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1796 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void exceptionQueuedEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1799; JSF:JAVADOC:1800 - * @test_Strategy: Ensure calling ExceptionQueuedEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void exceptionQueuedEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/build.xml deleted file mode 100644 index 66b9d647a7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.war.sun-web.xml deleted file mode 100644 index 61ab91eb53..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_exceptionqueuedevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.xml deleted file mode 100644 index eb5f93620b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedevent/jsf_event_exceptionqueuedevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_exceptionqueuedevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/TestServlet.java deleted file mode 100644 index 1112f4464a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/TestServlet.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedeventcontext; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIMessage; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.ExceptionQueuedEventContext; -import jakarta.faces.event.PhaseId; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private FacesContext fcontext; - - private UIComponent uic = null; - - private PhaseId pid; - - // --------------------------------------------------------- private methods - private void setupEvent() { - fcontext = getFacesContext(); - uic = new UIMessage(); - pid = PhaseId.ANY_PHASE; - } - - // ------------------------------------------------------------- test - // methods - - // public ExceptionQueuedEventContext(FacesContext context, Throwable - // thrown) - public void exceptionQueuedEventContextCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - try { - new ExceptionQueuedEventContext(fcontext, new IllegalArgumentException()); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " Exception Thrown! when calling: " - + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext, Throwable)"); - e.printStackTrace(); - } - - } // End exceptionQueuedEventContextCtorTest - - // ExceptionQueuedEventContext(FacesContext , Throwable, UIComponent ) - public void exceptionQueuedEventContextCtorOneTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - try { - new ExceptionQueuedEventContext(fcontext, new IllegalArgumentException(), - uic); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " Exception Thrown! when calling: " - + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext, Throwable, UIComponent)"); - e.printStackTrace(); - } - - } // End exceptionQueuedEventContextCtorOneTest - - // ExceptionQueuedEventContext(FacesContext, Throwable,UIComponent, PhaseId) - public void exceptionQueuedEventContextCtorTwoTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - try { - new ExceptionQueuedEventContext(fcontext, new IllegalArgumentException(), - uic, pid); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " Exception Thrown! when calling: " - + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext, Throwable, UIComponent, PhaseId)"); - e.printStackTrace(); - } - - } // End exceptionQueuedEventContextCtorTwoTest - - // public ExceptionQueuedEventContext.getAttributes() - public void exceptionQueuedEventContextgetAttributesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException()); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown) is null"); - } else if (!(eec.getAttributes() instanceof java.util.Map)) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: java.util.Map" - + JSFTestUtil.NL + "Recieved: " - + eec.getAttributes().getClass().getName()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getContext() - public void exceptionQueuedEventContextgetContextTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException()); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown) is null"); - } else if (eec.getContext() != fcontext) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getContext returned wrong FacesContext!"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getException() - public void exceptionQueuedEventContextgetExceptionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - IllegalArgumentException iae = new IllegalArgumentException(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - iae); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown) is null"); - } else if (eec.getException() != iae) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getContext returned wrong FacesContext!"); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getComponent() - public void exceptionQueuedEventContextgetComponentTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException(), uic); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown, UIComponent component) is null"); - } else if (eec.getComponent() != uic) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " - + uic.getClass().getName() + JSFTestUtil.NL + "Receivved: " - + eec.getComponent().getClass().getName()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getComponent() - public void exceptionQueuedEventContextgetComponentNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException()); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown, UIComponent component) is null"); - } else if (eec.getComponent() != null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected getComponent to return null" + JSFTestUtil.NL - + "Receeivved: " + eec.getComponent()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getPhaseId() - public void exceptionQueuedEventContextgetPhaseIdNullTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException(), uic); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown, UIcomponent component) is null"); - } else if (eec.getPhaseId() != null) { - pw.println(JSFTestUtil.FAIL + ": getComponent returned incorrect " - + "component!" + JSFTestUtil.NL + "Expected: null" + JSFTestUtil.NL - + "Received: " + eec.getPhaseId().toString()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } - - // public ExceptionQueuedEventContext.getPhaseId() - public void exceptionQueuedEventContextgetPhaseIdTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - this.setupEvent(); - - ExceptionQueuedEventContext eec = new ExceptionQueuedEventContext(fcontext, - new IllegalArgumentException(), uic, pid); - - if (eec == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ExceptionQueuedEventContext(FacesContext context, " - + "Throwable thrown, UIComponent component, " - + "PhaseId phaseid) is null"); - } else if (eec.getPhaseId() != pid) { - pw.println(JSFTestUtil.FAIL + ": getComponent returned incorrect " - + "component!" + JSFTestUtil.NL + "Expected: " + pid.toString() - + JSFTestUtil.NL + "Received: " + eec.getPhaseId().toString()); - } else { - pw.println(JSFTestUtil.PASS); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/URLClient.java deleted file mode 100644 index cc7a1f43ef..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/URLClient.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedeventcontext; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_exceptionqueuedeventcontext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: exceptionQueuedEventContextCtorTest - * @assertion_ids: JSF:JAVADOC:1798 - * @test_Strategy: Ensure: Instantiate a new ExceptionQueuedEventContext that - * indicates the argument Throwable just occurred. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventContextCtorTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextCtorOneTest - * @assertion_ids: JSF:JAVADOC:1797 - * @test_Strategy: Instantiate a new ExceptionQueuedEventContext that - * indicates the argument Throwable just occurred, relevant to - * the argument component. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextCtorOneTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventContextCtorOneTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextCtorTwoTest - * @assertion_ids: JSF:JAVADOC:1799 - * @test_Strategy: Instantiate a new ExceptionQueuedEventContext that - * indicates the argument Throwable just occurred, relevant to - * the argument component, during the lifecycle phase phaseId. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextCtorTwoTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "exceptionQueuedEventContextCtorTwoTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetContextTest - * @assertion_ids: JSF:JAVADOC:1803 - * @test_Strategy: Make sure that getContext returns the FacesContext used to - * create this ExceptionQueuedEventContext instance. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetContextTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetAttributesTest - * @assertion_ids: JSF:JAVADOC:1801 - * @test_Strategy: Make sure that getAttributes returns an instance of - * java.util.Map - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetAttributesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetAttributesTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetExceptionTest - * @assertion_ids: JSF:JAVADOC:1804 - * @test_Strategy: Make sure that getException returns the exception property. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetExceptionTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetComponentTest - * @assertion_ids: JSF:JAVADOC:1802 - * @test_Strategy: Make sure the returned UIComponent which was being - * processed when the exception was thrown. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetComponentTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetComponentNullTest - * @assertion_ids: JSF:JAVADOC:1802 - * @test_Strategy: Make sure the returned UIComponent which was being - * processed when the exception was thrown, If none or not - * available, this will be null.. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetComponentNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetComponentNullTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetPhaseIdTest - * @assertion_ids: JSF:JAVADOC:1806 - * @test_Strategy: Make sure that the PhaseId which was being processed when - * the exception was thrown. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetPhaseIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetPhaseIdTest"); - invoke(); - } - - /** - * @testName: exceptionQueuedEventContextgetPhaseIdNullTest - * @assertion_ids: JSF:JAVADOC:1806 - * @test_Strategy: Make sure that the PhaseId which was being processed when - * the exception was thrown. If none or not available, this - * will be null. - * - * @since 2.0 - */ - public void exceptionQueuedEventContextgetPhaseIdNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "exceptionQueuedEventContextgetPhaseIdNullTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/build.xml deleted file mode 100644 index c590cd08a8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.war.sun-web.xml deleted file mode 100644 index 31449b9480..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_exceptionqueuedeventcontext_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.xml deleted file mode 100644 index fafe0def2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/exceptionqueuedeventcontext/jsf_event_exceptionqueuedeventcontext_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_exceptionqueuedeventcontext - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.exceptionqueuedeventcontext.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/TestServlet.java deleted file mode 100644 index 7228b7974b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/TestServlet.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.facesevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIOutput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.event.FacesEvent; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.PhaseId; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void facesEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - if (uic != null) { - - FacesEvent fe = new TCKFacesEvent(uic); - if (fe == null) { - pw.println( - JSFTestUtil.FAIL + ": FacesEvent(UIComponent) returned null"); - } else { - pw.println(JSFTestUtil.PASS); - } - } else { - pw.println(JSFTestUtil.FAIL + " Unable to obtain UIComponent instance."); - } - } - - public void facesEventCtorIllegalArgumentExceptionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new TCKFacesEvent(null); - pw.println(JSFTestUtil.FAIL + " The constructor of FacesEvent should " - + "have thrown an IllegalArgumentException when provided a null " - + "component. No Exception was thrown."); - } catch (IllegalArgumentException iae) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + ": Exception thrown, but was not an " - + "instance of IllegalArgumentException."); - e.printStackTrace(); - } - } - - public void facesEventGetComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - UIViewRoot root = new UIViewRoot(); - FacesEvent fe = new TCKFacesEvent(uic); - root.getChildren().add(uic); - if (uic == fe.getComponent()) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " FacesEvent.getComponent() didn't return" - + " the same UIComponent provided to its constructor."); - } - } - - public void facesEventQueueISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - UIComponent root = getApplication() - .createComponent(UIOutput.COMPONENT_TYPE); - FacesEvent fe = new TCKFacesEvent(uic); - root.getChildren().add(uic); - - JSFTestUtil.checkForISE(fe, "queue", new Class[] {}, new Object[] {}, - pw); - - } // END facesEventQueueISETest - - public void facesEventGetSetPhaseIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - FacesEvent fe = new TCKFacesEvent(uic); - - fe.setPhaseId(PhaseId.ANY_PHASE); - - if (!fe.getPhaseId().equals(PhaseId.ANY_PHASE)) { - out.println(JSFTestUtil.FAIL); - - } else { - out.println(JSFTestUtil.PASS); - } - - } // END facesEventGetPhaseIdTest - - public void facesEventSetPhaseIdIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - FacesEvent fe = new TCKFacesEvent(uic); - - try { - fe.setPhaseId(null); - out.println( - JSFTestUtil.FAIL + "Expected IllegalArgumentException to be thrown!"); - - } catch (IllegalArgumentException iae) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println( - JSFTestUtil.FAIL + "Exception thrown, but not the correct one!" - + JSFTestUtil.NL + " Expected: IllegalArgumentException" - + JSFTestUtil.NL + "Received: "); - e.printStackTrace(); - } - - } // END facesEventSetPhaseIdIAETest - - // ------------------------------------ Private Classes - - private static class TCKFacesEvent extends FacesEvent { - - public TCKFacesEvent(UIComponent component) { - super(component); - } - - public boolean isAppropriateListener(FacesListener listener) { - return false; - } - - public void processListener(FacesListener listener) { - - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/URLClient.java deleted file mode 100644 index ca088f72b9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/URLClient.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.facesevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_facesevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run test */ - - /* - * @testName: facesEventCtorTest - * - * @assertion_ids: JSF:JAVADOC:1809 - * - * @test_Strategy: Verify constructor - */ - public void facesEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesEventCtorTest"); - invoke(); - } - - /* - * @testName: facesEventCtorIllegalArgumentExceptionTest - * - * @assertion_ids: JSF:JAVADOC:1809 - * - * @test_Strategy: Verify constructor - */ - public void facesEventCtorIllegalArgumentExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesEventCtorIllegalArgumentExceptionTest"); - invoke(); - } - - /* - * @testName: facesEventGetComponentTest - * - * @assertion_ids: JSF:JAVADOC:1809; JSF:JAVADOC:1810 - * - * @test_Strategy: Verify source of event is returned - */ - public void facesEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesEventGetComponentTest"); - invoke(); - } - - /** - * @testName: facesEventQueueISETest - * @assertion_ids: JSF:JAVADOC:1809; JSF:JAVADOC:1816 - * @test_Strategy: Ensure an IllegalStateException is thrown when calling the - * queue() method on a FacesEvent when the source component of - * the FacesEvent is not a child of a UIViewRoot instance. - */ - public void facesEventQueueISETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesEventQueueISETest"); - invoke(); - } - - /** - * @testName: facesEventGetSetPhaseIdTest - * @assertion_ids: JSF:JAVADOC:1809; JSF:JAVADOC:1811; JSF:JAVADOC:1817 - * @test_Strategy: Verify we can set and get the Phaseid.. - */ - public void facesEventGetSetPhaseIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesEventGetSetPhaseIdTest"); - invoke(); - } - - /** - * @testName: facesEventSetPhaseIdIAETest - * @assertion_ids: JSF:JAVADOC:1809; JSF:JAVADOC:1818 - * @test_Strategy: Validate that we get an IllegalArgumentException when null - * is passed in for PhaseId. - */ - public void facesEventSetPhaseIdIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesEventSetPhaseIdIAETest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/build.xml deleted file mode 100644 index 423316ca47..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.war.sun-web.xml deleted file mode 100644 index f8279474e9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_facesevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.xml deleted file mode 100644 index eaf2ecfe67..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/facesevent/jsf_event_facesevent_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - jsf_event_facesevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.facesevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/TestServlet.java deleted file mode 100644 index 7f44e1e044..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/TestServlet.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) 2011, 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.methodexpressionvaluechangelistener; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Iterator; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.MethodExpression; -import jakarta.faces.event.MethodExpressionValueChangeListener; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void mevChangeListenerCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Boolean pf = true; - ArrayList meValueListener = new ArrayList(); - - request.setAttribute("bean", new SimpleBean()); - - ExpressionFactory factory = getFacesContext().getApplication() - .getExpressionFactory(); - - try { - MethodExpression me = factory.createMethodExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class, new Class[] {}); - - MethodExpression metwo = factory.createMethodExpression( - getFacesContext().getELContext(), "#{bean.action}", - java.lang.String.class, new Class[] {}); - - meValueListener.add(new MethodExpressionValueChangeListener()); - meValueListener.add(new MethodExpressionValueChangeListener(me)); - meValueListener.add(new MethodExpressionValueChangeListener(me, metwo)); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - Iterator i = meValueListener - .iterator(); - - while (i.hasNext()) { - if (null == i.next()) { - pf = false; - } - } - - if (!pf) { - out.println(JSFTestUtil.FAIL); - } else { - out.println(JSFTestUtil.PASS); - } - - } // End MEVChangeListenerCtorTest - - public void mevChangeListenerProcessValueChgNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - JSFTestUtil.checkForNPE(MethodExpressionValueChangeListener.class, - "processValueChange", new Class[] { ValueChangeEvent.class }, - new Object[] { null }, out); - - } // End mevChangeListenerProcessValueChgTest - - // ------------------------------------------------- Private Classes - - public class SimpleBean { - - public String action(String s) { - String res = "defaultValue"; - - if (!(s == null)) { - res = s; - } - - return res; - } - - } // END SimpleBean -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/URLClient.java deleted file mode 100644 index 99907b9436..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/URLClient.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.methodexpressionvaluechangelistener; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_methodexpressionvaluechangelistener_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run test */ - - /** - * @testName: mevChangeListenerCtorTest - * @assertion_ids: JSF:JAVADOC:1833; JSF:JAVADOC:1834; JSF:JAVADOC:1835 - * @test_Strategy: Verify constructor - * - */ - public void mevChangeListenerCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "mevChangeListenerCtorTest"); - invoke(); - } - - /** - * @testName: mevChangeListenerProcessValueChgNPETest - * @assertion_ids: JSF:JAVADOC:1833; JSF:JAVADOC:1838 - * @test_Strategy: Validate a NullpointerException is thrown if the argument - * valueChangeEvent is null. - * - */ - public void mevChangeListenerProcessValueChgNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "mevChangeListenerProcessValueChgNPETest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/build.xml deleted file mode 100644 index 22831a3fbc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.war.sun-web.xml deleted file mode 100644 index 47de2bacea..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_methodexpressionvaluechangelistener_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.xml deleted file mode 100644 index ea88147a75..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/methodexpressionvaluechangelistener/jsf_event_methodexpressionvaluechangelistener_web.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - jsf_event_methodexpressionvaluechangelistener - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.methodexpressionvaluechangelistener.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/TestServlet.java deleted file mode 100644 index 73a93cecb2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/TestServlet.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.phaseevent; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Iterator; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void phaseEventGetPhaseIdTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - FacesContext context = getFacesContext(); - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - - PhaseEvent pe = new PhaseEvent(context, PhaseId.ANY_PHASE, - factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE)); - - String golden = PhaseId.ANY_PHASE.getName(); - String result = pe.getPhaseId().getName(); - if (golden.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL - + " Unexpected result from PhaseEvent.getPhaseId!" + JSFTestUtil.NL - + "Expected: " + golden + JSFTestUtil.NL + "Received: " + result); - } - - } // End phaseEventGetPhaseIdTest - - public void phaseEventGetFacesContextTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - String summary = "TCKTest"; - FacesContext context = getFacesContext(); - context.addMessage("cid", new FacesMessage(summary)); - - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - - PhaseEvent pe = new PhaseEvent(context, PhaseId.ANY_PHASE, - factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE)); - - FacesContext myContext = pe.getFacesContext(); - List messages = myContext.getMessageList("cid"); - Iterator i = messages.iterator(); - - while (i.hasNext()) { - FacesMessage fm = i.next(); - - if (summary.equals(fm.getSummary())) { - out.println(JSFTestUtil.PASS); - return; - - } else { - out.println(JSFTestUtil.FAIL - + " Unable to find Message added to FacesContext!"); - - } - } - } // End phaseEventGetFacesContextTest - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/URLClient.java deleted file mode 100644 index 821bb9a4fa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/URLClient.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.phaseevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_phaseevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ----------------------------------- Tests - - /** - * @testName: phaseEventGetPhaseIdTest - * @assertion_ids: JSF:JAVADOC:1845; JSF:JAVADOC:1844 - * @test_Strategy: Validate that we receive the correct value from - * jakarta.faces.event.PhaseEvent.getPhaseId(). - */ - public void phaseEventGetPhaseIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "phaseEventGetPhaseIdTest"); - invoke(); - } - - /** - * @testName: phaseEventGetFacesContextTest - * @assertion_ids: JSF:JAVADOC:1845; JSF:JAVADOC:1843 - * @test_Strategy: Validate that we receive the correct value from - * jakarta.faces.event.PhaseEvent.getFacesContext(). - */ - public void phaseEventGetFacesContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "phaseEventGetFacesContextTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/build.xml deleted file mode 100644 index 5629c69374..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.war.sun-web.xml deleted file mode 100644 index 0c7306ce18..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.war.sun-web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - jsf_event_phaseevent_web - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.xml deleted file mode 100644 index cebc90eb2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/phaseevent/jsf_event_phaseevent_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - phaseevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.phaseevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/TestServlet.java deleted file mode 100644 index e33976de3c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/TestServlet.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postaddtoviewevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.TestSystemEventListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PostAddToViewEvent; -import jakarta.faces.event.SystemEventListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand uic = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PostAddToViewEvent(component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - - // ------------------------------------------------------------ - // PostAddToViewEvent Tests - - public void postAddToViewEventIsApproiateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - SystemEventListener testListener = new TestSystemEventListener(); - ComponentSystemEvent cse = createEvent(getTestComponent()); - String eventName = cse.getClass().getName(); - - // make sure the return value is true if SystemEventListener is - // passed as a parameter to isAppropriateListener. - - if (cse.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when SystemEventListener was passed in " - + "as a parameter"); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/URLClient.java deleted file mode 100644 index 0611b3865e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/URLClient.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postaddtoviewevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postaddtoviewevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: postAddToViewEventCtorTest - * @assertion_ids: JSF:JAVADOC:1853; JSF:JAVADOC:1792 - * @test_Strategy: Ensure Instantiate a new postAddToViewEvent that indicates - * the argument component was just added to the view. - * - * @since 2.0 - */ - public void postAddToViewEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: postAddToViewEventIAETest - * @assertion_ids: JSF:JAVADOC:1853 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the PostAddToViewEvent constructor. - * - * @since 2.0 - */ - public void postAddToViewEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: postAddToViewEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1853; JSF:JAVADOC:1793 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * PostAddToViewEvent constructor. - * - * @since 2.0 - */ - public void postAddToViewEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: postAddToViewEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1853; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postAddToViewEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "postAddToViewEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: postAddToViewEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1853; JSF:JAVADOC:1852; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postAddToViewEventIsApproiateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: postAddToViewEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1853; JSF:JAVADOC:1877; JSF:JAVADOC:1794 - * @test_Strategy: Ensure calling PostAddToViewEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void postAddToViewEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/build.xml deleted file mode 100644 index 7bb6550648..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.war.sun-web.xml deleted file mode 100644 index 41a69ef278..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postaddtoviewevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.xml deleted file mode 100644 index 2319436db0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postaddtoviewevent/jsf_event_postaddtoviewevent_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_event_postaddtoviewevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.postaddtoviewevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/TestServlet.java deleted file mode 100644 index e075dea3ec..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/TestServlet.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructapplicationevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PostConstructApplicationEvent; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - - @Override - protected SystemEvent createEvent(Object src) { - Application app = getFacesContext().getApplication(); - - return new PostConstructApplicationEvent(app); - } - - // ---------------------------------------------- - // PostConstructApplicationEvent Tests - - public void postConstructApplicationEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PostConstructApplicationEvent pca = (PostConstructApplicationEvent) createEvent( - app); - if (pca == null) { - pw.println(JSFTestUtil.FAIL - + " Unable to create PostConstructApplicationEvent"); - } else { - pw.println(JSFTestUtil.PASS); - } - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } - - public void postConstructApplicationEventGetAppTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - PostConstructApplicationEvent pca = (PostConstructApplicationEvent) createEvent( - app); - - if (app != null) { - if (app != pca.getApplication()) { - pw.println( - JSFTestUtil.FAIL + "PostConstructApplicationEvent.getApplication() " - + "returned unexpected result."); - } else { - pw.println(JSFTestUtil.PASS); - } - - } else { - pw.println("Test FAILED. Unexpected problem obtaining " - + "Application instance."); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/URLClient.java deleted file mode 100644 index ebde52b17f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/URLClient.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructapplicationevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postconstructapplicationevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - /** - * @testName: postConstructApplicationEventCtorTest - * @assertion_ids: JSF:JAVADOC:1856 - * @test_Strategy: Ensure Instantiate a new PostConstructApplicationEvent for - * this application. - * - * @since 2.0 - */ - public void postConstructApplicationEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "postConstructApplicationEventCtorTest"); - invoke(); - } - - /** - * @testName: postConstructApplicationEventGetAppTest - * @assertion_ids: JSF:JAVADOC:1856; JSF:JAVADOC:1855 - * @test_Strategy: Ensure getApplication() returns the source Application that - * sent this event. - * - * @since 2.0 - */ - public void postConstructApplicationEventGetAppTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "postConstructApplicationEventGetAppTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/build.xml deleted file mode 100644 index ec36928f5c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructapplicationevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructapplicationevent_web.xml deleted file mode 100644 index 6cc75828f3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructapplicationevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postconstructapplicationevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructapplicationevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructevent_web.war.sun-web.xml deleted file mode 100644 index 338e4d2b69..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructapplicationevent/jsf_event_postconstructevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postconstructapplicationevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/TestServlet.java deleted file mode 100644 index ea963f72c4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/TestServlet.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructcustomscopeevent; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.HashMap; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PostConstructCustomScopeEvent; -import jakarta.faces.event.ScopeContext; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - private static final String SCOPE_NAME = "tckScope"; - - private HashMap tckScope = new HashMap(); - - { - tckScope.put("csContext", "scope"); - } - - private ScopeContext tck_scope_context = new ScopeContext(SCOPE_NAME, - tckScope); - - @Override - protected SystemEvent createEvent(Object src) { - return new PostConstructCustomScopeEvent(tck_scope_context); - } - - // ------------------------------------------- PostKeepFlashValueEvent - - public void postConstructCustomScopeEventGetContextTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PostConstructCustomScopeEvent pScope = (PostConstructCustomScopeEvent) createEvent( - app); - String result = pScope.getContext().getScopeName(); - - if (!SCOPE_NAME.equals(result)) { - pw.println(JSFTestUtil.FAIL + " Wrong name for ScopeContext!" - + JSFTestUtil.NL + "Expected: " + SCOPE_NAME + JSFTestUtil.NL - + "Received: " + result); - - } else { - pw.println(JSFTestUtil.PASS); - - } - - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } - -} // TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/URLClient.java deleted file mode 100644 index b66abd8203..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/URLClient.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructcustomscopeevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postconstructcustomscopeevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ---------------------------------------- PostConstructCustomScopeEvent - // Tests - /** - * @testName: postConstructCustomScopeEventGetContextTest - * @assertion_ids: JSF:JAVADOC:1857; JSF:JAVADOC:1858 - * @test_Strategy: Validate that we get the correct value returned from - * PostConstructCustomScopeEvent.getContext(). - * - * @since 2.2 - */ - public void postConstructCustomScopeEventGetContextTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "postConstructCustomScopeEventGetContextTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/build.xml deleted file mode 100644 index 54cb8e4680..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.war.sun-web.xml deleted file mode 100644 index 003875b73e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postconstructcustomscopeevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.xml deleted file mode 100644 index b44032320c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructcustomscopeevent/jsf_event_postconstructcustomscopeevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postconstructcustomscopeevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructcustomscopeevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/TestServlet.java deleted file mode 100644 index b12e255a9e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/TestServlet.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructviewmapevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PostConstructViewMapEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UIViewRoot UIVR = new UIViewRoot(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - - return new PostConstructViewMapEvent((UIViewRoot) component); - } - - @Override - protected UIComponent getTestComponent() { - return UIVR; - } - - // ------------------------------------------------------------ test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/URLClient.java deleted file mode 100644 index 7d1fa32ba7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructviewmapevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postconstructviewmapevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: postConstructViewMapEventCtorTest - * @assertion_ids: JSF:JAVADOC:1859 - * @test_Strategy: Ensure: Instantiate a new PostConstructViewMapEvent that - * indicates the argument component is about to be rendered. - * - * @since 2.0 - */ - public void postConstructViewMapEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: postConstructViewMapEventIAETest - * @assertion_ids: JSF:JAVADOC:1859 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the beforeRenderEvent constructor. - * - * @since 2.0 - */ - public void postConstructViewMapEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: postConstructViewMapEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1859 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * PostConstructViewMapEvent constructor. - */ - public void postConstructViewMapEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: postConstructViewMapEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1859; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postConstructViewMapEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: postConstructViewMapEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1859; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postConstructViewMapEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: postConstructViewMapEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1859; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void postConstructViewMapEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/build.xml deleted file mode 100644 index 6e1dc728bd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.war.sun-web.xml deleted file mode 100644 index 1210e4652b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postconstructviewmapevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.xml deleted file mode 100644 index afdeba14bb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postconstructviewmapevent/jsf_event_postconstructviewmapevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postconstructviewmapevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postconstructviewmapevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/TestServlet.java deleted file mode 100644 index 19270735b5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/TestServlet.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postkeepflashvalueevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PostKeepFlashValueEvent; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - private static final String POST_KEY = "postkey"; - - @Override - protected SystemEvent createEvent(Object src) { - return new PostKeepFlashValueEvent(POST_KEY); - } - - // ------------------------------------------- PostKeepFlashValueEvent - - public void postKeepFlashValueEventGetKeyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PostKeepFlashValueEvent pKeep = (PostKeepFlashValueEvent) createEvent( - app); - String result = pKeep.getKey(); - - if (!POST_KEY.equals(result)) { - pw.println(JSFTestUtil.FAIL + " Wrong key value!" + JSFTestUtil.NL - + "Expected: " + POST_KEY + JSFTestUtil.NL + "Received: " + result); - } else { - pw.println(JSFTestUtil.PASS); - } - - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } - -} // TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/URLClient.java deleted file mode 100644 index 5a0ff2d2d1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/URLClient.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postkeepflashvalueevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postkeepflashvalueevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ---------------------------------------- PostKeepFlashValueEvent Tests - /** - * @testName: postKeepFlashValueEventGetKeyTest - * @assertion_ids: JSF:JAVADOC:2702; JSF:JAVADOC:2703 - * @test_Strategy: Validate that we get the correct value returned from - * PostKeepFlashValueEvent.getKey(). - * - * @since 2.2 - */ - public void postKeepFlashValueEventGetKeyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "postKeepFlashValueEventGetKeyTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/build.xml deleted file mode 100644 index fd2b5ed4f2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.war.sun-web.xml deleted file mode 100644 index 30eef7522c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postkeepflashvalueevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.xml deleted file mode 100644 index 440fdcac59..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postkeepflashvalueevent/jsf_event_postkeepflashvalueevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postkeepflashvalueevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postkeepflashvalueevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/TestServlet.java deleted file mode 100644 index 66b7382cf9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/TestServlet.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postputflashvalueevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PostPutFlashValueEvent; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - private static final String FLASH_KEY = "key"; - - @Override - protected SystemEvent createEvent(Object src) { - return new PostPutFlashValueEvent(FLASH_KEY); - } - - // ------------------------------------------- PostKeepFlashValueEvent - - public void postPutFlashValueEventGetKeyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PostPutFlashValueEvent pKeep = (PostPutFlashValueEvent) createEvent(app); - String result = pKeep.getKey(); - - if (!FLASH_KEY.equals(result)) { - pw.println(JSFTestUtil.FAIL + " Wrong key value!" + JSFTestUtil.NL - + "Expected: " + FLASH_KEY + JSFTestUtil.NL + "Received: " - + result); - } else { - pw.println(JSFTestUtil.PASS); - } - - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } // End postPutFlashValueEventGetKeyTest - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/URLClient.java deleted file mode 100644 index 4134edeaf1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/URLClient.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postputflashvalueevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postputflashvalueevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ---------------------------------------- PostKeepFlashValueEvent Tests - /** - * @testName: postPutFlashValueEventGetKeyTest - * @assertion_ids: JSF:JAVADOC:2705; JSF:JAVADOC:2704 - * @test_Strategy: Validate that we get the correct value returned from - * PostPutFlashValueEvent.getKey(). - * - * @since 2.2 - */ - public void postPutFlashValueEventGetKeyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "postPutFlashValueEventGetKeyTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.2 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/build.xml deleted file mode 100644 index eb8f82e2d7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/build.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.war.sun-web.xml deleted file mode 100644 index dd2ab2b6d4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postputflashvalueevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.xml deleted file mode 100644 index 21bbc79d21..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postputflashvalueevent/jsf_event_postputflashvalueevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_postputflashvalueevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postputflashvalueevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/TestServlet.java deleted file mode 100644 index 02efcd148c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/TestServlet.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: TestServlet.java 62525 2011-04-15 12:14:31Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postrenderviewevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PostRenderViewEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UIViewRoot uic = new UIViewRoot(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PostRenderViewEvent((UIViewRoot) component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - // ------------------------------------------------------------ test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/URLClient.java deleted file mode 100644 index f3c98a9dcb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/URLClient.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: $ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postrenderviewevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postrenderviewevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: postRenderViewEventCtorTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure: Instantiate a new PreRenderComponentEvent that - * indicates the argument component is about to be rendered. - * - * @since 2.0 - */ - public void postRenderViewEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: postRenderViewEventIAETest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the postRenderViewEvent constructor. - * - * @since 2.0 - */ - public void postRenderViewEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: postRenderViewEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * AfterpostRenderViewEvent constructor. - * - * @since 2.0 - */ - public void postRenderViewEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: postRenderViewEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postRenderViewEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: postRenderViewEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postRenderViewEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: postRenderViewEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void postRenderViewEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/build.xml deleted file mode 100644 index c1cd458f0c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/jsf_event_postrenderviewevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/jsf_event_postrenderviewevent_web.xml deleted file mode 100644 index 34849f9e87..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrenderviewevent/jsf_event_postrenderviewevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postrenderviewevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postrenderviewevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/TestServlet.java deleted file mode 100644 index 7c654967cd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/TestServlet.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postrestorestateevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PostRestoreStateEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand uic = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PostRestoreStateEvent(component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - - // ------------------------------------------------------------ - // PostRestoreStateEvent Tests - - public void postRestoreStateEventSetComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = new UICommand(); - UIComponent uii = new UIInput(); - - PostRestoreStateEvent arse = (PostRestoreStateEvent) createEvent(uic); - - if (!uic.equals(arse.getComponent())) { - pw.println(JSFTestUtil.FAIL + " PostRestoreStateEvent.getComponent() " - + "didn't return the initial UIComponent provided to its " - + "constructor."); - } - - // Now use setComponent to change the current UICommand component to an - // UIInput component. - arse.setComponent(uii); - - if (uii.equals(arse.getComponent())) { - pw.println("Test PASSED."); - } else { - pw.println(JSFTestUtil.FAIL + " PostRestoreStateEvent.getComponent() " - + "didn't return the UIComponent that was set with " - + "AfterRestreStateEvent.setComponent()"); - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/URLClient.java deleted file mode 100644 index f56b729162..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/URLClient.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postrestorestateevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postrestorestateevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ------------------------------------------------ PostRestoreStateEvent - // Tests - /** - * @testName: postRestoreStateEventSetComponentTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861 - * @test_Strategy: Ensure setComponent() sets a new component. - * - * @since 2.0 - */ - public void postRestoreStateEventSetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "postRestoreStateEventSetComponentTest"); - invoke(); - } - - // ------------------------------------------------ ComponentSystemEvent - // Tests - /** - * @testName: componentSystemEventCtorTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861 - * @test_Strategy: Ensure Instantiate a new PostRestoreStateEvent that - * indicates the argument component was just added to the - * view. - * - * @since 2.0 - */ - public void componentSystemEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: componentSystemEventIAETest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the PostRestoreStateEvent - * constructor. - * - * @since 2.0 - */ - public void componentSystemEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: componentSystemEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * PostRestoreStateEvent constructor. - * - * @since 2.0 - */ - public void componentSystemEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: componentSystemEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void componentSystemEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: componentSystemEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void componentSystemEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: componentSystemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1860; JSF:JAVADOC:1861; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void componentSystemEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/build.xml deleted file mode 100644 index e44dd934d5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.war.sun-web.xml deleted file mode 100644 index 825241f567..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postrestorestateevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.xml deleted file mode 100644 index b948588bd7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postrestorestateevent/jsf_event_postrestorestateevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postrestorestateevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postrestorestateevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/TestServlet.java deleted file mode 100644 index 1f882900a6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/TestServlet.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postvalidateevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PostValidateEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand uic = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PostValidateEvent(component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - - // ------------------------------------------------------------ test methods - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/URLClient.java deleted file mode 100644 index 6786b56e6a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/URLClient.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.postvalidateevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_postvalidateevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: postValidateEventCtorTest - * @assertion_ids: JSF:JAVADOC:1862 - * @test_Strategy: Ensure Instantiate a new PostValidateEvent that indicates - * the argument component was just added to the view. - * - * @since 2.0 - */ - public void postValidateEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: postValidateEventIAETest - * @assertion_ids: JSF:JAVADOC:1862 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the PostValidateEvent constructor. - * - * @since 2.0 - */ - public void postValidateEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: postValidateEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1862 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * PostValidateEvent constructor. - * - * @since 2.0 - */ - public void postValidateEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: postValidateEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1862; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postValidateEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: postValidateEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1862; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void postValidateEventIsApproiateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: postValidateEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1862; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void postValidateEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/build.xml deleted file mode 100644 index 6af7848804..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.war.sun-web.xml deleted file mode 100644 index a43a4debb4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_postvalidateevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.xml deleted file mode 100644 index 581c228ce1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/postvalidateevent/jsf_event_postvalidateevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_postvalidateevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.postvalidateevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/TestServlet.java deleted file mode 100644 index f9db4009ed..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/TestServlet.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: TestServlet.java 64808 2012-02-07 18:11:12Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preclearflashevent; - -import java.util.HashMap; -import java.util.Map; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; - -import jakarta.faces.event.PreClearFlashEvent; -import jakarta.faces.event.SystemEvent; - -public class TestServlet extends BaseSystemEventTestServlet { - private Map keys = new HashMap(); - - @Override - protected SystemEvent createEvent(Object src) { - keys.put("test", "test"); - return new PreClearFlashEvent(keys); - } - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/URLClient.java deleted file mode 100644 index 6e924b6796..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/URLClient.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 64808 2012-02-07 18:11:12Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preclearflashevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_preclearflashevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876; - * JSF:JAVADOC:2706 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.2 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/build.xml deleted file mode 100644 index 3883ddbe44..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.war.sun-web.xml deleted file mode 100644 index 9dcb2e4d29..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_preclearflashevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.xml deleted file mode 100644 index c1542ebfa7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preclearflashevent/jsf_event_preclearflashevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_preclearflashevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.preclearflashevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/TestServlet.java deleted file mode 100644 index 8c2073ed78..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/TestServlet.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyapplicationevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PreDestroyApplicationEvent; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - - @Override - protected SystemEvent createEvent(Object src) { - return new PreDestroyApplicationEvent((Application) src); - } - - // ----------------------------- PreDestroyApplicationEvent test methods - - public void preDestroyApplicationEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PreDestroyApplicationEvent pda = (PreDestroyApplicationEvent) createEvent( - app); - if (pda == null) { - pw.println(JSFTestUtil.FAIL + " Unable to create Event"); - } else { - pw.println(JSFTestUtil.PASS); - } - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } - - public void preDestroyApplicationEventGetAppTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - PreDestroyApplicationEvent pda = (PreDestroyApplicationEvent) createEvent( - app); - - if (app != null) { - if (app != pda.getApplication()) { - pw.println( - JSFTestUtil.FAIL + "PreDestroyApplicationEvent.getApplication() " - + "returned unexpected result."); - } else { - pw.println(JSFTestUtil.PASS); - } - - } else { - pw.println("Test FAILED. Unexpected problem obtaining " - + "Application instance."); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/URLClient.java deleted file mode 100644 index 4e67148024..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/URLClient.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyapplicationevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_predestroyapplicationevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: preDestroyApplicationEventCtorTest - * @assertion_ids: JSF:JAVADOC:1864 - * @test_Strategy: Ensure Instantiate a new ApplicationPreDestroyEvent for - * this application. - * - * @since 2.0 - */ - public void preDestroyApplicationEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "preDestroyApplicationEventCtorTest"); - invoke(); - } - - /** - * @testName: preDestroyApplicationEventGetAppTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863 - * @test_Strategy: Ensure getApplication() returns the source Application that - * sent this event. - * - * @since 2.0 - */ - public void preDestroyApplicationEventGetAppTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "preDestroyApplicationEventGetAppTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/build.xml deleted file mode 100644 index f419f2e492..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.war.sun-web.xml deleted file mode 100644 index 7ffc8e2d5b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_predestroyapplicationevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.xml deleted file mode 100644 index 40fb4a1d2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyapplicationevent/jsf_event_predestroyapplicationevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_predestroyapplicationevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyapplicationevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/TestServlet.java deleted file mode 100644 index 633065ade3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/TestServlet.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyviewmapevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PreDestroyViewMapEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UIViewRoot UIVR = new UIViewRoot(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PreDestroyViewMapEvent((UIViewRoot) component); - - } - - @Override - protected UIComponent getTestComponent() { - return UIVR; - } - // ------------------------------------------------------------ test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/URLClient.java deleted file mode 100644 index 87d6a1ae6e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/URLClient.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyviewmapevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_predestroyviewmapevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: preDestroyViewMapEventCtorTest - * @assertion_ids: JSF:JAVADOC:1867 - * @test_Strategy: Ensure: Instantiate a new PreDestroyViewMapEvent that - * indicates the argument component is about to be rendered. - * @since 2.0 - */ - public void preDestroyViewMapEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: preDestroyViewMapEventIAETest - * @assertion_ids: JSF:JAVADOC:1867 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the beforeRenderEvent constructor. - * @since 2.0 - */ - public void preDestroyViewMapEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: preDestroyViewMapEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1867 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * preDestroyViewMapEvent constructor. - */ - public void preDestroyViewMapEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: preDestroyViewMapEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1867; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preDestroyViewMapEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: preDestroyViewMapEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1867; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preDestroyViewMapEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: preDestroyViewMapEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1867; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void preDestroyViewMapEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/build.xml deleted file mode 100644 index 581cda10d6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.war.sun-web.xml deleted file mode 100644 index 20afc6f712..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_predestroyviewmapevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.xml deleted file mode 100644 index a1b732418d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/predestroyviewmapevent/jsf_event_predestroyviewmapevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_predestroyviewmapevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.predestroyviewmapevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/TestServlet.java deleted file mode 100644 index e851ecf67a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/TestServlet.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preremoveflashvalueevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseSystemEventTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.event.PreRemoveFlashValueEvent; -import jakarta.faces.event.SystemEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseSystemEventTestServlet { - private static final String FLASH_KEY = "key"; - - @Override - protected SystemEvent createEvent(Object src) { - return new PreRemoveFlashValueEvent(FLASH_KEY); - } - - // ------------------------------------------- PostKeepFlashValueEvent - - public void preRemoveFlashValueEventGetKeyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Application app = getFacesContext().getApplication(); - - if (app != null) { - PreRemoveFlashValueEvent pKeep = (PreRemoveFlashValueEvent) createEvent( - app); - String result = pKeep.getKey(); - - if (!FLASH_KEY.equals(result)) { - pw.println(JSFTestUtil.FAIL + " Wrong key value!" + JSFTestUtil.NL - + "Expected: " + FLASH_KEY + JSFTestUtil.NL + "Received: " - + result); - } else { - pw.println(JSFTestUtil.PASS); - } - - } else { - pw.println(JSFTestUtil.FAIL + " Unexpected problem obtaining " - + "Application instance."); - } - } // End preRemoveFlashValueEventGetKeyTest - -} // End TestServlet diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/URLClient.java deleted file mode 100644 index 1d114dfd5c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/URLClient.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preremoveflashvalueevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseEventClient; - -public final class URLClient extends BaseEventClient { - - private static final String CONTEXT_ROOT = "/jsf_event_preremoveflashvalueevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - // don't reset the context root if already been set - if (getContextRoot() == null) { - setContextRoot(CONTEXT_ROOT); - } - // don't reset the Servlet name if already set - if (getServletName() == null) { - setServletName(DEFAULT_SERVLET_NAME); - } - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // ---------------------------------------- PostKeepFlashValueEvent Tests - /** - * @testName: preRemoveFlashValueEventGetKeyTest - * @assertion_ids: JSF:JAVADOC:2708; JSF:JAVADOC:2707 - * @test_Strategy: Validate that we get the correct value returned from - * PreRemoveFlashValueEvent.getKey(). - * - * @since 2.2 - */ - public void preRemoveFlashValueEventGetKeyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "preRemoveFlashValueEventGetKeyTest"); - invoke(); - } - - // ---------------------------------------- SystemEvent Tests - /** - * @testName: systemEventIsAppropriateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerPostiveTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerPostiveTest(); - } - - /** - * @testName: systemEventIsAppropriateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.2 - */ - public void systemEventIsAppropriateListenerNegativeTest() - throws EETest.Fault { - super.systemEventIsAppropriateListenerNegativeTest(); - } - - /** - * @testName: systemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1864; JSF:JAVADOC:1863; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling preDestroyApplicationEvent.processListener() - * calls through to - * ComponentSystemEventListener.processEvent(). - * - * @since 2.2 - */ - public void systemEventProcessListenerTest() throws EETest.Fault { - super.systemEventProcessListenerTest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/build.xml deleted file mode 100644 index 2935d5ce2a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/build.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.war.sun-web.xml deleted file mode 100644 index 90c35eb713..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_preremoveflashvalueevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.xml deleted file mode 100644 index 61e572ed66..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremoveflashvalueevent/jsf_event_preremoveflashvalueevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_preremoveflashvalueevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.preremoveflashvalueevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/TestServlet.java deleted file mode 100644 index a025f9eb3f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/TestServlet.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preremovefromviewevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.TestSystemEventListener; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PreRemoveFromViewEvent; -import jakarta.faces.event.SystemEventListener; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand UIC = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PreRemoveFromViewEvent(component); - - } - - @Override - protected UIComponent getTestComponent() { - return UIC; - } - // ------------------------------------------------------------ - // PreRemoveFromViewEvent Tests - - public void preRemoveFromViewEventIsApproiateListenerPostiveTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - SystemEventListener testListener = new TestSystemEventListener(); - ComponentSystemEvent cse = createEvent(getTestComponent()); - String eventName = cse.getClass().getName(); - - // make sure the return value is true if SystemEventListener is - // passed as a parameter to isAppropriateListener. - - if (cse.isAppropriateListener(testListener)) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println("Test FAILED. " + eventName + ".isAppropriateListener " - + "did not return true when SystemEventListener was passed in " - + "as a parameter"); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/URLClient.java deleted file mode 100644 index ba1f4e3300..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/URLClient.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.preremovefromviewevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_preremovefromviewevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - // --------------------------------------------------- - // PreRemoveFromViewEvent Tests - - /** - * @testName: preRemoveFromViewEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1869; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRemoveFromViewEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "preRemoveFromViewEventIsApproiateListenerPostiveTest"); - invoke(); - } - - // --------------------------------------------------- ComponentSystemEvent - // Tests - - /** - * @testName: componentSystemEventCtorTest - * @assertion_ids: JSF:JAVADOC:1869 - * @test_Strategy: Ensure: Instantiate a new PreRemoveFromViewEvent that - * indicates the argument component is about to be rendered. - * @since 2.0 - */ - public void componentSystemEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: componentSystemEventIAETest - * @assertion_ids: JSF:JAVADOC:1869 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the beforeRenderEvent constructor. - * @since 2.0 - */ - public void componentSystemEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: componentSystemEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1869; JSF:JAVADOC:1868 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * preRemoveFromViewEvent constructor. - */ - public void componentSystemEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: preRemoveFromViewEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1869; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRemoveFromViewEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: componentSystemEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1869; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void componentSystemEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/build.xml deleted file mode 100644 index b417c52a46..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.war.sun-web.xml deleted file mode 100644 index d8b41516dd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_preremovefromviewevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.xml deleted file mode 100644 index dde6791415..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/preremovefromviewevent/jsf_event_preremovefromviewevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_preremovefromviewevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.preremovefromviewevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/TestServlet.java deleted file mode 100644 index 7f348c2042..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/TestServlet.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prerendercomponentevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PreRenderComponentEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand uic = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PreRenderComponentEvent(component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - // ------------------------------------------------------------ test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/URLClient.java deleted file mode 100644 index 74046562ce..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/URLClient.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: $ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prerendercomponentevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_prerendercomponentevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: preRenderComponentEventCtorTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure: Instantiate a new PreRenderComponentEvent that - * indicates the argument component is about to be rendered. - * - * @since 2.0 - */ - public void preRenderComponentEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: preRenderComponentEventIAETest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the preRenderComponentEvent - * constructor. - * - * @since 2.0 - */ - public void preRenderComponentEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: preRenderComponentEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * AfterpreRenderComponentEvent constructor. - * - * @since 2.0 - */ - public void preRenderComponentEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: preRenderComponentEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRenderComponentEventIsApproiateListenerPostiveTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: preRenderComponentEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRenderComponentEventIsApproiateListenerNegativeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: preRenderComponentEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void preRenderComponentEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/build.xml deleted file mode 100644 index c32503f536..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.war.sun-web.xml deleted file mode 100644 index 148ad43cdd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_prerendercomponentevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.xml deleted file mode 100644 index 326a5132d8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerendercomponentevent/jsf_event_prerendercomponentevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_prerendercomponentevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.prerendercomponentevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/TestServlet.java deleted file mode 100644 index b8357f6fbc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/TestServlet.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: TestServlet.java 62525 2011-04-15 12:14:31Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prerenderviewevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PreRenderViewEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UIViewRoot uic = new UIViewRoot(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PreRenderViewEvent((UIViewRoot) component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - // ------------------------------------------------------------ test methods -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/URLClient.java deleted file mode 100644 index d743846e96..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/URLClient.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: $ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prerenderviewevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_prerenderviewevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: preRenderViewEventCtorTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure: Instantiate a new PreRenderComponentEvent that - * indicates the argument component is about to be rendered. - * - * @since 2.0 - */ - public void preRenderViewEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: preRenderViewEventIAETest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the preRenderViewEvent constructor. - * - * @since 2.0 - */ - public void preRenderViewEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: preRenderViewEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1870 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * AfterpreRenderViewEvent constructor. - * - * @since 2.0 - */ - public void preRenderViewEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: preRenderViewEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRenderViewEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: preRenderViewEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preRenderViewEventIsApproiateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: preRenderViewEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1870; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void preRenderViewEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/build.xml deleted file mode 100644 index 4c2dcffb14..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.war.sun-web.xml deleted file mode 100644 index 7ca93a65cb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_prerenderviewevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.xml deleted file mode 100644 index cf2e9c21c3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prerenderviewevent/jsf_event_prerenderviewevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_prerenderviewevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.prerenderviewevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/TestServlet.java deleted file mode 100644 index beb3514f3a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/TestServlet.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prevalidateevent; - -import com.sun.ts.tests.jsf.api.jakarta_faces.event.common.BaseComponentSystemEventTestServlet; - -import jakarta.faces.component.UICommand; -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.ComponentSystemEvent; -import jakarta.faces.event.PreValidateEvent; - -public class TestServlet extends BaseComponentSystemEventTestServlet { - - private static final UICommand uic = new UICommand(); - - @Override - protected ComponentSystemEvent createEvent(UIComponent component) { - return new PreValidateEvent(component); - } - - @Override - protected UIComponent getTestComponent() { - return uic; - } - - // ------------------------------------------------------------ test methods - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/URLClient.java deleted file mode 100644 index d1e9c00544..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/URLClient.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.event.prevalidateevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_prevalidateevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: preValidateEventCtorTest - * @assertion_ids: JSF:JAVADOC:1872 - * @test_Strategy: Ensure Instantiate a new preValidateEvent that indicates - * the argument component was just added to the view. - * - * @since 2.0 - */ - public void preValidateEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventCtorTest"); - invoke(); - } - - /** - * @testName: preValidateEventIAETest - * @assertion_ids: JSF:JAVADOC:1872 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if a a null - * component is passed to the preValidateEvent constructor. - * - * @since 2.0 - */ - public void preValidateEventIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventIAETest"); - invoke(); - } - - /** - * @testName: preValidateEventGetComponentTest - * @assertion_ids: JSF:JAVADOC:1872 - * @test_Strategy: Ensure getComponent() returns the component passed to the - * preValidateEvent constructor. - * - * @since 2.0 - */ - public void preValidateEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventGetComponentTest"); - invoke(); - } - - /** - * @testName: preValidateEventIsApproiateListenerPostiveTest - * @assertion_ids: JSF:JAVADOC:1872; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preValidateEventIsApproiateListenerPostiveTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerPostiveTest"); - invoke(); - } - - /** - * @testName: preValidateEventIsApproiateListenerNegativeTest - * @assertion_ids: JSF:JAVADOC:1872; JSF:JAVADOC:1876 - * @test_Strategy: Ensure isAppropriateListener() Returns true if and only if - * the argument listener is *NOT* an instance of - * SystemEventListener. - * - * @since 2.0 - */ - public void preValidateEventIsApproiateListenerNegativeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "componentSystemEventIsApproiateListenerNegativeTest"); - invoke(); - } - - /** - * @testName: preValidateEventProcessListenerTest - * @assertion_ids: JSF:JAVADOC:1872; JSF:JAVADOC:1877 - * @test_Strategy: Ensure calling ComponentSystemEvent.processListener() calls - * through to ComponentSystemEventListener.processEvent(). - * - * @since 2.0 - */ - public void preValidateEventProcessListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "componentSystemEventProcessListenerTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/build.xml deleted file mode 100644 index 382f6917ce..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.war.sun-web.xml deleted file mode 100644 index 00d437e1cb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_prevalidateevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.xml deleted file mode 100644 index 4c9c9d8a30..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/prevalidateevent/jsf_event_prevalidateevent_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_event_prevalidateevent - - TestServlet - - com.sun.ts.tests.jsf.api.jakarta_faces.event.prevalidateevent.TestServlet - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/TestServlet.java deleted file mode 100644 index 01ba9b503f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/TestServlet.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.valuechangeevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIOutput; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void valueChangeEventCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - if (uic != null) { - ValueChangeEvent ae = new ValueChangeEvent(uic, "oldvalue", "newvalue"); - if (ae == null) { - pw.println(JSFTestUtil.FAIL + " ValueChangeEvent(UIComponent, String, " - + "String) returned null."); - } else { - pw.println(JSFTestUtil.PASS); - } - } - } - - public void valueChangeEventCtorIllegalArgumentExceptionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new ValueChangeEvent(null, "oldvalue", "newvalue"); - pw.println("Error: The constructor of ValueChangeEvent should " - + "have thrown an IllegalArgumentException when the " - + "provided component was null. No exception was thrown."); - } catch (IllegalArgumentException iae) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("Exception thrown, but was not an instance of " - + "IllegalArgumentException."); - e.printStackTrace(); - } - } - - public void valueChangeEventGetOldValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - if (uic != null) { - String expected = "oldvalue"; - ValueChangeEvent vce = new ValueChangeEvent(uic, expected, "newvalue"); - String val = (String) vce.getOldValue(); - if (!expected.equals(val)) { - pw.println( - JSFTestUtil.FAIL + ": ValueChangeEvent.getOldValue() did not " - + "return the correct result"); - pw.println("Expected: " + expected); - pw.println("actual: " + val); - } else { - pw.println(JSFTestUtil.PASS); - } - } else { - pw.println(JSFTestUtil.FAIL + " Unable to obtain UIComponent instance."); - } - } - - public void valueChangeEventGetNewValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - if (uic != null) { - String expected = "newvalue"; - ValueChangeEvent vce = new ValueChangeEvent(uic, "oldvalue", expected); - String val = (String) vce.getNewValue(); - if (!expected.equals(val)) { - pw.println( - JSFTestUtil.FAIL + ": ValueChangeEvent.getNewValue() did not " - + "return the correct result"); - pw.println("Expected: " + expected); - pw.println("actual: " + val); - } else { - pw.println(JSFTestUtil.PASS); - } - } else { - pw.println(JSFTestUtil.FAIL + " Unable to obtain UIComponent instance."); - } - } - - public void valueChangeEventGetComponentTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIComponent uic = getApplication().createComponent(UIOutput.COMPONENT_TYPE); - ValueChangeEvent vce = new ValueChangeEvent(uic, "old", "new"); - if (uic == vce.getComponent()) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " ValueChangeEvent.getComponent() didn't " - + "return the same UIComponent provided to its constructor."); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/URLClient.java deleted file mode 100644 index e8e3808f46..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/URLClient.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.event.valuechangeevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_event_valuechangeevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run test */ - - /* - * @testName: valueChangeEventCtorTest - * - * @assertion_ids: JSF:JAVADOC:1889 - * - * @test_Strategy: Verify constructor - * - */ - public void valueChangeEventCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueChangeEventCtorTest"); - invoke(); - } - - /* - * @testName: valueChangeEventCtorIllegalArgumentExceptionTest - * - * @assertion_ids: JSF:JAVADOC:1889 - * - * @test_Strategy: Verify constructor - * - */ - public void valueChangeEventCtorIllegalArgumentExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "valueChangeEventCtorIllegalArgumentExceptionTest"); - invoke(); - } - - /* - * @testName: valueChangeEventGetOldValueTest - * - * @assertion_ids: JSF:JAVADOC:1889 - * - * @test_Strategy: Verify source of event is returned - * - */ - public void valueChangeEventGetOldValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueChangeEventGetOldValueTest"); - invoke(); - } - - /* - * @testName: valueChangeEventGetNewValueTest - * - * @assertion_ids: JSF:JAVADOC:1889 - * - * @test_Strategy: Verify source of event is returned - * - */ - public void valueChangeEventGetNewValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueChangeEventGetNewValueTest"); - invoke(); - } - - /* - * @testName: valueChangeEventGetComponentTest - * - * @assertion_ids: JSF:JAVADOC:1889 - * - * @test_Strategy: Verify source of event is returned - * - */ - public void valueChangeEventGetComponentTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "valueChangeEventGetComponentTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/build.xml deleted file mode 100644 index 1f629797c4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.war.sun-web.xml deleted file mode 100644 index 55128c8257..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_event_valuechangeevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.xml deleted file mode 100644 index 94060ffd16..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/event/valuechangeevent/jsf_event_valuechangeevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_event_valuechangeevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.event.valuechangeevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/TestServlet.java deleted file mode 100644 index 7e34779449..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/TestServlet.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.facesexception; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FacesException; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void facesExceptionCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesException fe = new FacesException(); - if (fe == null) { - pw.println("Test FAILED: FacesException() returned null."); - } else { - pw.println(JSFTestUtil.PASS); - } - } - - public void facesExceptionCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - String msg = "This is a test message"; - FacesException fe = new FacesException(msg); - if (fe != null) { - if (msg.equals(fe.getMessage().trim())) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println( - JSFTestUtil.FAIL + " Exception message was not set" + " properly."); - pw.println("Expected: " + msg); - pw.println("Received: " + fe.getMessage()); - } - } else { - pw.println("Test FAILED: FacesException(String) returned null."); - } - } - - public void facesExceptionCtor3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - ServletException se = new ServletException(); - - FacesException fe = new FacesException(se); - if (fe != null) { - Throwable t = fe.getCause(); - if (t != null) { - if (t instanceof ServletException) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " FacesException.getCause() " - + "returned " + "unexpected exception type."); - pw.println("Excpected: jakarta.servlet.ServletException"); - pw.println("Received: " + t.getClass().getName()); - } - } else { - pw.println( - JSFTestUtil.FAIL + " FacesException.getCause() return " + "null."); - } - } else { - pw.println(JSFTestUtil.FAIL + " FacesException(Throwable) return null."); - } - - } - - public void facesExceptionCtor4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - String msg = "This is a test message"; - ServletException se = new ServletException(); - FacesException fe = new FacesException(msg, se); - if (fe != null) { - Throwable t = fe.getCause(); - if (t != null) { - if (t instanceof ServletException) { - if (msg.equals(fe.getMessage().trim())) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " Exception message was not" - + " set properly."); - pw.println("Expected: " + msg); - pw.println("Received: " + fe.getMessage()); - } - } else { - pw.println(JSFTestUtil.FAIL + " FacesException.getCause() " - + "returned " + "unexpected exception type."); - pw.println("Excpected: jakarta.servlet.ServletException"); - pw.println("Received: " + t.getClass().getName()); - } - } else { - pw.println( - JSFTestUtil.FAIL + " FacesException.getCause() return " + "null."); - } - } else { - pw.println(JSFTestUtil.FAIL + " FacesException(Throwable) return null."); - } - } - - public void facesExceptionGetCauseTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesException fe = new FacesException(new ServletException()); - if (fe != null) { - Throwable t = fe.getCause(); - if (t != null) { - if (t instanceof ServletException) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " FacesException.getCause() " - + "returned unexepected Exception type."); - pw.println("Expected: jakarta.servlet.ServletException"); - pw.println("Received: " + t.getClass().getName()); - } - } else { - pw.println( - JSFTestUtil.FAIL + " FacesException.getCause() returned null."); - } - } else { - pw.println(JSFTestUtil.FAIL + " FacesException(Throwable) return null."); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/URLClient.java deleted file mode 100644 index 34f32441ac..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/URLClient.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.facesexception; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_facesexception_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - * - */ - - /* Run test */ - - /* - * @testName: facesExceptionCtor1Test - * - * @assertion_ids: JSF:JAVADOC:1 - * - * @test_Strategy: Construct a new exception with no detail message or root - * cause. - * - */ - public void facesExceptionCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesExceptionCtor1Test"); - invoke(); - } - - /* - * @testName: facesExceptionCtor2Test - * - * @assertion_ids: JSF:JAVADOC:2 - * - * @test_Strategy: Construct a new exception with the specified detail message - * and no root cause. - * - */ - public void facesExceptionCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesExceptionCtor2Test"); - invoke(); - } - - /* - * @testName: facesExceptionCtor3Test - * - * @assertion_ids: JSF:JAVADOC:3 - * - * @test_Strategy: Construct a new exception with the specified root cause. - * The detail message will be set to (cause == null ? null : cause.toString() - * - */ - public void facesExceptionCtor3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesExceptionCtor3Test"); - invoke(); - } - - /* - * @testName: facesExceptionCtor4Test - * - * @assertion_ids: JSF:JAVADOC:4 - * - * @test_Strategy: Construct a new exception with the specified detail message - * and root cause. - * - */ - public void facesExceptionCtor4Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesExceptionCtor4Test"); - invoke(); - } - - /* - * @testName: facesExceptionGetCauseTest - * - * @assertion_ids: JSF:JAVADOC:5 - * - * @test_Strategy: Return the cause of this exception, or null if the cause is - * nonexistent or unknown. - * - */ - public void facesExceptionGetCauseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesExceptionGetCauseTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/build.xml deleted file mode 100644 index 68fe8c160d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.war.sun-web.xml deleted file mode 100644 index d47c40bc65..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_facesexception_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.xml deleted file mode 100644 index fc63f19a30..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/facesexception/jsf_facesexception_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_facesexception - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.facesexception.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/TestServlet.java deleted file mode 100644 index 34f1ed5e20..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/TestServlet.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfig; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryAltfacesConfigTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactory"; - try { - - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - String factName = fcf.getWrapped().getClass().getCanonicalName(); - - if (factName.contains("TCKContextFactory")) { - pw.println("FacesContextFactory Being Used: " + factName); - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/URLClient.java deleted file mode 100644 index 5a73f2c1df..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/URLClient.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfig; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_altfacesconfig_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryAltfacesConfigTest - * - * @assertion_ids: JSF:JAVADOC:6; JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If the JavaServer Faces configuration files - * named by the jakarta.faces.CONFIG_FILES ServletContext init parameter contain - * any factory entries of the given factory class name. - * - */ - public void getFactoryAltfacesConfigTest() throws Fault { - String factoryStyle = "AltfacesConfig"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/alt-faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/alt-faces-config.xml deleted file mode 100644 index 6ee51c835f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/alt-faces-config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactory - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/build.xml deleted file mode 100644 index 33e1de4657..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.war.sun-web.xml deleted file mode 100644 index 0cdaa18a55..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_altfacesconfig_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.xml deleted file mode 100644 index a814e6c96f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfig/jsf_altfacesconfig_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_altfacesconfig - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfig.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - jakarta.faces.CONFIG_FILES - /WEB-INF/alt-faces-config.xml - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/TestServlet.java deleted file mode 100644 index 9d7cbdfef9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/TestServlet.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfiglast; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryAltfacesConfigLastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactoryTwo"; - try { - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - String factName = fcf.getWrapped().getClass().getCanonicalName(); - - if (factName.contains("TCKContextFactoryTwo")) { - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/URLClient.java deleted file mode 100644 index 89a2e5506c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/URLClient.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfiglast; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_altfacesconfiglast_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* - * @testName: getFactoryAltfacesConfigLastTest - * - * @assertion_ids: JSF:JAVADOC:6; JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If the JavaServer Faces configuration files - * named by the jakarta.faces.CONFIG_FILES ServletContext init parameter contain - * any factory entries of the given factory class name. With the last one - * taking precedence. <- being test here - * - */ - public void getFactoryAltfacesConfigLastTest() throws Fault { - String factoryStyle = "AltfacesConfigLast"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/alt-faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/alt-faces-config.xml deleted file mode 100644 index 67d1bdee2d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/alt-faces-config.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactory - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactoryTwo - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/build.xml deleted file mode 100644 index df0f197d78..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/build.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.war.sun-web.xml deleted file mode 100644 index 94640f0283..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_altfacesconfiglast_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.xml deleted file mode 100644 index f483e2838f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/altfacesconfiglast/jsf_altfacesconfiglast_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_altfacesconfiglast - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.altfacesconfiglast.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - jakarta.faces.CONFIG_FILES - /WEB-INF/alt-faces-config.xml - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/build.xml deleted file mode 100644 index 3ba980b355..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/TestServlet.java deleted file mode 100644 index 0e4077e8ba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/TestServlet.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.decorated; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.factories.TCKDecoratedContextFactory; -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryDecoratedTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String expectFactNames = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactoryFour and com.sun.ts.tests.jsf.common." - + "factories.TCKContextFactoryThree"; - - try { - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - TCKDecoratedContextFactory tckFactory = (TCKDecoratedContextFactory) fcf - .getWrapped(); - String factNameFour = tckFactory.getClass().getCanonicalName(); - String factNameThree = tckFactory.getParent(); - - if (factNameThree.contains("TCKContextFactoryThree") - && factNameFour.contains("TCKContextFactoryFour")) { - pw.println("Test PASSED"); - } else { - pw.println("FacesContext Were not Decorated in correct order."); - pw.println("Found: " + factNameThree + " And " + factNameFour); - pw.println("Expected: " + expectFactNames); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/URLClient.java deleted file mode 100644 index 5a8b5f3c32..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/URLClient.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.decorated; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_decorated_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryDecoratedTest - * - * @assertion_ids: JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If any of the factories found on any of the - * steps above happen to have a one-argument constructor, with argument the - * type being the abstract factory class, that constructor is invoked, and the - * previous match is passed to the constructor. - * - */ - public void getFactoryDecoratedTest() throws Fault { - String factoryStyle = "Decorated"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/build.xml deleted file mode 100644 index 714d2c4aff..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/build.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/faces-config.xml deleted file mode 100644 index 09361f2c29..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/faces-config.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactoryThree - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactoryFour - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.war.sun-web.xml deleted file mode 100644 index eaf3a04070..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_decorated_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.xml deleted file mode 100644 index 774885cc26..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/decorated/jsf_decorated_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_factoryfinderdecorated - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.decorated.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/TestServlet.java deleted file mode 100644 index 611a24cfa3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/TestServlet.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.factoryfinder; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.ApplicationFactory; -import jakarta.faces.component.search.SearchExpressionContextFactory; -import jakarta.faces.component.visit.VisitContextFactory; -import jakarta.faces.context.ExceptionHandlerFactory; -import jakarta.faces.context.ExternalContextFactory; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.context.FlashFactory; -import jakarta.faces.context.PartialViewContextFactory; -import jakarta.faces.flow.FlowHandlerFactory; -import jakarta.faces.lifecycle.ClientWindowFactory; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.view.ViewDeclarationLanguageFactory; -import jakarta.faces.view.facelets.FaceletCacheFactory; -import jakarta.faces.view.facelets.TagHandlerDelegateFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void getFactoryTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - String[] factoryTypes = { FactoryFinder.APPLICATION_FACTORY, - FactoryFinder.CLIENT_WINDOW_FACTORY, - FactoryFinder.EXCEPTION_HANDLER_FACTORY, - FactoryFinder.EXTERNAL_CONTEXT_FACTORY, - FactoryFinder.FACELET_CACHE_FACTORY, - FactoryFinder.FACES_CONTEXT_FACTORY, FactoryFinder.FLASH_FACTORY, - FactoryFinder.FLOW_HANDLER_FACTORY, FactoryFinder.LIFECYCLE_FACTORY, - FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY, - FactoryFinder.RENDER_KIT_FACTORY, - FactoryFinder.SEARCH_EXPRESSION_CONTEXT_FACTORY, - FactoryFinder.TAG_HANDLER_DELEGATE_FACTORY, - FactoryFinder.VIEW_DECLARATION_LANGUAGE_FACTORY, - FactoryFinder.VISIT_CONTEXT_FACTORY }; - - Class[] classes = { ApplicationFactory.class, ClientWindowFactory.class, - ExceptionHandlerFactory.class, ExternalContextFactory.class, - FaceletCacheFactory.class, FacesContextFactory.class, - FlashFactory.class, FlowHandlerFactory.class, LifecycleFactory.class, - PartialViewContextFactory.class, RenderKitFactory.class, - SearchExpressionContextFactory.class, TagHandlerDelegateFactory.class, - ViewDeclarationLanguageFactory.class, VisitContextFactory.class }; - - for (int i = 0; i < factoryTypes.length; i++) { - Object o = FactoryFinder.getFactory(factoryTypes[i]); - if (o != null) { - if (classes[i].isAssignableFrom(o.getClass())) { - pw.println("Test PASSED"); - } else { - pw.println(JSFTestUtil.FAIL + " Factory object was not of the " - + "exected type."); - pw.println("Expected: " + classes[i].getName()); - pw.println("Received: " + o.getClass().getName()); - } - } else { - pw.println(JSFTestUtil.FAIL + " Null factory returned when " - + "requesting a factory of type: " + factoryTypes[i]); - } - } - } - - public void getFactoryNullPointerExceptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - FactoryFinder.getFactory(null); - pw.println("Test FAILED: FactoryFinder.getFactory(null) failed to " - + "throw a NullPointerException"); - } catch (NullPointerException npe) { - pw.println("Test PASSED"); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL - + " FactoryFinder.getFactory(null) did NullPointerException."); - e.printStackTrace(); - } - } - - public void getFactoryNoConfiguredIllegalArgumentExceptionTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - FactoryFinder.getFactory("FailingFactory"); - pw.println("Test FAILED: FactoryFinder.getFactory(" - + ") failed to throw an " - + "IllegalArgumentException"); - - } catch (IllegalArgumentException iae) { - pw.println("Test PASSED"); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " FactoryFinder.getFactory(" - + ") did raise an Exception, but not " - + "of the expected type."); - e.printStackTrace(); - } - } - - public void setFactoryNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - FactoryFinder.setFactory(null, "bogus"); - pw.println("Test FAILED: FactoryFinder.setFactory(null, implName) " - + "failed to throw a NullPointerException"); - } catch (NullPointerException npe) { - pw.println("Test PASSED"); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " FactoryFinder.getFactory(null) did " - + "raise an Exception, but not of the expected type."); - pw.println("Expected: java.lang.NullPointerException"); - pw.println("Received: " + e.getClass().getName()); - } - } - - public void setFactoryIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - FactoryFinder.setFactory("bogus", "bogus"); - pw.println("Test FAILED: FactoryFinder.setFactory(bogusName, " - + "implName) failed to throw a IllegalArgumentException"); - } catch (IllegalArgumentException iae) { - pw.println("Test PASSED"); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " FactoryFinder.getFactory(null) did " - + "raise an Exception, but not of the expected type."); - pw.println("Expected: java.lang.IllegalArgumentException"); - pw.println("Received: " + e.getClass().getName()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/URLClient.java deleted file mode 100644 index dc2b221b44..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/URLClient.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.factoryfinder; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_factoryfinder_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run test */ - /* - * @testName: getFactoryTest - * - * @assertion_ids: JSF:JAVADOC:7 - * - * @test_Strategy: Create (if necessary) and return a per-web-application - * instance of the appropriate implementation class for the specified - * JavaServer Faces factory class, based on the discovery algorithm described - * in the class description. - */ - public void getFactoryTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "getFactoryTest"); - invoke(); - } - - /* - * @testName: getFactoryNullPointerExceptionTest - * - * @assertion_ids: JSF:JAVADOC:11 - * - * @test_Strategy: Validate a NullPointerException is thrown if a null - * argument is passed to FactoryFinder.getFactor(); - */ - public void getFactoryNullPointerExceptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "getFactoryNullPointerExceptionTest"); - invoke(); - } - - /* - * @testName: getFactoryNoConfiguredIllegalArgumentExceptionTest - * - * @assertion_ids: JSF:JAVADOC:9 - * - * @test_Strategy: Validate an IllegalArgumentException is thrown when an - * unknown factory name is provided to FactoryFinder.findFactory(). - */ - public void getFactoryNoConfiguredIllegalArgumentExceptionTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "getFactoryNoConfiguredIllegalArgumentExceptionTest"); - invoke(); - } - - /* - * @testName: setFactoryNPETest - * - * @assertion_ids: JSF:JAVADOC:16 - * - * @test_Strategy: Validate a NullPointerException if factoryName is null in - * FactoryFinder.setFactory(factoryName, implName); - */ - public void setFactoryNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "setFactoryNPETest"); - invoke(); - } - - /* - * @testName: setFactoryIAETest - * - * @assertion_ids: JSF:JAVADOC:15 - * - * @test_Strategy: Validate a IllegalArgumentException if factoryName does not - * identify a standard JavaServer Faces factory name in - * FactoryFinder.setFactory(factoryName, implName); - */ - public void setFactoryIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "setFactoryIAETest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/build.xml deleted file mode 100644 index 7f724d50bf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.war.sun-web.xml deleted file mode 100644 index 958179796e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_factoryfinder_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.xml deleted file mode 100644 index 655c578f17..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/factoryfinder/jsf_factoryfinder_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_factoryfinder - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.factoryfinder.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/TestServlet.java deleted file mode 100644 index f78d0d804a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/TestServlet.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainf; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryMetainfTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactory"; - try { - - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - String factName = fcf.getWrapped().getClass().getCanonicalName(); - - if (factName.contains("TCKContextFactory")) { - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/URLClient.java deleted file mode 100644 index 488e97f352..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/URLClient.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainf; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_metainf_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryMetainfTest - * - * @assertion_ids: JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If there are any JavaServer Faces - * configuration files bundled into the META-INF directory of any jars on the - * ServletContext's resource paths, the factory entries of the given factory - * class name in those files are used. - * - */ - public void getFactoryMetainfTest() throws Fault { - String factoryStyle = "Metainf"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/build.xml deleted file mode 100644 index b3fbef3698..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/faces-config.xml deleted file mode 100644 index 6ee51c835f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/faces-config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactory - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_metainf_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_metainf_web.xml deleted file mode 100644 index 9b36d72849..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_metainf_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_factoryfindermetainf - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainf.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_webinf_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_webinf_web.war.sun-web.xml deleted file mode 100644 index 791896fa5c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainf/jsf_webinf_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_metainf_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/TestServlet.java deleted file mode 100644 index 0eed88717d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/TestServlet.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainflast; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryMetainflastTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactoryTwo"; - try { - - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - String factName = fcf.getWrapped().getClass().getCanonicalName(); - - if (factName.contains("TCKContextFactoryTwo")) { - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/URLClient.java deleted file mode 100644 index c865acde58..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/URLClient.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainflast; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_metainflast_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryMetainflastTest - * - * @assertion_ids: JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If there are any JavaServer Faces - * configuration files bundled into the META-INF directory of any jars on the - * ServletContext's resource paths, the factory entries of the given factory - * class name in those files are used, "with the last one taking precedence." - * <-- this being tested here. - * - */ - public void getFactoryMetainflastTest() throws Fault { - String factoryStyle = "Metainflast"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/build.xml deleted file mode 100644 index fce9521efb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/build.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/faces-config.xml deleted file mode 100644 index 67d1bdee2d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/faces-config.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactory - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactoryTwo - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_metainflast_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_metainflast_web.xml deleted file mode 100644 index 7e84b8c057..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_metainflast_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_metainflast - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.metainflast.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_webinflast_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_webinflast_web.war.sun-web.xml deleted file mode 100644 index 9455a1fe6b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/metainflast/jsf_webinflast_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_metainflast_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TCKContextFactory b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TCKContextFactory deleted file mode 100644 index dbd1091217..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TCKContextFactory +++ /dev/null @@ -1 +0,0 @@ -com.sun.ts.tests.jsf.common.factories.TCKContextFactory \ No newline at end of file diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TestServlet.java deleted file mode 100644 index d4bb6ee177..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/TestServlet.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.service; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryServiceTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "TCKContextFactory"; - try { - String factName = FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString(); - - if (factName.contains("TCKContextFactory")) { - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/URLClient.java deleted file mode 100644 index ac1dac0826..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/URLClient.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.service; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_service_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryServiceTest - * - * @assertion_ids: JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that if a Factory is stored in the - * META-INF/services/{factory-class-name} resource is visible to the web - * application class loader for the calling application. - * - */ - public void getFactoryServiceTest() throws Fault { - - String request = GET + CONTEXT_ROOT - + "/TestServlet?testname=getFactoryServiceTest " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactoryServiceTest" - + " failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/build.xml deleted file mode 100644 index d24fe434c8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.war.sun-web.xml deleted file mode 100644 index faea69f145..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_service_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.xml deleted file mode 100644 index c9835e55c4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/service/jsf_service_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_service - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.service.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/TestServlet.java deleted file mode 100644 index 96586c979c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/TestServlet.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.webinf; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.FactoryTCKServlet; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContextFactory; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends FactoryTCKServlet { - - public void getFactoryWebinfTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - String factory = "com.sun.ts.tests.jsf.common.factories." - + "factoryfinderservice.TCKContextFactory"; - try { - FacesContextFactory fcf = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - String factName = fcf.getWrapped().getClass().getCanonicalName(); - - if (factName.contains("TCKContextFactory")) { - pw.println("Test PASSED"); - } else { - pw.println("Wrong FacesContextFactory Being Used"); - pw.println("Found: " + FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY).toString()); - pw.println("Expected: " + factory); - pw.println("Test FAILED."); - } - - } catch (Exception e) { - pw.println("Test FAILED."); - pw.println(e.toString()); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/URLClient.java deleted file mode 100644 index 1f957a1e18..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/URLClient.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.webinf; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.common.webclient.http.HttpRequest; -import com.sun.ts.tests.common.webclient.http.HttpResponse; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_webinf_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* - * @testName: getFactoryWebinfTest - * - * @assertion_ids: JSF:JAVADOC:7; JSF:JAVADOC:14 - * - * @test_Strategy: Validate that If the JavaServer Faces configuration file - * bundled into the WEB-INF directory of the webapp contains a factory entry - * of the given factory class name, that factory is used. - * - */ - public void getFactoryWebinfTest() throws Fault { - String factoryStyle = "Webinf"; - String request = GET + CONTEXT_ROOT + "/TestServlet?testname=getFactory" - + factoryStyle + "Test " + HTTP10; - - System.out.println("REQUEST LINE: " + request); - - HttpRequest req = new HttpRequest(request, _hostname, _port); - HttpResponse res; - - try { - res = req.execute(); - if (!res.getResponseBodyAsString().contains("PASSED")) { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - throw new Fault("[BaseUrlClient] getFactory" + factoryStyle - + "Test failed! Check output for cause of failure."); - } else { - System.out.println("RESPONSE: " + res.getResponseBodyAsString()); - } - - } catch (IOException ioe) { - ioe.printStackTrace(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/build.xml deleted file mode 100644 index 0f4099ee59..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/faces-config.xml deleted file mode 100644 index 6ee51c835f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/faces-config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.common.factories.TCKContextFactory - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.war.sun-web.xml deleted file mode 100644 index 7494604ea1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_webinf_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.xml deleted file mode 100644 index 52274e0747..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinder/webinf/jsf_webinf_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_factoryfinderwebinf - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinder.webinf.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/TestServlet.java deleted file mode 100644 index d3cc277225..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/TestServlet.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinderrelease; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - public void getFactoriesISETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - // release the factory instances allocated in the getFactoryTest - PrintWriter pw = response.getWriter(); - try { - FactoryFinder.releaseFactories(); - FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY); - pw.println("Test FAILED" + JSFTestUtil.NL + "Expected an " - + "IllegalStateException to be thrown, no Exception thrown " - + "at all!."); - } catch (IllegalStateException ise) { - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("Test FAILED" + JSFTestUtil.NL + "Unexpected Exception thrown!" - + JSFTestUtil.NL + "Expected: IllegalStateException" + JSFTestUtil.NL - + "Received: " + JSFTestUtil.NL + e.toString()); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/URLClient.java deleted file mode 100644 index 29726b2c7d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/URLClient.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinderrelease; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_factoryfinderrelease_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run test */ - - /** - * @testName: getFactoriesISETest - * @assertion_ids: JSF:JAVADOC:10; JSF:JAVADOC:12 - * @test_Strategy: Validate FactoryFinder.getFactory() throws an - * IllegalStateException when no factories are configured when - * call is made. We call the Factory.releaseFactories() method - * prior to the getFactory call made above. - */ - public void getFactoriesISETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "getFactoriesISETest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/build.xml deleted file mode 100644 index 9d2042189d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.war.sun-web.xml deleted file mode 100644 index 05a4052922..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_factoryfinderrelease_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.xml deleted file mode 100644 index e8cd9f222d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/factoryfinderrelease/jsf_factoryfinderrelease_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_factoryfinderrelease - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.factoryfinderrelease.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/build.xml deleted file mode 100644 index 0e9ba1ad3e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/TestServlet.java deleted file mode 100644 index f557516741..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/TestServlet.java +++ /dev/null @@ -1,516 +0,0 @@ -/* - * Copyright (c) 2013, 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.flow.flowhandler; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.MethodExpression; -import jakarta.faces.application.Application; -import jakarta.faces.application.NavigationCase; -import jakarta.faces.context.FacesContext; -import jakarta.faces.flow.Flow; -import jakarta.faces.flow.FlowCallNode; -import jakarta.faces.flow.FlowHandler; -import jakarta.faces.flow.FlowNode; -import jakarta.faces.flow.MethodCallNode; -import jakarta.faces.flow.Parameter; -import jakarta.faces.flow.ReturnNode; -import jakarta.faces.flow.SwitchNode; -import jakarta.faces.flow.ViewNode; -import jakarta.faces.lifecycle.ClientWindow; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - public void facesFLowHandlerAddFlowNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext context = getFacesContext(); - Application app = context.getApplication(); - FlowHandler fh = app.getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for addFlow(null, Flow) - JSFTestUtil.checkForNPE(fh, "addFlow", - new Class[] { FacesContext.class, Flow.class }, - new Object[] { null, new TckFlow() }, pw); - - // Test for addFlow(FacesContext, null) - JSFTestUtil.checkForNPE(fh, "addFlow", - new Class[] { FacesContext.class, Flow.class }, - new Object[] { context, null }, pw); - - }// End facesFLowHandlerAddFlowNPETest - - public void facesFLowHandlerGetFlowNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext context = getFacesContext(); - Application app = context.getApplication(); - FlowHandler fh = app.getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for getFlow(null, String, String) - JSFTestUtil.checkForNPE(fh, "getFlow", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { null, "appOne", "flow-a" }, pw); - - // Test for getFlow(FacesContext, null, String) - JSFTestUtil.checkForNPE(fh, "getFlow", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { context, null, "flow-a" }, pw); - - // Test for getFlow(FacesContext, null, String) - JSFTestUtil.checkForNPE(fh, "getFlow", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { context, "appOne", null }, pw); - - }// End facesFLowHandlerGetFlowNPETest - - public void facesFLowHandlerGetCurrentFlowNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FlowHandler fh = getFacesContext().getApplication().getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for addFlow(null) - JSFTestUtil.checkForNPE(fh, "getCurrentFlow", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - - }// End facesFLowHandlerGetCurrentFlowNPETest - - public void facesFLowHandlerTransitionNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FlowHandler fh = getFacesContext().getApplication().getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // .transition(null, Class, Class, Class, String) - JSFTestUtil.checkForNPE(fh, "transition", - new Class[] { FacesContext.class, Flow.class, Flow.class, - FlowCallNode.class, String.class }, - new Object[] { null, new TckFlow(), new TckFlow(), - new TckFlowCallNode(), "flow" }, - pw); - - // .transition(FacesContext, Class, Class, Class, null) - JSFTestUtil.checkForNPE(fh, "transition", - new Class[] { FacesContext.class, Flow.class, Flow.class, - FlowCallNode.class, String.class }, - new Object[] { getFacesContext(), new TckFlow(), new TckFlow(), - new TckFlowCallNode(), null }, - pw); - - }// End facesFLowHandlerTransitionNPETest - - public void facesFLowHandlerIsActiveNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext context = getFacesContext(); - FlowHandler fh = context.getApplication().getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for addFlow(null, String, String) - JSFTestUtil.checkForNPE(fh, "isActive", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { null, "definingDocument", "id" }, pw); - - // Test for addFlow(FacesContext, null, String) - JSFTestUtil.checkForNPE(fh, "isActive", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { context, null, "id" }, pw); - - // Test for addFlow(FacesContext, String, null) - JSFTestUtil.checkForNPE(fh, "isActive", - new Class[] { FacesContext.class, String.class, String.class }, - new Object[] { context, "definingDocument", null }, pw); - - }// End facesFLowHandlerIsActiveNPETest - - public void facesFLowHandlerAddFlowIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext context = getFacesContext(); - Application app = context.getApplication(); - FlowHandler fh = app.getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test to see if the id of the provided Flow is null. - this.checkForIAE(context, fh, new TckFlow(), pw); - - // Test to see if the id of the provided Flow is an empty String. - this.checkForIAE(context, fh, new TckFlowTwo(), pw); - - // Test to see if the definingDocumentId of the provided Flow is null. - this.checkForIAE(context, fh, new TckFlowThree(), pw); - - }// End facesFLowHandlerAddFlowIAETest - - public void facesFLowHandlerClientWindowTransitionNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FlowHandler fh = getFacesContext().getApplication().getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for addFlow(null) - JSFTestUtil.checkForNPE(fh, "clientWindowTransition", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - - }// End facesFLowHandlerClientWindowTransitionNPETest - - public void facesFLowHandlerGetLastDisplayedViewIdNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FlowHandler fh = getFacesContext().getApplication().getFlowHandler(); - - if (fh == null) { - pw.println(JSFTestUtil.FAIL + " getFlowHandler returns null!"); - return; - } - - // Test for addFlow(null) - JSFTestUtil.checkForNPE(fh, "getLastDisplayedViewId", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - - }// End facesFLowHandlerGetLastDisplayedViewIdNPETest - - // ------------------------------ private methods - private void checkForIAE(FacesContext context, FlowHandler handler, Flow flow, - PrintWriter pw) { - - try { - handler.addFlow(context, flow); - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "No Exception thrown!" - + JSFTestUtil.NL + "Expected: IllegalArgumentException"); - - } catch (IllegalArgumentException iea) { - // do nothing test passes - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Wrong Exception" - + "Thrown!" + JSFTestUtil.NL + "Expected: IllegalArgumentException" - + JSFTestUtil.NL + "Received: " + e.getClass().getSimpleName()); - } - } - - // ------------------------------ private classes - - private static class TckFlow extends Flow { - - @Override - public String getId() { - return null; - } - - @Override - public String getDefiningDocumentId() { - return "notNull"; - } - - @Override - public String getStartNodeId() { - return null; - } - - @Override - public MethodExpression getFinalizer() { - return null; - } - - @Override - public MethodExpression getInitializer() { - return null; - } - - @Override - public Map getInboundParameters() { - return null; - } - - @Override - public List getViews() { - return null; - } - - @Override - public Map getReturns() { - return null; - } - - @Override - public Map getSwitches() { - return null; - } - - @Override - public Map getFlowCalls() { - return null; - } - - @Override - public FlowCallNode getFlowCall(Flow targetFlow) { - return null; - } - - @Override - public List getMethodCalls() { - return null; - } - - @Override - public FlowNode getNode(String nodeId) { - return null; - } - - @Override - public String getClientWindowFlowId(ClientWindow curWindow) { - return null; - } - - @Override - public Map> getNavigationCases() { - return null; - } - - }// End TckFlow - - private static class TckFlowTwo extends Flow { - - @Override - public String getId() { - return ""; - } - - @Override - public String getDefiningDocumentId() { - return "TckFlowTwo"; - } - - @Override - public String getStartNodeId() { - return null; - } - - @Override - public MethodExpression getFinalizer() { - return null; - } - - @Override - public MethodExpression getInitializer() { - return null; - } - - @Override - public Map getInboundParameters() { - return null; - } - - @Override - public List getViews() { - return null; - } - - @Override - public Map getReturns() { - return null; - } - - @Override - public Map getSwitches() { - return null; - } - - @Override - public Map getFlowCalls() { - return null; - } - - @Override - public FlowCallNode getFlowCall(Flow targetFlow) { - return null; - } - - @Override - public List getMethodCalls() { - return null; - } - - @Override - public FlowNode getNode(String nodeId) { - return null; - } - - @Override - public String getClientWindowFlowId(ClientWindow curWindow) { - return null; - } - - @Override - public Map> getNavigationCases() { - return null; - } - - }// End TckFlowTwo - - private static class TckFlowThree extends Flow { - - @Override - public String getId() { - return "123"; - } - - @Override - public String getDefiningDocumentId() { - return null; - } - - @Override - public String getStartNodeId() { - return null; - } - - @Override - public MethodExpression getFinalizer() { - return null; - } - - @Override - public MethodExpression getInitializer() { - return null; - } - - @Override - public Map getInboundParameters() { - return null; - } - - @Override - public List getViews() { - return null; - } - - @Override - public Map getReturns() { - return null; - } - - @Override - public Map getSwitches() { - return null; - } - - @Override - public Map getFlowCalls() { - return null; - } - - @Override - public FlowCallNode getFlowCall(Flow targetFlow) { - return null; - } - - @Override - public List getMethodCalls() { - return null; - } - - @Override - public FlowNode getNode(String nodeId) { - return null; - } - - @Override - public String getClientWindowFlowId(ClientWindow curWindow) { - return null; - } - - @Override - public Map> getNavigationCases() { - return null; - } - - }// End TckFlowThree - - private static class TckFlowCallNode extends FlowCallNode { - - @Override - public Map getOutboundParameters() { - return null; - } - - @Override - public String getCalledFlowDocumentId(FacesContext context) { - return null; - } - - @Override - public String getCalledFlowId(FacesContext context) { - return null; - } - - @Override - public String getId() { - return null; - } - - } // End TckFlowCallNode -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/URLClient.java deleted file mode 100644 index 2885f7624e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/URLClient.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.flow.flowhandler; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_flowhandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFLowHandlerAddFlowNPETest - * @assertion_ids: JSF:JAVADOC:2960 - * @test_Strategy: Verify that a NullPointer is thrown if any of the - * parameters are null - * - */ - public void facesFLowHandlerAddFlowNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerAddFlowNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerGetFlowNPETest - * @assertion_ids: JSF:JAVADOC:2972 - * @test_Strategy: Verify that a NullPointer is thrown if any of the - * parameters are null - * - */ - public void facesFLowHandlerGetFlowNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerGetFlowNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerGetCurrentFlowNPETest - * @assertion_ids: JSF:JAVADOC:2968 - * @test_Strategy: Verify that a NullPointer is thrown if any of the - * parameters are null - * - */ - public void facesFLowHandlerGetCurrentFlowNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerGetCurrentFlowNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerTransitionNPETest - * @assertion_ids: JSF:JAVADOC:2980 - * @test_Strategy: Verify that a NullPointer is thrown if FacesContext or - * toViewID is null. - * - */ - public void facesFLowHandlerTransitionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerTransitionNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerIsActiveNPETest - * @assertion_ids: JSF:JAVADOC:2976 - * @test_Strategy: Verify that a NullPointer is thrown if any of the - * parameters are null - * - */ - public void facesFLowHandlerIsActiveNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerIsActiveNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerAddFlowIAETest - * @assertion_ids: JSF:JAVADOC:2962; JSF:JAVADOC:2963 - * @test_Strategy: Verify that an IllegalArgumentException is thrown if the - * {@code id} of the flow to add is {@code null} or the empty - * string. - * - * Verify that an IllegalArgumentException if the - * {@code definingDocumentId} of the {@code toAdd} is - * {@code null}. - * - */ - public void facesFLowHandlerAddFlowIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "facesFLowHandlerGetFlowNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerClientWindowTransitionNPETest - * @assertion_ids: JSF:JAVADOC:2965 - * @test_Strategy: Verify that a NullPointer is thrown if context is null. - * - */ - public void facesFLowHandlerClientWindowTransitionNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesFLowHandlerClientWindowTransitionNPETest"); - invoke(); - } - - /** - * @testName: facesFLowHandlerGetLastDisplayedViewIdNPETest - * @assertion_ids: JSF:JAVADOC:2974 - * @test_Strategy: Verify that a NullPointer is thrown if context is null. - * - */ - public void facesFLowHandlerGetLastDisplayedViewIdNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "facesFLowHandlerGetLastDisplayedViewIdNPETest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/build.xml deleted file mode 100644 index 792081403a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/faces-config.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/faces-config.xml deleted file mode 100644 index cc2cb31062..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/faces-config.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.war.sun-web.xml deleted file mode 100644 index 1ecddd480f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.war.sun-web.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jsf_flowhandler_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.xml deleted file mode 100644 index 3cb5ecc25c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/flow/flowhandler/jsf_flowhandler_web.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - jsf_flowhandler - - com.sun.faces.validateXml - true - - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.flow.flowhandler.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/build.xml deleted file mode 100644 index 5b88783229..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/TestServlet.java deleted file mode 100644 index dfb89891b2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/TestServlet.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecycle; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - private Lifecycle getLifecycle() { - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - - return factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - } - - // ------------------------------------------------ Test Methods - - public void lifecycleAddGetRemovePhaseListenersTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - TCKPhaseListener listener = new TCKPhaseListener("id", PhaseId.ANY_PHASE); - - Lifecycle lifecycle = getLifecycle(); - - // clear the listeners out - PhaseListener[] listeners = lifecycle.getPhaseListeners(); - for (int i = 0; i < listeners.length; i++) { - lifecycle.removePhaseListener(listeners[i]); - } - - lifecycle.addPhaseListener(listener); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 1) { - out.println( - JSFTestUtil.FAIL + " Expected the number of listeners returned" - + " by getPhaseListeners() to be 1."); - out.println("Number received: " + listeners.length); - return; - } - - lifecycle - .removePhaseListener(new TCKPhaseListener("id1", PhaseId.ANY_PHASE)); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 1) { - out.println("Test FAILED[2]. Expected the number of listeners returned" - + " by getPhaseListeners() to be 1."); - out.println("Number received: " + listeners.length); - return; - } - - lifecycle.removePhaseListener(listener); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 0) { - out.println( - JSFTestUtil.FAIL + " Expected the number of listeners returned" - + " by getPhaseListeners() to be 0."); - out.println("Number received: " + listeners.length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleAddPhaseListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Lifecycle lifecycle = getLifecycle(); - - JSFTestUtil.checkForNPE(lifecycle, "addPhaseListener", - new Class[] { PhaseListener.class }, new Object[] { null }, pw); - } - - public void lifecycleRemovePhaseListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Lifecycle lifecycle = getLifecycle(); - - JSFTestUtil.checkForNPE(lifecycle, "removePhaseListener", - new Class[] { PhaseListener.class }, new Object[] { null }, pw); - } - - public void lifecycleExecuteNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Lifecycle lifecycle = getLifecycle(); - - JSFTestUtil.checkForNPE(lifecycle, "execute", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - } - - public void lifecycleRenderNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - Lifecycle lifecycle = getLifecycle(); - - JSFTestUtil.checkForNPE(lifecycle, "render", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - } - - // ------------------------------------------------ Private Classes - - private static class TCKPhaseListener implements PhaseListener { - - private String id; - - private PhaseId phaseId; - - private StringBuffer log; - - private TCKPhaseListener() { - } - - public TCKPhaseListener(String id, PhaseId phaseId) { - this.id = id; - this.phaseId = phaseId; - log = new StringBuffer(); - } - - public void afterPhase(PhaseEvent event) { - log.append("/A" + id + '@' + JSFTestUtil.getPhaseIdAsString(phaseId)); - } - - public void beforePhase(PhaseEvent event) { - log.append("/B" + id + '@' + JSFTestUtil.getPhaseIdAsString(phaseId)); - } - - public PhaseId getPhaseId() { - return phaseId; - } - - public String getTrace() { - return log.toString(); - } - - public void resetTrace() { - log = new StringBuffer(); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/URLClient.java deleted file mode 100644 index 7507a75d30..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/URLClient.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecycle; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_lifecycle_life_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: lifecycleAddGetRemovePhaseListenersTest - * @assertion_ids: JSF:JAVADOC:1898; JSF:JAVADOC:1892; JSF:JAVADOC:1897; - * JSF:JAVADOC:1899 - * @test_Strategy: Verify PhaseListeners can be added, retrieved, and removed. - */ - public void lifecycleAddGetRemovePhaseListenersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleAddGetRemovePhaseListenersTest"); - invoke(); - } - - /** - * @testName: lifecycleAddPhaseListenerNPETest - * @assertion_ids: JSF:JAVADOC:1898; JSF:JAVADOC:1893 - * @test_Strategy: Verify NPE is thrown if attempting to add a null - * PhaseListener to the Lifecycle. - */ - public void lifecycleAddPhaseListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleAddPhaseListenerNPETest"); - invoke(); - } - - /** - * @testName: lifecycleRemovePhaseListenerNPETest - * @assertion_ids: JSF:JAVADOC:1898; JSF:JAVADOC:1900 - * @test_Strategy: Verify NPE is thrown if attempting to remove a - * PhaseListener using a null argument. - */ - public void lifecycleRemovePhaseListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleRemovePhaseListenerNPETest"); - invoke(); - } - - /** - * @testName: lifecycleExecuteNPETest - * @assertion_ids: JSF:JAVADOC:1898; JSF:JAVADOC:1896 - * @test_Strategy: Verify NPE is thrown if FacesContext arg is null. - */ - public void lifecycleExecuteNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleExecuteNPETest"); - invoke(); - } - - /** - * @testName: lifecycleRenderNPETest - * @assertion_ids: JSF:JAVADOC:1898; JSF:JAVADOC:1903 - * @test_Strategy: Verify NPE is thrown if FacesContext arg is null. - */ - public void lifecycleRenderNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleRenderNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/build.xml deleted file mode 100644 index faa85b6512..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.war.sun-web.xml deleted file mode 100644 index b26ffafde6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_lifecycle_life_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.xml deleted file mode 100644 index 7c7727ca37..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecycle/jsf_lifecycle_life_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_lifecycle_life - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecycle.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/TestServlet.java deleted file mode 100644 index 625735f5e0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/TestServlet.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclefactory; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FacesException; -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.PhaseListener; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - private LifecycleFactory getFactory() { - return (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - } - - // ------------------------------------------------------- Test Methods - - public void lifecycleFactoryGetLifecycleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - LifecycleFactory factory = getFactory(); - Lifecycle lifecycle = factory - .getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - - if (lifecycle == null) { - out.println(JSFTestUtil.FAIL + " Using getLifecycle() to request" - + " the default Lifecycle instance of the application" - + " returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleFactoryGetLifecycleIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - LifecycleFactory factory = getFactory(); - - try { - factory.getLifecycle("totallyinvalidlifecycleid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when passing" - + " a lifecycle ID for which there is no lifecycle registered."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception throw when passing" - + " an unregistered lifecycle ID, but it wasn't an instance" - + " of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleFactoryAddLifecycleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - LifecycleFactory factory = getFactory(); - - Lifecycle lifecycle = new TCKLifecycle(); - factory.addLifecycle("tcklifecycle", lifecycle); - - // make sure it can be obtained via a call to getLifecycle(String) - Lifecycle retLife = factory.getLifecycle("tcklifecycle"); - if (lifecycle != retLife) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Added new lifecycle via call to " - + "addLifecycle(String, Lifecycle), but the lifecycle was" - + "not returned as expected by a call to " + "getLifecycle(String)"); - out.println("Expected: " + lifecycle.getClass().getSimpleName()); - out.println("Received: " + retLife.getClass().getSimpleName()); - return; - } - - try { - factory.addLifecycle("tcklifecycle", new TCKLifecycle()); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " No Exception thrown when attempting" - + "to add a Lifecycle using an ID that already exists."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + " Exception thrown when attempting" - + " to add a Lifecycle using an ID that has already " - + "been registerd, but it wasn't an instance of" - + " IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleFactoryGetLifecycleIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - LifecycleFactory factory = getFactory(); - - Lifecycle lifecycle = new TCKLifecycle(); - factory.addLifecycle("tcklifecycle2", lifecycle); - - int count = 0; - List ids = new ArrayList(); - - List expectedIds = new ArrayList(); - expectedIds.add(LifecycleFactory.DEFAULT_LIFECYCLE); - expectedIds.add("tcklifecycle2"); - - for (Iterator i = factory.getLifecycleIds(); i.hasNext();) { - ids.add(i.next()); - count++; - } - - if (count < 2) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected at least 2 registered" + " lifecycle IDs to be retured."); - out.println("Actual count: " + count); - return; - } - - if (!ids.containsAll(expectedIds)) { - out.println("The Iterator returned by getLifecycleIds() didn't" - + " return all of the expected results." + JSFTestUtil.NL - + "Expected Iterator to contain at least the following: " + "'" - + LifecycleFactory.DEFAULT_LIFECYCLE + "', '" + "tcklifecycle2'" - + JSFTestUtil.NL + "Lifecycle IDs recevied: " - + JSFTestUtil.getAsString(factory.getLifecycleIds())); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleFactoryAddLifecycleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LifecycleFactory factory = getFactory(); - Lifecycle cycle = factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - - // null lifecycleId - JSFTestUtil.checkForNPE(factory, "addLifecycle", - new Class[] { String.class, Lifecycle.class }, - new Object[] { null, cycle }, pw); - - // null lifecycle - JSFTestUtil.checkForNPE(factory, "addLifecycle", - new Class[] { String.class, Lifecycle.class }, - new Object[] { "abc", null }, pw); - } - - public void lifecycleFactoryGetLifecycleNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LifecycleFactory factory = getFactory(); - - // null lifecycleId - JSFTestUtil.checkForNPE(factory, "getLifecycle", - new Class[] { String.class }, new Object[] { null }, pw); - } - - public void lifecycleFactoryGetWrappedNullTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - LifecycleFactory factory = getFactory().getWrapped(); - - if (factory == null) { - out.println(JSFTestUtil.PASS); - return; - } - - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The default of LifecycleFactory.getWrapped() should return " - + "null!"); - } - - // --------------------------------------------------------- Private Classes - - private static class TCKLifecycle extends Lifecycle { - - public void render(FacesContext context) throws FacesException { - // no-op - } - - public void addPhaseListener(PhaseListener listener) { - // no-op - } - - public void execute(FacesContext context) throws FacesException { - // no-op - } - - public PhaseListener[] getPhaseListeners() { - return new PhaseListener[0]; - } - - public void removePhaseListener(PhaseListener listener) { - // no-op - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/URLClient.java deleted file mode 100644 index c951ea0c0b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclefactory; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_lifecycle_lifefactory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: lifecycleFactoryGetLifecycleTest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1907 - * @test_Strategy: Ensure a reference to the default lifecycle object can be - * obtained from he LifecycleFactory object. - */ - public void lifecycleFactoryGetLifecycleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryGetLifecycleTest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryGetLifecycleIAETest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1908 - * @test_Strategy: Ensure an IllegalArgumentException is thrown when passing - * an invalid lifecycle ID (i.e. the ID was not registered). - */ - public void lifecycleFactoryGetLifecycleIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryGetLifecycleIAETest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryAddLifecycleTest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1904; JSF:JAVADOC:1908 - * @test_Strategy: Ensure a Lifecycle can be registered with the - * LifecycleFactory and then obtained via getLifecycle using - * the new ID. - * - * Ensure an IllegalArgumentException is thrown when a - * Lifecycle with the specified lifecycleId has already been - * registered - */ - public void lifecycleFactoryAddLifecycleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryAddLifecycleTest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryGetLifecycleIdsTest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1910 - * @test_Strategy: Ensure getLifecycleIds() returns an Iterator with all of - * the expected registered IDs. - */ - public void lifecycleFactoryGetLifecycleIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryGetLifecycleIdsTest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryAddLifecycleNPETest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1906 - * @test_Strategy: Ensure NullPointerException is thrown if lifecycleId or - * lifecycle is null. - */ - public void lifecycleFactoryAddLifecycleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryAddLifecycleNPETest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryGetLifecycleNPETest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1909 - * @test_Strategy: Ensure NullPointerException is thrown if lifecycleId is - * null. - */ - public void lifecycleFactoryGetLifecycleNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryGetLifecycleNPETest"); - invoke(); - } - - /** - * @testName: lifecycleFactoryGetWrappedNullTest - * @assertion_ids: JSF:JAVADOC:1912; JSF:JAVADOC:1911 - * @test_Strategy: Ensure A default implementation is provided that returns - * null. - */ - public void lifecycleFactoryGetWrappedNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleFactoryGetWrappedNullTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/build.xml deleted file mode 100644 index 5c177d6d5f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.war.sun-web.xml deleted file mode 100644 index 199484f765..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_lifecycle_lifefactory_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.xml deleted file mode 100644 index fef21c908a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclefactory/jsf_lifecycle_lifefactory_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_lifecycle_lifefactory - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclefactory.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/TestServlet.java deleted file mode 100644 index 0d83571f64..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/TestServlet.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclewrapper; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.faces.lifecycle.LifecycleWrapper; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------------------- Test Methods - - public void lifecycleWpprAddGetRemovePhaseListenersTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - TCKPhaseListener listener = new TCKPhaseListener("id", PhaseId.ANY_PHASE); - - Lifecycle lifecycle = new TCKLifecycleWrapper().getWrapped(); - - // clear the listeners out - PhaseListener[] listeners = lifecycle.getPhaseListeners(); - for (int i = 0; i < listeners.length; i++) { - lifecycle.removePhaseListener(listeners[i]); - } - - lifecycle.addPhaseListener(listener); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 1) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected the number of listeners returned " - + "by getPhaseListeners() to be 1. " + JSFTestUtil.NL - + "Number received: " + listeners.length); - return; - } - - lifecycle - .removePhaseListener(new TCKPhaseListener("id1", PhaseId.ANY_PHASE)); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 1) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected the number of listeners " - + "returned by getPhaseListeners() to be 1." + JSFTestUtil.NL - + "Number received: " + listeners.length); - return; - } - - lifecycle.removePhaseListener(listener); - - listeners = lifecycle.getPhaseListeners(); - if (listeners.length != 0) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected the number of listeners returned " - + "by getPhaseListeners() to be 0. " + JSFTestUtil.NL - + "Number received: " + listeners.length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleWpprAddPhaseListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Lifecycle lifecycle = new TCKLifecycleWrapper().getWrapped(); - - try { - lifecycle.addPhaseListener(null); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "No exception thrown when attemtping to " - + "add a null PhaseListener to the current Lifecycle."); - return; - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Wrong Exception thrown when attempting to " - + "add a null PhaseListener to the current Lifecycle. " - + JSFTestUtil.NL + "Expected: NullPointerException." + JSFTestUtil.NL - + "Received: " + e.getClass().getName()); - } - - } - - public void lifecycleWpprRemovePhaseListenerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Lifecycle lifecycle = new TCKLifecycleWrapper().getWrapped(); - - try { - lifecycle.removePhaseListener(null); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "No exception thrown when attemtping to " - + "provide a null argument to remove a PhaseListener."); - return; - } catch (Exception e) { - if (!(e instanceof NullPointerException)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown when attempting to " - + "provide a null argument to remove a PhaseListener " - + "from the the current Lifecycle, but it wasn't an " - + "instance of NullPointerException." + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void lifecycleWpprRenderNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - Lifecycle lifecycle = new TCKLifecycleWrapper().getWrapped(); - - try { - lifecycle.render(null); - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "No exception thrown when attemtping to " - + "render while passing in a null for FacesContext."); - return; - - } catch (NullPointerException npe) { - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Wrong Exception thrown when attempting to " - + "render while passing in a null for FacesContext. " + JSFTestUtil.NL - + "Expected: NullPointerException." + JSFTestUtil.NL + "Received: " - + e.getClass().getName()); - } - - } - // --------------------------------------------------------- Private Classes - - private static class TCKPhaseListener implements PhaseListener { - - private String id; - - private PhaseId phaseId; - - private StringBuffer log; - - private TCKPhaseListener() { - } - - public TCKPhaseListener(String id, PhaseId phaseId) { - this.id = id; - this.phaseId = phaseId; - log = new StringBuffer(); - } - - public void afterPhase(PhaseEvent event) { - log.append("/A" + id + '@' + JSFTestUtil.getPhaseIdAsString(phaseId)); - } - - public void beforePhase(PhaseEvent event) { - log.append("/B" + id + '@' + JSFTestUtil.getPhaseIdAsString(phaseId)); - } - - public PhaseId getPhaseId() { - return phaseId; - } - - public String getTrace() { - return log.toString(); - } - - public void resetTrace() { - log = new StringBuffer(); - } - - } - - private static class TCKLifecycleWrapper extends LifecycleWrapper { - - @Override - public Lifecycle getWrapped() { - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - - return factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/URLClient.java deleted file mode 100644 index b3dbe68f44..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/URLClient.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclewrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_lifecycle_lifecyclewppr_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: lifecycleWpprAddGetRemovePhaseListenersTest - * @assertion_ids: JSF:JAVADOC:2768; JSF:JAVADOC:2774; JSF:JAVADOC:2777; - * JSF:JAVADOC:2775 - * @test_Strategy: Verify PhaseListeners can be added, retrieved, and removed. - */ - public void lifecycleWpprAddGetRemovePhaseListenersTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "lifecycleWpprAddGetRemovePhaseListenersTest"); - invoke(); - } - - /** - * @testName: lifecycleWpprAddPhaseListenerNPETest - * @assertion_ids: JSF:JAVADOC:2775;JSF:JAVADOC:2769 - * @test_Strategy: Verify NPE is thrown if attempting to add a null - * PhaseListener to the Lifecycle. - */ - public void lifecycleWpprAddPhaseListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleWpprAddPhaseListenerNPETest"); - invoke(); - } - - /** - * @testName: lifecycleWpprRemovePhaseListenerNPETest - * @assertion_ids: JSF:JAVADOC:2775; JSF:JAVADOC:2778 - * @test_Strategy: Verify NPE is thrown if attempting to remove a - * PhaseListener using a null argument. - */ - public void lifecycleWpprRemovePhaseListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleWpprRemovePhaseListenerNPETest"); - invoke(); - } - - /** - * @testName: lifecycleWpprRenderNPETest - * @assertion_ids: JSF:JAVADOC:2775; JSF:JAVADOC:2781 - * @test_Strategy: Verify NPE is thrown if attempting to render a response - * when context is null. - */ - public void lifecycleWpprRenderNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lifecycleWpprRenderNPETest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/build.xml deleted file mode 100644 index 1377c31983..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.war.sun-web.xml deleted file mode 100644 index d6c083dd9b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.war.sun-web.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jsf_lifecycle_lifecyclewppr_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.xml deleted file mode 100644 index 44293d22e7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/lifecycle/lifecyclewrapper/jsf_lifecycle_lifecyclewppr_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - jsf_lifecycle_lifecyclewppr - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.lifecycle.lifecyclewrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/TestServlet.java deleted file mode 100644 index 9ac1760d8b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/TestServlet.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.arraydatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.ArrayDataModel; -import jakarta.faces.model.DataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new ArrayDataModel(); - } - - public void initDataModel(DataModel model) { - List list = new ArrayList(); - for (int i = 0; i < 10; i++) { - list.add(new TestBean()); - } - setBeansList(list); - model.setWrappedData(list.toArray()); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void arrayDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new ArrayDataModel(new String[] { "string1", "string2" }); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + " Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor."); - out.println("Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - Object[] strArray = { "string1", "string2" }; - - model.setWrappedData(strArray); - - Object[] ret = (Object[]) model.getWrappedData(); - - if (!Arrays.equals(strArray, ret)) { - out.println(JSFTestUtil.FAIL + " The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()."); - out.println("Expected: " + Arrays.toString(strArray)); - out.println("Received: " + Arrays.toString(ret)); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelSetWrappedDataCCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - try { - model.setWrappedData("invalid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when attempting" - + " to call setWrappedData() with an invalid type."); - return; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling" - + " setWrappedData() with an invalid type, but it wasn't" - + " an instance of ClassCastException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/URLClient.java deleted file mode 100644 index 298f60ed94..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/URLClient.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.arraydatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_arraydm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: arrayDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:1913 - * @test_Strategy: Verify that creation of an ArrayDataModel instance results - * in the data being passed to the ctor to be wrapped. - */ - public void arrayDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "arrayDataModelCtorTest"); - invoke(); - } - - /** - * @testName: dataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:1941; JSF:JAVADOC:1950;JSF:JAVADOC:1914; - * JSF:JAVADOC:1928 - * @test_Strategy: Verify the data set by setWrappedData() is properly - * returned by getWrappedData(). - */ - public void dataModelGetSetWrappedDataTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetSetWrappedDataTest"); - invoke(); - } - - /** - * @testName: dataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1913; JSF:JAVADOC:1930; JSF:JAVADOC:1933; - * JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: dataModelGetRowCountTest - * @assertion_ids: JSF:JAVADOC:1934; JSF:JAVADOC:1915 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void dataModelGetRowCountTest() throws EETest.Fault { - super.dataModelGetRowCountTest(); - } - - /** - * @testName: dataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:1938; JSF:JAVADOC:1919 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: dataModelGetRowDataTest - * @assertion_ids: JSF:JAVADOC:1936; JSF:JAVADOC:1917 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void dataModelGetRowDataTest() throws EETest.Fault { - super.dataModelGetRowDataTest(); - } - - /** - * @testName: dataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:1939; JSF:JAVADOC:1947; JSF:JAVADOC:1925 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: dataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:1942; JSF:JAVADOC:1923 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: dataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1932; JSF:JAVADOC:1933; JSF:JAVADOC:1947; - * JSF:JAVADOC:1930; JSF:JAVADOC:1925 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: dataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:1949; JSF:JAVADOC:1927 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: dataModelSetWrappedDataCCETest - * @assertion_ids: JSF:JAVADOC:1951; JSF:JAVADOC:1929 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void dataModelSetWrappedDataCCETest() throws EETest.Fault { - super.dataModelSetWrappedDataCCETest(); - } - - /** - * @testName: dataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelRemoveDataModelListenerNPETest() throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: dataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelAddDataModelListenerNPETest() throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/build.xml deleted file mode 100644 index 235497fc43..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.war.sun-web.xml deleted file mode 100644 index 8e5c60a82b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_arraydm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.xml deleted file mode 100644 index d5be5b77ec..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/arraydatamodel/jsf_model_arraydm_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_arraydm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.arraydatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/build.xml deleted file mode 100644 index a0be0d20a3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/TestServlet.java deleted file mode 100644 index b65ff2645e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/TestServlet.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.collectiondatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.CollectionDataModel; -import jakarta.faces.model.DataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new CollectionDataModel(); - } - - public void initDataModel(DataModel model) { - List list = new ArrayList(); - for (int i = 0; i < 10; i++) { - list.add(new TestBean()); - } - setBeansList(list); - model.setWrappedData(list); - } - - // ------------------------------------------- Test Methods - - public void collectionDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new CollectionDataModel( - Arrays.asList(new String[] { "string1", "string2" })); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + "! Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor." + JSFTestUtil.NL - + "Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + "! Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - List list = new ArrayList(); - list.add("string1"); - list.add("string2"); - - model.setWrappedData(list); - - Object ret = model.getWrappedData(); - - if (!list.equals(ret)) { - out.println( - JSFTestUtil.FAIL + "! The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()." - + JSFTestUtil.NL + "Expected: " + list + JSFTestUtil.NL - + "Received: " + ret); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelSetWrappedDataCCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - try { - model.setWrappedData("invalid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when attempting" - + " to call setWrappedData() with an invalid type."); - return; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - out.println(JSFTestUtil.FAIL + "! Exception thrown when calling" - + " setWrappedData() with an invalid type, but it wasn't" - + " an instance of ClassCastException." + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/URLClient.java deleted file mode 100644 index 7ca2c78eb2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/URLClient.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.collectiondatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_collectiondm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: CollectionDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:2782; JSF:JAVADOC:2783 - * @test_Strategy: Verify that creation of a CollectionDataModel instance - * results in the data being passed to the ctor to be wrapped. - */ - public void CollectionDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "CollectionDataModelCtorTest"); - invoke(); - } - - /** - * @testName: dataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: dataModelGetRowCountTest - * @assertion_ids: JSF:JAVADOC:2784 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void dataModelGetRowCountTest() throws EETest.Fault { - super.dataModelGetRowCountTest(); - } - - /** - * @testName: dataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:2788 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: dataModelGetRowDataTest - * @assertion_ids: JSF:JAVADOC:2786 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void dataModelGetRowDataTest() throws EETest.Fault { - super.dataModelGetRowDataTest(); - } - - /** - * @testName: dataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:2789; JSF:JAVADOC:2794 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: dataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:2791; JSF:JAVADOC:2797 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned - * from getWrappedData(). - */ - public void dataModelGetSetWrappedDataTest() throws EETest.Fault { - super.dataModelGetSetWrappedDataTest(); - } - - /** - * @testName: dataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:2792 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: dataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1970; JSF:JAVADOC:1972 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: dataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:2796 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: dataModelSetWrappedDataCCETest - * @assertion_ids: JSF:JAVADOC:2798 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void dataModelSetWrappedDataCCETest() throws EETest.Fault { - super.dataModelSetWrappedDataCCETest(); - } - - /** - * @testName: dataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelRemoveDataModelListenerNPETest() throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: dataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelAddDataModelListenerNPETest() throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/build.xml deleted file mode 100644 index ef3e56fbc2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.war.sun-web.xml deleted file mode 100644 index e02485d89c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.war.sun-web.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jsf_model_collectiondm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.xml deleted file mode 100644 index dd230a7d10..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/collectiondatamodel/jsf_model_collectiondm_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - jsf_model_collectiondm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.collectiondatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/BaseModelTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/BaseModelTestServlet.java deleted file mode 100644 index 9ed60a55da..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/BaseModelTestServlet.java +++ /dev/null @@ -1,480 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.DataModel; -import jakarta.faces.model.DataModelEvent; -import jakarta.faces.model.DataModelListener; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public abstract class BaseModelTestServlet extends HttpTCKServlet { - - protected List beans; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public abstract DataModel createDataModel(); - - public abstract void initDataModel(DataModel model); - - protected void setBeansList(List beans) { - this.beans = beans; - } - - // ------------------------------------------ Test Methods - - public void dataModelAddGetRemoveDataModelListenerTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - TCKDataListener listener = new TCKDataListener(); - - DataModelListener[] listeners = data.getDataModelListeners(); - - if (listeners.length != 0) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "DataModel.getDataModelListeners() returned a " - + "non-empty array of listeners."); - return; - } - - data.addDataModelListener(listener); - - listeners = data.getDataModelListeners(); - - if (listeners.length != 1) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "DataModel.getDataModelListeners() returned an " - + "unexpected value after adding a single " + "DataModelListener." - + JSFTestUtil.NL + "Expected: 1" + JSFTestUtil.NL + "Received: " - + listeners.length); - return; - } - - data.removeDataModelListener(new TCKDataListener()); - listeners = data.getDataModelListeners(); - - if (listeners.length != 1) { - out.println(JSFTestUtil.FAIL + " DataModel.getDataModelListeners()" - + " returned an unexpected value after attempting to remove" - + " a listener that wasn't already added to the DataModel"); - out.println("Expected: 1"); - out.println("Received: " + listeners.length); - return; - } - - data.removeDataModelListener(listener); - listeners = data.getDataModelListeners(); - - if (listeners.length != 0) { - out.println(JSFTestUtil.FAIL + " DataModel.getDataModelListeners()" - + " returned an unexpected value after removing a single" - + " DataModelListener."); - out.println("Expected: 0"); - out.println("Received: " + listeners.length); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelIsRowAvailableTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - // Model with no wrapped data source, isRowAvailable() must return - // false. - if (data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.isRowAvailable() to " - + "return false if the DataModel object didn't wrap" - + " an underlying data source."); - return; - } - - data = createDataModel(); - initDataModel(data); - - data.setRowIndex(0); - - if (!data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.isRowAvailable() to" - + " return true when row index was within a valid range."); - return; - } - - // next, set the row inex out of range. isRowAvailable() should - // return false. - data.setRowIndex(11); - if (data.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.isRowAvailable() to" - + " return false when specified row index was out of" + " range."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetRowCountTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - // There is no backing data in the DataModel instance, - // so getRowCount() should return 01 - int result = data.getRowCount(); - if (result != -1) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.getRowCount() to" - + " return -1 if no data was available on the Model " + "tier."); - out.println("Row count received: " + result); - return; - } - - data = createDataModel(); - initDataModel(data); - - // backing DataModel instance has 10 objects, therefore getRowCount() - // should return 10. - result = data.getRowCount(); - if (result != 10) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.getRowCount() to " - + "return 10."); - out.println("Row count received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetRowIndexTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - // no index has been specified, so getRowIndex() should return -1 - int result = data.getRowIndex(); - if (result != -1) { - out.println( - JSFTestUtil.FAIL + " Expected DataModel.getRowIndex() to return" - + " -1 when no backing data has been specified."); - out.println("Value received: " + result); - return; - } - - data.setRowIndex(0); - - if (data.getRowIndex() != 0) { - out.println(JSFTestUtil.FAIL + " DataModel.getRowIndex() didn't return" - + " the value as set by DataModel.setRowIndex()."); - out.println("Expected: 0"); - out.println("Received: " + data.getRowIndex()); - } - - data.setRowIndex(-1); - - if (data.getRowIndex() != -1) { - out.println(JSFTestUtil.FAIL + " DataModel.getRowIndex() didn't return" - + " the value as set by DataModel.setRowIndex()."); - out.println("Expected: -1"); - out.println("Received: " + data.getRowIndex()); - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelSetRowIndexIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - initDataModel(data); - - try { - data.setRowIndex(-2); - out.println("No Exception thrown when trying to set the row index" - + " to a value less then -1."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when trying" - + " to set the row index to a value less than 1" - + ", but it wasn't an instance of" + " IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelRemoveDataModelListenerNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - DataModel data = createDataModel(); - - JSFTestUtil.checkForNPE(data, "removeDataModelListener", - new Class[] { DataModelListener.class }, new Object[] { null }, pw); - - } - - public void dataModelAddDataModelListenerNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - DataModel data = createDataModel(); - - JSFTestUtil.checkForNPE(data, "addDataModelListener", - new Class[] { DataModelListener.class }, new Object[] { null }, pw); - - } - - public void dataModelGetRowDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - data.setRowIndex(0); - // no backing data, should return null - Object result = data.getRowData(); - if (result != null) { - out.println("Test FAILED[1]. Expected DataModel.getRowData() to " - + "return a null result."); - return; - } - - initDataModel(data); - result = data.getRowData(); - Object bean = result; - if (!bean.equals(beans.get(0))) { - out.println("Test FAILED[1]. The Object returned by UIData." - + "getRowData() at index 0 was not the expected Object."); - out.println("Expected: " + beans.get(0)); - out.println("Recevied: " + bean); - return; - } - - // move the current row index up a few notches and verify we get - // the expected result - data.setRowIndex(5); - result = data.getRowData(); - if (result == null) { - out.println("Test FAILED[2]. Expected UIData.getRowData() to " - + "returna non-null result."); - return; - } - - bean = result; - if (!bean.equals(beans.get(5))) { - out.println("Test FAILED[1]. The Object returned by UIData." - + "getRowData() at index 5 was not expected the Object."); - out.println("Expected: " + beans.get(5)); - out.println("Recevied: " + bean); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetRowDataIAETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - initDataModel(data); - - data.setRowIndex(11); - try { - data.getRowData(); - out.println("No Exception thrown when trying to retrieve a data" - + " row when the index is out of the valid row range."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when trying" - + " to retrieve a data row when the index is out of the" - + " valid row range, but it wasn't an instance of" - + " IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelListenerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - TCKDataListener listener1 = new TCKDataListener("l1"); - TCKDataListener listener2 = new TCKDataListener("l2"); - - data.addDataModelListener(listener1); - data.addDataModelListener(listener2); - - TCKDataListener.resetTrace(); - - initDataModel(data); - - String trace = TCKDataListener.getTrace(); - if (!"/l1/l2".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace after" - + " calling setWrappedData() which should have set the row" - + " index to 0 and caused an event to fire."); - out.println("Exepcted: /l1/l2"); - out.println("Received: " + trace); - return; - } - - data = createDataModel(); - data.addDataModelListener(listener1); - data.addDataModelListener(listener2); - initDataModel(data); - TCKDataListener.resetTrace(); - - data.setRowIndex(2); - trace = TCKDataListener.getTrace(); - if (!"/l1/l2".equals(trace)) { - out.println(JSFTestUtil.FAIL + " Unexpected listener trace after" - + " calling setRowIndex() which should have cause an" - + " event to fire."); - out.println("Exepcted: /l1/l2"); - out.println("Received: " + trace); - return; - } - - // If the row index is set to the same value, no event should - // be fired - TCKDataListener.resetTrace(); - data.setRowIndex(2); - - trace = TCKDataListener.getTrace(); - - if (trace.length() != 0) { - out.println(JSFTestUtil.FAIL + " Didn't expect any trace information to" - + " be returned from the listeners when the row index value" - + " is set, but the value hasn't changed."); - out.println("Trace recieved: " + trace); - return; - } - - // if there is no backing data, then the index is stored, but no - // event is fired - data = createDataModel(); - TCKDataListener.resetTrace(); - data.addDataModelListener(listener1); - data.addDataModelListener(listener2); - - data.setRowIndex(1); - - trace = TCKDataListener.getTrace(); - - if (trace.length() != 0) { - out.println(JSFTestUtil.FAIL + " Didn't expect any trace information to" - + " be returned from the listeners when there was no backing" - + " data installed in the DataModel instance."); - out.println("Trace recieved: " + trace); - return; - } - - if (data.getRowIndex() != 1) { - out.println(JSFTestUtil.FAIL + " Expected the row index to be stored" - + " even though no backing data had been set."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // --------------------------------------------------------- Private Classes - - private static class TCKDataListener implements DataModelListener { - - private static StringBuffer log; - - private String id; - - public TCKDataListener() { - log = new StringBuffer(); - } - - public TCKDataListener(String id) { - this.id = id; - log = new StringBuffer(); - } - - /** - *

- * Notification that a particular row index, with the associated row data, - * has been selected for processing. - *

- * - * @param event - * The {@link jakarta.faces.model.DataModelEvent} we are processing - */ - public void rowSelected(DataModelEvent event) { - System.out.println("ROW SELECTED"); - log.append("/" + id); - } - - public static String getTrace() { - return log.toString(); - } - - public static void resetTrace() { - log = new StringBuffer(); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/DataModelURLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/DataModelURLClient.java deleted file mode 100644 index 4da640ee36..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/DataModelURLClient.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public abstract class DataModelURLClient extends AbstractUrlClient { - - /** - * testName: dataModelGetSetWrappedDataTest - * - * @assertion_ids: JSF:JAVADOC:1941; JSF:JAVADOC:1950 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned as - * expected. - */ - public void dataModelGetSetWrappedDataTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetSetWrappedDataTest"); - invoke(); - } - - /** - * testName: dataModelSetWrappedDataCCETest - * - * @assertion_ids: JSF:JAVADOC:1951 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void dataModelSetWrappedDataCCETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelSetWrappedDataCCETest"); - invoke(); - } - - /** - * testName: dataModelAddGetRemoveDataModelListenerTest - * - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "dataModelAddGetRemoveDataModelListenerTest"); - invoke(); - } - - /** - * testName: dataModelIsRowAvailableTest - * - * @assertion_ids: JSF:JAVADOC:1942 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelIsRowAvailableTest"); - invoke(); - } - - /** - * testName: dataModelGetRowCountTest - * - * @assertion_ids: JSF:JAVADOC:1934 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void dataModelGetRowCountTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetRowCountTest"); - invoke(); - } - - /** - * testName: dataModelGetSetRowIndexTest - * - * @assertion_ids: JSF:JAVADOC:1939; JSF:JAVADOC:1947 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetSetRowIndexTest"); - invoke(); - } - - /** - * testName: dataModelSetRowIndexIAETest - * - * @assertion_ids: JSF:JAVADOC:1949 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelSetRowIndexIAETest"); - invoke(); - } - - /** - * testName: dataModelGetRowDataTest - * - * @assertion_ids: JSF:JAVADOC:1936 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void dataModelGetRowDataTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetRowDataTest"); - invoke(); - } - - /** - * testName: dataModelGetRowDataIAETest - * - * @assertion_ids: JSF:JAVADOC:1938 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelGetRowDataIAETest"); - invoke(); - } - - /** - * testName: dataModelListenerTest - * - * @assertion_ids: JSF:JAVADOC:1932; JSF:JAVADOC:1933; JSF:JAVADOC:1947 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelListenerTest"); - invoke(); - } - - /** - * testName: dataModelRemoveDataModelListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - * - */ - public void dataModelRemoveDataModelListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelRemoveDataModelListenerNPETest"); - invoke(); - } - - /** - * testName: dataModelAddDataModelListenerNPETest - * - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - * - */ - public void dataModelAddDataModelListenerNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelAddDataModelListenerNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResult.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResult.java deleted file mode 100644 index 67d169888d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResult.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import java.beans.BeanInfo; -import java.beans.Introspector; -import java.beans.PropertyDescriptor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.SortedMap; -import java.util.TreeMap; - -import jakarta.faces.FacesException; -import jakarta.servlet.jsp.jstl.sql.Result; - -/** - *

- * Mock object that implements enough of - * jakarta.servlet.jsp.jstl.sql.ResultSet to exercise the - * ResultDataModel functionality. It wraps an array of JavaBeans - * objects that are passed to the constructor. - *

- * - *

- * IMPLEMENTATION NOTE - The SortedMap objects - * returned by getRows() do NOT support - * case-insensitive key comparisons, as required by the JSTL specification. - * Therefore, key values in value reference expressions will be matched case - * sensitively. - *

- */ - -public class TCKResult implements Result { - - // ------------------------------------------------------------ Constructors - - /** - *

- * Construct a new TCKResult instance wrapping the specified - * array of beans. - *

- * - * @param beans - * Array of beans representing the content of the result set - */ - public TCKResult(Object beans[]) { - - if (beans == null) { - throw new NullPointerException(); - } - this.beans = beans; - - } - - // ------------------------------------------------------ Instance Variables - - // Array of beans representing our underlying data - private Object beans[] = null; - - // ----------------------------------------------------- Implemented Methods - - public SortedMap[] getRows() { - - TreeMap results[] = new TreeMap[beans.length]; - for (int i = 0; i < results.length; i++) { - try { - results[i] = getReadableValues((beans[i])); - } catch (Exception e) { - Throwable t = null; - if (e instanceof InvocationTargetException) { - t = ((InvocationTargetException) e).getTargetException(); - } - if (t != null) { - t.printStackTrace(); - throw new FacesException(t); - } else { - throw new FacesException(e); - } - } - } - return (results); - - } - - public int getRowCount() { - - return (beans.length); - - } - - // --------------------------------------------------- Unimplemented Methods - - public Object[][] getRowsByIndex() { - throw new UnsupportedOperationException(); - } - - public String[] getColumnNames() { - throw new UnsupportedOperationException(); - } - - public boolean isLimitedByMaxRows() { - throw new UnsupportedOperationException(); - } - - // --------------------------------------------------------- Private Methods - - public static TreeMap getReadableValues(Object bean) throws Exception { - BeanInfo beanInfo = Introspector.getBeanInfo(bean.getClass()); - PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors(); - TreeMap map = new TreeMap(); - for (int i = 0; i < descriptors.length; i++) { - Method method = descriptors[i].getReadMethod(); - if (method == null || descriptors[i].getName().equals("exception")) { - continue; - } else { - Object ret = method.invoke(bean, (Object[]) null); - map.put(descriptors[i].getName(), ret); - } - } - return map; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSet.java deleted file mode 100644 index 58ba94e486..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSet.java +++ /dev/null @@ -1,1012 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import java.beans.BeanInfo; -import java.beans.Introspector; -import java.beans.PropertyDescriptor; -import java.io.InputStream; -import java.io.Reader; -import java.math.BigDecimal; -import java.net.URL; -import java.sql.Array; -import java.sql.Blob; -import java.sql.Clob; -import java.sql.Date; -import java.sql.NClob; -import java.sql.Ref; -import java.sql.ResultSet; -import java.sql.ResultSetMetaData; -import java.sql.RowId; -import java.sql.SQLException; -import java.sql.SQLFeatureNotSupportedException; -import java.sql.SQLWarning; -import java.sql.SQLXML; -import java.sql.Statement; -import java.sql.Time; -import java.sql.Timestamp; -import java.util.Calendar; -import java.util.Map; - -public class TCKResultSet implements ResultSet { - - // ------------------------------------------------------------ Constructors - - /** - *

- * Construct a new TCKResultSet instance wrapping the specified - * array of beans. - *

- * - * @param beans - * Array of beans representing the content of the result set - */ - public TCKResultSet(Object beans[]) { - - if (beans == null) { - throw new NullPointerException(); - } - this.beans = beans; - this.clazz = beans.getClass().getComponentType(); - - } - - // ------------------------------------------------------ Instance Variables - - // Array of beans representing our underlying data - private Object beans[] = null; - - // Class representing the underlying data type we are wrapping - private Class clazz = null; - - // ResultSetMetaData for this ResultSet - private TCKResultSetMetaData metadata = null; - - // Current row number (0 means "before the first row" - private int currentRow = 0; - - // ----------------------------------------------------- Implemented Methods - - public boolean absolute(int row) throws SQLException { - int givenRow = row; - - if (givenRow == 0) { - this.currentRow = givenRow; - return (false); - - } else if (givenRow > 0) { - if (givenRow > beans.length) { - this.currentRow = beans.length + 1; - return (false); - } else { - this.currentRow = givenRow; - return (true); - } - - } else { - this.currentRow = (beans.length + 1) - givenRow; - if (givenRow < 1) { - givenRow = 0; - return (false); - } else { - return (true); - } - } - - } - - public void beforeFirst() throws SQLException { - - absolute(0); - - } - - public void close() throws SQLException { - - ; // No action required - - } - - public int getConcurrency() throws SQLException { - - return (ResultSet.CONCUR_UPDATABLE); - - } - - public ResultSetMetaData getMetaData() throws SQLException { - - if (metadata == null) { - metadata = new TCKResultSetMetaData(clazz); - } - return (metadata); - - } - - public Object getObject(int columnIndex) throws SQLException { - - return (getObject(getMetaData().getColumnName(columnIndex))); - - } - - public Object getObject(String columnName) throws SQLException { - - if ((currentRow <= 0) || (currentRow > beans.length)) { - throw new SQLException("Invalid row number " + currentRow); - } - try { - if (columnName.equals("writeOnlyProperty") - && (beans[currentRow - 1] instanceof TestBean)) { - return (((TestBean) beans[currentRow - 1]).getWriteOnlyPropertyValue()); - } else { - Object val = null; - try { - val = (getProperty(beans[currentRow - 1], columnName)); - } catch (Exception e) { - System.out.println("Exception: " + e); - e.printStackTrace(); - } - return val; - } - } catch (Exception e) { - throw new SQLException(e.getMessage()); - } - - } - - public int getRow() throws SQLException { - - return (this.currentRow); - - } - - public int getType() throws SQLException { - - return (ResultSet.TYPE_SCROLL_INSENSITIVE); - - } - - public boolean last() throws SQLException { - - return (absolute(beans.length)); - - } - - public void updateObject(int columnIndex, Object value) throws SQLException { - - updateObject(getMetaData().getColumnName(columnIndex), value); - - } - - public void updateObject(String columnName, Object value) - throws SQLException { - - if ((currentRow <= 0) || (currentRow > beans.length)) { - throw new SQLException("Invalid row number " + currentRow); - } - try { - setProperty(beans[currentRow - 1], value, columnName); - } catch (Exception e) { - throw new SQLException(e.getMessage()); - } - - } - - // --------------------------------------------------- Unimplemented Methods - - public void afterLast() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void cancelRowUpdates() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void clearWarnings() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void deleteRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int findColumn(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean first() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Array getArray(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Array getArray(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public InputStream getAsciiStream(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public InputStream getAsciiStream(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public BigDecimal getBigDecimal(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - /** @deprecated */ - public BigDecimal getBigDecimal(int columnIndex, int scale) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public BigDecimal getBigDecimal(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - /** @deprecated */ - public BigDecimal getBigDecimal(String columnName, int scale) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public InputStream getBinaryStream(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public InputStream getBinaryStream(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Blob getBlob(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Blob getBlob(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean getBoolean(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean getBoolean(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public byte getByte(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public byte getByte(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public byte[] getBytes(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public byte[] getBytes(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Reader getCharacterStream(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Reader getCharacterStream(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Clob getClob(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Clob getClob(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getCursorName() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Date getDate(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Date getDate(int columnIndex, Calendar cal) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Date getDate(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Date getDate(String columnName, Calendar cal) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public double getDouble(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public double getDouble(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getFetchDirection() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getFetchSize() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public float getFloat(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public float getFloat(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getInt(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getInt(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public long getLong(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public long getLong(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Object getObject(int columnIndex, Map map) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Object getObject(String columnName, Map map) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Ref getRef(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Ref getRef(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public short getShort(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public short getShort(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Statement getStatement() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getString(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getString(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Time getTime(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Time getTime(int columnIndex, Calendar cal) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Time getTime(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Time getTime(String columnName, Calendar cal) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Timestamp getTimestamp(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Timestamp getTimestamp(int columnIndex, Calendar cal) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Timestamp getTimestamp(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public Timestamp getTimestamp(String columnName, Calendar cal) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - /** @deprecated */ - public InputStream getUnicodeStream(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - /** @deprecated */ - public InputStream getUnicodeStream(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public URL getURL(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public URL getURL(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public SQLWarning getWarnings() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void insertRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isAfterLast() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isBeforeFirst() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isFirst() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isLast() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void moveToCurrentRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void moveToInsertRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean next() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean previous() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void refreshRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean relative(int rows) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean rowDeleted() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean rowInserted() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean rowUpdated() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void setFetchDirection(int direction) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void setFetchSize(int size) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateArray(int columnPosition, Array x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateArray(String columnName, Array x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateAsciiStream(int columnPosition, InputStream x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateAsciiStream(String columnName, InputStream x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBigDecimal(int columnPosition, BigDecimal x) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBigDecimal(String columnName, BigDecimal x) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBinaryStream(int columnPosition, InputStream x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBinaryStream(String columnName, InputStream x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBlob(int columnPosition, Blob x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBlob(String columnName, Blob x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBoolean(int columnPosition, boolean x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBoolean(String columnName, boolean x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateByte(int columnPosition, byte x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateByte(String columnName, byte x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBytes(int columnPosition, byte x[]) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateBytes(String columnName, byte x[]) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateCharacterStream(int columnPosition, Reader x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateCharacterStream(String columnName, Reader x, int len) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateClob(int columnPosition, Clob x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateClob(String columnName, Clob x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateDate(int columnPosition, Date x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateDate(String columnName, Date x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateDouble(int columnPosition, double x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateDouble(String columnName, double x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateFloat(int columnPosition, float x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateFloat(String columnName, float x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateInt(int columnPosition, int x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateInt(String columnName, int x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateLong(int columnPosition, long x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateLong(String columnName, long x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateNull(int columnPosition) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateNull(String columnName) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateObject(int columnPosition, Object x, int scale) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateObject(String columnName, Object x, int scale) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateRef(int columnPosition, Ref x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateRef(String columnName, Ref x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateRow() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateShort(int columnPosition, short x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateShort(String columnName, short x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateString(int columnPosition, String x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateString(String columnName, String x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateTime(int columnPosition, Time x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateTime(String columnName, Time x) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateTimestamp(int columnPosition, Timestamp x) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public void updateTimestamp(String columnName, Timestamp x) - throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean wasNull() throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - private Object getProperty(Object object, String name) throws Exception { - BeanInfo beanInfo = Introspector.getBeanInfo(object.getClass()); - PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors(); - - Object ret = null; - - for (int i = 0; i < descriptors.length; i++) { - if (descriptors[i].getName().equals(name)) { - ret = descriptors[i].getReadMethod().invoke(object, new Object[0]); - break; - } - } - - return ret; - } - - private void setProperty(Object object, Object value, String name) - throws Exception { - BeanInfo beanInfo = Introspector.getBeanInfo(object.getClass()); - PropertyDescriptor[] descriptors = beanInfo.getPropertyDescriptors(); - - for (int i = 0; i < descriptors.length; i++) { - if (descriptors[i].getName().equals(name)) { - descriptors[i].getWriteMethod().invoke(object, new Object[] { value }); - break; - } - } - } - - public RowId getRowId(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public RowId getRowId(String columnLabel) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateRowId(int columnIndex, RowId x) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateRowId(String columnLabel, RowId x) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public int getHoldability() throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public boolean isClosed() throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNString(int columnIndex, String nString) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNString(String columnLabel, String nString) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(int columnIndex, NClob nClob) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(String columnLabel, NClob nClob) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public NClob getNClob(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public NClob getNClob(String columnLabel) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public SQLXML getSQLXML(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public SQLXML getSQLXML(String columnLabel) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateSQLXML(int columnIndex, SQLXML xmlObject) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateSQLXML(String columnLabel, SQLXML xmlObject) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public String getNString(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public String getNString(String columnLabel) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public Reader getNCharacterStream(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public Reader getNCharacterStream(String columnLabel) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNCharacterStream(int columnIndex, Reader x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNCharacterStream(String columnLabel, Reader reader, - long length) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateAsciiStream(int columnIndex, InputStream x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBinaryStream(int columnIndex, InputStream x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateCharacterStream(int columnIndex, Reader x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateAsciiStream(String columnLabel, InputStream x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBinaryStream(String columnLabel, InputStream x, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateCharacterStream(String columnLabel, Reader reader, - long length) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBlob(int columnIndex, InputStream inputStream, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBlob(String columnLabel, InputStream inputStream, - long length) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateClob(int columnIndex, Reader reader, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateClob(String columnLabel, Reader reader, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(int columnIndex, Reader reader, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(String columnLabel, Reader reader, long length) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNCharacterStream(int columnIndex, Reader x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNCharacterStream(String columnLabel, Reader reader) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateAsciiStream(int columnIndex, InputStream x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBinaryStream(int columnIndex, InputStream x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateCharacterStream(int columnIndex, Reader x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateAsciiStream(String columnLabel, InputStream x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBinaryStream(String columnLabel, InputStream x) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateCharacterStream(String columnLabel, Reader reader) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBlob(int columnIndex, InputStream inputStream) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateBlob(String columnLabel, InputStream inputStream) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateClob(int columnIndex, Reader reader) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateClob(String columnLabel, Reader reader) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(int columnIndex, Reader reader) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public void updateNClob(String columnLabel, Reader reader) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public T unwrap(Class iface) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public boolean isWrapperFor(Class iface) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - // ------------------------------------------------------------------------------------------------- - // Methods added in SE7 - public T getObject(String columnLabel, Class type) - throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - - public T getObject(int columnIndex, Class type) throws SQLException { - throw new SQLFeatureNotSupportedException("Not supported yet."); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSetMetaData.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSetMetaData.java deleted file mode 100644 index 70cfbf3d6e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TCKResultSetMetaData.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import java.beans.Introspector; -import java.beans.PropertyDescriptor; -import java.sql.ResultSetMetaData; -import java.sql.SQLException; -import java.sql.SQLFeatureNotSupportedException; - -public class TCKResultSetMetaData implements ResultSetMetaData { - - // ------------------------------------------------------------ Constructors - - /** - *

- * Construct a new TCKResultSetMetaData object wrapping the - * properties of the specified Java class. - *

- * - * @param clazz - * Class whose properties we treat like columns - */ - public TCKResultSetMetaData(Class clazz) throws SQLException { - - this.clazz = clazz; - try { - descriptors = Introspector.getBeanInfo(clazz).getPropertyDescriptors(); - } catch (Exception e) { - throw new SQLException(e.getMessage()); - } - - } - - // ------------------------------------------------------ Instance Variables - - // The Class whose properties we are treating as columns - private Class clazz = null; - - // The PropertyDescriptors for the Class we are wrapping - private PropertyDescriptor descriptors[] = null; - - // ---------------------------------------------------------- Public Methods - - public PropertyDescriptor getDescriptor(int columnIndex) throws SQLException { - - try { - return (descriptors[columnIndex - 1]); - } catch (IndexOutOfBoundsException e) { - throw new SQLException("Invalid columnIndex " + columnIndex); - } - - } - - // ----------------------------------------------------- Implemented Methods - - public String getColumnClassName(int columnIndex) throws SQLException { - - return (getDescriptor(columnIndex).getPropertyType().getName()); - - } - - public int getColumnCount() throws SQLException { - - return (descriptors.length); - - } - - public String getColumnName(int columnIndex) throws SQLException { - - return (getDescriptor(columnIndex).getName()); - - } - - public boolean isReadOnly(int columnIndex) throws SQLException { - - return (getDescriptor(columnIndex).getWriteMethod() == null); - - } - - // --------------------------------------------------- Unimplemented Methods - - public String getCatalogName(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getColumnDisplaySize(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getColumnLabel(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getColumnType(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getColumnTypeName(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getPrecision(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int getScale(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getSchemaName(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public String getTableName(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isAutoIncrement(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isCaseSensitive(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isCurrency(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isDefinitelyWritable(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public int isNullable(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isSearchable(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isSigned(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public boolean isWritable(int columnIndex) throws SQLException { - throw new SQLFeatureNotSupportedException(); - } - - public T unwrap(Class iface) throws SQLException { - throw new UnsupportedOperationException("Not supported yet."); - } - - public boolean isWrapperFor(Class iface) throws SQLException { - throw new UnsupportedOperationException("Not supported yet."); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TestBean.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TestBean.java deleted file mode 100644 index 4d2f27deaa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/TestBean.java +++ /dev/null @@ -1,340 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.common; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; - -public class TestBean extends Object { - - public static final String PROP = "oneSet"; - - public static final String TRUE = "true"; - - public static final String FALSE = "false"; - - public TestBean() { - indexProperties = new ArrayList(); - indexProperties.add("Justyna"); - indexProperties.add("Roger"); - indexProperties.add("Ed"); - indexProperties.add("Jayashri"); - indexProperties.add("Craig"); - - Integer integer; - indexIntegerProperties = new ArrayList(); - integer = new Integer("5"); - indexIntegerProperties.add(integer); - integer = new Integer("10"); - indexIntegerProperties.add(integer); - } - - protected String one = null; - - public void setOne(String newOne) { - one = newOne; - if (!newOne.equals("one")) { - throw new RuntimeException("Value must be 'one'"); - } - } - - public String getOne() { - return one; - } - - protected String prop = null; - - public void setProp(String newProp) { - prop = newProp; - } - - public String getProp() { - return prop; - } - - protected boolean boolProp = false; - - public void setBoolProp(boolean newBoolProp) { - boolProp = newBoolProp; - } - - public boolean getBoolProp() { - return boolProp; - } - - protected byte byteProp = Byte.MAX_VALUE; - - public void setByteProp(byte newByteProp) { - byteProp = newByteProp; - } - - public byte getByteProp() { - return byteProp; - } - - protected char charProp = 'a'; - - public void setCharProp(char newCharProp) { - charProp = newCharProp; - } - - public char getCharProp() { - return charProp; - } - - protected double doubleProp = 37.266D; - - public void setDoubleProp(double newDoubleProp) { - doubleProp = newDoubleProp; - } - - public double getDoubleProp() { - return doubleProp; - } - - protected float floatProp = 87.363F; - - public void setFloatProp(float newFloatProp) { - floatProp = newFloatProp; - } - - public float getFloatProp() { - return floatProp; - } - - protected int intProp = Integer.MAX_VALUE; - - public void setIntProp(int newIntProp) { - intProp = newIntProp; - } - - public int getIntProp() { - return intProp; - } - - protected long longProp = Long.MAX_VALUE; - - public void setLongProp(long newLongProp) { - longProp = newLongProp; - } - - public long getLongProp() { - return longProp; - } - - protected short shortProp = Short.MAX_VALUE; - - public void setShortProp(short newShortProp) { - shortProp = newShortProp; - } - - public short getShortProp() { - return shortProp; - } - - protected InnerBean inner = null; - - public void setInner(InnerBean newInner) { - inner = newInner; - } - - public InnerBean getInner() { - return inner; - } - - protected String imagePath = null; - - public String getImagePath() { - return imagePath; - } - - public void setImagePath(String newImagePath) { - imagePath = newImagePath; - } - - protected ArrayList indexProperties = null; - - public ArrayList getIndexProperties() { - return indexProperties; - } - - public void setIndexProperties(String property) { - indexProperties.add(property); - } - - protected ArrayList indexIntegerProperties = null; - - public ArrayList getIndexIntegerProperties() { - return indexIntegerProperties; - } - - public void setIndexIntegerProperties(String property) { - indexIntegerProperties.add(property); - } - - protected Map mapProperty = new HashMap(); - - public Map getMapProperty() { - return mapProperty; - } - - public void setMapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - } - - protected String modelLabel = "model label"; - - public void setModelLabel(String modelLabel) { - this.modelLabel = modelLabel; - } - - public String getModelLabel() { - return modelLabel; - } - - protected UIComponent component = new UIInput(); - - public UIComponent getComponent() { - return component; - } - - public void setComponent(UIComponent component) { - this.component = component; - } - - /** - * A write-only String property. - */ - private String writeOnlyProperty = "Write Only String Property"; - - public String getWriteOnlyPropertyValue() { - return (this.writeOnlyProperty); - } - - public void setWriteOnlyProperty(String writeOnlyProperty) { - this.writeOnlyProperty = writeOnlyProperty; - } - - public static class InnerBean extends Object { - - protected String two = null; - - protected Integer pin = null; - - protected Boolean result = null; - - protected ArrayList customers = null; - - public void setTwo(String newTwo) { - two = newTwo; - if (!newTwo.equals("two")) { - throw new RuntimeException("Value must be 'two'"); - } - } - - public String getTwo() { - return two; - } - - public void setPin(Integer newPin) { - pin = newPin; - } - - public Integer getPin() { - return pin; - } - - public Collection getCustomers() { - if (null == customers) { - customers = new ArrayList(); - customers.add("Mickey"); - customers.add("Jerry"); - customers.add("Phil"); - customers.add("Bill"); - customers.add("Bob"); - } - return customers; - } - - public void setCustomers(String customer) { - if (null == customers) { - customers = new ArrayList(); - } - customers.add(customer); - } - - public void setResult(Boolean newResult) { - result = newResult; - } - - public Boolean getResult() { - return result; - } - - protected Inner2Bean inner2 = null; - - public void setInner2(Inner2Bean newInner2) { - inner2 = newInner2; - } - - public Inner2Bean getInner2() { - return inner2; - } - - } - - public static class Inner2Bean extends Object { - - protected String three = null; - - public void setThree(String newThree) { - three = newThree; - if (!newThree.equals("three")) { - throw new RuntimeException("Value must be 'three'"); - } - } - - public String getThree() { - return three; - } - - protected Map nicknames = new HashMap(); - - public Map getNicknames() { - return nicknames; - } - - public void setNicknames(Map newNicknames) { - nicknames = newNicknames; - } - - } - - public String getReadOnly() { - return "readOnly"; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/model.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/model.common.xml deleted file mode 100644 index 2ad5a15437..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/common/model.common.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/TestServlet.java deleted file mode 100644 index cb16f17c31..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/TestServlet.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.datamodelevent; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.ArrayDataModel; -import jakarta.faces.model.DataModel; -import jakarta.faces.model.DataModelEvent; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void dataModelEventTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - String[] data = { "string" }; - DataModel model = new ArrayDataModel(data); - - DataModelEvent event = new DataModelEvent(model, 0, "string1"); - - if (event.getDataModel() != model) { - out.println(JSFTestUtil.FAIL + " getDataModel() didn't return" - + "the expected 'model'." + JSFTestUtil.NL + "Expected: " - + model.toString() + "Received: " + event.getDataModel().toString()); - - return; - } - - if (event.getRowIndex() != 0) { - out.println( - JSFTestUtil.FAIL + " Unexpected v alue returned from getRowIndex()!" - + JSFTestUtil.NL + "Row index received: " + event.getRowIndex()); - - return; - } - - if (event.getRowData() != "string1") { - out.println( - JSFTestUtil.FAIL + " getRowData() returned an unexpected value." - + JSFTestUtil.NL + "Expected: " + "string1" + JSFTestUtil.NL - + "Received: " + event.getRowData()); - - return; - } - - event = new DataModelEvent(model, -1, null); - - if (event.getDataModel() != model) { - out.println(JSFTestUtil.FAIL - + " getDataModel() didn't return the expected value." + JSFTestUtil.NL - + "Expected: " + model.toString() + JSFTestUtil.NL + "Received: " - + event.getDataModel().toString()); - - return; - } - - if (event.getRowIndex() != -1) { - out.println(JSFTestUtil.FAIL + " Expected getRowIndex() to return -1." - + JSFTestUtil.NL + "Row index received: " + event.getRowIndex()); - - return; - } - - if (event.getRowData() != null) { - out.println( - JSFTestUtil.FAIL + " getRowData() returned an unexpected value." - + JSFTestUtil.NL + "Expected: null" + JSFTestUtil.NL - + "Received: " + event.getRowData()); - - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/URLClient.java deleted file mode 100644 index c03fd956f0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/URLClient.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.datamodelevent; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_model_dmevent_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: dataModelEventTest - * @assertion_ids: JSF:JAVADOC:1932; JSF:JAVADOC:1936; JSF:JAVADOC:1945; - * JSF:JAVADOC:1939 - * @test_Strategy: Validate the getRowData(), getDataModel(), and - * getRowIndex() methods return the values passed to the ctor - * of DataModelEvent. - */ - public void dataModelEventTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "dataModelEventTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/build.xml deleted file mode 100644 index 0a2026a15b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.war.sun-web.xml deleted file mode 100644 index 474cff9cbc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_dmevent_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.xml deleted file mode 100644 index 85f83908be..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/datamodelevent/jsf_model_dmevent_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_dmevent - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.datamodelevent.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/TestServlet.java deleted file mode 100644 index e748bedac9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/TestServlet.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: TestServlet.java 67940 2012-10-03 16:24:42Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.iterabledatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.DataModel; -import jakarta.faces.model.IterableDataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new IterableDataModel(); - } - - public void initDataModel(DataModel model) { - List list = new ArrayList(); - for (int i = 0; i < 10; i++) { - list.add(new TestBean()); - } - setBeansList(list); - model.setWrappedData(list); - } - - // ------------------------------------------- Test Methods - - public void iterableDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new IterableDataModel( - Arrays.asList(new String[] { "string1", "string2" })); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + "! Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor." + JSFTestUtil.NL - + "Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + "! Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void iterableDataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - List list = new ArrayList(); - list.add("string1"); - list.add("string2"); - - model.setWrappedData(list); - - List ret = (List) model.getWrappedData(); - - if (!list.equals(ret)) { - out.println( - JSFTestUtil.FAIL + "! The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()." - + JSFTestUtil.NL + "Expected: " + list + JSFTestUtil.NL - + "Received: " + ret); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void iterableDataModelSetWrappedDataCCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - try { - model.setWrappedData("invalid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when attempting" - + " to call setWrappedData() with an invalid type."); - return; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - out.println(JSFTestUtil.FAIL + "! Exception thrown when calling" - + " setWrappedData() with an invalid type, but it wasn't" - + " an instance of ClassCastException." + JSFTestUtil.NL - + "Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/URLClient.java deleted file mode 100644 index e9c3c4585e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/URLClient.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 68360 2012-11-01 16:31:46Z dougd $ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.iterabledatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_iterabledm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: iterableDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:2782; JSF:JAVADOC:2783 - * @test_Strategy: Verify that creation of a CollectionDataModel instance - * results in the data being passed to the ctor to be wrapped. - */ - public void iterableDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "iterableDataModelCtorTest"); - invoke(); - } - - /** - * @testName: iterableDataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void iterableDataModelAddGetRemoveDataModelListenerTest() - throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: iterableDataModelGetRowCountTest - * @assertion_ids: JSF:JAVADOC:2784 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void iterableDataModelGetRowCountTest() throws EETest.Fault { - super.dataModelGetRowCountTest(); - } - - /** - * @testName: iterableDataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:2788 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void iterableDataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: iterableDataModelGetRowDataTest - * @assertion_ids: JSF:JAVADOC:2786 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void iterableDataModelGetRowDataTest() throws EETest.Fault { - super.dataModelGetRowDataTest(); - } - - /** - * @testName: iterableDataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:2789; JSF:JAVADOC:2794 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void iterableDataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: iterableDataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:2791; JSF:JAVADOC:2797 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned - * from getWrappedData(). - */ - public void iterableDataModelGetSetWrappedDataTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "iterableDataModelGetSetWrappedDataTest"); - invoke(); - } - - /** - * @testName: iterableDataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:2792 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void iterableDataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: iterableDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1970; JSF:JAVADOC:1972 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void iterableDataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: iterableDataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:2796 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void iterableDataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: iterableDataModelSetWrappedDataCCETest - * @assertion_ids: JSF:JAVADOC:2798 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void iterableDataModelSetWrappedDataCCETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "iterableDataModelSetWrappedDataCCETest"); - invoke(); - } - - /** - * @testName: iterableDataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void iterableDataModelRemoveDataModelListenerNPETest() - throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: iterableDataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void iterableDataModelAddDataModelListenerNPETest() - throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/build.xml deleted file mode 100644 index 7879bbdc7d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.war.sun-web.xml deleted file mode 100644 index 428721f1f8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.war.sun-web.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - jsf_model_iterabledm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.xml deleted file mode 100644 index 455c4d1ffa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/iterabledatamodel/jsf_model_iterabledm_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - jsf_model_iterabledm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.iterabledatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/TestServlet.java deleted file mode 100644 index 90d90968fc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/TestServlet.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.listdatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.DataModel; -import jakarta.faces.model.ListDataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new ListDataModel(); - } - - public void initDataModel(DataModel model) { - List list = new ArrayList(); - for (int i = 0; i < 10; i++) { - list.add(new TestBean()); - } - setBeansList(list); - model.setWrappedData(list); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void listDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new ListDataModel( - Arrays.asList(new String[] { "string1", "string2" })); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + " Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor."); - out.println("Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - List list = new ArrayList(); - list.add("string1"); - list.add("string2"); - - model.setWrappedData(list); - - Object ret = model.getWrappedData(); - - if (!list.equals(ret)) { - out.println(JSFTestUtil.FAIL + " The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()."); - out.println("Expected: " + list); - out.println("Received: " + ret); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelSetWrappedDataCCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - try { - model.setWrappedData("invalid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when attempting" - + " to call setWrappedData() with an invalid type."); - return; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling" - + " setWrappedData() with an invalid type, but it wasn't" - + " an instance of ClassCastException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/URLClient.java deleted file mode 100644 index ba92b03f09..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/URLClient.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.listdatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_listdm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: listDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:1967; JSF:JAVADOC:1968 - * @test_Strategy: Verify that creation of a ListDataModel instance results in - * the data being passed to the ctor to be wrapped. - */ - public void listDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "listDataModelCtorTest"); - invoke(); - } - - /** - * @testName: dataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: dataModelGetRowCountTest - * @assertion_ids: JSF:JAVADOC:1957 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void dataModelGetRowCountTest() throws EETest.Fault { - super.dataModelGetRowCountTest(); - } - - /** - * @testName: dataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:1961 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: dataModelGetRowDataTest - * @assertion_ids: JSF:JAVADOC:1959 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void dataModelGetRowDataTest() throws EETest.Fault { - super.dataModelGetRowDataTest(); - } - - /** - * @testName: dataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:1962; JSF:JAVADOC:1969 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: dataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:1964 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned as - * expected. - */ - public void dataModelGetSetWrappedDataTest() throws EETest.Fault { - super.dataModelGetSetWrappedDataTest(); - } - - /** - * @testName: dataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:1965 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: dataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1970; JSF:JAVADOC:1972 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: dataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:1971 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: dataModelSetWrappedDataCCETest - * @assertion_ids: JSF:JAVADOC:1973 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void dataModelSetWrappedDataCCETest() throws EETest.Fault { - super.dataModelSetWrappedDataCCETest(); - } - - /** - * @testName: dataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelRemoveDataModelListenerNPETest() throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: dataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelAddDataModelListenerNPETest() throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/build.xml deleted file mode 100644 index 0603ea4e52..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.war.sun-web.xml deleted file mode 100644 index 66f7fbc644..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_listdm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.xml deleted file mode 100644 index ac266e5e64..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/listdatamodel/jsf_model_listdm_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_listdm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.listdatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/TestServlet.java deleted file mode 100644 index fc9573f11f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/TestServlet.java +++ /dev/null @@ -1,495 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.resultsetdatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.sql.ResultSet; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.TCKResultSet; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.DataModel; -import jakarta.faces.model.ResultSetDataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new ResultSetDataModel(); - } - - public void initDataModel(DataModel model) { - List list = new ArrayList(); - for (int i = 0; i < 10; i++) { - list.add(new TestBean()); - } - setBeansList(list); - TCKResultSet resultSet = new TCKResultSet( - list.toArray(new TestBean[list.size()])); - - // DEBUG - // try { - // ResultSetMetaData rsmd = resultSet.getMetaData(); - // for (int i = rsmd.getColumnCount(), counter = 0; counter < i; counter++) - // { - // System.out.println("COLUMN NAME: " + rsmd.getColumnName(counter + 1)); - // } - // } catch (Exception e) { - // System.out.println("ERROR: " + e.toString()); - // } - - model.setWrappedData(resultSet); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void resultSetDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new ResultSetDataModel( - new TCKResultSet(new String[] { "string1", "string2" })); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + " Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor."); - out.println("Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - ResultSet result = new TCKResultSet(new String[] { "string1" }); - - model.setWrappedData(result); - - Object ret = model.getWrappedData(); - - if (!result.equals(ret)) { - out.println(JSFTestUtil.FAIL + " The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()."); - out.println("Expected: " + result); - out.println("Received: " + ret); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelSetWrappedDataCCETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - try { - model.setWrappedData("invalid"); - out.println(JSFTestUtil.FAIL + " No exception thrown when attempting" - + " to call setWrappedData() with an invalid type."); - return; - } catch (Exception e) { - if (!(e instanceof ClassCastException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling" - + " setWrappedData() with an invalid type, but it wasn't" - + " an instance of ClassCastException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - // Validate specialized behavior of map returned by - // ResultSetDataModel.getRowData() - public void resultSetDataModelGetRowDataSpecializedMapTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - initDataModel(model); - model.setRowIndex(1); - - Map map = (Map) model.getRowData(); - - if (map == null) { - out.println(JSFTestUtil.FAIL + " Unable to obtain row data at index 1."); - return; - } - - // column name comparisons done in case-insensitive manner - if (!map.containsKey("BOOLprop")) { - out.println(JSFTestUtil.FAIL + " Unable to find key 'BOOLprop'" - + " in Map returned by ResultSetDataModel.getRowData()"); - return; - } - - if (!map.containsKey("boolPrOP")) { - out.println(JSFTestUtil.FAIL + " Unable to find key 'boolPrOP'" - + " in Map returned by ResultSetDataModel.getRowData()"); - return; - } - - // The clear and remove methods must throw UnsupportedOperationExceptions - try { - map.clear(); - out.println(JSFTestUtil.FAIL + " No Exception thrown when calling clear()" - + " on the Map returned by ResultSetDataModel.getRowData()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling clear()" - + " on the Map returned by ResultSetDataModel." - + "getRowData(), but it wasn't an instance of" - + " UnsupportedOperationException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - map.remove("someProperty"); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when calling remove()" - + " on the Map returned by ResultSetDataModel.getRowData()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling remove()" - + " on the Map returned by ResultSetDataModel." - + "getRowData(), but it wasn't an instance of" - + " UnsupportedOperationException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - // The Set returned by entrySet() must throw UnsupportedOperationException - // for any attempt to add or remove entries. - // Any updates to existing values must write through to the underlying - // DataModel instance and underlying data - Set entrySet = map.entrySet(); - HashMap m = new HashMap(); - m.put("some", "stuff"); - Map.Entry en = (Map.Entry) m.entrySet().iterator().next(); - - try { - entrySet.add(en); - out.println(JSFTestUtil.FAIL + " No Exception thrown when adding a new" - + " Object to the Set obtained by entrySet()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when adding a new" - + " Object to the Set obtained by entrySet(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - try { - entrySet.remove("New String"); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when attempting to remove" - + " an Object from the Set obtained by entrySet()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println( - JSFTestUtil.FAIL + " Exception thrown when attempting to remove" - + " an Object from the Set obtained by entrySet(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - Float pi = new Float(3.14); - // Make sure we can write through... - for (Iterator entries = entrySet.iterator(); entries.hasNext();) { - Map.Entry entry = (Map.Entry) entries.next(); - if ("floatProp".equalsIgnoreCase((String) entry.getKey())) { - entry.setValue(pi); - } - } - - if (!pi.equals(map.get("floatProp"))) { - out.println(JSFTestUtil.FAIL + " Expected the value of 'floatProp'" - + " to be '3.14' after updating the Entry in the Set"); - out.println("Value recevied: " + map.get("floatProp")); - return; - } - - if (pi.floatValue() != (((TestBean) beans.get(1)).getFloatProp())) { - out.println(JSFTestUtil.FAIL + " Expected updating the EntrySet to write" - + " through to the underlying result set, but this was" - + " not the case."); - out.println("Expected: " + pi.floatValue()); - out.println("Received: " + ((TestBean) beans.get(1)).getFloatProp()); - return; - } - - // the Set returned by keySet() must throw UnsupportedOperationException - // when attempting to add or remove keys from Set. - Set keySet = map.keySet(); - - try { - keySet.add("New String"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when adding a new" - + " Object to the Set obtained by keySet()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when adding a new" - + " Object to the Set obtained by keySet(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - try { - keySet.remove("New String"); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when attempting to remove" - + " an Object from the Set obtained by keySet()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println( - JSFTestUtil.FAIL + " Exception thrown when attempting to remove" - + " an Object from the Set obtained by keySet(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - // The put() method must throw IllegalArgumentException if the - // containsKey() returns false, otherwise it must write through. - try { - map.put("nosuchkeyexists", "value"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when calling put()" - + " with a non-existent key."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when calling put()" - + " with a non-existent key, but it wasn't an instance" - + " of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - try { - map.put("charProp", new Character('*')); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception calling put() with" - + " a known good key."); - out.println("Exception: " + e); - return; - } - - char result = ((TestBean) beans.get(1)).getCharProp(); - if (result != '*') { - out.println(JSFTestUtil.FAIL + " Expected the result of the put() " - + "operation to write through to the underlying " - + "ResultSet, but this was not the case."); - out.println("Expected value for charProp: '*'"); - out.println("Received: " + result); - return; - } - - // the Collection returned by values() must throw an - // UnsupportedOperationException - // when any attempt is made to add or remove values either directly - // to/from the collection, or indirectly via an Iterator returned by - // the collection. - Collection c = map.values(); - - try { - c.add("New String"); - out.println(JSFTestUtil.FAIL + " No Exception thrown when adding a new" - + " Object to the Collection obtained by values()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when adding a new" - + " Object to the Collection obtained by values(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - try { - c.remove("New String"); - out.println( - JSFTestUtil.FAIL + " No Exception thrown when attempting to remove" - + " an Object from the Collection obtained by values()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println( - JSFTestUtil.FAIL + " Exception thrown when attempting to remove" - + " an Object from the Collection obtained by values(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - Iterator i = c.iterator(); - - try { - i.remove(); - out.println(JSFTestUtil.FAIL - + " No Exception thrown when attempting to remove" - + " an Object from the Iterator obtained from Collection.iterator()."); - return; - } catch (Exception e) { - if (!(e instanceof UnsupportedOperationException)) { - out.println(JSFTestUtil.FAIL - + " Exception thrown when attempting to remove" - + " an Object from the Iterator obtained from Collection.iterator(), but it" - + " wasn't an instance of UnsupportedOperationException."); - out.println("Exception recevied: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void resultSetDataModelGetRowDataMapTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - initDataModel(model); - model.setRowIndex(1); - - Map map = (Map) model.getRowData(); - - // validate method of Map instance. - - // containsKey() - if (!map.containsKey("boolProp")) { - out.println(JSFTestUtil.FAIL + " containsKey() returned false for a key" - + " that is known to exist in the Map."); - return; - } - - if (map.containsKey("nosuchkey")) { - out.println(JSFTestUtil.FAIL + " containsKey() returned true for a key" - + " that is know not to exist in the Map."); - return; - } - - // containsValue() - if (!map.containsValue(Boolean.FALSE)) { - out.println(JSFTestUtil.FAIL + " containsValue() returned false for a " - + "value that is known to exist in the Map."); - return; - } - - if (map.containsValue(Boolean.TRUE)) { - out.println( - JSFTestUtil.FAIL + " containsValue() returned true for a value" - + " that is known not to exist in the Map."); - return; - } - - // equals() - if (!map.equals(map)) { - out.println(JSFTestUtil.FAIL + " equals() returned false when testing " - + "equality on identical Map instances."); - return; - } - - if (map.equals(new HashMap())) { - out.println(JSFTestUtil.FAIL + " equals() returned true when testing" - + " equality between two different Map instances."); - return; - } - - // get() - if (!map.get("boolProp").equals(Boolean.FALSE)) { - out.println(JSFTestUtil.FAIL + " Unexpected value returned when calling" - + " Map.get(\"boolProp\")"); - out.println("Expected: " + Boolean.FALSE); - out.println("Recevied: " + map.get("boolProp")); - return; - } - - if (map.size() != 21) { - out.println(JSFTestUtil.FAIL + " Expected map.size() to return '22'."); - out.println("Size received: " + map.size()); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/URLClient.java deleted file mode 100644 index 4a36a0ed78..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/URLClient.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.resultsetdatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_resultsetdm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: resultSetDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:2001; JSF:JAVADOC:2002 - * @test_Strategy: Verify that creation of a ResultSetDataModel instance - * results in the data being passed to the ctor to be wrapped. - */ - public void resultSetDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resultSetDataModelCtorTest"); - invoke(); - } - - /** - * @testName: dataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: dataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:1995 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: dataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:1996; JSF:JAVADOC:2003 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: dataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:1998; JSF:JAVADOC:2006 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned as - * expected. - */ - public void dataModelGetSetWrappedDataTest() throws EETest.Fault { - super.dataModelGetSetWrappedDataTest(); - } - - /** - * @testName: dataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:1999; JSF:JAVADOC:2006 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: dataModelListenerTest - * @assertion_ids: JSF:JAVADOC:2006; JSF:JAVADOC:2003 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: dataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:2005 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: dataModelSetWrappedDataCCETest - * @assertion_ids: JSF:JAVADOC:2007 - * @test_Strategy: Verify a ClassCastException is thrown if the data to be - * wrapped is incorrect for the DataModel being used. - */ - public void dataModelSetWrappedDataCCETest() throws EETest.Fault { - super.dataModelSetWrappedDataCCETest(); - } - - /** - * @testName: resultSetDataModelGetRowDataSpecializedMapTest - * @assertion_ids: JSF:JAVADOC:2002 - * @test_Strategy: Verify the following: Validate the following specialized - * behavior for the Map returned by ResultSetDataModel: - The - * Map, and any supporting objects it returns, must perform - * all column name comparisons in a case-insensitive manner. - - * The following methods must throw - * UnsupportedOperationException: clear(), remove(). - The - * entrySet() method must return a Set that has the following - * behavior: * Throw UnsupportedOperationException for any - * attempt to add or remove entries from the Set, either - * directly or indirectly through an Iterator returned by the - * Set. * Updates to the value of an entry in this set must - * write through to the corresponding column value in the - * underlying ResultSet. - The keySet() method must return a - * Set that throws UnsupportedOperationException on any - * attempt to add or remove keys, either directly or through - * an Iterator returned by the Set. - The put() method must - * throw IllegalArgumentException if a key value for which - * containsKey() returns false is specified. However, if a key - * already present in the Map is specified, the specified - * value must write through to the corresponding column value - * in the underlying ResultSet. - The values() method must - * return a Collection that throws - * UnsupportedOperationException on any attempt to add or - * remove values, either directly or through an Iterator - * returned by the Collection. - */ - public void resultSetDataModelGetRowDataSpecializedMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resultSetDataModelGetRowDataSpecializedMapTest"); - invoke(); - } - - /** - * @testName: resultSetDataModelGetRowDataMapTest - * @assertion_ids: JSF:JAVADOC:1993 - * @test_Strategy: Verify the methods of positive aspects of the Map instance - * returned by getRowData() based on the descriptions of - * AbstractMap. - */ - public void resultSetDataModelGetRowDataMapTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resultSetDataModelGetRowDataMapTest"); - invoke(); - } - - /** - * @testName: dataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelRemoveDataModelListenerNPETest() throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: dataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelAddDataModelListenerNPETest() throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/build.xml deleted file mode 100644 index c99b719fe9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.war.sun-web.xml deleted file mode 100644 index 1f6edb4c39..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_resultsetdm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.xml deleted file mode 100644 index 9555abb450..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/resultsetdatamodel/jsf_model_resultsetdm_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_resultsetdm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.resultsetdatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/TestServlet.java deleted file mode 100644 index af9ca01b8e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/TestServlet.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.scalardatamodel; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.List; - -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.BaseModelTestServlet; -import com.sun.ts.tests.jsf.common.beans.TestBean; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.DataModel; -import jakarta.faces.model.ScalarDataModel; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseModelTestServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public DataModel createDataModel() { - return new ScalarDataModel(); - } - - public void initDataModel(DataModel model) { - TestBean bean = new TestBean(); - List list = new ArrayList(); - list.add(bean); - setBeansList(list); - model.setWrappedData(bean); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void scalarDataModelCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = new ScalarDataModel(new TestBean()); - - int curRow = model.getRowIndex(); - - if (curRow != 0) { - out.println(JSFTestUtil.FAIL + " Expected getRowIndex() to return 0" - + " when called against DataModel instance created by" - + " passing data to wrap to constructor."); - out.println("Row index returned: " + curRow); - return; - } - - if (!model.isRowAvailable()) { - out.println(JSFTestUtil.FAIL + " Expected isRowAvailable() to return" - + " true when called against DataModel instance created" - + " by passing data to wrap to constructor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetSetWrappedDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - DataModel model = createDataModel(); - - TestBean bean = new TestBean(); - - model.setWrappedData(bean); - - Object ret = model.getWrappedData(); - - if (!bean.equals(ret)) { - out.println(JSFTestUtil.FAIL + " The value returned from getWrappedData()" - + " was not the same as what was set via setWrappedData()."); - out.println("Expected: " + bean); - out.println("Received: " + ret); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetRowCountTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - // There is no backing data in the DataModel instance, - // so getRowCount() should return 01 - int result = data.getRowCount(); - if (result != -1) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.getRowCount() to" - + " return -1 if no data was available on the Model " + "tier."); - out.println("Row count received: " + result); - return; - } - - data = createDataModel(); - initDataModel(data); - - // ScalarDataModels only have a single backing object, not a collection, - // so this should be 1. - result = data.getRowCount(); - if (result != 1) { - out.println(JSFTestUtil.FAIL + " Expected DataModel.getRowCount() to " - + "return 1."); - out.println("Row count received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void dataModelGetRowDataTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - DataModel data = createDataModel(); - - data.setRowIndex(0); - // no backing data, should return null - Object result = data.getRowData(); - if (result != null) { - out.println("Test FAILED[1]. Expected DataModel.getRowData() to " - + "return a null result."); - return; - } - - initDataModel(data); - result = data.getRowData(); - Object bean = result; - if (!bean.equals(beans.get(0))) { - out.println("Test FAILED[1]. The Object returned by UIData." - + "getRowData() at index 0 was not the expected Object."); - out.println("Expected: " + beans.get(0)); - out.println("Recevied: " + bean); - return; - } - - out.println(JSFTestUtil.PASS); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/URLClient.java deleted file mode 100644 index 31ff5b5b75..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/URLClient.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.scalardatamodel; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.model.common.DataModelURLClient; - -public final class URLClient extends DataModelURLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_scalardm_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: scalarDataModelCtorTest - * @assertion_ids: JSF:JAVADOC:2018; JSF:JAVADOC:2019 - * @test_Strategy: Verify that creation of a ScalarDataModel instance results - * in the data being passed to the ctor to be wrapped. - */ - public void scalarDataModelCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "scalarDataModelCtorTest"); - invoke(); - } - - /** - * @testName: dataModelAddGetRemoveDataModelListenerTest - * @assertion_ids: JSF:JAVADOC:1930; JSF:JAVADOC:1933; JSF:JAVADOC:1945 - * @test_Strategy: Verify the addition, retrieval, and removal of Listeners - * behaves as expected. - */ - public void dataModelAddGetRemoveDataModelListenerTest() throws EETest.Fault { - super.dataModelAddGetRemoveDataModelListenerTest(); - } - - /** - * @testName: dataModelGetRowCountTest - * @assertion_ids: JSF:JAVADOC:2023; JSF:JAVADOC:2008 - * @test_Strategy: Verify -1 is returned by getRowCount() when there is no - * backing data. Additionally verify the proper value is - * returned once setWrappedData() is called with a valid - * value. - */ - public void dataModelGetRowCountTest() throws EETest.Fault { - super.dataModelGetRowCountTest(); - } - - /** - * @testName: dataModelGetRowDataIAETest - * @assertion_ids: JSF:JAVADOC:2012 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * getRowData() is called and the current row index is out of - * range. - */ - public void dataModelGetRowDataIAETest() throws EETest.Fault { - super.dataModelGetRowDataIAETest(); - } - - /** - * @testName: dataModelGetRowDataTest - * @assertion_ids: JSF:JAVADOC:2010 - * @test_Strategy: Verify getRowData() returns the expected result based on - * varying index values. - */ - public void dataModelGetRowDataTest() throws EETest.Fault { - super.dataModelGetRowDataTest(); - } - - /** - * @testName: dataModelGetSetRowIndexTest - * @assertion_ids: JSF:JAVADOC:2013; JSF:JAVADOC:2020 - * @test_Strategy: Verify -1 is returned by getRowIndex() if no backing data - * is available. Additionally verify that getRowIndex() - * returns the value as set by setRowIndex(). - */ - public void dataModelGetSetRowIndexTest() throws EETest.Fault { - super.dataModelGetSetRowIndexTest(); - } - - /** - * @testName: dataModelGetSetWrappedDataTest - * @assertion_ids: JSF:JAVADOC:2015; JSF:JAVADOC:2023 - * @test_Strategy: Verify wrapped data set via setWrappedData() is returned as - * expected. - */ - public void dataModelGetSetWrappedDataTest() throws EETest.Fault { - super.dataModelGetSetWrappedDataTest(); - } - - /** - * @testName: dataModelIsRowAvailableTest - * @assertion_ids: JSF:JAVADOC:2016 - * @test_Strategy: Verify false is returned by isRowAvailable() if the - * DataModel instance has no backing data. Then, call - * setWrappedData() with a valid Object and verify true is - * returned. - */ - public void dataModelIsRowAvailableTest() throws EETest.Fault { - super.dataModelIsRowAvailableTest(); - } - - /** - * @testName: dataModelListenerTest - * @assertion_ids: JSF:JAVADOC:2023; JSF:JAVADOC:2020 - * @test_Strategy: Verify the following: - Verify registered listeners are - * called in order of registration when setWrappedData() is - * called with a valid value. - Verify registered listeners - * are called in order of registration when data has already - * been wrapped, and setRowIndex has been called with a new, - * valid, index value. - No events are fired if setRowIndex() - * is called and the new value is the same as the previous - * value. - No events are fired if setRowIndex() is called - * when there is no backing data - ensure the index value set - * is stored. - */ - public void dataModelListenerTest() throws EETest.Fault { - super.dataModelListenerTest(); - } - - /** - * @testName: dataModelSetRowIndexIAETest - * @assertion_ids: JSF:JAVADOC:2022 - * @test_Strategy: Verify an IllegalArgumentException is thrown if - * setRowIndex() is called with an index value less than -1. - */ - public void dataModelSetRowIndexIAETest() throws EETest.Fault { - super.dataModelSetRowIndexIAETest(); - } - - /** - * @testName: dataModelRemoveDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1946 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelRemoveDataModelListenerNPETest() throws EETest.Fault { - super.dataModelRemoveDataModelListenerNPETest(); - } - - /** - * @testName: dataModelAddDataModelListenerNPETest - * @assertion_ids: JSF:JAVADOC:1931 - * @test_Strategy: Verify a NulPointException is thrown if listener is null. - */ - public void dataModelAddDataModelListenerNPETest() throws EETest.Fault { - super.dataModelAddDataModelListenerNPETest(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/build.xml deleted file mode 100644 index 5444bc5f70..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.war.sun-web.xml deleted file mode 100644 index 8165d4e38a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_scalardm_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.xml deleted file mode 100644 index 6e5499995c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/scalardatamodel/jsf_model_scalardm_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_scalardm - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.scalardatamodel.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/TestServlet.java deleted file mode 100644 index 503ab2d4fb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/TestServlet.java +++ /dev/null @@ -1,418 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitem; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.SelectItem; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // --------------------------------------------------- Test Methods - - public void selectItemCtor0Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - try { - new SelectItem(); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item; - try { - item = new SelectItem("value"); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to the ctor."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - if (!"value".equals(item.getLabel())) { - out.println( - JSFTestUtil.FAIL + " getLabel() didn't return the default value."); - out.println("Expected: value"); - out.println("Received: " + item.getLabel()); - return; - } - - if (item.getDescription() != null) { - out.println(JSFTestUtil.FAIL - + " getDescription() didn't return the default value."); - out.println("Expected: null"); - out.println("Received: " + item.getDescription()); - return; - } - - if (item.isDisabled()) { - out.println( - JSFTestUtil.FAIL + " isDisabled() didn't return the default value."); - out.println("Expected: false"); - out.println("Received: " + item.isDisabled()); - return; - } - - if (!item.isEscape()) { - out.println( - JSFTestUtil.FAIL + " isEscape() didn't return the default value."); - out.println("Expected: true"); - out.println("Received: " + item.isEscape()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item; - try { - item = new SelectItem("value", "label"); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to the ctor."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - if (!"label".equals(item.getLabel())) { - out.println(JSFTestUtil.FAIL + " getLabel() didn't return the value" - + " provided to the ctor."); - out.println("Expected: label"); - out.println("Received: " + item.getLabel()); - return; - } - - if (item.getDescription() != null) { - out.println(JSFTestUtil.FAIL - + " getDescription() didn't return the default value."); - out.println("Expected: null"); - out.println("Received: " + item.getDescription()); - return; - } - - if (item.isDisabled()) { - out.println( - JSFTestUtil.FAIL + " isDisabled() didn't return the default value."); - out.println("Expected: false"); - out.println("Received: " + item.isDisabled()); - return; - } - - if (!item.isEscape()) { - out.println( - JSFTestUtil.FAIL + " isEscape() didn't return the default value."); - out.println("Expected: true"); - out.println("Received: " + item.isEscape()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemCtor3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item; - try { - item = new SelectItem("value", "label", "description"); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to the ctor."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - if (!"label".equals(item.getLabel())) { - out.println(JSFTestUtil.FAIL + " getLabel() didn't return the value" - + " provided to the ctor."); - out.println("Expected: label"); - out.println("Received: " + item.getLabel()); - return; - } - - if (!"description".equals(item.getDescription())) { - out.println(JSFTestUtil.FAIL + " getDescription() didn't return the value" - + " provided to the ctor."); - out.println("Expected: description"); - out.println("Received: " + item.getDescription()); - return; - } - - if (item.isDisabled()) { - out.println( - JSFTestUtil.FAIL + " isDisabled() didn't return the default value."); - out.println("Expected: false"); - out.println("Received: " + item.isDisabled()); - return; - } - - if (!item.isEscape()) { - out.println( - JSFTestUtil.FAIL + " isEscape() didn't return the default value."); - out.println("Expected: true"); - out.println("Received: " + item.isEscape()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemCtor4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item; - try { - item = new SelectItem("value", "label", "description", true); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to the ctor."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - if (!"label".equals(item.getLabel())) { - out.println(JSFTestUtil.FAIL + " getLabel() didn't return the value" - + " provided to the ctor."); - out.println("Expected: label"); - out.println("Received: " + item.getLabel()); - return; - } - - if (!"description".equals(item.getDescription())) { - out.println(JSFTestUtil.FAIL + " getDescription() didn't return the value" - + " provided to the ctor."); - out.println("Expected: description"); - out.println("Received: " + item.getDescription()); - return; - } - - if (!item.isDisabled()) { - out.println(JSFTestUtil.FAIL + " Expected isDisabled to return true as" - + " provided to the ctor."); - return; - } - - if (!item.isEscape()) { - out.println( - JSFTestUtil.FAIL + " isEscape() didn't return the default value."); - out.println("Expected: true"); - out.println("Received: " + item.isEscape()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemCtor5Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item; - try { - item = new SelectItem("value", "label", "description", true, false); - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception: " + e); - return; - } - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to the ctor."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - if (!"label".equals(item.getLabel())) { - out.println(JSFTestUtil.FAIL + " getLabel() didn't return the value" - + " provided to the ctor."); - out.println("Expected: label"); - out.println("Received: " + item.getLabel()); - return; - } - - if (!"description".equals(item.getDescription())) { - out.println(JSFTestUtil.FAIL + " getDescription() didn't return the value" - + " provided to the ctor."); - out.println("Expected: description"); - out.println("Received: " + item.getDescription()); - return; - } - - if (!item.isDisabled()) { - out.println(JSFTestUtil.FAIL + " Expected isDisabled to return true as" - + " provided to the ctor."); - return; - } - - if (item.isEscape()) { - out.println(JSFTestUtil.FAIL + " Expected isEscape to return false as" - + " provided to the ctor."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemGetSetValueTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item = new SelectItem(); - item.setValue("value"); - - if (!"value".equals(item.getValue())) { - out.println(JSFTestUtil.FAIL + " getValue() didn't return the value" - + " provided to setValue()."); - out.println("Expected: value"); - out.println("Received: " + item.getValue()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemGetSetLabelTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item = new SelectItem(); - item.setLabel("label"); - - if (!"label".equals(item.getLabel())) { - out.println(JSFTestUtil.FAIL + " getLabel() didn't return the value" - + " provided to setLabel()."); - out.println("Expected: label"); - out.println("Received: " + item.getLabel()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemGetSetDescriptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item = new SelectItem(); - item.setDescription("description"); - - if (!"description".equals(item.getDescription())) { - out.println(JSFTestUtil.FAIL + " getDescription() didn't return the value" - + " provided to setDescription()."); - out.println("Expected: description"); - out.println("Received: " + item.getDescription()); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemIsSetDisabledTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item = new SelectItem(); - - if (item.isDisabled()) { - out.println(JSFTestUtil.FAIL + " Expected isDisabled() to return false" - + " on a newly created instance."); - return; - } - - item.setDisabled(true); - - if (!item.isDisabled()) { - out.println(JSFTestUtil.FAIL + " Expected isDisabled to return true " - + "after having set it as such via setDisabled()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemIsSetEscapeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItem item = new SelectItem(); - - item.setEscape(true); - - if (!item.isEscape()) { - out.println(JSFTestUtil.FAIL + " Expected isDisabled to return true " - + "after having set it as such via setDisabled()."); - return; - } - - out.println(JSFTestUtil.PASS); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/URLClient.java deleted file mode 100644 index 02893a4c00..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/URLClient.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitem; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_model_selitem_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - if (getContextRoot() == null) - setContextRoot(CONTEXT_ROOT); - if (getServletName() == null) - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: selectItemCtor0Test - * @assertion_ids: JSF:JAVADOC:2031 - * @test_Strategy: Verify a new SelectItem instance can be created providing - * no arguments. - */ - public void selectItemCtor0Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor0Test"); - invoke(); - } - - /** - * @testName: selectItemCtor1Test - * @assertion_ids: JSF:JAVADOC:2032 - * @test_Strategy: Verify a new SelectItem instance can be created providing a - * new value at construction time. Verify this value can be - * obtained via getValue(). Verify the label, description, - * disabled and escape properties have the default values. - */ - public void selectItemCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor1Test"); - invoke(); - } - - /** - * @testName: selectItemCtor2Test - * @assertion_ids: JSF:JAVADOC:2033 - * @test_Strategy: Verify a new SelectItem instance can be created providing a - * new value and label at construction time. Verify these - * values can be obtained via getValue() and getLabel() - * respectively. Verify the description, disabled and escape - * properties have the default values. - */ - public void selectItemCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor2Test"); - invoke(); - } - - /** - * @testName: selectItemCtor3Test - * @assertion_ids: JSF:JAVADOC:2034 - * @test_Strategy: Verify a new SelectItem instance can be created providing a - * new value, label, and description at construction time. - * Verify these values can be obtained via getValue(), - * getLabel(), and getDescription() respectively. Verify the - * disabled and escape properties have the default values. - */ - public void selectItemCtor3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor3Test"); - invoke(); - } - - /** - * @testName: selectItemCtor4Test - * @assertion_ids: JSF:JAVADOC:2035 - * @test_Strategy: Verify a new SelectItem instance can be created providing a - * new value, label, description, and disabled status at - * construction time. Verify these values can be obtained via - * getValue(), getLabel(), getDescription(), and isDisabled() - * respectively. Verify the escape property has the default - * value. - */ - public void selectItemCtor4Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor4Test"); - invoke(); - } - - /** - * @testName: selectItemCtor5Test - * @assertion_ids: JSF:JAVADOC:2036 - * @test_Strategy: Verify a new SelectItem instance can be created providing a - * new value, label, description, disabled status, and escape - * status at construction time. Verify these values can be - * obtained via getValue(), getLabel(), getDescription(), - * isDisabled() and isEscape() respectively. - */ - public void selectItemCtor5Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemCtor5Test"); - invoke(); - } - - /** - * @testName: selectItemGetSetValueTest - * @assertion_ids: JSF:JAVADOC:2027; JSF:JAVADOC:2043 - * @test_Strategy: Verify the value set via setValue() is returned by - * getValue(). - */ - public void selectItemGetSetValueTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGetSetValueTest"); - invoke(); - } - - /** - * @testName: selectItemGetSetLabelTest - * @assertion_ids: JSF:JAVADOC:2026; JSF:JAVADOC:2041 - * @test_Strategy: Verify the value set via setLabel() is returned by - * getLabel(). - */ - public void selectItemGetSetLabelTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGetSetLabelTest"); - invoke(); - } - - /** - * @testName: selectItemGetSetDescriptionTest - * @assertion_ids: JSF:JAVADOC:2025; JSF:JAVADOC:2041 - * @test_Strategy: Verify the value set via setDescription() is returned by - * getDescription(). - */ - public void selectItemGetSetDescriptionTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGetSetDescriptionTest"); - invoke(); - } - - /** - * @testName: selectItemIsSetDisabledTest - * @assertion_ids: JSF:JAVADOC:2028; JSF:JAVADOC:2039 - * @test_Strategy: Verify the default return value for isDisabled() is false. - * Verify the value set via setDisabled() is returned by - * isDisabled(). - */ - public void selectItemIsSetDisabledTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemIsSetDisabledTest"); - invoke(); - } - - /** - * @testName: selectItemIsSetEscapeTest - * @assertion_ids: JSF:JAVADOC:2029; JSF:JAVADOC:2040 - * @test_Strategy: Verify the value set via setEscape() is returned by - * isEscape(). - */ - public void selectItemIsSetEscapeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemIsSetEscapeTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/build.xml deleted file mode 100644 index 5299a9b9d4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.war.sun-web.xml deleted file mode 100644 index 2d2b3f7ac1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_selitem_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.xml deleted file mode 100644 index 44862e8b54..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitem/jsf_model_selitem_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_model_selitem - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitem.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/TestServlet.java deleted file mode 100644 index bec503bf67..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/TestServlet.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitemgroup; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Arrays; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.model.SelectItem; -import jakarta.faces.model.SelectItemGroup; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet - extends com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitem.TestServlet { - - private static final SelectItem[] ITEMS = { - new SelectItem("value1", "label1"), new SelectItem("value2", "label2") }; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void selectItemGroupCtor0Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - new SelectItemGroup(); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + " Unexpected exception creating " - + "new SelectItemGroup: "); - e.printStackTrace(); - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemGroupCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - try { - String result = new SelectItemGroup("label").getLabel(); - - if (!"label".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected value returned by getLabel()." + JSFTestUtil.NL - + "Expected: label" + JSFTestUtil.NL + "Received: " + result); - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected exception creating new SelectItemGroup!"); - e.printStackTrace(); - } - } - - public void selectItemGroupCtor4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - SelectItemGroup group = null; - - try { - group = new SelectItemGroup("label", "description", true, ITEMS); - - if (!"label".equals(group.getLabel())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getLabel() didn't return the value provided to the " + "ctor." - + JSFTestUtil.NL + "Expected: label" + JSFTestUtil.NL + "Received: " - + group.getLabel()); - return; - } - - if (!"description".equals(group.getDescription())) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getDescription() didn't return the value provided " - + "to the ctor." + JSFTestUtil.NL + "Expected: description" - + JSFTestUtil.NL + "Received: " + group.getDescription()); - return; - } - - if (!group.isDisabled()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected isDisabled to return true as provided to " - + "the ctor."); - return; - } - - if (!(this.testSelectitems(ITEMS, group, out))) { - // test fails - return; - } - - out.println(JSFTestUtil.PASS); - - } catch (Exception e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected exception creating new SelectItemGroup: "); - e.printStackTrace(); - } - - } // End selectItemGroupCtor4Test - - public void selectItemGroupGetSetSelectItemsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - SelectItemGroup group = new SelectItemGroup(); - - group.setSelectItems(ITEMS); - - if (!(this.testSelectitems(ITEMS, group, out))) { - // test fails - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void selectItemSetSelectItemsNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - SelectItemGroup group = new SelectItemGroup(); - - JSFTestUtil.checkForNPE(group, "setSelectItems", - new Class[] { SelectItem[].class }, new Object[] { null }, pw); - - } - - // ------------------------------------------------ private methods - - private boolean testSelectitems(SelectItem[] golden, SelectItemGroup group, - PrintWriter out) { - boolean result = true; - SelectItem[] testItems = group.getSelectItems(); - - if (!(Arrays.equals(golden, testItems))) { - out.println( - JSFTestUtil.FAIL + " Unexpected value returned by getSelectItems()"); - - out.println("Expected: "); - for (int i = 0; i < golden.length; i++) { - out.println("SelectItem # " + i + ": value= " + golden[i].getValue() - + ", label= " + golden[i].getLabel()); - } - - out.println("Received: "); - for (int i = 0; i < testItems.length; i++) { - out.println("SelectItem # " + i + ": value= " + testItems[i].getValue() - + ", label= " + testItems[i].getLabel()); - } - - result = false; - } - - return result; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/URLClient.java deleted file mode 100644 index caebb0c0f7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/URLClient.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitemgroup; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; - -public final class URLClient - extends com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitem.URLClient { - - private static final String CONTEXT_ROOT = "/jsf_model_selitemgrp_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: selectItemGroupCtor0Test - * @assertion_ids: JSF:JAVADOC:2045 - * @test_Strategy: Verify a SelectItemGroup can be created with no args. - */ - public void selectItemGroupCtor0Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGroupCtor0Test"); - invoke(); - } - - /** - * @testName: selectItemGroupCtor1Test - * @assertion_ids: JSF:JAVADOC:2046 - * @test_Strategy: Verify a new SelectItemGroup instance can be created - * providing a new label at construction time. Verify this - * value can be obtained via getLabel(). - */ - public void selectItemGroupCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGroupCtor1Test"); - invoke(); - } - - /** - * @testName: selectItemGroupCtor4Test - * @assertion_ids: JSF:JAVADOC:2047 - * @test_Strategy: Verify a new SelectItemGroup instance can be created - * providing a new label, description, disabled qualifier, and - * an array of SelectItem instances at construction time. - * Verify these values can be obtained via getLabel(), - * getDescription(), isDisabled(), and getSelectItems() - * respectively. - */ - public void selectItemGroupCtor4Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGroupCtor4Test"); - invoke(); - } - - /** - * @testName: selectItemGroupGetSetSelectItemsTest - * @assertion_ids: JSF:JAVADOC:2044; JSF:JAVADOC:2048 - * @test_Strategy: Verify the SelectItems set via setSelectItems() is properly - * returned by getSelectItems(). - */ - public void selectItemGroupGetSetSelectItemsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "selectItemGroupGetSetSelectItemsTest"); - invoke(); - } - - /** - * @testName: selectItemGetSetDescriptionTest - * @assertion_ids: JSF:JAVADOC:2025; JSF:JAVADOC:2038 - * @test_Strategy: Verify the value set via setDescription() is returned by - * getDescription(). - */ - public void selectItemGetSetDescriptionTest() throws EETest.Fault { - super.selectItemGetSetDescriptionTest(); - } - - /** - * @testName: selectItemGetSetLabelTest - * @assertion_ids: JSF:JAVADOC:2026; JSF:JAVADOC:2041 - * @test_Strategy: Verify the value set via setLabel() is returned by - * getLabel(). - */ - public void selectItemGetSetLabelTest() throws EETest.Fault { - super.selectItemGetSetLabelTest(); - } - - /** - * @testName: selectItemGetSetValueTest - * @assertion_ids: JSF:JAVADOC:2027; JSF:JAVADOC:2043 - * @test_Strategy: Verify the value set via setValue() is returned by - * getValue(). - */ - public void selectItemGetSetValueTest() throws EETest.Fault { - super.selectItemGetSetValueTest(); - } - - /** - * @testName: selectItemIsSetDisabledTest - * @assertion_ids: JSF:JAVADOC:2028 - * @test_Strategy: Verify the default return value for isDisabled() is false. - * Verify the value set via setDisabled() is returned by - * isDisabled(). - */ - public void selectItemIsSetDisabledTest() throws EETest.Fault { - super.selectItemIsSetDisabledTest(); - } - - /** - * @testName: selectItemSetSelectItemsNPETest - * @assertion_ids: JSF:JAVADOC:2049 - * @test_Strategy: Verify a NullPointerException is thrown if selectItems is - * null - */ - public void selectItemSetSelectItemsNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "selectItemSetSelectItemsNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/build.xml deleted file mode 100644 index c487ab2252..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/build.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.war.sun-web.xml deleted file mode 100644 index 67eb62a916..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_model_selitemgrp_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.xml deleted file mode 100644 index 26a6a0bbd3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/model/selectitemgroup/jsf_model_selitemgrp_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - jsf_model_selitemgrp - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.model.selectitemgroup.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/build.xml deleted file mode 100644 index e2aea1a0cf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/TestServlet.java deleted file mode 100644 index 6628313ab6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/TestServlet.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.clientbehaviorrenderer; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIForm; -import jakarta.faces.component.behavior.AjaxBehavior; -import jakarta.faces.component.behavior.ClientBehavior; -import jakarta.faces.context.FacesContext; -import jakarta.faces.render.ClientBehaviorRenderer; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public RenderKit getRenderKit() { - RenderKitFactory factory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - - return factory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - } - - // --------------------------------------------------------- Test Methods - - public void clientBehaviorRendererDecodeNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ClientBehavior cb = new AjaxBehavior(); - UIComponent comp = new UIForm(); - ClientBehaviorRenderer cbr = new TCKcbr(); - - // null FacesContext - JSFTestUtil - .checkForNPE( - cbr, "decode", new Class[] { FacesContext.class, - UIComponent.class, ClientBehavior.class }, - new Object[] { null, comp, cb }, pw); - - // null UIComponent - JSFTestUtil - .checkForNPE( - cbr, "decode", new Class[] { FacesContext.class, - UIComponent.class, ClientBehavior.class }, - new Object[] { context, null, cb }, pw); - - // null ClientBehavior - JSFTestUtil - .checkForNPE(cbr, "decode", - new Class[] { FacesContext.class, UIComponent.class, - ClientBehavior.class }, - new Object[] { context, comp, null }, pw); - - } - - private class TCKcbr extends ClientBehaviorRenderer { - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/URLClient.java deleted file mode 100644 index a7d143df55..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/URLClient.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.clientbehaviorrenderer; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_render_cbrender_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * - * XXX This test needs to be fixed/deleted for JSF 2.3. This test uses the - * TestServlet class which imports and utilizes an RI specific class. See bug - * ID: 20704066 - * - * @testName: clientBehaviorRendererDecodeNPETest - * - * @assertion_ids: JSF:JAVADOC:2052 - * - * @test_Strategy: Verify that a NullPointerException is thrown if context, - * component, or behavior is null. - * - * @since: 2.2 - */ - public void clientBehaviorRendererDecodeNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "clientBehaviorRendererDecodeNPETest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/build.xml deleted file mode 100644 index 6388450a14..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.war.sun-web.xml deleted file mode 100644 index a8b2721ee8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_render_cbrender_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.xml deleted file mode 100644 index 9e2dc8808e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/clientbehaviorrenderer/jsf_render_cbrender_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_cbrender - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.render.clientbehaviorrenderer.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/TestServlet.java deleted file mode 100644 index 6d3429ddbc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/TestServlet.java +++ /dev/null @@ -1,421 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkit; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.OutputStreamWriter; -import java.io.PrintWriter; -import java.io.StringWriter; -import java.util.Iterator; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.component.UIComponent; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.ResponseStream; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.render.ClientBehaviorRenderer; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.Renderer; -import jakarta.faces.render.ResponseStateManager; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public RenderKit getRenderKit() { - RenderKitFactory factory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - - return factory.getRenderKit(getFacesContext(), - RenderKitFactory.HTML_BASIC_RENDER_KIT); - } - - // ---------------------------------------------------- Test Methods - - public void renderKitAddGetRendererTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - TCKRenderer renderer = new TCKRenderer(); - RenderKit defaultKit = getRenderKit(); - - defaultKit.addRenderer("TCK", "TCK", renderer); - Renderer result = defaultKit.getRenderer("TCK", "TCK"); - - if (result != renderer) { - out.println(JSFTestUtil.FAIL + " Unexpected result returned" - + " from getRenderer() when requesting a Renderer that" - + " was added via addRenderer()."); - out.println("Expected: " + renderer); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitGetRendererTypesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - TCKRenderer renderer = new TCKRenderer(); - RenderKit defaultKit = getRenderKit(); - String type = "TCK"; - - defaultKit.addRenderer(type, type, renderer); - Iterator itr = defaultKit.getRendererTypes(type); - String result = null; - - while (itr.hasNext()) { - result = itr.next(); - } - - if (!type.equals(result)) { - out.println(JSFTestUtil.FAIL + " Unexpected result returned" - + " from getRendererTypes() when requesting a Renderer " - + "that was added via addRenderer()."); - out.println("Expected: " + type); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitAddGetClientBehaviorRendererTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ClientBehaviorRenderer renderer = new TCKcbr(); - RenderKit defaultKit = getRenderKit(); - - defaultKit.addClientBehaviorRenderer("TCK", renderer); - ClientBehaviorRenderer result = defaultKit.getClientBehaviorRenderer("TCK"); - - if (result != renderer) { - out.println(JSFTestUtil.FAIL + " Unexpected result returned" - + " from getRenderer() when requesting a Renderer that" - + " was added via addRenderer()."); - out.println("Expected: " + renderer); - out.println("Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitAddRendererNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - pw.println("Testing: addRenderer(null, 'TCK', new TCKRenderer())"); - JSFTestUtil.checkForNPE(defaultKit, "addRenderer", - new Class[] { String.class, String.class, Renderer.class }, - new Object[] { null, "TCK", new TCKRenderer() }, pw); - - pw.println("Testing: addRenderer('TCK', null, new TCKRenderer())"); - JSFTestUtil.checkForNPE(defaultKit, "addRenderer", - new Class[] { String.class, String.class, Renderer.class }, - new Object[] { "TCK", null, new TCKRenderer() }, pw); - - pw.println("Testing: addRenderer('TCK', 'TCK', null)"); - JSFTestUtil.checkForNPE(defaultKit, "addRenderer", - new Class[] { String.class, String.class, Renderer.class }, - new Object[] { "TCK", "TCK", null }, pw); - - } - - public void renderKitGetRendererNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - pw.println("Testing: getRenderer('TCK', null)"); - JSFTestUtil.checkForNPE(defaultKit, "getRenderer", - new Class[] { String.class, String.class }, - new Object[] { "TCK", null }, pw); - - pw.println("Testing: getRenderer(null, 'TCK')"); - JSFTestUtil.checkForNPE(defaultKit, "getRenderer", - new Class[] { String.class, String.class }, - new Object[] { null, "TCK" }, pw); - - } - - public void renderKitAddClientBehaviorRendererNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - pw.println("Testing: addClientBehaviorRenderer('TCK', null)"); - JSFTestUtil.checkForNPE(defaultKit, "addClientBehaviorRenderer", - new Class[] { String.class, ClientBehaviorRenderer.class }, - new Object[] { "TCK", null }, pw); - - pw.println("Testing: getRenderer(null, 'TCK')"); - JSFTestUtil.checkForNPE(defaultKit, "addClientBehaviorRenderer", - new Class[] { String.class, ClientBehaviorRenderer.class }, - new Object[] { null, new TCKcbr() }, pw); - - } - - public void renderKitGetClientBehaviorRendererNPETest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - pw.println("Testing: getClientBehaviorRenderer(null)"); - JSFTestUtil.checkForNPE(defaultKit, "getClientBehaviorRenderer", - new Class[] { String.class }, new Object[] { null }, pw); - - } - - public void renderKitCreateResponseStreamTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ByteArrayOutputStream bOut = new ByteArrayOutputStream(); - - RenderKit defaultKit = getRenderKit(); - - ResponseStream stream = defaultKit.createResponseStream(bOut); - - if (stream == null) { - out.println(JSFTestUtil.FAIL + " createResponseStream() returned null."); - return; - } - - stream.write("string".getBytes()); - stream.flush(); - - if (bOut.toString().indexOf("string") < 0) { - out.println(JSFTestUtil.FAIL + " Expected an invocation of method on" - + " newly created ResponseStream would have written the bytes" - + " to the underlying ByteArrayOutputStream(). Unexpected result" - + " found."); - out.println("Expected to find the term 'string' in the result."); - out.println("Result: " + bOut.toString()); - } - - try { - stream.close(); - } catch (IOException ioe) { - // ignore - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitCreateResponseWriterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - ByteArrayOutputStream bOut = new ByteArrayOutputStream(); - OutputStreamWriter wOut = new OutputStreamWriter(bOut); - - RenderKit defaultKit = getRenderKit(); - - ResponseWriter writer = defaultKit.createResponseWriter(wOut, "text/html", - "ISO-8859-1"); - - if (writer == null) { - out.println(JSFTestUtil.FAIL + " createResponseStream() returned null."); - return; - } - - writer.write("string"); - writer.flush(); - wOut.flush(); - - if (bOut.toString().indexOf("string") < 0) { - out.println(JSFTestUtil.FAIL + " Expected an invocation of method on" - + " newly created ResponseStream would have written the bytes" - + " to the underlying ByteArrayOutputStream(). Unexpected result" - + " found."); - out.println("Expected to find the term 'string' in the result."); - out.println("Result: " + bOut.toString()); - return; - } - - try { - writer.close(); - } catch (IOException ioe) { - // ignore - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitCreateResponseWriterInvalidContentTypeTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - try { - defaultKit.createResponseWriter(new StringWriter(), - "invalid/content-type", "ISO-8859-1"); - out.println("No Exception thrown when passing an invalid content" - + " type to the createResponseWriter() method."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when passing an" - + " invalid content type to createResponseWriter(), but" - + " it wasn't an instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitCreateResponseWriterInvalidEncodingTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - try { - defaultKit.createResponseWriter(new StringWriter(), "text/html", - "noSuchEncoding"); - out.println("No Exception thrown when passing an invalid encoding" - + " to the createResponseWriter() method."); - return; - } catch (Exception e) { - if (!(e instanceof IllegalArgumentException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when passing an" - + " invalid encoding to createResponseWriter(), but" - + " it wasn't an instance of IllegalArgumentException."); - out.println("Exception received: " + e.getClass().getName()); - return; - } - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitGetResponseStateManagerTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - RenderKit defaultKit = getRenderKit(); - - ResponseStateManager manager = defaultKit.getResponseStateManager(); - - if (manager == null) { - out.println( - JSFTestUtil.FAIL + " getResponseStateManager() returned null."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitGetClientBehaviorRendererTypesTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ClientBehaviorRenderer renderer = new TCKcbr(); - RenderKit defaultKit = getRenderKit(); - String type = "TCK"; - - defaultKit.addClientBehaviorRenderer(type, renderer); - Iterator itr = defaultKit.getRendererTypes(type); - String result = null; - - while (itr.hasNext()) { - result = itr.next(); - } - - if (!type.equals(result)) { - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected result returned from " - + "getClientBehaviorRendererTypes() when requesting " - + "a Renderer that was added via " - + "addClientBehaviorRendererRenderer()." + JSFTestUtil.NL - + "Expected: " + type + JSFTestUtil.NL + "Received: " + result); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // ----------------------------------------------------------Private Classes - - private static class TCKRenderer extends Renderer { - public String convertClientId(FacesContext context, String clientId) { - return super.convertClientId(context, clientId); - } - - public void decode(FacesContext context, UIComponent component) { - super.decode(context, component); - } - - public void encodeBegin(FacesContext context, UIComponent component) - throws IOException { - super.encodeBegin(context, component); - } - - public void encodeChildren(FacesContext context, UIComponent component) - throws IOException { - super.encodeChildren(context, component); - } - - public void encodeEnd(FacesContext context, UIComponent component) - throws IOException { - super.encodeEnd(context, component); - } - - public boolean getRendersChildren() { - return super.getRendersChildren(); - } - } - - private class TCKcbr extends ClientBehaviorRenderer { - // do nothing needed a ClientBehaviorRenderer type for NPE tests. - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/URLClient.java deleted file mode 100644 index 344ccc7197..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/URLClient.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkit; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_render_renderkit_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: renderKitAddGetRendererTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2077; JSF:JAVADOC:2084 - * @test_Strategy: Ensure that any Renderer added to the RenderKit can be - * obtained again via getRenderer(). Also validate null is - * returned if an ID is provided that hasn't been previously - * registered. - */ - public void renderKitAddGetRendererTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitAddGetRendererTest"); - invoke(); - } - - /** - * @testName: renderKitGetRendererTypesTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2090 - * @test_Strategy: Ensure that after we add a Renderer to the default - * RenderKit, that we get back that the correct type when - * calling getRendererTypes. - */ - public void renderKitGetRendererTypesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitGetRendererTypesTest"); - invoke(); - } - - /** - * @testName: renderKitAddGetClientBehaviorRendererTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2079; JSF:JAVADOC:2088 - * @test_Strategy: Ensure that a ClientBehaviorRenderer added to the RenderKit - * can be obtained again via getClientBehaviorRenderer(). Also - * validate null is returned if an ID is provided that hasn't - * been previously registered. - */ - public void renderKitAddGetClientBehaviorRendererTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitAddGetClientBehaviorRendererTest"); - invoke(); - } - - /** - * @testName: renderKitAddRendererNPETest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2080 - * @test_Strategy: Ensure NPE is thrown if either of the arguments to - * addRenderer() are null. - */ - public void renderKitAddRendererNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitAddRendererNPETest"); - invoke(); - } - - /** - * @testName: renderKitGetRendererNPETest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2089 - * @test_Strategy: Ensure NPE is thrown if the argument passed to - * getRenderer() is null. - */ - public void renderKitGetRendererNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitGetRendererNPETest"); - invoke(); - } - - /** - * @testName: renderKitCreateResponseStreamTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2081 - * @test_Strategy: Ensure a ResponseStream can be successfully created and - * used. - */ - public void renderKitCreateResponseStreamTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitCreateResponseStreamTest"); - invoke(); - } - - /** - * @testName: renderKitCreateResponseWriterTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2082 - * @test_Strategy: Ensure a ResponseWriter, providing a valid content type and - * encoding can be successfully created and used. - */ - public void renderKitCreateResponseWriterTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitCreateResponseWriterTest"); - invoke(); - } - - /** - * @testName: renderKitCreateResponseWriterInvalidContentTypeTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2083 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if an invalid - * content type is passed to createResponseWriter(). - */ - public void renderKitCreateResponseWriterInvalidContentTypeTest() - throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitCreateResponseWriterInvalidContentTypeTest"); - invoke(); - } - - /** - * @testName: renderKitCreateResponseWriterInvalidEncodingTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2083 - * @test_Strategy: Ensure an IllegalArgumentException is thrown if an invalid - * encoding is passed to createResponseWriter(). - */ - public void renderKitCreateResponseWriterInvalidEncodingTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitCreateResponseWriterInvalidEncodingTest"); - invoke(); - } - - /** - * @testName: renderKitGetResponseStateManagerTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2091 - * @test_Strategy: Ensure a non-null result from calling - * getResponseStateManger(). - */ - public void renderKitGetResponseStateManagerTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitGetResponseStateManagerTest"); - invoke(); - } - - /** - * @testName: renderKitAddClientBehaviorRendererNPETest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2078 - * @test_Strategy: Ensure NPE is thrown if either of the arguments to - * addRenderer() are null. - */ - public void renderKitAddClientBehaviorRendererNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitAddClientBehaviorRendererNPETest"); - invoke(); - } - - /** - * @testName: renderKitGetClientBehaviorRendererNPETest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2085 - * @test_Strategy: Ensure NPE is thrown if either of the arguments to - * addRenderer() are null. - */ - public void renderKitGetClientBehaviorRendererNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitGetClientBehaviorRendererNPETest"); - invoke(); - } - - /** - * @testName: renderKitGetClientBehaviorRendererTypesTest - * @assertion_ids: JSF:JAVADOC:2092; JSF:JAVADOC:2086 - * @test_Strategy: Ensure that after we add a ClientBehaviorRenderer to the - * default RenderKit, that we get back that the correct type - * when calling getClientBehaviorRendererTypes. - */ - public void renderKitGetClientBehaviorRendererTypesTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "renderKitGetClientBehaviorRendererTypesTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/build.xml deleted file mode 100644 index e5d24e1748..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.war.sun-web.xml deleted file mode 100644 index ab3e20a5b6..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_render_renderkit_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.xml deleted file mode 100644 index a9693bdade..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkit/jsf_render_renderkit_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_render_renderkit - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkit.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/TestServlet.java deleted file mode 100644 index 8b412dc03f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/TestServlet.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkitfactory; - -import java.io.IOException; -import java.io.OutputStream; -import java.io.PrintWriter; -import java.io.Writer; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.context.ResponseStream; -import jakarta.faces.context.ResponseWriter; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.render.Renderer; -import jakarta.faces.render.ResponseStateManager; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws jakarta.servlet.ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - private RenderKitFactory getFactory() { - return (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - } - - // ---------------------------------------------------------------- Test - // Methods - - public void renderKitFactoryAddGetRenderKitTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - RenderKitFactory factory = getFactory(); - - TCKRenderKit renderKit = new TCKRenderKit(); - factory.addRenderKit("TCKRenderKit", renderKit); - - RenderKit result = factory.getRenderKit(getFacesContext(), "TCKRenderKit"); - - if (result != renderKit) { - out.println(JSFTestUtil.FAIL + " getRenderKit() didn't return the" - + " expected value."); - out.println("Expected: " + renderKit); - out.println("Received: " + result); - return; - } - - // getRenderKit() should return null if there is no RenderKit - // mapped to the specific identifier. - if (factory.getRenderKit(getFacesContext(), - "norenderkitwouldpossiblybemappedtothisid") != null) { - out.println(JSFTestUtil.FAIL + " Expected getRenderKit(String) to return" - + " null in the case that the provided render kit ID had no" - + " associated RenderKit."); - out.println("RenderKit received: " + factory.getRenderKit( - getFacesContext(), "norenderkitwouldpossiblybemappedtothisid")); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void renderKitFactoryGetRenderKitIdsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - RenderKitFactory factory = getFactory(); - factory.addRenderKit("TCKRenderKit", new TCKRenderKit()); - int count = 0; - List ids = new ArrayList(); - - List expectedIds = new ArrayList(); - expectedIds.add(RenderKitFactory.HTML_BASIC_RENDER_KIT); - expectedIds.add("TCKRenderKit"); - - for (Iterator i = factory.getRenderKitIds(); i.hasNext();) { - ids.add(i.next()); - count++; - } - - if (count < 2) { - out.println(JSFTestUtil.FAIL + " Expected at least 2 registered" - + " RenderKit IDs to be retured."); - out.println("Actual count: " + count); - return; - } - - if (!ids.containsAll(expectedIds)) { - out.println("The Iterator returned by getRenderKitIds() didn't" - + " return all of the expected results."); - out.println("Expected Iterator to contain at least the following: " + "'" - + RenderKitFactory.HTML_BASIC_RENDER_KIT + "', '" + "TCKRenderKit'."); - out.println("Lifecycle IDs recevied: " - + JSFTestUtil.getAsString(factory.getRenderKitIds())); - return; - } - - out.println(JSFTestUtil.PASS); - } - - // --------------------------------------------------------- Private Classes - - private static class TCKRenderKit extends RenderKit { - - public void addRenderer(String family, String rendererType, - Renderer renderer) { - // no-op - } - - public Renderer getRenderer(String family, String rendererType) { - return null; - } - - public ResponseStream createResponseStream(OutputStream out) { - return null; - } - - public ResponseWriter createResponseWriter(Writer writer, - String contentTypeList, String characterEncoding) { - return null; - } - - public ResponseStateManager getResponseStateManager() { - return null; - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/URLClient.java deleted file mode 100644 index 53702e91eb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/URLClient.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkitfactory; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_render_rkfactory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: renderKitFactoryAddGetRenderKitTest - * @assertion_ids: JSF:JAVADOC:2093; JSF:JAVADOC:2095 - * @test_Strategy: Ensure RenderKits can be registered and then obtained after - * registration. - */ - public void renderKitFactoryAddGetRenderKitTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitFactoryAddGetRenderKitTest"); - invoke(); - } - - /** - * @testName: renderKitFactoryGetRenderKitIdsTest - * @assertion_ids: JSF:JAVADOC:2098 - * @test_Strategy: Ensure the Iterator returned by getRenderKitIds() contains - * all of the expected IDs. - */ - public void renderKitFactoryGetRenderKitIdsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "renderKitFactoryGetRenderKitIdsTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/build.xml deleted file mode 100644 index 4db4fb997c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.war.sun-web.xml deleted file mode 100644 index 51a807df89..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_render_rkfactory_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.xml deleted file mode 100644 index 2460241823..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/render/renderkitfactory/jsf_render_rkfactory_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_render_rkfactory - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.render.renderkitfactory.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/TestServlet.java deleted file mode 100644 index b85e7aebaa..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/TestServlet.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.beanvalidator; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.validator.BeanValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new BeanValidator(); - } - - public void beanValidatorCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new BeanValidator(); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The no-arg constructor for BeanValidator " - + "threw an unexpected exception "); - e.printStackTrace(); - } - } - - public void beanvalidatorClearInitialStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - BeanValidator bv = new BeanValidator(); - bv.markInitialState(); - - if (bv.initialStateMarked()) { - bv.clearInitialState(); - } - - if (!bv.initialStateMarked()) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " BeanValidator.clearInitialState didn't " - + "Reset the PartialStateHolder to a non-delta tracking " + "state."); - } - } - - public void beanvalidatorgetsetValidationGroupsTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - BeanValidator bv = new BeanValidator(); - String vgs = "group1, group2, group3"; - bv.setValidationGroups(vgs); - - if (bv.getValidationGroups().equals(vgs)) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println("Test FAILED. BeanValidator.set/getValidationGroups() " - + "didn't set or get the correct information." + JSFTestUtil.NL - + "Expected: " + vgs + JSFTestUtil.NL + "Received: " - + bv.getValidationGroups()); - } - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - BeanValidator preSave = new BeanValidator(); - preSave.setValidationGroups("abc, efg, xyx"); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The Object returned by saveState() was " - + "not an instance of java.io.Serializable."); - return; - } - - BeanValidator postSave = new BeanValidator(); - postSave.restoreState(getFacesContext(), state); - - if (postSave.getValidationGroups().equals(preSave.getValidationGroups())) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getValidationGroups did not match after restore was " + "called!"); - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/URLClient.java deleted file mode 100644 index a3a109c8d1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/URLClient.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.beanvalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_beanvalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------ Test Methods - - /** - * @testName: beanValidatorCtorTest - * - * @assertion_ids: JSF:JAVADOC:2123; JSF:JAVADOC:2221 - * - * @test_Strategy: Validate beanValidator no-arg constructor. - */ - public void beanValidatorCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "beanValidatorCtorTest"); - invoke(); - } - - /** - * @testName: beanvalidatorClearInitialStateTest - * - * @assertion_ids: JSF:JAVADOC:2123; JSF:JAVADOC:2124 - * - * @test_Strategy: Validate clearInitialState() works as expected. - */ - public void beanvalidatorClearInitialStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "beanvalidatorClearInitialStateTest"); - invoke(); - } - - /** - * @testName: beanvalidatorgetsetValidationGroupsTest - * - * @assertion_ids: JSF:JAVADOC:2123; JSF:JAVADOC:2125; JSF:JAVADOC:2132; - * JSF:JAVADOC:2128 - * - * @test_Strategy: Verify that beanValidator.set/getValidationGroups performs - * as expected. - */ - public void beanvalidatorgetsetValidationGroupsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "beanvalidatorgetsetValidationGroupsTest"); - invoke(); - } - - // ------------------------------------------------------- StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:2127; JSF:JAVADOC:2131 - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * - * @assertion_ids: JSF:JAVADOC:2129; JSF:JAVADOC:2130 - * - * @test_Strategy: Validate that we are able to saveSate and restoreState. - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - // ------------------------------------------------ PartialStateHolder Tests - /** - * @testName: validatorPartialStateTest - * @assertion_ids: JSF:JAVADOC:2124; JSF:JAVADOC:2126; JSF:JAVADOC:2128 - * @test_Strategy: Verify that the following method calls perform as expected. - * - * clearInitialState(); initialStateMarked(); - * markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws EETest.Fault { - super.validatorPartialStateTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/build.xml deleted file mode 100644 index c4ba732581..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.war.sun-web.xml deleted file mode 100644 index c31d524b1b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_beanvalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.xml deleted file mode 100644 index b393e799ba..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/beanvalidator/jsf_validator_beanvalidator_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_validator_beanvalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.beanvalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/build.xml deleted file mode 100644 index 47d97e9704..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseStateHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseStateHolderTestServlet.java deleted file mode 100644 index 47edfc7a1c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseStateHolderTestServlet.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.StateHolder; -import jakarta.faces.component.UIComponent; -import jakarta.faces.context.FacesContext; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base test Servlet for the {@link StateHolder} interface. - *

- */ -public abstract class BaseStateHolderTestServlet extends HttpTCKServlet { - - // ----------------------------------------------- Public Methods - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ----------------------------------------------- Abstract Methods - /** - *

- * Creates a new {@link UIComponent} instance. - *

- * - * @return a new {@link UIComponent} instance. - */ - protected abstract Validator createValidator(); - - // ----------------------------------------------- Test Methods - // StateHolder.isTransient(), StateHolder.setTransient(); - public void stateHolderIsSetTransientTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - StateHolder holder; - if (createValidator() instanceof StateHolder) { - holder = (StateHolder) createValidator(); - } else { - out.println("The Specific Validator that you are trying to test " - + "does not implement the StateHolder interface!"); - return; - } - - holder.setTransient(false); - - if (holder.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return" - + " false after having explicitly setting it as such via" - + " setTransient()."); - return; - } - - holder.setTransient(true); - - if (!holder.isTransient()) { - out.println(JSFTestUtil.FAIL + " Expected isTransient() to return true" - + " after having explicitly setting it as such via" - + " setTransient()."); - return; - } - - out.println(JSFTestUtil.PASS); - } - - public void stateHolderRestoreStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - StateHolder holder; - if (createValidator() instanceof StateHolder) { - holder = (StateHolder) createValidator(); - } else { - pw.println("The Specific Validator that you are trying to test " - + "does not implement the StateHolder interface!"); - return; - } - - // Test for null FacesContext throws NPE - JSFTestUtil.checkForNPE(holder, "restoreState", - new Class[] { FacesContext.class, Object.class }, - new Object[] { null, "abc" }, pw); - - } - - public void stateHolderSaveStateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - StateHolder holder; - if (createValidator() instanceof StateHolder) { - holder = (StateHolder) createValidator(); - } else { - pw.println("The Specific Validator that you are trying to test " - + "does not implement the StateHolder interface!"); - return; - } - - // Test for null FacesContext throws NPE - JSFTestUtil.checkForNPE(holder, "saveState", - new Class[] { FacesContext.class }, new Object[] { null }, pw); - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorClient.java deleted file mode 100644 index 3e660d0c94..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorClient.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.common; - -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public abstract class BaseValidatorClient extends AbstractUrlClient { - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ------------------------------------------------------- StateHolder Tests - /* - * testName: stateHolderIsSetTransientTest - * - * @test_Strategy: Verify {is,set}Transient() - if a value is set, the same - * value is returned. - */ - public void stateHolderIsSetTransientTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderIsSetTransientTest"); - invoke(); - } - - /* - * testName: stateHolderSaveRestoreStateTest - * - * @test_Strategy: Verify saveState returns a serialized object of the - * component's current state and that this state can be restored when passing - * this state back into the restoreState() method. - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - /* - * testName: stateHolderRestoreStateNPETest - * - * @test_Strategy: Verify that restoreState throws a NullpointerException if - * either FacesContext or state is null. - */ - public void stateHolderRestoreStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderRestoreStateNPETest"); - invoke(); - } - - /* - * testName: stateHolderSaveStateNPETest - * - * @test_Strategy: Verify that saveState throws a NullpointerException if - * either FacesContext null. - */ - public void stateHolderSaveStateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveStateNPETest"); - invoke(); - } - - // ------------------------------------------------ PartialStateHolder Tests - - /* - * testName: validatorPartialStateTest - * - * @test_Strategy: Verify that the following method calls perform as expected. - * - * RegexValidator.clearInitialState(); RegexValidator.initialStateMarked(); - * RegexValidator.markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "validatorPartialStateTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorTestServlet.java deleted file mode 100644 index 071e60a2ab..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/BaseValidatorTestServlet.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.common; - -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; - -public abstract class BaseValidatorTestServlet - extends PartialStateHolderTestServlet { - - protected ServletContext servletContext; - - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/PartialStateHolderTestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/PartialStateHolderTestServlet.java deleted file mode 100644 index 0cbb790fc7..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/PartialStateHolderTestServlet.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.common; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.PartialStateHolder; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - *

- * Base test Servlet for the {@link PartialStateHolder} interface. - *

- */ -public abstract class PartialStateHolderTestServlet - extends BaseStateHolderTestServlet { - - // ----------------------------------------------------------- Public - // Methods - /** - *

- * Initializes this {@link jakarta.servlet.Servlet}. - *

- * - * @param config - * this Servlet's configuration - * @throws ServletException - * if an error occurs - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ----------------------------------------------------------- Test Methods - public void validatorPartialStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - PartialStateHolder psh; - if (createValidator() instanceof PartialStateHolder) { - psh = (PartialStateHolder) createValidator(); - } else { - out.println("The Specific Validator that you are trying to test " - + "does not implement the PartialStateHolder interface!"); - return; - } - - boolean result; - - // Expect state is 'true'. - psh.markInitialState(); - result = psh.initialStateMarked(); - if (result) { - // do nothing test status still true. - } else { - out.println("Test FAILED." + JSFTestUtil.NL - + "Unexpected state returned when calling " - + "initialStateMarked after markInitialState() was " + "called" - + JSFTestUtil.NL + "Expected: true" + JSFTestUtil.NL + "Received: " - + result); - return; - } - - // Expect state to be 'false' - psh.clearInitialState(); - result = psh.initialStateMarked(); - if (!result) { - // do nothing test status still true. - } else { - out.println("Test FAILED." + JSFTestUtil.NL - + "Unexpected state returned when calling " - + "IntialStateMarked() after clearInitialState() was " + "called" - + JSFTestUtil.NL + "Expected: false" + JSFTestUtil.NL + "Received: " - + result); - return; - } - - out.println(JSFTestUtil.PASS); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/validator.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/validator.common.xml deleted file mode 100644 index 49139fa42b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/common/validator.common.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/TestServlet.java deleted file mode 100644 index 7136fcf9d0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/TestServlet.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.doublerangevalidator; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.DoubleRangeValidator; -import jakarta.faces.validator.Validator; -import jakarta.faces.validator.ValidatorException; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new DoubleRangeValidator(); - } - - public void doubleValidatorCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - new DoubleRangeValidator(); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The no-arg constructor for DoubleRangeValidator " - + "threw an unexpected exception"); - e.printStackTrace(); - } - } - - public void doubleValidatorCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - new DoubleRangeValidator(10.0); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The DoubleRangeValidator(max) constructor" - + "threw an unexpected exception"); - e.printStackTrace(); - } - } - - public void doubleValidatorCtor3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - new DoubleRangeValidator(10.0, 1.0); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The DoubleRangeValidator(max, min) constructor " - + "threw an unexpected exception"); - e.printStackTrace(); - } - } - - public void doubleValidatorGetSetMaximumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - DoubleRangeValidator drv = new DoubleRangeValidator(); - drv.setMaximum(10.0); - - if (drv.getMaximum() == 10.0) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "DoubleRangeValidator.getMaximum didn't " - + "return the save value as provided to " + "DoubleRangeValidator." - + "setValue()." + JSFTestUtil.NL + "Expected: 10.0" + JSFTestUtil.NL - + "Received: " + drv.getMaximum()); - } - } - - public void doubleValidatorGetSetMinimumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - DoubleRangeValidator drv = new DoubleRangeValidator(); - drv.setMinimum(10.0); - - if (drv.getMinimum() == 10.0) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "DoubleRangeValidator.getMaximum didn't " - + "return the save value as provided to " - + "DoubleRangeValidator.setValue()." + JSFTestUtil.NL - + "Expected: 10.0" + JSFTestUtil.NL + "Received: " - + drv.getMinimum()); - } - } - - public void doubleValidatorValidateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - - // Max value / no-arg DoubleRangeValidator - input.setValue(Double.valueOf(Double.MAX_VALUE)); - DoubleRangeValidator drv = new DoubleRangeValidator(); - - testValidation(input, drv, facesContext, pw); - - // Min value / no-arg DoubleRangeValidator - input.setValue(Double.valueOf(Double.MAX_VALUE)); - drv = new DoubleRangeValidator(); - - testValidation(input, drv, facesContext, pw); - - // Value set below configured maximum - input.setValue(Double.valueOf(300.0)); - drv = new DoubleRangeValidator(300.00001); - - testValidation(input, drv, facesContext, pw); - - // value set between configured maximum and minimum - input.setValue(Double.valueOf(300.0)); - drv = new DoubleRangeValidator(300.00000, 299.99999); - - testValidation(input, drv, facesContext, pw); - - // value is null - input.setValue(null); - drv = new DoubleRangeValidator(300.0, 299.0); - - testValidation(input, drv, facesContext, pw); - - pw.println(JSFTestUtil.PASS); - } - - public void doubleValidatorValidateInvalidTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(new ServletException()); - input.setId("input1"); - DoubleRangeValidator drv = new DoubleRangeValidator(); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println(JSFTestUtil.FAIL + " No Exception thrown when attempting to " - + "validate invalid type for validator."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when attempting to" - + " validate invalid type, but it wasn't an instance of" - + " ValidatorException."); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - input = (UIInput) getApplication().createComponent(UIInput.COMPONENT_TYPE); - input.setValue("invalid"); - input.setId("input2"); - drv = new DoubleRangeValidator(100); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println(JSFTestUtil.FAIL + " No Exception thrown when attempting to " - + "validate a String that cannot be converted to the " - + "expected type."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when attempting to" - + " validate a String that cannot be converted to the expected" - + " type but it wasn't an instance of" + " ValidatorException."); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void doubleValidatorValidateMaxViolationTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - facesContext.setViewRoot(root); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(Double.valueOf(100.1)); - DoubleRangeValidator drv = new DoubleRangeValidator(100.0); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println( - JSFTestUtil.FAIL + " No Exception thrown when value was greater than " - + "allowable maximum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "greater than allowable maximum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void doubleValidatorValidateMinViolationTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(Double.valueOf(89.99999)); - DoubleRangeValidator drv = new DoubleRangeValidator(100.0, 99.0); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println(JSFTestUtil.FAIL + " No Exception thrown when value " - + "was less than allowable minimum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "less than allowable minimum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void doubleValidatorValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - DoubleRangeValidator drv = new DoubleRangeValidator(); - - // Test for FacesContext throws NPE - JSFTestUtil.checkForNPE(drv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, input, Double.valueOf(10) }, pw); - - // Test for UIComponent throws NPE - JSFTestUtil.checkForNPE(drv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { facesContext, null, Double.valueOf(10) }, pw); - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - DoubleRangeValidator preSave = new DoubleRangeValidator(100, 5000); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The Object returned by saveState() was " - + "not an instance of java.io.Serializable."); - return; - } - - DoubleRangeValidator postSave = new DoubleRangeValidator(); - postSave.restoreState(getFacesContext(), state); - - if (postSave.getMaximum() == preSave.getMaximum()) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getMaximum did not match after restore was called!"); - } - - } - - // --------------------------------------------------- private methods - - private static void testValidation(UIInput input, DoubleRangeValidator drv, - FacesContext context, PrintWriter pw) { - - try { - pw.println("Test Validation Range: " + drv.getMinimum() + "-" - + drv.getMaximum() + JSFTestUtil.NL + "Test Input Value: " - + input.getValue() + JSFTestUtil.NL); - - drv.validate(context, input, input.getValue()); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown during validation of value." + JSFTestUtil.NL - + "Exception: " + e); - return; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/URLClient.java deleted file mode 100644 index 1a0718b08f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/URLClient.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.doublerangevalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_doublevalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------ Test Methods - - /** - * @testName: doubleValidatorCtor1Test - * @assertion_ids: JSF:JAVADOC:2136; JSF:JAVADOC:2221 - * @test_Strategy: Validate DoubleRangeValidator no-arg constructor. - */ - public void doubleValidatorCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorCtor1Test"); - invoke(); - } - - /** - * @testName: doubleValidatorCtor2Test - * @assertion_ids: JSF:JAVADOC:2137 - * @test_Strategy: Validate DoubleRangeValidator(double max). - */ - public void doubleValidatorCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorCtor2Test"); - invoke(); - } - - /** - * @testName: doubleValidatorCtor3Test - * @assertion_ids: JSF:JAVADOC:2138 - * @test_Strategy: Validate DoubleRangeValidator(double max, double min). - */ - public void doubleValidatorCtor3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorCtor3Test"); - invoke(); - } - - /** - * @testName: doubleValidatorGetSetMaximumTest - * @assertion_ids: JSF:JAVADOC:2140; JSF:JAVADOC:2148 - * @test_Strategy: Validate get/setMaximum() works as expected. - */ - public void doubleValidatorGetSetMaximumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorGetSetMaximumTest"); - invoke(); - } - - /** - * @testName: doubleValidatorGetSetMinimumTest - * @assertion_ids: JSF:JAVADOC:2141; JSF:JAVADOC:2149 - * @test_Strategy: Validate get/setMinimum() works as expected. - */ - public void doubleValidatorGetSetMinimumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorGetSetMinimumTest"); - invoke(); - } - - /** - * @testName: doubleValidatorValidateTest - * @assertion_ids: JSF:JAVADOC:2151 - * @test_Strategy: Verify that DoubleRangeValidator.validate() performs - * correct validations on valid components (i.e. no Messages - * are pushed to the FacesContext. - */ - public void doubleValidatorValidateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorValidateTest"); - invoke(); - } - - /** - * @testName: doubleValidatorValidateInvalidTypeTest - * @assertion_ids: JSF:JAVADOC:2152 - * @test_Strategy: Verify if the DoubleRangeValidator is provided an - * UIComponent with an invalid type, or a String that cannot - * be converted to a Double, a validation failure occurs and - * that there is at least one message in the FacesContext for - * this component. - */ - public void doubleValidatorValidateInvalidTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorValidateInvalidTypeTest"); - invoke(); - } - - /** - * @testName: doubleValidatorValidateMaxViolationTest - * @assertion_ids: JSF:JAVADOC:2152 - * @test_Strategy: Verify if the DoubleRangeValidator is provided an - * UIComponent with a value that exceeds the allowable maximum - * generates at least one message in the FacesContext for the - * component in question. - */ - public void doubleValidatorValidateMaxViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorValidateMaxViolationTest"); - invoke(); - } - - /** - * @testName: doubleValidatorValidateMinViolationTest - * @assertion_ids: JSF:JAVADOC:2152 - * @test_Strategy: Verify if the DoubleRangeValidator is provided an - * UIComponent with a value that is less than the configured - * minimum for the validator, that at least one message in the - * FacesContext for the component in question. - */ - public void doubleValidatorValidateMinViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorValidateMinViolationTest"); - invoke(); - } - - /** - * @testName: doubleValidatorValidateNPETest - * @assertion_ids: JSF:JAVADOC:2153 - * @test_Strategy: Throws NullPointerException if context or component is null - * - * @since: 2.2 - */ - public void doubleValidatorValidateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "doubleValidatorValidateNPETest"); - invoke(); - } - - // ------------------------------------ StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:2144; JSF:JAVADOC:2150 - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * @assertion_ids: PENDING - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * @assertion_ids: PENDING - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:2146; JSF:JAVADOC:2147 - * @test_Strategy: Validate that saveState and restoreState work properly. - * - * @since: 2.2 - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - // ----------------------------------- PartialStateHolder Tests - /** - * @testName: validatorPartialStateTest - * @assertion_ids: JSF:JAVADOC:2135; JSF:JAVADOC:2143; JSF:JAVADOC:2145 - * @test_Strategy: Verify that the following method calls perform as expected. - * - * clearInitialState(); initialStateMarked(); - * markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws EETest.Fault { - super.validatorPartialStateTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/build.xml deleted file mode 100644 index 90ced53fa3..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.war.sun-web.xml deleted file mode 100644 index 1b85301b1d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_doublevalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.xml deleted file mode 100644 index 47debc2a8a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/doublerangevalidator/jsf_validator_doublevalidator_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_validator_doublevalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.doublerangevalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/TestServlet.java deleted file mode 100644 index 0c7e4fad9d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/TestServlet.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.lengthvalidator; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.LengthValidator; -import jakarta.faces.validator.Validator; -import jakarta.faces.validator.ValidatorException; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new LengthValidator(); - } - - public void lengthValidatorCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LengthValidator(); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " Default constructor of LengthValidator"); - e.printStackTrace(); - } - } - - public void lengthValidatorCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LengthValidator(Integer.MAX_VALUE); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + " LengthValidator(int maximum)"); - e.printStackTrace(); - } - } - - public void lengthValidatorCtor3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LengthValidator(Integer.MAX_VALUE, Integer.MIN_VALUE); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println( - JSFTestUtil.FAIL + " LengthValidator(int maximum, int minimum)"); - e.printStackTrace(); - } - } - - public void lengthValidatorGetSetMaximumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LengthValidator lVal = new LengthValidator(); - lVal.setMaximum(Integer.MAX_VALUE); - if (lVal.getMaximum() == Integer.MAX_VALUE) { - lVal = new LengthValidator(Integer.MIN_VALUE); - lVal.setMaximum(Integer.MAX_VALUE); - if (lVal.getMaximum() == Integer.MAX_VALUE) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println( - JSFTestUtil.FAIL + " Original maximum value was not overwritten" - + " when LengthValidator.setMaximum(int) was called."); - pw.println("Expected: " + Integer.MAX_VALUE); - pw.println("Received: " + lVal.getMaximum()); - } - } else { - pw.println( - JSFTestUtil.FAIL + " LengthValidator.getMaximum() didn't not return" - + " the same value passed to LengthValidator.setMaximum()"); - pw.println("Expected: " + Integer.MAX_VALUE); - pw.println("Received: " + lVal.getMaximum()); - } - } - - public void lengthValidatorGetSetMinimumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LengthValidator lVal = new LengthValidator(); - lVal.setMinimum(Integer.MIN_VALUE); - if (lVal.getMinimum() == Integer.MIN_VALUE) { - lVal = new LengthValidator(Integer.MAX_VALUE, Integer.MIN_VALUE); - lVal.setMinimum(Integer.MAX_VALUE); - if (lVal.getMinimum() == Integer.MAX_VALUE) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println( - JSFTestUtil.FAIL + " Original minimum value was not overwritten" - + " when LengthValidator.setMinimum(int) was called."); - pw.println("Expected: " + Integer.MAX_VALUE); - pw.println("Received: " + lVal.getMinimum()); - } - } else { - pw.println( - JSFTestUtil.FAIL + " LengthValidator.getMinimum() didn't not return" - + " the same value passed to LengthValidator.setMinimum()"); - pw.println("Expected: " + Integer.MAX_VALUE); - pw.println("Received: " + lVal.getMinimum()); - } - } - - public void lengthValidatorValidateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - LengthValidator lVal = new LengthValidator(); - input.setValue("arbitrary value"); - testValidation(input, lVal, facesContext, pw); - - input.setValue(null); - lVal = new LengthValidator(50); - testValidation(input, lVal, facesContext, pw); - - input.setValue("arbitrarty value"); - lVal = new LengthValidator(50, 1); - testValidation(input, lVal, facesContext, pw); - - // value is null - input.setValue(null); - lVal = new LengthValidator(300, 299); - testValidation(input, lVal, facesContext, pw); - - pw.println(JSFTestUtil.PASS); - } - - public void lengthValidatorValidateMaxViolationTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - LengthValidator lVal = new LengthValidator(2); - - input.setValue(Double.valueOf(100.0)); - try { - lVal.validate(facesContext, input, input.getValue()); - pw.println( - JSFTestUtil.FAIL + " No Exception thrown when value was greater than " - + "allowable maximum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "greater than allowable maximum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void lengthValidatorValidateMinViolationTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - LengthValidator lVal = new LengthValidator(Integer.MAX_VALUE, 50); - - input.setValue("arbitrary value"); - try { - lVal.validate(facesContext, input, input.getValue()); - pw.println( - JSFTestUtil.FAIL + " No Exception thrown when value was less than " - + "allowable minimum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "less than allowable minimum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void lengthValidatorValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain FacesContext instance."); - return; - } - - LengthValidator lv = new LengthValidator(Integer.MAX_VALUE, 50); - - // Test for FacesContext throws NPE - JSFTestUtil.checkForNPE(lv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, input, 20 }, pw); - - // Test for UIComponent throws NPE - JSFTestUtil.checkForNPE(lv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { facesContext, null, 20 }, pw); - - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - LengthValidator preSave = new LengthValidator(1000); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The Object returned by saveState() was " - + "not an instance of java.io.Serializable."); - return; - } - - LengthValidator postSave = new LengthValidator(); - postSave.restoreState(getFacesContext(), state); - - if (postSave.getMaximum() == preSave.getMaximum()) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getMaximum did not match after restore was called!"); - } - - } - - // --------------------------------------------------- private methods - - private static void testValidation(UIInput input, LengthValidator lv, - FacesContext context, PrintWriter pw) { - - try { - pw.println("Test Validation min-max length: " + lv.getMinimum() + "-" - + lv.getMaximum() + JSFTestUtil.NL + "Test Input Value: " - + input.getValue() + JSFTestUtil.NL); - - lv.validate(context, input, input.getValue()); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown during validation of value." + JSFTestUtil.NL - + "Exception: " + e); - return; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/URLClient.java deleted file mode 100644 index efb1d40911..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/URLClient.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.lengthvalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_lengthvalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------ Test Methods ------- - - /** - * @testName: lengthValidatorCtor1Test - * @assertion_ids: JSF:JAVADOC:2163; JSF:JAVADOC:2221 - * @test_Strategy: Validate the no-arg constructor of the LengthValidator. - * Ensure no exceptions are thrown. - */ - public void lengthValidatorCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorCtor1Test"); - invoke(); - } - - /** - * @testName: lengthValidatorCtor2Test - * @assertion_ids: JSF:JAVADOC:2164 - * @test_Strategy: Validate LengthValidator(int maximum) constructor. Ensure - * no exceptions are thrown. - */ - public void lengthValidatorCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorCtor2Test"); - invoke(); - } - - /** - * @testName: lengthValidatorCtor3Test - * @assertion_ids: JSF:JAVADOC:2165 - * @test_Strategy: Validate LengthValidator(int maximum, int minimum) - * constructor. Ensure no exceptions are thrown. - */ - public void lengthValidatorCtor3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorCtor3Test"); - invoke(); - } - - /** - * @testName: lengthValidatorGetSetMaximumTest - * @assertion_ids: JSF:JAVADOC:2158; JSF:JAVADOC:2169 - * @test_Strategy: Validate the behavior of get/setMaximum(). - */ - public void lengthValidatorGetSetMaximumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorGetSetMaximumTest"); - invoke(); - } - - /** - * @testName: lengthValidatorGetSetMinimumTest - * @assertion_ids: JSF:JAVADOC:2159; JSF:JAVADOC:2170 - * @test_Strategy: Validate the behavior of get/setMinumum(). - */ - public void lengthValidatorGetSetMinimumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorGetSetMinimumTest"); - invoke(); - } - - /** - * @testName: lengthValidatorValidateTest - * @assertion_ids: JSF:JAVADOC:2172 - * @test_Strategy: Confirm validation works as expected for valid components. - * No Message objects should be present in the FacesContext. - */ - public void lengthValidatorValidateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorValidateTest"); - invoke(); - } - - /** - * @testName: lengthValidatorValidateNPETest - * @assertion_ids: JSF:JAVADOC:2174 - * @test_Strategy: Validate that a NullPointerException is thrown if context - * or component is null - * - * @since 2.2 - */ - public void lengthValidatorValidateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorValidateNPETest"); - invoke(); - } - - /** - * @testName: lengthValidatorValidateMaxViolationTest - * @assertion_ids: JSF:JAVADOC:2173 - * @test_Strategy: Confirm validation Messages are pushed to the FacesContext - * when the provided UIComponent's value exceeds the - * configured length maximum. - */ - public void lengthValidatorValidateMaxViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorValidateMaxViolationTest"); - invoke(); - } - - /** - * @testName: lengthValidatorValidateMinViolationTest - * @assertion_ids: JSF:JAVADOC:2173 - * @test_Strategy: Confirm validation Messages are pushed to the FacesContext - * when the provided UIComponent's value is less than the - * configured length minimum. - */ - public void lengthValidatorValidateMinViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "lengthValidatorValidateMinViolationTest"); - invoke(); - } - - // ------------------------------------------------------- StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * - * @assertion_ids: JSF:JAVADOC:2171; JSF:JAVADOC:2162 - * - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:2167; JSF:JAVADOC:2168 - * @test_Strategy: Validate that saveState and restoreState work properly. - * - * @since: 2.2 - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - // ------------------------------------------------ PartialStateHolder Tests - /** - * @testName: validatorPartialStateTest - * - * @assertion_ids: JSF:JAVADOC:2156; JSF:JAVADOC:2161; JSF:JAVADOC:2166 - * - * @test_Strategy: Verify that the following method calls perform as expected. - * - * clearInitialState(); initialStateMarked(); - * markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws EETest.Fault { - super.validatorPartialStateTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/build.xml deleted file mode 100644 index 9e8f893b56..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.war.sun-web.xml deleted file mode 100644 index b7b4030e0f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_lengthvalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.xml deleted file mode 100644 index 6f565916bb..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/lengthvalidator/jsf_validator_lengthvalidator_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_validator_lengthvalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.lengthvalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/TestServlet.java deleted file mode 100644 index a264d6bef5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/TestServlet.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.longrangevalidator; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.render.RenderKitFactory; -import jakarta.faces.validator.LongRangeValidator; -import jakarta.faces.validator.Validator; -import jakarta.faces.validator.ValidatorException; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new LongRangeValidator(); - } - - public void longValidatorCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LongRangeValidator(); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println("The no-arg constructor for LongRangeValidator "); - e.printStackTrace(); - } - } - - public void longValidatorCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LongRangeValidator(10); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println("The LongRangeValidator(max) constructor"); - e.printStackTrace(); - } - } - - public void longValidatorCtor3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new LongRangeValidator(10, 1); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println("The LongRangeValidator(max, min) constructor "); - e.printStackTrace(); - } - } - - public void longValidatorGetSetMaximumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LongRangeValidator drv = new LongRangeValidator(); - drv.setMaximum(10); - if (drv.getMaximum() == 10.0) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " LongRangeValidator.getMaximum didn't" - + " return the save value as provided to LongRangeValidator." - + "setValue()."); - pw.println("Expected: 10.0"); - pw.println("Received: " + drv.getMaximum()); - } - } - - public void longValidatorGetSetMinimumTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - LongRangeValidator drv = new LongRangeValidator(); - drv.setMinimum(10); - if (drv.getMinimum() == 10.0) { - pw.println(JSFTestUtil.PASS); - } else { - pw.println(JSFTestUtil.FAIL + " LongRangeValidator.getMaximum didn't" - + " return the save value as provided to LongRangeValidator." - + "setValue()."); - pw.println("Expected: 10.0"); - pw.println("Received: " + drv.getMinimum()); - } - } - - public void longValidatorValidateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - - // Max value / no-arg LongRangeValidator - input.setValue(Long.valueOf(Long.MAX_VALUE)); - LongRangeValidator lrv = new LongRangeValidator(); - testValidation(input, lrv, facesContext, pw); - - // Min value / no-arg LongRangeValidator - input.setValue(Long.valueOf(Long.MIN_VALUE)); - lrv = new LongRangeValidator(); - testValidation(input, lrv, facesContext, pw); - - // Value set below configured maximum - input.setValue(Long.valueOf(300)); - lrv = new LongRangeValidator(300); - testValidation(input, lrv, facesContext, pw); - - // value set between configured maximum and minimum - input.setValue(Long.valueOf(299)); - lrv = new LongRangeValidator(300, 299); - testValidation(input, lrv, facesContext, pw); - - // value is null - input.setValue(null); - lrv = new LongRangeValidator(300, 299); - testValidation(input, lrv, facesContext, pw); - - pw.println(JSFTestUtil.PASS); - } - - public void longValidatorValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unable to obtain FacesContext instance."); - return; - } - - LongRangeValidator lrv = new LongRangeValidator(); - - // Test for FacesContext throws NPE - JSFTestUtil.checkForNPE(lrv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, input, Long.valueOf(10) }, pw); - - // Test for UIComponent throws NPE - JSFTestUtil.checkForNPE(lrv, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { facesContext, null, Long.valueOf(10) }, pw); - - } - - public void longValidatorValidateInvalidTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("input1"); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(new ServletException()); - LongRangeValidator drv = new LongRangeValidator(); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println(JSFTestUtil.FAIL + " No Exception thrown when attempting to " - + "validate invalid type for validator."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when attempting to" - + " validate invalid type, but it wasn't an instance of" - + " ValidatorException."); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - input = (UIInput) getApplication().createComponent(UIInput.COMPONENT_TYPE); - input.setId("input2"); - input.setValue("invalid"); - drv = new LongRangeValidator(100); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println(JSFTestUtil.FAIL + " No Exception thrown when attempting to " - + "validate a String that cannot be converted to the " - + "expected type."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when attempting to" - + " validate a String that cannot be converted to the expected" - + " type but it wasn't an instance of" + " ValidatorException."); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - - pw.println(JSFTestUtil.PASS); - } - - public void longValidatorValidateMaxViolationTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(Long.valueOf(101)); - LongRangeValidator drv = new LongRangeValidator(100); - try { - drv.validate(facesContext, input, input.getValue()); - pw.println( - JSFTestUtil.FAIL + " No Exception thrown when value was greater than " - + "allowable maximum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "greater than allowable maximum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - pw.println(JSFTestUtil.PASS); - } - - public void longValidatorValidateMinViolationTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIViewRoot root = new UIViewRoot(); - root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT); - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("C" + Long.valueOf(System.currentTimeMillis()).toString()); - input.setValue(Long.valueOf(98)); - LongRangeValidator drv = new LongRangeValidator(100, 99); - - try { - drv.validate(facesContext, input, input.getValue()); - pw.println( - JSFTestUtil.FAIL + " No Exception thrown when value was less than " - + "allowable minimum."); - return; - } catch (Exception e) { - if (!(e instanceof ValidatorException)) { - pw.println(JSFTestUtil.FAIL + " Exception thrown when value was " - + "less than allowable minimum, but it wasn't an " - + "instance of ValidatorException"); - pw.println("Exception received: " + e.getClass().getName()); - return; - } - } - pw.println(JSFTestUtil.PASS); - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - LongRangeValidator preSave = new LongRangeValidator(Long.valueOf(1000)); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The Object returned by saveState() was " - + "not an instance of java.io.Serializable."); - return; - } - - LongRangeValidator postSave = new LongRangeValidator(); - postSave.restoreState(getFacesContext(), state); - - if (postSave.getMaximum() == preSave.getMaximum()) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getMaximum did not match after restore was called!"); - } - - } - - // --------------------------------------------------- private methods - - private static void testValidation(UIInput input, LongRangeValidator lrv, - FacesContext context, PrintWriter pw) { - - try { - pw.println("Test Validation min-max range: " + lrv.getMinimum() + "-" - + lrv.getMaximum() + JSFTestUtil.NL + "Test Input Value: " - + input.getValue() + JSFTestUtil.NL); - - lrv.validate(context, input, input.getValue()); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Exception thrown during validation of value." + JSFTestUtil.NL - + "Exception: " + e); - return; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/URLClient.java deleted file mode 100644 index eb3968d8a5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/URLClient.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.longrangevalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_longvalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------ Test Methods ------- - - /** - * @testName: longValidatorCtor1Test - * @assertion_ids: JSF:JAVADOC:2182; JSF:JAVADOC:2221 - * @test_Strategy: Validate LongRangeValidator no-arg constructor. - */ - public void longValidatorCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorCtor1Test"); - invoke(); - } - - /** - * @testName: longValidatorCtor2Test - * @assertion_ids: JSF:JAVADOC:2183 - * @test_Strategy: Validate LongRangeValidator(long max). - */ - public void longValidatorCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorCtor2Test"); - invoke(); - } - - /** - * @testName: longValidatorCtor3Test - * @assertion_ids: JSF:JAVADOC:2184 - * @test_Strategy: Validate LongRangeValidator(long max, long min). - */ - public void longValidatorCtor3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorCtor3Test"); - invoke(); - } - - /** - * @testName: longValidatorGetSetMaximumTest - * @assertion_ids: JSF:JAVADOC:2177; JSF:JAVADOC:2188 - * @test_Strategy: Validate get/setMaximum() works as expected. - */ - public void longValidatorGetSetMaximumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorGetSetMaximumTest"); - invoke(); - } - - /** - * @testName: longValidatorGetSetMinimumTest - * @assertion_ids: JSF:JAVADOC:2178; JSF:JAVADOC:2189 - * @test_Strategy: Validate get/setMinimum() works as expected. - */ - public void longValidatorGetSetMinimumTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorGetSetMinimumTest"); - invoke(); - } - - /** - * @testName: longValidatorValidateTest - * @assertion_ids: JSF:JAVADOC:2191 - * @test_Strategy: Verify that LongRangeValidator.validate() performs correct - * validations on valid components (i.e. no Messages are - * pushed to the FacesContext. - */ - public void longValidatorValidateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorValidateTest"); - invoke(); - } - - /** - * @testName: longValidatorValidateInvalidTypeTest - * @assertion_ids: JSF:JAVADOC:2192 - * @test_Strategy: Verify if the LongRangeValidator is provided an UIComponent - * with an invalid type, or a String that cannot be converted - * to a Long, a validation failure occurs and that there is at - * least one message in the FacesContext for this component. - */ - public void longValidatorValidateInvalidTypeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorValidateInvalidTypeTest"); - invoke(); - } - - /** - * @testName: longValidatorValidateMaxViolationTest - * @assertion_ids: JSF:JAVADOC:2192 - * @test_Strategy: Verify if the LongRangeValidator is provided an UIComponent - * with a value that exceeds the allowable maximum generates - * at least one message in the FacesContext for the component - * in question. - */ - public void longValidatorValidateMaxViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorValidateMaxViolationTest"); - invoke(); - } - - /** - * @testName: longValidatorValidateMinViolationTest - * @assertion_ids: JSF:JAVADOC:2192 - * @test_Strategy: Verify if the LongRangeValidator is provided an UIComponent - * with a value that is less than the configured minimum for - * the validator, that at least one message in the - * FacesContext for the component in question. - */ - public void longValidatorValidateMinViolationTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorValidateMinViolationTest"); - invoke(); - } - - /** - * @testName: longValidatorValidateNPETest - * @assertion_ids: JSF:JAVADOC:2193 - * @test_Strategy: Verify that a NullPointerExcetption is throw if context or - * component is null - */ - public void longValidatorValidateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "longValidatorValidateNPETest"); - invoke(); - } - - // ------------------------------------------------------- StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:2181; JSF:JAVADOC:2190 - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:2186; JSF:JAVADOC:2187 - * @test_Strategy: Validate that saveState and restoreState work properly. - * - * @since: 2.2 - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - // ------------------------------------------------ PartialStateHolder Tests - /** - * @testName: validatorPartialStateTest - * @assertion_ids: JSF:JAVADOC:2175; JSF:JAVADOC:2180; JSF:JAVADOC:2185 - * @test_Strategy: Verify that the following method calls perform as expected. - * - * clearInitialState(); initialStateMarked(); - * markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws EETest.Fault { - super.validatorPartialStateTest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/build.xml deleted file mode 100644 index af526d26a1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.war.sun-web.xml deleted file mode 100644 index 2bebb0a64a..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_longvalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.xml deleted file mode 100644 index b7b1f99cf8..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/longrangevalidator/jsf_validator_longvalidator_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_validator_longvalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.longrangevalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/TestServlet.java deleted file mode 100644 index e50d543255..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/TestServlet.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.methodexpressionvalidator; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ExpressionFactory; -import jakarta.el.MethodExpression; -import jakarta.faces.application.Application; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.validator.MethodExpressionValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new MethodExpressionValidator(); - } - - public void methodExpressionValidatorCtor1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - - try { - new MethodExpressionValidator(); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The no-arg constructor for MethodExpressionValidator " - + "threw an unexpected exception"); - e.printStackTrace(); - } - } - - public void methodExpressionValidatorCtor2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - Application app = facesContext.getApplication(); - ExpressionFactory ef = app.getExpressionFactory(); - - MethodExpression me = ef.createMethodExpression(facesContext.getELContext(), - "test.nothing", null, new Class[] {}); - - try { - new MethodExpressionValidator(me); - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("MethodExpressionValidator(MethodExpression) " + "constructor" - + "threw an unexpected exception "); - e.printStackTrace(); - } - } - - public void methodExpressionValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("input1"); - - input.setValue(new ServletException()); - MethodExpressionValidator mev = new MethodExpressionValidator(); - - // Test for null FacesContext throws NPE - JSFTestUtil.checkForNPE(mev, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, input, input.getValue() }, pw); - - // Test for null UIComponent throws NPE - JSFTestUtil.checkForNPE(mev, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { facesContext, null, input.getValue() }, pw); - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/URLClient.java deleted file mode 100644 index 6cbd9d86dd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.methodexpressionvalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_methodvalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------ Test Methods - - /** - * @testName: methodExpressionValidatorCtor1Test - * - * @assertion_ids: JSF:JAVADOC:2195; JSF:JAVADOC:2221 - * - * @test_Strategy: Validate MethodExpressionValidator no-arg constructor. - */ - public void methodExpressionValidatorCtor1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "methodExpressionValidatorCtor1Test"); - invoke(); - } - - /** - * @testName: methodExpressionValidatorCtor2Test - * - * @assertion_ids: JSF:JAVADOC:2196 - * - * @test_Strategy: Validate MethodExpressionValidator(MethodExpression) - * constructor. - */ - public void methodExpressionValidatorCtor2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "methodExpressionValidatorCtor2Test"); - invoke(); - } - - /** - * @testName: methodExpressionValidateNPETest - * - * @assertion_ids: JSF:JAVADOC:2204 - * - * @test_Strategy: Verify the following method calls throw a - * NullPointerException. - * - * MethodExpression.validate(FacesContext, null, Object) - * MethodExpression.validate(null, UIComponent, Object) - */ - public void methodExpressionValidateNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "methodExpressionValidateNPETest"); - invoke(); - } - - // ------------------------------------------------------- StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:2194; JSF:JAVADOC:2201 - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: JSF:JAVADOC:2198 - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: JSF:JAVADOC:2200 - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/build.xml deleted file mode 100644 index 931261ee71..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.war.sun-web.xml deleted file mode 100644 index 93a9f0fbda..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_methodvalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.xml deleted file mode 100644 index 74fc5cb39d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/methodexpressionvalidator/jsf_validator_methodvalidator_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_validator_longvalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.methodexpressionvalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/TestServlet.java deleted file mode 100644 index a9a7c178d1..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/TestServlet.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.regexvalidator; - -import java.io.IOException; -import java.io.PrintWriter; -import java.io.Serializable; - -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorTestServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.context.FacesContext; -import jakarta.faces.validator.RegexValidator; -import jakarta.faces.validator.Validator; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends BaseValidatorTestServlet { - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - @Override - protected Validator createValidator() { - return new RegexValidator(); - } - - // ---------------------------------------------------- RegexValidator Tests - - public void regexValidatorCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new RegexValidator(); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println("The no-arg constructor for regexValidator " - + "threw an unexpected exception "); - e.printStackTrace(); - } - } - - public void regexValidateNPETest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - FacesContext facesContext = getFacesContext(); - - if (facesContext == null) { - pw.println(JSFTestUtil.FAIL + " Unable to obtain FacesContext instance."); - return; - } - - UIInput input = (UIInput) getApplication() - .createComponent(UIInput.COMPONENT_TYPE); - input.setId("input1"); - input.setValue("aabb"); - - RegexValidator rev = new RegexValidator(); - rev.setPattern("a*b"); - - // Test for null FacesContext throws NPE - JSFTestUtil.checkForNPE(rev, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { null, input, input.getValue() }, pw); - - // Test for null UIComponent throws NPE - JSFTestUtil.checkForNPE(rev, "validate", - new Class[] { FacesContext.class, UIComponent.class, Object.class }, - new Object[] { facesContext, null, input.getValue() }, pw); - } - - // setPattern() & getPattern() test - public void regexValidateSetGetPatternTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - String expected = "abc-xyz"; - - RegexValidator rev = new RegexValidator(); - rev.setPattern(expected); - - String result = rev.getPattern(); - - if (expected.equals(result)) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Recieved: " + result); - } - - } - - // StateHolder.saveState(), StateHolder.restoreState() - public void stateHolderSaveRestoreStateTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - // Begin test setup - RegexValidator preSave = new RegexValidator(); - preSave.setPattern("abc-xyz"); - - // Save and restore state and compare the results - Object state = preSave.saveState(getFacesContext()); - - if (state == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "saveState() failed to returned null"); - return; - } - - if (!(state instanceof Serializable)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "The Object returned by saveState() was " - + "not an instance of java.io.Serializable."); - return; - } - - RegexValidator postSave = new RegexValidator(); - postSave.restoreState(getFacesContext(), state); - - if (postSave.getPattern().equals(preSave.getPattern())) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "getPattern did not match after restore was called!"); - } - - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/URLClient.java deleted file mode 100644 index b248ae6abc..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/URLClient.java +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.validator.regexvalidator; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.tests.jsf.api.jakarta_faces.validator.common.BaseValidatorClient; - -public class URLClient extends BaseValidatorClient { - - private static final String CONTEXT_ROOT = "/jsf_validator_regexvalidator_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------ Test methods - - /** - * @testName: regexValidatorCtorTest - * - * @assertion_ids: JSF:JAVADOC:2210; JSF:JAVADOC:2221 - * - * @test_Strategy: Validate regexValidator no-arg constructor. - */ - public void regexValidatorCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "regexValidatorCtorTest"); - invoke(); - } - - /** - * @testName: regexValidateNPETest - * - * @assertion_ids: JSF:JAVADOC:2216; JSF:JAVADOC:2223 - * - * @test_Strategy: Verify the following method call(s) throw a - * NullPointerException. - * - * validate(FacesContext, null, Object) validate(null, - * UIComponent, Object) - */ - public void regexValidateNPETest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "regexValidateNPETest"); - invoke(); - } - - /** - * @testName: regexValidateSetGetPatternTest - * @assertion_ids: JSF:JAVADOC:2206; JSF:JAVADOC:2213 - * @test_Strategy: Validate that setPattern & getPattern methods function - * correctly. - * - * @since 2.2 - */ - public void regexValidateSetGetPatternTest() throws EETest.Fault { - TEST_PROPS.setProperty(APITEST, "regexValidateSetGetPatternTest"); - invoke(); - } - - // ------------------------------------------------------- StateHolder Tests - /** - * @testName: stateHolderIsSetTransientTest - * @assertion_ids: JSF:JAVADOC:2208; JSF:JAVADOC:2214 - * @test_Strategy: Verify that is/setTransient() performs as expected. - * - * @since: 2.0 - */ - public void stateHolderIsSetTransientTest() throws EETest.Fault { - super.stateHolderIsSetTransientTest(); - } - - /** - * @testName: stateHolderRestoreStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderRestoreStateNPETest() throws Fault { - super.stateHolderRestoreStateNPETest(); - } - - /** - * @testName: stateHolderSaveStateNPETest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a NullPointer is thrown if context is null. - * - * @since: 2.2 - */ - public void stateHolderSaveStateNPETest() throws Fault { - super.stateHolderSaveStateNPETest(); - } - - /** - * @testName: stateHolderSaveRestoreStateTest - * @assertion_ids: JSF:JAVADOC:2211; JSF:JAVADOC:2212 - * @test_Strategy: Validate that saveState and restoreState work properly. - * - * @since: 2.2 - */ - public void stateHolderSaveRestoreStateTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateHolderSaveRestoreStateTest"); - invoke(); - } - - // ------------------------------------------------ PartialStateHolder Tests - /** - * @testName: validatorPartialStateTest - * @assertion_ids: JSF:JAVADOC:2205; JSF:JAVADOC:2207; JSF:JAVADOC:2209 - * @test_Strategy: Verify that the following method calls perform as expected. - * - * clearInitialState(); initialStateMarked(); - * markInitialState(); - * - * - * @since: 2.0 - */ - public void validatorPartialStateTest() throws EETest.Fault { - super.validatorPartialStateTest(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/build.xml deleted file mode 100644 index bdb81f52ed..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.war.sun-web.xml deleted file mode 100644 index d27fb81085..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_validator_regexvalidator_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.xml deleted file mode 100644 index 5619895e05..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/validator/regexvalidator/jsf_validator_regexvalidator_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_validator_longvalidator - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.validator.regexvalidator.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/build.xml deleted file mode 100644 index 47d97e9704..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/TCKViewRoot.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/TCKViewRoot.java deleted file mode 100644 index 77533f6be0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/TCKViewRoot.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.api.jakarta_faces.view.common; - -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.component.visit.VisitCallback; -import jakarta.faces.component.visit.VisitContext; -import jakarta.faces.context.FacesContext; - -public class TCKViewRoot extends UIViewRoot { - private boolean vutreecalled = Boolean.FALSE; - - private boolean savevucalled = Boolean.FALSE; - - private boolean restorevucalled = Boolean.FALSE; - - // Does not matter what we return here! - public boolean visitTree(VisitContext context, VisitCallback callback) { - this.vutreecalled = Boolean.TRUE; - - return Boolean.TRUE; - } - - // Does not matter what we return here! - public Object saveView(FacesContext context) { - this.savevucalled = Boolean.TRUE; - - return Boolean.TRUE; - } - - // Does not matter what we return here! - public UIViewRoot restoreView(FacesContext context, String viewId, - String renderKitId) { - this.restorevucalled = Boolean.TRUE; - - return context.getViewRoot(); - } - - /** - * Validate if the visitTree method has been called. - * - * @return - true of visitTree method has been called - */ - public boolean getVutree() { - return this.vutreecalled; - } - - /** - * Reset the default value so it appears that visitTree method has not been - * called. - */ - public void resetVutree() { - vutreecalled = Boolean.FALSE; - } - - /** - * Validate if the saveView method has been called. - * - * @return - true id saveView method has been called - */ - public boolean getSaveVu() { - return this.savevucalled; - } - - /** - * Validate if the restoreView method has been called. - * - * @return - true id restoreView method has been called - */ - public boolean getRestoreVu() { - return this.restorevucalled; - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/components/myComp.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/components/myComp.xhtml deleted file mode 100644 index 72ae41888f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/components/myComp.xhtml +++ /dev/null @@ -1,48 +0,0 @@ - - -"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - - - - composite:attribute tag - - - - - - - - - - - -
-
- -
- -
- - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/myRoot.xhtml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/myRoot.xhtml deleted file mode 100644 index 69755e747c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/myRoot.xhtml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - -root_facelet - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/view.common.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/view.common.xml deleted file mode 100644 index c47ef87517..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/common/view.common.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/TestServlet.java deleted file mode 100644 index a58468eff9..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/TestServlet.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.location; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.view.Location; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private static final int LINE = 1; - - private static final int COLUMN = 2; - - private static final String PATH = "testPath"; - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - /** - * Constructor for Location. - * - * @param request - * - HttpServletRequest - * @param response - * - HttpServletResponse - * @throws ServletException - * - if an unexpected container error occurs - * @throws IOException - * - if an unexpected I/O error occurs - */ - public void locationCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - new Location(PATH, LINE, COLUMN); - pw.println(JSFTestUtil.PASS); - } catch (Exception e) { - pw.println("The constructor for Location threw an unexpected exception"); - e.printStackTrace(); - } - }// End locationCtorTest - - /** - * No-arg getColumn() for Location. - * - * @param request - * - HttpServletRequest - * @param response - * - HttpServletResponse - * @throws ServletException - * - if an unexpected container error occurs - * @throws IOException - * - if an unexpected I/O error occurs - */ - public void locationGetColumnTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - Location loc = new Location(PATH, LINE, COLUMN); - int result = loc.getColumn(); - - if (!(result == COLUMN)) { - pw.println("Test FAILED" + JSFTestUtil.NL + "Expected: " + COLUMN - + JSFTestUtil.NL + "Received: " + result); - return; - } - - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The constructor for Location threw an unexpected exception."); - e.printStackTrace(); - } - }// End locationGetColumnTest - - /** - * No-arg getLine() for Location. - * - * @param request - * - HttpServletRequest - * @param response - * - HttpServletResponse - * @throws ServletException - * - if an unexpected container error occurs - * @throws IOException - * - if an unexpected I/O error occurs - */ - public void locationGetLineTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - Location loc = new Location(PATH, LINE, COLUMN); - int result = loc.getLine(); - - if (!(result == LINE)) { - pw.println("Test FAILED" + JSFTestUtil.NL + "Expected: " + LINE - + JSFTestUtil.NL + "Received: " + result); - return; - } - - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The constructor for Location threw an unexpected exception."); - e.printStackTrace(); - } - }// End locationGetLineTest - - /** - * No-arg getPath() for Location. - * - * @param request - * - HttpServletRequest - * @param response - * - HttpServletResponse - * @throws ServletException - * - if an unexpected container error occurs - * @throws IOException - * - if an unexpected I/O error occurs - */ - public void locationGetPathTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter pw = response.getWriter(); - try { - Location loc = new Location(PATH, LINE, COLUMN); - String result = loc.getPath(); - - if (!(result.equals(PATH))) { - pw.println("Test FAILED" + JSFTestUtil.NL + "Expected: " + PATH - + JSFTestUtil.NL + "Received: " + result); - return; - } - - pw.println(JSFTestUtil.PASS); - - } catch (Exception e) { - pw.println("The constructor for Location threw an unexpected exception."); - e.printStackTrace(); - } - }// End locationGetPathTest -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/URLClient.java deleted file mode 100644 index 99c35543d5..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/URLClient.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.location; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_view_location_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------- test - // methods - - /** - * @testName: locationCtorTest - * @assertion_ids: JSF:JAVADOC:2239 - * @test_Strategy: Validate Location(String path, int line, int column) - * constructor. - * - * @since 2.0 - */ - public void locationCtorTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "locationCtorTest"); - invoke(); - } - - /** - * @testName: locationGetColumnTest - * @assertion_ids: JSF:JAVADOC:2236 - * @test_Strategy: Validate Location.getColumn() returns the correct int. - * - * @since 2.0 - */ - public void locationGetColumnTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "locationGetColumnTest"); - invoke(); - } - - /** - * @testName: locationGetLineTest - * @assertion_ids: JSF:JAVADOC:2237 - * @test_Strategy: Validate Location.getLine() returns the correct int. - * - * @since 2.0 - */ - public void locationGetLineTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "locationGetLineTest"); - invoke(); - } - - /** - * @testName: locationGetPathTest - * @assertion_ids: JSF:JAVADOC:2238 - * @test_Strategy: Validate Location.getPath() returns the correct String. - * - * @since 2.0 - */ - public void locationGetPathTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "locationGetPathTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/build.xml deleted file mode 100644 index bc7fb61d81..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/build.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.war.sun-web.xml deleted file mode 100644 index 67838c523c..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_location_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.xml deleted file mode 100644 index 552ad57b86..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/location/jsf_view_location_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_view_location - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.view.location.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/TestServlet.java deleted file mode 100644 index 93ba8f9dd0..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/TestServlet.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.statemanagementstrategy; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.view.StateManagementStrategy; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private static final String FACELETS_VIEWID = "/root.xhtml"; - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - // ------------------------------------------- Test Methods - - public void stateMgmtStrategyNonNullTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - StateManagementStrategy statestrategy = this.getStateMgtmStrat(context, - FACELETS_VIEWID); - - if (statestrategy == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "StateManagementStrategy Must be non-null for Facelet Views!"); - - } else { - out.println(JSFTestUtil.PASS); - - } - - }// End stateMgmtStrategyNonNullTest - - // --------------------------------------------- private methods - - private StateManagementStrategy getStateMgtmStrat(FacesContext context, - String viewId) { - - StateManagementStrategy stmgt = context.getApplication().getViewHandler() - .getViewDeclarationLanguage(context, viewId) - .getStateManagementStrategy(context, viewId); - - return stmgt; - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/URLClient.java deleted file mode 100644 index 20fdf2a44e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/URLClient.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.statemanagementstrategy; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_view_statemgmt_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - // ------------------------ test methods - - /** - * @testName: stateMgmtStrategyNonNullTest - * @assertion_ids: JSF:JAVADOC:2243 - * @test_Strategy: Validate that StateManagementStrategy is non-null for views - * authored in Facelets for JSF 2, this specification only - * apply to Facelets for JSF 2. - * - * @since 2.2 - */ - public void stateMgmtStrategyNonNullTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateMgmtStratNullForJSPTest"); - invoke(); - } - - /** - * @testName: stateMgmtStratNullForJSPTest - * @assertion_ids: JSF:JAVADOC:2243 - * @test_Strategy: Validate that StateManagementStrategy is null for JSP - * views. - * - * @since 2.2 - */ - public void stateMgmtStratNullForJSPTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "stateMgmtStratNullForJSPTest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/build.xml deleted file mode 100644 index 534be04a71..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.war.sun-web.xml deleted file mode 100644 index 9e52bc637e..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_statemgmt_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.xml deleted file mode 100644 index 075623366f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/statemanagementstrategy/jsf_view_statemgmt_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_view_statemgmt - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.view.statemanagementstrategy.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/TestServlet.java deleted file mode 100644 index c427119dea..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/TestServlet.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlang; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.view.AttachedObjectHandler; -import jakarta.faces.view.ViewDeclarationLanguage; -import jakarta.faces.view.ViewMetadata; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private static final String FACELETS_VIEWID = "/root.xhtml"; - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public void vdlGetComponentMetadataNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - Resource resource = this.getResource(context); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "getComponentMetadata", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { null, resource }, pw); - - // Resource as 'null' - JSFTestUtil.checkForNPE(vdl, "getComponentMetadata", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { context, null }, pw); - - }// End vdlGetComponentMetadataNPETest - - public void vdlGetScriptComponentResourceNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - Resource resource = this.getResource(context); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "getScriptComponentResource", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { null, resource }, pw); - - // Resource as 'null' - JSFTestUtil.checkForNPE(vdl, "getScriptComponentResource", - new Class[] { FacesContext.class, Resource.class }, - new Object[] { context, null }, pw); - - }// End vdlGetScriptComponentResourceNPETest - - public void vdlRenderViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - UIViewRoot view = context.getViewRoot(); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "renderView", - new Class[] { FacesContext.class, UIViewRoot.class }, - new Object[] { null, view }, pw); - - // UIViewRoot as 'null' - JSFTestUtil.checkForNPE(vdl, "renderView", - new Class[] { FacesContext.class, UIViewRoot.class }, - new Object[] { context, null }, pw); - - }// End vdlRenderViewNPETest - - public void vdlRetargetMethodExpressionsNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - UIComponent component = new UIInput(); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "retargetMethodExpressions", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { null, component }, pw); - - // Component as 'null' - JSFTestUtil.checkForNPE(vdl, "retargetMethodExpressions", - new Class[] { FacesContext.class, UIComponent.class }, - new Object[] { context, null }, pw); - - }// End vdlRetargetMethodExpressionsNPETest - - public void vdlRetargetAttachedObjectsNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - UIComponent component = new UIInput(); - - List handlers = new ArrayList(); - handlers.add(new TCKAttachedObjectHandler()); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "retargetAttachedObjects", - new Class[] { FacesContext.class, UIComponent.class, List.class }, - new Object[] { null, component, handlers }, pw); - - // Component as 'null' - JSFTestUtil.checkForNPE(vdl, "retargetAttachedObjects", - new Class[] { FacesContext.class, UIComponent.class, List.class }, - new Object[] { context, null, handlers }, pw); - - // AttachedObjectHandler as 'null' - JSFTestUtil.checkForNPE(vdl, "retargetAttachedObjects", - new Class[] { FacesContext.class, UIComponent.class, List.class }, - new Object[] { context, component, null }, pw); - - }// End vdlRetargetAttachedObjectsNPETest - - public void vdlRestoreViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - String vid = context.getViewRoot().getViewId(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "restoreView", - new Class[] { FacesContext.class, String.class }, - new Object[] { null, vid }, pw); - - // viewId as 'null' - JSFTestUtil.checkForNPE(vdl, "restoreView", - new Class[] { FacesContext.class, String.class }, - new Object[] { context, null }, pw); - - }// End vdlRestoreViewNPETest - - public void vdlCreateViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "createView", - new Class[] { FacesContext.class, String.class }, - new Object[] { null, FACELETS_VIEWID }, pw); - - // viewId as 'null' - JSFTestUtil.checkForNPE(vdl, "createView", - new Class[] { FacesContext.class, String.class }, - new Object[] { context, null }, pw); - - }// End vdlCreateViewNPETest - - public void vdlGetViewMetadataNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter pw = response.getWriter(); - - FacesContext context = getFacesContext(); - ViewDeclarationLanguage vdl = this.getVDL(context, FACELETS_VIEWID); - - // FacesContext as 'null' - JSFTestUtil.checkForNPE(vdl, "getViewMetadata", - new Class[] { FacesContext.class, String.class }, - new Object[] { null, FACELETS_VIEWID }, pw); - - // viewId as 'null' - JSFTestUtil.checkForNPE(vdl, "getViewMetadata", - new Class[] { FacesContext.class, String.class }, - new Object[] { context, null }, pw); - - }// End vdlGetViewMetadataNPETest - - public void vdlGetViewMetaDataTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String root = "myRoot.xhtml"; - - ViewDeclarationLanguage vdl = this.getVDL(context, root); - ViewMetadata vm = vdl.getViewMetadata(context, root); - String result = vm.getViewId(); - - if (root.equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + " Unexpected value found!" + JSFTestUtil.NL - + "Expected: " + root + JSFTestUtil.NL + "Received: " + result); - - } - - }// End vdlGetViewMetaDataTest - - public void vdlGetIdTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String root = "myRoot.xhtml"; - - ViewDeclarationLanguage vdl = this.getVDL(context, root); - - String result = vdl.getId(); - - if (ViewDeclarationLanguage.FACELETS_VIEW_DECLARATION_LANGUAGE_ID - .equals(result)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "Unexpected value found!" - + JSFTestUtil.NL + "Expected: " + root + JSFTestUtil.NL + "Received: " - + result); - - } - - }// End vdlGetIdTest - - public void vdlViewExistsTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String root = "myRoot.xhtml"; - - ViewDeclarationLanguage vdl = this.getVDL(context, root); - - if (vdl.viewExists(context, root)) { - out.println(JSFTestUtil.PASS); - - } else { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL + "View did not exists!" - + JSFTestUtil.NL + "Expected: " + root + " to exist."); - - } - - }// End vdlViewExistsTest - - // --------------------------------------------- private methods - - private ViewDeclarationLanguage getVDL(FacesContext context, String viewId) { - ViewDeclarationLanguage vdl = context.getApplication().getViewHandler() - .getViewDeclarationLanguage(context, viewId); - - return vdl; - } - - private Resource getResource(FacesContext context) { - ResourceHandler handler = context.getApplication().getResourceHandler(); - Resource resource = handler.createResource("myComp.xhtml"); - - return resource; - } - - // --------------------------------------------- private classes - - private static class TCKAttachedObjectHandler - implements AttachedObjectHandler { - - @Override - public void applyAttachedObject(FacesContext arg0, UIComponent arg1) { - // Do nothing this is a Class for test only. - - } - - @Override - public String getFor() { - // Do nothing this is a Class for test only. - return null; - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/URLClient.java deleted file mode 100644 index 2374444ba4..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/URLClient.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlang; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_view_vdl_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------- test - // methods - - /** - * @testName: vdlGetComponentMetadataUSOETest - * @assertion_ids: JSF:JAVADOC:2251 - * @test_Strategy: Validate that getComponentMetadata throws an - * UnsupportedOperationException if in the JSP VDL. - * - * @since 2.1 - */ - public void vdlGetComponentMetadataUSOETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetComponentMetadataUSOETest"); - invoke(); - } - - /** - * @testName: vdlGetScriptComponentResourceUSOETest - * @assertion_ids: JSF:JAVADOC:2255 - * @test_Strategy: Validate that getScriptComponentResource throws an - * UnsupportedOperationException if in the JSP VDL. - * - * @since 2.1 - */ - public void vdlGetScriptComponentResourceUSOETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetScriptComponentResourceUSOETest"); - invoke(); - } - - /** - * @testName: vdlGetComponentMetadataNPETest - * @assertion_ids: JSF:JAVADOC:2249 - * @test_Strategy: Validate that getComponentMetadata throws a - * NullPointerException if in the Facelets VDL and either of - * the args are null. - * - * @since 2.1 - */ - public void vdlGetComponentMetadataNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetComponentMetadataNPETest"); - invoke(); - } - - /** - * @testName: vdlGetScriptComponentResourceNPETest - * @assertion_ids: JSF:JAVADOC:2253 - * @test_Strategy: Validate that getScriptComponentResource throws a - * NullPointerException if in the Facelets VDL and either of - * the args are null. - * - * @since 2.1 - */ - public void vdlGetScriptComponentResourceNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetScriptComponentResourceNPETest"); - invoke(); - } - - /** - * @testName: vdlRenderViewNPETest - * @assertion_ids: JSF:JAVADOC:2262 - * @test_Strategy: Validate that renderView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlRenderViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlRenderViewNPETest"); - invoke(); - } - - /** - * @testName: vdlRetargetMethodExpressionsNPETest - * @assertion_ids: JSF:JAVADOC:2268 - * @test_Strategy: Validate that retargetMethodExpressions throws a - * NullPointerException if any of the args are null. - * - * @since 2.1 - */ - public void vdlRetargetMethodExpressionsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlRetargetMethodExpressionsNPETest"); - invoke(); - } - - /** - * @testName: vdlRetargetAttachedObjectsNPETest - * @assertion_ids: JSF:JAVADOC:2266 - * @test_Strategy: Validate that retargetAttachedObjects throws a - * NullPointerException if any of the args are null. - * - * @since 2.1 - */ - public void vdlRetargetAttachedObjectsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlRetargetAttachedObjectsNPETest"); - invoke(); - } - - /** - * @testName: vdlRestoreViewNPETest - * @assertion_ids: JSF:JAVADOC:2264 - * @test_Strategy: Validate that restoreView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlRestoreViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlRestoreViewNPETest"); - invoke(); - } - - /** - * @testName: vdlCreateViewNPETest - * @assertion_ids: JSF:JAVADOC:2247 - * @test_Strategy: Validate that createView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlCreateViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlCreateViewNPETest"); - invoke(); - } - - /** - * @testName: vdlGetViewMetadataNPETest - * @assertion_ids: JSF:JAVADOC:2258 - * @test_Strategy: Validate that getViewMetadata throws a NullPointerException - * if any of the args are null. - * - * @since 2.1 - */ - public void vdlGetViewMetadataNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetViewMetadataNPETest"); - invoke(); - } - - /** - * @testName: vdlGetViewMetaDataTest - * @assertion_ids: JSF:JAVADOC:2246; JSF:JAVADOC:2244 - * @test_Strategy: Validate that getViewMetaData() contains the correct - * information. - * - * @since 2.0 - */ - public void vdlGetViewMetaDataTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetViewMetaDataTest"); - invoke(); - } - - /** - * @testName: vdlGetIdTest - * @assertion_ids: JSF:JAVADOC:2246; JSF:JAVADOC:2601 - * @test_Strategy: Validate that getId() contains the correct information. - * - * @since 2.0 - */ - public void vdlGetIdTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlGetIdTest"); - invoke(); - } - - /** - * @testName: vdlViewExistsTest - * @assertion_ids: JSF:JAVADOC:2246; JSF:JAVADOC:2602 - * @test_Strategy: Validate that viewExists() returns the correct boolean - * value when a view exists or not. - * - * @since 2.0 - */ - public void vdlViewExistsTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlViewExistsTest"); - invoke(); - } -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/build.xml deleted file mode 100644 index 801f8e21a2..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.war.sun-web.xml deleted file mode 100644 index f28c23b84f..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_vdl_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.xml deleted file mode 100644 index 3f4258b35b..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlang/jsf_view_vdl_web.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - jsf_view_vdl - - com.sun.faces.validateXml - true - - - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlang.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/TestServlet.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/TestServlet.java deleted file mode 100644 index 4f59d6edfd..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/TestServlet.java +++ /dev/null @@ -1,614 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlangwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.List; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.view.AttachedObjectHandler; -import jakarta.faces.view.ViewDeclarationLanguage; -import jakarta.faces.view.ViewDeclarationLanguageWrapper; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - private static final String FACELETS_VIEWID = "/root.xhtml"; - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - public void init(ServletConfig config) throws ServletException { - super.init(config); - } - - public void vdlWrapperGetComponentMetadataNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - Resource resource = this.getResource(context); - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - - String methName = "getComponentMetadata"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.getComponentMetadata(null, resource); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + resource.getClass().getSimpleName() + ")'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + resource.getClass().getSimpleName() - + ")" + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // Resource as 'null' - try { - vdlWrapper.getComponentMetadata(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperGetComponentMetadataNPETest - - public void vdlWrapperGetScriptComponentResourceNPETest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - Resource resource = this.getResource(context); - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - - String methName = "getScriptComponentResource"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.getScriptComponentResource(null, resource); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + resource.getClass().getSimpleName() + ")'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + resource.getClass().getSimpleName() - + ")" + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // Resource as 'null' - try { - vdlWrapper.getScriptComponentResource(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperGetScriptComponentResourceNPETest - - public void vdlWrapperRenderViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - UIViewRoot view = context.getViewRoot(); - - String methName = "renderView"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.renderView(null, view); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + view.getClass().getSimpleName() + ")'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + view.getClass().getSimpleName() - + ")" + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // UIViewRoot as 'null' - try { - vdlWrapper.renderView(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperRenderViewNPETest - - public void vdlWrapperRetargetMethodExpressionsNPETest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - UIComponent component = new UIInput(); - - String methName = "retargetMethodExpressions"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.retargetMethodExpressions(null, component); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + component.getClass().getSimpleName() + ")'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append("Unexpected Exception thrown for " - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + component.getClass().getSimpleName() + ")" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Received: " - + e.getClass().getName() + JSFTestUtil.NL); - } - - // Component as 'null' - try { - vdlWrapper.retargetMethodExpressions(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperRetargetMethodExpressionsNPETest - - public void vdlWrapperRetargetAttachedObjectsNPETest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - UIComponent component = new UIInput(); - - List handlers = new ArrayList(); - handlers.add(new TCKAttachedObjectHandler()); - - String methName = "retargetAttachedObjects"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.retargetAttachedObjects(null, component, handlers); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + component.getClass().getSimpleName() + ", " - + handlers.getClass().getSimpleName() + ")'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append("Unexpected Exception thrown for " - + vdlWrapper.getClass().getName() + "." + methName + "(null, " - + component.getClass().getSimpleName() + ", " - + handlers.getClass().getSimpleName() + ")" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL + "Received: " - + e.getClass().getName() + JSFTestUtil.NL); - } - - // Component as 'null' - try { - vdlWrapper.retargetAttachedObjects(context, null, handlers); - buff.append( - "No Exception thrown when calling '" + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ", null, " + handlers.getClass().getSimpleName() + ")'" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null, " + handlers.getClass().getSimpleName() + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName()); - } - - // AttachedObjectHandler as 'null' - try { - vdlWrapper.retargetAttachedObjects(context, component, null); - buff.append( - "No Exception thrown when calling " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ", null, " + handlers.getClass().getSimpleName() + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ", " + component.getClass().getSimpleName() + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperRetargetAttachedObjectsNPETest - - public void vdlWrapperRestoreViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - - String methName = "restoreView"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.restoreView(null, context.getViewRoot().getViewId()); - buff.append( - "No Exception thrown when calling '" + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")'" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // viewId as 'null' - try { - vdlWrapper.restoreView(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperRestoreViewNPETest - - public void vdlWrapperCreateViewNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - - String methName = "createView"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.createView(null, FACELETS_VIEWID); - buff.append( - "No Exception thrown when calling '" + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")'" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // viewId as 'null' - try { - vdlWrapper.createView(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperCreateViewNPETest - - public void vdlWrapperGetViewMetadataNPETest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - PrintWriter out = response.getWriter(); - StringBuffer buff = new StringBuffer(50); - FacesContext context = getFacesContext(); - - ViewDeclarationLanguage vdlWrapper = this.getVDL(); - - String methName = "getViewMetadata"; - String expected = "NullPointerException"; - - // FacesContext as 'null' - try { - vdlWrapper.createView(null, FACELETS_VIEWID); - buff.append( - "No Exception thrown when calling '" + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")'" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(null, " + FACELETS_VIEWID + ")" - + JSFTestUtil.NL + "Expected: " + expected + JSFTestUtil.NL - + "Received: " + e.getClass().getName() + JSFTestUtil.NL); - } - - // viewId as 'null' - try { - vdlWrapper.createView(context, null); - buff.append("No Exception thrown when calling '" - + vdlWrapper.getClass().getName() + "." + methName + "(" - + context.getClass().getSimpleName() + ", null)'" + JSFTestUtil.NL - + "Expected: " + expected + JSFTestUtil.NL); - - } catch (NullPointerException npe) { - // do nothing test passed - - } catch (Exception e) { - buff.append( - "Unexpected Exception thrown for " + vdlWrapper.getClass().getName() - + "." + methName + "(" + context.getClass().getSimpleName() - + ",null)" + JSFTestUtil.NL + "Expected: " + expected - + JSFTestUtil.NL + "Received: " + e.getClass().getName()); - } - - if (buff.length() > 0) { - out.println("Test FAILED. For the following reason(s):" + JSFTestUtil.NL - + buff.toString()); - } else { - out.println(JSFTestUtil.PASS); - } - - }// End vdlWrapperGetViewMetadataNPETest - - // --------------------------------------------- private methods - - private ViewDeclarationLanguage getVDL() { - ViewDeclarationLanguageWrapper vdlWrapper = new TCKVDL(); - - return vdlWrapper; - } - - private Resource getResource(FacesContext context) { - ResourceHandler handler = context.getApplication().getResourceHandler(); - Resource resource = handler.createResource("myComp.xhtml"); - - return resource; - } - - // --------------------------------------------- private classes - - private static class TCKAttachedObjectHandler - implements AttachedObjectHandler { - - @Override - public void applyAttachedObject(FacesContext arg0, UIComponent arg1) { - // Do nothing this is a Class for test only. - - } - - @Override - public String getFor() { - // Do nothing this is a Class for test only. - return null; - } - - } - - private static class TCKVDL extends ViewDeclarationLanguageWrapper { - private FacesContext fc; - - private String vid; - - public TCKVDL() { - } - - public TCKVDL(FacesContext context, String viewId) { - this.fc = context; - this.vid = viewId; - } - - @Override - public ViewDeclarationLanguage getWrapped() { - return fc.getApplication().getViewHandler().getViewDeclarationLanguage(fc, - vid); - - } - - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/URLClient.java deleted file mode 100644 index 5834855426..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/URLClient.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlangwrapper; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_view_vdl_wrapper_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Run Tests */ - - // ------------------------------------------------------------- test - // methods - - /** - * @testName: vdlWrapperGetComponentMetadataUSOETest - * - * @assertion_ids: JSF:JAVADOC:2610 - * - * @test_Strategy: Validate that getComponentMetadata throws an - * UnsupportedOperationException if in the JSP VDL. - * - * @since 2.1 - */ - public void vdlWrapperGetComponentMetadataUSOETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperGetComponentMetadataUSOETest"); - invoke(); - } - - /** - * @testName: vdlWrapperGetScriptComponentResourceUSOETest - * - * @assertion_ids: JSF:JAVADOC:2615 - * - * @test_Strategy: Validate that getScriptComponentResource throws an - * UnsupportedOperationException if in the JSP VDL. - * - * @since 2.1 - */ - public void vdlWrapperGetScriptComponentResourceUSOETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "vdlWrapperGetScriptComponentResourceUSOETest"); - invoke(); - } - - /** - * @testName: vdlWrapperGetComponentMetadataNPETest - * - * @assertion_ids: JSF:JAVADOC:2608 - * - * @test_Strategy: Validate that getComponentMetadata throws a - * NullPointerException if in the Facelets VDL and either of - * the args are null. - * - * @since 2.1 - */ - public void vdlWrapperGetComponentMetadataNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperGetComponentMetadataNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperGetScriptComponentResourceNPETest - * - * @assertion_ids: JSF:JAVADOC:2613 - * - * @test_Strategy: Validate that getScriptComponentResource throws a - * NullPointerException if in the Facelets VDL and either of - * the args are null. - * - * @since 2.1 - */ - public void vdlWrapperGetScriptComponentResourceNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "vdlWrapperGetScriptComponentResourceNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperRenderViewNPETest - * - * @assertion_ids: JSF:JAVADOC:2623 - * - * @test_Strategy: Validate that renderView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperRenderViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperRenderViewNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperRetargetMethodExpressionsNPETest - * - * @assertion_ids: JSF:JAVADOC:2629 - * - * @test_Strategy: Validate that retargetMethodExpressions throws a - * NullPointerException if any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperRetargetMethodExpressionsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "vdlWrapperRetargetMethodExpressionsNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperRetargetAttachedObjectsNPETest - * - * @assertion_ids: JSF:JAVADOC:2627 - * - * @test_Strategy: Validate that retargetAttachedObjects throws a - * NullPointerException if any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperRetargetAttachedObjectsNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperRetargetAttachedObjectsNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperRestoreViewNPETest - * - * @assertion_ids: JSF:JAVADOC:2625 - * - * @test_Strategy: Validate that restoreView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperRestoreViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperRestoreViewNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperCreateViewNPETest - * - * @assertion_ids: JSF:JAVADOC:2606 - * - * @test_Strategy: Validate that createView throws a NullPointerException if - * any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperCreateViewNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperCreateViewNPETest"); - invoke(); - } - - /** - * @testName: vdlWrapperGetViewMetadataNPETest - * - * @assertion_ids: JSF:JAVADOC:2618 - * - * @test_Strategy: Validate that getViewMetadata throws a NullPointerException - * if any of the args are null. - * - * @since 2.1 - */ - public void vdlWrapperGetViewMetadataNPETest() throws Fault { - TEST_PROPS.setProperty(APITEST, "vdlWrapperGetViewMetadataNPETest"); - invoke(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/build.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/build.xml deleted file mode 100644 index 344b0bec12..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.war.sun-web.xml deleted file mode 100644 index fe6cb1228d..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_vdl_wrapper_web - diff --git a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.xml b/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.xml deleted file mode 100644 index 1555e77bdf..0000000000 --- a/src/com/sun/ts/tests/jsf/api/jakarta_faces/view/viewdeclarationlangwrapper/jsf_view_vdl_wrapper_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_view_vdl_wrapper - - TestServlet - com.sun.ts.tests.jsf.api.jakarta_faces.view.viewdeclarationlangwrapper.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/build.xml b/src/com/sun/ts/tests/jsf/build.xml deleted file mode 100644 index cbe2e9514e..0000000000 --- a/src/com/sun/ts/tests/jsf/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/beans.xml b/src/com/sun/ts/tests/jsf/common/beans.xml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/src/com/sun/ts/tests/jsf/common/beans/AlbumBean.java b/src/com/sun/ts/tests/jsf/common/beans/AlbumBean.java deleted file mode 100644 index 336ad7ee44..0000000000 --- a/src/com/sun/ts/tests/jsf/common/beans/AlbumBean.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.beans; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.List; - -import jakarta.faces.event.ActionEvent; - -@jakarta.inject.Named("album") @jakarta.enterprise.context.RequestScoped -public class AlbumBean implements Serializable { - - private String artist; - - private String album; - - private List songs; - - private String comments; - - public AlbumBean() { - this.initialSetup(); - } - - /** - * @return the artist - */ - public String getArtist() { - return artist; - } - - /** - * @param artist - * the artist to set - */ - public void setArtist(String artist) { - this.artist = artist; - } - - /** - * @return the albumName - */ - public String getAlbum() { - return album; - } - - /** - * @param album - * the albumName to set - */ - public void setAlbum(String album) { - this.album = album; - } - - /** - * @return the songTitles - */ - public List getSongs() { - return songs; - } - - /** - * @param songs - * the songs to set - */ - public void setSongs(List song) { - this.songs = song; - } - - /** - * @return the comments - */ - public String getComments() { - return comments; - } - - /** - * @param comments - * the comments to set - */ - public void setComments(String comments) { - this.comments = comments; - } - - public void eraseComments(ActionEvent ae) { - comments = "You Pressed ERASE!"; - } - - // ---------------------------------------------------------- private methods - private void initialSetup() { - this.artist = "Rush"; - this.album = "Hemispheres"; - - this.songs = new ArrayList(); - this.songs.add("Cygnus X-1 Book II"); - this.songs.add("Circumstances"); - this.songs.add("The Trees"); - this.songs.add("La Villa Strangiato"); - } -} diff --git a/src/com/sun/ts/tests/jsf/common/beans/ColorBean.java b/src/com/sun/ts/tests/jsf/common/beans/ColorBean.java deleted file mode 100644 index bbc8825e3b..0000000000 --- a/src/com/sun/ts/tests/jsf/common/beans/ColorBean.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.beans; - -import java.io.Serializable; - -import jakarta.enterprise.context.ApplicationScoped; -import jakarta.faces.event.ActionEvent; -import jakarta.inject.Named; - -@Named("color") -@ApplicationScoped -public class ColorBean implements Serializable { - - private static final long serialVersionUID = 1L; - - private String color; - - public void editColor(ActionEvent event) { - String buttonId = event.getComponent().getId(); - - if (buttonId.contains("Red")) { - this.setColor("Red"); - } else { - this.setColor("Blue"); - } - } - - public String result() { - return color; - } - - public String getColor() { - return color; - } - - private void setColor(String color) { - this.color = color; - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/beans/TestBean.java b/src/com/sun/ts/tests/jsf/common/beans/TestBean.java deleted file mode 100644 index 6f444b4273..0000000000 --- a/src/com/sun/ts/tests/jsf/common/beans/TestBean.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.beans; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UIInput; - -public class TestBean { - - public static final String PROP = "oneSet"; - - public static final String TRUE = "true"; - - public static final String FALSE = "false"; - - // -------------------------------------------------------------------------- - // private instance variables - private String stkTrace = "false"; - - private String writeOnlyProperty = "Write Only String Property"; - - // ----------------------------------------------------------------------- - // protected instance variables - protected String one = null; - - protected String prop = null; - - protected boolean boolProp = false; - - protected Boolean boolWrapProp = Boolean.FALSE; - - protected byte byteProp = Byte.MAX_VALUE; - - protected char charProp = 'a'; - - protected double doubleProp = 37.266D; - - protected float floatProp = 87.363F; - - protected int intProp = Integer.MAX_VALUE; - - protected long longProp = Long.MAX_VALUE; - - protected short shortProp = Short.MAX_VALUE; - - protected String imagePath = null; - - protected InnerBean inner = null; - - protected ArrayList indexProperties = null; - - protected ArrayList indexIntegerProperties = null; - - protected Map mapProperty = new HashMap(); - - protected String modelLabel = "model label"; - - protected UIComponent component = new UIInput(); - - public TestBean() { - indexProperties = new ArrayList(); - indexProperties.add("Justyna"); - indexProperties.add("Roger"); - indexProperties.add("Ed"); - indexProperties.add("Jayashri"); - indexProperties.add("Craig"); - - Integer integer; - indexIntegerProperties = new ArrayList(); - integer = Integer.valueOf("5"); - indexIntegerProperties.add(integer); - integer = Integer.valueOf("10"); - indexIntegerProperties.add(integer); - } - - public void setOne(String newOne) { - one = newOne; - if (!newOne.equals("one")) { - throw new RuntimeException("Value must be 'one'"); - } - } - - public String getOne() { - return one; - } - - public void setProp(String newProp) { - prop = newProp; - } - - public String getProp() { - return prop; - } - - public void setBoolProp(boolean newBoolProp) { - boolProp = newBoolProp; - } - - public boolean getBoolProp() { - return boolProp; - } - - public Boolean getBoolWrapProp() { - return boolWrapProp; - } - - public void setBoolWrapProp(Boolean boolWrapProp) { - this.boolWrapProp = boolWrapProp; - } - - public void setByteProp(byte newByteProp) { - byteProp = newByteProp; - } - - public byte getByteProp() { - return byteProp; - } - - public void setCharProp(char newCharProp) { - charProp = newCharProp; - } - - public char getCharProp() { - return charProp; - } - - public void setDoubleProp(double newDoubleProp) { - doubleProp = newDoubleProp; - } - - public double getDoubleProp() { - return doubleProp; - } - - public void setFloatProp(float newFloatProp) { - floatProp = newFloatProp; - } - - public float getFloatProp() { - return floatProp; - } - - public void setIntProp(int newIntProp) { - intProp = newIntProp; - } - - public int getIntProp() { - return intProp; - } - - public void setLongProp(long newLongProp) { - longProp = newLongProp; - } - - public long getLongProp() { - return longProp; - } - - public void setShortProp(short newShortProp) { - shortProp = newShortProp; - } - - public short getShortProp() { - return shortProp; - } - - public void setInner(InnerBean newInner) { - inner = newInner; - } - - public InnerBean getInner() { - return inner; - } - - public String getImagePath() { - return imagePath; - } - - public void setImagePath(String newImagePath) { - imagePath = newImagePath; - } - - public ArrayList getIndexProperties() { - return indexProperties; - } - - public void setIndexProperties(String property) { - indexProperties.add(property); - } - - public ArrayList getIndexIntegerProperties() { - return indexIntegerProperties; - } - - public void setIndexIntegerProperties(Integer property) { - indexIntegerProperties.add(property); - } - - public Map getMapProperty() { - return mapProperty; - } - - public void setMapProperty(Map mapProperty) { - this.mapProperty = mapProperty; - } - - public void setModelLabel(String modelLabel) { - this.modelLabel = modelLabel; - } - - public String getModelLabel() { - return modelLabel; - } - - public UIComponent getComponent() { - return component; - } - - public void setComponent(UIComponent component) { - this.component = component; - } - - public void setException(String exceptionClass) { - // no-op - } - - public String getException() { - throw new IllegalStateException(); - } - - public String getWriteOnlyPropertyValue() { - return (this.writeOnlyProperty); - } - - public void setWriteOnlyProperty(String writeOnlyProperty) { - this.writeOnlyProperty = writeOnlyProperty; - } - - /** - * @return the stkTrace - */ - public String getStkTrace() { - return stkTrace; - } - - /** - * @param stkTrace - * the stkTrace to set - */ - public void setStkTrace(String stkTrace) throws TckException { - throw new TckException(); - } - - public String getReadOnly() { - return "readOnly"; - } - - // ------------------------------------------------------------------------------------------ - // public classes - public static class InnerBean { - - protected String two = null; - - protected Integer pin = null; - - protected Boolean result = null; - - protected ArrayList customers = null; - - public void setTwo(String newTwo) { - two = newTwo; - if (!newTwo.equals("two")) { - throw new RuntimeException("Value must be 'two'"); - } - } - - public String getTwo() { - return two; - } - - public void setPin(Integer newPin) { - pin = newPin; - } - - public Integer getPin() { - return pin; - } - - public Collection getCustomers() { - if (null == customers) { - customers = new ArrayList(); - customers.add("Mickey"); - customers.add("Jerry"); - customers.add("Phil"); - customers.add("Bill"); - customers.add("Bob"); - } - return customers; - } - - public void setCustomers(String customer) { - if (null == customers) { - customers = new ArrayList(); - } - customers.add(customer); - } - - public void setResult(Boolean newResult) { - result = newResult; - } - - public Boolean getResult() { - return result; - } - - protected Inner2Bean inner2 = null; - - public void setInner2(Inner2Bean newInner2) { - inner2 = newInner2; - } - - public Inner2Bean getInner2() { - return inner2; - } - } - - public static class Inner2Bean { - protected Map nicknames = new HashMap(); - - protected String three = null; - - public void setThree(String newThree) { - three = newThree; - if (!newThree.equals("three")) { - throw new RuntimeException("Value must be 'three'"); - } - } - - public String getThree() { - return three; - } - - public Map getNicknames() { - return nicknames; - } - - public void setNicknames(Map newNicknames) { - nicknames = newNicknames; - } - } - - // ---------------------------------------------------------------------------------------- - // private classes - private static class TckException extends Exception { - - String mistake = null; - - public TckException() { - super(); - mistake = "BROKEN"; - } - - public String getError() { - return mistake; - } - } -} diff --git a/src/com/sun/ts/tests/jsf/common/beans/build.xml b/src/com/sun/ts/tests/jsf/common/beans/build.xml deleted file mode 100644 index 5973ce84b9..0000000000 --- a/src/com/sun/ts/tests/jsf/common/beans/build.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/behavior/TCKBehavior.java b/src/com/sun/ts/tests/jsf/common/behavior/TCKBehavior.java deleted file mode 100644 index 5533ef427f..0000000000 --- a/src/com/sun/ts/tests/jsf/common/behavior/TCKBehavior.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.behavior; - -import jakarta.faces.component.behavior.Behavior; -import jakarta.faces.event.BehaviorEvent; - -public class TCKBehavior implements Behavior { - - private String name = "default_name"; - - /** - * @return the name - */ - public String getName() { - return name; - } - - /** - * @param name - * the name to set - */ - public void setName(String name) { - this.name = name; - } - - public void broadcast(BehaviorEvent arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } -} diff --git a/src/com/sun/ts/tests/jsf/common/client/AbstractUrlClient.java b/src/com/sun/ts/tests/jsf/common/client/AbstractUrlClient.java deleted file mode 100644 index 553a24a313..0000000000 --- a/src/com/sun/ts/tests/jsf/common/client/AbstractUrlClient.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.client; - -import com.sun.ts.tests.common.webclient.BaseUrlClient; -import com.sun.ts.tests.common.webclient.WebTestCase; -import com.sun.ts.tests.common.webclient.http.HttpRequest; - -/** - * Base client for JSF tests. - */ -public abstract class AbstractUrlClient extends BaseUrlClient { - - protected static final String APITEST = "apitest"; - - protected static final String DONOTUSEServletName = "NoServletName"; - - protected static final String DEFAULT_SERVLET_NAME = "TestServlet"; - - private String myLocale; - - private static final String JSF_USER_AGENT = "JavaServer Faces TCK/2.2"; - - private String _servlet = null; - - private String myCharacterSet; - - protected void setTestProperties(WebTestCase testCase) { - - setStandardProperties(TEST_PROPS.getProperty(STANDARD), testCase); - setApiTestProperties(TEST_PROPS.getProperty(APITEST), testCase); - super.setTestProperties(testCase); - } - - /** - * Sets the request, testname, and a search string for test passed. A search - * is also added for test failure. If found, the test will fail. - * - * @param testValue - * - a logical test identifier - * @param testCase - * - the current test case - */ - private void setApiTestProperties(String testValue, WebTestCase testCase) { - if (testValue == null) { - return; - } - - // An API test consists of a request with a request parameter of - // testname, a search string of Test PASSED, and a logical test name. - - // set the testname - _testName = testValue; - - // set the request - StringBuffer sb = new StringBuffer(50); - if ((_servlet != null) - && (TEST_PROPS.getProperty(DONOTUSEServletName) == null)) { - sb.append(GET).append(_contextRoot).append(SL); - sb.append(_servlet).append("?testname=").append(testValue); - sb.append(HTTP10); - } else { - sb.append(GET).append(_contextRoot).append(SL); - sb.append(testValue).append(HTTP10); - } - System.out.println("REQUEST LINE: " + sb.toString()); - - HttpRequest req = new HttpRequest(sb.toString(), _hostname, _port); - setUserAgent(req); - - // Set Locale if provide. - if (this.getMyLocale() != null) { - this.setUserLocale(req); - } - - // Set charset on Content-Type if provided. - if (this.getMyCharacterSet() != null) { - this.setUserCharacterSet(req); - } - - testCase.setRequest(req); - - if ((TEST_PROPS.getProperty(SEARCH_STRING) == null) - || ((TEST_PROPS.getProperty(SEARCH_STRING)).equals(""))) { - testCase.setResponseSearchString("Test PASSED"); - testCase.setUnexpectedResponseSearchString("Test FAILED"); - } - - } - - /** - * Consists of a test name, a request, and a goldenfile. - * - * @param testValue - * - a logical test identifier - * @param testCase - * - the current test case - */ - private void setStandardProperties(String testValue, WebTestCase testCase) { - - if (testValue == null) { - return; - } - // A standard test sets consists of a testname - // a request, and a goldenfile. The URI is not used - // in this case since the JSP's are assumed to be located - // at the top of the contextRoot - StringBuffer sb = new StringBuffer(50); - - // set the testname - _testName = testValue; - - // set the request - // sb.append(GET).append(_contextRoot).append(SL); - // sb.append(testValue).append(JSP_SUFFIX).append(HTTP10); - // setRequest(sb.toString()); - // HttpRequest req = new HttpRequest(sb.toString(), _hostname, _port); - // testCase.setRequest(req); - - if (_servlet != null) { - sb.append(GET).append(_contextRoot).append(SL); - sb.append(_servlet).append("?testname=").append(testValue); - sb.append(HTTP11); - } else { - sb.append(GET).append(_contextRoot).append(SL); - sb.append(testValue).append(HTTP10); - } - System.out.println("REQUEST LINE: " + sb.toString()); - HttpRequest req = new HttpRequest(sb.toString(), _hostname, _port); - setUserAgent(req); - testCase.setRequest(req); - - // set the goldenfile - sb = new StringBuffer(50); - sb.append(_tsHome).append(GOLDENFILEDIR); - sb.append(_generalURI).append(SL); - sb.append(testValue).append(GF_SUFFIX); - testCase.setGoldenFilePath(sb.toString()); - } - - /** - * Sets the name of the servlet to use when building a request for a single - * jsf API test. - * - * @param servlet - * - the name of the servlet - */ - protected void setServletName(String servlet) { - _servlet = servlet; - } - - protected String getServletName() { - return _servlet; - } - - private void setUserAgent(HttpRequest request) { - request.addRequestHeader("User-Agent", JSF_USER_AGENT); - } - - public String getMyLocale() { - return myLocale; - } - - /** - * Sets the locale for a given request. - * - * @param myLocale - * - the Locale that you would like to set for the request header. - */ - public void setMyLocale(String myLocale) { - this.myLocale = myLocale; - } - - private void setUserLocale(HttpRequest request) { - request.addRequestHeader("Accept-Language", myLocale); - } - - /** - * Provides the value for the 'charset' attribute in the Content-Type header. - * - * @param myCharacterSet - * the myCharacterSet to set - */ - public void setMyCharacterSet(String myCharacterSet) { - this.myCharacterSet = myCharacterSet; - } - - private void setUserCharacterSet(HttpRequest request) { - request.addRequestHeader("Content-Type", myCharacterSet); - } - - public String getMyCharacterSet() { - return myCharacterSet; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/client/BaseHtmlUnitClient.java b/src/com/sun/ts/tests/jsf/common/client/BaseHtmlUnitClient.java deleted file mode 100644 index 17e23377d4..0000000000 --- a/src/com/sun/ts/tests/jsf/common/client/BaseHtmlUnitClient.java +++ /dev/null @@ -1,776 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.client; - -import java.io.IOException; -import java.net.URL; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Formatter; -import java.util.Iterator; -import java.util.List; -import java.util.Properties; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.html.DomAttr; -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlLabel; -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.ts.lib.harness.EETest; -import com.sun.ts.lib.util.TestUtil; - -/** - *

- * This class provides convenience methods for using HtmlUnit to aid in - * validating JSF rendered responses. - *

- */ -public class BaseHtmlUnitClient extends EETest { - - static { - if (TestUtil.traceflag) { - System.setProperty("org.apache.commons.logging.Log", - "com.sun.ts.tests.common.webclient.log.WebLog"); - System.setProperty( - "org.apache.commons.logging.simplelog.log.httpclient.wire", "debug"); - } - } - - private static final String WEB_SERVER_HOST = "webServerHost"; - - private static final String WEB_SERVER_PORT = "webServerPort"; - - private WebClient webClient; - - protected String hostName; - - protected int port; - - protected String urlPrefix; - - protected boolean throwExceptionOnFailingStatusCode; - - public void setup(String[] args, Properties p) throws Fault { - - String hostName = p.getProperty(WEB_SERVER_HOST).trim(); - String port = p.getProperty(WEB_SERVER_PORT).trim(); - - if (hostName != null && hostName.length() > 0) { - this.hostName = hostName; - } else { - throw new Fault("'webServerHost' not specified in the ts.jte"); - } - - if (port != null && port.length() > 0) { - this.port = Integer.parseInt(port); - } else { - throw new Fault("'webServerPort' not specified in the ts.jte"); - } - - urlPrefix = "http://" + hostName + ':' + port; - - TestUtil.logMsg("Test setup OK"); - - } // END setup - - /** - * cleanup is called by the test harness to cleanup after text - * execution - * - * @throws Fault - * if an error occurs - */ - public void cleanup() throws Fault { - TestUtil.logMsg("Test cleanup OK"); - } - - protected HtmlPage getPage(String path) throws Fault { - - return getPage(new WebClient(), path); - - } // END getPage - - protected HtmlPage getPage(WebClient client, String path) throws Fault { - webClient = client; - - if (!throwExceptionOnFailingStatusCode) { - client.getOptions().setThrowExceptionOnFailingStatusCode(false); - } else { - client.getOptions().setThrowExceptionOnFailingStatusCode(true); - } - - TestUtil.logMsg("setThrowExceptionOnFailingStatusCode is set to: " - + webClient.getOptions().isThrowExceptionOnFailingStatusCode()); - - try { - return (HtmlPage) client.getPage(new URL(urlPrefix + path)); - - } catch (Exception e) { - throw new Fault(e); - } - - } // END getPage - - /** - *

- * Added to compensate for changes in the HtmlUnit 1.4 API. - *

- * - * @see #getAllElementsOfGivenClass(com.gargoylesoftware.htmlunit.html.HtmlElement, - * java.util.List, Class) - */ - protected List getAllElementsOfGivenClass(HtmlPage root, - List list, Class matchClass) { - - return getAllElementsOfGivenClass(root.getDocumentElement(), list, - matchClass); - - } - - protected List getAllElementsOfGivenClass(HtmlElement root, - List list, Class matchClass) { - List allElements; - - if (null == root) { - return list; - } - - allElements = (null == list) ? new ArrayList() : list; - - for (Iterator i = root.getHtmlElementDescendants() - .iterator(); i.hasNext();) { - getAllElementsOfGivenClass(i.next(), allElements, matchClass); - } - - if (matchClass.isInstance(root)) { - if (!allElements.contains(root)) { - allElements.add(root); - } - } - return allElements; - - } - - protected HtmlInput getInputIncludingId(HtmlPage root, String id) { - - HtmlInput result = null; - - List list = getAllElementsOfGivenClass(root, null, HtmlInput.class); - for (int i = 0; i < list.size(); i++) { - result = (HtmlInput) list.get(i); - if (-1 != result.getId().indexOf(id)) { - break; - } - result = null; - } - return result; - } - - /** - * Return an @HtmlElement from the given @HtmlPage. - * - * @param root - * - HtmlPage to search for the given element. - * @param tagName - * - The HTML tagname to search for. - * @param id - * - The id attribute of the tag that you want to find. - * - * @return - @HtmlElement or null if not found. - */ - protected HtmlElement getElementOfTypeIncludingId(HtmlPage root, - String tagName, String id) { - - HtmlElement result = null; - - List list = root.getDocumentElement().getHtmlElementsByTagName(tagName); - - for (Iterator i = list.iterator(); i.hasNext();) { - HtmlElement element = (HtmlElement) i.next(); - - if (element.getId().indexOf(id) > -1) { - result = element; - } - } - - return result; - } - - /** - * Return an @HtmlElement from the given @HtmlPage. - * - * @param root - * - HtmlPage to search for the given element. - * @param tagName - * - The HTML tagname to search for. - * @param value - * - The value of the tag that you want to find. - * - * @return - @HtmlElement or null if not found. - */ - protected HtmlElement getElementOfTypeWithValue(HtmlPage root, String tagName, - String value) { - - HtmlElement result = null; - - List list = root.getDocumentElement() - .getHtmlElementsByTagName(tagName); - - for (Object element : list) { - HtmlElement myElement = (HtmlElement) element; - - if (myElement.getTextContent().equals(value)) { - result = myElement; - } - } - - return result; - } - - /** - * Return an @HtmlElement from the given @HtmlPage. - * - * @param root - * - HtmlPage to search for the given element. - * @param tagName - * - The HTML tagname to search for. - * @param id - * - The String to search for an ID that starts with. - * - * @return - @HtmlElement or null if not found. - */ - protected HtmlElement getElementOfTypeIdStartsWith(HtmlPage root, - String tagName, String id) { - - HtmlElement result = null; - - List list = root.getDocumentElement().getHtmlElementsByTagName(tagName); - - for (Iterator i = list.iterator(); i.hasNext();) { - HtmlElement element = (HtmlElement) i.next(); - if (element.getId().startsWith(id)) { - result = element; - } - } - - return result; - } - - /** - * Return an @HtmlElement from the given @HtmlPage. - * - * @param root - * - HtmlPage to search for the given element. - * @param tagName - * - The HTML tagname to search for. - * @param title - * - The title attribute of the tag that you want to find. - * - * @return - @HtmlElement - */ - protected HtmlElement getElementOfTypeIncludingTitle(HtmlPage root, - String tagName, String title) { - - HtmlElement result = root.getDocumentElement() - .getOneHtmlElementByAttribute(tagName, "title", title); - - return result; - } - - /** - * Return an @HtmlElement from the given @HtmlPage. - * - * @param root - * - HtmlPage to search for the given element. - * @param tagName - * - The HTML tagname to search for. - * @param src - * - The @String to search for in the src attribute. - * - * @return - The found @HtmlElement or null if not found. - */ - protected HtmlElement getElementOfTypeIncludingSrc(HtmlPage root, - String tagName, String src) { - - String test; - HtmlElement result = null; - - ArrayList scripts = (ArrayList) root - .getDocumentElement().getHtmlElementsByTagName(tagName); - - for (HtmlElement e : scripts) { - test = e.getAttribute("src"); - if (test.contains(src)) { - result = e; - break; - } - } - - return result; - } - - protected void handleTestStatus(StringBuilder messages) throws Fault { - if (messages.length() > 0) { - TestUtil.logErr("Test FAILED"); - TestUtil.logErr("--------------------------"); - String[] msgs = messages.toString().split("\n"); - for (String message : msgs) { - TestUtil.logErr(message); - } - TestUtil.logErr("--------------------------"); - throw new Fault("Test FAILED. Check messages for details."); - } else { - TestUtil.logMsg("Test PASSED"); - } - } - - /** - * Validate that the given element(element) has been Rendered. - * - * @param id - * - The value of the id attribute for the given element. - * @param elementName - * - The element name. - * @param element - * - The element to validate. - * @param formatter - * - used for messages. - * @return - */ - protected boolean validateExistence(String id, String elementName, - HtmlElement element, Formatter formatter) { - - if (element == null) { - formatter.format( - "Unable to find rendered '%s' element containing " + "the ID '%s'%n", - elementName, id); - return false; - } - - return true; - } - - protected void validateAttributeSet(TreeMap control, - HtmlElement underTest, String[] ignoredAttributes, Formatter formatter) { - - Arrays.sort(ignoredAttributes); - TreeMap fromPage = new TreeMap(); - for (Iterator i = underTest.getAttributesMap().values().iterator(); i - .hasNext();) { - DomAttr domEntry = (DomAttr) i.next(); - String key = domEntry.getName(); - if (Arrays.binarySearch(ignoredAttributes, key) > -1) { - continue; - } - // fromPage.put(key, entry.getValue()); - fromPage.put(key, domEntry.getValue()); - } - - if (!control.equals(fromPage)) { - formatter.format("%n Unexpected result when validating " - + "passthrough attributes received for the rendered " - + "'%s' in the response.%n", underTest.getTagName()); - formatter.format("%nExpected attribute key/value pairs:%n%s", - control.toString()); - formatter.format( - "%nAttribute key/value pairs from the " + "response:%n%s", - fromPage.toString()); - } - - } // END validateAttributeSet - - /* - * In a given htmlpage(root) look for and return the child Label element from - * the given parent element(tagName), That matches the givin String(forName) - * to its "for" attribute. - * - * Return null if no label element matches. - */ - protected HtmlLabel getLabelIncludingFor(HtmlPage root, String tagName, - String forName) { - - HtmlLabel result = null; - - List list = root.getDocumentElement().getHtmlElementsByTagName(tagName); - - for (Iterator i = list.iterator(); i.hasNext();) { - HtmlLabel label = (HtmlLabel) i.next(); - if (label.getForAttribute().indexOf(forName) > -1) { - result = label; - } - } - - return result; - }// End getLabelIncludingFor - - /* - * In a given htmlpage(root) look for and return the child HtmlSelect element - * from the given List, that has the same id name as the given id. - * - * Return null if no label element matches. - */ - protected HtmlSelect getHtmlSelectForId(List selects, String id) { - - for (HtmlSelect select : selects) { - if (select.getId().contains(id)) { - return select; - } - - } - - return null; - - } - - /** - * In a given htmlpage(root) look for and return the children label elements - * that contain a given string. - * - * @param root - * - the HtmlPage to search. - * @param myLabel - * - The contents on which to search for. - * - * @return - A List of HtmlLabels. - * - */ - protected List getLabelsContaining(HtmlPage root, String myLabel) { - List result = new ArrayList(); - - List labels = root.getDocumentElement() - .getHtmlElementsByTagName("label"); - - for (HtmlLabel label : labels) { - if (label.asText().contains(myLabel)) { - result.add(label); - } - } - - if ((result.size() == 0)) { - result = null; - } - - return result; - }// End getLabelsContaining - - /** - * Test for a the give @String "expectedValue" to match the rendered value of - * the given @HtmlElement "element". - * - * @param element - * - HtmlElement under test. - * @param expectedValue - * - The expected result. - * @param formatter - * - used to gather test result output. - */ - protected void validateElementValue(HtmlElement element, String expectedValue, - Formatter formatter) { - - String result = element.asText().trim(); - if (!expectedValue.equals(result)) { - formatter.format("Unexpected Test Result For %s! %n" + "Expected: %s %n" - + "Found: %s %n", element.getId(), expectedValue, result); - } - }// End validateElementValue - - /** - * Test a given HtmlSelect's options to see if they validate against a - * test @List (expected). - * - * @param select - * - HtmlSelect element under test. - * @param expected - * - The expected result. - * @param formatter - * - used to gather test result output. - */ - protected void validateSelectOptions(HtmlSelect select, List expected, - Formatter formatter) { - - List options = select.getOptions(); - - if (expected.size() != options.size()) { - formatter.format( - "Unexpected Size For %s! %n" + "Expected: %s %n" + "Found: %s %n", - select.getId(), expected.size(), options.size()); - } else { - String expSong, recSong; - HtmlOption opt; - for (int i = 0; i < options.size(); i++) { - opt = (HtmlOption) options.get(i); - expSong = expected.get(i).trim(); - recSong = opt.asText().trim(); - if (!recSong.equals(expSong)) { - formatter.format("Unexpected Value Test Value! %n" + "Expected: %s %n" - + "Found: %s %n", expSong, recSong); - } - } - } - - }// End validateSelectOptions - - /** - * This test method is used for testing to List objects. - * - * @param page - * - The HtmlPage that has the the test List Rendered. - * @param myLabels - * - name of the HTMLLabel rendered. - * @param expNum - * - The expected number - * @param expValue - * - The List of expected Strings. - * @param formatter - * - the Formatter that we want test output to be stored. - * @param ordered - * - If true test the List object for ordering. - */ - protected void testList(HtmlPage page, String myLabels, List expValue, - int expSize, Formatter formatter, boolean ordered) { - - List renderedList = getLabelsContaining(page, myLabels); - String[] result; - String rec; - - if (renderedList != null && !renderedList.isEmpty()) { - int ii = renderedList.size(); - if (ii != expSize) { - formatter.format("Unexpected Number of Items Rendered for " + myLabels - + "! %n" + "Expected: %d %n" + "Received: %d %n", expSize, ii); - } - } else { - formatter.format("No Labels found containing " + myLabels + "!"); - } - - if (ordered) { - int i = 0; - for (HtmlLabel label : renderedList) { - result = label.asText().split(":"); - rec = result[1].trim(); - String expectedValue = expValue.get(i); - if (!(expectedValue.equals(rec))) { - formatter.format("Unexpected Value Rendered! %n" + "Found: %s %n" - + "Expected: %s %n", rec, expectedValue); - } - i++; - } - } else { - for (HtmlLabel label : renderedList) { - result = label.asText().split(":"); - rec = result[1].trim(); - if (!(expValue.contains(rec))) { - formatter.format("Unexpected Value Rendered! %n" + "Found: %s %n", - rec); - } - } - } - } - - /** - * This test method is used for testing to List objects. - * - * @param page - * - The HtmlPage that has the the test List Rendered. - * @param myLabels - * - name of the HTMLLabel rendered. - * @param expNum - * - The expected number - * @param expValue - * - The List of expected Strings. - * @param formatter - * - the Formatter that we want test output to be stored. - */ - protected void testList(HtmlPage page, String myLabels, List expValue, - int expSize, Formatter formatter) { - - this.testList(page, myLabels, expValue, expSize, formatter, Boolean.FALSE); - - } - - /** - * Click the given button. - * - * @param button - * - * @return - The HtmlPage. - */ - protected HtmlPage doClick(HtmlSubmitInput button) { - HtmlPage page = null; - - if (!throwExceptionOnFailingStatusCode) { - webClient.getOptions().setThrowExceptionOnFailingStatusCode(false); - } else { - webClient.getOptions().setThrowExceptionOnFailingStatusCode(true); - } - - TestUtil.logMsg("setThrowExceptionOnFailingStatusCode is set to: " - + webClient.getOptions().isThrowExceptionOnFailingStatusCode()); - - try { - - page = (HtmlPage) button.click(); - - } catch (IOException e) { - e.printStackTrace(); - } - - return page; - - } - - /** - * Does the give HtmlPage(pg) contain the give String(str). - * - * @param pg - * - HtmlPage we want to search through. - * @param str - * - String that we are searching for. - * @param sb - * - StringBuffer for error logging. - * - * @throws Fault - */ - protected void doesPageContain(HtmlPage pg, String str, StringBuilder sb) - throws Fault { - this.contains(pg, str, sb, false); - } - - /** - * Does the give HtmlPage(pg) contain the give String(str), and if so fail the - * test. - * - * @param pg - * - HtmlPage we want to search through. - * @param str - * - String that we are searching for. - * @param sb - * - StringBuffer for error logging. - * - * @throws Fault - */ - protected void doesPageNotContain(HtmlPage pg, String str, StringBuilder sb) - throws Fault { - this.contains(pg, str, sb, true); - } - - /** - * Does the given HtmlPage(pg) match the given String(str) - * - * @param pg - * - HtmlPage we want to search through. - * @param str - * - String that we are searching for. - * @param sb - * - StringBuffer for error logging. - * @param match - * - true/false, Set false for negative testing. - * - * @throws Fault - */ - protected void doesPageMatch(HtmlPage pg, String str, StringBuilder sb, - Boolean match) throws Fault { - - Formatter formatter = new Formatter(sb); - - if (match == true) { - if (!pg.asText().matches(str)) { - formatter.format("Page text should match: %s %n!", str); - } - - } else if (match == false) { - if (pg.asText().matches(str)) { - formatter.format("Page text should 'NOT' match: %s %n!", str); - } - } - - handleTestStatus(sb); - formatter.close(); - - } - - /** - * Validate that the given HtmlPage has a Span elment and that its value is - * the expected value passed in. - * - * @param pg - * - HtmlPage(pg) The page we want to search through. - * @param spanId - * - String(spanId) To look for. - * @param expected - * - String(expected) The expected value of the Span element. - * @param sb - * - StringBuffer for error logging. - * - * @throws Fault - */ - protected void checkSpanValue(HtmlPage pg, String spanId, String expected, - StringBuilder sb) throws Fault { - - Formatter formatter = new Formatter(sb); - - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(pg, "span", spanId); - - if (!validateExistence(spanId, "span", span, formatter)) { - handleTestStatus(sb); - return; - } - - String result = span.getTextContent(); - - if (!expected.equals(result)) { - formatter.format("Unexpected Value for Span Element %s! %n " - + "Expected: %s %n " + "Received: %s %n", spanId, expected, result); - } - - handleTestStatus(sb); - formatter.close(); - - } - - // ------------------------ private methods - - private void contains(HtmlPage pg, String str, StringBuilder sb, - Boolean negTest) throws Fault { - - Formatter formatter = new Formatter(sb); - - if (negTest == false) { - if (!pg.asText().contains(str)) { - formatter.format("Page should contain: %s %n!", str); - } - - } else if (negTest == true) { - if (pg.asText().contains(str)) { - formatter.format("Page should 'NOT' contain: %s %n!", str); - } - } - - handleTestStatus(sb); - formatter.close(); - - } -} // END BaseHtmlUnitClient diff --git a/src/com/sun/ts/tests/jsf/common/client/build.xml b/src/com/sun/ts/tests/jsf/common/client/build.xml deleted file mode 100644 index ea41f9699f..0000000000 --- a/src/com/sun/ts/tests/jsf/common/client/build.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/common.xml b/src/com/sun/ts/tests/jsf/common/common.xml deleted file mode 100644 index 99621ddbb6..0000000000 --- a/src/com/sun/ts/tests/jsf/common/common.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/event/TCKSystemEvent.java b/src/com/sun/ts/tests/jsf/common/event/TCKSystemEvent.java deleted file mode 100644 index c4d22aa069..0000000000 --- a/src/com/sun/ts/tests/jsf/common/event/TCKSystemEvent.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.event; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.event.FacesListener; -import jakarta.faces.event.SystemEvent; - -public class TCKSystemEvent extends SystemEvent { - - public TCKSystemEvent(UIComponent component) { - super(component); - } - - @Override - public boolean isAppropriateListener(FacesListener listener) { - return false; - } - - @Override - public void processListener(FacesListener listener) { - } -} diff --git a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactory.java b/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactory.java deleted file mode 100644 index 1ee9aa3460..0000000000 --- a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactory.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.factories; - -import jakarta.faces.FacesException; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; - -public class TCKContextFactory extends FacesContextFactory { - - @Override - public FacesContext getFacesContext(Object arg0, Object arg1, Object arg2, - Lifecycle arg3) throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - public FacesContextFactory getWrapped() { - // For testing purposes when this method is called return itself. - return this; - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryFour.java b/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryFour.java deleted file mode 100644 index 911e06bff7..0000000000 --- a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryFour.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.factories; - -import jakarta.faces.FacesException; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; - -public class TCKContextFactoryFour extends TCKDecoratedContextFactory { - - public TCKContextFactoryFour(FacesContextFactory facesContextFactory) { - super.fcf = facesContextFactory; - } - - @Override - public FacesContext getFacesContext(Object arg0, Object arg1, Object arg2, - Lifecycle arg3) throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public FacesContextFactory getWrapped() { - // For testing purposes when this method is called return itself. - return this; - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryThree.java b/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryThree.java deleted file mode 100644 index 0498f2d44a..0000000000 --- a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryThree.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.factories; - -import jakarta.faces.FacesException; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; - -public class TCKContextFactoryThree extends TCKDecoratedContextFactory { - - public TCKContextFactoryThree(FacesContextFactory facesContextFactory) { - super.fcf = facesContextFactory; - } - - @Override - public FacesContext getFacesContext(Object arg0, Object arg1, Object arg2, - Lifecycle arg3) throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - public String getParent() { - String contextName = fcf.getClass().getCanonicalName(); - - return contextName; - } - - @Override - public FacesContextFactory getWrapped() { - // For testing purposes when this method is called return itself. - return this; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryTwo.java b/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryTwo.java deleted file mode 100644 index f8aa266817..0000000000 --- a/src/com/sun/ts/tests/jsf/common/factories/TCKContextFactoryTwo.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.factories; - -import jakarta.faces.FacesException; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; - -public class TCKContextFactoryTwo extends FacesContextFactory { - - @Override - public FacesContext getFacesContext(Object arg0, Object arg1, Object arg2, - Lifecycle arg3) throws FacesException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public FacesContextFactory getWrapped() { - // For testing purposes when this method is called return itself. - return this; - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/factories/TCKDecoratedContextFactory.java b/src/com/sun/ts/tests/jsf/common/factories/TCKDecoratedContextFactory.java deleted file mode 100644 index 6dcd976204..0000000000 --- a/src/com/sun/ts/tests/jsf/common/factories/TCKDecoratedContextFactory.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.common.factories; - -import jakarta.faces.context.FacesContextFactory; - -public abstract class TCKDecoratedContextFactory extends FacesContextFactory { - - public FacesContextFactory fcf; - - private String contextName; - - public String getParent() { - contextName = fcf.getClass().getCanonicalName(); - - return contextName; - } - - @Override - public FacesContextFactory getWrapped() { - // For testing purposes when this method is called return itself. - return this; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/listener/TCKActionListener.java b/src/com/sun/ts/tests/jsf/common/listener/TCKActionListener.java deleted file mode 100644 index ab5a7a504b..0000000000 --- a/src/com/sun/ts/tests/jsf/common/listener/TCKActionListener.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.listener; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; -import jakarta.faces.event.PhaseId; - -public class TCKActionListener implements ActionListener { - - public void processAction(ActionEvent event) throws AbortProcessingException { - return; - } - - public PhaseId getPhaseId() { - return PhaseId.INVOKE_APPLICATION; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/listener/TCKBehaviorListener.java b/src/com/sun/ts/tests/jsf/common/listener/TCKBehaviorListener.java deleted file mode 100644 index 8371d464cb..0000000000 --- a/src/com/sun/ts/tests/jsf/common/listener/TCKBehaviorListener.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.listener; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.AjaxBehaviorEvent; -import jakarta.faces.event.AjaxBehaviorListener; - -public final class TCKBehaviorListener implements AjaxBehaviorListener { - private String id = null; - - private TCKBehaviorListener() { - } - - // -------------------------------------------------- Public Methods - - /** - * Create a BehaviorListener with with the given ID(id) - * - * @param id - * - The id of the TestActionListener. - * @return TestActionListener - */ - public static TCKBehaviorListener withID(String id) { - TCKBehaviorListener listener = new TCKBehaviorListener(); - listener.setId(id); - - return listener; - - } - - /** - * Set the id of this TCKBehaviorListener - * - * @param id - * - The id you want this TestActionListener Object to have. - */ - public void setId(String id) { - this.id = id; - } - - /** - * Get the id of this AjaxBehaviorListener - * - * @return The id that has been previously set. - */ - public String getId() { - return (this.id); - } - - public void processAjaxBehavior(AjaxBehaviorEvent event) - throws AbortProcessingException { - trace(getId() + "@" + JSFTestUtil.getPhaseIdAsString(event.getPhaseId())); - } - - public boolean equals(Object otherObj) { - if (!(otherObj instanceof TCKBehaviorListener)) { - return false; - } - TCKBehaviorListener other = (TCKBehaviorListener) otherObj; - if ((null != id && null == other.id) || (null == id && null != other.id)) { - return false; - } - boolean idsAreEqual = true; - if (null != id) { - idsAreEqual = id.equals(other.id); - } - - return idsAreEqual; - } - - public int hashCode() { - assert false : "hashCode not designed"; - return 42; // any arbitrary constant will do - } - - // ---------------------------------------------------- Static Trace Methods - - // Accumulated trace log - private static StringBuffer trace = new StringBuffer(); - - // Append to the current trace log (or clear if null) - public static void trace(String text) { - if (text == null) { - trace.setLength(0); - } else { - trace.append('/'); - trace.append(text); - } - } - - // Retrieve the current trace log - public static String trace() { - return (trace.toString()); - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/listener/TCKELContextListener.java b/src/com/sun/ts/tests/jsf/common/listener/TCKELContextListener.java deleted file mode 100644 index df173041f1..0000000000 --- a/src/com/sun/ts/tests/jsf/common/listener/TCKELContextListener.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.listener; - -import jakarta.el.ELContextEvent; -import jakarta.el.ELContextListener; - -public class TCKELContextListener implements ELContextListener { - - public void contextCreated(ELContextEvent elContextEvent) { - } -} diff --git a/src/com/sun/ts/tests/jsf/common/listener/TCKSystemEventListener.java b/src/com/sun/ts/tests/jsf/common/listener/TCKSystemEventListener.java deleted file mode 100644 index e3660b4004..0000000000 --- a/src/com/sun/ts/tests/jsf/common/listener/TCKSystemEventListener.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.listener; - -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.SystemEvent; -import jakarta.faces.event.SystemEventListener; - -public class TCKSystemEventListener implements SystemEventListener { - - public void processEvent(SystemEvent arg0) throws AbortProcessingException { - throw new UnsupportedOperationException("Not supported yet."); - } - - public boolean isListenerForSource(Object arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } -} diff --git a/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationCase.java b/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationCase.java deleted file mode 100644 index fc5046bed6..0000000000 --- a/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationCase.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.navigation; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import jakarta.faces.application.NavigationCase; - -public class TCKNavigationCase { - - public static NavigationCase getCase(String caseName) { - String fromViewId = null; - String fromAction = null; - String fromOutcome = null; - String condition = null; - String toViewId = null; - boolean isRedirect = false; - boolean isParameters = false; - Map> parameters = null; - - if ("red".equalsIgnoreCase(caseName)) { - fromViewId = "/stop.xhtml"; - fromAction = "#{color.result}"; - fromOutcome = "Red"; - condition = "#{'Red' == color.color}"; - toViewId = "/red.xhtml"; - - } else if ("blue".equalsIgnoreCase(caseName)) { - fromViewId = "/stop.xhtml"; - fromAction = "#{color.result}"; - fromOutcome = "Blue"; - condition = "#{'Blue' == color.color}"; - toViewId = "/blue.xhtml"; - - } else if ("green".equalsIgnoreCase(caseName)) { - ArrayList al = new ArrayList(); - parameters = new HashMap>(); - al.add("/red.xhtml"); - fromViewId = "/stop.xhtml"; - fromAction = "#{color.result}"; - toViewId = "/blue.xhtml"; - isRedirect = true; - isParameters = true; - parameters.put("id", al); - - } - - return new NavigationCase(fromViewId, fromAction, fromOutcome, condition, - toViewId, parameters, isRedirect, isParameters); - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationHandler.java b/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationHandler.java deleted file mode 100644 index b94e2b739c..0000000000 --- a/src/com/sun/ts/tests/jsf/common/navigation/TCKNavigationHandler.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.navigation; - -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.context.FacesContext; - -public class TCKNavigationHandler extends NavigationHandler { - - public void handleNavigation(FacesContext context, String actionRef, - String outcome) { - return; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/resolver/TCKELResolver.java b/src/com/sun/ts/tests/jsf/common/resolver/TCKELResolver.java deleted file mode 100644 index ae59639c23..0000000000 --- a/src/com/sun/ts/tests/jsf/common/resolver/TCKELResolver.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.resolver; - -import java.util.Iterator; - -import jakarta.el.ELContext; -import jakarta.el.ELResolver; - -public class TCKELResolver extends ELResolver { - - public Object getValue(ELContext elContext, Object object, Object object1) { - return null; - } - - public Class getType(ELContext elContext, Object object, Object object1) { - return null; - } - - public void setValue(ELContext elContext, Object object, Object object1, - Object object2) { - } - - public boolean isReadOnly(ELContext elContext, Object object, - Object object1) { - return false; - } - - public Iterator getFeatureDescriptors(ELContext elContext, Object object) { - return null; - } - - public Class getCommonPropertyType(ELContext elContext, Object object) { - return null; - } -} diff --git a/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_de.java b/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_de.java deleted file mode 100644 index 807db464ac..0000000000 --- a/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_de.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.resourcebundle; - -import java.util.ListResourceBundle; - -public class SimpleResourceBundle_de extends ListResourceBundle { - - // ----------------------------------------- Methods from ListResourceBundle - - /** - * See class description. - */ - protected Object[][] getContents() { - - return new Object[][] { { "key", "value" } }; - - } // END getContents - -} // END SimpleResourceBundle_de diff --git a/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_en.java b/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_en.java deleted file mode 100644 index f05a9e37a5..0000000000 --- a/src/com/sun/ts/tests/jsf/common/resourcebundle/SimpleResourceBundle_en.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.resourcebundle; - -import java.util.ListResourceBundle; - -public class SimpleResourceBundle_en extends ListResourceBundle { - - // ----------------------------------------- Methods from ListResourceBundle - - /** - * See class description. - */ - protected Object[][] getContents() { - - return new Object[][] { { "key", "value" } }; - - } // END getContents - -} // END SimpleResourceBundle_en diff --git a/src/com/sun/ts/tests/jsf/common/resourcehandler/TCKResourceHandler.java b/src/com/sun/ts/tests/jsf/common/resourcehandler/TCKResourceHandler.java deleted file mode 100644 index c98fb901c4..0000000000 --- a/src/com/sun/ts/tests/jsf/common/resourcehandler/TCKResourceHandler.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.resourcehandler; - -import java.io.IOException; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; -import jakarta.faces.context.FacesContext; - -public class TCKResourceHandler extends ResourceHandler { - - @Override - public Resource createResource(String arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Resource createResource(String arg0, String arg1) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public Resource createResource(String arg0, String arg1, String arg2) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public void handleResourceRequest(FacesContext arg0) throws IOException { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public boolean isResourceRequest(FacesContext arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public String getRendererTypeForResourceName(String arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } - - @Override - public boolean libraryExists(String arg0) { - throw new UnsupportedOperationException("Not supported yet."); - } -} diff --git a/src/com/sun/ts/tests/jsf/common/servlets/FactoryTCKServlet.java b/src/com/sun/ts/tests/jsf/common/servlets/FactoryTCKServlet.java deleted file mode 100644 index 344c6c153e..0000000000 --- a/src/com/sun/ts/tests/jsf/common/servlets/FactoryTCKServlet.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.servlets; - -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class FactoryTCKServlet extends HttpServlet { - - /** - * A basic implementation of the doGet method which will call - * invokeTest. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - * @exception IOException - * if an IO error occurs - */ - @Override - public void doGet(HttpServletRequest req, HttpServletResponse res) - throws ServletException, IOException { - invokeTest(req, res); - } - - /** - * A basic implementation of the doPost method which will call - * invokeTest. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - * @exception IOException - * if an IO error occurs - */ - @Override - public void doPost(HttpServletRequest req, HttpServletResponse res) - throws ServletException, IOException { - - invokeTest(req, res); - - } - - // ---------------------------------------------------------- private methods - /** - * invokeTest uses reflection to invoke test methods in child - * classes of this particular class. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - */ - @SuppressWarnings("static-access") - protected void invokeTest(HttpServletRequest req, HttpServletResponse res) - throws ServletException { - res.setContentType("text/plain"); - char[] temp = req.getParameter("testname").toCharArray(); - temp[0] = Character.toLowerCase(temp[0]); - String test = new String(temp); - - Method[] methods = this.getClass().getMethods(); - // (test, TEST_ARGS); - Method method = null; - for (int i = 0; i < methods.length; i++) { - method = methods[i]; - if (method.getName().equals(test)) { - break; - } - } - if (method == null) { - throw new ServletException("Test: " + test + " does not exist."); - } - try { - method.invoke(this, new Object[] { req, res }); - } catch (InvocationTargetException ite) { - throw new ServletException(ite.getTargetException()); - } catch (Exception e) { - throw new ServletException("Error executing test: " + test, e); - - } - } -} diff --git a/src/com/sun/ts/tests/jsf/common/servlets/HttpTCKServlet.java b/src/com/sun/ts/tests/jsf/common/servlets/HttpTCKServlet.java deleted file mode 100644 index d6fd6f888d..0000000000 --- a/src/com/sun/ts/tests/jsf/common/servlets/HttpTCKServlet.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.servlets; - -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.Application; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -/** - * Any test that would normally extend GenericServlet will instead extend this - * class. This will provide a simple framework from invoking various tests - * defined as methods within the servlet that extends this class. - * - */ - -public abstract class HttpTCKServlet extends HttpServlet { - - private static final String TEXT_PLAIN = "text/plain"; - - /** - * TEST_HEADER is the constant for the testname - * header. - */ - private static final String TEST_HEADER = "testname"; - - /** - * The {@link Application} object for this context. - */ - private Application application; - - /** - * The {@link FacesContext} object for this request. - */ - private FacesContext facesContext; - - /** - * The environment for this web application. - */ - private ServletContext context; - - // ---------------------------------------------------------- Public Methods - - /** - * init initializes the servlet. - * - * @param config - * - ServletConfig - */ - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - context = config.getServletContext(); - } - - /** - * A basic implementation of the doGet method which will call - * invokeTest. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - * @exception IOException - * if an IO error occurs - */ - @Override - public void doGet(HttpServletRequest req, HttpServletResponse res) - throws ServletException, IOException { - invokeTest(req, res); - } - - /** - * A basic implementation of the doPost method which will call - * invokeTest. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - * @exception IOException - * if an IO error occurs - */ - @Override - public void doPost(HttpServletRequest req, HttpServletResponse res) - throws ServletException, IOException { - - invokeTest(req, res); - - } - - // ------------------------------------------------------- Protected Methods - - /** - * invokeTest uses reflection to invoke test methods in child - * classes of this particular class. - * - * @param req - * - HttpServletRequest - * @param res - * - HttpServletResponse - * @exception ServletException - * if an error occurs - */ - @SuppressWarnings("static-access") - protected void invokeTest(HttpServletRequest req, HttpServletResponse res) - throws ServletException { - initFaces(context, req, res); - res.setContentType(TEXT_PLAIN); - char[] temp = req.getParameter(TEST_HEADER).toCharArray(); - temp[0] = Character.toLowerCase(temp[0]); - String test = new String(temp); - - Method[] methods = this.getClass().getMethods(); - // (test, TEST_ARGS); - Method method = null; - for (int i = 0; i < methods.length; i++) { - method = methods[i]; - if (method.getName().equals(test)) { - break; - } - } - if (method == null) { - throw new ServletException("Test: " + test + " does not exist."); - } - try { - method.invoke(this, new Object[] { req, res }); - } catch (InvocationTargetException ite) { - throw new ServletException(ite.getTargetException()); - } catch (Exception e) { - throw new ServletException("Error executing test: " + test, e); - } finally { - if (facesContext.getCurrentInstance() != null) { - facesContext.release(); - } - } - } - - protected Application getApplication() { - - return application; - - } - - protected FacesContext getFacesContext() { - - return facesContext; - - } - - protected UIViewRoot createViewRoot(String viewId) { - - return application.getViewHandler().createView(facesContext, viewId); - - } - - protected UIViewRoot createViewRoot() { - - return new UIViewRoot(); - - } - - // --------------------------------------------------------- Private Methods - - private void initFaces(ServletContext context, ServletRequest request, - ServletResponse response) { - - // PRECONDITION: Hopefully the technology under test has this right - FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - if (facesContextFactory != null) { - LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - facesContext = facesContextFactory.getFacesContext(context, request, - response, - lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE)); - if (facesContext == null) { - throw new IllegalStateException( - "Unable to obtain FacesContext instance"); - } - - // Set up references to the application and facesContext objects - application = facesContext.getApplication(); - facesContext.setViewRoot(createViewRoot()); - } else { - throw new IllegalStateException( - "Unable to obtain FacesContextFactory instance."); - } - } - -}// HttpTCKServlet diff --git a/src/com/sun/ts/tests/jsf/common/servlets/build.xml b/src/com/sun/ts/tests/jsf/common/servlets/build.xml deleted file mode 100644 index 184d18146d..0000000000 --- a/src/com/sun/ts/tests/jsf/common/servlets/build.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/statemanager/TCKStateManager.java b/src/com/sun/ts/tests/jsf/common/statemanager/TCKStateManager.java deleted file mode 100644 index f676abd6e3..0000000000 --- a/src/com/sun/ts/tests/jsf/common/statemanager/TCKStateManager.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.statemanager; - -import jakarta.faces.application.StateManager; -import jakarta.faces.application.StateManagerWrapper; - -public class TCKStateManager extends StateManagerWrapper { - - public TCKStateManager(StateManager stateManager) { - super(stateManager); - } - - @Override - public StateManager getWrapped() { - return null; - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/util/ClientGenerator.java b/src/com/sun/ts/tests/jsf/common/util/ClientGenerator.java deleted file mode 100644 index 8ba589d255..0000000000 --- a/src/com/sun/ts/tests/jsf/common/util/ClientGenerator.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.util; - -import java.io.BufferedOutputStream; -import java.io.FileOutputStream; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.List; - -/** - *

- * Utility class to generate clients for API tests. - *

- */ -public class ClientGenerator { - private static final String NL = System.getProperty("line.separator", "\n"); - - Class testClass; - - String contextRoot; - - public ClientGenerator(Class testClass, String contextRoot) { - this.testClass = testClass; - this.contextRoot = contextRoot; - } - - public static void main(String[] args) { - if (args.length > 1) { - Class testClass = loadClass(args[0]); - if (testClass == null) { - System.out.println("Unable to load specified class: '" + args[0] + "'"); - System.exit(1); - - } - ClientGenerator generator = new ClientGenerator(testClass, args[1]); - generator.generateClient(); - } - } - - public void generateClient() { - String packageName = testClass.getPackage().getName(); - String[] testMethods = getTestEntries(); - StringBuffer sb = new StringBuffer(2048); - writeClassHeader(sb, packageName, contextRoot); - for (String testMethod : testMethods) { - writeTestEntry(sb, testMethod); - } - writeEndClass(sb); - try { - writeBytesToFile(sb.toString().getBytes("UTF-8")); - } catch (Throwable t) { - // ignore - } - - } - - private static Class loadClass(String className) { - Class clazz = null; - String clsName = className; - if (clsName.indexOf('/') != -1) { - clsName = clsName.replace('/', '.'); - } - try { - clazz = Thread.currentThread().getContextClassLoader().loadClass(clsName); - } catch (Throwable t) { - System.err.println(t.toString()); - // do nothing...return null; - } - return clazz; - } - - private void writeBytesToFile(byte[] bytes) { - BufferedOutputStream out = null; - try { - out = new BufferedOutputStream(new FileOutputStream("URLClient.java")); - out.write(bytes); - out.flush(); - } catch (Throwable t) { - System.err.println("Error writing client: " + t.toString()); - t.printStackTrace(); - System.exit(1); - } finally { - if (out != null) { - try { - out.close(); - } catch (Throwable t) { - // ignore - } - } - } - } - - private String[] getTestEntries() { - Method[] methods = testClass.getMethods(); - List methodList = new ArrayList(); - for (Method method : methods) { - String methodName = method.getName(); - if (methodName.endsWith("Test")) { - methodList.add(methodName); - } - } - return methodList.toArray(new String[methodList.size()]); - } - - private void writeClassHeader(StringBuffer buffer, String packageName, - String contextRoot) { - buffer.append("/*" + NL); - buffer.append( - " * Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved." - + NL); - buffer.append(" *" + NL); - buffer.append( - " * This program and the accompanying materials are made available under the" - + NL); - buffer.append( - " * terms of the Eclipse Public License v. 2.0, which is available at" - + NL); - buffer.append(" * http://www.eclipse.org/legal/epl-2.0." + NL); - buffer.append(" *" + NL); - buffer.append( - " * This Source Code may also be made available under the following Secondary" - + NL); - buffer.append( - " * Licenses when the conditions for such availability set forth in the" - + NL); - buffer.append( - " * Eclipse Public License v. 2.0 are satisfied: GNU General Public License," - + NL); - buffer.append( - " * version 2 with the GNU Classpath Exception, which is available at" - + NL); - buffer - .append(" * https://www.gnu.org/software/classpath/license.html." + NL); - buffer.append(" *" + NL); - buffer.append( - " * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0" - + NL); - buffer.append(" *" + NL); - buffer.append("/*" + NL); - buffer.append(NL); - buffer.append(" * ").append('%').append("W% %").append('G') - .append("%" + NL); - buffer.append(" *" + NL); - buffer.append(NL); - buffer.append("package ").append(packageName).append(";" + NL); - buffer.append(NL); - buffer.append("import java.io.PrintWriter;" + NL); - buffer.append("import com.sun.javatest.Status;" + NL); - buffer.append( - "import com.sun.ts.tests.jsf.common.client.AbstractUrlClient;" + NL); - buffer.append(NL); - buffer.append( - "public final class URLClient extends AbstractUrlClient {" + NL); - buffer.append(NL); - buffer.append(" private static final String CONTEXT_ROOT = \""); - buffer.append(contextRoot).append("\";" + NL); - buffer.append(" public static void main(String[] args) {" + NL); - buffer.append(" URLClient theTests = new URLClient();" + NL); - buffer.append(" Status s = theTests.run(args," + NL); - buffer.append( - " new PrintWriter(System.out, true)," - + NL); - buffer.append( - " new PrintWriter(System.err, true));" - + NL); - buffer.append(" s.exit();" + NL); - buffer.append(" }" + NL); - buffer.append( - " public Status run(String[] args, PrintWriter out, PrintWriter err) {" - + NL); - buffer.append(" setContextRoot(CONTEXT_ROOT);" + NL); - buffer.append(" setServletName(DEFAULT_SERVLET_NAME);" + NL); - buffer.append(" return super.run(args, out, err);" + NL); - buffer.append(" }" + NL); - buffer.append(" /*" + NL); - buffer.append( - " * @class.setup_props: webServerHost; webServerPort; ts_home;" - + NL); - buffer.append(" *" + NL); - buffer.append(" /* Test Declarations *" + NL); - } - - private void writeTestEntry(StringBuffer buffer, String testName) { - buffer.append(NL); - buffer.append(" /*" + NL); - buffer.append(" * @").append("testName: ").append(testName).append(NL); - buffer.append(" * @assertion_ids: PENDING: add assertion ID(s)" + NL); - buffer.append(" * @test_Strategy: PENDING: add test strategy" + NL); - buffer.append(" */" + NL); - buffer.append(" public void ").append(testName) - .append("() throws Fault {" + NL); - buffer.append(" TEST_PROPS.setProperty(APITEST, \"").append(testName) - .append("\");" + NL); - buffer.append(" invoke();" + NL); - buffer.append(" }" + NL); - } - - private void writeEndClass(StringBuffer buffer) { - buffer.append(NL); - buffer.append("} // end of URLClient" + NL); - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/util/JSFTestUtil.java b/src/com/sun/ts/tests/jsf/common/util/JSFTestUtil.java deleted file mode 100644 index 65d09b1899..0000000000 --- a/src/com/sun/ts/tests/jsf/common/util/JSFTestUtil.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.common.util; - -import java.io.PrintWriter; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Set; - -import jakarta.el.ExpressionFactory; -import jakarta.faces.FacesException; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.event.PhaseId; -import jakarta.servlet.ServletContext; -import jakarta.servlet.jsp.JspFactory; - -public final class JSFTestUtil { - - public static final boolean DEBUG = true; - - public static final String NL = System.getProperty("line.separator", "\n"); - - public static final String PASS = "Test PASSED"; - - public static final String FAIL = "Test FAILED"; - - public static final String NPE_MESS = FAIL + " Unexpected Exception Thrown!" - + NL + "Expected: NullPointerException" + NL + "Received: "; - - public static final String FE_MESS = FAIL + " Unexpected Exception Thrown!" - + NL + "Expected: FacesException" + NL + "Received: "; - - public static final String ISE_MESS = FAIL + " Unexpected Exception Thrown!" - + NL + "Expected: IllegalStateException" + NL + "Received: "; - - public static final String APE_MESS = FAIL + " Unexpected Exception Thrown!" - + NL + "Expected: AbortProcessingException" + NL + "Received: "; - - public static final String APP_NULL_MSG = FAIL + " :Unable to obtain " - + "Application instance."; - - public static final String RESHANDLER_NULL_MSG = FAIL + NL - + "Unable to obtain ResourceHandler instance."; - - private JSFTestUtil() { - throw new IllegalStateException(); - } - - /** - * Writes the provided message to System.out when debug is set. - * - * @param message - * - the message to write to System.out - */ - public static void debug(String message) { - if (DEBUG) { - System.out.println(message); - } - } - - /** - *

- * Compares the String values in an Enumeration against the provided String - * array of values in a case sensitive manner. - *

- * - *

- * This method will return false under the following - * circumstances: - *

    - *
  • The number of elements in the {@link Iterator} and the number of - * elements in the Array are not equal (only when the - * enforceSizes parameter is true
  • - *
  • If the input {@link Iterator} or Array are null
  • - *
  • If duplicates are found in the {@link Iterator} and - * allowDuplicates is false
  • - *
- * - *

- * If none of the above occur, then true will be returned. - *

- * - * @param i - * - Iterator to validate - * @param values - * - the values expected to be found in the Enumeration - * @param enforceSizes - * - ensures that the number of elements in the Enumeration matches - * the number of elements in the array of values - * @param allowDuplicates - * - If true, the method will true if duplicate elements are found in - * the Enumeration, if false, then false will be return if duplicate - * elements have been found. - * - * @return true if all the expected values are found, otherwise false. - */ - public static boolean checkIterator(Iterator i, String[] values, - boolean enforceSizes, boolean allowDuplicates) { - List foundValues = null; - - if (i == null || !i.hasNext() || values == null) { - return false; - } - - if (!allowDuplicates) { - foundValues = new ArrayList(); - } - - boolean valuesFound = true; - Arrays.sort(values); - int count = 0; - while (i.hasNext()) { - Object val; - try { - val = i.next(); - count++; - if (!allowDuplicates) { - if (foundValues.contains(val)) { - debug("[JSFTestUtil] Duplicate values found in " - + "Iterator when duplicates are not allowed." - + "Values found in the Iterator: " + getAsString(i)); - valuesFound = false; - break; - } - foundValues.add(val); - } - - } catch (NoSuchElementException nsee) { - debug("[JSFTestUtil] There were less elements in the " - + "Iterator than expected"); - valuesFound = false; - break; - } - debug("[JSFTestUtil] Looking for '" + val + "' in values: " - + getAsString(values)); - if ((Arrays.binarySearch(values, val) < 0) && (enforceSizes)) { - debug("[JSFTestUtil] Value '" + val + "' not found."); - valuesFound = false; - } - } - - if (enforceSizes) { - if (i.hasNext()) { - // more elements than should have been. - debug("[JSFTestUtil] There were more elements in the Iterator " - + "than expected."); - valuesFound = false; - } - if (count != values.length) { - debug("[JSFTestUtil] There number of elements in the Iterator " - + "did not match number of expected values." - + "Expected number of Values=" + values.length - + ", Actual number of Iterator elements=" + count); - - valuesFound = false; - } - } - return valuesFound; - } - - /** - *

- * Returns the elements of the provided {@link Iterator} as a String in the - * following format: [n1,n2,n...]. - *

- * - * @param i - * - an Iterator - * - * @return - a printable version of the contents of the Iterator - */ - public static String getAsString(Iterator i) { - return getAsString(getAsArray(i)); - } - - /** - *

- * Returns the elements contained in the String array in the following format: - * [n1,n2,n...]. - *

- * - * @param sArray - * - an array of Objects - * @return - a String based off the values in the array - */ - public static String getAsString(Object[] sArray) { - if (sArray == null) { - return null; - } - StringBuffer buf = new StringBuffer(); - buf.append("["); - for (int i = 0; i < sArray.length; i++) { - buf.append(sArray[i].toString()); - if ((i + 1) != sArray.length) { - buf.append(","); - } - } - buf.append("]"); - return buf.toString(); - } - - /** - *

- * Returns a String representation of the {@link Map} provided. - *

- * - * @param map - * input map - * @return String representation of the Map - */ - public static String getAsString(Map map) { - StringBuffer sb = new StringBuffer(32); - Set> entrySet = map.entrySet(); - sb.append("Map Entries\n----------------\n"); - for (Map.Entry entry : entrySet) { - sb.append(entry.getKey()).append(", ").append(entry.getValue()); - sb.append('\n'); - } - sb.append('\n'); - return sb.toString(); - } - - /** - *

- * Returns the elements within the provided {@link Iterator} as an Array. - *

- * - * @param i - * - an Iterator - * @return - the elements of the Iterator as an array of Objects - */ - public static Object[] getAsArray(Iterator i) { - List list = new ArrayList(); - while (i.hasNext()) { - list.add(i.next()); - } - return list.toArray(new Object[list.size()]); - } - - /** - *

- * Returns the elements of the passed {@link Iterator} as an array of Strings. - *

- * - * @param i - * an Iterator - * @return the contents of the Iterator as an array of Strings - */ - public static String[] getAsStringArray(Iterator i) { - List list = new ArrayList(); - while (i.hasNext()) { - list.add(i.next()); - } - return list.toArray(new String[list.size()]); - } - - /** - *

- * Returns the elements of the {@link Enumeration} as an array of S trings. - *

- * - * @param e - * an Enumeration - * @return the contexts of the Enumeration as an array of Strings - */ - public static String[] getAsStringArray(Enumeration e) { - List list = new ArrayList(); - while (e.hasMoreElements()) { - list.add(e.nextElement()); - } - return list.toArray(new String[list.size()]); - } - - /** - *

- * Attempts to load the specified className using the current - * Thread's context class loader. - *

- * - * @param className - * fully qualified class name - * @return the loaded Class or null if no Class could be found - */ - public static Class loadClass(String className) { - Class c = null; - try { - c = Thread.currentThread().getContextClassLoader().loadClass(className); - } catch (Throwable t) { - debug("[JSFTestUtil] Exception occurred trying to get class: " - + t.toString()); - t.printStackTrace(); - } - - return c; - } - - /** - *

- * Returns the ordinal value of a {@link FacesMessage.Severity} Object as a - * String value. - *

- *
    - *
  • FacesMessage.SEVERITY_INFO returns SEVERITY_INFO
  • - *
  • FacesMessage.SEVERITY_ERROR returns SEVERITY_ERROR
  • - *
  • FacesMessage.SEVERITY_FATAL returns SEVERITY_FATAL
  • - *
  • FacesMessage.SEVERITY_WARN returns SEVERITY_WARN
  • - *
- * - * @param severity - * the ordinal value of a FacesMessage.Severity Object - * @return The String equivalent of the passed value. - */ - public static String getSeverityAsString(int severity) { - if (severity == FacesMessage.SEVERITY_INFO.getOrdinal()) - return "SEVERITY_INFO"; - else if (severity == FacesMessage.SEVERITY_ERROR.getOrdinal()) - return "SEVERITY_ERROR"; - else if (severity == FacesMessage.SEVERITY_FATAL.getOrdinal()) - return "SEVERITY_FATAL"; - else if (severity == FacesMessage.SEVERITY_WARN.getOrdinal()) - return "SEVERITY_WARN"; - else - return "UNKNOWN_SEVERITY"; - } - - /** - *

- * Return a String representation of the PhaseId - * ordinal. - *

- */ - public static String getPhaseIdAsString(PhaseId phaseId) { - int ordinal = phaseId.getOrdinal(); - if (ordinal == PhaseId.ANY_PHASE.getOrdinal()) - return "ANY_PHASE"; - else if (ordinal == PhaseId.APPLY_REQUEST_VALUES.getOrdinal()) - return "APPLY_REQUEST_VALUES"; - else if (ordinal == PhaseId.INVOKE_APPLICATION.getOrdinal()) - return "INVOKE_APPLICATION"; - else if (ordinal == PhaseId.PROCESS_VALIDATIONS.getOrdinal()) - return "PROCESS_VALIDATIONS"; - else if (ordinal == PhaseId.RENDER_RESPONSE.getOrdinal()) - return "RENDER_RESPONSE"; - else if (ordinal == PhaseId.RESTORE_VIEW.getOrdinal()) - return "RESTORE_VIEW"; - else if (ordinal == PhaseId.UPDATE_MODEL_VALUES.getOrdinal()) - return "UPDATE_MODEL_VALUES"; - else - return "UNKNOWN_PHASE"; - } - - /** - *

- * Convenience method to obtain an EL ExpressionFactory. - *

- */ - public static ExpressionFactory getExpressionFactory(ServletContext ctx) { - - return JspFactory.getDefaultFactory().getJspApplicationContext(ctx) - .getExpressionFactory(); - - } // END getExpressionFactory - - /** - * Checks to see if a NullPointerException is thrown from a given - * method(methName) from a given Class(className). use this method for any - * none Abstract classes you wish to test. - * - * @param className - * - The Class that has the method under test. - * @param methName - * - The method that you want to test. - * @param argTypes - * - The type value of the arguments for the method under test. - * @param params - * - The parameters you are feeding into the method under test. - * @param pw - * - The PrintWrite that you want the results written to. - */ - public static void checkForNPE(String className, String methName, - Class[] argTypes, Object[] params, PrintWriter pw) { - - try { - JSFTestUtil.checkForNPE(Class.forName(className), methName, argTypes, - params, pw); - - } catch (ClassNotFoundException cnfe) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - cnfe.printStackTrace(); - } - - } // End checkForNPE - - /** - * Checks to see if a NullPointerException is thrown from a given - * method(methName) from a given Class. use this method for any Abstract - * classes you wish to test. You can pass in the instantiated class that you - * want to test. - * - * @param Class - * - The class you want to test. - * @param methName - * - The method that you want to test. - * @param argTypes - * - The type value of the arguments for the method under test. - * @param params - * - The parameters you are feeding into the method under test. - * @param pw - * - The PrintWrite that you want the results written to. - */ - public static void checkForNPE(Class clazz, String methName, - Class[] argTypes, Object[] params, PrintWriter pw) { - - try { - JSFTestUtil.checkForNPE(clazz.newInstance(), methName, argTypes, params, - pw); - - } catch (Exception e) { - pw.println(JSFTestUtil.FAIL + JSFTestUtil.NL); - e.printStackTrace(); - } - - } // End checkForNPE - - /** - * Checks to see if a NullPointerException is thrown from a given - * method(methName) from a given Class. use this method for any Abstract - * classes you wish to test. You can pass in the instantiated class that you - * want to test. - * - * @param object - * - The Object you want to test. - * @param methName - * - The method that you want to test. - * @param argTypes - * - The type value of the arguments for the method under test. - * @param params - * - The parameters you are feeding into the method under test. - * @param pw - * - The PrintWrite that you want the results written to. - */ - public static void checkForNPE(Object object, String methName, - Class[] argTypes, Object[] params, PrintWriter pw) { - String className = object.getClass().getName(); - Method[] methods = null; - - try { - methods = object.getClass().getMethods(); - Method execMeth = object.getClass().getMethod(methName, argTypes); - execMeth.invoke(object, params); - - pw.println(JSFTestUtil.FAIL + " No Exception thrown!" + JSFTestUtil.NL - + "Expected a NullPointerException " + "to be thrown " - + JSFTestUtil.NL + "when testing: " + className + "." + methName); - - } catch (InvocationTargetException ite) { - if (ite.getCause() instanceof NullPointerException) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println(JSFTestUtil.NPE_MESS - + ite.getCause().getClass().getSimpleName() + JSFTestUtil.NL - + "When testing: " + className + "." + methName); - ite.getCause().printStackTrace(); - } - - } catch (NoSuchMethodException nsme) { - pw.println(JSFTestUtil.NPE_MESS + nsme.getClass().getSimpleName() - + JSFTestUtil.NL); - - JSFTestUtil.printMethods(className, methods, params, pw); - - } catch (Throwable t) { - pw.println(JSFTestUtil.NPE_MESS + t.getClass().getSimpleName() - + JSFTestUtil.NL + "When testing: " + className + "." + methName); - t.printStackTrace(); - } - } // End checkForNPE - - /** - * Checks to see if a FacesException is thrown from a given method. - * - * @param object - * - The Object you want to test. - * @param methName - * - The method that you want to test. - * @param argTypes - * - The type value of the arguments for the method under test. - * @param params - * - The parameters you are feeding into the method under test. - * @param pw - * - The PrintWrite that you want the results written to. - */ - public static void checkForFE(Object object, String methName, - Class[] argTypes, Object[] params, PrintWriter pw) { - String className = object.getClass().getName(); - Method[] methods = null; - - try { - methods = object.getClass().getMethods(); - Method execMeth = object.getClass().getMethod(methName, argTypes); - execMeth.invoke(object, params); - - pw.println(JSFTestUtil.FAIL + " No Exception thrown!" + JSFTestUtil.NL - + "Expected a FacesException " + "to be thrown " + JSFTestUtil.NL - + "when testing: " + className + "." + methName); - - } catch (InvocationTargetException ite) { - if (ite.getCause() instanceof FacesException) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println(JSFTestUtil.FE_MESS - + ite.getCause().getClass().getSimpleName() + JSFTestUtil.NL - + "When testing: " + className + "." + methName); - ite.getCause().printStackTrace(); - } - - } catch (NoSuchMethodException nsme) { - pw.println(JSFTestUtil.FE_MESS + nsme.getClass().getSimpleName() - + JSFTestUtil.NL); - - JSFTestUtil.printMethods(className, methods, params, pw); - - } catch (Throwable t) { - pw.println(JSFTestUtil.FE_MESS + t.getClass().getSimpleName() - + JSFTestUtil.NL + "When testing: " + className + "." + methName); - t.printStackTrace(); - } - } // End checkForFE - - /** - * Checks to see if a IllegalStateException is thrown from a given method. - * - * @param object - * - The Object you want to test. - * @param methName - * - The method that you want to test. - * @param argTypes - * - The type value of the arguments for the method under test. - * @param params - * - The parameters you are feeding into the method under test. - * @param pw - * - The PrintWrite that you want the results written to. - */ - public static void checkForISE(Object object, String methName, - Class[] argTypes, Object[] params, PrintWriter pw) { - String className = object.getClass().getName(); - Method[] methods = null; - - try { - methods = object.getClass().getMethods(); - Method execMeth = object.getClass().getMethod(methName, argTypes); - execMeth.invoke(object, params); - - pw.println(JSFTestUtil.FAIL + " No Exception thrown!" + JSFTestUtil.NL - + "Expected a IllegalStateException " + "to be thrown " - + JSFTestUtil.NL + "when testing: " + className + "." + methName); - - } catch (InvocationTargetException ite) { - if (ite.getCause() instanceof IllegalStateException) { - pw.println(JSFTestUtil.PASS); - - } else { - pw.println(JSFTestUtil.ISE_MESS - + ite.getCause().getClass().getSimpleName() + JSFTestUtil.NL - + "When testing: " + className + "." + methName); - ite.getCause().printStackTrace(); - } - - } catch (NoSuchMethodException nsme) { - pw.println(JSFTestUtil.ISE_MESS + nsme.getClass().getSimpleName() - + JSFTestUtil.NL); - - JSFTestUtil.printMethods(className, methods, params, pw); - - } catch (Throwable t) { - pw.println(JSFTestUtil.ISE_MESS + t.getClass().getSimpleName() - + JSFTestUtil.NL + "When testing: " + className + "." + methName); - t.printStackTrace(); - } - } // End checkForFE - - // ------------------------------------------------------ private methods - - private static void printMethods(String className, Method[] methods, - Object[] params, PrintWriter pw) { - pw.println("Existing methods in the " + className + " Object Are: " - + JSFTestUtil.NL); - - Class[] parms = null; - for (int i = 0; i < methods.length; i++) { - parms = methods[i].getParameterTypes(); - - pw.print("Method: " + methods[i].getName() + "("); - - int plength = parms.length; - for (int ii = 0; ii < plength; ii++) { - pw.print(parms[ii].getSimpleName()); - - if ((ii + 1) != plength) { - pw.print(", "); - } - } - - parms = null; - pw.print(")"); - pw.print(JSFTestUtil.NL); - } - } - -} diff --git a/src/com/sun/ts/tests/jsf/common/util/build.xml b/src/com/sun/ts/tests/jsf/common/util/build.xml deleted file mode 100644 index 2a6951e755..0000000000 --- a/src/com/sun/ts/tests/jsf/common/util/build.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/common/viewhandler/TCKViewHandler.java b/src/com/sun/ts/tests/jsf/common/viewhandler/TCKViewHandler.java deleted file mode 100644 index ed165e89d9..0000000000 --- a/src/com/sun/ts/tests/jsf/common/viewhandler/TCKViewHandler.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.common.viewhandler; - -import java.io.IOException; -import java.util.Locale; - -import jakarta.faces.FacesException; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; - -public class TCKViewHandler extends ViewHandler { - - @Override - public Locale calculateLocale(FacesContext context) { - return null; - } - - @Override - public String calculateRenderKitId(FacesContext context) { - return null; - } - - @Override - public UIViewRoot createView(FacesContext context, String viewId) { - return null; - } - - @Override - public String getActionURL(FacesContext context, String viewId) { - return null; - } - - @Override - public String getResourceURL(FacesContext context, String path) { - return null; - } - - @Override - public void renderView(FacesContext context, UIViewRoot viewToRender) - throws IOException, FacesException { - return; - } - - @Override - public UIViewRoot restoreView(FacesContext context, String viewId) { - return null; - } - - @Override - public void writeState(FacesContext context) throws IOException { - return; - } - - public String getWebsocketURL(FacesContext context, String channel) { - return null; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/build.xml b/src/com/sun/ts/tests/jsf/spec/ajax/build.xml deleted file mode 100644 index 410821500f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/common/AjaxTagValuesBean.java b/src/com/sun/ts/tests/jsf/spec/ajax/common/AjaxTagValuesBean.java deleted file mode 100644 index e6beb646c7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/common/AjaxTagValuesBean.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.ajax.common; - -import java.util.Arrays; -import java.util.Collection; -import java.util.LinkedHashSet; - -import jakarta.faces.event.ActionEvent; -import java.io.Serializable; - - -@jakarta.inject.Named("ajaxtag") @jakarta.enterprise.context.SessionScoped -public class AjaxTagValuesBean implements Serializable { - - private static final long serialVersionUID = -2564031884433676327L; - - private Integer count = 0; - - private Boolean checked = false; - - private String text = ""; - - private String[] outArray = { "out1", ":form2:out2", ":out3" }; - - private Collection outSet = new LinkedHashSet( - Arrays.asList(outArray)); - - private String render = "out1"; - - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } - - public Boolean getChecked() { - return checked; - } - - public void setChecked(Boolean checked) { - this.checked = checked; - } - - public Integer getCount() { - return count++; - } - - public void reset(ActionEvent ae) { - count = 0; - checked = false; - text = ""; - } - - public Collection getRenderList() { - return outSet; - } - - public String getRenderOne() { - return render; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/common/ajax.common.xml b/src/com/sun/ts/tests/jsf/spec/ajax/common/ajax.common.xml deleted file mode 100644 index 2fed384c37..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/common/ajax.common.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/ajax/common/faces-config.xml deleted file mode 100644 index 61b6273772..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/common/faces-config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/URLClient.java b/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/URLClient.java deleted file mode 100644 index a1962b1c92..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/URLClient.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.ajax.jsresource; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlScript; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_ajax_jsresource_web"; - - private static final String RES_NAME = "jsf.js"; - - private static final String LIB_NAME = "jakarta.faces"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: ajaxPDLResourceTest - * - * @assertion_ids: JSF:SPEC:225; JSF:SPEC:226; JSF:SPEC:227 - * - * @test_Strategy: Validate that the jsf.js Resource is available via the - * "Page Declaration Language Approach". - * - * @since 2.0 - */ - public void ajaxPDLResourceTest() throws Fault { - - this.validateScript(getPage(CONTEXT_ROOT + "/faces/pdlApproach.xhtml")); - - }// End ajaxPDLResourceTest - - // ------------------------------------------------------------------------------------------------------------ - // private methods - - private void validateScript(HtmlPage page) throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - String script = "script"; - - // Test by Resource name. - HtmlScript resn = (HtmlScript) getElementOfTypeIncludingSrc(page, script, - RES_NAME); - - if (resn == null) { - formatter.format("Unexpected Test Result For %s Tag! %n" - + "Expected Src Attribute to contain: %s %n", script, RES_NAME); - } - - // Test by Resource Library name. - HtmlScript resl = (HtmlScript) getElementOfTypeIncludingSrc(page, script, - LIB_NAME); - - if (resl == null) { - formatter.format("Unexpected Test Result For %s Tag! %n" - + "Expected Src Attribute to contain: %s %n", script, LIB_NAME); - } - - handleTestStatus(messages); - formatter.close(); - } -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/build.xml b/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/build.xml deleted file mode 100644 index 9785eb3b45..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/jsf_ajax_jsresource_web.xml b/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/jsf_ajax_jsresource_web.xml deleted file mode 100644 index f5a24ecb16..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/jsresource/jsf_ajax_jsresource_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_ajax_jsresource - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/URLClient.java b/src/com/sun/ts/tests/jsf/spec/ajax/keyword/URLClient.java deleted file mode 100644 index 9580f41b7b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/URLClient.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.ajax.keyword; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_ajax_keyword_web"; - - private static final String EXPECTED = "testtext"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: ajaxAllKeywordTest - * @assertion_ids: PENDING - * @test_Strategy: Unsure the keyword 'all' works correctly with the f:ajax - * tag as value to 'execute' and 'render' attributes. - * - * @since 2.0 - */ - public void ajaxAllKeywordTest() throws Fault { - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxAllKeyword1.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxAllKeyword2.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxAllKeyword3.xhtml")); - - String buttonId = "allKeyword"; - String spanId = "out"; - - this.validateKeyword(pages, buttonId, spanId, EXPECTED); - - }// End ajaxAllKeywordTest - - /** - * @testName: ajaxThisKeywordTest - * @assertion_ids: PENDING - * @test_Strategy: Unsure the keyword 'this' works correctly with the f:ajax - * tag as value to 'execute' and 'render' attributes. - * - * @since 2.0 - */ - public void ajaxThisKeywordTest() throws Fault { - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxThisKeyword1.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxThisKeyword2.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxThisKeyword3.xhtml")); - - String buttonId = "thisKeyword"; - String spanId = "out"; - - this.validateKeyword(pages, buttonId, spanId, EXPECTED); - } // End ajaxThisKeywordTest - - /** - * @testName: ajaxFormKeywordTest - * @assertion_ids: PENDING - * @test_Strategy: Unsure the keyword 'form' works correctly with the f:ajax - * tag as value to 'execute' and 'render' attributes. - * - * @since 2.0 - */ - public void ajaxFormKeywordTest() throws Fault { - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxFormKeyword1.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxFormKeyword2.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxFormKeyword3.xhtml")); - - String buttonId = "formKeyword"; - String spanId = "out"; - - this.validateKeyword(pages, buttonId, spanId, EXPECTED); - } // End ajaxThisKeywordTest - - /** - * @testName: ajaxNoneKeywordTest - * @assertion_ids: PENDING - * @test_Strategy: Unsure the keyword 'none' works correctly with the f:ajax - * tag as value to 'execute' and 'render' attributes. - * - * @since 2.0 - */ - public void ajaxNoneKeywordTest() throws Fault { - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxNoneKeyword1.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxNoneKeyword2.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/ajaxNoneKeyword3.xhtml")); - - String buttonId = "noneKeyword"; - String spanId = "out"; - - this.validateKeyword(pages, buttonId, spanId, EXPECTED); - } // End ajaxThisKeywordTest - - // ---------------------------------------------------------- private - // methods - private void validateKeyword(List pages, String buttonId, - String spanId, String expectedValue) throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - String span = "span"; - for (HtmlPage page : pages) { - HtmlSpan output = (HtmlSpan) getElementOfTypeIncludingId(page, span, - spanId); - - if (!validateExistence(spanId, span, output, formatter)) { - handleTestStatus(messages); - return; - } - - // First we'll check the first page was output correctly - validateElementValue(output, expectedValue, formatter); - - // Submit the ajax request - HtmlSubmitInput button = (HtmlSubmitInput) getElementOfTypeIncludingId( - page, "input", buttonId); - try { - button.click(); - } catch (IOException ex) { - formatter.format("Unexpected Execption thrown while clicking '%s'.", - button.getId()); - ex.printStackTrace(); - } - - // Check that the ajax request succeeds - if the page is rewritten, - // this will be the same - validateElementValue(output, expectedValue, formatter); - - handleTestStatus(messages); - } - } -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/build.xml b/src/com/sun/ts/tests/jsf/spec/ajax/keyword/build.xml deleted file mode 100644 index e4426a948f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/ajax/keyword/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/jsf_ajax_keyword_web.xml b/src/com/sun/ts/tests/jsf/spec/ajax/keyword/jsf_ajax_keyword_web.xml deleted file mode 100644 index ca179e9be9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/keyword/jsf_ajax_keyword_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_ajax_keyword - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/URLClient.java b/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/URLClient.java deleted file mode 100644 index 45c4729ea3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/URLClient.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.ajax.tagwrapper; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_ajax_tagwrapper_web"; - - private static final String SPAN = "span"; - - private static final String NL = System.getProperty("line.seperator", "\n"); - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: ajaxTagWrappingTest - * @assertion_ids: PENDING - * @test_Strategy: Unsure that the ajax tag supports being "wrapped" around - * multiple components (enabling Ajax for many components). - * - * @since 2.0 - */ - public void ajaxTagWrappingTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/ajaxTagWrap.xhtml"); - - // First we'll check the first page was output correctly - this.validateSpanTag(page, "out1", "0"); - this.validateSpanTag(page, "checkedvalue", "false"); - this.validateSpanTag(page, "outtext", ""); - - // Submit the ajax request - HtmlInput button1 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "button1"); - - if (!validateExistence("button1", "input", button1, formatter)) { - handleTestStatus(messages); - return; - } - - try { - button1.click(); - } catch (IOException ex) { - formatter.format("Unexpected Execption thrown while clicking '%s'.", - button1.getId()); - ex.printStackTrace(); - } - - // Check that the ajax request succeeds - eventually. - this.validateSpanTag(page, "out1", "1"); - - // // Check on the text field - HtmlInput intext = ((HtmlInput) getElementOfTypeIncludingId(page, "input", - "intext")); - - if (!validateExistence("input", "input", intext, formatter)) { - handleTestStatus(messages); - return; - } - try { - intext.focus(); - intext.type("test"); - intext.blur(); - } catch (IOException ex) { - formatter.format("Unexpected Test failing when setting one or " - + "more of the following attributes: focus, type, or blur"); - ex.printStackTrace(); - } - - this.validateSpanTag(page, "outtext", "test"); - - // Check the checkbox - - HtmlInput checkbox = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "checkbox"); - - if (!validateExistence("checkbox", "input", checkbox, formatter)) { - handleTestStatus(messages); - return; - } - - checkbox.setChecked(true); - - if (!checkbox.isChecked()) { - formatter.format( - "Unexpected value for '%s'!" + NL + "Expected: '%s'" + NL - + "Received: '%s'" + NL, - checkbox.getId(), "true", checkbox.isChecked()); - } - - handleTestStatus(messages); - }// End ajaxAllKeywordTest - - // ---------------------------------------------------------- private - // methods - /** - * Test for a the give @String "expectedValue" to match the value of the - * named @HtmlSpan "element "spanID". - * - * @param page - * - @HtmlPage that contains @HtmlSpan element. - * @param expectedValue - * - The expected result. - * @param formatter - * - used to gather test result output. - */ - private void validateSpanTag(HtmlPage page, String spanId, - String expectedValue) throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlSpan output = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - spanId); - - if (!validateExistence(spanId, SPAN, output, formatter)) { - handleTestStatus(messages); - return; - } - validateElementValue(output, expectedValue, formatter); - - }// End validateSpanTag -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/build.xml b/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/build.xml deleted file mode 100644 index 2b25e324fd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/jsf_ajax_tagwrapper_web.xml b/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/jsf_ajax_tagwrapper_web.xml deleted file mode 100644 index 978651529f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/ajax/tagwrapper/jsf_ajax_tagwrapper_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_ajax_tagwrapper - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/URLClient.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/URLClient.java deleted file mode 100644 index 4c54b39125..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/URLClient.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.absolute_ordering; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_appconfigresources_absolute_ordering_web";; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - // ------------------------------------------------------------ Test Methods - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: testDocumentAbsoluteOrdering - * @assertion_ids: PENDING - * @test_Strategy: Test to make sure that the ordering of artifacts is - * correct, when using the tag inside the - * applicationFacesConfig, in this case all other ordering - * preferences must be ignored. - * - * @since 2.0 - */ - public void testDocumentAbsoluteOrdering() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/test.xhtml"); - - // -------------------------------------------------------------- case 1 - String expected = "Order Correct: true"; - HtmlSpan result = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - "status"); - - if (!validateExistence("result", SPAN, result, formatter)) { - handleTestStatus(messages); - return; - } - - super.validateElementValue(result, expected, formatter); - - handleTestStatus(messages); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/a.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/a.faces-config.xml deleted file mode 100644 index bc79b242b8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/a.faces-config.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - A - - - - B - - - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerA - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/build.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/build.xml deleted file mode 100644 index 601239f2b9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/build.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/c.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/c.faces-config.xml deleted file mode 100644 index a0135b4836..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/c.faces-config.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - C - - - - - - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerC - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-config.xml deleted file mode 100644 index 5a9f1de6dd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-config.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - D - - - - - - - - - - B - - A - - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerD - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-configB.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-configB.xml deleted file mode 100644 index eef78bb7b3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/faces-configB.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - B - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerB - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/jsf_appconfigresources_absolute_ordering_web.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/jsf_appconfigresources_absolute_ordering_web.xml deleted file mode 100644 index f79fcc4d36..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/absolute_ordering/jsf_appconfigresources_absolute_ordering_web.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - jsf_appconfigresources_absolute_ordering - - - com.sun.faces.validateXml - true - - - - jakarta.faces.CONFIG_FILES - /META-INF/faces-configB.xml - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/build.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/build.xml deleted file mode 100644 index 410821500f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/appconfig.common.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/appconfig.common.xml deleted file mode 100644 index 7924c9521c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/appconfig.common.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerNoBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerNoBean.java deleted file mode 100644 index fdd109a8f8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerNoBean.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.io.Serializable; - -@jakarta.inject.Named("Question") @jakarta.enterprise.context.SessionScoped -public class AnswerNoBean implements Serializable { - - private static final long serialVersionUID = -2564031884483456327L; - - private String answer; - - public AnswerNoBean() { - this.answer = "NO"; - } - - /** - * @return the yes - */ - public String getAnswer() { - return answer; - } - - /** - * @param yes - * the yes to set - */ - public void setAnswer(String ans) { - this.answer = ans; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerYesBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerYesBean.java deleted file mode 100644 index 8e23af9348..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/AnswerYesBean.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.io.Serializable; - -@jakarta.inject.Named("Answer") @jakarta.enterprise.context.SessionScoped -public class AnswerYesBean implements Serializable { - - private static final long serialVersionUID = -2564071088038088087L; - - private String answer; - - public AnswerYesBean() { - this.answer = "YES"; - } - - /** - * @return the yes - */ - public String getAnswer() { - return answer; - } - - /** - * @param yes - * the yes to set - */ - public void setAnswer(String ans) { - this.answer = ans; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorBlueBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorBlueBean.java deleted file mode 100644 index fb892d26be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorBlueBean.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.io.Serializable; - -@jakarta.inject.Named("Ball") @jakarta.enterprise.context.SessionScoped -public class ColorBlueBean implements Serializable { - - private static final long serialVersionUID = -2564071088038087108L; - - private String color; - - public ColorBlueBean() { - this.initialSetup(); - } - - /** - * @return the color - */ - public String getColor() { - return color; - } - - /** - * @param color - * the color to set - */ - public void setColor(String color) { - this.color = color; - } - - private void initialSetup() { - color = "blue"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorRedBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorRedBean.java deleted file mode 100644 index 96ad8bd598..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/ColorRedBean.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.io.Serializable; - -@jakarta.inject.Named("Color") @jakarta.enterprise.context.SessionScoped -public class ColorRedBean implements Serializable { - - private static final long serialVersionUID = -2564031884483638087L; - - private String color; - - public ColorRedBean() { - this.initialSetup(); - } - - /** - * @return the color - */ - public String getColor() { - return color; - } - - /** - * @param color - * the color to set - */ - public void setColor(String color) { - this.color = color; - } - - private void initialSetup() { - color = "red"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/OrderingBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/OrderingBean.java deleted file mode 100644 index a308d7a339..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/OrderingBean.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.event.PhaseListener; -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; - -@jakarta.inject.Named("orderingBean") @jakarta.enterprise.context.SessionScoped -public class OrderingBean implements Serializable { - - private static final long serialVersionUID = -2562021884483676327L; - - private String[] suffixes; - - private int total; - - // Absolute Ordering - public boolean isAbsoluteOrderCorrect() { - suffixes = new String[] { "B", "C", "A", "D" }; - total = 4; - - return isOrderCorrect(); - } - - // Relative Ordering test 1 - public boolean isRelativeOneOrderCorrect() { - suffixes = new String[] { "B", "C", "A" }; - total = 3; - - return isOrderCorrect(); - } - - // ---------------------------------------------------------- private methods - private boolean isOrderCorrect() { - - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - Lifecycle l = factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); - PhaseListener[] listeners = l.getPhaseListeners(); - List list = new ArrayList(); - for (PhaseListener listener : listeners) { - if (listener.getClass().getName() - .contains("com.sun.ts.tests.jsf.spec.appconfigresources." - + "common.listeners.PhaseListener")) { - list.add(listener); - } - } - listeners = list.toArray(new PhaseListener[list.size()]); - if (listeners.length != total) { - System.out.println("INCORRECT LISTENER COUNT: " + listeners.length); - - for (int i = 0; listeners.length != i; i++) { - System.out - .println("LISTENER FOUND: " + listeners[i].getClass().getName()); - } - return false; - } - - for (int i = 0; i < listeners.length; i++) { - if (!listeners[i].getClass().getName().endsWith(suffixes[i])) { - System.out.println( - "INCORRECT DOCUMENT ORDERING: " + Arrays.toString(listeners)); - - return false; - } - } - - return true; - - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/StatBean.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/StatBean.java deleted file mode 100644 index de872442ec..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/beans/StatBean.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.beans; - -import java.io.Serializable; - -@jakarta.inject.Named("Status") @jakarta.enterprise.context.SessionScoped -public class StatBean implements Serializable { - - private static final long serialVersionUID = -2538081884483638087L; - - private String testString; - - /** Creates a new instance of StatBean */ - public StatBean() { - this.initialSetup(); - } - - /** - * @return the testString - */ - public String getTestString() { - return testString; - } - - /** - * @param testString - * the testString to set - */ - public void setTestString(String st) { - this.testString = st; - } - - private void initialSetup() { - this.testString = "Ready!"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerA.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerA.java deleted file mode 100644 index d1ee63690c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerA.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners; - -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; - -public class PhaseListenerA implements PhaseListener { - - @Override - public void afterPhase(PhaseEvent event) { - // no-op - } - - @Override - public void beforePhase(PhaseEvent event) { - // no-op - } - - @Override - public PhaseId getPhaseId() { - return PhaseId.ANY_PHASE; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerB.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerB.java deleted file mode 100644 index d53b584086..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerB.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners; - -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; - -public class PhaseListenerB implements PhaseListener { - - @Override - public void afterPhase(PhaseEvent event) { - // no-op - } - - @Override - public void beforePhase(PhaseEvent event) { - // no-op - } - - @Override - public PhaseId getPhaseId() { - return PhaseId.ANY_PHASE; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerC.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerC.java deleted file mode 100644 index 3331c66ff4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerC.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners; - -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; - -public class PhaseListenerC implements PhaseListener { - - @Override - public void afterPhase(PhaseEvent event) { - // no-op - } - - @Override - public void beforePhase(PhaseEvent event) { - // no-op - } - - @Override - public PhaseId getPhaseId() { - return PhaseId.ANY_PHASE; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerD.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerD.java deleted file mode 100644 index 9a7b8221d0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/common/listeners/PhaseListenerD.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners; - -import jakarta.faces.event.PhaseEvent; -import jakarta.faces.event.PhaseId; -import jakarta.faces.event.PhaseListener; - -public class PhaseListenerD implements PhaseListener { - - @Override - public void afterPhase(PhaseEvent event) { - // no-op - } - - @Override - public void beforePhase(PhaseEvent event) { - // no-op - } - - @Override - public PhaseId getPhaseId() { - return PhaseId.ANY_PHASE; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/URLClient.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/URLClient.java deleted file mode 100644 index e69386af7f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/URLClient.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.relative_ordering; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_appconfigresources_relative_ordering_web";; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - // ------------------------------------------------------------ Test Methods - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: testDocumentRelativeOrderingTest1 - * @assertion_ids: PENDING - * @test_Strategy: Test to make sure that the ordering of artifacts is - * correct, when using the Relative-ordering That the expected - * pattern is found. - * - * @since 2.0 - */ - public void testDocumentRelativeOrderingTest1() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/testOne.xhtml"); - - // -------------------------------------------------------------- case 1 - String expected = "Order Correct: true"; - HtmlSpan result = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - "status"); - - if (!validateExistence("result", SPAN, result, formatter)) { - handleTestStatus(messages); - return; - } - - super.validateElementValue(result, expected, formatter); - - handleTestStatus(messages); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/a.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/a.faces-config.xml deleted file mode 100644 index bc79b242b8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/a.faces-config.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - A - - - - B - - - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerA - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/build.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/build.xml deleted file mode 100644 index 9ed94af79a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/build.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/c.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/c.faces-config.xml deleted file mode 100644 index d0415716d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/c.faces-config.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - C - - - A - - - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerC - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-config.xml deleted file mode 100644 index bfbfd31bd6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-configB.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-configB.xml deleted file mode 100644 index 803b7d9a4e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/faces-configB.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - B - - - com.sun.ts.tests.jsf.spec.appconfigresources.common.listeners.PhaseListenerB - - - - - C - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/jsf_appconfigresources_relative_ordering_web.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/jsf_appconfigresources_relative_ordering_web.xml deleted file mode 100644 index 7ca96a01d8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/relative_ordering/jsf_appconfigresources_relative_ordering_web.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - jsf_appconfigresources_relative_ordering - - - com.sun.faces.validateXml - true - - - - jakarta.faces.CONFIG_FILES - /META-INF/faces-configB.xml - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/URLClient.java b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/URLClient.java deleted file mode 100644 index 54fadfc63f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/URLClient.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.appconfigresources.startupbehavior; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_appconfigresources_startupbehavior_web"; - - private static final String SPAN = "span"; - - private static final String NL = System.getProperty("line.separator", "\n"); - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: applicationConfigurationfilesTest1 - * @assertion_ids: PENDING - * @test_Strategy: Test to make sure that all configuration files that match - * either META-INF/faces-config.xml or the end with - * .faces-config.xml directly in the META-INF directory. Each - * resource that matches that expression must be considered an - * application configuration resource. - * - * @since 2.0 - */ - public void applicationConfigurationfilesTest1() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/appconfig_01.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan answer = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - "answer"); - - if (!validateExistence("answer", SPAN, answer, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlSpan status = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - "status"); - - if (!validateExistence("status", SPAN, status, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlSpan color = (HtmlSpan) getElementOfTypeIncludingId(page, SPAN, - "color"); - - if (!validateExistence("color", SPAN, color, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(answer, "YES", formatter); - validateElementValue(status, "Ready!", formatter); - validateElementValue(color, "red", formatter); - - if (messages.length() != 0) { - formatter.format("Failure due to one of the following ManagedBeans were " - + "not found! Using the applicationConfigurationResources." + NL - + "AnswerYesBean.class - referenced in " + "META-INF/faces-config.xml" - + NL + "StatBean.class - referenced in " - + "META-INF/statBean.faces-config.xml" + NL - + "ColorRedBean.class - referenced in " - + "META-INF/colorBean.faces-config.xml"); - } - - handleTestStatus(messages); - } // END applicationConfigurationfilesTest1 - - /** - * @testName: applicationConfigurationfilesTest2 - * @assertion_ids: PENDING - * @test_Strategy: Test to make sure that jakarta.faces.CONFIG_FILES property - * exists and treat it as a comma-delimited list of context - * relative resource paths (starting with a /), and add each - * of the specfied resources to the list. - * @since 2.0 - */ - public void applicationConfigurationfilesTest2() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage pageTwo = getPage(CONTEXT_ROOT + "/faces/appconfig_02.xhtml"); - - // -------------------------------------------------------------- case 2 - HtmlSpan question = (HtmlSpan) getElementOfTypeIncludingId(pageTwo, SPAN, - "question"); - - if (!validateExistence("question", SPAN, question, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlSpan ball = (HtmlSpan) getElementOfTypeIncludingId(pageTwo, SPAN, - "ball"); - - if (!validateExistence("ball", SPAN, ball, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(question, "NO", formatter); - validateElementValue(ball, "blue", formatter); - - if (messages.length() != 0) { - formatter.format("Failure due to one of the following ManagedBeans were " - + "not found! Using the applicationConfigurationResources." + NL - + "AnswerNoBean.class - referenced in webroot/" - + "META-INF/testCase2-config.xml" + NL - + "ColorBlueBean.class - referenced in webroot/" - + "META-INF/testCase2-config_1.xml"); - } - - handleTestStatus(messages); - } // END applicationConfigurationfilesTest2 -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/build.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/build.xml deleted file mode 100644 index ed55a5e84e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/build.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/colorBean.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/colorBean.faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/colorBean.faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/jsf_appconfigresources_startupbehavior_web.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/jsf_appconfigresources_startupbehavior_web.xml deleted file mode 100644 index f9483304ac..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/jsf_appconfigresources_startupbehavior_web.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - jsf_appconfigresources_startupbehavior - - - com.sun.faces.validateXml - true - - - - jakarta.faces.CONFIG_FILES - - /META-INF/testCase2-config.xml, /META-INF/testCase2-config_1.xml - - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/statBean.faces-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/statBean.faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/statBean.faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config_1.xml b/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config_1.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/appconfigresources/startupbehavior/testCase2-config_1.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/build.xml b/src/com/sun/ts/tests/jsf/spec/build.xml deleted file mode 100644 index 4d206dcd9e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/BeanOne.java b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/BeanOne.java deleted file mode 100644 index 02fcd9a759..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/BeanOne.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.actionsource; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; - -@jakarta.inject.Named("beanOne") @jakarta.enterprise.context.RequestScoped -public class BeanOne implements ActionListener { - - public ActionListener getTestOneEventListener() { - ActionListener result = new BeanOne(); - return result; - } - - @Override - public void processAction(ActionEvent e) { - FacesContext context = FacesContext.getCurrentInstance(); - context.getExternalContext().getRequestMap().put("actionCalled", "PASSED"); - } - - private boolean isTransient; - - public boolean isTransient() { - return isTransient; - } - - public void setTransient(boolean isTransient) { - this.isTransient = isTransient; - } - - public Object saveState(FacesContext context) { - return null; - } - - public void restoreState(FacesContext context, Object stateObj) { - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/URLClient.java deleted file mode 100644 index a9edd93355..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/URLClient.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.actionsource; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_actionsource_web" - + SERVLET_MAPPING; - - private static final String EXPECTED = "PASSED"; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeActionSourceTagTest - * @assertion_ids: PENDING - * @test_Strategy: Test the following cases, - * - * case 1 - Validate that if both 'target' and 'name' - * attributes are specified that no exceptions are thrown. - * - * case 2 - Validate that if the 'name' attribute is only - * specified no exception is thrown. - * - * @since 2.0 - */ - public void compositeActionSourceTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // ----- case 1 - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/targetandname.xhtml"); - this.testActionSource(pageOne, "button", formatter, messages); - - // ----- case 2 - HtmlPage pageTwo = getPage(CONTEXT_ROOT + "/notargets.xhtml"); - this.testActionSource(pageTwo, "testOne", formatter, messages); - - handleTestStatus(messages); - - } // END compositeActionSourceTagTest - - private void testActionSource(HtmlPage page, String buttonId, - Formatter formatter, StringBuilder messages) throws Fault { - - HtmlSubmitInput button = (HtmlSubmitInput) getInputIncludingId(page, - buttonId); - - if (!validateExistence(buttonId, "input", button, formatter)) { - handleTestStatus(messages); - return; - } - - try { - HtmlPage postBack = (HtmlPage) button.click(); - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(postBack, SPAN, - "result"); - - if (!validateExistence("result", SPAN, span, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(span, EXPECTED, formatter); - - } catch (IOException e) { - throw new Fault(e); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/build.xml deleted file mode 100644 index d9096893e8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/build.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/noTargetAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/noTargetAtt.xhtml deleted file mode 100644 index b11bc53d7b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/noTargetAtt.xhtml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - No Name Attribute - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/targetAndNameAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/targetAndNameAtt.xhtml deleted file mode 100644 index ec958a5c8b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/components/targetAndNameAtt.xhtml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - Target and Name Specified - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/jsf_composite_actionsource_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/actionsource/jsf_composite_actionsource_web.xml deleted file mode 100644 index 5d54f6ddab..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/actionsource/jsf_composite_actionsource_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_actionsource - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/attribute/URLClient.java deleted file mode 100644 index 892a67c12c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/URLClient.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.attribute; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextArea; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_attribute_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeAttributeTagTest - * @assertion_ids: PENDING - * @test_Strategy: Test to make sure the following attributes can be used. - - * name - targets - default - displayName - required - - * preferred - expert - shortDescription - method-signature - - * type - * - * @since 2.0 - */ - public void compositeAttributeTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/attributeTest.xhtml"); - HtmlPage pageTwo = getPage(CONTEXT_ROOT + "/attributeTestTwo.xhtml"); - - String bandName = "Rush"; - String albumName = "Hemispheres"; - List songs = new ArrayList(); - songs.add("Cygnus X-1 Book II"); - songs.add("Circumstances"); - songs.add("The Trees"); - songs.add("La Villa Strangiato"); - - /* - * -------------------------------------------------------------- case 1 - * - * Validate that using only the 'name' attribute for the cc.attribute tag - * that the interface attributes are picked up correctly by the - * implementation. - */ - - HtmlSpan testOneA = (HtmlSpan) getElementOfTypeIncludingId(pageOne, - TAG_NAME, "artist"); - - HtmlSpan testOneB = (HtmlSpan) getElementOfTypeIncludingId(pageOne, - TAG_NAME, "album"); - - HtmlSelect testOneC = (HtmlSelect) getElementOfTypeIncludingId(pageOne, - "select", "tracks"); - - if (!validateExistence("artist", TAG_NAME, testOneA, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("album", TAG_NAME, testOneB, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("tracks", "select", testOneC, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOneA, bandName, formatter); - validateElementValue(testOneB, albumName, formatter); - validateSelectOptions(testOneC, songs, formatter); - - /* - * -------------------------------------------------------------- case 2 - * - * Validate that when we nest the cc.attribute tags inside another - * cc.attribute tag that the model attribute and targets attributes work - * correctly and render the correct response. - */ - HtmlSpan testTwoA = (HtmlSpan) getElementOfTypeIncludingId(pageOne, - TAG_NAME, "artist"); - - HtmlSpan testTwoB = (HtmlSpan) getElementOfTypeIncludingId(pageOne, - TAG_NAME, "album"); - - HtmlSelect testTwoC = (HtmlSelect) getElementOfTypeIncludingId(pageOne, - "select", "tracks"); - - if (!validateExistence("artist", TAG_NAME, testTwoA, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("album", TAG_NAME, testTwoB, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("tracks", "select", testTwoC, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwoA, bandName, formatter); - validateElementValue(testTwoB, albumName, formatter); - validateSelectOptions(testTwoC, songs, formatter); - - /* - * -------------------------------------------------------------- case 3 - * - * Validate the method-signature attribute, using a backing bean with a - * method that excepts a ActionEvent. - */ - HtmlSpan testThreeA = (HtmlSpan) getElementOfTypeIncludingId(pageTwo, - TAG_NAME, "artist"); - - HtmlSpan testThreeB = (HtmlSpan) getElementOfTypeIncludingId(pageTwo, - TAG_NAME, "album"); - - HtmlSelect testThreeC = (HtmlSelect) getElementOfTypeIncludingId(pageTwo, - "select", "tracks"); - - if (!validateExistence("artist", TAG_NAME, testThreeA, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("album", TAG_NAME, testThreeB, formatter)) { - handleTestStatus(messages); - return; - } - - if (!validateExistence("tracks", "select", testThreeC, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThreeA, bandName, formatter); - validateElementValue(testThreeB, albumName, formatter); - validateSelectOptions(testThreeC, songs, formatter); - - HtmlSubmitInput button = (HtmlSubmitInput) getInputIncludingId(pageTwo, - "erase"); - - try { - HtmlPage postBack = (HtmlPage) button.click(); - HtmlTextArea tArea = (HtmlTextArea) getElementOfTypeIncludingId(postBack, - "textarea", "comments"); - String comment = tArea.asText(); - String expected = "You Pressed ERASE!"; - - if (!comment.equals(expected)) { - formatter.format( - "Unexpected text for %s! %n" + "Expected: %s %n" + "Found: %s %n", - tArea.getId(), expected, comment); - } - } catch (IOException e) { - throw new Fault(e); - } - - handleTestStatus(messages); - - } // END compositeClasspathPKGTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/build.xml deleted file mode 100644 index fc09ebd8de..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/build.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompOne.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompOne.xhtml deleted file mode 100644 index 39170f8660..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompOne.xhtml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - composite:attribute tag - - - - - - - - - - - - -
-
- - - - -
- -
- - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompThree.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompThree.xhtml deleted file mode 100644 index 3d83cc6fed..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompThree.xhtml +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - composite:attribute tag - - - - - - - - - - - - - - - - - -
- -
-
- - - - -
- -
-
- -
-
- -
- - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompTwo.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompTwo.xhtml deleted file mode 100644 index c81cb9356e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/components/attributeCompTwo.xhtml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - composite:attribute tag - - - - - - - - - - - - - - - -
- -
-
- - - -
- -
- - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/attribute/jsf_composite_attribute_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/attribute/jsf_composite_attribute_web.xml deleted file mode 100644 index 7b14751697..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/attribute/jsf_composite_attribute_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_attribute - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/build.xml deleted file mode 100644 index 410821500f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/common/composite.common.xml b/src/com/sun/ts/tests/jsf/spec/composite/common/composite.common.xml deleted file mode 100644 index b4e455cc18..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/common/composite.common.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/1_0/compVer.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/1_0/compVer.xhtml deleted file mode 100644 index 90d33de27f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/1_0/compVer.xhtml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - Version 1.0 Component - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/2_0/compVer.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/2_0/compVer.xhtml deleted file mode 100644 index 1f50259746..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/2_0/compVer.xhtml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - A simple composite tag - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/compOne.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/compOne.xhtml deleted file mode 100644 index 6f34869dc4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/common/tckcomponents/compOne.xhtml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - A simple composite tag - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/FirstNameBean.java b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/FirstNameBean.java deleted file mode 100644 index ca19a1df3a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/FirstNameBean.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.editablevalueholder; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; -import java.io.Serializable; - -@jakarta.inject.Named("firstname") @jakarta.enterprise.context.SessionScoped -public class FirstNameBean implements ValueChangeListener, Serializable { - - private static final long serialVersionUID = -2564031838038087108L; - - public ValueChangeListener getValueChangeListener() { - ValueChangeListener fname = new FirstNameBean(); - return fname; - } - - @Override - public void processValueChange(ValueChangeEvent arg0) - throws AbortProcessingException { - FacesContext.getCurrentInstance().getExternalContext().getRequestMap() - .put("changed", "TRUE"); - } - - protected String firstName = ""; - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/LastNameBean.java b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/LastNameBean.java deleted file mode 100644 index 6c8553ede0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/LastNameBean.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.editablevalueholder; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ValueChangeEvent; -import jakarta.faces.event.ValueChangeListener; - -import java.io.Serializable; - -@jakarta.inject.Named("lastname") @jakarta.enterprise.context.SessionScoped -public class LastNameBean implements ValueChangeListener, Serializable { - - private static final long serialVersionUID = -2564031838083638087L; - - public ValueChangeListener getValueChangeListener() { - ValueChangeListener lname = new LastNameBean(); - return lname; - } - - @Override - public void processValueChange(ValueChangeEvent arg0) - throws AbortProcessingException { - FacesContext.getCurrentInstance().getExternalContext().getRequestMap() - .put("changed", "TRUE"); - } - - protected String lastname = ""; - - public String getLastName() { - return lastname; - } - - public void setLastName(String lastname) { - this.lastname = lastname; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/URLClient.java deleted file mode 100644 index bde625a899..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/URLClient.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.editablevalueholder; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_editablevalueholder_web" - + SERVLET_MAPPING; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeEditableValueHolderTest - * @assertion_ids: PENDING - * @test_Strategy: Test the following cases, - * - * case 1 - Validate that if the 'name' attribute is only - * specified no exception is thrown. - * - * case 2 - Validate that if both 'target' and 'name' - * attributes are specified that no exceptions are thrown. - * - * @since 2.0 - */ - public void compositeEditableValueHolderTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // ---------- Test Case 1 - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/caseOne.xhtml"); - this.testValueListener(pageOne, "firstname", formatter, messages); - - // ---------- Test Case 2 - HtmlPage pageTwo = getPage(CONTEXT_ROOT + "/caseTwo.xhtml"); - this.testValueListener(pageTwo, "lastname", formatter, messages); - - handleTestStatus(messages); - - } // END compositeEditableValueHolderTest - - private void testValueListener(HtmlPage page, String textId, - Formatter formatter, StringBuilder messages) throws Fault { - - String expected; - String buttonId = "button"; - String input = "input"; - String spanId = "case"; - - HtmlInput changeName = (HtmlTextInput) getInputIncludingId(page, textId); - - if (!validateExistence(textId, input, changeName, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlInput button = (HtmlSubmitInput) getInputIncludingId(page, buttonId); - - if (!validateExistence(buttonId, input, button, formatter)) { - handleTestStatus(messages); - return; - } - - try { - // Change the TextInput! - expected = "TRUE"; - changeName.setValueAttribute("testing"); - HtmlPage postBack = (HtmlPage) button.click(); - HtmlSpan span = (HtmlSpan) getElementOfTypeIdStartsWith(postBack, SPAN, - spanId); - - if (!validateExistence(spanId, SPAN, span, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(span, expected, formatter); - - // Test without changing! - expected = ""; - HtmlPage nochg = (HtmlPage) button.click(); - HtmlSpan spanOne = (HtmlSpan) getElementOfTypeIncludingId(nochg, SPAN, - spanId); - - if (!validateExistence(spanId, SPAN, spanOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(spanOne, expected, formatter); - - } catch (IOException e) { - throw new Fault(e); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/build.xml deleted file mode 100644 index 48d8a29d3b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/build.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/noTargetAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/noTargetAtt.xhtml deleted file mode 100644 index 889f2bd318..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/noTargetAtt.xhtml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - No Name Attribute - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/targetAndNameAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/targetAndNameAtt.xhtml deleted file mode 100644 index ce5729d8fe..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/components/targetAndNameAtt.xhtml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - Name and Targets Attribute - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/faces-config.xml deleted file mode 100644 index 61b6273772..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/faces-config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/jsf_composite_editablevalueholder_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/jsf_composite_editablevalueholder_web.xml deleted file mode 100644 index da55daf5ae..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/editablevalueholder/jsf_composite_editablevalueholder_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_editablevalueholder - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/facet/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/facet/URLClient.java deleted file mode 100644 index faf92e52c2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/facet/URLClient.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.facet; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_facet_web" - + SERVLET_MAPPING; - - private static final String EXPECTED = "PASSED"; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeFacetsTagTest - * @assertion_ids: PENDING - * @test_Strategy: Test the following: - * - * case 1 - Validate that if the following attributes are - * legal and the correct output is rendered. - * - * composite:facet: name displayName required preferred expert - * shortDescription - * - * composite:insertFacet name - * - * @since 2.0 - */ - public void compositeFacetsTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // ----- case 1 - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/facetsOne.xhtml"); - - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(pageOne, SPAN, - "result"); - - if (!validateExistence("result", SPAN, span, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(span, EXPECTED, formatter); - - handleTestStatus(messages); - - } // END compositeFacetsTagTest -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/facet/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/facet/build.xml deleted file mode 100644 index d8d837a763..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/facet/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/facet/components/facetOne.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/facet/components/facetOne.xhtml deleted file mode 100644 index a3a3483758..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/facet/components/facetOne.xhtml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - FacetOne - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/facet/jsf_composite_facet_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/facet/jsf_composite_facet_web.xml deleted file mode 100644 index 427d1ecffe..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/facet/jsf_composite_facet_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_facet - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/URLClient.java deleted file mode 100644 index b2654eb297..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/URLClient.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.insertchildren; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.gargoylesoftware.htmlunit.html.HtmlTableDataCell; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_insertchildren_web" - + SERVLET_MAPPING; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeRenderUsingPageChildrenTagTest - * @assertion_ids: PENDING - * @test_Strategy: Test the following: - * - * case 1 - Validate that Any child components or template - * text within the composite component tag in the using page - * is rendered into the output at the point indicated by this - * tag's placement within the - * section. - * - * @since 2.0 - */ - public void compositeRenderUsingPageChildrenTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // ----- case 1 - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/testOne.xhtml"); - - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(pageOne, "span", - "result"); - - if (!validateExistence("result", "span", span, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate that the Span element's value is correct. - validateElementValue(span, "PASSED", formatter); - - if (null != span.getEnclosingElement("td")) { - HtmlTableDataCell enclosing = (HtmlTableDataCell) span - .getEnclosingElement("td"); - - if (!validateExistence("tckCell", "td", enclosing, formatter)) { - handleTestStatus(messages); - return; - } - - String result = enclosing.getId(); - String expected = "tckCell"; - if (!expected.equals(result)) { - formatter.format("Unexpected Test Result For %s! %n" + "Expected: %s %n" - + "Found: %s %n", HtmlTableDataCell.TAG_NAME, expected, result); - } - } - - handleTestStatus(messages); - - } // END compositeRenderUsingPageChildrenTagTest -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/build.xml deleted file mode 100644 index 0e6e0523b1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/components/rupc.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/components/rupc.xhtml deleted file mode 100644 index 030fc815bf..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/components/rupc.xhtml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - renderUsingChildPage - - - - - - - - - - - - - - -
-
- - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/jsf_composite_insertchildren_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/jsf_composite_insertchildren_web.xml deleted file mode 100644 index 8b2d126842..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/insertchildren/jsf_composite_insertchildren_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_insertchildren - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/URLClient.java deleted file mode 100644 index 8f72a9dadf..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/URLClient.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.packaging.classpath; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_classpath_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - private static final String EXPECTED = "PASSED"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeClasspathPKGTest - * @assertion_ids: PENDING - * @test_Strategy: The default implementation must support authoring A - * composite component is declared by creating a Facelets2 - * file inside of a resource library. - * - * Validate: When packaging the CompositeComponents under - * various resource locations that the correct Composite - * Component is found and used. - * - * @since 2.0 - */ - public void compositeClasspathPKGTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/pkgTest.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, EXPECTED, formatter); - - handleTestStatus(messages); - - } // END compositeClasspathPKGTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/build.xml deleted file mode 100644 index ef2a2739ef..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/jsf_composite_classpath_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/jsf_composite_classpath_web.xml deleted file mode 100644 index 7c90430890..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/classpath/jsf_composite_classpath_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_classpath - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/URLClient.java deleted file mode 100644 index afb4053f98..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/URLClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.packaging.webapproot; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_webapproot_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - private static final String EXPECTED = "PASSED"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeWebAppRootPKGTest - * @assertion_ids: PENDING - * @test_Strategy: The default implementation must support authoring A - * composite component is declared by creating a Facelets2 - * file inside of a resource library. - * - * Validate: When packaging the CompositeComponents under - * various resource locations that the correct Composite - * Component is found and used. - * - * @since 2.0 - */ - public void compositeWebAppRootPKGTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/pkgTest.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, EXPECTED, formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, EXPECTED, formatter); - - handleTestStatus(messages); - - } // END compositeWebAppRootPKGTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/build.xml deleted file mode 100644 index 75863aa434..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/build.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/jsf_composite_webapproot_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/jsf_composite_webapproot_web.xml deleted file mode 100644 index 33de8fa322..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/packaging/webapproot/jsf_composite_webapproot_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_webapproot - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/TitleConverter.java b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/TitleConverter.java deleted file mode 100644 index 9f9dad2be7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/TitleConverter.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2008, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.valueholder; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.context.FacesContext; -import jakarta.faces.convert.Converter; -import jakarta.faces.convert.FacesConverter; - -@FacesConverter(value = "titleCase") -public class TitleConverter implements Converter { - - @Override - public Object getAsObject(FacesContext context, UIComponent component, - String value) { - - if (value == null || value.isEmpty()) { - return value; - } - - System.out.println("(asObject)Before String: " + value); - - String old = value.substring(0, 1); - return value.replaceFirst(old, old.toUpperCase()); - } - - @Override - public String getAsString(FacesContext context, UIComponent component, - Object value) { - - if (value == null || value.toString().isEmpty()) { - return null; - } - - System.out.println("(asString)Before String: " + value); - String old = value.toString().substring(0, 1); - return value.toString().replaceFirst(old, old.toUpperCase()); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/URLClient.java b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/URLClient.java deleted file mode 100644 index 94885155cf..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/URLClient.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.composite.valueholder; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_composite_valueholder_web" - + SERVLET_MAPPING; - - private static final String SPAN = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: compositeValueHolderTest - * @assertion_ids: PENDING - * @test_Strategy: Test the following cases, - * - * case 1 - Validate that if the 'name' attribute is only - * specified no exception is thrown. - * - * case 2 - Validate that if both 'target' and 'name' - * attributes are specified that no exceptions are thrown. - * - * - * @since 2.0 - */ - public void compositeValueHolderTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - /* - * Test Values in the form of: componentId, testvalue, expected returned - * value. - */ - String[][] testValues = { { "firstname", "peter", "Peter" }, - { "lastname", "griffin", "Griffin" } }; - - // ---------- Test Case 1 - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/caseOne.xhtml"); - this.testValueHolder(pageOne, testValues, formatter, messages); - - // ---------- Test Case 2 - HtmlPage pageTwo = getPage(CONTEXT_ROOT + "/caseTwo.xhtml"); - this.testValueHolder(pageTwo, testValues, formatter, messages); - - handleTestStatus(messages); - - } // END compositeValueHolderTest - - // ---------------------------------------------------------- private - // methods - private void testValueHolder(HtmlPage page, String[][] testvalues, - Formatter formatter, StringBuilder messages) throws Fault { - - // Constants - String buttonId = "button"; - String input = "input"; - - String compId, value; - for (int i = 0; i < testvalues.length; i++) { - compId = testvalues[i][0]; - value = testvalues[i][1]; - - HtmlInput empty = (HtmlTextInput) getInputIncludingId(page, compId); - - if (!validateExistence(compId, input, empty, formatter)) { - handleTestStatus(messages); - return; - } - - // Fill In Field. - empty.setValueAttribute(value); - } - - // Get the Button Component. - HtmlInput button = (HtmlSubmitInput) getInputIncludingId(page, buttonId); - - if (!validateExistence(buttonId, input, button, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate that the changes. - try { - HtmlPage postBack = (HtmlPage) button.click(); - String expected; - for (int i = 0; i < testvalues.length; i++) { - compId = testvalues[i][0]; - expected = testvalues[i][2]; - - HtmlInput filled = (HtmlTextInput) getInputIncludingId(postBack, - compId); - - if (!validateExistence(compId, input, filled, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(filled, expected, formatter); - - } - } catch (IOException e) { - throw new Fault(e); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/build.xml b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/build.xml deleted file mode 100644 index 187fb0e87a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/noTargetAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/noTargetAtt.xhtml deleted file mode 100644 index af4c5c98f6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/noTargetAtt.xhtml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - No Name Attribute - - - - - - - - - - - - -

- - -

- -

- - -

- - -
- - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/targetAndNameAtt.xhtml b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/targetAndNameAtt.xhtml deleted file mode 100644 index 3dba38c5dc..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/components/targetAndNameAtt.xhtml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - Name and Targets Attribute - - - - - - - - - - - -

- - -

-

- - -

- -
- - - - diff --git a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/jsf_composite_valueholder_web.xml b/src/com/sun/ts/tests/jsf/spec/composite/valueholder/jsf_composite_valueholder_web.xml deleted file mode 100644 index c926bd83c0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/composite/valueholder/jsf_composite_valueholder_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_composite_valueholder - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/build.xml b/src/com/sun/ts/tests/jsf/spec/coretags/build.xml deleted file mode 100644 index 6f12808b50..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/common/BookBean.java b/src/com/sun/ts/tests/jsf/spec/coretags/common/BookBean.java deleted file mode 100644 index fb77ba1356..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/common/BookBean.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.coretags.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; - -@jakarta.inject.Named("book") @jakarta.enterprise.context.RequestScoped -public class BookBean implements Serializable { - - private String authorName; - - private boolean result; - - @PostConstruct - public void postConstruct() { - } - - public String checkAuthor() { - if ("Orsen Scott Card".equals(authorName)) { - this.setResult(true); - return "Test Passed!"; - } - - this.setResult(false); - return "Test Failed!"; - } - - public String getAuthorName() { - return authorName; - } - - public void setAuthorName(String authorName) { - this.authorName = authorName; - } - - public boolean getResult() { - return result; - } - - public void setResult(boolean result) { - this.result = result; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/common/SelectItemsBean.java b/src/com/sun/ts/tests/jsf/spec/coretags/common/SelectItemsBean.java deleted file mode 100644 index 9b31cbc220..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/common/SelectItemsBean.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.coretags.common; - -import java.util.ArrayList; -import java.util.List; - -import jakarta.faces.model.SelectItem; - -@jakarta.inject.Named("Music") @jakarta.enterprise.context.RequestScoped -public class SelectItemsBean { - - private List myList; - - { - myList = new ArrayList(); - myList.add("Rush"); - myList.add("Yes"); - myList.add("Doors"); - } - - // List of SelectItems - public List getListNames() { - List listNames = new ArrayList(); - - for (String s : myList) { - listNames.add(new SelectItem(s)); - } - - return listNames; - } - - // String[] of SelectItems - public SelectItem[] getArrayNames() { - SelectItem[] arrayNames = new SelectItem[3]; - - int i = 0; - for (String s : myList) { - arrayNames[i] = new SelectItem(s); - i++; - } - - return arrayNames; - } - - public List getMyBands() { - List bands = new ArrayList(); - - bands.add(new Band("><&", "Escape Characters", "Escape Characters")); - // the below option is here as debug only. - // bands.add(new Band("Tool", "Great Band", "&<>\'")); - - return bands; - } - - // -------------------------------------------------------- Inner classes - public static class Band { - - private String name; - - private String description; - - private String genre; - - public Band(String name, String description, String genre) { - this.name = name; - this.description = description; - this.genre = genre; - } - - /** - * @return the name of the band - */ - public String getName() { - return name; - } - - /** - * @param bandname - * the name of the band. - */ - public void setName(String bandname) { - this.name = bandname; - } - - /** - * @return the description - */ - public String getDescription() { - return description; - } - - /** - * @param description - * the description to set - */ - public void setDescription(String description) { - this.description = description; - } - - /** - * @return the genre - */ - public String getGenre() { - return genre; - } - - /** - * @param genre - * the genre to set - */ - public void setGenre(String genre) { - this.genre = genre; - } - }// -- End Band Class -} diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/common/coretags.common.xml b/src/com/sun/ts/tests/jsf/spec/coretags/common/coretags.common.xml deleted file mode 100644 index 300e20cd40..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/common/coretags.common.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/URLClient.java b/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/URLClient.java deleted file mode 100644 index a1b655a2c0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/URLClient.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.coretags.selectitems; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.sun.javatest.Status; -import com.sun.ts.lib.util.TestUtil; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_coretags_selectitems_web"; - - private static final String SELECT = "select"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: selectItemsValueTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the 'value' attribute gets handled properly. - * - * case 1: - Verify that we get the correct number of Options - * are returned for both a List and Array ojbects. case 2: - - * Verifiy that the itemLabelEscaped does set normal JSF HTML - * escaping or not. - * - * @since 2.0 - */ - public void selectItemsValueTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/test_facelet.xhtml")); - - // -------------------------------------------------------------- case 1 - for (HtmlPage page : pages) { - List testCase = new ArrayList(); - testCase.add("caseOne"); - testCase.add("caseTwo"); - - for (String tCase : testCase) { - - HtmlSelect checkbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - SELECT, tCase); - - if (!validateExistence(tCase, SELECT, checkbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (checkbox1.getOptionSize() != 3) { - formatter.format("Expected the number of options " - + "rendered for the component %s to be '%d', but " + "found '%d'", - 3, tCase, checkbox1.getOptionSize()); - } - } - } - - // --------------------------------------------------------------- case - // 2 - for (HtmlPage page : pages) { - HtmlSelect checkbox = (HtmlSelect) getElementOfTypeIncludingId(page, - SELECT, "caseThree"); - - if (!validateExistence("caseThree", SELECT, checkbox, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlOption optOne = checkbox.getOptionByValue("Escape Characters"); - String expected = "><&"; - String result = optOne.asXml(); - - if (!result.contains(expected)) { - formatter.format( - "Unexpected value for Option's label" + TestUtil.NEW_LINE - + "Expected: '%s'" + TestUtil.NEW_LINE + "Found: '%s'", - expected, result); - } - - } - handleTestStatus(messages); - } // END selectItemsValueTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/build.xml b/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/build.xml deleted file mode 100644 index 83f0d17d38..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/jsf_coretags_selectitems_web.xml b/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/jsf_coretags_selectitems_web.xml deleted file mode 100644 index 3f548d7e89..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/selectitems/jsf_coretags_selectitems_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_coretags_selectitems - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/URLClient.java b/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/URLClient.java deleted file mode 100755 index e848aeb20b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/URLClient.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: $ - */ -package com.sun.ts.tests.jsf.spec.coretags.viewaction; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_coretags_viewaction_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: viewActionTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: - * - * @since 2.2 - */ - public void viewActionTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/test_facelet.xhtml"); - HtmlInput text1 = (HtmlInput) getInputIncludingId(page, "id"); - HtmlInput button1 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:button1"); - - try { - text1.setValueAttribute("Orsen Scott Card"); - page = (HtmlPage) button1.click(); - - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - formatter.close(); - return; - } - - // validate the redirection worked! - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "result"); - - if (!validateExistence(span.getId(), "span", span, formatter)) { - handleTestStatus(messages); - formatter.close(); - return; - } - - String message1 = span.asText().trim(); - if (!"Test Passed".equals(message1)) { - formatter.format(JSFTestUtil.FAIL); - } - - formatter.close(); - handleTestStatus(messages); - - } // END selectItemsValueTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/build.xml b/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/build.xml deleted file mode 100644 index 23be64656b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/faces-config.xml deleted file mode 100644 index 213b60c55b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/faces-config.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - /test_facelet.xhtml - - #{book.checkAuthor} - #{book.result} - /passed_facelet.xhtml - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/jsf_coretags_viewaction_web.xml b/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/jsf_coretags_viewaction_web.xml deleted file mode 100644 index a1f0dc70ba..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/coretags/viewaction/jsf_coretags_viewaction_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_coretags_viewaction - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/build.xml b/src/com/sun/ts/tests/jsf/spec/el/build.xml deleted file mode 100644 index 1966e8db1d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/SimpleMethodELResolver.java b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/SimpleMethodELResolver.java deleted file mode 100644 index b1674f06a1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/SimpleMethodELResolver.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.elresolvers; - -import java.beans.FeatureDescriptor; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.HashSet; -import java.util.Iterator; -import java.util.Set; - -import jakarta.el.ELContext; -import jakarta.el.ELException; -import jakarta.el.ELResolver; - -/** - *

- * This resolver will handle simple, no-argument methods that don't conform to - * JavaBeans naming standards. - * - * Take Collections.size() as an example. This method cannot be - * called by the EL without adding some sort of wrapper that has a getSize() - * method, or adding a JSP Function. With this resolver however, the user can - * write ${someCollection.size} and obtain the size of the - * Collection. - *

- */ -public class SimpleMethodELResolver extends ELResolver { - - private static final Class[] NO_TYPES = new Class[0]; - - private static final Object[] NO_ARGS = new Object[0]; - - /** - *

- * This will attempt to call a method identified by the property - * parameter on the specified base using reflection. - * - * If the reflected method has no arguments, - * context.setPropertyResolved(true) is called, the method is - * invoked, and the value returned. - * - * This method will not throw jakarta.el.PropertyNotFoundException - * if an appropriate method cannot be found to invoke. - *

- * - * - * @param context - * The context of this evaluation. - * @param base - * The base object whose property value is to be returned, or - * null to resolve a top-level variable. - * @param property - * The property or variable to be resolved. - * - * @return If the propertyResolved property of - * ELContext was set to true, then the - * result of the variable or property resolution; otherwise undefined. - * - * @throws NullPointerException - * if context is null - * @throws jakarta.el.PropertyNotFoundException - * if the given (base, property) pair is handled by this - * ELResolver but the specified variable or property - * does not exist or is not readable. - * @throws jakarta.el.ELException - * if an exception was thrown while performing the property or - * variable resolution. The thrown exception must be included as the - * cause property of this exception, if available. - */ - public Object getValue(ELContext context, Object base, Object property) { - - Object result = null; - - if (context == null) { - throw new NullPointerException(); - } - - if (base == null) { - context.setPropertyResolved(false); - } else { - String methodName = (String) property; - Method method; - try { - method = base.getClass().getMethod(methodName, NO_TYPES); - if (method.getParameterTypes().length == 0) { - result = method.invoke(base, NO_ARGS); - context.setPropertyResolved(true); - } else { - context.setPropertyResolved(false); - } - } catch (NoSuchMethodException nsme) { - context.setPropertyResolved(false); - } catch (Exception e) { - context.setPropertyResolved(false); - Throwable cause; - if (e instanceof InvocationTargetException) { - cause = ((InvocationTargetException) e).getTargetException(); - } else { - cause = e; - } - throw new ELException(cause); - } - } - - return result; - } - - /** - *

- * This method will attempt to return the return-type of the reflected method, - * if appropriate to do so. - * - * This method will not throw jakarta.el.PropertyNotFoundException - * if an appropriate method cannot be found to invoke. - *

- * - * @param context - * The context of this evaluation. - * @param base - * The base object whose property value is to be analyzed, or - * null to analyze a top-level variable. - * @param property - * The property or variable to return the acceptable type for. - * - * @return If the propertyResolved property of - * ELContext was set to true, then the most - * general acceptable type; otherwise undefined. - * - * @throws NullPointerException - * if context is null - * @throws jakarta.el.PropertyNotFoundException - * if the given (base, property) pair is handled by this - * ELResolver but the specified variable or property - * does not exist or is not readable. - * @throws jakarta.el.ELException - * if an exception was thrown while performing the property or - * variable resolution. The thrown exception must be included as the - * cause property of this exception, if available. - */ - public Class getType(ELContext context, Object base, Object property) { - Class result = null; - if (context == null) { - throw new NullPointerException(); - } - - if (base == null) { - context.setPropertyResolved(false); - } else { - String methodName = (String) property; - Method method; - try { - method = base.getClass().getMethod(methodName, NO_TYPES); - if (method.getParameterTypes().length == 0) { - result = method.getReturnType(); - context.setPropertyResolved(true); - } else { - context.setPropertyResolved(false); - } - } catch (NoSuchMethodException nsme) { - context.setPropertyResolved(false); - } catch (Exception e) { - context.setPropertyResolved(false); - Throwable cause; - if (e instanceof InvocationTargetException) { - cause = ((InvocationTargetException) e).getTargetException(); - } else { - cause = e; - } - throw new ELException(cause); - } - } - - return result; - } - - /** - *

- * setValue() is not supported by this resolver. - *

- * - * @param context - * The context of this evaluation. - * @param base - * The base object whose property value is to be set, or - * null to set a top-level variable. - * @param property - * The property or variable to be set. - * @param value - * The value to set the property or variable to. - * - * @throws NullPointerException - * if context is null - * @throws jakarta.el.PropertyNotFoundException - * if the given (base, property) pair is handled by this - * ELResolver but the specified variable or property - * does not exist. - * @throws jakarta.el.PropertyNotWritableException - * if the given (base, property) pair is handled by this - * ELResolver but the specified variable or property is - * not writable. - * @throws jakarta.el.ELException - * if an exception was thrown while attempting to set the property - * or variable. The thrown exception must be included as the cause - * property of this exception, if available. - */ - public void setValue(ELContext context, Object base, Object property, - Object value) { - - if (context == null) { - throw new NullPointerException(); - } - - context.setPropertyResolved(false); // basically a no-op. - - } - - /** - *

- * isReadOnly returns true if it is able to resolve the specified - * property to a no-argument method - *

- * - * @param context - * The context of this evaluation. - * @param base - * The base object whose property value is to be analyzed, or - * null to analyze a top-level variable. - * @param property - * The property or variable to return the read-only status for. - * - * @return If the propertyResolved property of - * ELContext was set to true, then - * true if the property is read-only or - * false if not; otherwise undefined. - * - * @throws NullPointerException - * if context is null - * @throws jakarta.el.PropertyNotFoundException - * if the given (base, property) pair is handled by this - * ELResolver but the specified variable or property - * does not exist. - * @throws jakarta.el.ELException - * if an exception was thrown while performing the property or - * variable resolution. The thrown exception must be included as the - * cause property of this exception, if available. - */ - public boolean isReadOnly(ELContext context, Object base, Object property) { - - if (context == null) { - throw new NullPointerException(); - } - - if (base == null) { - context.setPropertyResolved(false); - } else { - String methodName = (String) property; - Method method; - try { - method = base.getClass().getMethod(methodName, NO_TYPES); - if (method.getParameterTypes().length == 0) { - context.setPropertyResolved(true); - return true; - } else { - context.setPropertyResolved(false); - } - } catch (NoSuchMethodException nsme) { - context.setPropertyResolved(false); - } - } - - return false; - - } - - /** - * Returns information about the set of variables or properties that can be - * resolved for the given base object. One use for this method is - * to assist tools in auto-completion. - *

- *

- * If the base parameter is null, the resolver must - * enumerate the list of top-level variables it can resolve. - *

- *

- *

- * The Iterator returned must contain zero or more instances of - * {@link java.beans.FeatureDescriptor}, in no guaranteed order. In the case - * of primitive types such as int, the value null - * must be returned. This is to prevent the useless iteration through all - * possible primitive values. A return value of null indicates - * that this resolver does not handle the given base object or - * that the results are too complex to represent with this method and the - * {@link #getCommonPropertyType} method should be used instead. - *

- *

- *

- * Each FeatureDescriptor will contain information about a single - * variable or property. In addition to the standard properties, the - * FeatureDescriptor must have two named attributes (as set by - * the setValue method): - *

    - *
  • {@link #TYPE} - The value of this named attribute must be an instance - * of java.lang.Class and specify the runtime type of the - * variable or property.
  • - *
  • {@link #RESOLVABLE_AT_DESIGN_TIME} - The value of this named attribute - * must be an instance of java.lang.Boolean and indicates whether - * it is safe to attempt to resolve this property at design-time. For - * instance, it may be unsafe to attempt a resolution at design time if the - * ELResolver needs access to a resource that is only available - * at runtime and no acceptable simulated value can be provided.
  • - *
- *

- *

- *

- * The caller should be aware that the Iterator returned might - * iterate through a very large or even infinitely large set of properties. - * Care should be taken by the caller to not get stuck in an infinite loop. - *

- *

- *

- * This is a "best-effort" list. Not all ELResolvers will return - * completely accurate results, but all must be callable at both design-time - * and runtime (i.e. whether or not Beans.isDesignTime() returns - * true), without causing errors. - *

- *

- *

- * The propertyResolved property of the ELContext is - * not relevant to this method. The results of all ELResolvers - * are concatenated in the case of composite resolvers. - *

- * - * @param context - * The context of this evaluation. - * @param base - * The base object whose set of valid properties is to be enumerated, - * or null to enumerate the set of top-level variables - * that this resolver can evaluate. - * - * @return An Iterator containing zero or more (possibly - * infinitely more) FeatureDescriptor objects, or - * null if this resolver does not handle the given - * base object or that the results are too complex to - * represent with this method - * - * @see java.beans.FeatureDescriptor - */ - public Iterator getFeatureDescriptors(ELContext context, Object base) { - - Set methodSet = new HashSet(); - if (context == null || base == null) { - return null; - } - - Method[] methods = base.getClass().getDeclaredMethods(); - for (Method method : methods) { - // only interested in no-arg methods - if (method.getParameterTypes().length == 0) { - FeatureDescriptor desc = new FeatureDescriptor(); - desc.setDisplayName(method.getName()); - desc.setShortDescription(method.getName()); - desc.setHidden(false); - desc.setExpert(false); - desc.setPreferred(true); - desc.setValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME, Boolean.TRUE); - desc.setValue(ELResolver.TYPE, method.getReturnType()); - methodSet.add(desc); - } - } - - return methodSet.iterator(); - - } - - /** - * Returns the most general type that this resolver accepts for the - * property argument, given a base object. One use - * for this method is to assist tools in auto-completion. - *

- *

- * This assists tools in auto-completion and also provides a way to express - * that the resolver accepts a primitive value, such as an integer index into - * an array. For example, the {@link jakarta.el.ArrayELResolver} will accept any - * int as a property, so the return value would be - * Integer.class. - *

- * - * @param context - * The context of this evaluation. - * @param base - * The base object to return the most general property type for, or - * null to enumerate the set of top-level variables that - * this resolver can evaluate. - * - * @return null if this ELResolver does not know how - * to handle the given base object; otherwise - * Object.class if any type of property is - * accepted; otherwise the most general property type - * accepted for the given base. - */ - public Class getCommonPropertyType(ELContext context, Object base) { - - return null; - - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/TestServlet.java deleted file mode 100644 index edc7476502..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/TestServlet.java +++ /dev/null @@ -1,1737 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.el.elresolvers; - -import java.beans.FeatureDescriptor; -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Date; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.ResourceBundle; - -import com.sun.ts.tests.jsf.common.resourcebundle.SimpleResourceBundle_de; -import com.sun.ts.tests.jsf.common.resourcebundle.SimpleResourceBundle_en; -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.el.ELContext; -import jakarta.el.ELResolver; -import jakarta.el.PropertyNotWritableException; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; -import jakarta.servlet.jsp.PageContext; - -public final class TestServlet extends HttpTCKServlet { - - private static final int FACES_PHASE = 0; - - private static final int JSP_PHASE = 1; - - private List implicitInfo; - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - super.init(config); - implicitInfo = new ArrayList(); - implicitInfo.add(new ImplicitObjectInfo("application", null, Object.class, - FACES_PHASE, true)); - implicitInfo.add( - new ImplicitObjectInfo("cookie", null, Map.class, FACES_PHASE, true)); - implicitInfo.add( - new ImplicitObjectInfo("header", null, Map.class, FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("headerValues", null, Map.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("initParam", null, Map.class, - FACES_PHASE, true)); - implicitInfo.add( - new ImplicitObjectInfo("param", null, Map.class, FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("paramValues", null, Map.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("request", null, Object.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("session", null, Object.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("applicationScope", null, Map.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("sessionScope", null, Map.class, - FACES_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("requestScope", null, Map.class, - FACES_PHASE, true)); - - // these will be check in both JSP and FACES phases - - implicitInfo.add(new ImplicitObjectInfo("facesContext", null, - FacesContext.class, JSP_PHASE, true)); - implicitInfo.add(new ImplicitObjectInfo("view", null, UIViewRoot.class, - JSP_PHASE, true)); - - } // END init - - // ------------------------------------------------------------ Test Methods - public void managedBeanELResolverFeatureDescriptorTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - for (int i = 0; i < resolvers.length; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - boolean nondescFound = false; - boolean descFound = false; - - FeatureDescriptor control = new FeatureDescriptor(); - for (Iterator j = resolvers[i].getFeatureDescriptors(elContexts[i], - null); j.hasNext();) { - - FeatureDescriptor descriptor = (FeatureDescriptor) j.next(); - if ("nodescription".equals(descriptor.getName())) { - nondescFound = true; - - control.setDisplayName("nodescription"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Date.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Validating the feature descriptor for the " - + "'nodescription' managed bean!" + JSFTestUtil.NL + result); - } - - continue; - } - - if ("description".equals(descriptor.getName())) { - descFound = true; - - control.setDisplayName("description"); - control.setShortDescription("This is a description"); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Date.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Validating the feature descriptor for the " - + "'description' managed bean" + JSFTestUtil.NL + result); - } - - continue; - } - - if (nondescFound && descFound) { - break; - } - - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanELResolverFeatureDescriptorTest - - public void facesImplicitObjectResolverFeatureDescriptorTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - - FeatureDescriptor control = new FeatureDescriptor(); - for (int i = 0, size = resolvers.length; i < size; i++) { - - boolean viewFound = false; - boolean facesContextFound = false; - boolean applicationFound = false; - boolean applicationScopeFound = false; - boolean cookieFound = false; - boolean headerFound = false; - boolean headerValuesFound = false; - boolean initParamFound = false; - boolean paramFound = false; - boolean paramValuesFound = false; - boolean requestFound = false; - boolean requestScopeFound = false; - boolean sessionFound = false; - boolean sessionScopeFound = false; - - for (Iterator j = resolvers[i].getFeatureDescriptors(elContexts[i], - null); j.hasNext();) { - - FeatureDescriptor descriptor = (FeatureDescriptor) j.next(); - - String phase; - switch (i) { - case 0: - phase = "FACES_PHASE"; - break; - case 1: - phase = "JSP_PHASE"; - break; - default: - phase = "UNKNOWN"; - break; - } - - out.println("*** Checking Phase: " + phase + " ***"); - out.println("*** Resolver Name: " + j.toString()); - out.println("*** Descriptor Name: " + descriptor.getName() + " ***"); - - if ("view".equals(descriptor.getName())) { - viewFound = true; - control.setDisplayName("view"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", jakarta.faces.component.UIViewRoot.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'view' implicit object"); - out.println(result); - out.println("\n\n"); - } - - continue; - } - - if ("facesContext".equals(descriptor.getName())) { - facesContextFound = true; - control.setDisplayName("facesContext"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", jakarta.faces.context.FacesContext.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'facesContext' implicit object"); - out.println(result); - } - - continue; - } - - if (i == FACES_PHASE) { - if ("application".equals(descriptor.getName())) { - applicationFound = true; - control.setDisplayName("application"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.lang.Object.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'application' implicit object"); - out.println(result); - } - - continue; - } - - if ("applicationScope".equals(descriptor.getName())) { - applicationScopeFound = true; - control.setDisplayName("applicationScope"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'applicationScope' implicit object"); - out.println(result); - } - - continue; - } - - if ("cookie".equals(descriptor.getName())) { - cookieFound = true; - control.setDisplayName("cookie"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'cookie' implicit object"); - out.println(result); - } - - continue; - } - - if ("header".equals(descriptor.getName())) { - headerFound = true; - control.setDisplayName("header"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'header' implicit object"); - out.println(result); - } - - continue; - } - - if ("headerValues".equals(descriptor.getName())) { - headerValuesFound = true; - control.setDisplayName("headerValues"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'headerValues' implicit object"); - out.println(result); - } - - continue; - } - - if ("initParam".equals(descriptor.getName())) { - initParamFound = true; - control.setDisplayName("initParam"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'initParam' implicit object"); - out.println(result); - } - - continue; - } - - if ("param".equals(descriptor.getName())) { - paramFound = true; - control.setDisplayName("param"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'param' implicit object"); - out.println(result); - } - - continue; - } - - if ("paramValues".equals(descriptor.getName())) { - paramValuesFound = true; - control.setDisplayName("paramValues"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'paramValues' implicit object"); - out.println(result); - } - - continue; - } - - if ("request".equals(descriptor.getName())) { - requestFound = true; - control.setDisplayName("request"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.lang.Object.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'request' implicit object"); - out.println(result); - } - - continue; - } - - if ("requestScope".equals(descriptor.getName())) { - requestScopeFound = true; - control.setDisplayName("requestScope"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'requestScope' implicit object"); - out.println(result); - } - - continue; - } - - if ("session".equals(descriptor.getName())) { - sessionFound = true; - control.setDisplayName("session"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.lang.Object.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'session' implicit object"); - out.println(result); - } - - continue; - } - - if ("sessionScope".equals(descriptor.getName())) { - sessionScopeFound = true; - control.setDisplayName("sessionScope"); - control.setShortDescription(""); - control.setExpert(false); - control.setHidden(false); - control.setPreferred(true); - control.setValue("type", java.util.Map.class); - control.setValue("resolvable", Boolean.TRUE); - - String result = validateFeatureDescriptor(control, descriptor); - if (result.length() > 0) { - passed = false; - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "validating the feature descriptor" - + " for the 'sessionScope' implicit object"); - out.println(result); - } - - } - } - } - - if (i == FACES_PHASE) { - if (!(viewFound && facesContextFound && applicationFound - && applicationScopeFound && requestFound && requestScopeFound - && sessionFound && sessionScopeFound && cookieFound && headerFound - && headerValuesFound && paramFound && paramValuesFound - && initParamFound)) { - passed = false; - out.println( - JSFTestUtil.FAIL + JSFTestUtil.NL + " One or more implicit object" - + "feature descriptors were not resolved when " - + "validating the Faces implicit object ELResolver"); - out.println("view: " + viewFound); - out.println("facesContext: " + facesContextFound); - out.println("application: " + applicationFound); - out.println("applicationScope: " + applicationScopeFound); - out.println("request: " + requestFound); - out.println("requestScope: " + requestScopeFound); - out.println("session: " + sessionFound); - out.println("sessionScope: " + sessionScopeFound); - out.println("header: " + headerFound); - out.println("headerValues: " + headerValuesFound); - out.println("param: " + paramFound); - out.println("paramValues: " + paramValuesFound); - out.println("cookie: " + cookieFound); - out.println("initParam: " + initParamFound); - } - } else { - if (!(viewFound && facesContextFound)) { - passed = false; - out.println(JSFTestUtil.FAIL + " One or more implicit object" - + "feature descriptors (for JSP) were not resolved when " - + "validating theFaces implicit object ELResolver"); - out.println("view: " + viewFound); - out.println("facesContext: " + facesContextFound); - } - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesImplicitObjectResolverForJSPFeatureDescriptorTest - - public void facesImplicitObjectResolverGetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - - for (int i = 0; i < resolvers.length; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - for (ImplicitObjectInfo aImplicitInfo : implicitInfo) { - - String result = null; - if (i == JSP_PHASE) { - if (aImplicitInfo.getPhase() == JSP_PHASE) { - result = validateImplicitObjectValue(elContexts[i], resolvers[i], - aImplicitInfo); - } - } else { - result = validateImplicitObjectValue(elContexts[i], resolvers[i], - aImplicitInfo); - } - - if (result != null && result.length() > 0) { - passed = false; - out.println(result); - } - - elContexts[i].setPropertyResolved(false); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesImplicitObjectResolverGetValueTest - - public void facesImplicitObjectResolverGetTypeTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - - for (int i = 0; i < resolvers.length; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - for (ImplicitObjectInfo aImplicitInfo : implicitInfo) { - - String result = null; - if (i == JSP_PHASE) { - if (aImplicitInfo.getPhase() == JSP_PHASE) { - result = validateImplicitObjectType(elContexts[i], resolvers[i], - aImplicitInfo); - } - } else { - result = validateImplicitObjectType(elContexts[i], resolvers[i], - aImplicitInfo); - } - - if (result != null && result.length() > 0) { - passed = false; - out.println(result); - } - - elContexts[i].setPropertyResolved(false); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesImplicitObjectResolverGetTypeTest - - public void facesImplicitObjectResolverSetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - - for (int i = 0; i < resolvers.length; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - for (ImplicitObjectInfo aImplicitInfo : implicitInfo) { - - String result = null; - if (i == JSP_PHASE) { - if (aImplicitInfo.getPhase() == JSP_PHASE) { - result = validateImplicitObjectSetValue(elContexts[i], resolvers[i], - aImplicitInfo); - } - } else { - result = validateImplicitObjectSetValue(elContexts[i], resolvers[i], - aImplicitInfo); - } - - if (result != null && result.length() > 0) { - passed = false; - out.println(result); - } - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesImplicitObjectResolverSetValueTest - - public void facesImplicitObjectResolverIsReadOnlyTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - boolean passed = true; - - for (int i = 0; i < resolvers.length; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - for (ImplicitObjectInfo aImplicitInfo : implicitInfo) { - - String result = null; - if (i == JSP_PHASE) { - if (aImplicitInfo.getPhase() == JSP_PHASE) { - result = validateImplicitObjectReadOnly(elContexts[i], resolvers[i], - aImplicitInfo); - } - } else { - result = validateImplicitObjectReadOnly(elContexts[i], resolvers[i], - aImplicitInfo); - } - - if (result != null && result.length() > 0) { - passed = false; - out.println(result); - } - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesImplicitObjectResolverIsReadOnlyTest - - public void facesManagedBeanResolverGetValueTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - ELContext[] elContexts = getELContexts(request, response); - ELResolver[] resolvers = getELResolvers(elContexts); - String attributeName = "description"; - - for (int i = 0, size = resolvers.length; i < size; i++) { - - out.println("Testing phase: " + getTestPhase(i)); - - /* - * If an object is associated with the name "description" in either - * request, session, or application return that object (searching in that - * order) - */ - ExternalContext extContext = getFacesContext().getExternalContext(); - extContext.getRequestMap().put(attributeName, "request"); - extContext.getSessionMap().put(attributeName, "session"); - extContext.getApplicationMap().put(attributeName, "application"); - - String result = null; - try { - result = (String) resolvers[i].getValue(elContexts[i], null, - attributeName); - - } catch (ClassCastException cce) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Should be getting a 'String' back from Request " - + "Scope! Instead of 'Date' from Managedbean!"); - return; - } - - if (!"request".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected managed bean resolver to search request " - + "scope first, but instead it searched " + result); - return; - } - - // Remove Attribute from Request Scope. - extContext.getRequestMap().remove(attributeName); - - try { - result = (String) resolvers[i].getValue(elContexts[i], null, - attributeName); - - } catch (ClassCastException cce) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Should be getting a 'String' back from Session " - + "Scope! Instead of 'Date' from Managedbean!"); - return; - } - - if (!"session".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected managed bean resolver to search " - + "session scope first, but instead it searched " + result); - return; - } - - // Remove Attribute from Session Scope. - extContext.getSessionMap().remove(attributeName); - - try { - result = (String) resolvers[i].getValue(elContexts[i], null, - attributeName); - - } catch (ClassCastException e) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Should be getting a 'String' back from Application " - + "Scope! Instead of 'Date' from Managedbean!"); - return; - } - - if (!"application".equals(result)) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Expected managed bean resolver to search " - + "application scope first, but instead it searched " + result); - return; - } - - // Remove attribute from Application Scope. - extContext.getApplicationMap().remove(attributeName); - - Date date = (Date) resolvers[i].getValue(elContexts[i], null, - attributeName); - - if (date == null) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "ELResolver.getValue() with a null " - + "base and a property matching the name of a managed " - + "bean did not result in the bean being instantiated " - + "and returned."); - return; - } - - if (!elContexts[i].isPropertyResolved()) { - out.println(JSFTestUtil.FAIL + JSFTestUtil.NL - + "A new managed bean was created, " - + "but isPropertyResolved() returned false."); - return; - } - } - - out.println(JSFTestUtil.PASS); - - } // END facesManagedBeanResolverGetValueTest - - public void facesArrayListMapBeanResolverTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - // This test ensures that the List, Map, and Bean ELResolvers - // are present in the ELResolver chain returned by the faces - // implementation. - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - - ArrayList list = new ArrayList(); - list.add("val1"); - list.add("val2"); - - HashMap map = new HashMap(); - map.put("key1", "value1"); - map.put("key2", "value2"); - - Date date = new Date(); - Long longResult = date.getTime(); - - String[] array = new String[] { "str1", "str2" }; - - // begin test - - boolean passed = true; - - Object result = resolver.getValue(elContext, list, "0"); - if (!"val1".equals(result)) { - passed = false; - out.println( - JSFTestUtil.FAIL + " ELResolver failed to handle a List properly" - + " which indicates that either the ListELResolver isn't present" - + " or it is present and not implemented correctly."); - out.println("Expected resolver to return 'val1', recevied: " + result); - } - - elContext.setPropertyResolved(false); - - result = resolver.getValue(elContext, map, "key1"); - if (!"value1".equals(result)) { - passed = false; - out.println( - JSFTestUtil.FAIL + " ELResolver failed to handle a Map properly" - + " which indicates that either the MapELResolver isn't present" - + " or it is present and not implemented correctly."); - out.println("Expected resolver to return 'value1', recevied: " + result); - } - - elContext.setPropertyResolved(false); - - result = resolver.getValue(elContext, date, "time"); - if (!longResult.equals(result)) { - passed = false; - out.println( - JSFTestUtil.FAIL + " ELResolver failed to handle a Bean properly" - + " which indicates that either the BeanELResolver isn't present" - + " or it is present and not implemented correctly."); - out.println("Expected resolver to return '" + longResult.toString() - + "', recevied: '" + result.toString() + '\''); - } - - elContext.setPropertyResolved(false); - - result = resolver.getValue(elContext, array, "0"); - if (!"str1".equals(result)) { - passed = false; - out.println( - JSFTestUtil.FAIL + " ELResolver failed to handle an Array properly" - + " which indicates that either the ArrayELResolver isn't present" - + " or it is present and not implemented correctly."); - out.println("Expected resolver to return 'str1', recevied: " + result); - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesArrayListMapBeanResolverTest - - public void facesScopedAttributeResolverGetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - ExternalContext extContext = getFacesContext().getExternalContext(); - boolean bOne, bTwo, bThree = false; - - // Populate the scopes. - extContext.getRequestMap().put("desc", "request"); - extContext.getSessionMap().put("desc", "session"); - extContext.getApplicationMap().put("desc", "application"); - - // Test Request scope - bOne = this.testELGetValue("request", resolver, elContext, out); - extContext.getRequestMap().remove("desc"); - elContext.setPropertyResolved(false); - - // Test Session scope - bTwo = this.testELGetValue("session", resolver, elContext, out); - extContext.getSessionMap().remove("desc"); - elContext.setPropertyResolved(false); - - // Test Application scope - bThree = this.testELGetValue("application", resolver, elContext, out); - - if (bOne && bTwo && bThree) { - out.println(JSFTestUtil.PASS); - } - - } // END facesScopedAttributeResolverGetValueTest - - public void facesScopedAttributeResolverSetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - ExternalContext extContext = getFacesContext().getExternalContext(); - boolean passed = true; - - Map reqMap = extContext.getRequestMap(); - Map sesMap = extContext.getSessionMap(); - Map appMap = extContext.getApplicationMap(); - - reqMap.put("desc", "request"); - sesMap.put("desc", "session"); - appMap.put("desc", "application"); - - resolver.setValue(elContext, null, "desc", "replaced"); - if (!"replaced".equals(reqMap.get("desc"))) { - passed = false; - out.println("ELResolver.setValue() failed to replace existing" - + " request scoped attribute."); - out.println("Expected value to be: 'replaced', received: '" - + reqMap.get("desc") + '\''); - } else { - if (!"session".equals(sesMap.get("desc"))) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly replaced " - + "session scoped attribute when only the " - + "request scoped attribute should have been replaced"); - } - if (!"application".equals(appMap.get("desc"))) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly replaced " - + "application scoped attribute when only the " - + "request scoped attribute should have been replaced"); - } - if (!elContext.isPropertyResolved()) { - passed = false; - out.println( - JSFTestUtil.FAIL + " Request scoped attribute properly replaced, " - + "but the propertyResolved property on the ELContext was" - + " not set to true"); - } - } - - reqMap.remove("desc"); - elContext.setPropertyResolved(false); - - resolver.setValue(elContext, null, "desc", "replaced"); - if (!"replaced".equals(sesMap.get("desc"))) { - passed = false; - out.println("ELResolver.setValue() failed to replace existing" - + " session scoped attribute."); - out.println("Expected value to be: 'replaced', received: '" - + reqMap.get("desc") + '\''); - } else { - if (reqMap.get("desc") != null) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly added a " - + "request scoped attribute when only the " - + "session scoped attribute should have been replaced"); - } - if (!"application".equals(appMap.get("desc"))) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly replaced " - + "application scoped attribute when only the " - + "session scoped attribute should have been replaced"); - } - if (!elContext.isPropertyResolved()) { - passed = false; - out.println( - JSFTestUtil.FAIL + " session scoped attribute properly replaced, " - + "but the propertyResolved property on the ELContext was" - + " not set to true"); - } - } - - sesMap.remove("desc"); - elContext.setPropertyResolved(false); - - resolver.setValue(elContext, null, "desc", "replaced"); - if (!"replaced".equals(appMap.get("desc"))) { - passed = false; - out.println("ELResolver.setValue() failed to replace existing" - + " application scoped attribute."); - out.println("Expected value to be: 'replaced', received: '" - + reqMap.get("desc") + '\''); - } else { - if (reqMap.get("desc") != null) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly added a " - + "request scoped attribute when only the " - + "application scoped attribute should have been replaced"); - } - if (sesMap.get("desc") != null) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly added a " - + "session scoped attribute when only the " - + "application scoped attribute should have been replaced"); - } - if (!elContext.isPropertyResolved()) { - passed = false; - out.println(JSFTestUtil.FAIL - + " application scoped attribute properly replaced, " - + "but the propertyResolved property on the ELContext was" - + " not set to true"); - } - } - - appMap.remove("desc"); - elContext.setPropertyResolved(false); - resolver.setValue(elContext, null, "desc", "newValue"); - if (!"newValue".equals(reqMap.get("desc"))) { - passed = false; - out.println("ELResolver.setValue() failed to add a new" - + " request scoped attribute."); - out.println("Expected value to be: 'newValue', received: '" - + reqMap.get("desc") + '\''); - } else { - if (sesMap.get("desc") != null) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly added a " - + "session scoped attribute when only the " - + "request scoped attribute should have been added"); - } - if (appMap.get("desc") != null) { - passed = false; - out.println("Test FAILED. ELResolver incorrectly added an " - + "application scoped attribute when only the " - + "request scoped attribute should have been added"); - } - if (!elContext.isPropertyResolved()) { - passed = false; - out.println( - JSFTestUtil.FAIL + " request scoped attribute properly added, " - + "but the propertyResolved property on the ELContext was" - + " not set to true"); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesScopedAttributeResolverSetValueTest - - public void facesScopedAttributeResolverFeatureDescriptorTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - ExternalContext extContext = getFacesContext().getExternalContext(); - boolean passed = true; - - Map reqMap = extContext.getRequestMap(); - Map sesMap = extContext.getSessionMap(); - Map appMap = extContext.getApplicationMap(); - - // ensure we have at least 1 in each scope - reqMap.put("req", "value1"); - sesMap.put("ses", "value1"); - appMap.put("app", "value1"); - - HashMap> names = new HashMap>(); - HashMap controlDescriptors = new HashMap(); - - for (Object key : reqMap.keySet()) { - names.put(key, reqMap.get(key).getClass()); - } - - for (Object key : sesMap.keySet()) { - names.put(key, sesMap.get(key).getClass()); - } - - for (Object key : appMap.keySet()) { - names.put(key, appMap.get(key).getClass()); - } - - // next build a map of 'control' FeatureDescriptors keyed off the name - for (Map.Entry entry : names.entrySet()) { - String name = (String) entry.getKey(); - Class clazz = (Class) entry.getValue(); - FeatureDescriptor descriptor = new FeatureDescriptor(); - descriptor.setName(name); - descriptor.setDisplayName(name); - descriptor.setValue("type", clazz); - descriptor.setValue("resolvable", Boolean.TRUE); - descriptor.setExpert(false); - descriptor.setHidden(false); - descriptor.setPreferred(true); - descriptor.setShortDescription(""); - controlDescriptors.put(name, descriptor); - } - - // begin test test - for (Iterator i = resolver.getFeatureDescriptors(elContext, null); i - .hasNext();) { - - FeatureDescriptor underTest = (FeatureDescriptor) i.next(); - - String name = underTest.getName(); - if (controlDescriptors.containsKey(name)) { - String result = validateFeatureDescriptor(controlDescriptors.get(name), - underTest); - - if (result.length() > 0) { - passed = false; - out.println("Test FAILED when validating the FeatureDescriptor" - + " for the '" + name + "' scoped attribute."); - out.println(result); - } - } - } - - reqMap.remove("req"); - sesMap.remove("ses"); - appMap.remove("app"); - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesScopedAttributeResolverFeatureDescriptorTest - - // ------------------------------------------------ ResourceBundleELResolver - public void facesResourceBundleResolverGetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - boolean passed = true; - - getFacesContext().getViewRoot().setLocale(Locale.ENGLISH); - SimpleResourceBundle_en result = (SimpleResourceBundle_en) resolver - .getValue(elContext, null, "simplerb"); - - if (result == null) { - passed = false; - out.println(JSFTestUtil.FAIL + " Unable to resolve defined " - + "ResourceBundle 'simplerb'"); - } else { - if (!elContext.isPropertyResolved()) { - passed = false; - out.println(JSFTestUtil.FAIL + " ResourceBundle resolved, but" - + " the propertyResolved property of the " - + " ELContext was not set to true."); - } - } - - getFacesContext().getViewRoot().setLocale(Locale.GERMAN); - elContext.setPropertyResolved(false); - SimpleResourceBundle_de result2 = (SimpleResourceBundle_de) resolver - .getValue(elContext, null, "simplerb"); - - if (result2 == null) { - passed = false; - out.println(JSFTestUtil.FAIL + " Unable to resolve defined " - + "ResourceBundle(DE) 'simplerb'"); - } else { - if (!elContext.isPropertyResolved()) { - passed = false; - out.println(JSFTestUtil.FAIL + " ResourceBundle(DE) resolved, but" - + " the propertyResolved property of the " - + " ELContext was not set to true."); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - } - - public void facesResourceBundleResolverGetTypeTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - boolean passed = true; - - Class type = resolver.getType(elContext, null, "simplerb"); - - if (type != ResourceBundle.class) { - passed = false; - out.println(JSFTestUtil.FAIL + " Unexpected type '" + type - + "' returned by getType(). Expected " - + "java.util.ResourceBundle.class"); - } else { - if (!elContext.isPropertyResolved()) { - passed = false; - out.println(JSFTestUtil.FAIL + " Correct type returned, but" - + " the propertyResolved property of the " - + " ELContext was not set to true."); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesResourceBundleResolverGetTypeTest - - public void facesResourceBundleResolverSetValueTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - boolean passed = true; - - try { - resolver.setValue(elContext, null, "simplerb", "someValue"); - passed = false; - out.println(JSFTestUtil.FAIL + " No Exception thrown when" - + " attemtping to call setValue() in the case where" - + " the resolved property is a ResourceBundle."); - } catch (Exception e) { - if (!(e instanceof PropertyNotWritableException)) { - out.println(JSFTestUtil.FAIL + " Exception thrown when attempting" - + " to call setValue() in the case where" - + " the resolved property is a ResourceBundle, but" - + " it wasn't an instance of" + " PropertyNotWriteableException."); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesResourceBundleResolverSetValueTest - - public void facesResourceBundleResolverIsReadOnlyTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - boolean passed = true; - - if (!resolver.isReadOnly(elContext, null, "simplerb")) { - out.println(JSFTestUtil.FAIL + " Expected isReadOnly() to return" - + " true when the resolved property is a " + " ResourceBundle."); - passed = false; - } else { - if (!elContext.isPropertyResolved()) { - out.println(JSFTestUtil.FAIL + " isReadOnly() returned the correct" - + " value, but the propertyResolved property of the" - + " ELContext was not set to true."); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END facesResourceBundleResolverIsReadOnlyTest - - public void facesResourceBundleResolverFeatureDescriptorTest( - HttpServletRequest request, HttpServletResponse response) - throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - boolean fd_Found = false; - - // Setup golden FeatureDescriptor. - FeatureDescriptor controlDesc = new FeatureDescriptor(); - controlDesc.setValue("resolvable", Boolean.TRUE); - controlDesc.setValue("type", ResourceBundle.class); - controlDesc.setName("simplerb"); - controlDesc.setDisplayName("simple"); - controlDesc.setExpert(false); - controlDesc.setHidden(false); - controlDesc.setPreferred(true); - controlDesc.setShortDescription(""); - - for (Iterator i = resolver.getFeatureDescriptors(elContext, null); i - .hasNext();) { - FeatureDescriptor test = (FeatureDescriptor) i.next(); - // - // out.println("DEBUG ===> FeatureDescriptor Name: " + - // test.getName() + NL); - - if ("simplerb".equals(test.getName())) { - String result = validateFeatureDescriptor(controlDesc, test); - fd_Found = true; - - if (result.length() != 0) { - out.println(result); - } - break; - } - } - - if (fd_Found) { - out.println(JSFTestUtil.PASS); - } else { - out.println( - "Test FAILED! Could not find FeatureDescriptor with name of 'simplerb'"); - } - - } // END facesResourceBundleResolverFeatureDescriptorTest - - public void facesConfigELResolverRegistrationTest(HttpServletRequest request, - HttpServletResponse response) throws IOException { - - PrintWriter out = response.getWriter(); - ELContext elContext = getFacesContext().getELContext(); - ELResolver resolver = elContext.getELResolver(); - - Collection base = new ArrayList(); - base.add("value1"); - base.add("value2"); - base.add("value3"); - - try { - Integer result = (Integer) resolver.getValue(elContext, base, "size"); - - if (result == null) { - out.println(JSFTestUtil.FAIL + " Custom resolver not called."); - return; - } - - if (!"3".equals(result.toString())) { - out.println(JSFTestUtil.FAIL + " Unexpected result returned;" - + " custom resolver not called."); - return; - } - } catch (Exception e) { - out.println( - "Test FAILED Unexpected exception thrown " + "during test: " + e); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END facesConfigELResolverRegistrationTest - - // --------------------------------------------------------- Private Methods - private boolean testELGetValue(String scope, ELResolver resolver, - ELContext context, PrintWriter out) { - - boolean passed = true; - - String result = (String) resolver.getValue(context, null, "desc"); - - if (!scope.equals(result)) { - passed = false; - out.println( - JSFTestUtil.FAIL + " Expected managed bean resolver to " + "search " - + scope + " scope first, but instead it " + "searched " + result); - } else { - if (!context.isPropertyResolved()) { - passed = false; - out.println(JSFTestUtil.FAIL + " ELResolver failed to set " - + "propertyResolved to true after resolving a " + scope - + "scoped attribute."); - } - } - - return passed; - } - - private static String validateFeatureDescriptor(FeatureDescriptor control, - FeatureDescriptor underTest) { - - StringBuffer sb = new StringBuffer(64); - - if (!control.getDisplayName().equals(underTest.getDisplayName())) { - sb.append("\tExpected displayName to be '"); - sb.append(control.getDisplayName()); - sb.append("', received: '"); - sb.append(underTest.getDisplayName()).append("'\n"); - } - - if (!control.getValue("type").equals(underTest.getValue(ELResolver.TYPE))) { - sb.append("\tExpected ELResolver.TYPE property to return "); - sb.append(control.getValue("type")).append(" (type is "); - sb.append(control.getValue("type").getClass().getName()); - sb.append("), received: "); - sb.append(underTest.getValue(ELResolver.TYPE)); - sb.append(" (type is "); - sb.append(underTest.getValue(ELResolver.TYPE).getClass().getName()); - sb.append(")\n"); - } - - if (!control.getValue("resolvable") - .equals(underTest.getValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME))) { - sb.append("\tExpected ELResolver.RESOLVABLE_AT_DESIGN_TYPE"); - sb.append("to be ").append(control.getValue("resolvable")); - sb.append(", received: "); - sb.append(underTest.getValue(ELResolver.RESOLVABLE_AT_DESIGN_TIME)); - sb.append('\n'); - } - - if (control.getShortDescription().length() == 0) { - if (underTest.getShortDescription() == null) { - sb.append("\tExpected a non-null description.\n"); - } - } else { - if (!control.getShortDescription() - .equals(underTest.getShortDescription().trim())) { - sb.append("\tExpected description to be '"); - sb.append(control.getShortDescription()).append("', "); - sb.append("received: '").append(underTest.getShortDescription()); - sb.append("'\n"); - } - } - - if (control.isExpert() != underTest.isExpert()) { - sb.append("\tExpected expert property to be "); - sb.append(control.isExpert()).append('\n'); - } - - if (control.isHidden() != underTest.isHidden()) { - sb.append("\tExpected hidden property to be "); - sb.append(control.isHidden()).append('\n'); - } - - if (control.isPreferred() != underTest.isPreferred()) { - sb.append("\tExpected preferred property to be "); - sb.append(control.isPreferred()).append('\n'); - } - - return sb.toString(); - - } // END validateFeatureDescriptor - - /** - * @return return a two element array with the Faces ELResolver as the first - * element, and the JSP ELResolver as the second - */ - private ELResolver[] getELResolvers(ELContext[] contexts) { - - ELResolver[] resolvers = new ELResolver[2]; - resolvers[FACES_PHASE] = contexts[FACES_PHASE].getELResolver(); - resolvers[JSP_PHASE] = contexts[JSP_PHASE].getELResolver(); - - return resolvers; - - } // END getELResolvers - - /** - * @return return a two element array with the Faces ELContext as the first - * element, and the JSP ELContext as the second - */ - private ELContext[] getELContexts(HttpServletRequest request, - HttpServletResponse response) { - - ELContext[] contexts = new ELContext[2]; - contexts[FACES_PHASE] = getFacesContext().getELContext(); - - PageContext context = JspFactory.getDefaultFactory().getPageContext(this, - request, response, null, true, 1024, true); - contexts[JSP_PHASE] = context.getELContext(); - - return contexts; - - } // END getELContexts - - private static String getTestPhase(int phase) { - - if (phase < FACES_PHASE || phase > JSP_PHASE) { - throw new IllegalArgumentException("Unknown test phase"); - } - if (phase == FACES_PHASE) { - return "[FACES]"; - } else { - return "[JSP]"; - } - - } // END getTestPhase - - private static String validateImplicitObjectValue(ELContext context, - ELResolver resolver, ImplicitObjectInfo info) { - - StringBuffer sb = new StringBuffer(64); - String name = info.getName(); - Object result = resolver.getValue(context, null, name); - - if (!info.getValueType().isAssignableFrom(result.getClass())) { - sb.append(JSFTestUtil.FAIL + " Passing a null base, and '"); - sb.append(name).append("' as the property"); - sb.append(" didn't result getValue() returning an instance of "); - sb.append(info.getValueType().getName()); - sb.append("\nObject received: ").append(result.getClass().getName()); - } else { - if (!context.isPropertyResolved()) { - sb.append(JSFTestUtil.FAIL + " ELResolver.getValue() "); - sb.append("property resolved the '").append(name); - sb.append("' implicit object, but it didn't call"); - sb.append(" ELContext.setPropertyResolved(true)."); - } - } - - return sb.toString(); - - } // END validateImplicitObjectValue - - private static String validateImplicitObjectSetValue(ELContext context, - ELResolver resolver, ImplicitObjectInfo info) { - - StringBuffer sb = new StringBuffer(); - try { - resolver.setValue(context, null, info.getName(), "value"); - sb.append( - JSFTestUtil.FAIL + " No exception thrown when calling setValue()"); - sb.append(" with the base parameter set to null, and the property"); - sb.append(" parameter set to '").append(info.getName()); - sb.append("'."); - } catch (PropertyNotWritableException pnwe) { - // we're good to go - } catch (Exception e) { - sb.append( - JSFTestUtil.FAIL + " Expected a PropertyNotWritableException to"); - sb.append( - " be thrown when calling setValue() with a null base parameter"); - sb.append(" and a property parameter set to '"); - sb.append(info.getName()).append("'.\n"); - sb.append("Exception received: ").append(e.getClass().getName()); - } - - if (context.isPropertyResolved()) { - sb.append(JSFTestUtil.FAIL + " propertyResolved property on ELContext"); - sb.append(" was set to true even though property was not writable."); - } - - return sb.toString(); - } - - private static String validateImplicitObjectReadOnly(ELContext context, - ELResolver resolver, ImplicitObjectInfo info) { - - StringBuffer sb = new StringBuffer(); - String name = info.getName(); - if (!resolver.isReadOnly(context, null, name)) { - sb.append(JSFTestUtil.FAIL + " Expected isReadOnly() to return true"); - sb.append(" for implicit object '").append(name).append("'."); - } - - if (!context.isPropertyResolved()) { - sb.append( - JSFTestUtil.FAIL + " isReadOnly() returned the expected result"); - sb.append(" but didn't set the propertyResolved property of the"); - sb.append(" ELContext to true."); - } - - return sb.toString(); - - } - - private static String validateImplicitObjectType(ELContext context, - ELResolver resolver, ImplicitObjectInfo info) { - - StringBuffer sb = new StringBuffer(); - String name = info.getName(); - Object result = resolver.getType(context, null, name); - if (info.getType() == null) { - if (result != null) { - - sb.append( - JSFTestUtil.FAIL + " Expected getType() to return null, when"); - sb.append(" the base parameter was null and the property parameter "); - sb.append("was '").append(name).append('\''); - sb.append("\nReceived: ").append(result); - } else { - if (!context.isPropertyResolved()) { - - sb.append(JSFTestUtil.FAIL + " ELResolver.getType() returned the"); - sb.append(" the the expected value for the '").append(name); - sb.append("' implicit object, but it didn't call"); - sb.append(" ELContext.setPropertyResolved(true)."); - } - } - } else { - if (!info.getType().equals(result)) { - sb.append(JSFTestUtil.FAIL + " Expected getType() to return '"); - sb.append(info.getType().getName()).append("' when"); - sb.append(" the base parameter was null and the property"); - sb.append(" parameter was '").append(name).append('\''); - sb.append("\nReceived: ").append(result); - } else { - if (!context.isPropertyResolved()) { - - sb.append(JSFTestUtil.FAIL + " ELResolver.getType() returned the"); - sb.append(" the the expected value for the '").append(name); - sb.append("' implicit object, but it didn't call"); - sb.append(" ELContext.setPropertyResolved(true)."); - } - } - } - - return sb.toString(); - - } // END validateImplicitObjectType - - // ---------------------------------------------------------- Nested Classes - private static class ImplicitObjectInfo { - - private String name; - - private Class type; - - private int phase; - - private boolean isReadOnly; - - private Class valueType; - - ImplicitObjectInfo(String name, Class type, Class valueType, int phase, - boolean isReadOnly) { - - this.name = name; - this.type = type; - this.valueType = valueType; - this.phase = phase; - this.isReadOnly = isReadOnly; - - } // END ImplicitObjectInfo - - public String getName() { - - return name; - - } // END getName - - public Class getType() { - - return type; - - } // END getType - - public int getPhase() { - - return phase; - - } // END getPhase - - public boolean isReadOnly() { - - return isReadOnly; - - } // END isReadOnly - - public Class getValueType() { - - return valueType; - - } // END getValueType - } // END ImplicitObjectInfo -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/URLClient.java b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/URLClient.java deleted file mode 100644 index 388060f24a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/URLClient.java +++ /dev/null @@ -1,425 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)URLClient.java 1.5 04/22/04 - */ - -package com.sun.ts.tests.jsf.spec.el.elresolvers; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.lib.util.TestUtil; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_el_resolvers_web"; - - private static boolean init = false; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: managedBeanELResolverFeatureDescriptorTest - * @assertion_ids: PENDING - * @test_Strategy: Validate that the feature descriptors for managed beans - * conform to the requirements: - ELResolver.TYPE -> the - * actual class representation of the bean type as defined by - * managed-bean-class - ELResolver.RESOLVABLE_AT_DESIGN_TIME - * -> Boolean.TRUE - Name and displayName properties are the - * value of managed-bean-name - Hidden and Expert properties - * are false - Preferred property is true - shortDescription - * is populated with the description of the managed bean - * otherwise null if no description is present. This test uses - * the ELResolver from both Faces and JSP. - * @since 1.2 - */ - public void managedBeanELResolverFeatureDescriptorTest() throws Fault { - init(); - TEST_PROPS.setProperty(APITEST, - "managedBeanELResolverFeatureDescriptorTest"); - invoke(); - } - - /** - * @testName: facesImplicitObjectResolverFeatureDescriptorTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the JSP and Faces defined implicit objects conform - * to the following requirements. - ELResolver.TYPE -> matches - * the types defined in table 5-9 of the JSF Spec (in the - * non-jsp case). - ELResolver.TYPE -> view -> - * jakarta.faces.component.UIViewRoot facesContext -> - * jakarta.faces.component.FacesContext (in the JSP case) - - * ELResolver.RESOLVABLE_AT_DESIGN_TIME -> Boolean.TRUE - Name - * and displayName properties are the name of the implicit - * object - Hidden and Expert properties are false - Preferred - * property is true - shortDescription is non-null. This test - * uses the ELResolver from both Faces and JSP. - * @since 1.2 - */ - public void facesImplicitObjectResolverFeatureDescriptorTest() throws Fault { - init(); - TEST_PROPS.setProperty(APITEST, - "facesImplicitObjectResolverFeatureDescriptorTest"); - invoke(); - } - - /* - * @testName: facesImplicitObjectResolverGetValueTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the following: - for each implicit object listed in - * table 5-9, ensure the property type is returned for each implict object - * (Faces case) - for the view and facesContext implicit object, a UIViewRoot - * and FacesContext object is returned (respectively - JSP case) - - * ELContext.isPropertyResolved() returns true - * - * @since 1.2 - */ - public void facesImplicitObjectResolverGetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesImplicitObjectResolverGetValueTest"); - invoke(); - - } // END facesImplicitObjectResolverGetValueTest - - /* - * @testName: facesImplicitObjectResolverGetTypeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure when calling ELResolver.getType() (either JSP (or - * Faces) null is returned and ELContext.isPropertyResolved() returns true for - * all spec defined implicit objects. This test uses the ELResolvers from both - * JSP and Faces. - * - * @since 1.2 - */ - public void facesImplicitObjectResolverGetTypeTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesImplicitObjectResolverGetTypeTest"); - invoke(); - - } // END facesImplicitObjectResolverGetTypeTest - - /* - * @testName: facesImplicitObjectResolverSetValueTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure a PropertyNotFoundException is thrown when calling - * ELResolver.setValue() when base is null, matches any of the spec defined - * implicit objects. Also ensure ELContext.isPropertyResolved() returns false. - * This test uses the ELResolvers from both JSP and Faces. - * - * @since 1.2 - */ - public void facesImplicitObjectResolverSetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesImplicitObjectResolverSetValueTest"); - invoke(); - - } // END facesImplicitObjectResolverSetValueTest - - /* - * @testName: facesImplicitObjectResolverIsReadOnlyTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure ELResolver.isReadOnly() returns true when base is - * null and property is any of the spec defined implicit objects. Also ensure - * ELContext.isPropertyResolved() returns true. This test uses the ELResolvers - * from both JSP and Faces. - * - * @since 1.2 - */ - public void facesImplicitObjectResolverIsReadOnlyTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, - "facesImplicitObjectResolverIsReadOnlyTest"); - invoke(); - - } // END facesImplicitObjectResolverIsReadOnlyTest - - /* - * @testName: facesManagedBeanResolverGetValueTest - * - * @assertion_ids: JSF:SPEC:85 - * - * @test_Strategy: Ensure that if base is null, and the property parameter - * matches the name of a managed bean: - search the request, session, and - * application scopes for that attribute name, if found, a new managed bean - * will not be created. - otherwise create and return a new instance of the - * managed bean and set the propertyResolved property on the ELContext to - * true. This test uses the ELResolvers from both JSP and Faces. - * - * @since 1.2 - */ - public void facesManagedBeanResolverGetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesManagedBeanResolverGetValueTest"); - invoke(); - - } // END facesManagedBeanResolverGetValueTest - - /* - * @testName: facesArrayListMapBeanResolverTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure that Arrays, Lists, Maps, and Beans can be properly - * handled using the ELResolver chain returned by - * FacesContext.getELContext().getELResolver(); - * - * @since 1.2 - */ - public void facesArrayListMapBeanResolverTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesArrayListMapBeanResolverTest"); - invoke(); - - } // END facesArrayListMapBeanResolverTest - - /* - * @testName: facesScopedAttributeResolverGetValueTest - * - * @assertion_ids: JSF:SPEC:85 - * - * @test_Strategy: Ensure the following: - when searching scopes, ensure - * request, session, and application are searched in that order - when a value - * is resolved in any of those scopes, ELContext.isPropertyResolved() returns - * true - If a value isn't resolved, null is returned and - * ELContext.isPropertyResolved() returns false - * - * @since 1.2 - */ - public void facesScopedAttributeResolverGetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesScopedAttributeResolverGetValueTest"); - invoke(); - - } // END facesScopedAttributeResolverGetValueTest - - /* - * @testName: facesScopedAttributeResolverSetValueTest - * - * @assertion_ids: JSF:SPEC:85 - * - * @test_Strategy: Ensure the following behavior for setValue() - if the value - * already exists in request, session, or application (searched in that order) - * replace the existing value with the new value provided to setValue(). - if - * the attribute doesn't already exist set a new value in the request scope - * - * @since 1.2 - */ - public void facesScopedAttributeResolverSetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesScopedAttributeResolverSetValueTest"); - invoke(); - - } // END facesScopedAttributeResolverSetValueTest - - /* - * @testName: facesScopedAttributeResolverFeatureDescriptorTest - * - * @assertion_ids: JSF:SPEC:85 - * - * @test_Strategy: Validate the following for the feature descriptors returned - * by the ScopedAttributeResolver: - There is one feature descriptor for each - * attribute in request, session, and application scopes. - The name and - * displayName properties are the name of the attribute - The value associated - * with ELResolver.TYPE is the runtime type of the attribute value - The value - * associated with ELResolver.RESOLVABLE_AT_DESIGN_TIME is Boolean.TRUE - The - * hidden and exper properties are false - The preferred property is true - - * The shortDescription property is non-null - * - * @since 1.2 - */ - public void facesScopedAttributeResolverFeatureDescriptorTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, - "facesScopedAttributeResolverFeatureDescriptorTest"); - invoke(); - - } // END facesScopedAttributeResolverFeatureDescriptorTest - - /* - * @testName: facesResourceBundleResolverGetValueTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the ELResolver.getValue() is able to resolve various - * ResouceBundles (using the var of 'simplerb' defined in the faces-config) - * based on the Locale of the UIViewRoot. Additionally ensure that the - * propertyResolved property of the ELContext is set to true if the property - * was properly resolved. - * - * @since 1.2 - */ - public void facesResourceBundleResolverGetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesResourceBundleResolverGetValueTest"); - invoke(); - - } // END facesResourceBundleResolverGetValueTest - - /* - * @testName: facesResourceBundleResolverGetTypeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure ELResolver.getType() returns ResourceBundle.class - * when calling getType() where the resolved property will be a a - * ResourceBundle. - * - * @since 1.2 - */ - public void facesResourceBundleResolverGetTypeTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesResourceBundleResolverGetTypeTest"); - invoke(); - - } // END facesResourceBundleResolverGetTypeTest - - /* - * @testName: facesResourceBundleResolverSetValueTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure a PropertyNotFoundException is thrown when calling - * setValue() when the resolved property will be a ResourceBundle. - * - * @since 1.2 - */ - public void facesResourceBundleResolverSetValueTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesResourceBundleResolverSetValueTest"); - invoke(); - - } // END facesResourceBundleResolverSetValueTest - - /* - * @testName: facesResourceBundleResolverIsReadOnlyTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure isReadOnly() returns true and the propertyResolved - * property is set to true when the resolved property is a ResourceBundle. - * - * @since 1.2 - */ - public void facesResourceBundleResolverIsReadOnlyTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, - "facesResourceBundleResolverIsReadOnlyTest"); - invoke(); - - } // END facesResourceBundleResolverIsReadOnlyTest - - /* - * @testName: facesResourceBundleResolverFeatureDescriptorTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the FeatureDescriptor returned by the - * ResourceBundleResolver is properly configured. - * - * @since 1.2 - */ - public void facesResourceBundleResolverFeatureDescriptorTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, - "facesResourceBundleResolverFeatureDescriptorTest"); - invoke(); - - } // END facesResourceBundleResolverFeatureDescriptorTest - - /* - * @testName: facesConfigELResolverRegistrationTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure ELResolvers specified within a faces-config file are - * used when performing EL evaluations. - * - * @since 1.2 - */ - public void facesConfigELResolverRegistrationTest() throws Fault { - - init(); - TEST_PROPS.setProperty(APITEST, "facesConfigELResolverRegistrationTest"); - invoke(); - - } // END facesConfigELResolverRegistrationTest - - // --------------------------------------------------------- Private Methods - - private void init() { - - if (!init) { - /* - * Make a quick request to the FacesServlet not caring about the result - */ - try { - TestUtil.logMsg("MAKING REQUEST FOR FACES SERVLET"); - TEST_PROPS.setProperty(REQUEST, - "GET " + CONTEXT_ROOT + "/faces/test.xhtml HTTP/1.0"); - TEST_PROPS.setProperty(IGNORE_STATUS_CODE, "true"); - TEST_PROPS.setProperty(IGNORE_BODY, "true"); - invoke(); - } catch (Exception e) { - // ignore it - } - init = true; - } - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/build.xml b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/build.xml deleted file mode 100644 index 63395b83af..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/faces-config.xml deleted file mode 100644 index 1ba4e164f6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/faces-config.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - A simple resource bundle - - - simple - - - com.sun.ts.tests.jsf.common.resourcebundle.SimpleResourceBundle - - - simplerb - - - - com.sun.ts.tests.jsf.spec.el.elresolvers.SimpleMethodELResolver - - - - - - - nodescription - - - java.util.Date - - - request - - - - - - This is a description - - - description - - - java.util.Date - - - request - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.war.sun-web.xml deleted file mode 100644 index e7e5904b6f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_el_resolvers_web - diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.xml b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.xml deleted file mode 100644 index fbb12809db..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/jsf_el_resolvers_web.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - jsf_el_resolvers - - com.sun.faces.validateXml - true - - - TestServlet - com.sun.ts.tests.jsf.spec.el.elresolvers.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/test.jsp b/src/com/sun/ts/tests/jsf/spec/el/elresolvers/test.jsp deleted file mode 100644 index f55c160bc1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/elresolvers/test.jsp +++ /dev/null @@ -1,19 +0,0 @@ -<%-- - - Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - - This program and the accompanying materials are made available under the - terms of the Eclipse Public License v. 2.0, which is available at - http://www.eclipse.org/legal/epl-2.0. - - This Source Code may also be made available under the following Secondary - Licenses when the conditions for such availability set forth in the - Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - version 2 with the GNU Classpath Exception, which is available at - https://www.gnu.org/software/classpath/license.html. - - SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - ---%> - -PAGE INVOKED diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/build.xml b/src/com/sun/ts/tests/jsf/spec/el/managedbean/build.xml deleted file mode 100644 index 4547e4282c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedBean.java deleted file mode 100644 index 7e93761710..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedBean.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -@jakarta.inject.Named("applicationScoped") @jakarta.enterprise.context.ApplicationScoped -public class ApplicationScopedBean implements Serializable { - { - this.setStringProperty("default"); - } - - public ApplicationScopedBean() { - - System.out.println("ApplicationScopedBean created."); - - } - - // -------------------------------------------------------------- Properties - - private String stringProperty; - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String s) { - - this.stringProperty = s; - - } // END setStringProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPackagePrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPackagePrivateBean.java deleted file mode 100644 index 6129ffad08..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPackagePrivateBean.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("applicationScopedPackagePrivate") @jakarta.enterprise.context.ApplicationScoped -public class ApplicationScopedPackagePrivateBean extends ScopedBean - implements Serializable { - - @PostConstruct - void onPostConstruct() { - setPostConstructProperty( - "application package private PostConstruct method invoked"); - } - - @PreDestroy - void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "application package private PreDestroy method invoked"); - } - - public ApplicationScopedPackagePrivateBean() { - System.out.println("ApplicationScopedPackagePrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPrivateBean.java deleted file mode 100644 index 140a10ee28..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPrivateBean.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("applicationScopedPrivate") @jakarta.enterprise.context.ApplicationScoped -public class ApplicationScopedPrivateBean extends ScopedBean - implements Serializable { - - private @PostConstruct void onPostConstructPrivate() { - setPostConstructProperty( - "application private PostConstruct method invoked"); - } - - private @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("application private PreDestroy method invoked"); - } - - public ApplicationScopedPrivateBean() { - System.out.println("ApplicationScopedPrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedProtectedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedProtectedBean.java deleted file mode 100644 index 8b5c774584..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedProtectedBean.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("applicationScopedProtected") @jakarta.enterprise.context.ApplicationScoped -public class ApplicationScopedProtectedBean extends ScopedBean - implements Serializable { - - protected @PostConstruct void onPostConstruct() { - setPostConstructProperty( - "application protected PostConstruct method invoked"); - } - - protected @PreDestroy void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "application protected PreDestroy method invoked"); - } - - public ApplicationScopedProtectedBean() { - System.out.println("ApplicationScopedProtectedBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPublicBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPublicBean.java deleted file mode 100644 index 69de39bc23..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ApplicationScopedPublicBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("applicationScopedPublic") @jakarta.enterprise.context.ApplicationScoped -public class ApplicationScopedPublicBean extends ScopedBean - implements Serializable { - - public @PostConstruct void onPostConstruct() { - setPostConstructProperty("application public PostConstruct method invoked"); - } - - public @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("application public PreDestroy method invoked"); - } - - public ApplicationScopedPublicBean() { - System.out.println("ApplicationScopedPublicBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/LinkedHashMap.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/LinkedHashMap.java deleted file mode 100644 index e3503cf68f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/LinkedHashMap.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; - -/** - *

- * Simple {@link java.util.Map} to allow order validation of entries added by - * the JSF implementation. - */ -public class LinkedHashMap extends HashMap { - - List linkedList; - - public LinkedHashMap() { - super(); - linkedList = new LinkedList(); - } - - // ---------------------------------------------- Methods from java.util.Map - - /** - *

- * In addition to the standard behavior of the HashMap, this stores the keys - * in a {@link LinkedList}. - *

- */ - public Object put(Object key, Object value) { - - linkedList.add(key); - return super.put(key, value); - - } // END put - - // ---------------------------------------------------------- Public Methods - - /** - *

- * Return the backing {@link LinkedList}. - *

- */ - public List getKeyList() { - - return linkedList; - - } // END getKeyList - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ListBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ListBean.java deleted file mode 100644 index 0e8b6fd262..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ListBean.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)NoScopeBean.java 1.1 04/16/04 - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; -import java.util.ArrayList; - -public class ListBean extends ArrayList implements Serializable { - - public ListBean() { - - super(); - System.out.println("List created."); - - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ManagedPropertyBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ManagedPropertyBean.java deleted file mode 100644 index 915ccd0a64..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ManagedPropertyBean.java +++ /dev/null @@ -1,670 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class ManagedPropertyBean implements Serializable { - - public ManagedPropertyBean() { - - System.out.println("ManagedPropertyBean created."); - mapProperty = new HashMap(); - mapProperty.put("nullKey", "not null"); - primList = new ArrayList(); - objList = new ArrayList(); - - } // END ManagedPropertyBean - - // --------------------------------------------------------- Bean Properties - - private String nullProperty = "not null"; - - public String getNullProperty() { - - return nullProperty; - - } // END getNullProperty - - public void setNullProperty(String nullProperty) { - - this.nullProperty = nullProperty; - - } // END setNullProperty - - // ------------------------------------------------------------------------- - - private String stringProperty; - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String stringProperty) { - - this.stringProperty = stringProperty; - - } // END setStringProperty - - // ------------------------------------------------------------------------- - - private Map mapProperty; - - public Map getMapProperty() { - - return mapProperty; - - } // END getMapProperty - - public void setMapProperty(Map mapProperty) { - - this.mapProperty = mapProperty; - - } // END setMapProperty - - // ------------------------------------------------------------------------- - - private List listProperty; - - public List getListProperty() { - - return listProperty; - - } // END getListProperty - - public void setListProperty(List listProperty) { - - this.listProperty = listProperty; - - } // END setListProperty - - // ------------------------------------------------------------------------- - - private Map typedMapProperty; - - public Map getByteMapProperty() { - - return typedMapProperty; - - } // END getTypedMapProperty - - public void setByteMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END setTypedMapProperty - - public Map getCharMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setCharMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getCharMapProperty - - public Map getBooleanMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setBooleanMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getBooleanMapProperty - - public Map getShortMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setShortMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getShortMapProperty - - public Map getIntegerMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setIntegerMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getIntegerMapProperty - - public Map getLongMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setLongMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getLongMapProperty - - public Map getFloatMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setFloatMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getFloatMapProperty - - public Map getDoubleMapProperty() { - - return typedMapProperty; - - } // END getCharMapProperty - - public void setDoubleMapProperty(Map typedMapProperty) { - - this.typedMapProperty = typedMapProperty; - - } // END getDoubleMapProperty - - // ------------------------------------------------------------------------- - - private List typedListProperty; - - public List getByteListProperty() { - - return typedListProperty; - - } // END getTypedListProperty - - public void setByteListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END setTypedListProperty - - public List getCharListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setCharListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getCharListProperty - - public List getBooleanListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setBooleanListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getBooleanListProperty - - public List getShortListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setShortListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getShortListProperty - - public List getIntegerListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setIntegerListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getIntegerListProperty - - public List getLongListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setLongListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getLongListProperty - - public List getFloatListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setFloatListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getFloatListProperty - - public List getDoubleListProperty() { - - return typedListProperty; - - } // END getCharListProperty - - public void setDoubleListProperty(List typedListProperty) { - - this.typedListProperty = typedListProperty; - - } // END getDoubleListProperty - - // ------------------------------------------------------------------------- - - byte bytePrim; - - Byte byteObj; - - public void setBytePrim(byte bytePrim) { - - this.bytePrim = bytePrim; - primList.add(Byte.valueOf(bytePrim)); - - } // END setBytePrim - - public byte getBytePrim() { - - return bytePrim; - - } // END getBytePrim - - public void setByteObj(Byte byteObj) { - - this.byteObj = byteObj; - objList.add(byteObj); - - } // END setByteObj - - public Byte getByteObj() { - - return byteObj; - - } // END getByteObj - - // ------------------------------------------------------------------------- - - char charPrim; - - Character charObj; - - public void setCharPrim(char charPrim) { - - this.charPrim = charPrim; - primList.add(Character.valueOf(charPrim)); - - } // END setCharPrim - - public char getCharPrim() { - - return charPrim; - - } // END getCharPrim - - public void setCharObj(Character charObj) { - - this.charObj = charObj; - objList.add(charObj); - - } // END setCharObj - - public Character getCharObj() { - - return charObj; - - } // END getCharObj - - // ------------------------------------------------------------------------- - - boolean booleanPrim; - - Boolean booleanObj; - - public void setBooleanPrim(boolean booleanPrim) { - - this.booleanPrim = booleanPrim; - primList.add(Boolean.valueOf(booleanPrim)); - - } // END setBooleanPrim - - public boolean getBooleanPrim() { - - return booleanPrim; - - } // END getBooleanPrim - - public void setBooleanObj(Boolean booleanObj) { - - this.booleanObj = booleanObj; - objList.add(booleanObj); - - } // END setBooleanObj - - public Boolean getBooleanObj() { - - return booleanObj; - - } // END getBooleanObj - - // ------------------------------------------------------------------------- - - short shortPrim; - - Short shortObj; - - public void setShortPrim(short shortPrim) { - - this.shortPrim = shortPrim; - primList.add(Short.valueOf(shortPrim)); - - } // END setShortPrim - - public short getShortPrim() { - - return shortPrim; - - } // END getShortPrim - - public void setShortObj(Short shortObj) { - - this.shortObj = shortObj; - objList.add(shortObj); - - } // END setShortObj - - public Short getShortObj() { - - return shortObj; - - } // END getShortObj - - // ------------------------------------------------------------------------- - - int intPrim; - - Integer intObj; - - public void setIntegerPrim(int intPrim) { - - this.intPrim = intPrim; - primList.add(Integer.valueOf(intPrim)); - - } // END setIntegerPrim - - public int getIntegerPrim() { - - return intPrim; - - } // END getIntegerPrim - - public void setIntegerObj(Integer intObj) { - - this.intObj = intObj; - objList.add(intObj); - - } // END setIntegerObj - - public Integer getIntegerObj() { - - return intObj; - - } // END getIntegerObj - - // ------------------------------------------------------------------------- - - long longPrim; - - Long longObj; - - public void setLongPrim(long longPrim) { - - this.longPrim = longPrim; - primList.add(Long.valueOf(longPrim)); - - } // END setLongPrim - - public long getLongPrim() { - - return longPrim; - - } // END getLongPrim - - public void setLongObj(Long longObj) { - - this.longObj = longObj; - objList.add(longObj); - - } // END setLongObj - - public Long getLongObj() { - - return longObj; - - } // END getLongObj - - // ------------------------------------------------------------------------- - - float floatPrim; - - Float floatObj; - - public void setFloatPrim(float floatPrim) { - - this.floatPrim = floatPrim; - primList.add(Float.valueOf(floatPrim)); - - } // END setFloatPrim - - public float getFloatPrim() { - - return floatPrim; - - } // END getFloatPrim - - public void setFloatObj(Float floatObj) { - - this.floatObj = floatObj; - objList.add(floatObj); - - } // END setFloatObj - - public Float getFloatObj() { - - return floatObj; - - } // END getFloatObj - - // ------------------------------------------------------------------------- - - double doublePrim; - - Double doubleObj; - - public void setDoublePrim(double doublePrim) { - - this.doublePrim = doublePrim; - primList.add(Double.valueOf(doublePrim)); - - } // END setDoublePrim - - public double getDoublePrim() { - - return doublePrim; - - } // END getDoublePrim - - public void setDoubleObj(Double doubleObj) { - - this.doubleObj = doubleObj; - objList.add(doubleObj); - - } // END setDoubleObj - - public Double getDoubleObj() { - - return doubleObj; - - } // END getDoubleObj - - // ------------------------------------------------------------------------- - - List primList; - - public List getPrimList() { - - return primList; - - } // END getPrimList() - - // ------------------------------------------------------------------------- - - List objList; - - public List getObjList() { - - return objList; - - } // END getObjList - - // ------------------------------------------------------------------------- - - private String privString; - - private void setPrivate(String privString) { - - this.privString = privString; - - } // END setPrivate - - public String getPrivate() { - - return privString; - - } // END getPrivate(); - - // ------------------------------------------------------------------------- - - private Object mBean; - - public void setBean(Object mBean) { - - this.mBean = mBean; - - } // END setBean - - public Object getBean() { - - return mBean; - - } // END getBean - - // ------------------------------------------------------------------------- - - private Map orderedMap; - - public Map getOrderedMap() { - - if (orderedMap == null) { - orderedMap = new LinkedHashMap(); - } - - return orderedMap; - - } // END getOrderedMap - - public void setOrderedMap(Map orderedMap) { - - this.orderedMap = orderedMap; - - } // END setOrderedMap - - // ------------------------------------------------------------------------- - - private List orderedList; - - public List getOrderedList() { - - return orderedList; - - } // END getOrderedList - - public void setOrderedList(List orderedList) { - - this.orderedList = orderedList; - - } // END setOrderedList - - // ------------------------------------------------------------------------- - - private int[] arrayProperty; - - public int[] getArrayProperty() { - - if (arrayProperty == null) { - arrayProperty = new int[1]; - } - return arrayProperty; - - } // END getArrayProperty - - public void setArrayProperty(int[] arrayProperty) { - - this.arrayProperty = arrayProperty; - - } // END setArrayProperty - - // ------------------------------------------------------------------------- - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/MapBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/MapBean.java deleted file mode 100644 index 0d5392f478..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/MapBean.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; -import java.util.HashMap; - -public class MapBean extends HashMap implements Serializable { - - public MapBean() { - - super(); - System.out.println("MapBean created."); - - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoScopeBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoScopeBean.java deleted file mode 100644 index 2fe9873a0f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoScopeBean.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -@jakarta.inject.Named("noScope") -public class NoScopeBean implements Serializable { - private String stringProperty; - - { - this.setStringProperty("default"); - } - - public NoScopeBean() { - - System.out.println("NoScopeBean created."); - - } - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String s) { - - this.stringProperty = s; - - } // END setStringProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoZeroArgCtorBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoZeroArgCtorBean.java deleted file mode 100644 index 7e5e781dc9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/NoZeroArgCtorBean.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -public class NoZeroArgCtorBean implements Serializable { - - public NoZeroArgCtorBean(String param) { - - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/PreDestroyProp.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/PreDestroyProp.java deleted file mode 100644 index c0a9e8b143..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/PreDestroyProp.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -public class PreDestroyProp { - - private static String preDestroyProperty = "PreDestroyProperty NOT SET"; - - public static String getPreDestroyProperty() { - - return preDestroyProperty; - - } // END getPreDestroyProperty - - public static void setPreDestroyProperty(String newPreDestroyProperty) { - - preDestroyProperty = newPreDestroyProperty; - - } // END setPreDestroyProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedBean.java deleted file mode 100644 index 6b6c55e12c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedBean.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -@jakarta.inject.Named("requestScoped") @jakarta.enterprise.context.RequestScoped -public class RequestScopedBean implements Serializable { - private String stringProperty; - - { - this.setStringProperty("default"); - } - - public RequestScopedBean() { - - System.out.println("RequestScopedBean created."); - - } - - // -------------------------------------------------------------- Properties - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String s) { - - this.stringProperty = s; - - } // END setStringProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPackagePrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPackagePrivateBean.java deleted file mode 100644 index 1267dca4f3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPackagePrivateBean.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("requestScopedPackagePrivate") @jakarta.enterprise.context.RequestScoped -public class RequestScopedPackagePrivateBean extends ScopedBean - implements Serializable { - - @PostConstruct - void onPostConstruct() { - setPostConstructProperty( - "request package private PostConstruct method invoked"); - } - - @PreDestroy - void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "request package private PreDestroy method invoked"); - } - - public RequestScopedPackagePrivateBean() { - System.out.println("RequestScopedPackagePrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPrivateBean.java deleted file mode 100644 index f3e45d7ae0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPrivateBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("requestScopedPrivate") @jakarta.enterprise.context.RequestScoped -public class RequestScopedPrivateBean extends ScopedBean - implements Serializable { - - private @PostConstruct void onPostConstruct() { - setPostConstructProperty("request private PostConstruct method invoked"); - } - - private @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("request private PreDestroy method invoked"); - } - - public RequestScopedPrivateBean() { - System.out.println("RequestScopedPrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedProtectedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedProtectedBean.java deleted file mode 100644 index ca9a2cc7ec..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedProtectedBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("requestScopedProtected") @jakarta.enterprise.context.RequestScoped -public class RequestScopedProtectedBean extends ScopedBean - implements Serializable { - - protected @PostConstruct void onPostConstruct() { - setPostConstructProperty("request protected PostConstruct method invoked"); - } - - protected @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("request protected PreDestroy method invoked"); - } - - public RequestScopedProtectedBean() { - System.out.println("RequestScopedProtectedBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPublicBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPublicBean.java deleted file mode 100644 index 848445da37..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RequestScopedPublicBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("requestScopedPublic") @jakarta.enterprise.context.RequestScoped -public class RequestScopedPublicBean extends ScopedBean - implements Serializable { - - public @PostConstruct void onPostConstruct() { - setPostConstructProperty("request public PostConstruct method invoked"); - } - - public @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("request public PreDestroy method invoked"); - } - - public RequestScopedPublicBean() { - System.out.println("RequestScopedPublicBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPostConstructBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPostConstructBean.java deleted file mode 100644 index a14c24e158..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPostConstructBean.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; - -@jakarta.inject.Named("RuntimeExceptionPostConstruct") @jakarta.enterprise.context.RequestScoped -public class RuntimeExceptionPostConstructBean implements Serializable { - - // intentionally generate an unchecked exception - public @PostConstruct void onPostConstruct() { - String[] list = { "only", "three", "items" }; - for (int i = 0; i <= 3; ++i) - System.out.println(list[i]); - } - - public RuntimeExceptionPostConstructBean() { - System.out.println("RuntimeExceptionPostConstructBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPreDestroyBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPreDestroyBean.java deleted file mode 100644 index cbbec4ef0d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/RuntimeExceptionPreDestroyBean.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("RuntimeExceptionPreDestroy") @jakarta.enterprise.context.RequestScoped -public class RuntimeExceptionPreDestroyBean implements Serializable { - - // intentionally generate an unchecked exception - public @PreDestroy void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "RuntimeExceptionPreDestroyBean.onPreDestroy invoked"); - String[] list = { "only", "three", "items" }; - for (int i = 0; i <= 3; ++i) - System.out.println(list[i]); - } - - public RuntimeExceptionPreDestroyBean() { - System.out.println("RuntimeExceptionPreDestroyBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ScopedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ScopedBean.java deleted file mode 100644 index b6e1ff419e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ScopedBean.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -public class ScopedBean { - - String postConstructProperty = "postConstruct NOT SET"; - - String getPostConstructProperty() { - - return postConstructProperty; - - } // END getPostConstructProperty - - void setPostConstructProperty(String postConstructProperty) { - - this.postConstructProperty = postConstructProperty; - - } // END setPostConstructProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedBean.java deleted file mode 100644 index 382c884ee1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedBean.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -@jakarta.inject.Named("sessionScoped") @jakarta.enterprise.context.SessionScoped -public class SessionScopedBean implements Serializable { - private String stringProperty; - - { - this.setStringProperty("default"); - } - - public SessionScopedBean() { - - System.out.println("SessionScopedBean created."); - - } - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String s) { - - this.stringProperty = s; - - } // END setStringProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPackagePrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPackagePrivateBean.java deleted file mode 100644 index 21fea222a3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPackagePrivateBean.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("sessionScopedPackagePrivate") @jakarta.enterprise.context.SessionScoped -public class SessionScopedPackagePrivateBean extends ScopedBean - implements Serializable { - - @PostConstruct - void onPostConstruct() { - setPostConstructProperty( - "session package private PostConstruct method invoked"); - } - - @PreDestroy - void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "session package private PreDestroy method invoked"); - } - - public SessionScopedPackagePrivateBean() { - System.out.println("SessionScopedPackagePrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPrivateBean.java deleted file mode 100644 index c3b6ad4023..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPrivateBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("sessionScopedPrivate") @jakarta.enterprise.context.SessionScoped -public class SessionScopedPrivateBean extends ScopedBean - implements Serializable { - - private @PostConstruct void onPostConstruct() { - setPostConstructProperty("session private PostConstruct method invoked"); - } - - private @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("session private PreDestroy method invoked"); - } - - public SessionScopedPrivateBean() { - System.out.println("SessionScopedPrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedProtectedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedProtectedBean.java deleted file mode 100644 index dffee391c9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedProtectedBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("sessionScopedProtected") @jakarta.enterprise.context.SessionScoped -public class SessionScopedProtectedBean extends ScopedBean - implements Serializable { - - protected @PostConstruct void onPostConstruct() { - setPostConstructProperty("session protected PostConstruct method invoked"); - } - - protected @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("session protected PreDestroy method invoked"); - } - - public SessionScopedProtectedBean() { - System.out.println("SessionScopedProtectedBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPublicBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPublicBean.java deleted file mode 100644 index baa7b2837c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/SessionScopedPublicBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("sessionScopedPublic") @jakarta.enterprise.context.SessionScoped -public class SessionScopedPublicBean extends ScopedBean - implements Serializable { - - public @PostConstruct void onPostConstruct() { - setPostConstructProperty("session public PostConstruct method invoked"); - } - - public @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("session public PreDestroy method invoked"); - } - - public SessionScopedPublicBean() { - System.out.println("SessionScopedPublicBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/TestServlet.java deleted file mode 100644 index e6b65f85eb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/TestServlet.java +++ /dev/null @@ -1,1215 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.Application; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.el.ValueExpression; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.jsp.JspFactory; -import jakarta.servlet.jsp.JspWriter; -import jakarta.servlet.jsp.PageContext; - -public final class TestServlet extends HttpTCKServlet { - - private static final String[] SCOPE_NAMES = { "request", "session", - "application", "view" }; - - private static final int SCOPE_NAMES_LENGTH = SCOPE_NAMES.length; - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - super.init(config); - - } // END init - - // ------------------------------------------------------------ Test Methods - public void managedBeanScopeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure ManagedBeans are accessible based on the defined scope - // in the faces-config.xml. Not interested in accessing the properties - // themselves, but in the actual instance type returned - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - ExternalContext extContext = facesContext.getExternalContext(); - - String[] beanNames = { "requestScoped", "sessionScoped", - "applicationScoped", "viewScoped" }; - - // Bean classes - Class[] beanTypes = { RequestScopedBean.class, SessionScopedBean.class, - ApplicationScopedBean.class }; - - // ValueBinding expressions - String[] expressions = { "#{requestScoped}", "#{sessionScoped}", - "#{applicationScoped}", "#{viewScoped}" }; - - Map[] scopes = { extContext.getRequestMap(), extContext.getSessionMap(), - extContext.getApplicationMap() }; - - boolean passed = true; - - for (int i = 0; i < beanTypes.length; i++) { - - ValueBinding binding = application.createValueBinding(expressions[i]); - - Object val = binding.getValue(facesContext); - - if (val == null) { - out.println("Test FAILED. Expression " + expressions[i] - + " evaluated to null."); - passed = false; - } - - if (val != null && !(beanTypes[i].isInstance(val))) { - out.println("Test FAILED. Object returned from evaluation of" - + expressions[i] + " was not an instance of" - + beanTypes[i].getName() + JSFTestUtil.NL + ". Type returned:" - + " " + val.getClass().getName()); - passed = false; - } - - // now validate the scope - if (scopes[i].get(beanNames[i]) == null) { - out.println("Test FAILED. Unabled to find " + beanNames[i] + "in '" - + SCOPE_NAMES[i] + "' scope."); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END mangedBeanScopeTest - - public void managedBeanNoScopeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // if scope is set to NONE for a partciular managed bean, - // then it will not be placed into request, session, or - // application scopes when instantiated. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - ExternalContext extContext = facesContext.getExternalContext(); - - String expression = "#{noScopeBean}"; - - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - Object val = binding.getValue(facesContext.getELContext()); - boolean passed = true; - - Map[] scopes = { extContext.getRequestMap(), extContext.getSessionMap(), - extContext.getApplicationMap() }; - - if (val == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - passed = false; - } - - if (val != null && !(NoScopeBean.class.isInstance(val))) { - out.println("Test FAILED. Object returned from evaluation of" - + expression + " was not an instance of" + NoScopeBean.class.getName() - + JSFTestUtil.NL + ". Type returned:" + " " - + val.getClass().getName()); - passed = false; - } - - for (int i = 0; i < scopes.length; i++) { - if (scopes[i].get("noScopeBean") != null) { - out.println("Test FAILED. Incorrectly found 'noScopeBean'" + "in '" - + SCOPE_NAMES[i] + "' scope."); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanNoScopeTest - - public void managedBeanNullManagedPropertyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // If element is associated with a particular - // managed-property, ensure that null is explicitly set. - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - if (bean.getNullProperty() != null) { - out.println("Test FAILED. Managed property configured with" - + " did not have the property explicitly set to" - + " null when the bean was instantiated and processed by" - + " the managed-bean facility."); - out.println("Value returned: " + bean.getNullProperty()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanNullManagedPropertyTest - - public void managedBeanTrimmedManagedPropertyValueTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - // when using the element with a managed-property, - // the value must be trimmed of leading/trailing whitespace - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - if (!("propertyValue".equals(bean.getStringProperty()))) { - out.println("Test FAILED. Expected managed property configured" - + " using the element to have leading/trailing " - + "whitespace removed."); - out.println("Expected: 'propertyValue'"); - out.println("Received: '" + bean.getStringProperty() + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanTrimmedManagedPropertyValueTest - - public void managedBeanMapEntriesManagedPropertyTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - Map map = bean.getMapProperty(); - - if (map.get("nullKey") != null) { - out.println("Test FAILED. map-entry configured with" - + " did not have the map value explicitly set to" - + " null when the bean was instantiated and processed by" - + " the managed-bean facility."); - out.println("Value returned: " + map.get("nullKey")); - return; - } - - if (!("propertyValue".equals(map.get("trimmedKey")))) { - out.println("Test FAILED. Expected map-entry configured" - + " using the element to have leading/trailing " - + "whitespace removed."); - out.println("Expected: 'propertyValue'"); - out.println("Received: '" + map.get("trimmedKey") + "'"); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanMapEntriesManagedPropertyTest - - public void managedBeanListEntriesManagedPropertyTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - List list = bean.getListProperty(); - - if (list.size() != 2) { - out.println("Test FAILED. Expected the managed list property" - + " to have 2 elements."); - out.println("Actual element count: " + list.size()); - return; - } - - if (!("propertyValue".equals(list.get(0)))) { - out.println("Test FAILED. Expected list-entries configured" - + " using the element to have leading/trailing " - + "whitespace removed."); - out.println("Expected: 'propertyValue'"); - out.println("Received: '" + list.get(0) + "'"); - return; - } - - if (list.get(1) != null) { - out.println("Test FAILED. map-entry configured with" - + " did not have the list value explicitly set to" - + " null when the bean was instantiated and processed by" - + " the managed-bean facility."); - out.println("Value returned: " + list.get(1)); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanListEntriesManagedPropertyTest - - public void managedBeanMapKeyValueConversionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure the JSF implementation performs the expected conversion - // of key and value types when key-class and value-class are defined. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - Class[] types = { java.lang.Byte.class, java.lang.Character.class, - java.lang.Boolean.class, java.lang.Short.class, java.lang.Integer.class, - java.lang.Long.class, java.lang.Float.class, java.lang.Double.class }; - - Object[][] control = { { Byte.valueOf((byte) 1), Byte.valueOf((byte) 2) }, - { Character.valueOf('a'), Character.valueOf('b') }, - { Boolean.TRUE, Boolean.FALSE }, - { Short.valueOf((short) 10), Short.valueOf((short) 11) }, - { Integer.valueOf(100), Integer.valueOf(111) }, - { Long.valueOf(1000l), Long.valueOf(1111l) }, - { Float.valueOf(1.0f), Float.valueOf(1.1f) }, - { Double.valueOf(10.0d), Double.valueOf(11.1d) } }; - - // all of the getMapProperty calls refer to the same - // Map instance. - Map typedMapProperty = bean.getByteMapProperty(); - boolean passed = true; - for (int i = 0; i < 8; i++) { - Object value = typedMapProperty.get(control[i][0]); - if (!(control[i][1].equals(value))) { - out.println("Test FAILED. Unexpected value returned for " - + "key of type '" + types[i] + "'"); - out.println("Expected: " + control[i][1]); - out.println("Received: " + value + JSFTestUtil.NL); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanMapKeyValueConversionTest - - public void managedBeanListValueConversionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure the JSF implementation performs the expected conversion - // of of values are performed per the defined value-class element - // for the list entry. - // This has the side-effect of ensuring that the entries are added - // in the order they appear in the config file. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - // all of the getListProperty calls refer to the same - // List instance. - List typedListProperty = bean.getByteListProperty(); - - Class[] types = { java.lang.Byte.class, java.lang.Character.class, - java.lang.Boolean.class, java.lang.Short.class, java.lang.Integer.class, - java.lang.Long.class, java.lang.Float.class, java.lang.Double.class }; - - Object[] control = { Byte.valueOf((byte) 1), Character.valueOf('a'), - Boolean.TRUE, Short.valueOf((short) 1), Integer.valueOf(11), - Long.valueOf(111l), Float.valueOf(1.0f), Double.valueOf(11.1d) }; - - boolean passed = true; - for (int i = 0; i < 8; i++) { - Object value = typedListProperty.get(i); - if (!(control[i].equals(value))) { - out.println("Unexpected value stored in managed List, or" - + " property was added out of order."); - out.println("Expected element '" + i + "' to be: [" + types[i].getName() - + "] " + control[i]); - out.println("Received: [" + value.getClass().getName() + "] " + value - + JSFTestUtil.NL); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanListValueConversionTest - - public void managedBeanPropertyValueConversionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure converstion without the property-class element present - // is in fact automatic and follows the rules per the JSP spec. - // This test has the side effect of ensuring the properties are - // set in the order they appear in the faces-config. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext.getELContext()); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - Class[] types = { java.lang.Byte.class, java.lang.Character.class, - java.lang.Boolean.class, java.lang.Short.class, java.lang.Integer.class, - java.lang.Long.class, java.lang.Float.class, java.lang.Double.class }; - - Object[] control = { Byte.valueOf((byte) 1), Character.valueOf('a'), - Boolean.TRUE, Short.valueOf((short) 11), Integer.valueOf(111), - Long.valueOf(1111l), Float.valueOf(1.1f), Double.valueOf(11.1d) }; - - List primList = bean.getPrimList(); - List objList = bean.getObjList(); - - int primSize = primList.size(); - if (primSize != 8) { - out.println("Test FAILED: Expected the list containing boxed " - + "primitives to contain 8 elements. Number of elements " + "found: " - + primSize); - return; - } - - int objSize = objList.size(); - if (objSize != 8) { - out.println("Test FAILED: Expected the Object list to contain 8 " - + "elements. Number of elements found: " + primSize); - return; - } - - boolean passed = true; - for (int i = 0; i < primSize; i++) { - Object value = primList.get(i); - if (!(control[i].equals(value))) { - out.println( - "Test FAILED(prim). Unexpected value or value out of order."); - out.println("Expected: [" + types[i] + "] " + control[i]); - out.println("Received: [" + value.getClass().getName() + "] " + value - + JSFTestUtil.NL); - passed = false; - } - } - - for (int i = 0; i < objSize; i++) { - Object value = objList.get(i); - if (!(control[i].equals(value))) { - out.println( - "Test FAILED(obj). Unexpected value or value out of order."); - out.println("Expected: [" + types[i] + "] " + control[i]); - out.println("Received: [" + value.getClass().getName() + "] " + value - + JSFTestUtil.NL); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPropertyValueConversionTest - - public void managedBeanNoClassExistsTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{noSuchBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "managed bean was associated with a non-existent class."); - } catch (Exception e) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanNoClassExistsTest - - public void managedBeanNoZeroArgCtorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{noZeroArgCtorBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "managed bean was associated with class containing no" - + " zero argument constructor."); - } catch (Exception e) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanNoZeroArgCtorTest - - public void managedBeanTypeConversionErrorTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{typeConversionErrorBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "managed propery value cannot be converted to the specified " - + "type."); - } catch (Exception e) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanTypeConversionErrorTest - - public void managedBeanNoSetterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{noSuchPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "referenced managed property did not exist."); - } catch (Exception e) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanNoSetterTest - - public void managedBeanPrivateSetterTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{noPublicPropertyBean}"; - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expression, Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "referenced managed property setter has private method access."); - } catch (Exception e) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPrivatePropertyAccessTest - - public void managedBeanCyclicReferenceTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String[] expressions = { "#{cyclic1}", "#{cyclic3}", "#{cyclic4}" }; - - boolean passed = true; - for (int i = 0; i < expressions.length; i++) { - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),expressions[i], Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. No error condition was raised when " - + "cyclic references are present between two managed beans."); - passed = false; - } catch (Exception e) { - ; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanCyclicReferenceTest - - public void managedBeanScopedReferencesTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String[] negExpressions = { "#{applicationSession}", - "#{applicationRequest}", "#{sessionRequest.stringProperty}", - "#{noneApplication}", "#{noneSession}", "#{noneRequest}", - "#{applicationSessionImplicit}", "#{applicationRequestImplicit}", - "#{sessionRequestImplicit}", "#{noneApplicationImplicit}", - "#{noneSessionImplicit}", "#{noneRequestImplicit}" }; - - String[] posExpressions = { "#{noneNone}", "#{applicationNone}", - "#{applicationApplication}", "#{sessionNone}", "#{sessionApplication}", - "#{sessionSession}", "#{requestNone}", "#{requestSession}", - "#{requestApplication}", "#{requestRequest}" }; - - boolean passed = true; - for (int i = 0; i < negExpressions.length; i++) { - System.out.println("NEG [" + negExpressions[i] + ']'); - ValueExpression binding = application.getExpressionFactory().createValueExpression(facesContext.getELContext(),negExpressions[i], Object.class); - - try { - binding.getValue(facesContext.getELContext()); - out.println("Test FAILED. [" + negExpressions[i] + "] No error " - + "condition was raised when managed bean contained a " - + "reference to another bean with a potentially shorter " - + "scope than what the bean was configured for."); - passed = false; - } catch (Exception e) { - System.out.println("Exception correctly thrown."); - System.out.println(e); - } - } - - for (int i = 0; i < posExpressions.length; i++) { - System.out.println("POS [" + posExpressions[i] + ']'); - ValueBinding binding = application.createValueBinding(posExpressions[i]); - - try { - binding.getValue(facesContext); - } catch (Exception e) { - passed = false; - out.println("Test FAILED. [" + posExpressions[i] + "] Error " - + "incorrectly raised when managed bean contained a " - + "reference to another bean with a 'longer' scope than " - + "what the bean was configured for."); - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanScopedReferencesTest - - public void managedBeanCreateStoreListTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // if getter for List property returns null, the implementation - // must create and store an ArrayList. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueBinding binding = application.createValueBinding(expression); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - List list = bean.getListProperty(); - - if (!(list instanceof ArrayList)) { - out.println("Test FAILED. Expected implementation to create and" - + " store an ArrayList when managed property getter for the list property" - + " initially returned null."); - out.println("Type returned: " + list.getClass().getName()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanCreateStoreListTypeTest - - public void managedBeanCreateStoreMapTypeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // if getter for Map property returns null, the implementation - // must create and store a HashMap. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{managedPropertyBean}"; - ValueBinding binding = application.createValueBinding(expression); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - Map map = bean.getByteMapProperty(); - - if (!(map instanceof HashMap)) { - out.println("Test FAILED. Expected implementation to create and" - + " store a HashMap when managed property getter for the map property" - + " initially returned null."); - out.println("Type returned: " + map.getClass().getName()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END managedBeanCreateStoreMapTypeTest - - public void managedBeanPropertyMapEntryOrderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure map entries are added in the order specified in the - // config file - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{orderedMap}"; - ValueBinding binding = application.createValueBinding(expression); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - LinkedHashMap map = (LinkedHashMap) bean.getOrderedMap(); - - String[] control = { "one", "two", "three", "four" }; - - List orderedKeys = map.getKeyList(); - - if (control.length != orderedKeys.size()) { - out.println("Test FAILED. Managed Map property didn't contain" - + " the expected number of elements (4)."); - out.println("Number of elements: " + orderedKeys.size()); - return; - } - - boolean passed = true; - for (int i = 0; i < control.length; i++) { - if (!control[i].equals(orderedKeys.get(i))) { - out.println("Test FAILED. Element out of order."); - out.println("Expected key at index " + i + ": " + control[i]); - out.println("Key found at index " + i + ": " + orderedKeys.get(i)); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPropertyMapEntryOrderTest - - public void managedBeanPropertyListEntryOrderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure map entries are added in the order specified in the - // config file - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{orderedList}"; - ValueBinding binding = application.createValueBinding(expression); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - List orderedList = bean.getOrderedList(); - String[] control = { "one", "two", "three", "four" }; - - if (control.length != orderedList.size()) { - out.println("Test FAILED. Managed List property didn't contain" - + " the expected number of elements (4)."); - out.println("Number of elements: " + orderedList.size()); - return; - } - - boolean passed = true; - for (int i = 0; i < control.length; i++) { - if (!control[i].equals(orderedList.get(i))) { - out.println("Test FAILED. Element out of order."); - out.println("Expected value at index " + i + ": " + control[i]); - out.println("Value found at index " + i + ": " + orderedList.get(i)); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPropertyListEntryOrderTest - - public void managedBeanPropertyArrayTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{arrayBean}"; - ValueBinding binding = application.createValueBinding(expression); - - ManagedPropertyBean bean = (ManagedPropertyBean) binding - .getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - int[] arrayProperty = bean.getArrayProperty(); - - int[] control = { 0, 1, 2, 3, 4 }; - - if (arrayProperty.length != control.length) { - out.println("Test FAILED. Unexpected number of elements" - + " contained in the array returned by getArrayProperty()."); - out.println("Expected: 5"); - out.println("Recevied: " + arrayProperty.length); - return; - } - - boolean passed = true; - for (int i = 0; i < control.length; i++) { - if (control[i] != arrayProperty[i]) { - out.println("Test FAILED. Element out of order."); - out.println("Expected value at index " + i + ": " + control[i]); - out.println("Value found at index " + i + ": " + arrayProperty[i]); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPropertyArrayTest - - public void managedBeanMapBeanTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{MapBean}"; - ValueBinding binding = application.createValueBinding(expression); - - MapBean bean = (MapBean) binding.getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - String[] controlKeys = { "key1", "key2" }; - String[] controlValues = { "value1", "value2" }; - - boolean passed = true; - for (int i = 0; i < controlKeys.length; i++) { - if (!bean.containsKey(controlKeys[i]) - || !controlValues[i].equals(bean.get(controlKeys[i]))) { - out.println("Test FAILED. MapBean didn't either didn't contain" - + " the expected key, or didn't contain the expected value for " - + "that key."); - out.println( - "Expected Key/Value: " + controlKeys[i] + '/' + controlValues[i]); - out.println("Contains Key: " + bean.containsKey(controlKeys[i])); - out.println("Value for Key above: " + bean.get(controlKeys[i])); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanMapBeanTest - - public void managedBeanListBeanTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String expression = "#{ListBean}"; - ValueBinding binding = application.createValueBinding(expression); - - ListBean bean = (ListBean) binding.getValue(facesContext); - - if (bean == null) { - out.println( - "Test FAILED. Expression " + expression + " evaluated to null."); - return; - } - - String[] controlValues = { "value1", "value2" }; - - boolean passed = true; - for (int i = 0; i < controlValues.length; i++) { - if (!controlValues[i].equals(bean.get(i))) { - out.println("Test FAILED. ListBean didn't contain the expected" - + " value at index '" + i + "'"); - out.println("Expected: " + controlValues[i]); - out.println("Received: " + bean.get(i)); - passed = false; - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanListBeanTest - - public void managedBeanPostConstructTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure ManagedBeans implement the @PostConstruct annotation for - // package private, private, public, and protected methods in - // request, session, and application scopes. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String[][] beanNames = { - { "requestScopedPackagePrivate", "requestScopedPrivate", - "requestScopedProtected", "requestScopedPublic" }, - { "sessionScopedPackagePrivate", "sessionScopedPrivate", - "sessionScopedProtected", "sessionScopedPublic" }, - { "applicationScopedPackagePrivate", "applicationScopedPrivate", - "applicationScopedProtected", "applicationScopedPublic" }, - { "viewScopedPackagePrivate", "viewScopedPrivate", - "viewScopedProtected", "viewScopedPublic" } }; - - // ValueBinding expressions - String[][] expressions = { - { "#{requestScopedPackagePrivate}", "#{requestScopedPrivate}", - "#{requestScopedProtected}", "#{requestScopedPublic}" }, - { "#{sessionScopedPackagePrivate}", "#{sessionScopedPrivate}", - "#{sessionScopedProtected}", "#{sessionScopedPublic}" }, - { "#{applicationScopedPackagePrivate}", "#{applicationScopedPrivate}", - "#{applicationScopedProtected}", "#{applicationScopedPublic}" }, - { "#{viewScopedPackagePrivate}", "#{viewScopedPrivate}", - "#{viewScopedProtected}", "#{viewScopedPublic}" } }; - - String[] accessModifiers = { "package private", "private", "protected", - "public" }; - - boolean passed = true; - - for (int i = 0; i < SCOPE_NAMES_LENGTH; i++) { - - for (int j = 0; j < accessModifiers.length; ++j) { - - ValueBinding binding = application - .createValueBinding(expressions[i][j]); - - Object val = binding.getValue(facesContext); - - out.println("testing " + beanNames[i][j]); - String expectedValue = SCOPE_NAMES[i] + " " + accessModifiers[j] - + " PostConstruct method invoked"; - String computedValue = ((ScopedBean) val).getPostConstructProperty(); - if (!computedValue.equals(expectedValue)) { - out.println("Test FAILED:"); - out.println("Expected value = " + expectedValue); - out.println("Computed value = " + computedValue); - passed = false; - } - - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPostConstructTest - - public void managedBeanPreDestroyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // ensure ManagedBeans implement the @PreDestroy annotation for - // package private, private, public, and protected methods in - // request, session, and application scopes. - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( - this, request, response, null, true, JspWriter.NO_BUFFER, false); - - String[][] beanNames = { - { "requestScopedPackagePrivate", "requestScopedPrivate", - "requestScopedProtected", "requestScopedPublic" }, - { "sessionScopedPackagePrivate", "sessionScopedPrivate", - "sessionScopedProtected", "sessionScopedPublic" }, - { "applicationScopedPackagePrivate", "applicationScopedPrivate", - "applicationScopedProtected", "applicationScopedPublic" }, - { "viewScopedPackagePrivate", "viewScopedPrivate", - "viewScopedProtected", "viewScopedPublic" } }; - - // ValueBinding expressions - String[][] expressions = { - { "#{requestScopedPackagePrivate}", "#{requestScopedPrivate}", - "#{requestScopedProtected}", "#{requestScopedPublic}" }, - { "#{sessionScopedPackagePrivate}", "#{sessionScopedPrivate}", - "#{sessionScopedProtected}", "#{sessionScopedPublic}" }, - { "#{applicationScopedPackagePrivate}", "#{applicationScopedPrivate}", - "#{applicationScopedProtected}", "#{applicationScopedPublic}" }, - { "#{viewScopedPackagePrivate}", "#{viewScopedPrivate}", - "#{viewScopedProtected}", "#{viewScopedPublic}" } }; - - String[] accessModifiers = { "package private", "private", "protected", - "public" }; - - boolean passed = true; - - for (int i = 0; i < SCOPE_NAMES_LENGTH; i++) { - - for (int j = 0; j < accessModifiers.length; ++j) { - - ValueBinding binding = application - .createValueBinding(expressions[i][j]); - binding.getValue(facesContext); - - pageContext.removeAttribute(beanNames[i][j]); - - out.println("testing " + beanNames[i][j]); - String expectedValue = SCOPE_NAMES[i] + " " + accessModifiers[j] - + " PreDestroy method invoked"; - String computedValue = PreDestroyProp.getPreDestroyProperty(); - - if (!computedValue.equals(expectedValue)) { - out.println("Test FAILED:"); - out.println("Expected value = " + expectedValue); - out.println("Computed value = " + computedValue); - passed = false; - } - - } - } - - if (passed) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPreDestroyTest - - public void managedBeanPostConstructExceptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - - String beanName = "RuntimeExceptionPostConstruct"; - String expression = "#{RuntimeExceptionPostConstruct}"; - try { - ValueBinding binding = application.createValueBinding(expression); - Object val = binding.getValue(facesContext); - if (val instanceof RuntimeExceptionPostConstructBean) { - out.println("Bean with runtime exception in method annotated"); - out.println("with @PostConstruct placed into service"); - out.println("Test FAILED"); - } - } catch (Exception e) { - out.println(e.getMessage()); - out.println(JSFTestUtil.PASS); - } - } // END managedBeanPostConstructExceptionTest - - public void managedBeanPreDestroyExceptionTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - Application application = getApplication(); - FacesContext facesContext = getFacesContext(); - PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( - this, request, response, null, false, JspWriter.NO_BUFFER, false); - - String beanName = "RuntimeExceptionPreDestroy"; - String expression = "#{RuntimeExceptionPreDestroy}"; - String expectedValue = "RuntimeExceptionPreDestroyBean.onPreDestroy invoked"; - boolean pass = true; - - try { - ValueBinding binding = application.createValueBinding(expression); - binding.getValue(facesContext); - pageContext.removeAttribute(beanName); - - String computedValue = PreDestroyProp.getPreDestroyProperty(); - if (!computedValue.equals(expectedValue)) { - out.println("Test FAILED:"); - out.println("PreDestroy method not properly invoked"); - out.println("Expected value = " + expectedValue); - out.println("Computed value = " + computedValue); - pass = false; - } - - } catch (Exception e) { - out.println("Test FAILED"); - out.println(e.getMessage()); - out.println("Bean with runtime exception in method annotated"); - out.println("with @PreDestroy caused exception"); - pass = false; - } - - if (pass == true) { - out.println(JSFTestUtil.PASS); - } - - } // END managedBeanPreDestroyExceptionTest -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedBean.java deleted file mode 100644 index 5d9e551920..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedBean.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -@jakarta.inject.Named("viewScoped") @jakarta.faces.view.ViewScoped -public class ViewScopedBean implements Serializable { - private String stringProperty; - - { - this.setStringProperty("default"); - } - - public ViewScopedBean() { - - System.out.println("ApplicationScopedBean created."); - - } - - public String getStringProperty() { - - return stringProperty; - - } // END getStringProperty - - public void setStringProperty(String s) { - - this.stringProperty = s; - - } // END setStringProperty - -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPackagePrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPackagePrivateBean.java deleted file mode 100644 index 7575684846..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPackagePrivateBean.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("viewScopedPackagePrivate") @jakarta.faces.view.ViewScoped -public class ViewScopedPackagePrivateBean extends ScopedBean - implements Serializable { - - @PostConstruct - void onPostConstruct() { - setPostConstructProperty( - "view package private PostConstruct method invoked"); - } - - @PreDestroy - void onPreDestroy() { - PreDestroyProp.setPreDestroyProperty( - "view package private PreDestroy method invoked"); - } - - public ViewScopedPackagePrivateBean() { - System.out.println("ViewScopedPackagePrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPrivateBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPrivateBean.java deleted file mode 100644 index ddea2857f2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPrivateBean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("viewScopedPrivate") @jakarta.faces.view.ViewScoped -public class ViewScopedPrivateBean extends ScopedBean implements Serializable { - - private @PostConstruct void onPostConstructPrivate() { - setPostConstructProperty("view private PostConstruct method invoked"); - } - - private @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("view private PreDestroy method invoked"); - } - - public ViewScopedPrivateBean() { - System.out.println("ViewScopedPrivateBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedProtectedBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedProtectedBean.java deleted file mode 100644 index d438f4abe7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedProtectedBean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("viewScopedProtected") @jakarta.faces.view.ViewScoped -public class ViewScopedProtectedBean extends ScopedBean - implements Serializable { - - protected @PostConstruct void onPostConstruct() { - setPostConstructProperty("view protected PostConstruct method invoked"); - } - - protected @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("view protected PreDestroy method invoked"); - } - - public ViewScopedProtectedBean() { - System.out.println("ViewScopedProtectedBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPublicBean.java b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPublicBean.java deleted file mode 100644 index 8fd4005597..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/ViewScopedPublicBean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.el.managedbean.common; - -import java.io.Serializable; - -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -@jakarta.inject.Named("viewScopedPublic") @jakarta.faces.view.ViewScoped -public class ViewScopedPublicBean extends ScopedBean implements Serializable { - - public @PostConstruct void onPostConstruct() { - setPostConstructProperty("view public PostConstruct method invoked"); - } - - public @PreDestroy void onPreDestroy() { - PreDestroyProp - .setPreDestroyProperty("view public PreDestroy method invoked"); - } - - public ViewScopedPublicBean() { - System.out.println("ViewScopedPublicBean created."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/faces-config.xml deleted file mode 100644 index 8f166cc95c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/faces-config.xml +++ /dev/null @@ -1,1109 +0,0 @@ - - - - - - - - - managedPropertyBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - - - nullProperty - - - - - - - stringProperty - - - - - - - - - mapProperty - - - - - nullKey - - - - - - trimmedKey - - - - - - - - - - - listProperty - - - - - - - - - - - - - byteMapProperty - - - java.lang.Byte - java.lang.Byte - - - 1 - - - 2 - - - - - - - - charMapProperty - - - java.lang.Character - java.lang.Character - - - a - - - b - - - - - - - - booleanMapProperty - - - java.lang.Boolean - java.lang.Boolean - - - true - - - false - - - - - - - - shortMapProperty - - - java.lang.Short - java.lang.Short - - - 10 - - - 11 - - - - - - - - integerMapProperty - - - java.lang.Integer - java.lang.Integer - - - 100 - - - 111 - - - - - - - - longMapProperty - - - java.lang.Long - java.lang.Long - - - 1000 - - - 1111 - - - - - - - - floatMapProperty - - - java.lang.Float - java.lang.Float - - - 1.0 - - - 1.1 - - - - - - - - doubleMapProperty - - - java.lang.Double - java.lang.Double - - - 10.0 - - - 11.1 - - - - - - - - - byteListProperty - - - java.lang.Byte - 1 - - - - - - charListProperty - - - java.lang.Character - a - - - - - - booleanListProperty - - - java.lang.Boolean - true - - - - - - shortListProperty - - - java.lang.Short - 1 - - - - - - integerListProperty - - - java.lang.Integer - 11 - - - - - - longListProperty - - - java.lang.Long - 111 - - - - - - floatListProperty - - - java.lang.Float - 1.0 - - - - - - doubleListProperty - - - java.lang.Double - 11.1 - - - - - - - bytePrim - - 1 - - - - - byteObj - - 1 - - - - - charPrim - - a - - - - - charObj - - a - - - - - booleanPrim - - true - - - - - booleanObj - - true - - - - - shortPrim - - 11 - - - - - shortObj - - 11 - - - - - integerPrim - - 111 - - - - - integerObj - - 111 - - - - - longPrim - - 1111 - - - - - longObj - - 1111 - - - - - floatPrim - - 1.1 - - - - - floatObj - - 1.1 - - - - - doublePrim - - 11.1 - - - - - doubleObj - - 11.1 - - - - - - - - noSuchBean - - - com.sun.ts.tests.jsf.NoSuchClass - - - none - - - - - - noZeroArgCtorBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.NoZeroArgCtorBean - - - none - - - - - - typeConversionErrorBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - - byteObj - - java.lang.Byte - 3.14597 - - - - - - noSuchPropertyBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - noSuchProperty - - - - - - - noPublicPropertyBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - private - - - - - - - cyclic1 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic2} - - - - - - cyclic2 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic1} - - - - - - cyclic3 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic3} - - - - - - cyclic4 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic5} - - - - - - cyclic5 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic6} - - - - - - cyclic6 - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{cyclic4} - - - - - - - - noneApplication - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - stringProperty - #{applicationScoped.stringProperty} - - - - - - noneSession - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{sessionScoped} - - - - - - noneRequest - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{requestScoped} - - - - - - applicationSession - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - stringProperty - #{sessionScoped.stringProperty} - - - - - - applicationRequest - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - bean - #{requestScoped} - - - - - - sessionRequest - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - session - - - stringProperty - #{requestScoped.stringProperty} - - - - - - - noneApplicationImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - stringProperty - #{applicationScope.someAttribute} - - - - - - noneSessionImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{sessionScope.someAttribute} - - - - - - noneRequestImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - bean - #{requestScope.someAttribute} - - - - - - applicationSessionImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - stringProperty - #{sessionScope.someAttribute} - - - - - - applicationRequestImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - bean - #{requestScope.someAttribute} - - - - - - sessionRequestImplicit - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - session - - - stringProperty - #{requestScope.someAttribute} - - - - - - - - - noneNone - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - stringProperty - #{noScopeBean.stringProperty} - - - - - - applicationNone - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - bean - #{noScopeBean} - - - - - - sessionNone - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - session - - - bean - #{noScopeBean} - - - - - - requestNone - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - request - - - bean - #{noScopeBean} - - - - - - applicationApplication - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - application - - - bean - #{applicationScoped} - - - - - - sessionApplication - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - session - - - bean - #{applicationScoped} - - - - - - sessionSession - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - session - - - bean - #{sessionScoped} - - - - - - requestApplication - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - request - - - stringProperty - #{applicationScoped.stringProperty} - - - - - - requestSession - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - request - - - stringProperty - #{sessionScoped.stringProperty} - - - - - - requestRequest - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - request - - - stringProperty - #{requestScoped.stringProperty} - - - - - - - orderedMap - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - - orderedMap - - - - one - one - - - two - two - - - three - three - - - four - four - - - - - - - - - - orderedList - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - - orderedList - - - one - two - three - four - - - - - - - - arrayBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ManagedPropertyBean - - - none - - - - arrayProperty - - - int - 1 - 2 - 3 - 4 - - - - - - - - MapBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.MapBean - - - none - - - - key1 - value1 - - - key2 - value2 - - - - - - - ListBean - - - com.sun.ts.tests.jsf.spec.el.managedbean.common.ListBean - - - none - - - value1 - value2 - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.war.sun-web.xml deleted file mode 100644 index 40966b8750..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_el_mgbean_web - diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.xml b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.xml deleted file mode 100644 index 13dae535d9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/jsf_el_mgbean_web.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - jsf_el_mgbean - - com.sun.faces.validateXml - true - - - TestServlet - com.sun.ts.tests.jsf.spec.el.managedbean.standalone.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/managedbean.common.xml b/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/managedbean.common.xml deleted file mode 100644 index c5c41e7c8b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/el/managedbean/common/managedbean.common.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/URLClient.java deleted file mode 100644 index 2fa0585ab6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/URLClient.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicflowcall; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_basicflowcall_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowCallTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate: Entering a Flow Navigating a Flow Flow - * configuration *_flow.xml file. Flow configuration via - * *.class file Exiting a Flow - * - * @since 2.2 - */ - public void facesFlowCallTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - // Outside the Flow structure. (/index.xhtml) - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Outside of flow", messages); - - // First page of Flow. (flow-a/flow-a.xhtml) - page = doClick((HtmlSubmitInput) page.getElementById("start_a")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "Flow_a_Bean", messages); - doesPageMatch(page, "(?s).*Has a flow:\\s+true\\..*", messages, true); - checkSpanValue(page, "param1FromFlowB", "", messages); - checkSpanValue(page, "param2FromFlowB", "", messages); - - // Enter the second page of the Flow. (flow-a/next-a.xhtml) - page = doClick((HtmlSubmitInput) page.getElementById("next_a")); - - doesPageContain(page, "Second page in the flow", messages); - - HtmlTextInput input = (HtmlTextInput) page.getElementById("input"); - String value = "" + System.currentTimeMillis(); - input.setValueAttribute(value); - - // Enter Last Page of Flow. ((flow-a/next-b.xhtml)) - page = doClick((HtmlSubmitInput) page.getElementById("next")); - - doesPageContain(page, value, messages); - - // Enter flow-b, passing parameters. - page = doClick((HtmlSubmitInput) page.getElementById("callB")); - - doesPageContain(page, "Flow_b_Bean", messages); - doesPageNotContain(page, "Flow_a_Bean", messages); - checkSpanValue(page, "param1FromFlowA", "param1Value", messages); - checkSpanValue(page, "param2FromFlowA", "param2Value", messages); - - // Enter second page of Flow-b - page = doClick((HtmlSubmitInput) page.getElementById("next_a")); - - doesPageContain(page, "Second page in the flow", messages); - - input = (HtmlTextInput) page.getElementById("input"); - value = "" + System.currentTimeMillis(); - input.setValueAttribute(value); - - // Enter last page of Flow-b - page = doClick((HtmlSubmitInput) page.getElementById("next")); - - doesPageContain(page, value, messages); - - // Enter flow-a, passing parameters. - page = doClick((HtmlSubmitInput) page.getElementById("callA")); - - checkSpanValue(page, "param1FromFlowB", "param1Value", messages); - checkSpanValue(page, "param2FromFlowB", "param2Value", messages); - - // Enter second page of Flow-b - page = doClick((HtmlSubmitInput) page.getElementById("next_a")); - - doesPageContain(page, "Second page in the flow", messages); - - // Enter last page of Flow-a - page = doClick((HtmlSubmitInput) page.getElementById("next")); - - page = doClick((HtmlSubmitInput) page.getElementById("return")); - - /* - * PENDING(edburns): when the work to complete the navigation rule stack is - * complete, uncomment this. doesPageMatch(page, - * "(?s).*flowScope value,\\s+should be " + "empty:\\s+\\..", messages, - * true); doesPageMatch(page, "(?s).*Has a flow:\\s+false\\..*", messages, - * true); - */ - - handleTestStatus(messages); - - } // END facesFlowCallTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/FlowA.java b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/FlowA.java deleted file mode 100644 index d38a7421d3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/FlowA.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicflowcall.beans; - -import java.io.Serializable; - -import jakarta.enterprise.inject.Produces; -import jakarta.faces.flow.Flow; -import jakarta.faces.flow.builder.FlowBuilder; -import jakarta.faces.flow.builder.FlowBuilderParameter; -import jakarta.faces.flow.builder.FlowDefinition; - -public class FlowA implements Serializable { - - private static final long serialVersionUID = -7623501087369765218L; - - public FlowA() { - } - - @Produces - @FlowDefinition - public Flow buildMyFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { - String flowId = "flow-a"; - flowBuilder.id("", flowId); - flowBuilder.viewNode(flowId, "/" + flowId + "/" + flowId + ".xhtml") - .markAsStartNode(); - flowBuilder.returnNode("taskFlowReturn1") - .fromOutcome("#{flow_a_Bean.returnValue}"); - flowBuilder.inboundParameter("param1FromFlowB", "#{flowScope.param1Value}"); - flowBuilder.inboundParameter("param2FromFlowB", "#{flowScope.param2Value}"); - flowBuilder.flowCallNode("callB").flowReference("", "flow-b") - .outboundParameter("param1FromFlowA", "param1Value") - .outboundParameter("param2FromFlowA", "param2Value"); - - return flowBuilder.getFlow(); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_a_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_a_Bean.java deleted file mode 100644 index 2d5f584da6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_a_Bean.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicflowcall.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-a") -public class Flow_a_Bean implements Serializable { - - private static final long serialVersionUID = 2L; - - public String getName() { - return "Flow_a_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_b_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_b_Bean.java deleted file mode 100644 index 733d4ca640..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/beans/Flow_b_Bean.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.flows.basicflowcall.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-b") -public class Flow_b_Bean implements Serializable { - - private static final long serialVersionUID = 1L; - - public String getName() { - return "Flow_b_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/build.xml deleted file mode 100644 index b8eaa4e497..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/jsf_flows_basicflowcall_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/jsf_flows_basicflowcall_web.xml deleted file mode 100644 index 4440f94a0d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicflowcall/jsf_flows_basicflowcall_web.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - jsf_flows_basicflowcall - - com.sun.faces.validateXml - true - - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - faces/index.xhtml - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/URLClient.java deleted file mode 100644 index 4f33146c00..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/URLClient.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicimplicit; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_basicimplicit_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowImplicitTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the following when using Implicit Navigation: - * Entering a Flow Navigating a Flow Flow configuration - * *_flow.xml file. Flow configuration via *.class file - * Exiting a Flow - * - * @since 2.2 - */ - public void facesFlowImplicitTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - } // END facesFlowImplicitTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/beans/FlowBean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/beans/FlowBean.java deleted file mode 100644 index 3697a37c5a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/beans/FlowBean.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicimplicit.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow") -public class FlowBean implements Serializable { - - public FlowBean() { - System.out.println("FlowBean ctor"); - } - - public String getName() { - return "basicFlow"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/build.xml deleted file mode 100644 index 6c08c0d33b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/faces-config.xml deleted file mode 100644 index 5b5017035a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/faces-config.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - start - - /start.xhtml - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.war.sun-web.xml deleted file mode 100644 index 1b70c6557f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.war.sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /jsf_flows_basicimplicit_web - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.xml deleted file mode 100644 index 4ee06e267b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicimplicit/jsf_flows_basicimplicit_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsf_flows_basicimplicit - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/URLClient.java deleted file mode 100644 index 6ee1f5a638..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/URLClient.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicmethodcall; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_basicmethodcall_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowBasicMethodCallTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: - * - * @since 2.2 - */ - public void facesFlowBasicMethodCallTest() throws Fault { - - this.goTest("start_a"); - this.goTest("start_b"); - - } // END facesFlowBasicMethodCallTest - - // --------------------------- private methods - - private void goTest(String startId) throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Outside of flow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById(startId)); - - page = doClick( - (HtmlSubmitInput) page.getElementById("outcome-from-method")); - - doesPageContain(page, "Last page in the flow", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - page = doClick((HtmlSubmitInput) page.getElementById("start_a")); - - page = doClick( - (HtmlSubmitInput) page.getElementById("outcome-from-markup")); - - doesPageContain(page, "voidMethod called in flow-a", messages); - - } // END goTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/FlowA.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/FlowA.java deleted file mode 100644 index e507551040..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/FlowA.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicmethodcall.beans; - -import java.io.Serializable; - -import jakarta.enterprise.inject.Produces; -import jakarta.faces.flow.Flow; -import jakarta.faces.flow.builder.FlowBuilder; -import jakarta.faces.flow.builder.FlowBuilderParameter; -import jakarta.faces.flow.builder.FlowDefinition; - -public class FlowA implements Serializable { - - private static final long serialVersionUID = -7623501087369765218L; - - public FlowA() { - } - - @Produces - @FlowDefinition - public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { - String flowId = "flow-a"; - flowBuilder.id("", flowId); - flowBuilder.viewNode(flowId, "/" + flowId + "/" + flowId + ".xhtml") - .markAsStartNode(); - flowBuilder.returnNode("taskFlowReturn1") - .fromOutcome("#{flow_a_Bean.returnValue}"); - flowBuilder.methodCallNode("outcome-from-method") - .expression("#{flow_a_Bean.methodWithOutcome}") - .defaultOutcome("taskFlowReturn1"); - flowBuilder.methodCallNode("outcome-from-markup") - .expression("#{flow_a_Bean.voidMethod}") - .defaultOutcome("taskFlowReturn1"); - - return flowBuilder.getFlow(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_a_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_a_Bean.java deleted file mode 100644 index 245350403c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_a_Bean.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicmethodcall.beans; - -import java.io.Serializable; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-a") -public class Flow_a_Bean implements Serializable { - - public String getName() { - return "Flow_a_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } - - public String methodWithOutcome() { - return "next_b"; - } - - public void voidMethod() { - FacesContext context = FacesContext.getCurrentInstance(); - context.getExternalContext().getRequestMap().put("message", - "voidMethod called in flow-a"); - - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_b_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_b_Bean.java deleted file mode 100644 index 1c0d499ede..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/beans/Flow_b_Bean.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicmethodcall.beans; - -import java.io.Serializable; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-b") -public class Flow_b_Bean implements Serializable { - - public String getName() { - return "Flow_B_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } - - public String methodWithOutcome(String strParam, Integer intParam) { - if (!strParam.equals("param1Value")) { - throw new IllegalArgumentException(); - } - if (!intParam.equals(getInteger())) { - throw new IllegalArgumentException(); - } - - return "next_b"; - } - - public void voidMethod() { - FacesContext context = FacesContext.getCurrentInstance(); - context.getExternalContext().getRequestMap().put("message", - "voidMethod called in flow-b"); - - } - - public Integer getInteger() { - return Integer.valueOf(Integer.MAX_VALUE); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/build.xml deleted file mode 100644 index 7d9a5498ef..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.war.sun-web.xml deleted file mode 100644 index 1fe25e264e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.war.sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /jsf_flows_basicmethodcall_web - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.xml deleted file mode 100644 index 33728ebcb2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmethodcall/jsf_flows_basicmethodcall_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsf_flows_basicmethodcall - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/URLClient.java deleted file mode 100644 index bd5f0f8c5a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/URLClient.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicmultipage; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_basicmultipage_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowEntryExitTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the following for a multipage Flow config. - * - * -Entry to Flow, Exit from Flow - * - * @since 2.2 - */ - public void facesFlowEntryExitTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - - doesPageContain(page, "basicFlow", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - } // END facesFlowEntryExitTest - - /** - * @testName: facesFlowScopeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy:Validate the following: - * - * -FlowScope - * - * @since 2.2 - */ - public void facesFlowScopeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("next_a")); - - HtmlTextInput input = (HtmlTextInput) page.getElementById("input"); - final String flowScopeValue = "Value in faces flow scope"; - input.setValueAttribute(flowScopeValue); - - page = doClick((HtmlSubmitInput) page.getElementById("next")); - - doesPageContain(page, flowScopeValue, messages); - - page = doClick((HtmlSubmitInput) page.getElementById("return")); - - doesPageContain(page, "return page", messages); - doesPageNotContain(page, flowScopeValue, messages); - - } // End facesFlowScopeTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/beans/FlowBean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/beans/FlowBean.java deleted file mode 100644 index 697816a709..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/beans/FlowBean.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicmultipage.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "bounded-task-flow") -public class FlowBean implements Serializable { - - public String getName() { - return "basicFlow"; - } - - public String getReturnValue() { - return "/return1"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/build.xml deleted file mode 100644 index e092e4178d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/jsf_flows_basicmultipage_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/jsf_flows_basicmultipage_web.xml deleted file mode 100644 index b35c355900..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicmultipage/jsf_flows_basicmultipage_web.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - jsf_flows_basic_multipage - - com.sun.faces.validateXml - true - - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - faces/index.xhtml - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/URLClient.java deleted file mode 100644 index 84c8fde16e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/URLClient.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicswitch; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_basicswitch_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * - * @testName: facesFlowBasicSwitchTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that the Flow 'switch' methodology works. - * - * @since 2.2 - */ - public void facesFlowBasicSwitchTest() throws Fault { - - this.goTest("start_a"); - this.goTest("start_b"); - - } // END facesFlowBasicSwitchTest - - // --------------------------- private methods - - private void goTest(String startId) throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Outside of flow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById(startId)); - - page = doClick((HtmlSubmitInput) page.getElementById("switchA")); - - doesPageContain(page, "switchA_result", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Outside of flow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById(startId)); - - page = doClick((HtmlSubmitInput) page.getElementById("switchB")); - - doesPageContain(page, "switchB_result", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Outside of flow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById(startId)); - - page = doClick((HtmlSubmitInput) page.getElementById("switchC")); - - doesPageContain(page, "switchC_result", messages); - - } // END goTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/FlowA.java b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/FlowA.java deleted file mode 100644 index eb94c0224b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/FlowA.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicswitch.beans; - -import java.io.Serializable; - -import jakarta.enterprise.inject.Produces; -import jakarta.faces.flow.Flow; -import jakarta.faces.flow.builder.FlowBuilder; -import jakarta.faces.flow.builder.FlowBuilderParameter; -import jakarta.faces.flow.builder.FlowDefinition; - -public class FlowA implements Serializable { - - private static final long serialVersionUID = -7623501087369765218L; - - public FlowA() { - } - - @Produces - @FlowDefinition - public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { - String flowId = "flow-a"; - flowBuilder.id("", flowId); - flowBuilder.viewNode(flowId, "/" + flowId + "/" + flowId + ".xhtml") - .markAsStartNode(); - flowBuilder.returnNode("taskFlowReturn1") - .fromOutcome("#{flow_a_Bean.returnValue}"); - flowBuilder.switchNode("switchA").defaultOutcome("defaultPage").switchCase() - .condition("#{flow_a_Bean.switchA_Case01}").fromOutcome("page01") - .switchCase().condition("#{flow_a_Bean.switchA_Case02}") - .fromOutcome("page02").switchCase() - .condition("#{flow_a_Bean.switchA_Case03}") - .fromOutcome("switchA_result"); - flowBuilder.switchNode("switchB").defaultOutcome("defaultPage").switchCase() - .condition("#{flow_a_Bean.switchB_Case01}").fromOutcome("page01") - .switchCase().condition("#{flow_a_Bean.switchB_Case02}") - .fromOutcome("switchB_result").switchCase() - .condition("#{flow_a_Bean.switchB_Case03}").fromOutcome("page03"); - flowBuilder.switchNode("switchC") - .defaultOutcome("#{flow_a_Bean.defaultOutcome}").switchCase() - .condition("#{flow_a_Bean.switchC_Case01}").fromOutcome("page01") - .switchCase().condition("#{flow_a_Bean.switchC_Case02}") - .fromOutcome("page02").switchCase() - .condition("#{flow_a_Bean.switchC_Case03}").fromOutcome("page03"); - - return flowBuilder.getFlow(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_a_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_a_Bean.java deleted file mode 100644 index 1c83e2e7fb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_a_Bean.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.basicswitch.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-a") -public class Flow_a_Bean implements Serializable { - - public String getName() { - return "Flow_a_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } - - public boolean isSwitchA_Case01() { - return false; - } - - public boolean isSwitchA_Case02() { - return false; - } - - public boolean isSwitchA_Case03() { - return true; - } - - public boolean isSwitchB_Case01() { - return false; - } - - public boolean isSwitchB_Case02() { - return true; - } - - public boolean isSwitchB_Case03() { - return false; - } - - public boolean isSwitchC_Case01() { - return false; - } - - public boolean isSwitchC_Case02() { - return false; - } - - public boolean isSwitchC_Case03() { - return false; - } - - public String getDefaultOutcome() { - return "switchC_result"; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_b_Bean.java b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_b_Bean.java deleted file mode 100644 index 0cab38f573..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/beans/Flow_b_Bean.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.basicswitch.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "flow-b") -public class Flow_b_Bean implements Serializable { - - public String getName() { - return "Flow_B_Bean"; - } - - public String getReturnValue() { - return "/return1"; - } - - public boolean isSwitchA_Case01() { - return false; - } - - public boolean isSwitchA_Case02() { - return false; - } - - public boolean isSwitchA_Case03() { - return true; - } - - public boolean isSwitchB_Case01() { - return false; - } - - public boolean isSwitchB_Case02() { - return true; - } - - public boolean isSwitchB_Case03() { - return false; - } - - public boolean isSwitchC_Case01() { - return false; - } - - public boolean isSwitchC_Case02() { - return false; - } - - public boolean isSwitchC_Case03() { - return false; - } - - public String getDefaultOutcome() { - return "switchC_result"; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/build.xml deleted file mode 100644 index 562ebdd9c2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.war.sun-web.xml deleted file mode 100644 index 5f0e86d260..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.war.sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /jsf_flows_basicswitch_web - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.xml deleted file mode 100644 index 88e3ce7795..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/basicswitch/jsf_flows_basicswitch_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsf_flows_basicswitch - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/build.xml deleted file mode 100644 index 410821500f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/common/beans.xml b/src/com/sun/ts/tests/jsf/spec/flows/common/beans.xml deleted file mode 100644 index eec532f65e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/common/beans.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/flows/common/faces-config.xml deleted file mode 100644 index 7bc6763800..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/common/faces-config.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/common/flows_common.xml b/src/com/sun/ts/tests/jsf/spec/flows/common/flows_common.xml deleted file mode 100644 index d237ed8cb4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/common/flows_common.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/factory/URLClient.java deleted file mode 100644 index df947feccd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/URLClient.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.factory; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_factory_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowFactoryTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that using a custom FlowsFactory works. - * - * @since 2.2 - */ - public void facesFlowFactoryTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - doesPageContain(page, "Did we wrap: true", messages); - doesPageContain(page, "Did we inject: MyAppBean", messages); - - } // END facesFlowFactoryTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/AppBean.java b/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/AppBean.java deleted file mode 100644 index 960d857801..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/AppBean.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.factory.beans; - -import jakarta.enterprise.context.ApplicationScoped; -import jakarta.inject.Named; - -@Named -@ApplicationScoped -public class AppBean { - - private String id = "MyAppBean"; - - public AppBean() { - } - - public String getId() { - return id; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowBean.java b/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowBean.java deleted file mode 100644 index 38982d0b5b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowBean.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.factory.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named(value = "flowBean") -@FlowScoped(value = "flow") -public class FlowBean implements Serializable { - - public String getName() { - return "basicFlow"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowHandlerFactoryTestImpl.java b/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowHandlerFactoryTestImpl.java deleted file mode 100644 index ac5a1e4eda..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/beans/FlowHandlerFactoryTestImpl.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.factory.beans; - -import jakarta.enterprise.context.ApplicationScoped; -import jakarta.faces.context.FacesContext; -import jakarta.faces.flow.FlowHandler; -import jakarta.faces.flow.FlowHandlerFactory; -import jakarta.faces.flow.FlowHandlerFactoryWrapper; -import jakarta.inject.Inject; -import jakarta.inject.Named; - -/** - * A simple wrapped flow handler factory. - */ -@Named -@ApplicationScoped -public class FlowHandlerFactoryTestImpl extends FlowHandlerFactoryWrapper { - - public FlowHandlerFactoryTestImpl() { - } - - private FlowHandlerFactory wrapped; - - @Inject - private AppBean appBean; - - /** - * Constructor. - * - * @param wrapped - * the wrapped flow handler factory. - */ - public FlowHandlerFactoryTestImpl(FlowHandlerFactory wrapped) { - this.wrapped = wrapped; - } - - @Override - public FlowHandlerFactory getWrapped() { - return this.wrapped; - } - - /** - * Add a message to the context every time the createFlowHandler method is - * called so we can verify later that the factory is actually being used. - * - * @param context - * the Faces context. - * @return the flow handler. - */ - @Override - public FlowHandler createFlowHandler(FacesContext context) { - System.out.println("createFlowHandler"); - FacesContext.getCurrentInstance().getExternalContext().getApplicationMap() - .put("flowHandlerFactoryWrapped", true); - String id = (null != appBean) ? appBean.getId() : "null"; - FacesContext.getCurrentInstance().getExternalContext().getApplicationMap() - .put("appBean", id); - return getWrapped().createFlowHandler(context); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/factory/build.xml deleted file mode 100644 index baeae45c8e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/flows/factory/faces-config.xml deleted file mode 100644 index aedc44aaf2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/faces-config.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - com.sun.ts.tests.jsf.spec.flows.factory.beans.FlowHandlerFactoryTestImpl - - - start - - /start.xhtml - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.war.sun-web.xml deleted file mode 100644 index f0b3cecd4b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.war.sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /jsf_flows_factory_web - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.xml deleted file mode 100644 index 078473e5a1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/factory/jsf_flows_factory_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsf_flows_factory - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/URLClient.java deleted file mode 100644 index f4cca85865..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/URLClient.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.intermediate; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_intermediate_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: facesFlowScopeXMLTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that Flowscope is handled correctly when - * configuration is setup by {flowname}-flow.xml file. - * - * @since 2.2 - */ - public void facesFlowScopeXMLTest() throws Fault { - goTest("maintain-customer-record"); - goTest("maintain-customer-record"); - - } // END facesFlowScopeXMLTest - - /** - * @testName: facesFlowScopeJAVATest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that Flowscope is handled correctly when - * configuration is setup by {flowname}.java file. - * @since 2.2 - */ - public void facesFlowScopeJAVATest() throws Fault { - goTest("maintain-customer-record-java"); - goTest("maintain-customer-record-java"); - - } // END facesFlowScopeJAVATest - - // ---------------------------------- private methods - - private void goTest(String button) throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - doesPageContain(page, "Outside of flow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById(button)); - - page = doClick((HtmlSubmitInput) page.getElementById("createCustomer")); - - doesPageContain(page, "View customer page", messages); - doesPageMatch(page, "(?s).*Customer Id:\\s+([0-9])+.*", messages, true); - - page = doClick((HtmlSubmitInput) page.getElementById("upgrade")); - - doesPageContain(page, "View customer page", messages); - doesPageMatch(page, "(?s).*Customer is upgraded:\\s+true.*", messages, - true); - - page = doClick((HtmlSubmitInput) page.getElementById("exit")); - doesPageContain(page, "return page", messages); - doesPageContain(page, "Finalizer called", messages); - } - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/CustomerBean.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/CustomerBean.java deleted file mode 100644 index 87b9b3f720..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/CustomerBean.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.intermediate.beans; - -public class CustomerBean { - private static int lastId = 0; - - private int myId; - - private boolean upgraded = false; - - public boolean isUpgraded() { - return upgraded; - } - - public void setUpgraded(boolean upgraded) { - this.upgraded = upgraded; - } - - public CustomerBean() { - super(); - myId = incrementId(); - } - - public int getCustomerId() { - return myId; - } - - private synchronized int incrementId() { - return ++lastId; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBean.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBean.java deleted file mode 100644 index bf5044dbac..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBean.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.intermediate.beans; - -import java.io.Serializable; -import java.util.Map; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.flow.FlowHandler; - -public class MaintainCustomerBean implements Serializable { - public MaintainCustomerBean() { - super(); - } - - public String createCustomer() { - // Logic to create a new customer object. - FacesContext context = FacesContext.getCurrentInstance(); - CustomerBean customer = new CustomerBean(); - FlowHandler flowHandler = context.getApplication().getFlowHandler(); - Map flowScope = flowHandler.getCurrentFlowScope(); - if (null == flowScope) { - throw new IllegalStateException("Must have a flow handler"); - } - flowScope.put("customerId", customer.getCustomerId()); - flowScope.put("customerIdValue", customer); - return "router1"; - } - - public String fetchCustomer() { - // Logic to fetch a customer. - return "success"; - } - - public void upgradeCustomer() { - FacesContext context = FacesContext.getCurrentInstance(); - FlowHandler flowHandler = context.getApplication().getFlowHandler(); - Map flowScope = flowHandler.getCurrentFlowScope(); - if (null == flowScope) { - throw new IllegalStateException("Must have a flow handler"); - } - CustomerBean customer = (CustomerBean) flowScope.get("customerIdValue"); - customer.setUpgraded(true); - - } - - public void initializeFlow() { - FacesContext context = FacesContext.getCurrentInstance(); - Map requestMap = context.getExternalContext() - .getRequestMap(); - requestMap.put("initializerMessage", "Initializer called"); - - } - - public void cleanUpFlow() { - Map requestMap = FacesContext.getCurrentInstance() - .getExternalContext().getRequestMap(); - requestMap.put("finalizerMessage", "Finalizer called"); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanJavaFlow.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanJavaFlow.java deleted file mode 100644 index 8cdfe5fbe3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanJavaFlow.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.intermediate.beans; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named(value = "maintainCustomerBeanJava") -@FlowScoped(value = "maintain-customer-record-java") -public class MaintainCustomerBeanJavaFlow extends MaintainCustomerBean { - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanXmlFlow.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanXmlFlow.java deleted file mode 100644 index 902843e982..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerBeanXmlFlow.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.intermediate.beans; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named(value = "maintainCustomerBean") -@FlowScoped(value = "maintain-customer-record") -public class MaintainCustomerBeanXmlFlow extends MaintainCustomerBean { - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerRecordJavaFlowDefinition.java b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerRecordJavaFlowDefinition.java deleted file mode 100644 index 32e601c641..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/beans/MaintainCustomerRecordJavaFlowDefinition.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.intermediate.beans; - -import java.io.Serializable; - -import jakarta.enterprise.inject.Produces; -import jakarta.faces.flow.Flow; -import jakarta.faces.flow.builder.FlowBuilder; -import jakarta.faces.flow.builder.FlowBuilderParameter; -import jakarta.faces.flow.builder.FlowDefinition; - -public class MaintainCustomerRecordJavaFlowDefinition implements Serializable { - - private static final long serialVersionUID = -5610441904980215032L; - - public MaintainCustomerRecordJavaFlowDefinition() { - } - - @Produces - @FlowDefinition - public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { - String flowId = "maintain-customer-record-java"; - flowBuilder.id("", flowId); - flowBuilder.viewNode(flowId, "/" + flowId + "/" + flowId + ".xhtml"); - - flowBuilder.switchNode("router1").markAsStartNode() - .defaultOutcome("view-customer").switchCase() - .condition("#{flowScope.customerId == null}") - .fromOutcome("create-customer"); - flowBuilder.viewNode("create-customer", - "/" + flowId + "/" + "create-customer.xhtml"); - flowBuilder.viewNode("view-customer", - "/" + flowId + "/" + "view-customer.xhtml"); - flowBuilder.viewNode("maintain-customer-record", - "/" + flowId + "/" + "maintain-customer-record"); - flowBuilder.methodCallNode("upgrade-customer") - .expression("#{maintainCustomerBeanJava.upgradeCustomer}") - .defaultOutcome("view-customer"); - flowBuilder.initializer("#{maintainCustomerBeanJava.initializeFlow}"); - flowBuilder.finalizer("#{maintainCustomerBeanJava.cleanUpFlow}"); - flowBuilder.returnNode("success").fromOutcome("/complete"); - flowBuilder.returnNode("errorOccurred").fromOutcome("error"); - - return flowBuilder.getFlow(); - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/build.xml deleted file mode 100644 index 404e1900dd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.war.sun-web.xml deleted file mode 100644 index c31849c823..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.war.sun-web.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - /jsf_flows_intermediate_web - - - - Keep a copy of the generated servlet class' java code. - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.xml deleted file mode 100644 index 83ec111363..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/intermediate/jsf_flows_intermediate_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - jsf_flows_intermediate - - jakarta.faces.PROJECT_STAGE - ${webapp.projectStage} - - - jakarta.faces.PARTIAL_STATE_SAVING - ${webapp.partialStateSaving} - - - jakarta.faces.STATE_SAVING_METHOD - ${webapp.stateSavingMethod} - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/URLClient.java b/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/URLClient.java deleted file mode 100644 index 93402db1eb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/URLClient.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.flows.multipagewebinf; - -import java.io.PrintWriter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_flows_multipagewebinf_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * XXX Revisit tests in this client for CTS 8 and JSF 2.3. See bug ID 21033845 - * for details. - * - * @testName: facesFlowWebInfEntryExitTest - * - * @assertion_ids: - * - * @test_Strategy: Validate the following when Flow config file is packaged in - * WEB-INF directory. (WEB-INF/'{taskflowname}'/flow-xml. - * - * -Entry to Flow, Exit from Flow - * - * @since 2.2 - */ - public void facesFlowWebInfEntryExitTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - - doesPageContain(page, "basicFlow", messages); - - page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - } // END facesFlowWebInfEntryExitTest - - /** - * @testName: facesFlowWebInfScopeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the following when Flow config file is packaged in - * WEB-INF directory. (WEB-INF/'{taskflowname}'/flow-xml. - * - * -FlowScope - * - * @since 2.2 - */ - public void facesFlowWebInfScopeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/index.xhtml"); - - doesPageContain(page, "Page with link to flow entry", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("start")); - - doesPageContain(page, "First page in the flow", messages); - doesPageContain(page, "basicFlow", messages); - - page = doClick((HtmlSubmitInput) page.getElementById("next_a")); - - HtmlTextInput input = (HtmlTextInput) page.getElementById("input"); - final String flowScopeValue = "Value in faces flow scope"; - input.setValueAttribute(flowScopeValue); - - page = doClick((HtmlSubmitInput) page.getElementById("next")); - - doesPageContain(page, flowScopeValue, messages); - - page = doClick((HtmlSubmitInput) page.getElementById("return")); - - doesPageContain(page, "return page", messages); - doesPageNotContain(page, flowScopeValue, messages); - - } // End facesFlowWebInfScopeTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/beans/FlowBean.java b/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/beans/FlowBean.java deleted file mode 100644 index 9641881f72..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/beans/FlowBean.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.flows.multipagewebinf.beans; - -import java.io.Serializable; - -import jakarta.faces.flow.FlowScoped; -import jakarta.inject.Named; - -@Named -@FlowScoped(value = "bounded-task-flow") -public class FlowBean implements Serializable { - - public String getName() { - return "basicFlow"; - } - - public String getReturnValue() { - return "/return1"; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/bounded-task-flow/bounded-task-flow-flow.xml b/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/bounded-task-flow/bounded-task-flow-flow.xml deleted file mode 100644 index 235d049288..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/bounded-task-flow/bounded-task-flow-flow.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - #{flowBean.returnValue} - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/build.xml b/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/build.xml deleted file mode 100644 index e9af5f04fa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/jsf_flows_multipagewebinf_web.xml b/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/jsf_flows_multipagewebinf_web.xml deleted file mode 100644 index 182833acd6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/flows/multipagewebinf/jsf_flows_multipagewebinf_web.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - jsf_flows_multipagewebinf - - Faces Servlet - jakarta.faces.webapp.FacesServlet - 1 - - - Faces Servlet - /faces/* - - - faces/index.xhtml - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/build.xml deleted file mode 100644 index 410821500f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/common/CommonBean.java b/src/com/sun/ts/tests/jsf/spec/jstl/common/CommonBean.java deleted file mode 100644 index 029c138ad2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/common/CommonBean.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) 2008, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.common; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Hashtable; -import java.util.List; -import java.util.Map; - -@jakarta.inject.Named("commonBean") -@jakarta.enterprise.context.RequestScoped -public class CommonBean { - - private String escapeString = "><&'\""; - - private String nullString = null; - - private String trimString = " \t trimmed string \n"; - - private String[] joinString = { "one", "two", "three" }; - - private List fList; - - private Collection fColl; - - private ArrayList fAList; - - private Map fMap; - - private Hashtable fHash; - - public CommonBean() { - fList = new ArrayList(); - fList.add(true); - fList.add(false); - fList.add(true); - - fColl = new ArrayList(); - fColl.add("A"); - fColl.add("B"); - fColl.add("C"); - - fAList = new ArrayList(); - fAList.add(1); - fAList.add(2); - fAList.add(3); - - fMap = new HashMap(); - fMap.put("key1", "value1"); - fMap.put("key2", "value2"); - fMap.put("key3", "value3"); - - fHash = new Hashtable(); - fHash.put("key1", "value1"); - fHash.put("key2", "value2"); - fHash.put("key3", "value3"); - } - - /** - * @return the escapeString - */ - public String getEscapeString() { - return escapeString; - } - - /** - * @param escapeString - * the escapeString to set - */ - public void setEscapeString(String escapeString) { - this.escapeString = escapeString; - } - - /** - * @return the nullString - */ - public String getNullString() { - return nullString; - } - - /** - * @param nullString - * the nullString to set - */ - public void setNullString(String nullString) { - this.nullString = nullString; - } - - /** - * @return the joinString - */ - public String[] getJoinString() { - return joinString; - } - - /** - * @param joinString - * the joinString to set - */ - public void setJoinString(String[] joinString) { - this.joinString = joinString; - } - - /** - * @return the fList - */ - public List getfList() { - return fList; - } - - /** - * @param fList - * the fList to set - */ - public void setfList(List fList) { - this.fList = fList; - } - - /** - * @return the fColl - */ - public Collection getfColl() { - return fColl; - } - - /** - * @param fColl - * the fColl to set - */ - public void setfColl(Collection fColl) { - this.fColl = fColl; - } - - /** - * @return the fAList - */ - public ArrayList getfAList() { - return fAList; - } - - /** - * @param fAList - * the fAList to set - */ - public void setfAList(ArrayList fAList) { - this.fAList = fAList; - } - - /** - * @return the fMap - */ - public Map getfMap() { - return fMap; - } - - /** - * @param fMap - * the fMap to set - */ - public void setfMap(Map fMap) { - this.fMap = fMap; - } - - /** - * @return the fHash - */ - public Hashtable getfHash() { - return fHash; - } - - /** - * @param fHash - * the fHash to set - */ - public void setfHash(Hashtable fHash) { - this.fHash = fHash; - } - - /** - * @return the trimString - */ - public String getTrimString() { - return trimString; - } - - /** - * @param trimString - * the trimString to set - */ - public void setTrimString(String trimString) { - this.trimString = trimString; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/common/faces-config.xml deleted file mode 100644 index bfc00ac678..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/common/faces-config.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/common/jstl.common.xml b/src/com/sun/ts/tests/jsf/spec/jstl/common/jstl.common.xml deleted file mode 100644 index 503e1b944c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/common/jstl.common.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/cwo/URLClient.java deleted file mode 100644 index 7944f28367..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/URLClient.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 56144 2008-11-03 20:26:49Z dougd $ - */ -package com.sun.ts.tests.jsf.spec.jstl.cwo; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_jstl_cwotags_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlCoreCWOTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "c:choose, c:when, c:otherwise" JSTL core tags. - * - * case 1: Simple validation that when's body content is - * processed if the test evaluates to true. case 2: Validate - * that the first when that evaluates to true processes its - * body content. case 3: Validate otherwise is processed if no - * when case evaluates to true - * - * @since 2.0 - */ - public void jstlCoreCWOTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/cwo_facelet.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "test1"); - - if (!validateExistence("test1", "span", testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "PASSED", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "test2"); - - if (!validateExistence("test2", "span", testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "PASSED", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "test3"); - - if (!validateExistence("test3", "span", testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "PASSED", formatter); - - handleTestStatus(messages); - - } // END jstlCoreCWOTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/cwo/build.xml deleted file mode 100644 index 8419a8f8d3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/cwo/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/jsf_jstl_cwotags_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/cwo/jsf_jstl_cwotags_web.xml deleted file mode 100644 index cff63d439c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/cwo/jsf_jstl_cwotags_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_jstl_cwotags - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/URLClient.java deleted file mode 100644 index d9e41ced7d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/URLClient.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fncontains; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fncontains_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionContainsTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:contains" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'gamma Ray', 'mma Ra' = true case2: 'alpha', 'gamma' - * = false case3: 'alpha Bits', 'a Bits' = true case4: 'alpha - * Bits', 'alpha B' = true case5: 'null, 'a Bits' = false - * case6: 'alpha Bits', null = true - * - * @since 2.0 - */ - public void jstlFunctionContainsTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fncontains.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "false", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "false", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionContainsTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/build.xml deleted file mode 100644 index 7d876eccb2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/jsf_jstl_fncontains_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/jsf_jstl_fncontains_web.xml deleted file mode 100644 index a8749b4bd6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontains/jsf_jstl_fncontains_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_jstl_fncontains - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/URLClient.java deleted file mode 100644 index 7db0d2350e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/URLClient.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fncontainsignore; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fncontainsignore_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionContainsIgnoreCaseTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:contains" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'gaMMa RAy', 'gamma ray' = true case2: 'AlphA biTS', - * 'gamma' = false case3: 'alPha Beta', 'a beta' = true case4: - * 'alpha beta', 'ALPHA b' = true case5: null, 'a Beta' = - * false case6: 'Alpha betA', null = true - * - * @since 2.0 - */ - public void jstlFunctionContainsIgnoreCaseTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fncontainsignore.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "false", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "false", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionContainsIgnoreCaseTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/build.xml deleted file mode 100644 index 23c6feee91..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/jsf_jstl_fncontainsignore_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/jsf_jstl_fncontainsignore_web.xml deleted file mode 100644 index ec64c791a0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fncontainsignore/jsf_jstl_fncontainsignore_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fncontainsignore - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/URLClient.java deleted file mode 100644 index fc0888c84a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/URLClient.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnendswith; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnendswith_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionEndsWithTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:contains" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'gammaray', 'gammaray' = true case2: 'gammaray', - * 'GammaRay' = false case3: null, 'a beta' = false case4: - * 'alpha beta', null = true case5: 'gamma ray', 'ray',= true - * case6: 'gamma ray', 'Ray' = false case7: 'gamma ray', '' = - * true case8: '', 'gamma ray' = false - * - * @since 2.0 - */ - public void jstlFunctionEndsWithTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnendswith.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "false", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "false", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "false", formatter); - - // -------------------------------------------------------------- case 7 - HtmlSpan testSeven = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case7"); - - if (!validateExistence("case7", TAG_NAME, testSeven, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - // -------------------------------------------------------------- case 8 - HtmlSpan testEight = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case8"); - - if (!validateExistence("case8", TAG_NAME, testEight, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testEight, "false", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionEndsWithTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/build.xml deleted file mode 100644 index 147bf64442..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/jsf_jstl_fnendswith_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/jsf_jstl_fnendswith_web.xml deleted file mode 100644 index fea496b70e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnendswith/jsf_jstl_fnendswith_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnendswith - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/URLClient.java deleted file mode 100644 index 632f72959c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/URLClient.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnescapexml; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnescapexml_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionescapeXmlTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:escapeXml" JSTL function tag. - * - * Test to make sure the following: - * - * case1: '><&'"' == '><&'"' = true case2: null == '' = - * true - * - * @since 2.0 - */ - public void jstlFunctionescapeXmlTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnescapexml.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "><&'"", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionescapeXmlTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/build.xml deleted file mode 100644 index 92ba68d0f9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/jsf_jstl_fnescapexml_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/jsf_jstl_fnescapexml_web.xml deleted file mode 100644 index 0870463a14..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnescapexml/jsf_jstl_fnescapexml_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnescapexml - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/URLClient.java deleted file mode 100644 index 50744824a7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/URLClient.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnindexof; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnindexof_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionindexOfTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:indexOf" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 3 == fn:indexOf('string', 'ing') - true case2: -1 == - * fn:indexOf('string', 'InG') - true case3: 0 == - * fn:indexOf('string', null) - true case4: -1 == - * fn:indexOf(null, 'ing') - true case5: -1 == fn:indexOf('', - * 'InG') - true case6: 0 == fn:indexOf('string', '') - true - * - * - * @since 2.0 - */ - public void jstlFunctionindexOfTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnindexof.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionindexOfTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/build.xml deleted file mode 100644 index 1f3d86d76c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/jsf_jstl_fnindexof_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/jsf_jstl_fnindexof_web.xml deleted file mode 100644 index 5f53cc578d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnindexof/jsf_jstl_fnindexof_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnindexof - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/URLClient.java deleted file mode 100644 index 66ab8abdc5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/URLClient.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnjoin; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnjoin_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionjoinTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:join" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'one|-|two|-|three' == fn:join(strArray, '|-|') - - * true case2: 'onetwothree' == fn:join(strArray, null) - true - * case3: '' == fn:join(null, ',') - true case4: 'onetwothree' - * == fn:join(strArray, '') - true - * - * @since 2.0 - */ - public void jstlFunctionjoinTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnjoin.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionjoinTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/build.xml deleted file mode 100644 index 1e9c35d684..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/jsf_jstl_fnjoin_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/jsf_jstl_fnjoin_web.xml deleted file mode 100644 index f88d7f7518..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnjoin/jsf_jstl_fnjoin_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnjoin - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/URLClient.java deleted file mode 100644 index e37045714d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/URLClient.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnlength; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnlength_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionlengthTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:length" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 3 == fn:length(strArray) - true case2: 3 == - * fn:length(strList) - true case3: 3 == fn:length(strColl) - - * true case4: 3 == fn:length(intAList) - true case5: 3 == - * fn:length(strMap) - true case6: 3 == fn:length(strTable) - - * true case7: 8 == fn:length('abcdefgh') - true case8: 0 == - * fn:length(nullStr) - true case9: 0 == fn:length('') - true - * - * @since 2.0 - */ - public void jstlFunctionlengthTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnlength.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "true", formatter); - - // -------------------------------------------------------------- case 7 - HtmlSpan testSeven = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case7"); - - if (!validateExistence("case7", TAG_NAME, testSeven, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - // -------------------------------------------------------------- case 8 - HtmlSpan testEight = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case8"); - - if (!validateExistence("case8", TAG_NAME, testEight, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - // -------------------------------------------------------------- case 9 - HtmlSpan testNine = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case9"); - - if (!validateExistence("case9", TAG_NAME, testNine, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testNine, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionlengthTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/build.xml deleted file mode 100644 index 2f5698e61e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/jsf_jstl_fnlength_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/jsf_jstl_fnlength_web.xml deleted file mode 100644 index ca966b51b0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnlength/jsf_jstl_fnlength_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnlength - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/URLClient.java deleted file mode 100644 index 686afd4460..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/URLClient.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnreplace; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnreplace_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionreplaceTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:replace" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'string string' == fn:replace('stnirg stnirg', - * 'nir', 'rin') - true case2: 'stnirg' == - * fn:replace('stnirg', 'gri', 'rin') - true case3: '' == - * fn:replace(null, 'a', 'b') - true case4: 'stnirg' == - * fn:replace('stnirg', null, 'rin') - true case5: 'stg' == - * fn:replace('stnirg', 'nir', null) - true case6: '' == - * fn:replace('', 'a', 'b') - true case7: 'stnirg' == - * fn:replace('stnirg', '', 'rin') - true case8: 'stg' == - * fn:replace('stnirg', 'nir', '') - true - * - * @since 2.0 - */ - public void jstlFunctionreplaceTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnreplace.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "true", formatter); - - // -------------------------------------------------------------- case 7 - HtmlSpan testSeven = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case7"); - - if (!validateExistence("case7", TAG_NAME, testSeven, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - // -------------------------------------------------------------- case 8 - HtmlSpan testEight = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case8"); - - if (!validateExistence("case8", TAG_NAME, testEight, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionreplaceTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/build.xml deleted file mode 100644 index d93da64fe1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/jsf_jstl_fnreplace_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/jsf_jstl_fnreplace_web.xml deleted file mode 100644 index 84b5020e30..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnreplace/jsf_jstl_fnreplace_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnreplace - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/URLClient.java deleted file mode 100644 index c19500f743..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/URLClient.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnsplit; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnsplit_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionsplitTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:split" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'one-two-three' == fn:join(fn:split('one|two|three', - * '|'), '-') - true case2: '' == fn:join(fn:split(null, '|'), - * '-') - true case3: 'one|two|three' == - * fn:join(fn:split('one|two|three', null), '-') - true case4: - * '' == fn:join(fn:split('', '|'), '-') - true case5: - * 'one|two|three' == fn:join(fn:split('one|two|three', ''), - * '-') - true - * - * @since 2.0 - */ - public void jstlFunctionsplitTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnsplit.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionsplitTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/build.xml deleted file mode 100644 index 3502a79f5c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/jsf_jstl_fnsplit_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/jsf_jstl_fnsplit_web.xml deleted file mode 100644 index eb0bb12ecc..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsplit/jsf_jstl_fnsplit_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnsplit - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/URLClient.java deleted file mode 100644 index 5d016254fe..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/URLClient.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnstartswith; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnstartswith_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionStartsWithTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:contains" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'gammaray', 'gammaray' = true case2: 'gammaray', - * 'GammaRay' = false case3: null, 'a beta' = false case4: - * 'alpha beta', null = true case5: 'gamma ray', 'gamma',= - * true case6: 'gamma ray', 'Gamma r' = false case7: 'gamma - * ray', '' = true case8: '', 'gamma ray' = false - * - * @since 2.0 - */ - public void jstlFunctionStartsWithTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnendswith.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "false", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "false", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case6"); - - if (!validateExistence("case6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "false", formatter); - - // -------------------------------------------------------------- case 7 - HtmlSpan testSeven = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case7"); - - if (!validateExistence("case7", TAG_NAME, testSeven, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSeven, "true", formatter); - - // -------------------------------------------------------------- case 8 - HtmlSpan testEight = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case8"); - - if (!validateExistence("case8", TAG_NAME, testEight, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testEight, "false", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionStartsWithTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/build.xml deleted file mode 100644 index 766a41a1cd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/jsf_jstl_fnstartswith_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/jsf_jstl_fnstartswith_web.xml deleted file mode 100644 index c5a77bff0c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnstartswith/jsf_jstl_fnstartswith_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnstartswith - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/URLClient.java deleted file mode 100644 index aaf9c6ac46..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnsubstring; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnsubstring_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionsubStringTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:subString" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'substring' == fn:substring('SsubstringG', 1, 10) - - * true case2: '' == fn:substring(nullStr, 1, 10) - true - * case3: 'Ssubstring' == fn:substring('SsubstringG', -1, 10) - * - true case4: '' == fn:substring('SsubstringG', 12, 11) - - * true case5: 'substringG' == fn:substring('SsubstringG', 1, - * 12) - true - * - * @since 2.0 - */ - public void jstlFunctionsubStringTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnsubstring.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionsubStringTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/build.xml deleted file mode 100644 index c57fc0d4bf..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/jsf_jstl_fnsubstring_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/jsf_jstl_fnsubstring_web.xml deleted file mode 100644 index cd62358a9c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstring/jsf_jstl_fnsubstring_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnsubstring - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/URLClient.java deleted file mode 100644 index 5f48956c4d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnsubstringafter; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnsubstringafter_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionsubStringAfterTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:subStringAfter" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'string' == fn:substringAfter('substring', 'sub') - - * true case2: '' == fn:substringAfter('substring', 'Sub') - - * true case3: 'substring' == fn:substringAfter('substring', - * nullStr) - true case4: '' == fn:substringAfter(nullStr, - * 'sub') - true case5: 'substring' == - * fn:substringAfter('substring', '') - true - * - * @since 2.0 - */ - public void jstlFunctionsubStringAfterTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnsubstringafter.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionsubStringAfterTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/build.xml deleted file mode 100644 index 4d91a3e3db..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/jsf_jstl_fnsubstringafter_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/jsf_jstl_fnsubstringafter_web.xml deleted file mode 100644 index f6a585ca3a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringafter/jsf_jstl_fnsubstringafter_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnsubstringafter - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/URLClient.java deleted file mode 100644 index 2514ea3730..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fnsubstringbefore; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fnsubstringbefore_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctionsubStringBeforeTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:subStringBefore" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'sub' == fn:substringBefore('substring', 'string') - - * true case2: '' == fn:substringBefore('substring', 'String') - * - true case3: '' == fn:substringBefore('substring', - * nullStr) - true case4: '' == fn:substringBefore(nullStr, - * 'sub') - true case5: 'substring' == - * fn:substringBefore('substring', '') - true - * - * @since 2.0 - */ - public void jstlFunctionsubStringBeforeTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fnsubstringbefore.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case3"); - - if (!validateExistence("case3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case4"); - - if (!validateExistence("case4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "true", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case5"); - - if (!validateExistence("case5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctionsubStringBeforeTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/build.xml deleted file mode 100644 index 3d0b210d32..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/jsf_jstl_fnsubstringbefore_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/jsf_jstl_fnsubstringbefore_web.xml deleted file mode 100644 index 3080145393..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fnsubstringbefore/jsf_jstl_fnsubstringbefore_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fnsubstringbefore - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/URLClient.java deleted file mode 100644 index 202f0f7dd1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/URLClient.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fntolowercase; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fntolowercase_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctiontoLowerCaseTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:toLowerCase" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'lower' == fn:toLowerCase('lOwER') - true case2: '' - * == fn:toLowerCase(null) - true - * - * @since 2.0 - */ - public void jstlFunctiontoLowerCaseTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fntolowercase.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctiontoLowerCaseTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/build.xml deleted file mode 100644 index 2c4926b389..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/jsf_jstl_fntolowercase_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/jsf_jstl_fntolowercase_web.xml deleted file mode 100644 index 7560a7ef8e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntolowercase/jsf_jstl_fntolowercase_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fntolowercase - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/URLClient.java deleted file mode 100644 index 06ae3aa358..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/URLClient.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fntouppercase; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fntouppercase_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctiontoUpperCaseTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:toUpperCase" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'UPPER' == fn:toUpperCase('uPpEr') - true case2: '' - * == fn:toUpperCase(nullStr) - true - * - * @since 2.0 - */ - public void jstlFunctiontoUpperCaseTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fntouppercase.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctiontoUpperCaseTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/build.xml deleted file mode 100644 index 1ac353dc47..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/jsf_jstl_fntouppercase_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/jsf_jstl_fntouppercase_web.xml deleted file mode 100644 index 8863194e4c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntouppercase/jsf_jstl_fntouppercase_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fntouppercase - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/URLClient.java deleted file mode 100644 index 69bcfda1b1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/URLClient.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.jstl.fntrim; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String SERVLET_MAPPING = "/faces"; - - private static final String CONTEXT_ROOT = "/jsf_jstl_fntrim_web" - + SERVLET_MAPPING; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlFunctiontrimTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "fn:trim" JSTL function tag. - * - * Test to make sure the following: - * - * case1: 'trimmed string' == fn:trim(trimStr) - true case2: - * '' == fn:trim(nullStr) - true - * - * @since 2.0 - */ - public void jstlFunctiontrimTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/fntrim.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case1"); - - if (!validateExistence("case1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "case2"); - - if (!validateExistence("case2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "true", formatter); - - handleTestStatus(messages); - - } // END jstlFunctiontrimTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/build.xml deleted file mode 100644 index 04f43a4863..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/jsf_jstl_fntrim_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/jsf_jstl_fntrim_web.xml deleted file mode 100644 index f6be7a2387..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/fntrim/jsf_jstl_fntrim_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_fntrim - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/BandBean.java b/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/BandBean.java deleted file mode 100644 index 64269b1902..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/BandBean.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) 2008, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ - -package com.sun.ts.tests.jsf.spec.jstl.foreachtag; - -import java.util.ArrayList; -import java.util.HashSet; -import java.util.LinkedList; -import java.util.List; -import java.util.TreeSet; -import java.util.Vector; - -@jakarta.inject.Named("Band") -@jakarta.enterprise.context.RequestScoped -public class BandBean { - - private String[] firstNames = { "Geddy", "Alex", "Neil" }; - - private List lastNames = new ArrayList(); - - private Vector albums = new Vector(); - - private LinkedList songs = new LinkedList(); - - private HashSet releaseYears = new HashSet(); - - private TreeSet ratings = new TreeSet(); - - public BandBean() { - this.initialSetup(); - } - - private void initialSetup() { - // ArrayList - lastNames.add("Lee"); - lastNames.add("Lifeson"); - lastNames.add("Peart"); - - // Vector - albums.add("Exit Stage Left"); - albums.add("Hemispheres"); - albums.add("Farewell To Kings"); - - // LinkedList - songs.add("Freewill"); - songs.add("2112"); - songs.add("Subdivisions"); - - // HashSet - releaseYears.add("1971"); - releaseYears.add("1972"); - releaseYears.add("1973"); - - // TreeSet - ratings.add("8"); - ratings.add("9"); - ratings.add("10"); - } - - /** - * @return the firstNames - */ - public String[] getFirstNames() { - return firstNames; - } - - /** - * @param firstNames - * the firstNames to set - */ - public void setFirstNames(String[] firstNames) { - this.firstNames = firstNames; - } - - /** - * @return the lastNames - */ - public List getLastNames() { - return lastNames; - } - - /** - * @param lastNames - * the lastNames to set - */ - public void setLastNames(List lastNames) { - this.lastNames = lastNames; - } - - /** - * @return the albums - */ - public Vector getAlbums() { - return albums; - } - - /** - * @param albums - * the albums to set - */ - public void setAlbums(Vector albums) { - this.albums = albums; - } - - /** - * @return the songs - */ - public LinkedList getSongs() { - return songs; - } - - /** - * @param songs - * the songs to set - */ - public void setSongs(LinkedList songs) { - this.songs = songs; - } - - /** - * @return the releaseYears - */ - public HashSet getReleaseYears() { - return releaseYears; - } - - /** - * @param releaseDate - * the releaseYears to set - */ - public void setReleaseYears(HashSet releaseYears) { - this.releaseYears = releaseYears; - } - - /** - * @return the ratings - */ - public TreeSet getRatings() { - return ratings; - } - - /** - * @param rating - * the ratings to set - */ - public void setRatings(TreeSet ratings) { - this.ratings = ratings; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/URLClient.java deleted file mode 100644 index bec51948fb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/URLClient.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 56144 2008-11-03 20:26:49Z dougd $ - */ -package com.sun.ts.tests.jsf.spec.jstl.foreachtag; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_jstl_foreachtag_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: jstlCoreForEachTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "c:foreach" tag in the following. - * - * case:1 Using a String Array render all Elements. case:2 - * Using a ArrayList render all Elements. case:3 Using a - * Vector render all Elements. case:4 Using a LinkedList - * render all Elements. case:5 Using a HashSet render all - * Elements. case:6 Using a TreeSet render all Elements. - * case:7 Testing "Begin" Attribute. case:8 Testing "End" - * Attribute. case:9 Testing "Step" Attribute. case:10 Testing - * VarStatus attribute, (count) case:11 Testing VarStatus - * attribute, (current) case:12 Testing VarStatus attribute, - * (index) case:13 Testing VarStatus attribute, (last) - * - * - * @since 2.0 - */ - public void jstlCoreForEachTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/foreachtag_facelet.xhtml"); - - // -------------------------------------------------------------- case 1 - List fnames = new ArrayList(); - fnames.add("Geddy"); - fnames.add("Alex"); - fnames.add("Neil"); - - testList(page, "Firstname:", fnames, 3, formatter); - - // -------------------------------------------------------------- case 2 - List lnames = new ArrayList(); - lnames.add("Lee"); - lnames.add("Lifeson"); - lnames.add("Peart"); - - testList(page, "Lastname:", lnames, 3, formatter); - - // -------------------------------------------------------------- case 3 - List albums = new ArrayList(); - albums.add("Exit Stage Left"); - albums.add("Hemispheres"); - albums.add("Farewell To Kings"); - - testList(page, "Album:", albums, 3, formatter); - - // -------------------------------------------------------------- case 4 - List songs = new ArrayList(); - songs.add("Freewill"); - songs.add("2112"); - songs.add("Subdivisions"); - - testList(page, "Song:", songs, 3, formatter); - - // -------------------------------------------------------------- case 5 - List dates = new ArrayList(); - dates.add("1971"); - dates.add("1972"); - dates.add("1973"); - - testList(page, "Released:", dates, 3, formatter); - - // -------------------------------------------------------------- case 6 - List ratings = new ArrayList(); - ratings.add("8"); - ratings.add("9"); - ratings.add("10"); - - testList(page, "Rating:", ratings, 3, formatter); - - // -------------------------------------------------------------- case 7 - List third = new ArrayList(); - third.add("Peart"); - - testList(page, "Begin:", third, 1, formatter); - - // -------------------------------------------------------------- case 8 - List first = new ArrayList(); - first.add("Lee"); - - testList(page, "End:", first, 1, formatter); - - // -------------------------------------------------------------- case 9 - List oneAndthree = new ArrayList(); - oneAndthree.add("Lee"); - oneAndthree.add("Peart"); - - testList(page, "Step:", oneAndthree, 2, formatter); - - // ------------------------------------------------------------- case 10 - List count = new ArrayList(); - - count.add("1"); - count.add("2"); - count.add("3"); - - testList(page, "VSCo", count, 3, formatter, true); - - // ------------------------------------------------------------- case 11 - List current = new ArrayList(); - - current.add("Lee"); - current.add("Lifeson"); - current.add("Peart"); - - testList(page, "VSCu", current, 3, formatter, true); - - // ------------------------------------------------------------- case 12 - List index = new ArrayList(); - - index.add("0"); - index.add("1"); - index.add("2"); - - testList(page, "VSI", index, 3, formatter, true); - - // ------------------------------------------------------------- case 13 - List last = new ArrayList(); - - last.add("false"); - last.add("false"); - last.add("true"); - - testList(page, "VSL", last, 3, formatter, true); - - // ------------------------------------------ Finally Handle Messages. - handleTestStatus(messages); - - } // END jstlCoreForEachTagTest // - -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/build.xml deleted file mode 100644 index dbebd14724..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/faces-config.xml deleted file mode 100644 index f026ffdb24..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/faces-config.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/jsf_jstl_foreachtag_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/jsf_jstl_foreachtag_web.xml deleted file mode 100644 index f16bf0b3a2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/foreachtag/jsf_jstl_foreachtag_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_jstl_foreachtag - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/URLClient.java b/src/com/sun/ts/tests/jsf/spec/jstl/iftag/URLClient.java deleted file mode 100644 index c3517a74d0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/URLClient.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: URLClient.java 56144 2008-11-03 20:26:49Z dougd $ - */ -package com.sun.ts.tests.jsf.spec.jstl.iftag; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_jstl_iftag_web"; - - private static final String TAG_NAME = "span"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: jstlCoreIfTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate "c:choose, c:when, c:otherwise" JSTL core tags. - * - * Test to make sure the following equations process - * correctly. - * - * "#{true == true}", "#{false == true}", "#{1 > 0}" "#{1 - * < 0}", "#{vTrue}", "#{vFalse}" - * - * @since 2.0 - */ - public void jstlCoreIfTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/iftag_facelet.xhtml"); - - // -------------------------------------------------------------- case 1 - HtmlSpan testOne = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test1"); - - if (!validateExistence("test1", TAG_NAME, testOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testOne, "true", formatter); - - // -------------------------------------------------------------- case 2 - HtmlSpan testTwo = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test2"); - - if (!validateExistence("test2", TAG_NAME, testTwo, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testTwo, "false", formatter); - - // -------------------------------------------------------------- case 3 - HtmlSpan testThree = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test3"); - - if (!validateExistence("test3", TAG_NAME, testThree, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testThree, "true", formatter); - - // -------------------------------------------------------------- case 4 - HtmlSpan testFour = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test4"); - - if (!validateExistence("test4", TAG_NAME, testFour, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFour, "false", formatter); - - // -------------------------------------------------------------- case 5 - HtmlSpan testFive = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test5"); - - if (!validateExistence("test5", TAG_NAME, testFive, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testFive, "true", formatter); - - // -------------------------------------------------------------- case 6 - HtmlSpan testSix = (HtmlSpan) getElementOfTypeIncludingId(page, TAG_NAME, - "test6"); - - if (!validateExistence("test6", TAG_NAME, testSix, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(testSix, "false", formatter); - - handleTestStatus(messages); - - } // END jstlCoreIfTagTest // - - /** - * @testName: jstlCoreURITest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following statement from the JSTL Core docs. - * - * The pre JSF 2.0 version of Facelets incorrectly declared - * the taglib uri to be http://java.sun.com/jstl/core. For - * backwards compatibility implementations must correctly - * handle inclusions with the incorrect uri, and the correct - * uri, declared here. - * - * @since 2.2 - */ - public void jstlCoreURITest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage uriTest = getPage(CONTEXT_ROOT + "/faces/uri_test_facelet.xhtml"); - - // ------------------------------ JSTL 1.0 - HtmlSpan oldWay = (HtmlSpan) getElementOfTypeIncludingId(uriTest, TAG_NAME, - "old_way"); - - if (!validateExistence("old_way", TAG_NAME, oldWay, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(oldWay, "true", formatter); - - // ------------------------------ JSTL 1.1+ - HtmlSpan newWay = (HtmlSpan) getElementOfTypeIncludingId(uriTest, TAG_NAME, - "new_way"); - - if (!validateExistence("new_way", TAG_NAME, newWay, formatter)) { - handleTestStatus(messages); - return; - } - - validateElementValue(newWay, "true", formatter); - - handleTestStatus(messages); - - } // END jstlCoreIfTagTest // -} diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/build.xml b/src/com/sun/ts/tests/jsf/spec/jstl/iftag/build.xml deleted file mode 100644 index 696aa85ac4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/jstl/iftag/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/jsf_jstl_iftag_web.xml b/src/com/sun/ts/tests/jsf/spec/jstl/iftag/jsf_jstl_iftag_web.xml deleted file mode 100644 index 9d3021312a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/jstl/iftag/jsf_jstl_iftag_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_jstl_iftag - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/TestFilter.java b/src/com/sun/ts/tests/jsf/spec/navigation/TestFilter.java deleted file mode 100644 index 751c23a59f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/TestFilter.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.navigation; - -import java.io.IOException; - -import jakarta.servlet.Filter; -import jakarta.servlet.FilterChain; -import jakarta.servlet.FilterConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; -import jakarta.servlet.http.HttpServletResponse; - -public class TestFilter implements Filter { - - // --------------------------------------- Methods from jakarta.servlet.Filter - - public void init(FilterConfig filterConfig) throws ServletException { - - System.out.println("[TestFilter] init"); - - } // END init - - public void doFilter(ServletRequest servletRequest, - ServletResponse servletResponse, FilterChain filterChain) - throws IOException, ServletException { - - TestServletResponseWrapper wrapper = new TestServletResponseWrapper( - (HttpServletResponse) servletResponse); - filterChain.doFilter(servletRequest, wrapper); - - } // END doFilter - - public void destroy() { - - System.out.println("[TestFilter] destroy"); - - } // END destroy - -} diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/navigation/TestServlet.java deleted file mode 100644 index 3cc94fdcc0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/TestServlet.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.navigation; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.application.NavigationHandler; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.context.FacesContext; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - super.init(config); - - } // init - - // --------------------------------------------------------- Private Methods - - private void setup(FacesContext context, String viewId) { - - ViewHandler origHandler = context.getApplication().getViewHandler(); - context.getApplication().setViewHandler(new TestViewHandler(origHandler)); - context.setViewRoot(origHandler.createView(context, viewId)); - - } // END setup - - private void postTest(FacesContext context) { - - TestViewHandler handler = (TestViewHandler) context.getApplication() - .getViewHandler(); - - context.getApplication().setViewHandler(handler.getDelegate()); - - } // END postTest - - // ------------------------------------------------------------ Test Methods - - public void navHandlerNullOutcomeTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String expectedView = "/nullOutcome.xhtml"; - setup(context, expectedView); - NavigationHandler handler = getApplication().getNavigationHandler(); - - // if outcome is null, the current view should be redisplayed which - // means the view ID shouldn't change - handler.handleNavigation(context, "#{someBean.someAction}", null); - - if (!expectedView.equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Test called handleNavigation() with a" - + " null outcome. The view ID shouldn't have changed."); - out.println("View Expected: " + expectedView); - out.println("View Received: " + context.getViewRoot().getViewId()); - return; - } - - handler.handleNavigation(context, null, null); - if (!expectedView.equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED[2]. Test called handleNavigation() with a" - + " null outcome. The view ID shouldn't have changed."); - out.println("View Expected: " + expectedView); - out.println("View Received: " + context.getViewRoot().getViewId()); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerNullOutcomeTest - - public void navHandlerFromViewExactMatchTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String fromView = "/exactMatch.xhtml"; - setup(context, fromView); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - if (!"/passed.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Unexpected view ID set in FacesContext" - + " where test was configured for an exact match on the " - + "from-view-id."); - out.println("View ID Recieved: " + context.getViewRoot().getViewId()); - out.println("View ID Expected: /passed.xhtml"); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerFromViewExactMatchTest - - public void navHandlerFromViewPatternMatchTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // validate pattern matching...the to-view-id with the longest - // wildcard match should be returned. - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String fromView = "/longestview.xhtml"; - setup(context, fromView); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - if (!"/passed.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Unexpected view ID set in FacesContext" - + " where test was configured for a pattern match on the " - + "from-view-id."); - out.println("View ID Recieved: " + context.getViewRoot().getViewId()); - out.println("View ID Expected: /passed.xhtml"); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerFromViewPatternMatchTest - - public void navHandlerFromViewAsteriskOnlyTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - String fromView = "/someView.xhtml"; - setup(context, fromView); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - if (!"/wildcard.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Unexpected view ID set in FacesContext" - + " where test was configured for a 'any view' match on " - + "from-view-id."); - out.println("View ID Recieved: " + context.getViewRoot().getViewId()); - out.println("View ID Expected: /passed.xhtml"); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - } // END navHandlerFromViewAsteriskOnlyTest - - public void navHandlerFromViewSearchOrderTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - setup(context, "/operation1.xhtml"); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - if (!"/passed1.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Expected exact match to be considered" - + " first when matching the from-view-id."); - out.println("View ID Expected: /passed1.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/operation11.xhtml"); - handler.handleNavigation(context, null, "match"); - - if (!"/passed2.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Expected pattern match to be considered" - + " second when matching the from-view-id."); - out.println("View ID Expected: /passed2.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/operatio.xhtml"); - handler.handleNavigation(context, null, "match"); - if (!"/wildcard.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Expected 'any view' match to be considered" - + " last when matching the from-view-id."); - out.println("View ID Expected: /wildcard.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - } // END navHandlerFromViewSearchOrderTest - - public void navHandlerNavigationCaseTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - setup(context, "/navigationCase.xhtml"); - NavigationHandler handler = getApplication().getNavigationHandler(); - - String action = "#{someBean.someAction}"; - String action2 = "#{someBean.someOtherAction}"; - String outcome = "go"; - String outcome2 = "stop"; - - handler.handleNavigation(context, action, outcome); - - if (!"/passed1.xhtml".equals(context.getViewRoot().getViewId())) { - out.println( - "Test FAILED. Unexpected view returned when passing '" + action - + "' as the action and '" + outcome + "' as the " + "outcome."); - out.println("View ID Expected: /passed1.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/navigationCase.xhtml"); - handler.handleNavigation(context, action, outcome2); - - if (!"/passed3.xhtml".equals(context.getViewRoot().getViewId())) { - out.println( - "Test FAILED. Unexpected view returned when passing '" + action - + "' as the action and '" + outcome2 + "' as the " + "outcome."); - out.println("View ID Expected: /passed3.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/navigationCase.xhtml"); - handler.handleNavigation(context, action2, outcome); - - if (!"/passed2.xhtml".equals(context.getViewRoot().getViewId())) { - out.println( - "Test FAILED. Unexpected view returned when passing '" + action - + "' as the action and '" + outcome2 + "' as the " + "outcome."); - out.println("View ID Expected: /passed2.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/navigationCase.xhtml"); - handler.handleNavigation(context, null, outcome); - - if (!"/passed2.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Unexpected view returned when passing '" + null - + "' as the action and '" + outcome2 + "' as the " + "outcome."); - out.println("View ID Expected: /passed2.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - setup(context, "/navigationCase.xhtml"); - handler.handleNavigation(context, action2, outcome2); - - if (!"/passed4.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Unexpected view returned when passing '" - + action + "' as the from-action and '" + outcome2 + "' as the " - + "outcome."); - out.println("View ID Expected: /passed4.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerNavigationCaseTest - - public void navHandlerRedirectTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - setup(context, "/redirect.xhtml"); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - boolean redirectSent = ((TestServletResponseWrapper) response) - .getRedirectSent(); - - if (!redirectSent) { - out.println("Test FAILED. Expected implementation to call sendRedirect()" - + " if matching navigation case contained ."); - return; - } - - if (!context.getResponseComplete()) { - out.println("Test FAILED. Expected the implementation to call" - + " FacesContext.responseComplete() to return 'true' if the" - + " matching navigation case contained a 'redirect' element."); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerRedirectTest - - public void navHandlerNoNavCaseGoToNextRuleTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // If no matching navigation case is found within a particular rule - // move on to the matching navigation-rule - PrintWriter out = response.getWriter(); - FacesContext context = getFacesContext(); - setup(context, "/matching.xhtml"); - NavigationHandler handler = getApplication().getNavigationHandler(); - - handler.handleNavigation(context, null, "match"); - - if (!"/passed.xhtml".equals(context.getViewRoot().getViewId())) { - out.println("Test FAILED. Implementation didn't continue through" - + " the navigation rules as expected if the first matching " - + "navigation rule didn't have a matching navigation case."); - out.println("View ID Expected: /passed.xhtml"); - out.println("View ID Received: " + context.getViewRoot().getViewId()); - return; - } - - // cleanup - postTest(context); - - out.println(JSFTestUtil.PASS); - - } // END navHandlerNoNavCaseGoToNextRuleTest -} diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/TestServletResponseWrapper.java b/src/com/sun/ts/tests/jsf/spec/navigation/TestServletResponseWrapper.java deleted file mode 100644 index 03cf175949..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/TestServletResponseWrapper.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - *$Id$ - */ - -package com.sun.ts.tests.jsf.spec.navigation; - -import java.io.IOException; - -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.http.HttpServletResponseWrapper; - -public class TestServletResponseWrapper extends HttpServletResponseWrapper { - - private boolean redirectSent = false; - - public TestServletResponseWrapper(HttpServletResponse response) { - super(response); - } - - // ---------------------------------- Methods from HttpServletRequestWrapper - - public void sendRedirect(String s) throws IOException { - - redirectSent = true; - - } // END sendRedirect - - // ---------------------------------------------------------- Public Methods - - public boolean getRedirectSent() { - - return redirectSent; - - } // END getRedirectSent - -} diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/TestViewHandler.java b/src/com/sun/ts/tests/jsf/spec/navigation/TestViewHandler.java deleted file mode 100644 index 020f38d80c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/TestViewHandler.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.navigation; - -import java.io.IOException; -import java.util.Locale; - -import jakarta.faces.FacesException; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; - -public class TestViewHandler extends ViewHandler { - - private ViewHandler delegate; - - public TestViewHandler(ViewHandler delegate) { - - this.delegate = delegate; - - } // END TestViewHandler - - /** - *

- * Returns an appropriate {@link java.util.Locale} to use for this and - * subsequent requests for the current client. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * - * @throws NullPointerException - * if context is null - */ - public Locale calculateLocale(FacesContext context) { - - return delegate.calculateLocale(context); - - } // END calculateLocale - - /** - *

- * Return an appropriate renderKitId for this and subsequent - * requests from the current client. - *

- *

- *

- * The default return value is - * {@link jakarta.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT}. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * - * @throws NullPointerException - * if context is null - */ - public String calculateRenderKitId(FacesContext context) { - - return delegate.calculateRenderKitId(context); - - } // END calculateRenderKitId - - /** - *

- * Create and return a new {@link jakarta.faces.component.UIViewRoot} instance - * initialized with information from the argument FacesContext - * and viewId. - *

- *

- *

- * If there is an existing ViewRoot available on the - * {@link jakarta.faces.context.FacesContext}, this method must copy its - * locale and renderKitId to this new view root. If - * not, this method must call {@link #calculateLocale} and - * {@link #calculateRenderKitId}, and store the results as the values of the - * locale and renderKitId, proeprties, respectively, - * of the newly created UIViewRoot. - *

- * - * @throws NullPointerException - * if context is null - */ - public UIViewRoot createView(FacesContext context, String viewId) { - - return delegate.createView(context, viewId); - - } // END createView - - /** - *

- * Return a URL suitable for rendering (after optional encoding performed by - * the encodeActionURL() method of - * {@link jakarta.faces.context.ExternalContext}) that selects the specified - * view identifier. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for this request - * @param viewId - * View identifier of the desired view - * - * @throws IllegalArgumentException - * if viewId is not valid for this - * ViewHandler. - * @throws NullPointerException - * if context or viewId is - * null. - */ - public String getActionURL(FacesContext context, String viewId) { - - return delegate.getActionURL(context, viewId); - - } // END getActionURL - - /** - *

- * Return a URL suitable for rendering (after optional encoding perfomed by - * the encodeResourceURL() method of - * {@link jakarta.faces.context.ExternalContext}) that selects the specifed web - * application resource. If the specified path starts with a slash, it must be - * treated as context relative; otherwise, it must be treated as relative to - * the action URL of the current view. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * @param path - * Resource path to convert to a URL - * - * @throws IllegalArgumentException - * if viewId is not valid for this - * ViewHandler. - * @throws NullPointerException - * if context or path is - * null. - */ - public String getResourceURL(FacesContext context, String path) { - - return delegate.getResourceURL(context, path); - - } // END getResourceURL - - /** - *

- * Perform whatever actions are required to render the response view to the - * response object associated with the current - * {@link jakarta.faces.context.FacesContext}. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * @param viewToRender - * the view to render - * - * @throws java.io.IOException - * if an input/output error occurs - * @throws NullPointerException - * if context or viewToRender is - * null - * @throws jakarta.faces.FacesException - * if a servlet error occurs - */ - public void renderView(FacesContext context, UIViewRoot viewToRender) - throws IOException, FacesException { - - // no-op - - } // END renderView - - /** - *

- * Perform whatever actions are required to restore the view associated with - * the specified {@link jakarta.faces.context.FacesContext} and - * viewId. It may delegate to the restoreView of the - * associated {@link jakarta.faces.application.StateManager} to do the actual - * work of restoring the view. If there is no available state for the - * specified viewId, return null. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * @param viewId - * the view identifier for the current request - * - * @throws NullPointerException - * if context is null - * @throws jakarta.faces.FacesException - * if a servlet error occurs - */ - public UIViewRoot restoreView(FacesContext context, String viewId) { - - return null; - - } // END restoreView - - /** - *

- * Take any appropriate action to either immediately write out the current - * state information (by calling - * {@link jakarta.faces.application.StateManager#writeState}, or noting where - * state information should later be written. - *

- * - * @param context - * {@link jakarta.faces.context.FacesContext} for the current request - * - * @throws java.io.IOException - * if an input/output error occurs - * @throws NullPointerException - * if context is null - */ - public void writeState(FacesContext context) throws IOException { - - delegate.writeState(context); - - } // END writeState - - // ---------------------------------------------------------- Public Methods - - public ViewHandler getDelegate() { - - return delegate; - - } // END getDelegate - - @Override - public String getWebsocketURL(FacesContext context, String channel) { - throw new UnsupportedOperationException("Not supported yet."); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/URLClient.java b/src/com/sun/ts/tests/jsf/spec/navigation/URLClient.java deleted file mode 100644 index d9a8317e52..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/URLClient.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.navigation; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_nav_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: navHandlerNullOutcomeTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the current view ID stored in the FacesContext isn't - * changed if the outcome passed to handleNavigation() is - * null. - */ - public void navHandlerNullOutcomeTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerNullOutcomeTest"); - invoke(); - } - - /** - * @testName: navHandlerFromViewExactMatchTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the expected view ID is stored in the FacesContext - * when an exact match is found in the navigation-rules. - */ - public void navHandlerFromViewExactMatchTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerFromViewExactMatchTest"); - invoke(); - } - - /** - * @testName: navHandlerFromViewPatternMatchTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the expected view ID is stored in the FacesContext - * when a pattern match is performed on the navigation rules. - * If the proper is is returned in this case, the - * implementation correctly used the longest matching pattern. - */ - public void navHandlerFromViewPatternMatchTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerFromViewPatternMatchTest"); - invoke(); - } - - /** - * @testName: navHandlerFromViewAsteriskOnlyTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the expected view ID is stored in the FacesContext - * when the from-view-id doesn't match any of the exact match - * or pattern match rules and a navigation-rule with a - * from-view-id of '*' exists. - */ - public void navHandlerFromViewAsteriskOnlyTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerFromViewAsteriskOnlyTest"); - invoke(); - } - - /** - * @testName: navHandlerFromViewSearchOrderTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the search order of navigation rules: 1. Exact - * Matches 2. Pattern Matches 3. Asterisk Match - */ - public void navHandlerFromViewSearchOrderTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerFromViewSearchOrderTest"); - invoke(); - } - - /** - * @testName: navHandlerNavigationCaseTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the correct processing of navigation-cases within a - * matching navigation rule: 1. a matching from-action and - * from-outcome 2. a matching from-outcome 3. a matching - * from-action 4. navigation case present with no from-outcome - * or from-action - */ - public void navHandlerNavigationCaseTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerNavigationCaseTest"); - invoke(); - } - - /** - * @testName: navHandlerRedirectTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure HttpServletRequest.sendRedirect is called with the - * expected context-relative path if the 'redirect' element is - * found within a matching navigation case. Additionally - * ensure FacesContext. responseComplete() is called. - */ - public void navHandlerRedirectTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerRedirectTest"); - invoke(); - } - - /** - * @testName: navHandlerNoNavCaseGoToNextRuleTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure that the implementation continues to process - * navigation-rules if the first matching rule doesn't contain - * a matching navigation-case. - */ - public void navHandlerNoNavCaseGoToNextRuleTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "navHandlerNoNavCaseGoToNextRuleTest"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/WEB-INF/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/navigation/WEB-INF/faces-config.xml deleted file mode 100644 index c44ae721d9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/WEB-INF/faces-config.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - /nullOutcome.xhtml - - #{someBean.someAction} - /failed1.xhtml - - - /failed2.xhtml - - - - - /exactMatch.xhtml - - match - /passed.xhtml - - - /failed.xhtml - - - - - /longest* - - /failed1.xhtml - - - - - /long* - - /failed2.xhtml - - - - - /longestv* - - /passed.xhtml - - - - - /operation1.xhtml - - /passed1.xhtml - - - - - /operation* - - /passed2.xhtml - - - - - * - - /wildcard.xhtml - - - - - /navigationCase.xhtml - - #{someBean.someAction} - go - /passed1.xhtml - - - go - /passed2.xhtml - - - #{someBean.someAction} - /passed3.xhtml - - - /passed4.xhtml - - - - - /redirect.xhtml - - /target.xhtml - - - - - - /matching* - - #{someBean.someAction} - go - /failed.xhtml - - - - - /mat* - - /passed.xhtml - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/build.xml b/src/com/sun/ts/tests/jsf/spec/navigation/build.xml deleted file mode 100644 index 6e5ac3f1a8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.war.sun-web.xml deleted file mode 100644 index 81428a0d26..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_nav_web - diff --git a/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.xml b/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.xml deleted file mode 100644 index baf01a6061..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/navigation/jsf_nav_web.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - jsf_nav - - - com.sun.faces.validateXml - true - - - - TestFilter - com.sun.ts.tests.jsf.spec.navigation.TestFilter - - - - TestFilter - TestServlet - - - - TestServlet - com.sun.ts.tests.jsf.spec.navigation.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - TestServlet - /TestServlet - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/body/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/body/URLClient.java deleted file mode 100644 index 4927922fae..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/body/URLClient.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.body; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlBody; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_body_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: bodyRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 2.0 - */ - public void bodyRenderPassthroughTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onload", "js1"); - control.put("onunload", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlBody bodyOne = (HtmlBody) page.getBody(); - - if (!validateExistence("bodyOne", "body", bodyOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, bodyOne, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - - } // END bodyRenderPassthroughTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/body/build.xml b/src/com/sun/ts/tests/jsf/spec/render/body/build.xml deleted file mode 100644 index 179863fc50..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/body/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/body/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/body/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/body/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/body/jsf_render_body_web.xml b/src/com/sun/ts/tests/jsf/spec/render/body/jsf_render_body_web.xml deleted file mode 100644 index 23d885baae..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/body/jsf_render_body_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_body - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/CheckBoxUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/CheckBoxUIBean.java deleted file mode 100644 index e29cee9ed8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/CheckBoxUIBean.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.booleancheckbox; - -import jakarta.faces.component.html.HtmlSelectBooleanCheckbox; - -@jakarta.inject.Named("status") @jakarta.enterprise.context.RequestScoped -public class CheckBoxUIBean { - - private HtmlSelectBooleanCheckbox yesno; - - public HtmlSelectBooleanCheckbox getYesno() { - return yesno; - } - - public void setYesno(HtmlSelectBooleanCheckbox yesno) { - yesno.setDisabled(true); - yesno.setTitle("yes&no"); - yesno.setStyleClass("text"); - - this.yesno = yesno; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/URLClient.java deleted file mode 100644 index 6b2a15e2e0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/URLClient.java +++ /dev/null @@ -1,416 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.booleancheckbox; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlCheckBoxInput; -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_booleancheckbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: booleanCheckboxRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the rendering of checkboxes (BooleanCheckbox): - * case 1: - Only the id attribute is defined. Test that the - * default value of the value attribute is false, causing the - * checkbox to be rendered as unchecked. case 2,3,4: - - * Attributes for id and value are defined. case 5: - - * Attributes for id, value, and class are defined. case 6,7: - * - ensure the disabled attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 8,9: - ensure the readonly attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 10: - Use the "binding" attribute to tie the component to a - * backend bean. Verify that setting the "title", "styleClass" - * and "disabled" attributes through their respective method - * calls are all rendered. - * - * @since 1.2 - */ - public void booleanCheckboxRenderEncodeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // -------------------------------------------------------------- - // case 1 - - HtmlCheckBoxInput input1 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox1"); - - if (!validateExistence("checkbox1", "input", input1, formatter)) { - handleTestStatus(messages); - return; - } - - if (input1.isChecked()) { - formatter.format("Expected the value attribute of the component" - + " checkbox1 to be rendered as 'unchecked', but" - + " found 'checked'"); - } - - // -------------------------------------------------------------- - // case 2 - - HtmlCheckBoxInput input2 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox2"); - - if (!validateExistence("checkbox2", "input", input2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!input2.isChecked()) { - formatter.format("Expected the value attribute of the component" - + " checkbox2 to be rendered as 'checked', but" - + " found 'unchecked'"); - } - - // -------------------------------------------------------------- - // case 3 - - HtmlCheckBoxInput input3 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox3"); - - if (!validateExistence("checkbox3", "input", input3, formatter)) { - handleTestStatus(messages); - return; - } - - if (input3.isChecked()) { - formatter.format("Expected the value attribute of the component" - + " checkbox3 to be rendered as 'unchecked', but" - + " found 'checked'"); - } - - // -------------------------------------------------------------- - // case 4 - - HtmlCheckBoxInput input4 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox4"); - - if (!validateExistence("checkbox4", "input", input4, formatter)) { - handleTestStatus(messages); - return; - } - - if (input4.isChecked()) { - formatter.format("Expected the value attribute of the component" - + " checkbox4 to be rendered as 'unchecked', but" - + " found 'checked'"); - } - - // -------------------------------------------------------------- - // case 5 - HtmlCheckBoxInput input5 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox5"); - - if (!validateExistence("checkbox5", "input", input5, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(input5.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class " - + "attribute to be 'text' for the text field containing" - + " ID 'checkbox5', but found '%s' %n", - input5.getAttribute("class")); - } - - // -------------------------------------------------------------- - // case 6 - HtmlCheckBoxInput input6 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox6"); - - if (!validateExistence("checkbox6", "input", input6, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"disabled".equals(input6.getAttribute("disabled"))) { - formatter.format( - "(checkbox6) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s' %n", - "disabled", input6.getAttribute("disabled")); - } - } - - // -------------------------------------------------------------- - // case 7 - - HtmlCheckBoxInput input7 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox7"); - - if (!validateExistence("checkbox7", "input", input7, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(input7.getDisabledAttribute())) { - formatter.format("(checkbox7) Expected the disabled " - + "attribute to not be rendered when the disabled " - + "attribute was specified as false in the JSP" + " %n."); - } - } - - // -------------------------------------------------------------- - // case 8 - - HtmlCheckBoxInput input8 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox8"); - - if (!validateExistence("checkbox8", "input", input8, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"readonly".equals(input8.getAttribute("readonly"))) { - formatter.format( - "(checkbox8) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s' %n", - "readonly", input8.getAttribute("readonly")); - } - } - - // -------------------------------------------------------------- - // case 9 - - HtmlCheckBoxInput input9 = (HtmlCheckBoxInput) getInputIncludingId(page, - "checkbox9"); - - if (!validateExistence("checkbox9", "input", input9, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(input9.getReadOnlyAttribute())) { - formatter.format("(checkbox9) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + " %n."); - } - } - - // --------------------------------------------------------- case 10 - - HtmlCheckBoxInput input10 = (HtmlCheckBoxInput) getInputIncludingId(page, - "yesno"); - - if (!validateExistence("yesno", "input", input10, formatter)) { - handleTestStatus(messages); - return; - } - - // Test for Styleclass attribute. - String clazzAttrOne = input10.getAttribute("class"); - if (!"text".equals(clazzAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"styleClass\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:SelectBooleanCheckbox", "yesno", "text", clazzAttrOne); - } - - // Test for Disabled attribute. - String disabledAttrOne = input10.getDisabledAttribute(); - if (!"disabled".equals(disabledAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"disabled\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:SelectBooleanCheckbox", "yesno", "disabled", disabledAttrOne); - } - - // Test for Title attribute. - String titleAttrOne = input10.getAttribute("title"); - if (!"yes&no".equals(titleAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"title\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:SelectBooleanCheckbox", "yesno", "yes&no", titleAttrOne); - } - handleTestStatus(messages); - } - } // END booleanCheckboxRenderEncodeTest - - /** - * @testName: booleanCheckboxRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the checkbox is updated (checked) by submitting the - * form. The value after the post back should be 'true'. This - * is validated by getting the value of the component after - * the post-back. - * - * @since 1.2 - */ - public void booleanCheckboxRenderDecodeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlCheckBoxInput checkbox1 = (HtmlCheckBoxInput) getInputIncludingId( - page, "checkbox1"); - - if (!validateExistence("checkbox1", "input", checkbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (checkbox1.isChecked()) { - formatter.format( - "Before click, checkbox checked attribute is " + "'%s'", - checkbox1.isChecked()); - } - - checkbox1.setChecked(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s %n", e); - handleTestStatus(messages); - return; - } - - checkbox1 = (HtmlCheckBoxInput) getInputIncludingId(page, "checkbox1"); - - if (!validateExistence("checkbox1", "input", checkbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!checkbox1.isChecked()) { - formatter.format("After click, checkbox checked attribute is " + "'%s'", - checkbox1.isChecked()); - } - - handleTestStatus(messages); - } - } // END booleanCheckboxRenderDecodeTest - - /** - * @testName: booleanCheckboxRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification for JSP specific pages are rendered as - * is. - * - * @since 1.2 - */ - public void booleanCheckboxRenderPassthroughTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlCheckBoxInput checkbox1 = (HtmlCheckBoxInput) getInputIncludingId( - page, "checkbox1"); - - if (!validateExistence("checkbox1", "input", checkbox1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, checkbox1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - - } - - } // END booleanCheckboxRenderPassthroughTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/build.xml b/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/build.xml deleted file mode 100644 index 0cd6c54068..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/jsf_render_booleancheckbox_web.xml b/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/jsf_render_booleancheckbox_web.xml deleted file mode 100644 index bf4105305d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/booleancheckbox/jsf_render_booleancheckbox_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_booleancheckbox - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/build.xml b/src/com/sun/ts/tests/jsf/spec/render/build.xml deleted file mode 100644 index 13274e3907..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/CommandButtonUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/commandbutton/CommandButtonUIBean.java deleted file mode 100644 index 1c4f38fd0d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/CommandButtonUIBean.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.commandbutton; - -import java.io.Serializable; -import jakarta.faces.component.html.HtmlCommandButton; - -@jakarta.inject.Named("status") @jakarta.enterprise.context.SessionScoped -public class CommandButtonUIBean implements Serializable { - - private static final long serialVersionUID = -2574855687654356327L; - - private HtmlCommandButton onoff; - - public HtmlCommandButton getOnoff() { - return onoff; - } - - public void setOnoff(HtmlCommandButton onoff) { - onoff.setValue("onoff"); - onoff.setStyleClass("blue"); - onoff.setTitle("onoff"); - - this.onoff = onoff; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/commandbutton/URLClient.java deleted file mode 100644 index a4f12c7ca1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/URLClient.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.commandbutton; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlImageInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlResetInput; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_cbutton_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: cbuttonRenderEncodeNonPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Render several command buttons within a form using - * combinations of the various non-passthrough attributes to - * ensure the command button and the non-passthrough - * attributes are properly rendered. - * - * @since 1.2 - */ - public void cbuttonRenderEncodeNonPassthroughTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "command1"); - - // begin validate command1 - if (button1 == null) { - formatter.format("Unable to find rendered" - + " command button containing ID 'command1' %n"); - } else { - if (!"Click Me".equals(button1.getValueAttribute())) { - formatter.format( - "Expected value attribute for command1 to" - + " be 'Click Me', found '%s' %n", - button1.getValueAttribute()); - } - - if (!"submit".equals(button1.getTypeAttribute())) { - formatter.format("Expected type attribute for command1 to " - + "be 'submit', found '%s' %n", button1.getTypeAttribute()); - } - } - - HtmlSubmitInput button2 = (HtmlSubmitInput) getInputIncludingId(page, - "command2"); - - if (button2 == null) { - formatter.format("Unable to find rendered" - + " command button containing ID 'command2' %n"); - } else { - if (!"Click Me".equals(button2.getValueAttribute())) { - formatter.format( - "Expected value attribute for command2 to" - + " be 'Click Me', found '%s' %n", - button2.getValueAttribute()); - } - - if (!"submit".equals(button2.getTypeAttribute())) { - formatter.format("Expected type attribute for command2 to " - + "be 'submit', found '%s' %n", button2.getTypeAttribute()); - } - } - - HtmlResetInput button3 = (HtmlResetInput) getInputIncludingId(page, - "command3"); - - if (button3 == null) { - formatter.format("Unable to find rendered" - + " command button containing ID 'command3' %n"); - } else { - if (!"Click Me".equals(button3.getValueAttribute())) { - formatter.format( - "Expected value attribute for command3 to" - + " be 'Click Me', found '%s' %n", - button3.getValueAttribute()); - } - - if (!"reset".equals(button3.getTypeAttribute())) { - formatter.format("Expected type attribute for command3 to " - + "be 'reset', found '%s' %n", button3.getTypeAttribute()); - } - } - - HtmlSubmitInput button4 = (HtmlSubmitInput) getInputIncludingId(page, - "command4"); - - if (button4 == null) { - formatter.format("Unable to find rendered" - + " command button containing ID 'command4' %n"); - } else { - if (!"Click Me".equals(button4.getValueAttribute())) { - formatter.format( - "Expected value attribute for command4 to" - + " be 'Click Me', found '%s' %n", - button4.getValueAttribute()); - } - - if (!"submit".equals(button4.getTypeAttribute())) { - formatter.format("Expected type attribute for command4 with an" - + " invalid type attribute value specified to " - + "be 'submit', found '%s' %n", button4.getTypeAttribute()); - } - } - - HtmlSubmitInput button5 = (HtmlSubmitInput) getInputIncludingId(page, - "command5"); - - if (button5 == null) { - formatter.format("Unable to find rendered" - + " command button containing ID 'command5' %n"); - } else { - if (!"Click Me".equals(button5.getValueAttribute())) { - formatter.format( - "Expected value attribute for command5 to" - + " be 'Click Me', found '%s' %n", - button5.getValueAttribute()); - } - - if (!"submit".equals(button5.getTypeAttribute())) { - formatter.format("Expected type attribute for command5 to " - + "be 'submit', found '%s' %n", button5.getTypeAttribute()); - } - - if (!"Color: red;".equals(button5.getAttribute("class"))) { - formatter.format( - "Expected class attribute for command5 to" - + " be 'Color: red;', found '%s %n", - button5.getAttribute("class")); - } - } - - HtmlImageInput button6 = (HtmlImageInput) getInputIncludingId(page, - "command6"); - - if (button6 == null) { - formatter.format("Unable to find rendered" - + " command button (as image) containing ID " + "'command6' %n"); - } else { - if ("Click Me".equals(button6.getValueAttribute())) { - formatter.format( - "Didn't expect the value attribute for " - + "command6 to be rendered, found '%s' %n", - button6.getValueAttribute()); - } - - if (!"image".equals(button6.getTypeAttribute())) { - formatter.format("Expected type attribute for command6 " - + "to be 'image', found '%s' %n", button6.getTypeAttribute()); - } - String expectedImgSrc = "pnglogo.png"; - if (!button6.getSrcAttribute().contains(expectedImgSrc)) { - formatter.format( - "Unexpected result for '%s' Attribute!%n" + "Expected: '%s'%n, " - + "Received: '%s'%n", - "src", expectedImgSrc, button6.getSrcAttribute()); - } - } - - HtmlSubmitInput button7 = (HtmlSubmitInput) getInputIncludingId(page, - "command7"); - - if (!validateExistence("command7", "input", button7, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"disabled".equals(button7.getDisabledAttribute())) { - formatter.format( - "(button7) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s' %n", - "disabled", button7.getDisabledAttribute()); - } - } - - HtmlSubmitInput button8 = (HtmlSubmitInput) getInputIncludingId(page, - "command8"); - - if (!validateExistence("command8", "input", button8, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(button8.getDisabledAttribute())) { - formatter.format("(command8) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP" + " %n."); - } - } - - HtmlSubmitInput button9 = (HtmlSubmitInput) getInputIncludingId(page, - "command9"); - - if (!validateExistence("command9", "input", button9, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"readonly".equals(button9.getReadOnlyAttribute())) { - formatter.format( - "(button9) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s' %n", - "readonly", button9.getReadOnlyAttribute()); - } - } - - HtmlSubmitInput button10 = (HtmlSubmitInput) getInputIncludingId(page, - "command10"); - - if (!validateExistence("command10", "input", button10, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(button10.getDisabledAttribute())) { - formatter.format("(button10) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP" + " %n."); - } - } - - // ------------------------------------------------------------ case - // 11 - HtmlSubmitInput button11 = (HtmlSubmitInput) getInputIncludingId(page, - "command11"); - - if (!validateExistence("command11", "input", button11, formatter)) { - handleTestStatus(messages); - return; - } - - // Test for Styleclass attribute. - String clazzAttrOne = button11.getAttribute("class"); - if (!"blue".equals(clazzAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"styleClass\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:commandButton", "onoff", "blue", clazzAttrOne); - } - - // Test for Value attribute. - String valueAttrOne = button11.getValueAttribute(); - if (!"onoff".equals(valueAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"title\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:commandButton", "onoff", "onoff", valueAttrOne); - } - - // Test for Title attribute. - String titleAttrOne = button11.getAttribute("title"); - if (!"onoff".equals(titleAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"title\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:commandButton", "onoff", "onoff", titleAttrOne); - } - - // display test result - handleTestStatus(messages); - } - - } // END cbuttonRenderEncodeNonPassthroughTest - - /** - * @testName: cbuttonRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure that if a commandbutton is clicked, the Faces - * implementation properly decodes the request and invokes the - * specified actionListener. - * - * @since 1.2 - */ - public void cbuttonRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "command1"); - - try { - HtmlPage postBack = (HtmlPage) button1.click(); - // Check to see if an error header was returned - String msgHeader = postBack.getWebResponse() - .getResponseHeaderValue("actionEvent"); - if (msgHeader != null) { - formatter.format(msgHeader + "%n"); - } else { - // Check for non-error header - msgHeader = postBack.getWebResponse() - .getResponseHeaderValue("actionEventOK"); - if (msgHeader == null) { - formatter.format("ActionListener was not invoked " - + "when CommandButton 'command1' was clicked.%n"); - } - } - } catch (IOException e) { - throw new Fault(e); - } - - handleTestStatus(messages); - } - } // END cbuttonRenderDecodeTest - - /** - * @testName: cbuttonRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure those attributes marked as passthrough are indeed - * visible in the rendered markup as specified in the - * JSP/Facelet page. - * - * @since 1.2 - */ - public void cbuttonRenderPassthroughTest() throws Fault { - - TreeMap control = new TreeMap(); - control.put("accesskey", "U"); - control.put("alt", "passthrough"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("ondblclick", "js3"); - control.put("onfocus", "js4"); - control.put("onkeydown", "js5"); - control.put("onkeypress", "js6"); - control.put("onkeyup", "js7"); - control.put("onmousedown", "js8"); - control.put("onmousemove", "js9"); - control.put("onmouseout", "js10"); - control.put("onmouseover", "js11"); - control.put("onmouseup", "js12"); - control.put("onselect", "js13"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "sample"); - - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "command1"); - - if (button1 == null) { - formatter.format("Unable to find rendered input button with " - + "ID containing 'button11' %n"); - return; - } - - validateAttributeSet(control, button1, - new String[] { "name", "id", "value", "type", "onclick" }, formatter); - - handleTestStatus(messages); - } - - } // END cbuttonRenderPassthroughTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/build.xml b/src/com/sun/ts/tests/jsf/spec/render/commandbutton/build.xml deleted file mode 100644 index 8ded266539..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/build.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/commandbutton/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/jsf_render_cbutton_web.xml b/src/com/sun/ts/tests/jsf/spec/render/commandbutton/jsf_render_cbutton_web.xml deleted file mode 100644 index 2a73c6dfcd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandbutton/jsf_render_cbutton_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_render_cbutton - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandlink/CommandLinkUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/commandlink/CommandLinkUIBean.java deleted file mode 100644 index 9bd96143d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandlink/CommandLinkUIBean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.commandlink; - -import jakarta.faces.component.html.HtmlCommandLink; - -@jakarta.inject.Named("linker") @jakarta.enterprise.context.RequestScoped -public class CommandLinkUIBean { - - private HtmlCommandLink gothere; - - public HtmlCommandLink getGothere() { - return gothere; - } - - public void setGothere(HtmlCommandLink gothere) { - // Set some defaults for testing. - gothere.setStyleClass("sansserif"); - gothere.setTitle("gone"); - gothere.setShape("rectangle"); - - this.gothere = gothere; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandlink/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/commandlink/URLClient.java deleted file mode 100644 index 01c5d972ec..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandlink/URLClient.java +++ /dev/null @@ -1,424 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.commandlink; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_clink_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: clinkRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure proper CommandLink rendering: - case 1: Anchor has - * href value of '#' Anchor display value is "Click Me1" - * Anchor onclick attribute value has a non-zero length - * - * - case 2: Anchor has href value of '#' Anchor display value - * is "Click Me2" The styleClass tag attribute is rendered as - * the class attribute on the rendered anchor Anchor onclick - * attribute value has a non-zero length - * - * - case 3: Anchor has href value of '#' Anchor has display - * value of "Click Me3" which is specified as a nested - * HtmlOutput tag. Anchor onclick attribute value has a - * non-zero length - * - * - case 4: REMOVED CODE DUE TO BUG ID:6460959 - * - * - case 5: CommandLink has the disabled attribute set to - * true. Ensure that: A span element is rendered instead of an - * anchor The span has no onclick content The display value of - * the span is 'Disabled Link' The styleClass tag attribute is - * rendered as the class attribute on the rendered span - * element - * - * - case 6: CommandLink has the disabled attribute set to - * true with a nested output component as the link's textual - * value. - * - * - case 7: CommandLink is tied to a backend bean via the - * "binding" attribute. Test to make sure that the "title", - * "shape" & "styleclass" are set and rendered correctly. - * - * @since 1.2 - */ - public void clinkRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - HtmlAnchor link1 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link1"); - - if (link1 == null) { - formatter.format("Unable to find achor with ID containing 'link1'. %n"); - } else { - if (!"#".equals(link1.getHrefAttribute())) { - formatter.format( - "Unexpected value for attribute 'href'. " - + "Expected '#', received: '%s' %n", - link1.getHrefAttribute()); - } - - if (!"Click Me1".equals(link1.asText())) { - formatter.format("Unexpected anchor text. %n" + "Expected: '%s' %n" - + "Received: '%s' %n", "Click Me1", link1.asText()); - } - - if (link1.getOnClickAttribute().length() < 0) { - formatter.format("Expected some render specific content " - + "to be rendered in the 'onclick' attribute for " - + "the anchor, but no content was found. %n"); - } - } - - HtmlAnchor link2 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link2"); - - if (link2 == null) { - formatter.format("Unable to find achor with ID containing 'link1'. %n"); - } else { - if (!"#".equals(link2.getHrefAttribute())) { - formatter.format( - "Unexpected value for attribute 'href'. " - + "Expected '#', received: '%s' %n", - link2.getHrefAttribute()); - } - - if (!"Click Me2".equals(link2.asText())) { - formatter.format("Unexpected anchor text. %n" + "Expected '%s' %n" - + "Received: '%s' %n", "Click Me2", link2.asText()); - } - - if (!"sansserif".equals(link2.getAttribute("class"))) { - formatter.format( - "Unexpected value for class attribute. " - + "Expected 'sansserif' %n" + "Received: '%s'", - link2.getAttribute("style")); - } - - if (link2.getOnClickAttribute().length() < 0) { - formatter.format("Expected some render specific content " - + "to be rendered in the 'onclick' attribute for " - + "the anchor, but no content was found. %n"); - } - } - - HtmlAnchor link3 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link3"); - - if (link3 == null) { - formatter.format("Unable to find achor with ID containing 'link3'. %n"); - } else { - if (!"#".equals(link3.getHrefAttribute())) { - formatter.format( - "Unexpected value for attribute 'href'. " - + "Expected '#', received: '%s' %n", - link3.getHrefAttribute()); - } - - if (!"Click Me3".equals(link3.asText())) { - formatter.format("Unexpected anchor text. " - + "Expected 'Click M3'to be the anchor text " - + "when specified as a nested child (HtmlOutput), " - + "but received: '%s' %n", link3.asText()); - } - - if (link3.getOnClickAttribute().length() < 0) { - formatter.format("Expected some render specific content " - + "to be rendered in the 'onclick' attribute for " - + "the anchor, but no content was found. %n"); - } - } - - // ----------------------------------------------------------- case - // 5 - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "link5"); - - if (span == null) { - formatter.format("Unable to find a span element with an ID" - + " containing 'link5' %n"); - } else { - if (!"sansserif".equals(span.getAttribute("class"))) { - formatter.format("Unexpected value for class attribute " - + "for the rendered span element when CommandLink " - + "is disabled. Expected 'sansserif'%n, " + "but received '%s'%n", - span.getAttribute("class")); - } - - if (!"Disabled Link".equals(span.asText())) { - formatter.format( - "Unexpected textual value for rendered " - + "span element when command link is disabled%n. " - + "Expected 'Disabled Link'%n, but received '%s'%n", - span.asText()); - } - - if (span.getOnClickAttribute().length() > 0) { - formatter.format("Expected no render specific content " - + "to be rendered in the 'onclick' attribute for " - + "the span element, but content was found. %n"); - } - } - - // ----------------------------------------------------------- case - // 6 - HtmlSpan span2 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "link6"); - - if (span2 == null) { - formatter.format("Unable to find a span element with an ID" - + " containing 'link6' %n"); - } else { - if (!"Disabled Link(Nested)".equals(span2.asText())) { - formatter.format("Unexpected textual value for rendered " - + "span element when command link is disabled. " - + "Expected 'Disabled Link(Nested)', " + "but received '%s' %n", - span2.asText()); - } - } - - // ----------------------------------------------------------- case - // 7 - HtmlAnchor span7 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link7"); - - if (span7 == null) { - formatter.format( - "Unable to find a span element with an ID" + " containing 'link7'"); - } else { - if (!"sansserif".equals(span7.getAttribute("class"))) { - formatter.format("Unexpected value for class attribute " + "for " - + "the rendered anchor element when CommandLink is " - + "disabled. Expected 'sansserif'%n, " + "but received '%s'%n", - span7.getAttribute("class")); - } - - if (!"rectangle".equals(span7.getShapeAttribute())) { - formatter.format("Unexpected value for shape attribute " - + "for the rendered anchor element when " - + "CommandLink is disabled. Expected 'gone'%n, " - + "but received '%s'%n", span7.getShapeAttribute()); - } - - if (!"gone".equals(span7.getAttribute("title"))) { - formatter.format("Unexpected value for title attribute " - + "for the rendered anchor element when " - + "CommandLink is disabled. Expected 'gone'%n, " - + "but received '%s'%n", span7.getAttribute("title")); - } - } - - handleTestStatus(messages); - } - } // END clinkRenderEncodeTest - - /** - * @testName: clinkRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: - * - * @since 1.2 - */ - public void clinkRenderDecodeTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlAnchor link1 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link1"); - try { - HtmlPage postBack = (HtmlPage) link1.click(); - // Check to see if an error header was returned - String msgHeader = postBack.getWebResponse() - .getResponseHeaderValue("actionEvent"); - if (msgHeader != null) { - formatter.format(msgHeader + "%n"); - } else { - // Check for non-error header - msgHeader = postBack.getWebResponse() - .getResponseHeaderValue("actionEventOK"); - if (msgHeader == null) { - formatter.format("ActionListener was not invoked " - + "when CommandButton 'command1' was clicked.%n"); - } - - } - } catch (IOException e) { - throw new Fault(e); - } - - handleTestStatus(messages); - } - - } // END clinkRenderDecodeTest - - /** - * @testName: clinkRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure those attributes marked as passthrough are indeed - * visible in the rendered markup as specified in the JSP - * page. - * - * @since 1.2 - */ - public void clinkRenderPassthroughTest() throws Fault { - - TreeMap control = new TreeMap(); - control.put("accesskey", "U"); - control.put("charset", "ISO-8859-1"); - control.put("coords", "31,45"); - control.put("dir", "LTR"); - control.put("hreflang", "en"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("ondblclick", "js3"); - control.put("onfocus", "js4"); - control.put("onkeydown", "js5"); - control.put("onkeypress", "js6"); - control.put("onkeyup", "js7"); - control.put("onmousedown", "js8"); - control.put("onmousemove", "js9"); - control.put("onmouseout", "js10"); - control.put("onmouseover", "js11"); - control.put("onmouseup", "js12"); - control.put("rel", "somevalue"); - control.put("rev", "revsomevalue"); - control.put("shape", "rect"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "sample"); - control.put("type", "type"); - - TreeMap controlSpan = new TreeMap(); - controlSpan.put("accesskey", "U"); - controlSpan.put("dir", "LTR"); - controlSpan.put("lang", "en"); - controlSpan.put("onblur", "js1"); - controlSpan.put("ondblclick", "js3"); - controlSpan.put("onfocus", "js4"); - controlSpan.put("onkeydown", "js5"); - controlSpan.put("onkeypress", "js6"); - controlSpan.put("onkeyup", "js7"); - controlSpan.put("onmousedown", "js8"); - controlSpan.put("onmousemove", "js9"); - controlSpan.put("onmouseout", "js10"); - controlSpan.put("onmouseover", "js11"); - controlSpan.put("onmouseup", "js12"); - controlSpan.put("style", "Color: red;"); - controlSpan.put("tabindex", "0"); - controlSpan.put("title", "sample"); - - - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - controlSpan.put("foo", "bar"); - controlSpan.put("singleatt", "singleAtt"); - controlSpan.put("manyattone", "manyOne"); - controlSpan.put("manyatttwo", "manyTwo"); - controlSpan.put("manyattthree", "manyThree"); - } - - HtmlAnchor anchor = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "link1"); - HtmlSpan span = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "link2"); - - if (anchor == null) { - formatter.format("Unable to find rendered anchor with ID " - + "containing 'link1' %n"); - } - - if (span == null) { - formatter.format( - "Unable to find rendered span with ID " + "containing 'link2' %n"); - } - - if (span == null || anchor == null) { - return; - } - - validateAttributeSet(control, anchor, - new String[] { "name", "id", "value", "href", "onclick" }, formatter); - - validateAttributeSet(controlSpan, span, - new String[] { "name", "id", "value", "href", "onclick" }, formatter); - - handleTestStatus(messages); - } - - } // END clinkRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandlink/build.xml b/src/com/sun/ts/tests/jsf/spec/render/commandlink/build.xml deleted file mode 100644 index 040ba4e11c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandlink/build.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandlink/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/commandlink/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandlink/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/commandlink/jsf_render_clink_web.xml b/src/com/sun/ts/tests/jsf/spec/render/commandlink/jsf_render_clink_web.xml deleted file mode 100644 index d4c28bba8e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/commandlink/jsf_render_clink_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_render_clink - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/AttributeBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/AttributeBean.java deleted file mode 100644 index ed502fee78..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/AttributeBean.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.util.HashMap; -import java.util.Map; -import java.io.Serializable; - -@jakarta.inject.Named("Attribute") @jakarta.enterprise.context.SessionScoped -public class AttributeBean implements Serializable { - - private static final long serialVersionUID = -2564380871083456327L; - - private Map attMap = new HashMap(); - - { - attMap.put("manyattone", "manyOne"); - attMap.put("manyatttwo", "manyTwo"); - attMap.put("manyattthree", "manyThree"); - } - - public Map getAttMap() { - return attMap; - } - - public void setAttMap(Map attMap) { - this.attMap = attMap; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/EscapeBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/EscapeBean.java deleted file mode 100644 index 3b20e7ce82..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/EscapeBean.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; - -@jakarta.inject.Named("Escape") @jakarta.enterprise.context.SessionScoped -public class EscapeBean implements Serializable { - - private static final long serialVersionUID = -3544855687654980327L; - - private String foo; - - private String bar; - - public EscapeBean() { - // Initial settings done on creation of object. - this.foo = "&foo"; - this.bar = "&bar"; - } - - /** - * @param bar - * the bar to set - */ - public void setFoo(String foo) { - this.foo = foo; - } - - /** - * @return the bar - */ - public String getFoo() { - return foo; - } - - /** - * @param bar - * the bar to set - */ - public void setBar(String bar) { - this.bar = bar; - } - - /** - * @return the bar - */ - public String getBar() { - return bar; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/MessageBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/MessageBean.java deleted file mode 100644 index fb3ba6011d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/MessageBean.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; -import jakarta.faces.application.FacesMessage; -import jakarta.faces.context.FacesContext; - -@jakarta.inject.Named("Message") @jakarta.enterprise.context.SessionScoped -public class MessageBean implements Serializable { - - private static final long serialVersionUID = -2156780871083890367L; - - private static String INFO_SUMMARY = "INFO: Summary Message"; - - private static String INFO_DETAIL = "INFO: Detailed Message"; - - private static String WARN_SUMMARY = "WARN: Summary Message"; - - private static String WARN_DETAIL = "WARN: Detailed Message"; - - private static String ERROR_SUMMARY = "ERROR: Summary Message"; - - private static String ERROR_DETAIL = "ERROR: Detailed Message"; - - private static String FATAL_SUMMARY = "FATAL: Summary Message"; - - private static String FATAL_DETAIL = "FATAL: Detailed Message"; - - private FacesMessage message; - - private FacesMessage inputOneMessage; - - private FacesMessage inputTwoMessage; - - private String severity; - - private String id; - - /** Creates a new instance of MessageBean */ - public MessageBean() { - } - - public void setId(String id) { - this.id = id; - } - - public void setSeverity(String severity) { - - FacesContext context = FacesContext.getCurrentInstance(); - - if ("INFO".equals(severity)) { - message = new FacesMessage(FacesMessage.SEVERITY_INFO, INFO_SUMMARY, - INFO_DETAIL); - - context.addMessage(id, message); - - } else if ("WARN".equals(severity)) { - message = new FacesMessage(FacesMessage.SEVERITY_WARN, WARN_SUMMARY, - WARN_DETAIL); - - context.addMessage(id, message); - - } else if ("ERROR".equals(severity)) { - message = new FacesMessage(FacesMessage.SEVERITY_ERROR, ERROR_SUMMARY, - ERROR_DETAIL); - - context.addMessage(id, message); - - } else if ("FATAL".equals(severity)) { - message = new FacesMessage(FacesMessage.SEVERITY_FATAL, FATAL_SUMMARY, - FATAL_DETAIL); - - context.addMessage(id, message); - - } else if ("MESSAGES_INFO".equals(severity)) { - inputOneMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - INFO_SUMMARY + "_One ", INFO_DETAIL + "_One "); - - inputTwoMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, - INFO_SUMMARY + "_Two ", INFO_DETAIL + "_Two "); - - context.addMessage(null, inputOneMessage); - context.addMessage(null, inputTwoMessage); - - } else if ("MESSAGES_WARN".equals(severity)) { - inputOneMessage = new FacesMessage(FacesMessage.SEVERITY_WARN, - WARN_SUMMARY + "_One ", WARN_DETAIL + "_One "); - - inputTwoMessage = new FacesMessage(FacesMessage.SEVERITY_WARN, - WARN_SUMMARY + "_Two ", WARN_DETAIL + "_Two "); - - context.addMessage(null, inputOneMessage); - context.addMessage(null, inputTwoMessage); - - } else if ("MESSAGES_ERROR".equals(severity)) { - inputOneMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, - ERROR_SUMMARY + "_One ", ERROR_DETAIL + "_One "); - - inputTwoMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, - ERROR_SUMMARY + "_Two ", ERROR_DETAIL + "_Two "); - - context.addMessage(null, inputOneMessage); - context.addMessage(null, inputTwoMessage); - - } else if ("MESSAGES_FATAL".equals(severity)) { - inputOneMessage = new FacesMessage(FacesMessage.SEVERITY_FATAL, - FATAL_SUMMARY + "_One ", FATAL_DETAIL + "_One "); - - inputTwoMessage = new FacesMessage(FacesMessage.SEVERITY_FATAL, - FATAL_SUMMARY + "_Two ", FATAL_DETAIL + "_Two "); - - context.addMessage(null, inputOneMessage); - context.addMessage(null, inputTwoMessage); - } - - this.severity = severity; - } - - public String getSeverity() { - return severity; - } - - public String getId() { - return id; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/OutputUIComponentBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/OutputUIComponentBean.java deleted file mode 100644 index 88a7151420..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/OutputUIComponentBean.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; -import jakarta.faces.component.html.HtmlOutputLabel; -import jakarta.faces.component.html.HtmlOutputLink; -import jakarta.faces.component.html.HtmlOutputText; - -@jakarta.inject.Named("Out") @jakarta.enterprise.context.SessionScoped -public class OutputUIComponentBean implements Serializable { - - private static final long serialVersionUID = -2564325687654356327L; - - private HtmlOutputLabel label; - - private HtmlOutputLink link; - - private HtmlOutputText text; - - // For Output label binding test. - public HtmlOutputLabel getLabel() { - return label; - } - - public void setLabel(HtmlOutputLabel label) { - label.setStyleClass("text"); - label.setValue("This is an Output UIComponent"); - - this.label = label; - } - - // For Outputlink binding test. - public HtmlOutputLink getLink() { - return link; - } - - public void setLink(HtmlOutputLink link) { - link.setId("case_three"); - link.setStyleClass("text"); - link.setValue("encodetest_facelet.xhtml"); - - this.link = link; - } - - // For OutputText binding test. - public HtmlOutputText getText() { - return text; - } - - public void setText(HtmlOutputText text) { - text.setStyleClass("text"); - - this.text = text; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/SelectMany01Bean.java b/src/com/sun/ts/tests/jsf/spec/render/common/SelectMany01Bean.java deleted file mode 100644 index f168fa718e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/SelectMany01Bean.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.LinkedHashSet; -import java.util.LinkedList; -import java.util.List; -import java.util.Set; -import java.util.SortedSet; -import java.util.TreeSet; -import java.util.Vector; -import java.util.concurrent.CopyOnWriteArraySet; - -import jakarta.faces.FacesException; -import jakarta.faces.model.SelectItem; - -/** - * $Id: - */ -@jakarta.inject.Named("select01") @jakarta.enterprise.context.SessionScoped -public class SelectMany01Bean implements Serializable { - - private static final long serialVersionUID = -8823380871067856327L; - - private final Collection possibleValues; - - private Set setValues; - - private SortedSet sortedSetValues; - - private List listValues; - - private Collection collectionValues; - - private String[] arrayValues; - - private SortedSet initialSortedSetValues; - - private Collection initialCollectionValues; - - private Set initialSetValues; - - private List initialListValues; - - private Collection collectionFromHintValues; - - private Collection collectionFromHintValues2; - - private Object someValues; - - // Number values - private List listIntegers; - - private List listBigIntegers; - - private List listShorts; - - private List listLongs; - - private List listFloats; - - private List listBigDecimals; - - public SelectMany01Bean() { - - Set items = new LinkedHashSet(); - items.add(new SelectItem("Bilbo")); - items.add(new SelectItem("Frodo")); - items.add(new SelectItem("Merry")); - items.add(new SelectItem("Pippin")); - possibleValues = Collections.unmodifiableSet(items); - initialSortedSetValues = new TreeSet(Collections.reverseOrder()); - initialSortedSetValues.add("Pippin"); - initialSortedSetValues.add("Frodo"); - initialCollectionValues = new LinkedHashSet(2); - initialCollectionValues.add("Bilbo"); - initialCollectionValues.add("Merry"); - initialSetValues = new CopyOnWriteArraySet(); // not Cloneable - initialSetValues.add("Frodo"); - initialListValues = new Vector(); - initialListValues.add("Bilbo"); - initialListValues.add("Pippin"); - initialListValues.add("Merry"); - - this.populateNumberLists(); - } - - // ---------------------------------------------------------- Public Methods - public Set getSetValues() { - return setValues; - } - - public void setSetValues(Set setValues) { - if (!(setValues instanceof HashSet)) { - throw new FacesException( - "[setSetValues] Error: Expected value " + "to be ArrayList"); - } - this.setValues = setValues; - } - - public List getListValues() { - return listValues; - } - - public void setListValues(List listValues) { - if (!(listValues instanceof ArrayList)) { - throw new FacesException( - "[setListValues] Error: Expected value " + "to be ArrayList"); - } - this.listValues = listValues; - } - - public String[] getArrayValues() { - return arrayValues; - } - - public void setArrayValues(String[] arrayValues) { - this.arrayValues = arrayValues; - } - - public SortedSet getSortedSetValues() { - return sortedSetValues; - } - - public void setSortedSetValues(SortedSet sortedSetValues) { - if (!(sortedSetValues instanceof TreeSet)) { - throw new FacesException( - "[setSortedSetValues] Error: Expected " + "value to be TreeSet"); - } - if (((TreeSet) sortedSetValues).comparator() != null) { - throw new FacesException( - "[setSortedSetValues] Error: Expected " + "null comparator"); - } - this.sortedSetValues = sortedSetValues; - } - - public Collection getCollectionValues() { - return collectionValues; - } - - public void setCollectionValues(Collection collectionValues) { - if (!(collectionValues instanceof ArrayList)) { - throw new FacesException( - "[setCollectionValues] Error: Expected " + "value to be ArrayList"); - } - this.collectionValues = collectionValues; - } - - public Collection getPossibleValues() { - return possibleValues; - } - - //////////////////////////////////////////////////////////////////////////// - public SortedSet getInitialSortedSetValues() { - return initialSortedSetValues; - } - - public void setInitialSortedSetValues( - SortedSet initialSortedSetValues) { - if (!(initialSortedSetValues instanceof TreeSet)) { - throw new FacesException("[setInitialSortedSetValues] Error: " - + "Expected value to be TreeMap"); - } - - this.initialSortedSetValues = initialSortedSetValues; - } - - public Collection getInitialCollectionValues() { - return initialCollectionValues; - } - - public void setInitialCollectionValues( - Collection initialCollectionValues) { - if (!(initialCollectionValues instanceof LinkedHashSet)) { - throw new FacesException("[setCollectionValues] Error: Expected " - + "value to be LinkedHashSet"); - } - this.initialCollectionValues = initialCollectionValues; - } - - public Set getInitialSetValues() { - return initialSetValues; - } - - public void setInitialSetValues(Set initialSetValues) { - if (!(initialSetValues instanceof CopyOnWriteArraySet)) { - throw new FacesException("[initialSetValues] Error: Expected " - + "value to be CopyOnWriteArraySet"); - } - this.initialSetValues = initialSetValues; - } - - public List getInitialListValues() { - return initialListValues; - } - - public void setInitialListValues(List initialListValues) { - if (!(initialListValues instanceof Vector)) { - throw new FacesException( - "[initialListValues] Error: Expected " + "value to be Vector"); - } - this.initialListValues = initialListValues; - } - - //////////////////////////////////////////////////////////////////////////// - public Collection getCollectionFromHintValues() { - return collectionFromHintValues; - } - - public void setCollectionFromHintValues( - Collection collectionFromHintValues) { - if (!(collectionFromHintValues instanceof LinkedList)) { - throw new FacesException("[collectionFromHintValues] Error: " - + "Expected value to be LinkedList"); - } - this.collectionFromHintValues = collectionFromHintValues; - } - - public Collection getCollectionFromHintValues2() { - return collectionFromHintValues2; - } - - public void setCollectionFromHintValues2( - Collection collectionFromHintValues) { - if (!(collectionFromHintValues instanceof LinkedList)) { - throw new FacesException("[collectionFromHintValues2] Error: " - + "Expected value to be LinkedList"); - } - this.collectionFromHintValues2 = collectionFromHintValues; - } - - public Class getCollectionType() { - return LinkedList.class; - } - - //////////////////////////////////////////////////////////////////////////// - public Object getSomeValues() { - return someValues; - } - - public void setSomeValues(Object someValues) { - // validate the case where the type is Object.class. The logic should - // default the value to Object[]. - if (!someValues.getClass().isArray()) { - throw new FacesException( - "[someValues] Error: Expected value to " + "be an array type"); - } - this.someValues = someValues; - } - - /** - * @return the listIntegers - */ - public List getListIntegers() { - return listIntegers; - } - - /** - * @param listIntegers - * the listIntegers to set - */ - public void setListIntegers(List listIntegers) { - this.listIntegers = listIntegers; - } - - /** - * @return the listBigIntegers - */ - public List getListBigIntegers() { - return listBigIntegers; - } - - /** - * @param listBigIntegers - * the listBigIntegers to set - */ - public void setListBigIntegers(List listBigIntegers) { - this.listBigIntegers = listBigIntegers; - } - - /** - * @return the listShorts - */ - public List getListShorts() { - return listShorts; - } - - /** - * @param listShorts - * the listShorts to set - */ - public void setListShorts(List listShorts) { - this.listShorts = listShorts; - } - - /** - * @return the listLongs - */ - public List getListLongs() { - return listLongs; - } - - /** - * @param listLongs - * the listLongs to set - */ - public void setListLongs(List listLongs) { - this.listLongs = listLongs; - } - - /** - * @return the listFloats - */ - public List getListFloats() { - return listFloats; - } - - /** - * @param listFloatss - * the listFloatss to set - */ - public void setListFloats(List listFloats) { - this.listFloats = listFloats; - } - - /** - * @return the listBigDecimals - */ - public List getListBigDecimals() { - return listBigDecimals; - } - - /** - * @param listBigDecimals - * the listBigDecimals to set - */ - public void setListBigDecimals(List listBigDecimals) { - this.listBigDecimals = listBigDecimals; - } - - // ---------------------------------------------------------- private methods - private void populateNumberLists() { - // Integer - listIntegers = new ArrayList(); - listIntegers.add(Integer.valueOf(123)); - - // BigInteger - listBigIntegers = new ArrayList(); - listBigIntegers.add(BigInteger.valueOf(123L)); - - // Short - listShorts = new ArrayList(); - listShorts.add(Short.valueOf("123")); - - // Long - listLongs = new ArrayList(); - listLongs.add(Long.valueOf("123")); - - // Floats - listFloats = new ArrayList(); - listFloats.add(Float.valueOf(123f)); - - // BigDecimal - listBigDecimals = new ArrayList(); - listBigDecimals.add(BigDecimal.valueOf(123L)); - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/SelectManyValidator.java b/src/com/sun/ts/tests/jsf/spec/render/common/SelectManyValidator.java deleted file mode 100644 index f0f05c2521..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/SelectManyValidator.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Formatter; -import java.util.Iterator; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.DomAttr; -import com.gargoylesoftware.htmlunit.html.DomElement; -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.gargoylesoftware.htmlunit.html.HtmlTable; - -/** - * $Id - */ -public class SelectManyValidator { - - public SelectManyValidator() { - // Default CTOR - } - - private String[] selectIds = { "array", "list", "set", "sortedset", - "collection", "ilist", "iset", "isortedset", "icollection", "hintString", - "hintClass", "object" }; - - private String[][] initialSelections = { new String[0], new String[0], - new String[0], new String[0], new String[0], - new String[] { "Bilbo", "Pippin", "Merry" }, new String[] { "Frodo" }, - new String[] { "Pippin", "Frodo" }, new String[] { "Bilbo", "Merry" }, - new String[0], new String[0], new String[0] }; - - private String[][] postBackSelections = { new String[] { "Bilbo" }, - new String[] { "Bilbo" }, new String[] { "Bilbo" }, - new String[] { "Bilbo" }, new String[] { "Bilbo" }, - new String[] { "Bilbo" }, new String[] { "Bilbo" }, - new String[] { "Bilbo" }, new String[] { "Bilbo" }, - new String[] { "Bilbo" }, new String[] { "Bilbo" }, - new String[] { "Bilbo" } }; - - public boolean validate(HtmlPage page, Formatter formatter, HtmlForm form) { - - List selects = new ArrayList(); - for (DomElement e : form.getChildElements()) { - if (e instanceof HtmlSelect) { - selects.add((HtmlSelect) e); - } - } - - for (int i = 0; i < selectIds.length; i++) { - String id = selectIds[i]; - System.out.println("Validating HtmlSelect with ID: " + id); - String[] initialSelection = initialSelections[i]; - String[] newSelection = postBackSelections[i]; - - HtmlSelect select = getHtmlSelectForId(selects, id); - - if (!validateExistence(id, "input", select, formatter)) { - return false; - } - - if (!(validateState(select, initialSelection, formatter))) { - return false; - } - updateSelections(select, newSelection); - } - - HtmlInput input = getInputIncludingId(page, "command"); - HtmlPage clickPage; - try { - clickPage = (HtmlPage) input.click(); - } catch (IOException ex) { - formatter.format("Unexpected exception clicking button: %s%n", "command"); - return false; - } - - // ensure no messages were queued by the post-back - if (clickPage.asText().contains("Error:")) { - formatter.format("post-back contains 'Error:'"); - } - - selects.clear(); - - List clrselects = new ArrayList(); - for (DomElement e : form.getChildElements()) { - if (e instanceof HtmlSelect) { - clrselects.add((HtmlSelect) e); - } - } - - for (int i = 0; i < selectIds.length; i++) { - String id = selectIds[i]; - String[] newSelection = postBackSelections[i]; - - HtmlSelect select = getHtmlSelectForId(selects, id); - - if (!(validateState(select, newSelection, formatter))) { - return false; - } - } - - // If everything Passes - return true; - } - - public boolean validate(HtmlPage page, Formatter formatter, HtmlForm form, - boolean isCheckbox) { - - if (!isCheckbox) { - List selects = new ArrayList(); - for (DomElement e : form.getChildElements()) { - if (e instanceof HtmlSelect) { - selects.add((HtmlSelect) e); - } - } - for (int i = 0; i < selectIds.length; i++) { - String id = selectIds[i]; - System.out.println("Validating HtmlSelect with ID: " + id); - String[] initialSelection = initialSelections[i]; - String[] newSelection = postBackSelections[i]; - - HtmlSelect select = getHtmlSelectForId(selects, id); - - if (!validateExistence(id, "input", select, formatter)) { - return false; - } - - if (!(validateState(select, initialSelection, formatter))) { - return false; - } - updateSelections(select, newSelection); - } - - HtmlInput input = getInputIncludingId(page, "command"); - try { - page = (HtmlPage) input.click(); - } catch (IOException ex) { - formatter.format("Unexpected exception clicking button: %s%n", - "command"); - return false; - } - - // ensure no messages were queued by the post-back - if (page.asText().contains("Error:")) { - formatter.format("post-back contains 'Error:'"); - } - - selects.clear(); - - List clrselects = new ArrayList(); - for (DomElement e : form.getChildElements()) { - if (e instanceof HtmlSelect) { - clrselects.add((HtmlSelect) e); - } - } - - for (int i = 0; i < selectIds.length; i++) { - String id = selectIds[i]; - String[] newSelection = postBackSelections[i]; - HtmlSelect select = getHtmlSelectForId(selects, id); - - if (!(validateState(select, newSelection, formatter))) { - return false; - } - } - - } else { - List tables = new ArrayList(); - - for (HtmlElement e : form.getHtmlElementDescendants()) { - if (e instanceof HtmlTable) { - tables.add((HtmlTable) e); - } - } - - for (int i = 0; i < selectIds.length; i++) { - String id = selectIds[i]; - System.out.println("Loading HtmlTable with ID: " + id); - String[] initialSelection = initialSelections[i]; - String[] newSelection = postBackSelections[i]; - List inputElements = new ArrayList(); - - for (HtmlElement hi : tables.get(i).getHtmlElementDescendants()) { - if (hi instanceof HtmlInput) { - // Validate and add the HtmlInputs. - String hiId = ((HtmlInput) hi).getId(); - if (!validateExistence(hiId, "input", (HtmlInput) hi, formatter)) { - return false; - } else { - System.out.println("Validating HtmlInput with " + "ID: " + hiId); - inputElements.add((HtmlInput) hi); - } - } - } - if (!(validateState(inputElements, initialSelection, formatter))) { - return false; - } - - updateSelections(inputElements, newSelection); - } - - HtmlInput input = getInputIncludingId(page, "command"); - try { - page = (HtmlPage) input.click(); - } catch (IOException ex) { - formatter.format("Unexpected exception clicking button: %s%n", - "command"); - return false; - } - - // ensure no messages were queued by the post-back - if (page.asText().contains("Error:")) { - formatter.format("post-back contains 'Error:'"); - return false; - } - - tables.clear(); - - List clrtables = new ArrayList(); - for (HtmlElement e : form.getHtmlElementDescendants()) { - if (e instanceof HtmlTable) { - clrtables.add((HtmlTable) e); - } - } - for (int i = 0; i < selectIds.length; i++) { - String[] newSelection = postBackSelections[i]; - List newinputElements = new ArrayList(); - - for (HtmlElement hi : clrtables.get(i).getHtmlElementDescendants()) { - if (hi instanceof HtmlInput) { - // Validate and add the HtmlInputs. - String hiId = ((HtmlInput) hi).getId(); - if (!validateExistence(hiId, "input", (HtmlInput) hi, formatter)) { - return false; - } else { - newinputElements.add((HtmlInput) hi); - } - } - } - if (!(validateState(newinputElements, newSelection, formatter))) { - return false; - } - - } - } - // If everything Passes - return true; - - } - - private boolean validateState(HtmlSelect select, String[] selectedOptions, - Formatter formatter) { - if (select != null) { - List options = select.getOptions(); - if (options.size() == 4) { - if (selectedOptions == null || selectedOptions.length == 0) { - for (HtmlOption option : options) { - if (option.isSelected()) { - formatter.format( - option.getId() + " is selected and should not have been!"); - return false; - } - } - } else { - for (String text : selectedOptions) { - for (HtmlOption option : options) { - if (text.equals(option.asText())) { - if (!option.isSelected()) { - formatter.format(option.getId() - + " is not selected and should have" + " been!"); - return false; - } - } - } - } - } - } - } - return true; - } - - private boolean validateState(List inputs, - String[] selectedOptions, Formatter formatter) { - - if ((inputs != null) && (inputs.size() == 4)) { - - for (HtmlInput input : inputs) { - Collection options = input.getAttributesMap().values(); - - if ((selectedOptions == null || selectedOptions.length == 0)) { - for (DomAttr option : options) { - if (("checked".equals(option.getName()) - && ("checked".equals(option.getValue())))) { - formatter.format(option.getName() - + " is marked as checked and should not " + "have been!"); - return false; - } - } - } else { - for (String text : selectedOptions) { - for (DomAttr option : options) { - if (text.equals(option.getName())) { - if ("checked".equals(option.getValue())) { - formatter.format(option.getName() - + " is not selected and should have" + " been!"); - return false; - } - } - } - } - } - } - } else { - formatter.format("List of Inputs is either 'null' or less " + "then 4"); - return false; - } - - return true; - } - - private void updateSelections(HtmlSelect select, String[] selectedOptions) { - if (select != null) { - List options = select.getOptions(); - if (options.size() == 4) { - for (String s : selectedOptions) { - for (HtmlOption option : options) { - option.setSelected(s.equals(option.asText())); - } - } - } - } - } - - private void updateSelections(List inputs, - String[] selectedOptions) { - if (inputs != null) { - for (HtmlInput input : inputs) { - for (String s : selectedOptions) { - if (input.getValueAttribute().equals(s)) { - input.setChecked(true); - } - } - } - } - } - - private HtmlSelect getHtmlSelectForId(List selects, String id) { - - for (HtmlSelect select : selects) { - if (select.getId().contains(id)) { - return select; - } - - } - - return null; - } - - private boolean validateExistence(String id, String elementName, - HtmlElement element, Formatter formatter) { - - if (element == null) { - formatter.format( - "Unable to find rendered '%s' element containing " + "the ID '%s'%n", - elementName, id); - return false; - } - - return true; - } - - private HtmlInput getInputIncludingId(HtmlPage root, String id) { - - HtmlInput result = null; - - List list = getAllElementsOfGivenClass(root, null, HtmlInput.class); - for (int i = 0; i < list.size(); i++) { - result = (HtmlInput) list.get(i); - if (-1 != result.getId().indexOf(id)) { - break; - } - result = null; - } - return result; - } - - private List getAllElementsOfGivenClass(HtmlElement root, - List list, Class matchClass) { - - if (null == root) { - return list; - } - if (null == list) { - list = new ArrayList(); - } - - for (Iterator i = root.getHtmlElementDescendants() - .iterator(); i.hasNext();) { - getAllElementsOfGivenClass(i.next(), list, matchClass); - } - - if (matchClass.isInstance(root)) { - if (!list.contains(root)) { - list.add((HtmlElement) root); - } - } - return list; - - } - - private List getAllElementsOfGivenClass(HtmlPage root, List list, - Class matchClass) { - - return getAllElementsOfGivenClass(root.getDocumentElement(), list, - matchClass); - - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/SelectUIComponentBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/SelectUIComponentBean.java deleted file mode 100644 index b1b78f8355..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/SelectUIComponentBean.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; -import jakarta.faces.application.Application; -import jakarta.faces.component.UIComponent; -import jakarta.faces.component.UISelectItem; -import jakarta.faces.context.FacesContext; - -@jakarta.inject.Named("Answer") @jakarta.enterprise.context.SessionScoped -public class SelectUIComponentBean implements Serializable { - - private static final long serialVersionUID = -2564323472383456327L; - - private UIComponent yesNo; - - public UIComponent getYesNo() { - return yesNo; - } - - public void setYesNo(UIComponent answer) { - Application application = FacesContext.getCurrentInstance() - .getApplication(); - - UISelectItem yes = (UISelectItem) application - .createComponent(UISelectItem.COMPONENT_TYPE); - UISelectItem no = (UISelectItem) application - .createComponent(UISelectItem.COMPONENT_TYPE); - - answer.setId("ManySelectItems"); - - // Setup the checkboxes. - yes.setId("y"); - yes.setItemLabel("yes"); - yes.setItemValue("yes"); - - no.setId("n"); - no.setItemLabel("no"); - no.setItemValue("no"); - - // Added the selectItems to the Many UIComponent. - answer.getChildren().add(no); - answer.getChildren().add(yes); - - this.yesNo = answer; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/SimpleActionListener.java b/src/com/sun/ts/tests/jsf/spec/render/common/SimpleActionListener.java deleted file mode 100644 index b016a54525..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/SimpleActionListener.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.util.Map; -import java.io.Serializable; - -import jakarta.faces.component.UIComponent; -import jakarta.faces.context.ExternalContext; -import jakarta.faces.context.FacesContext; -import jakarta.faces.event.AbortProcessingException; -import jakarta.faces.event.ActionEvent; -import jakarta.faces.event.ActionListener; -import jakarta.servlet.http.HttpServletResponse; - -@jakarta.inject.Named("ActionListener") @jakarta.enterprise.context.SessionScoped -public class SimpleActionListener implements ActionListener, Serializable { - - private static final long serialVersionUID = -2123380871083456327L; - - /** - *

- * Invoked when the action described by the specified - * {@link jakarta.faces.event.ActionEvent} occurs. - *

- * - * @param event - * The {@link jakarta.faces.event.ActionEvent} that has occurred - * - * @throws jakarta.faces.event.AbortProcessingException - * Signal the JavaServer Faces implementation that no further - * processing on the current event should be performed - */ - public void processAction(ActionEvent event) throws AbortProcessingException { - - UIComponent component = event.getComponent(); - ExternalContext extContext = FacesContext.getCurrentInstance() - .getExternalContext(); - HttpServletResponse response = (HttpServletResponse) extContext - .getResponse(); - Map requestParamMap = extContext.getRequestParameterMap(); - String expectedId = requestParamMap.get("expectedId"); - - if (expectedId == null) { - response.addHeader("actionEvent", - "Test error. Can't find expected" + " component ID."); - } else { - - if (!expectedId.equals(component.getId())) { - response.addHeader("actionEvent", "Expected component ID '" + expectedId - + "', received: '" + component.getId() + '\''); - } else { - response.addHeader("actionEventOK", "PASSED"); - } - } - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/StatBean.java b/src/com/sun/ts/tests/jsf/spec/render/common/StatBean.java deleted file mode 100644 index b2dc6a5d8a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/StatBean.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.common; - -import java.io.Serializable; - -@jakarta.inject.Named("Status") @jakarta.enterprise.context.SessionScoped -public class StatBean implements Serializable { - - private static final long serialVersionUID = -2808031838038088087L; - - private String formOneOutput = ""; - - private String formTwoOutput = ""; - - private String text = "oldValue"; - - /** Creates a new instance of StatBean */ - public StatBean() { - } - - public String getForm1() { - return ""; - } - - public void setForm1(String form1) { - this.setFormOneOutput(form1); - this.setFormTwoOutput(""); - } - - public String getForm2() { - return ""; - } - - public void setForm2(String form2) { - this.setFormOneOutput(""); - this.setFormTwoOutput(form2); - } - - public String getFormOneOutput() { - return formOneOutput; - } - - public void setFormOneOutput(String formOneOutput) { - this.formOneOutput = formOneOutput; - } - - public String getFormTwoOutput() { - return formTwoOutput; - } - - public void setFormTwoOutput(String formTwoOutput) { - this.formTwoOutput = formTwoOutput; - } - - public String getText() { - return text; - } - - public void setText(String text) { - this.text = text; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/duke-boxer.gif b/src/com/sun/ts/tests/jsf/spec/render/common/duke-boxer.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/render/common/duke-boxer.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/common/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/goodbye.js b/src/com/sun/ts/tests/jsf/spec/render/common/goodbye.js deleted file mode 100644 index 209acb0eb5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/goodbye.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -document.write("Goodbye"); - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/hello.js b/src/com/sun/ts/tests/jsf/spec/render/common/hello.js deleted file mode 100644 index e617ceb43a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/hello.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -document.write("Hello"); diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/morning.css b/src/com/sun/ts/tests/jsf/spec/render/common/morning.css deleted file mode 100644 index 77b9ca7806..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/morning.css +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -.morning { - background-color: yellow; -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/night.css b/src/com/sun/ts/tests/jsf/spec/render/common/night.css deleted file mode 100644 index 445cb62f6b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/night.css +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -.night { - background-color: black; -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/pnglogo.png b/src/com/sun/ts/tests/jsf/spec/render/common/pnglogo.png deleted file mode 100644 index 66f44187b1..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/render/common/pnglogo.png and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/render/common/render.common.xml b/src/com/sun/ts/tests/jsf/spec/render/common/render.common.xml deleted file mode 100644 index 89d6538327..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/common/render.common.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataBean.java b/src/com/sun/ts/tests/jsf/spec/render/datatable/DataBean.java deleted file mode 100644 index 9575768def..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataBean.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.datatable; - -/** - * Simple bean for testing a DataTable - */ -public class DataBean { - - private String name; - - private char gender; - - private short age; - - public DataBean(String name, char gender, short age) { - this.name = name; - this.gender = gender; - this.age = age; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public char getGender() { - return gender; - } - - public void setGender(char gender) { - this.gender = gender; - } - - public short getAge() { - return age; - } - - public void setAge(short age) { - this.age = age; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataListBean.java b/src/com/sun/ts/tests/jsf/spec/render/datatable/DataListBean.java deleted file mode 100644 index f19eda6d2b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataListBean.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.datatable; - -import java.util.ArrayList; -import java.util.List; - -@jakarta.inject.Named("dList") @jakarta.enterprise.context.RequestScoped -public class DataListBean { - - private List dataList = new ArrayList(); - - public DataListBean() { - // default values - dataList.add(new DataBean("Anna", 'f', (short) 28)); - dataList.add(new DataBean("Cort", 'm', (short) 7)); - dataList.add(new DataBean("Cade", 'm', (short) 4)); - } - - /** - * @return the dataList - */ - public List getDataList() { - return dataList; - } - - /** - * @param dataList - * the dataList to set - */ - public void setDataList(List dataList) { - this.dataList = dataList; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataTableUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/datatable/DataTableUIBean.java deleted file mode 100644 index 914e1a1177..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/DataTableUIBean.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.datatable; - -import java.io.Serializable; -import jakarta.faces.application.Application; -import jakarta.faces.component.html.HtmlColumn; -import jakarta.faces.component.html.HtmlDataTable; -import jakarta.faces.component.html.HtmlOutputText; -import jakarta.faces.context.FacesContext; - -@jakarta.inject.Named("library") @jakarta.enterprise.context.SessionScoped -public class DataTableUIBean implements Serializable { - - private static final long serialVersionUID = -2574855687654980327L; - - private HtmlDataTable books; - - public HtmlDataTable getBooks() { - return books; - } - - public void setBooks(HtmlDataTable hdt) { - this.books = hdt; - - books.setId("books"); - books.setTitle("Books"); - books.setBgcolor("FFFF99"); - books.setBorder(2); - - books.getChildren().add(bookTableColumn("Authors")); - books.getChildren().add(bookTableColumn("Titles")); - books.getChildren().add(bookTableColumn("Dates")); - - } - - private HtmlColumn bookTableColumn(String colheader) { - Application application = FacesContext.getCurrentInstance() - .getApplication(); - HtmlColumn column = (HtmlColumn) application - .createComponent(HtmlColumn.COMPONENT_TYPE); - HtmlOutputText header = (HtmlOutputText) application - .createComponent(HtmlOutputText.COMPONENT_TYPE); - - column.setId(colheader); - header.setValue(colheader); - column.setHeader(header); - - return column; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/datatable/URLClient.java deleted file mode 100644 index 6cc3a70758..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/URLClient.java +++ /dev/null @@ -1,1221 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.datatable; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.Iterator; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlCaption; -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlTable; -import com.gargoylesoftware.htmlunit.html.HtmlTableBody; -import com.gargoylesoftware.htmlunit.html.HtmlTableCell; -import com.gargoylesoftware.htmlunit.html.HtmlTableColumnGroup; -import com.gargoylesoftware.htmlunit.html.HtmlTableFooter; -import com.gargoylesoftware.htmlunit.html.HtmlTableHeader; -import com.gargoylesoftware.htmlunit.html.HtmlTableHeaderCell; -import com.gargoylesoftware.htmlunit.html.HtmlTableRow; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_dtable_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: dtableRenderEncodeBasicTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the basic rendering of a datatable that has not - * header or footer facets defined at the table or column - * level as well as no caption facet. Table data1: - ensure no - * caption, header, or footers are rendered - ensure the - * dataset was properly iterated through and displayed (no - * class attribute rendered on the tr and td elements) Table - * data2: - same as data1 above, accept the table has - * rowClasses and columnClasses defined as ("odd,even"). - * Ensure the class attribute for each row and cell has the - * expected value. - * - * Table data3: - Use the binging attribute to tie into a - * Backing Bean. Make sure that the follow attributes are - * rendered. - bgcolor - border - title - * - * @since 1.2 - */ - public void dtableRenderEncodeBasicTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestBasic.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestBasic_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ----------------------------------------------------------- Data1 - - HtmlTable data1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data1"); - - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(data1).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'data1'. This DataTable had no " - + "caption facet. %n"); - } - - // no header facet for the three columns means no thead elements - // should have been rendered - HtmlTableHeader data1Header = data1.getHeader(); - if (data1Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'data1'. This DataTable had no " - + "header facets. %n"); - } - - validateTableBodyRows(data1, "data1", null, null, formatter); - - // ---------------------------------------------------------- Data 2 - - HtmlTable data2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data2"); - - if (!validateExistence("data2", "table", data2, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(data2).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'data2'. This DataTable had no " - + "caption facet. %n"); - } - - // no header facet for the three columns means no thead elements - // should have been rendered - HtmlTableHeader data2Header = data2.getHeader(); - if (data2Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'data2'. This DataTable had no " - + "header facets. %n"); - } - - validateTableBodyRows(data2, "data2", - new String[] { "odd", "even", "odd" }, - new String[] { "even", "odd", "" }, formatter); - // ---------------------------------------------------------- Data 3 - - HtmlTable data3 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data3"); - - if (!validateExistence("data3", "table", data3, formatter)) { - handleTestStatus(messages); - return; - } - - // test for title attribute. - if (!"Books".equals(data3.getAttribute("title"))) { - formatter.format("Unexpected value for title attribute for " - + "the rendered table element. Expected '%s'%n," - + " but received '%s'%n", "Books", data3.getAttribute("title")); - } - - // test for bgcolor attribute. - if (!"FFFF99".equals(data3.getBgcolorAttribute())) { - formatter.format( - "Unexpected value for bgcolor attribute for " - + "the rendered table element. Expected '%s'%n," - + " but received '%s'%n", - "FFFF99", data3.getBgcolorAttribute()); - } - - // test for border attribute. - if (!"2".equals(data3.getBorderAttribute())) { - formatter.format("Unexpected value for border attribute for " - + "the rendered table element. Expected '%s'%n," - + " but received '%s'%n", "2", data3.getBorderAttribute()); - } - - handleTestStatus(messages); - } - } // END dtableRenderEncodeBasicTest - - /** - * @testName: dtableRenderEncodeCaptionTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure a caption is properly rendered when a caption is - * specified as a child of the data table. Additionally ensure - * the captionClass and captionStyle values are appropriately - * rendered when they are and are not specified. Finally, - * validate the rows are rendered as expected. - * - * @since 1.2 - */ - public void dtableRenderEncodeCaptionTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption_facelet.xhtml")); - - for (HtmlPage page : pages) { - - HtmlTable data1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data1"); - - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(data1).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'data1' when caption facet was specified. %n"); - } else { - if (!"Caption Text For Data1".equals(data1.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'data1' to be 'Caption Text For Data1', " - + "received: '%s' %n", data1.getCaptionText()); - } - } - - // ensure no style or class attributes were rendered - HtmlCaption caption = getCaption(data1); - - if (caption.getAttribute("class").length() != 0) { - formatter.format("Expected no class attribute to be " - + "rendered on caption" + " for table containing ID 'data1' %n"); - } - - if (caption.getAttribute("style").length() != 0) { - formatter.format("Expected no style attribute to be " - + "rendered on caption" + " for table containing ID 'data1' %n"); - } - - validateTableBodyRows(data1, "data1", null, null, formatter); - - // next validate that the caption has the style attribute when - // specified - HtmlTable data2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data2"); - - if (!validateExistence("data2", "table", data2, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(data2).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'data2' when caption facet was specified. %n"); - } else { - if (!"Caption Text For Data2".equals(data2.getCaptionText())) { - formatter.format( - "Expected caption for table containing " + "ID 'data2'" - + " to be 'Caption Text For Data2', " + "received: '%s' %n", - data2.getCaptionText()); - } - } - - // ensure style is rendered but class is not - HtmlCaption caption2 = getCaption(data2); - - if (caption2.getAttribute("style").length() == 0) { - formatter.format("styleClass was specified in the JSP, but " - + "no style" + " attribute was found for the rendered caption for " - + "the table containing the ID 'data2'. %n"); - } else { - if (!"Color: red;".equals(caption2.getAttribute("style"))) { - formatter.format( - "Expected style attribute of the " + "rendered caption for the" - + " table containing the ID 'data2' to be rendered " - + "with a value" + " of 'Color: red;'. Value found '%s' %n", - caption2.getAttribute("style")); - } - } - - if (caption2.getAttribute("class").length() != 0) { - formatter.format("Expected no class attribute to be rendered " - + "on caption" + " for table containing ID 'data2' %n"); - } - - validateTableBodyRows(data2, "data2", null, null, formatter); - - // next validate that the caption has the class attribute when - // specified - HtmlTable data3 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data3"); - - if (!validateExistence("data3", "table", data3, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(data3).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'data3' when caption facet was specified. %n"); - } else { - if (!"Caption Text For Data3".equals(data3.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'data3' to be 'Caption Text For Data3', " - + "received: '%s' %n", data3.getCaptionText()); - } - } - - // ensure class is rendered but style is not - HtmlCaption caption3 = getCaption(data3); - - if (caption3.getAttribute("class").length() == 0) { - formatter.format("captionClass was specified in the JSP, " - + "but no class attribute was found for the rendered " - + "caption with the table containing the ID 'data3'. %n"); - } else { - if (!"sansserif".equals(caption3.getAttribute("class"))) { - formatter.format( - "Expected class attribute to the " - + "rendered caption in the table" - + " containing the ID 'data3' to have a value" - + " of 'sansserif'. Value found '%s' %n", - caption3.getAttribute("class")); - } - } - - if (caption3.getAttribute("style").length() != 0) { - formatter.format("Expected no style attribute to be " - + "rendered on caption for table containing ID " + "'data3' %n"); - } - - validateTableBodyRows(data3, "data3", null, null, formatter); - - // next validate that the caption has the class and style attributes - // when specified - HtmlTable data4 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data4"); - - if (!validateExistence("data4", "table", data4, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(data4).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'data4' when caption facet was specified. %n"); - } else { - if (!"Caption Text For Data4".equals(data4.getCaptionText())) { - formatter.format( - "Expected caption for table " + "containing ID 'data4'" - + " to be 'Caption Text For Data4', " + "received: '%s' %n", - data4.getCaptionText()); - } - } - - // ensure both class and style are rendered - HtmlCaption caption4 = getCaption(data4); - - if (caption4.getAttribute("class").length() == 0) { - formatter - .format("captionClass was specified in the JSP, " + "but no class" - + " attribute was found for the rendered caption in " - + "the table containing the ID 'data4'. %n"); - } else { - if (!"sansserif".equals(caption4.getAttribute("class"))) { - formatter.format( - "Expected class attribute of the " + "rendered caption in the" - + " table containing the ID 'data4' to have a value" - + " of 'sansserif'. Value found '%s' %n", - caption4.getAttribute("class")); - } - } - - if (caption4.getAttribute("style").length() == 0) { - formatter.format("styleClass was specified in the JSP, " - + "but no style attribute was found for the rendered " - + "caption in table containing the ID 'data4'. %n"); - } else { - if (!"Color: red;".equals(caption4.getAttribute("style"))) { - formatter.format("Expected style attribute to be " - + "rendered with a value of 'sansserif'. " - + "Value found '%s' %n", caption4.getAttribute("style")); - } - } - validateTableBodyRows(data4, "data4", null, null, formatter); - - handleTestStatus(messages); - } - } // END dtableRenderEncodeCaptionTest - - /** - * @testName: dtableRenderEncodeColGrpTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure a that a colgroup is render properly when specified - * with a facet tag. - * - * Validate: - Three "colgroups are rendered with proper align - * attribute" - All are render before the "Table Header" & - * "Table Footer" - * - * @since 2.0 - */ - public void dtableRenderEncodeColGrpTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption_facelet.xhtml")); - - for (HtmlPage page : pages) { - - HtmlTable data5 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data5"); - - if (!validateExistence("data5", "table", data5, formatter)) { - handleTestStatus(messages); - return; - } - - HtmlTableColumnGroup column1 = (HtmlTableColumnGroup) getElementOfTypeIncludingId( - page, "colgroup", "lefty"); - HtmlTableColumnGroup column2 = (HtmlTableColumnGroup) getElementOfTypeIncludingId( - page, "colgroup", "middle"); - HtmlTableColumnGroup column3 = (HtmlTableColumnGroup) getElementOfTypeIncludingId( - page, "colgroup", "righty"); - - if (!"left".equals(column1.getAlignAttribute())) { - formatter.format("Unexpected result for Align attribute for " - + "Column ID: %s %n" + "Expected: %s %n" + "Receieved: " - + column1.getAlignAttribute(), "lefty", "left"); - } - - if (!"center".equals(column2.getAlignAttribute())) { - formatter.format("Unexpected result for Align attribute for " - + "Column ID: %s %n" + "Expected: %s %n" + "Receieved: " - + column2.getAlignAttribute() + "%n", "middle", "center"); - } - - if (!"right".equals(column3.getAlignAttribute())) { - formatter.format("Unexpected result for Align attribute for " - + "Column ID: %s %n" + "Expected: %s %n" + "Receieved: " - + column2.getAlignAttribute(), "righty", "right"); - } - - handleTestStatus(messages); - } - - } // END dtableRenderEncodeColGrpTest - - /** - * @testName: dtableRenderEncodeTableHeaderFooterTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following: Data1: - thead with single nested - * tr/th element combination - th element has scope attribute - * value of colgroup - th element has colspan of 3 as 3 - * columns are defined - th element has no class attribute - * rendered - tfoot with single nested tr/td element - * combination - td element has no scope attribute rendered - - * td element has colspan of 3 as 3 columns are defined - td - * element has no class attribute rendered Data2: - the same - * as above except the class attribute value is validated on - * the rendered th and td elements as headerClass and - * footerClass are defined for this table in the JSP - * - * @since 1.2 - */ - public void dtableRenderEncodeTableHeaderFooterTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestTableHeaderFooter.xhtml")); - pages.add(getPage( - CONTEXT_ROOT + "/faces/encodetestTableHeaderFooter_facelet.xhtml")); - - for (HtmlPage page : pages) { - - HtmlTable data1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data1"); - - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - // One table header should be available with a cell - // spanning all three specified columns - HtmlTableHeader data1Header = data1.getHeader(); - if (data1Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'data1' when header facet was specified. %n"); - } else { - // should find a single row with a colspan of 3. - if (data1Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row for " - + "table containing ID 'data1', but found '%s' %n", - data1Header.getRows().size()); - } else { - List headerRows = data1Header.getRows(); - HtmlTableRow row = (HtmlTableRow) headerRows.get(0); - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'data1' to have a " - + "colspan of 3 as three columns was " - + "specified. Colspan received '%s' %n.", - cell.getColumnSpan()); - } else { - if (!"Header Text For Data1".equals(cell.asText())) { - formatter.format("Expected table header cell " - + "for table containing ID 'data1' to " - + "contain 'Header Text For Data1', " + "received: '%s'. %n", - cell.asText()); - } - } - - // validate scope attribute for the th element of the header - if (!"colgroup".equals(cell.getScopeAttribute())) { - formatter.format("Expected the scope attribute of " - + "the 'th' element to be 'colgroup', but " + "found '%s' %n", - cell.getScopeAttribute()); - } - - // validate no class attribute was rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("class"))) { - formatter.format("Expected no class attribute to be " - + "rendered on the 'th' element since no " - + "headerClass attribute was defined in the JSP"); - } - } - } - - // One table footer should be available with a cell - // spanning all three specified columns - HtmlTableFooter data1Footer = data1.getFooter(); - if (data1Footer == null) { - formatter.format("Footer not rendered for table containing " - + "ID 'data1' when footer facet was specified. %n"); - } else { - // should find a single row with a colspan of 3. - if (data1Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row for " - + "table containing ID 'data1', but found '%s' %n", - data1Footer.getRows().size()); - } else { - List footerRows = data1Footer.getRows(); - HtmlTableRow row = (HtmlTableRow) footerRows.get(0); - HtmlTableCell cell = row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'data1' to have a " - + "colspan of 3 as three columns was " - + "specified. Colspan received '%s' %n.", - cell.getColumnSpan()); - } else { - if (!"Footer Text For Data1".equals(cell.asText())) { - formatter.format("Expected table footer cell for " - + "table containing ID 'data1' to " - + "contain 'Footer Text For Data1', " + "received: '%s'. %n", - cell.asText()); - } - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to " - + "be rendered on the table footer, but " - + "the attribute was found."); - } - - // validate no class attribute was rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("class"))) { - formatter.format("Expected no class attribute to " - + "be rendered for the footer since no " - + "footerClass attribute was defined in the JSP"); - } - } - } - - validateTableBodyRows(data1, "data1", null, null, formatter); - - // ---------------------------------------------------------- Data 2 - - HtmlTable data2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data2"); - - if (!validateExistence("data2", "table", data2, formatter)) { - handleTestStatus(messages); - return; - } - - // One table header should be available with a cell - // spanning all three specified columns - HtmlTableHeader data2Header = data2.getHeader(); - if (data2Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'data2' when header facet was specified. %n"); - } else { - // should find a single row with a colspan of 3. - if (data2Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row " - + "for table containing ID 'data2', but found '%s'%n", - data2Header.getRows().size()); - } else { - List headerRows = data2Header.getRows(); - HtmlTableRow row = (HtmlTableRow) headerRows.get(0); - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'data2' to have a " - + "colspan of 3 as three columns was " - + "specified. Colspan received '%s' %n.", - cell.getColumnSpan()); - } else { - if (!"Header Text For Data2".equals(cell.asText())) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'data2' to contain " - + "'Header Text For Data2', " + "received: '%s'.%n", - cell.asText()); - } - } - - // validate scope attribute for the th element of the header - if (!"colgroup".equals(cell.getScopeAttribute())) { - formatter.format("Expected the scope attribute of " - + "the 'th' element to be 'colgroup', but " + "found '%s' %n", - cell.getScopeAttribute()); - } - - // validate class attribute was rendered - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format("Expected the class attribute " - + "of the 'th' element to be 'sansserif', " - + "but found '%s' %n", cell.getAttribute("class")); - } - } - } - - // One table footer should be available with a cell - // spanning all three specified columns - HtmlTableFooter data2Footer = data2.getFooter(); - if (data2Footer == null) { - formatter.format("Footer not rendered for table containing " - + "ID 'data2' when footer facet was specified. %n"); - } else { - // should find a single row with a colspan of 3. - if (data2Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row " - + "for table containing ID 'data2', but " + "found '%s' %n", - data2Footer.getRows().size()); - } else { - List footerRows = data2Footer.getRows(); - HtmlTableRow row = (HtmlTableRow) footerRows.get(0); - HtmlTableCell cell = row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'data2' to have a " - + "colspan of 3 as three columns was " - + "specified. Colspan received '%s' %n.", - cell.getColumnSpan()); - } else { - if (!"Footer Text For Data2".equals(cell.asText())) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'data2' to contain " - + "Footer Text For Data2', received: " + "'%s'. %n", - cell.asText()); - } - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to be " - + "rendered on the table footer, but the " - + "attribute was found."); - } - - // validate class attribute was rendered - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format( - "Expected the class attribute of " - + "the 'td' element of the footer to be " - + "'sansserif', but found '%s' %n", - cell.getAttribute("class")); - } - } - } - - validateTableBodyRows(data2, "data2", null, null, formatter); - - handleTestStatus(messages); - } - } // END dtableRenderEncodeTableHeaderFooterTest - - /** - * @testName: dtableRenderEncodeColumnHeaderFooterTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following: Data1: - thead with three nested - * tr/th element combinations - each th element has scope - * attribute value of col - each th element has no class - * attribute rendered - tfoot with three nested tr/td element - * combinations - each td element has no scope attribute - * rendered - each td element has no class attribute rendered - * Data2: - the same as above except the class attribute value - * is validated on the rendered th and td elements as - * headerClass and footerClass are defined for this table in - * the JSP Data3: - the same as Data1, except headerClass and - * footerClass are defined on the table as well as two of the - * columns. Validate that the class specified on the column - * level overrides the table level definition - * - * @since 1.2 - */ - public void dtableRenderEncodeColumnHeaderFooterTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages - .add(getPage(CONTEXT_ROOT + "/faces/encodetestColumnHeaderFooter.xhtml")); - pages.add(getPage( - CONTEXT_ROOT + "/faces/encodetestColumnHeaderFooter_facelet.xhtml")); - - for (HtmlPage page : pages) { - - HtmlTable data1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data1"); - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - // There should be one thead containing one tr and three th's - HtmlTableHeader data1Header = data1.getHeader(); - if (data1Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'data1' when header facet was specified on the " - + "specified columns %n"); - } else { - // should find 1 header rows - if (data1Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row for " - + "table containing ID 'data1', but found '%s' %n", - data1Header.getRows().size()); - } else { - String[] headerCellValues = new String[] { "Name Header", "", - "Age Header" }; - HtmlTableRow row = (HtmlTableRow) data1Header.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(i); - if (!headerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table header cell(%s) " - + "for table containing ID 'data1' to " - + "contain '%s', received: '%s'. %n", - i, headerCellValues[i], cell.asText()); - } - - // validate the scope attribute is rendered on each - // column header as expected - if (!"col".equals(cell.getScopeAttribute())) { - formatter.format("Expected table header cell(%s) " - + "for table containing ID 'data1' to have " - + "a scope attribute value of 'col', " + "but found '%s' %n", - i, cell.getScopeAttribute()); - } - } - } - } - - // There should be one footer containing one row and three td's - HtmlTableFooter data1Footer = data1.getFooter(); - if (data1Footer == null) { - formatter.format("Footers not rendered for table containing " - + "ID 'data1' when footer facet was specified on the " - + "specified columns %n"); - } else { - // should find 1 header rows - if (data1Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row for " - + "table containing ID 'data1', but found '%s' %n", - data1Footer.getRows().size()); - } else { - String[] footerCellValues = new String[] { "", "Gender Footer", - "Age Footer" }; - HtmlTableRow row = (HtmlTableRow) data1Footer.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableCell cell = row.getCell(i); - if (!footerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table footer cell(%s) " - + "for table containing ID 'data1' to " - + "contain '%s', received: '%s'. %n", - i, footerCellValues[i], cell.asText()); - } - - // validate no scope attribute is rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to " - + "be rendered for footer cell(%s) in table" - + " containing ID 'data1' %n", i); - } - } - } - } - - validateTableBodyRows(data1, "data1", null, null, formatter); - - // ---------------------------------------------------------- Data 2 - - // this table has headerClass and footerClass defined on the - // dataTable tag. This should result in class being rendered - // for each header and footer row. - HtmlTable data2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data2"); - if (!validateExistence("data2", "table", data2, formatter)) { - handleTestStatus(messages); - return; - } - - // There should be one thead containing one tr and three th's - HtmlTableHeader data2Header = data2.getHeader(); - if (data2Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'data2' when header facet was specified on the " - + "specified columns %n"); - } else { - // should find 1 header rows - if (data2Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row " - + "for table containing ID 'data2', but found '%s'%n", - data2Header.getRows().size()); - } else { - String[] headerCellValues = new String[] { "Name Header", "", - "Age Header" }; - HtmlTableRow row = (HtmlTableRow) data2Header.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(i); - if (!headerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table header cell(%s) " - + "for table containing ID 'data2' to " - + "contain '%s', received: '%s'. %n", - i, headerCellValues[i], cell.asText()); - } - - // validate the scope attribute is rendered on each - // column header as expected - if (!"col".equals(cell.getScopeAttribute())) { - formatter.format("Expected table header cell(%s) " - + "for table containing ID 'data2' to have " - + "a scope attribute value of 'col', " + "but found '%s' %n", - i, cell.getScopeAttribute()); - } - - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format("Expected class attribute for " - + "header cell (%s) to be 'columnClass', " - + "but found '%s' %n", i, cell.getAttribute("class")); - } - } - } - } - - // There should be one footer containing one row and three td's - HtmlTableFooter data2Footer = data2.getFooter(); - if (data2Footer == null) { - formatter.format("Footers not rendered for table containing " - + "ID 'data2' when footer facet was specified on " - + "the specified columns %n"); - } else { - // should find 1 header rows - if (data2Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row for " - + "table containing ID 'data2', but found '%s' %n", - data2Footer.getRows().size()); - } else { - String[] footerCellValues = new String[] { "", "Gender Footer", - "Age Footer" }; - HtmlTableRow row = (HtmlTableRow) data2Footer.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableCell cell = row.getCell(i); - if (!footerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table footer cell(%s) " - + "for table containing ID 'data2' to " - + "contain '%s', received: '%s'. %n", - i, footerCellValues[i], cell.asText()); - } - - // validate no scope attribute is rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to " - + "be rendered for footer cell(%s) in table" - + " containing ID 'data2' %n", i); - } - - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format("Expected class attribute for " - + "footer cell (%s) to be 'columnClass', " - + "but found '%s' %n", i, cell.getAttribute("class")); - } - } - } - } - - validateTableBodyRows(data2, "data2", null, null, formatter); - - // ---------------------------------------------------------- Data 3 - - // this table has headerClass and footerClass defined on the - // dataTable and column tags. The result is the column level - // style classes will override the dataTable level classes - HtmlTable data3 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data3"); - if (!validateExistence("data3", "table", data3, formatter)) { - handleTestStatus(messages); - return; - } - - // There should be one thead containing one tr and three th's - HtmlTableHeader data3Header = data3.getHeader(); - if (data3Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'data3' when header facet was specified on the " - + "specified columns %n"); - } else { - // should find 1 header rows - if (data3Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row for " - + "table containing ID 'data3', but found '%s' %n", - data3Header.getRows().size()); - } else { - String[] headerCellValues = new String[] { "Name Header", "", - "Age Header" }; - String[] headerClassValues = new String[] { "columnClass", - "sansserif", "sansserif" }; - HtmlTableRow row = (HtmlTableRow) data3Header.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(i); - if (!headerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table header cell(%s) " - + "for table containing ID 'data3' to " - + "contain '%s', received: '%s'. %n", - i, headerCellValues[i], cell.asText()); - } - - // validate the scope attribute is rendered on each - // column header as expected - if (!"col".equals(cell.getScopeAttribute())) { - formatter.format("Expected table header cell(%s) " - + "for table containing ID 'data3' to have " - + "a scope attribute value of 'col', " + "but found '%s' %n", - i, cell.getScopeAttribute()); - } - - if (!headerClassValues[i].equals(cell.getAttribute("class"))) { - formatter.format( - "Expected class attribute for " - + "header cell (%s) to be '%s', but " + "found '%s' %n", - i, headerClassValues[i], cell.getAttribute("class")); - } - } - } - } - - // There should be one footer containing one row and three td's - HtmlTableFooter data3Footer = data3.getFooter(); - if (data3Footer == null) { - formatter.format("Footers not rendered for table containing " - + "ID 'data3' when footer facet was specified on the " - + "specified columns %n"); - } else { - // should find 1 header rows - if (data3Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row for " - + "table containing ID 'data3', but found '%s' %n", - data3Footer.getRows().size()); - } else { - String[] footerCellValues = new String[] { "", "Gender Footer", - "Age Footer" }; - String[] footerClassValues = new String[] { "sansserif", "sansserif", - "columnClass" }; - HtmlTableRow row = (HtmlTableRow) data3Footer.getRows().get(0); - List headerCells = row.getCells(); - for (int i = 0, size = headerCells.size(); i < size; i++) { - HtmlTableCell cell = row.getCell(i); - if (!footerCellValues[i].equals(cell.asText())) { - formatter.format( - "Expected table footer cell(%s) " - + "for table containing ID 'data3' to " - + "contain '%s', received: '%s'. %n", - i, footerCellValues[i], cell.asText()); - } - - // validate no scope attribute is rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to " - + "be rendered for footer cell(%s) in table" - + " containing ID 'data3' %n", i); - } - - if (!footerClassValues[i].equals(cell.getAttribute("class"))) { - formatter.format( - "Expected class attribute for " - + "footer cell (%s) to be '%s', but " + "found '%s' %n", - i, footerClassValues[i], cell.getAttribute("class")); - } - } - } - } - - validateTableBodyRows(data3, "data3", null, null, formatter); - - handleTestStatus(messages); - } - } // END dtableRenderEncodeColumnHeaderFooterTest - - /** - * @testName: dtableRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: PENDING - * - * @since 1.2 - */ - public void dtableRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("bgcolor", "blue"); - control.put("border", "1"); - control.put("cellpadding", "1"); - control.put("cellspacing", "1"); - control.put("dir", "LTR"); - control.put("frame", "box"); - control.put("lang", "en"); - control.put("onclick", "js1"); - control.put("ondblclick", "js2"); - control.put("onkeydown", "js3"); - control.put("onkeypress", "js4"); - control.put("onkeyup", "js5"); - control.put("onmousedown", "js6"); - control.put("onmousemove", "js7"); - control.put("onmouseout", "js8"); - control.put("onmouseover", "js9"); - control.put("onmouseup", "js10"); - control.put("rules", "all"); - control.put("style", "Color: red;"); - control.put("summary", "DataTableSummary"); - control.put("title", "DataTableTitle"); - control.put("width", "100%"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlTable data1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "data1"); - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, data1, new String[] { "id" }, formatter); - - handleTestStatus(messages); - } - } // END dtableRenderPassthroughTest - - // --------------------------------------------------------- Utility Methods - private static String workAroundCaptionTextBug(HtmlTable table) { - - // The javadocs for HtmlTable.getCaptionText() states that if - // no caption is specified, that an empty string is returned. - // However, in 1.7, null is what is actually returned. - String captionText = table.getCaptionText(); - if (captionText == null) { - captionText = ""; - } - - return captionText; - - } // END workAroundCaptionTextBug - - private static void validateTableBodyRows(HtmlTable table, String id, - String[] rowClasses, String[] columnClasses, Formatter formatter) { - - HtmlTableBody body = (HtmlTableBody) table.getBodies().get(0); - if (body.getRows().size() != 3) { - formatter.format( - "Incorrect number of rows rendered for table " - + "containing ID '%s'. Expected '3', received " + "'%s %n", - id, body.getRows().size()); - } else { - String[][] expectedValues = new String[][] { { "Anna", "f", "28" }, - { "Cort", "m", "7" }, { "Cade", "m", "4" } }; - - List rows = body.getRows(); - for (int i = 0; i < expectedValues.length; i++) { - HtmlTableRow row = (HtmlTableRow) rows.get(i); - for (int j = 0; j < expectedValues[i].length; j++) { - if (!expectedValues[i][j].equals(row.getCell(j).asText())) { - formatter.format( - "Expected value at row '%s', column" - + " '%s' for table containing ID '%s' " - + "to be '%s', received '%s'. %n", - i + 1, j + 1, id, expectedValues[i][j], - row.getCell(j).asText()); - } - - if (columnClasses != null) { - if (!columnClasses[j] - .equals(row.getCell(j).getAttribute("class"))) { - formatter.format( - "Expected class attribute for" - + "cell(%s,%s) in table containing" - + " ID '%s' to be '%s', received" + " '%s' %n", - i + 1, j + 1, id, columnClasses[j], - row.getCell(j).getAttribute("class")); - } - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(row.getCell(j).getAttribute("class"))) { - formatter.format( - "The class attribute for cell(%s,%s)" - + " in table containing ID '%s' should" - + " not have been rendered as the columnClasses" - + " attribute was not defined in the JSP. %n", - i + 1, j + 1, id); - } - } - } - - if (rowClasses != null) { - if (!rowClasses[i].equals(row.getAttribute("class"))) { - formatter.format( - "Expected class attribute for row '%s'," - + " in table containing ID '%s' " - + " to be '%s', received '%s' %n", - i + 1, id, rowClasses[i], row.getAttribute("class")); - } - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(row.getAttribute("class"))) { - formatter.format("The class attribute for row '%s'" - + " in table containing ID '%s' should" - + " not have been rendered as the rowClasses" - + " attribute was not defined in the JSP. %n", i + 1, id); - } - } - } - } - - } // END validateTableBodyRows - - private static HtmlCaption getCaption(HtmlTable table) { - - for (Iterator i = table.getChildElements().iterator(); i.hasNext();) { - Object element = i.next(); - if (element instanceof HtmlCaption) { - return (HtmlCaption) element; - } - } - - return null; - - } // END getCaption -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/build.xml b/src/com/sun/ts/tests/jsf/spec/render/datatable/build.xml deleted file mode 100644 index 588f1fedf5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/build.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/datatable/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/datatable/jsf_render_dtable_web.xml b/src/com/sun/ts/tests/jsf/spec/render/datatable/jsf_render_dtable_web.xml deleted file mode 100644 index 247627f4de..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/datatable/jsf_render_dtable_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_render_dtable - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/form/FormUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/form/FormUIBean.java deleted file mode 100644 index 7fdf2273a4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/form/FormUIBean.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.form; - -import java.io.Serializable; -import jakarta.faces.application.Application; -import jakarta.faces.component.html.HtmlForm; -import jakarta.faces.component.html.HtmlInputText; -import jakarta.faces.context.FacesContext; - -@jakarta.inject.Named("greeting") @jakarta.enterprise.context.SessionScoped -public class FormUIBean implements Serializable { - - private static final long serialVersionUID = -2123380871451256327L; - - private HtmlForm myForm; - - public HtmlForm getMyForm() { - return myForm; - } - - public void setMyForm(HtmlForm myForm) { - Application application = FacesContext.getCurrentInstance() - .getApplication(); - HtmlInputText hello = (HtmlInputText) application - .createComponent(HtmlInputText.COMPONENT_TYPE); - - hello.setId("hello_msg"); - hello.setValue("HELLO"); - - myForm.setStyleClass("fancy"); - myForm.getChildren().add(hello); - - this.myForm = myForm; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/form/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/form/URLClient.java deleted file mode 100644 index 3c57bfa4cb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/form/URLClient.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.form; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_form_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: formRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the resulting markup of the form renderer: - Form1 - * - method attribute is 'post' - enctype attribute is - * 'application/x-www-form-urlencoded' - action attribute is - * as expected based off calling - * ExternalContext.encodeResourceURL( - * ViewHandler.getResourceURL(viewId) - no class attribute is - * rendered since styleClass isn't specified in the JSP - the - * name and id attributes have the same value - Form2 - The - * same as form1 except in the case of the class attribute. - * styleClass is specified for this form in the JSP, so ensure - * the rendered class attribute has the expected value - Form3 - * - This form is using the "binding" attribute to tie into a - * backing bean. Validate that the following attribute(s) are - * rendered correctly. - styleClass - * - * @since 1.2 - */ - public void formRenderEncodeTest() throws Fault { - - final String methodValue = "post"; - final String encTypeValue = "application/x-www-form-urlencoded"; - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/encodetest.xhtml"); - - HtmlForm form1 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "form1"); - - if (!validateExistence("form1", "form", form1, formatter)) { - handleTestStatus(messages); - return; - } - - // validate the method attribute - if (!methodValue.equals(form1.getMethodAttribute())) { - formatter.format( - "Expected the method attribute to have a value " - + "of '%s' for the form containing ID 'form1'. " - + "Value found was '%s'%n", - methodValue, form1.getMethodAttribute()); - } - - // enctype is not specified, ensure it is rendered - // with the default value. - if (!encTypeValue.equals(form1.getEnctypeAttribute())) { - formatter.format( - "Expected the enctype attribute to have a value" - + " of '%s' for the form containing ID 'form1'. " - + "Value found was '%s'%n", - encTypeValue, form1.getEnctypeAttribute()); - } - - // - // Commented out due to Bug ID:6485582 - // - // // validate the action attribute value is expected by getting - // // the value of expectedActionUrl response header - // String expectedActionUrl = - // page.getWebResponse(). - // getResponseHeaderValue("expectedActionUrl"); - // - // if (expectedActionUrl == null || expectedActionUrl.length() == 0) { - // formatter.format("Unable to find the 'expectedActionUrl' " + - // "response header.%n"); - // handleTestStatus(messages); - // return; - // } - // - // if (!expectedActionUrl.equals(form1.getActionAttribute())) { - // formatter.format("Expected the action attribute to have a value" + - // " of '%s' for form containing ID 'form1'. " + - // "Value found was '%s'%n", - // expectedActionUrl, - // form1.getActionAttribute()); - // } - - // no class attribute should have been rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(form1.getAttribute("class"))) { - formatter.format("Unexpected class attribute found in the rendered" - + " form containing ID 'form1'. styleClass was not" - + " specified in the JSP page. %n"); - } - - // ensure the name and id attribute values are equal - if (!form1.getId().equals(form1.getNameAttribute())) { - formatter.format( - "Expected the rendered values for the 'id' and" - + " 'name' attributes to be equal. The expected " - + " value for the name attribute was '%s', but found" + " '%s'%n", - form1.getId(), form1.getNameAttribute()); - } - - // -------------------------------------------------------------- Form 2 - - // validate the styleClass attribute, when specified, results in - // the class attribute being rendered within the form element - final String expectedClass = "fancy"; - HtmlForm form2 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "form2"); - - if (!validateExistence("form2", "form", form2, formatter)) { - handleTestStatus(messages); - return; - } - - // validate the method attribute - if (!methodValue.equals(form2.getMethodAttribute())) { - formatter.format( - "Expected the method attribute to have a value " - + "of '%s' for the form containing ID 'form2'. " - + "Value found was '%s'%n", - methodValue, form2.getMethodAttribute()); - } - - // enctype is not specified, ensure it is rendered - // with the default value. - if (!encTypeValue.equals(form2.getEnctypeAttribute())) { - formatter.format( - "Expected the enctype attribute to have a value" - + " of '%s' for the form containing ID 'form2'. " - + "Value found was '%s'%n", - encTypeValue, form2.getEnctypeAttribute()); - } - // - // Commented out due to Bug ID:6485582 - // - // if (!expectedActionUrl.equals(form2.getActionAttribute())) { - // formatter.format("Expected the action attribute to have a value" + - // " of '%s' for form containing ID 'form2'. " + - // "Value found was '%s'%n", - // expectedActionUrl, - // form2.getActionAttribute()); - // } - - // ensure the name and id attribute values are equal - if (!form2.getId().equals(form2.getNameAttribute())) { - formatter.format( - "Expected the rendered values for the 'id' and" - + " 'name' attributes to be equal. The expected " - + " value for the name attribute was '%s', but found" + " '%s'%n", - form2.getId(), form2.getNameAttribute()); - } - - if (!expectedClass.equals(form2.getAttribute("class"))) { - formatter.format( - "Unexpected value for class attribute in form" - + " containing ID 'form2'. Expected '%s', but " + "found '%s'%n", - expectedClass, form2.getAttribute("class")); - } - // -------------------------------------------------------------- Form 3 - - HtmlForm form3 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "form3"); - - if (!validateExistence("form3", "form", form3, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the class attribute. - if (!expectedClass.equals(form3.getAttribute("class"))) { - formatter - .format( - "Unexpected value for the class Attribute!%n" + "Expected: '%s'%n" - + "Received: '%s'%n", - expectedClass, form3.getAttribute("class")); - } - - handleTestStatus(messages); - - } // END formRenderEncodeTest - - /** - * @testName: formRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure that decode process correctly identifies the - * submitted form and calls UIForm.setSubmitted(true). this - * test will validate the proper action occurs when submitting - * different forms within the same page. - * - * @since 1.2 - */ - public void formRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/decodetest.xhtml"); - - HtmlInput formOne = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:id1"); - HtmlInput formTwo = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form2:id2"); - - HtmlSubmitInput submit1 = (HtmlSubmitInput) getInputIncludingId(page, - "button1"); - HtmlSubmitInput submit2 = (HtmlSubmitInput) getInputIncludingId(page, - "button2"); - - HtmlInput StatusOne; - HtmlInput StatusTwo; - String result1; - String result2; - - // Submit form1 - try { - formOne.setValueAttribute("CLICKED"); - page = (HtmlPage) submit1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - StatusOne = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "result1"); - StatusTwo = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "result2"); - - // Test results to make sure that form1 submitted and form2 was not. - result1 = StatusOne.getValueAttribute(); - result2 = StatusTwo.getValueAttribute(); - if (!("CLICKED".equals(result1) && "".equals(result2))) { - formatter.format("Unexpected value for Form One's status! %n" - + "Expected: CLICKED %n" + "Received: " + result1 + "%n"); - handleTestStatus(messages); - return; - } - - // Submit form2 - try { - formTwo.setValueAttribute("CLICKED"); - page = (HtmlPage) submit2.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button2: %s%n", e); - handleTestStatus(messages); - return; - } - - StatusOne = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "result1"); - StatusTwo = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "result2"); - - // Test results to make sure that form1 submitted and form2 was not. - result1 = StatusOne.getValueAttribute(); - result2 = StatusTwo.getValueAttribute(); - if (!("".equals(result1) && "CLICKED".equals(result2))) { - formatter.format("Unexpected value for Form Two's status! %n" - + "Expected: CLICKED %n" + "Received: " + result2 + "%n"); - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END formRenderDecodeTest - - /** - * @testName: formRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: test all passthrough attributes.... - * - * @since 1.2 - */ - public void formRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accept", "text/html"); - control.put("accept-charset", "ISO-8859-1"); - control.put("dir", "LTR"); - control.put("enctype", "noneDefault"); - control.put("lang", "en"); - control.put("onclick", "js1"); - control.put("ondblclick", "js2"); - control.put("onkeydown", "js3"); - control.put("onkeypress", "js4"); - control.put("onkeyup", "js5"); - control.put("onmousedown", "js6"); - control.put("onmousemove", "js7"); - control.put("onmouseout", "js8"); - control.put("onmouseover", "js9"); - control.put("onmouseup", "js10"); - control.put("onreset", "js11"); - control.put("onsubmit", "js12"); - control.put("style", "Color: red;"); - control.put("target", "frame1"); - control.put("title", "FormTitle"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlForm data1 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "form1"); - if (!validateExistence("data1", "table", data1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, data1, - new String[] { "id", "name", "action", "method" }, formatter); - - handleTestStatus(messages); - } - - } // END formRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/form/build.xml b/src/com/sun/ts/tests/jsf/spec/render/form/build.xml deleted file mode 100644 index b07b35c301..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/form/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/form/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/form/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/form/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/form/jsf_render_form_web.xml b/src/com/sun/ts/tests/jsf/spec/render/form/jsf_render_form_web.xml deleted file mode 100644 index fdcdc0f05a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/form/jsf_render_form_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_form - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/graphic/GraphicUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/graphic/GraphicUIBean.java deleted file mode 100644 index 1117ceada4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/graphic/GraphicUIBean.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.render.graphic; - -import java.io.Serializable; -import jakarta.faces.component.html.HtmlGraphicImage; - -@jakarta.inject.Named("pictures") @jakarta.enterprise.context.SessionScoped -public class GraphicUIBean implements Serializable { - - private static final long serialVersionUID = -4324855687654980327L; - - private HtmlGraphicImage img1; - - public GraphicUIBean() { - - } - - public HtmlGraphicImage getImg1() { - return img1; - } - - public void setImg1(HtmlGraphicImage img1) { - img1.setId("myIMG"); - img1.setTitle("myIMG"); - img1.setStyleClass("newBorder"); - img1.setValue("/someImage.png"); - - this.img1 = img1; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/graphic/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/graphic/URLClient.java deleted file mode 100644 index e9db6ddacb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/graphic/URLClient.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.graphic; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlImage; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_img_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: graphicRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the proper rendering of the src, ismap, and class - * attributes. The value of the src attribute is obtained from - * the value of the component and encoded as needed. The value - * of the class attribute is obtained from styleClass The - * ismap attribute must be rendered using html attribute - * minimization if the value in the JSP is true, otherwise not - * rendered at all if false. - * - * @since 1.2 - */ - public void graphicRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - final String expectedSrc = "pnglogo.png"; - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlImage image1 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img1"); - - if (!validateExistence("img1", "img", image1, formatter)) { - handleTestStatus(messages); - return; - } - - // validate the src attribute - if (!image1.getSrcAttribute().contains(expectedSrc)) { - formatter.format("Unexpected value for the src attribute for" - + " image containing ID 'img1'. Expected '%s', but" - + " found '%s'%n", expectedSrc, image1.getSrcAttribute()); - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(image1.getAttribute("class"))) { - formatter.format("Renderer incorrectly rendered class " - + "attribute on image containing ID 'img1' when no " - + "styleClass attribute was defined for that image in " - + "the JSP%n"); - } - - // ------------------------------------------------------------- - // img2 - - HtmlImage image2 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img2"); - - // validate the src attribute - if (!image2.getSrcAttribute().contains(expectedSrc)) { - formatter.format("Unexpected value for the src attribute for" - + " image containing ID 'img2'. Expected '%s', but" - + " found '%s'%n", expectedSrc, image2.getSrcAttribute()); - } - - final String expectedImgClass = "newBorder"; - - if (!expectedImgClass.equals(image2.getAttribute("class"))) { - formatter.format( - "Unexpected value for the class attribute " - + "for image containing ID 'img2'. Expected '%s', but " - + "found '%s'%n", - expectedImgClass, image2.getAttribute("class")); - } - - // ----------------------------------------------------------- img 3 - - HtmlImage image3 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img3"); - - if (!validateExistence("img3", "img", image3, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"ismap".equals(image3.getIsmapAttribute())) { - formatter.format( - "(img3) Expected the ismap attribute to " - + "to be rendered as '%s', instead found '%s'%n", - "ismap", image3.getIsmapAttribute()); - } - } - - // ----------------------------------------------------------- img 4 - - HtmlImage image4 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img4"); - - if (!validateExistence("img4", "img", image4, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(image4.getIsmapAttribute())) { - formatter.format("(img4) Expected the ismap attribute " - + "to not be rendered when the ismap " - + "attribute was specified as false in the JSP" + "%n."); - } - } - - // ----------------------------------------------------------- img 5 - HtmlImage image5 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img5"); - - if (!validateExistence("img5", "img", image5, formatter)) { - handleTestStatus(messages); - return; - } - - // test for title attribute. - if (!"myIMG".equals(image5.getAttribute("title"))) { - formatter - .format( - "Unexpected value for the title attribute %n" - + "Expected: '%s'%n" + "Received: '%s'%n", - "myIMG", image5.getAttribute("title")); - } - - // test for class attribute. - if (!"newBorder".equals(image5.getAttribute("class"))) { - formatter.format( - "Unexpected value for the title attribute %n" + "Expected: '%s'%n" - + "Received: '%s'%n", - "newBorder", image5.getAttribute("class")); - } - - // ----------------------------------------------------------- img 6 - String testImage = "img"; - HtmlImage image6 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - testImage); - - if (!validateExistence(testImage, "img", image6, formatter)) { - handleTestStatus(messages); - return; - } - - // test for title attribute. - if (HtmlElement.ATTRIBUTE_NOT_DEFINED.equals(image6.getSrcAttribute()) - || "".equals(image6.getSrcAttribute())) { - formatter.format( - "No resource found. Failed to find image " - + "with EL Expression. %n Expression: '%s' %n", - "#{resource['duke-boxer.gif']}"); - } - - handleTestStatus(messages); - } - } // END graphicRenderEncodeTest - - /** - * @testName: graphicRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure all passthrough attributes defined fo the renderer - * are rendered with the value untouched. - * - * @since 1.2 - */ - public void graphicRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("alt", "alt description"); - control.put("dir", "LTR"); - control.put("height", "10"); - control.put("lang", "en"); - control.put("longdesc", "description"); - control.put("onclick", "js1"); - control.put("ondblclick", "js2"); - control.put("onkeydown", "js3"); - control.put("onkeypress", "js4"); - control.put("onkeyup", "js5"); - control.put("onmousedown", "js6"); - control.put("onmousemove", "js7"); - control.put("onmouseout", "js8"); - control.put("onmouseover", "js9"); - control.put("onmouseup", "js10"); - control.put("style", "Color: red;"); - control.put("title", "title"); - control.put("usemap", "map"); - control.put("width", "10"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlImage img1 = (HtmlImage) getElementOfTypeIncludingId(page, "img", - "img1"); - if (!validateExistence("img1", "img", img1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, img1, new String[] { "id", "src" }, - formatter); - - handleTestStatus(messages); - } - - } // END graphicRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/graphic/build.xml b/src/com/sun/ts/tests/jsf/spec/render/graphic/build.xml deleted file mode 100644 index 8c0d8c0445..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/graphic/build.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/graphic/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/graphic/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/graphic/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/graphic/jsf_render_img_web.xml b/src/com/sun/ts/tests/jsf/spec/render/graphic/jsf_render_img_web.xml deleted file mode 100644 index 32a07d2e28..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/graphic/jsf_render_img_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_render_img - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/grid/GridUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/grid/GridUIBean.java deleted file mode 100644 index 908de5f37f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/grid/GridUIBean.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package com.sun.ts.tests.jsf.spec.render.grid; - -import jakarta.faces.application.Application; -import jakarta.faces.component.html.HtmlColumn; -import jakarta.faces.component.html.HtmlOutputText; -import jakarta.faces.component.html.HtmlPanelGrid; -import jakarta.faces.context.FacesContext; -import java.io.Serializable; - -@jakarta.inject.Named("location") @jakarta.enterprise.context.SessionScoped -public class GridUIBean implements Serializable { - - private static final long serialVersionUID = -2564031838083638087L; - - private HtmlPanelGrid gps; - - public GridUIBean() { - - } - - public HtmlPanelGrid getGps() { - return gps; - } - - public void setGps(HtmlPanelGrid hpg) { - this.gps = hpg; - gps.setId("coordinates"); - gps.setTitle("coordinates"); - gps.setColumns(2); - gps.setColumnClasses("odd,even"); - - gps.getChildren().add(genColumn("North-Long", 3)); - gps.getChildren().add(genColumn("East-Lat", 7)); - } - - private HtmlColumn genColumn(String id, int coor) { - Application application = FacesContext.getCurrentInstance() - .getApplication(); - HtmlColumn column = (HtmlColumn) application - .createComponent(HtmlColumn.COMPONENT_TYPE); - HtmlOutputText header = (HtmlOutputText) application - .createComponent(HtmlOutputText.COMPONENT_TYPE); - - column.setId(id); - header.setValue(coor); - column.getChildren().add(header); - - return column; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/grid/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/grid/URLClient.java deleted file mode 100644 index af5ad90586..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/grid/URLClient.java +++ /dev/null @@ -1,817 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.grid; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.Iterator; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlCaption; -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlTable; -import com.gargoylesoftware.htmlunit.html.HtmlTableBody; -import com.gargoylesoftware.htmlunit.html.HtmlTableCell; -import com.gargoylesoftware.htmlunit.html.HtmlTableFooter; -import com.gargoylesoftware.htmlunit.html.HtmlTableHeader; -import com.gargoylesoftware.htmlunit.html.HtmlTableHeaderCell; -import com.gargoylesoftware.htmlunit.html.HtmlTableRow; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_grid_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: gridRenderEncodeBasicTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the basic rendering of a datatable that has not - * header or footer facets defined at the table or column - * level as well as no caption facet. Table grid1: - ensure - * that the styleClass attribute is rendered correctly - - * ensure no caption, header, or footers are rendered - ensure - * the dataset was properly iterated through and displayed (no - * class attribute rendered on the tr and td elements) Table - * grid2: - same as grid1 above, accept the table has - * rowClasses and columnClasses defined as ("odd,even"). - * Ensure the class attribute for each row and cell has the - * expected value. Table grid6: - Tests for binding - * attribute.Validate the following is rendered and correct: - * The title attribute on the table element. That there are - * two columns. That the is One row. That the class attribute - * on the columns. - * - * - * @since 1.2 - */ - public void gridRenderEncodeBasicTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestBasic.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestBasic_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ----------------------------------------------------------- Grid1 - - HtmlTable grid1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid1"); - - if (!validateExistence("grid1", "table", grid1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"color: yellow;".equals(grid1.getAttribute("class"))) { - formatter.format( - "Expected the rendered value for the " - + "styleClass attribute of the table with ID " - + "containing 'grid1' to be '%s' but found '%s'%n", - "color: yellow;", grid1.getAttribute("class")); - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(grid1).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'grid1'. This grid had no caption " + "facet.%n"); - } - - // no header facet columns means no thead elements - // should have been rendered - HtmlTableHeader grid1Header = grid1.getHeader(); - if (grid1Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'grid1'. This grid had no header " + "facets.%n"); - } - validateTableBodyRows(grid1, "grid1", 6, 1, null, null, formatter); - - // ----------------------------------------------------------- Grid2 - - HtmlTable grid2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid2"); - - if (!validateExistence("grid2", "table", grid2, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(grid2).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'grid2'. This grid had no caption " + "facet.%n"); - } - - // no header facet columns means no thead elements - // should have been rendered - HtmlTableHeader grid2Header = grid2.getHeader(); - if (grid2Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'grid2'. This grid had no header " + "facets.%n"); - } - validateTableBodyRows(grid2, "grid2", 3, 2, null, null, formatter); - - // ----------------------------------------------------------- Grid3 - - HtmlTable grid3 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid3"); - - if (!validateExistence("grid3", "table", grid3, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(grid3).length() != 0) { - formatter.format("Caption incorrectly rendered for table containing" - + " ID 'grid3'. This grid had no caption facet.%n"); - } - - // no header facet columns means no thead elements - // should have been rendered - HtmlTableHeader grid3Header = grid3.getHeader(); - if (grid3Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'grid3'. This grid had no header " + "facets.%n"); - } - validateTableBodyRows(grid3, "grid3", 2, 3, null, null, formatter); - - // ----------------------------------------------------------- Grid4 - - HtmlTable grid4 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid4"); - - if (!validateExistence("grid4", "table", grid4, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(grid4).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'grid4'. This grid had no caption " + "facet.%n"); - } - - // no header facet columns means no thead elements - // should have been rendered - HtmlTableHeader grid4Header = grid4.getHeader(); - if (grid4Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containing ID 'grid4'. This grid had no header " + "facets.%n"); - } - validateTableBodyRows(grid4, "grid4", 1, 6, null, null, formatter); - - // ----------------------------------------------------------- Grid5 - - HtmlTable grid5 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid5"); - - if (!validateExistence("grid5", "table", grid5, formatter)) { - handleTestStatus(messages); - return; - } - - // no caption facet means no caption element should have been - // rendered. - if (workAroundCaptionTextBug(grid5).length() != 0) { - formatter.format("Caption incorrectly rendered for table " - + "containing ID 'grid5'. This grid had no caption " + "facet.%n"); - } - - // no header facet for the three columns means no thead elements - // should have been rendered - HtmlTableHeader grid5Header = grid5.getHeader(); - if (grid5Header != null) { - formatter.format("Header incorrectly rendered for table " - + "containingID 'grid5'. This grid had no header " + "facets.%n"); - } - - validateTableBodyRows(grid5, "grid5", 2, 3, - new String[] { "odd", "even" }, - new String[] { "even", "odd", "even" }, formatter); - - // ----------------------------------------------------------- Grid6 - - HtmlTable grid6 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid6"); - - if (!validateExistence("grid6", "table", grid6, formatter)) { - handleTestStatus(messages); - return; - } - - validateTableBodyRows(grid6, "grid6", 1, 2, null, - new String[] { "odd", "even" }, formatter); - - handleTestStatus(messages); - } - } // END gridRenderEncodeBasicTest - - /** - * @testName: gridRenderEncodeCaptionTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure a caption is properly rendered when a caption is - * specified as a child of the grid. Additionally ensure the - * captionClass and captionStyle values are appropriately - * rendered when they are and are not specified. Finally, - * validate the rows are rendered as expected. - * - * @since 1.2 - */ - public void gridRenderEncodeCaptionTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestCaption_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlTable grid1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid1"); - - if (!validateExistence("grid1", "table", grid1, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(grid1).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'grid1' when caption facet was specified.%n"); - } else { - if (!"Caption Text For Grid1".equals(grid1.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'grid1' to be 'Caption Text For Grid1', " - + "received: '%s'%n", grid1.getCaptionText()); - } - } - - // ensure no style or class attributes were rendered - HtmlCaption caption = getCaption(grid1); - if (caption.getAttribute("class").length() > 0) { - formatter.format("Expected no class attribute to be rendered " - + "on caption for table containing ID 'grid1'%n"); - } - - if (caption.getAttribute("style").length() != 0) { - formatter.format("Expected no style attribute to be rendered " - + "on caption for table containing ID 'grid1'%n"); - } - - validateTableBodyRows(grid1, "grid1", 2, 3, null, null, formatter); - // next validate that the caption has the style attribute when - // specified - HtmlTable grid2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid2"); - - if (!validateExistence("grid2", "table", grid2, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(grid2).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'grid2' when caption facet was specified.%n"); - } else { - if (!"Caption Text For Grid2".equals(grid2.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'grid2' to be 'Caption Text For Grid2', " - + "received: '%s'%n", grid2.getCaptionText()); - } - } - - // ensure style is rendered but class is not - HtmlCaption caption2 = getCaption(grid2); - - if (caption2.getAttribute("style").length() == 0) { - formatter.format("styleClass was specified in the JSP, but " - + "no style attribute was found for the rendered " - + "caption for the table containing the ID 'grid2'.%n"); - } else { - if (!"Color: red;".equals(caption2.getAttribute("style"))) { - formatter.format( - "Expected style attribute of the " - + "rendered caption for the table containing the " - + "ID 'grid2' to be rendered with a value" - + " of 'Color: red;'. Value found '%s'%n", - caption2.getAttribute("style")); - } - } - - if (caption2.getAttribute("class").length() != 0) { - formatter.format("Expected no class attribute to be " - + "rendered on caption for table containing ID " + "'grid2'%n"); - } - - validateTableBodyRows(grid2, "grid2", 3, 2, null, null, formatter); - - // next validate that the caption has the class attribute when - // specified - HtmlTable grid3 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid3"); - - if (!validateExistence("grid3", "table", grid3, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(grid3).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'grid3' when caption facet was specified.%n"); - } else { - if (!"Caption Text For Grid3".equals(grid3.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'grid3' to be 'Caption Text For Grid3', " - + "received: '%s'%n", grid3.getCaptionText()); - } - } - - // ensure class is rendered but style is not - HtmlCaption caption3 = getCaption(grid3); - - if (caption3.getAttribute("class").length() == 0) { - formatter.format("captionClass was specified in the JSP, " - + "but no class attribute was found for the rendered " - + "caption with the table containing the ID 'grid3'.%n"); - } else { - if (!"sansserif".equals(caption3.getAttribute("class"))) { - formatter.format( - "Expected class attribute to the " - + "rendered caption in the table" - + " containing the ID 'grid3' to have a value" - + " of 'sansserif'. Value found '%s'%n", - caption3.getAttribute("class")); - } - } - - if (caption3.getAttribute("style").length() != 0) { - formatter.format("Expected no style attribute to be " - + "rendered on caption for table containing " + "ID 'grid3'%n"); - } - - validateTableBodyRows(grid3, "grid3", 2, 3, null, null, formatter); - - // next validate that the caption has the class and style attributes - // when specified - HtmlTable grid4 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid4"); - - if (!validateExistence("grid4", "table", grid4, formatter)) { - handleTestStatus(messages); - return; - } - - // caption facet means caption element should have been rendered. - if (workAroundCaptionTextBug(grid4).length() == 0) { - formatter.format("Caption not rendered for table containing" - + " ID 'grid4' when caption facet was specified.%n"); - } else { - if (!"Caption Text For Grid4".equals(grid4.getCaptionText())) { - formatter.format("Expected caption for table containing " - + "ID 'grid4' to be 'Caption Text For Grid4', " - + "received: '%s'%n", grid4.getCaptionText()); - } - } - - // ensure both class and style are rendered - HtmlCaption caption4 = getCaption(grid4); - - if (caption4.getAttribute("class").length() == 0) { - formatter.format("captionClass was specified in the JSP, " - + "but no class attribute was found for the rendered " - + "caption in the table" + " containing the ID 'grid4'.%n"); - } else { - if (!"sansserif".equals(caption4.getAttribute("class"))) { - formatter.format( - "Expected class attribute of the " + "rendered caption in the" - + " table containing the ID 'grid4' to have a value" - + " of 'sansserif'. Value found '%s'%n", - caption4.getAttribute("class")); - } - } - - if (caption4.getAttribute("style").length() == 0) { - formatter.format("styleClass was specified in the JSP, but " - + "no style attribute was found for the rendered " - + "caption in table containing the ID 'grid4'.%n"); - } else { - if (!"Color: red;".equals(caption4.getAttribute("style"))) { - formatter.format("Expected style attribute to be " - + "rendered with a value of 'sansserif'. " - + "Value found '%s'%n", caption4.getAttribute("style")); - } - } - validateTableBodyRows(grid4, "grid4", 3, 2, null, null, formatter); - - handleTestStatus(messages); - } - } // END gridRenderEncodeCaptionTest - - /** - * @testName: gridRenderEncodeTableHeaderFooterTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following: Grid1: - thead with single nested - * tr/th element combination - th element has scope attribute - * value of colgroup - th element has colspan of 3 as 3 - * columns are defined - th element has no class attribute - * rendered - tfoot with single nested tr/td element - * combination - td element has no scope attribute rendered - - * td element has colspan of 3 as 3 columns are defined - td - * element has no class attribute rendered Grid2: - the same - * as above except the class attribute value is validated on - * the rendered th and td elements as headerClass and - * footerClass are defined for this table in the JSP - * - * @since 1.2 - */ - public void gridRenderEncodeTableHeaderFooterTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetestTableHeaderFooter.xhtml")); - pages.add(getPage( - CONTEXT_ROOT + "/faces/encodetestTableHeaderFooter_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlTable grid1 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid1"); - - if (!validateExistence("grid1", "table", grid1, formatter)) { - handleTestStatus(messages); - return; - } - - // One table header should be available with a cell - // spanning all three specified columns - HtmlTableHeader grid1Header = grid1.getHeader(); - if (grid1Header == null) { - formatter.format("Header not rendered for table containing ID 'grid1'" - + " when header facet was specified.%n"); - } else { - // should find a single row with a colspan of 3. - if (grid1Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row for table " - + "containing ID 'grid1', but found '%s'%n", - grid1Header.getRows().size()); - } else { - List headerRows = grid1Header.getRows(); - HtmlTableRow row = (HtmlTableRow) headerRows.get(0); - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'grid1' to have a " - + "colspan of 3 as three columns" - + " was specified. Colspan received '%s'%n.", - cell.getColumnSpan()); - } else { - if (!"Header Text For Grid1".equals(cell.asText())) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'grid1' to contain " - + "'Header Text For Grid1', " + "received: '%s'.%n", - cell.asText()); - } - } - - // validate scope attribute for the th element of the header - if (!"colgroup".equals(cell.getScopeAttribute())) { - formatter.format("Expected the scope attribute of " - + "the 'th' element to be 'colgroup', but " + "found '%s'%n", - cell.getScopeAttribute()); - } - - // validate no class attribute was rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("class"))) { - formatter.format("Expected no class attribute to be " - + "rendered on the 'th' element since no " - + "headerClass attribute was defined in the JSP"); - } - } - } - - // One table footer should be available with a cell - // spanning all three specified columns - HtmlTableFooter grid1Footer = grid1.getFooter(); - if (grid1Footer == null) { - formatter.format("Footer not rendered for table containing " - + "ID 'grid1' when footer facet was specified.%n"); - } else { - // should find a single row with a colspan of 3. - if (grid1Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row for " - + "table containing ID 'grid1', but found '%s'%n", - grid1Footer.getRows().size()); - } else { - List footerRows = grid1Footer.getRows(); - HtmlTableRow row = (HtmlTableRow) footerRows.get(0); - HtmlTableCell cell = row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'grid1' to have a " - + "colspan of 3 as three columns" - + " was specified. Colspan received '%s'%n.", - cell.getColumnSpan()); - } else { - if (!"Footer Text For Grid1".equals(cell.asText())) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'grid1' to contain " - + "'Footer Text For Grid1', " + "received: '%s'.%n", - cell.asText()); - } - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to be " - + "rendered on the table footer, but the " - + "attribute was found."); - } - - // validate no class attribute was rendered - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("class"))) { - formatter.format("Expected no class attribute to be " - + "rendered for the footer since no footerClass" - + " attribute was defined in the JSP"); - } - } - } - - validateTableBodyRows(grid1, "grid1", 1, 3, null, null, formatter); - - // ----------------------------------------------------------- Grid2 - - HtmlTable grid2 = (HtmlTable) getElementOfTypeIncludingId(page, "table", - "grid2"); - - if (!validateExistence("grid2", "table", grid2, formatter)) { - handleTestStatus(messages); - return; - } - - // One table header should be available with a cell - // spanning all three specified columns - HtmlTableHeader grid2Header = grid2.getHeader(); - if (grid2Header == null) { - formatter.format("Header not rendered for table containing " - + "ID 'grid2' when header facet was specified.%n"); - } else { - // should find a single row with a colspan of 3. - if (grid2Header.getRows().size() != 1) { - formatter.format( - "Expected a single table header row " - + "for table containing ID 'grid2', but found '%s'%n", - grid2Header.getRows().size()); - } else { - List headerRows = grid2Header.getRows(); - HtmlTableRow row = (HtmlTableRow) headerRows.get(0); - HtmlTableHeaderCell cell = (HtmlTableHeaderCell) row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'grid2' to have a " - + "colspan of 3 as three columns" - + " was specified. Colspan received '%s'%n.", - cell.getColumnSpan()); - } else { - if (!"Header Text For Grid2".equals(cell.asText())) { - formatter.format( - "Expected table header cell for " - + "table containing ID 'grid2' to contain " - + "'Header Text For Grid2', " + "received: '%s'.%n", - cell.asText()); - } - } - - // validate scope attribute for the th element of the header - if (!"colgroup".equals(cell.getScopeAttribute())) { - formatter.format("Expected the scope attribute of " - + "the 'th' element to be 'colgroup', but " + "found '%s'%n", - cell.getScopeAttribute()); - } - - // validate class attribute was rendered - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format("Expected the class attribute of " - + "the 'th' element to be 'sansserif', but " + "found '%s'%n", - cell.getAttribute("class")); - } - } - } - - // One table footer should be available with a cell - // spanning all three specified columns - HtmlTableFooter grid2Footer = grid2.getFooter(); - if (grid2Footer == null) { - formatter.format("Footer not rendered for table containing " - + "ID 'grid2' when footer facet was specified.%n"); - } else { - // should find a single row with a colspan of 3. - if (grid2Footer.getRows().size() != 1) { - formatter.format( - "Expected a single table footer row " - + "for table containing ID 'grid2', but found '%s'%n", - grid2Footer.getRows().size()); - } else { - List footerRows = grid2Footer.getRows(); - HtmlTableRow row = (HtmlTableRow) footerRows.get(0); - HtmlTableCell cell = row.getCell(0); - - if (cell.getColumnSpan() != 3) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'grid2' to have a " - + "colspan of 3 as three columns" - + " was specified. Colspan received '%s'%n.", - cell.getColumnSpan()); - } else { - if (!"Footer Text For Grid2".equals(cell.asText())) { - formatter.format( - "Expected table footer cell for " - + "table containing ID 'grid2' to contain " - + "'Footer Text For Grid2', " + "received: '%s'.%n", - cell.asText()); - } - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(cell.getAttribute("scope"))) { - formatter.format("Expected no scope attribute to " - + "be rendered on the table footer, but the " - + "attribute was found."); - } - - // validate class attribute was rendered - if (!"sansserif".equals(cell.getAttribute("class"))) { - formatter.format( - "Expected the class attribute of " - + "the 'td' element of the footer to be " - + "'sansserif', but found '%s'%n", - cell.getAttribute("class")); - } - } - } - - validateTableBodyRows(grid2, "grid2", 1, 3, null, null, formatter); - - handleTestStatus(messages); - } - } // END gridRenderEncodeTableHeaderFooterTest - - // --------------------------------------------------------- Utility Methods - private static String workAroundCaptionTextBug(HtmlTable table) { - - // The javadocs for HtmlTable.getCaptionText() states that if - // no caption is specified, that an empty string is returned. - // However, in 1.7, null is what is actually returned. - String captionText = table.getCaptionText(); - if (captionText == null) { - captionText = ""; - } - - return captionText; - - } // END workAroundCaptionTextBug - - private static void validateTableBodyRows(HtmlTable table, String id, - int expectedRows, int columns, String[] rowClasses, - String[] columnClasses, Formatter formatter) { - - HtmlTableBody body = (HtmlTableBody) table.getBodies().get(0); - if (body.getRows().size() != expectedRows) { - formatter.format( - "Incorrect number of rows rendered for table " - + "containing ID '%s'. Expected '%d', received " + "'%s%n", - id, expectedRows, body.getRows().size()); - } else { - String[] expectedValues = new String[] { "3", "7", "31", "127", "8191", - "131071" }; - List rows = body.getRows(); - int totalCells = rows.size() * columns; - int rowLength = (expectedValues.length > totalCells) ? totalCells - : expectedValues.length / rows.size(); - for (int i = 0; i < rows.size(); i++) { - HtmlTableRow row = (HtmlTableRow) rows.get(i); - for (int j = 0; j < rowLength; j++) { - int cellNo = i * rowLength + j; - if (!expectedValues[cellNo].equals(row.getCell(j).asText())) { - formatter.format( - "Expected value at row '%s', column" - + " '%s' for table containing ID '%s' " - + "to be '%s', received '%s'.%n", - i + 1, j + 1, id, expectedValues[cellNo], - row.getCell(j).asText()); - } - - if (columnClasses != null) { - if (!columnClasses[j] - .equals(row.getCell(j).getAttribute("class"))) { - formatter.format( - "Expected class attribute for" - + "cell(%s,%s) in table containing" - + " ID '%s' to be '%s', received" + " '%s'%n", - i + 1, j + 1, id, columnClasses[j], - row.getCell(j).getAttribute("class")); - } - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(row.getCell(j).getAttribute("class"))) { - formatter.format( - "The class attribute for cell(%s,%s)" - + " in table containing ID '%s' should" - + " not have been rendered as the columnClasses" - + " attribute was not defined in the JSP.%n", - i + 1, j + 1, id); - } - } - } - - if (rowClasses != null) { - if (!rowClasses[i].equals(row.getAttribute("class"))) { - formatter.format( - "Expected class attribute for row '%s'," - + " in table containing ID '%s' " - + " to be '%s', received '%s'%n", - i + 1, id, rowClasses[i], row.getAttribute("class")); - } - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(row.getAttribute("class"))) { - formatter.format("The class attribute for row '%s'" - + " in table containing ID '%s' should" - + " not have been rendered as the rowClasses" - + " attribute was not defined in the JSP.%n", i + 1, id); - } - } - } - } - - } // END validateTableBodyRows - - private static HtmlCaption getCaption(HtmlTable table) { - - for (Iterator i = table.getChildElements().iterator(); i.hasNext();) { - Object element = i.next(); - if (element instanceof HtmlCaption) { - return (HtmlCaption) element; - } - } - - return null; - - } // END getCaption -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/grid/build.xml b/src/com/sun/ts/tests/jsf/spec/render/grid/build.xml deleted file mode 100644 index 9bf1a5c916..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/grid/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/grid/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/grid/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/grid/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/grid/jsf_render_grid_web.xml b/src/com/sun/ts/tests/jsf/spec/render/grid/jsf_render_grid_web.xml deleted file mode 100644 index 1092513705..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/grid/jsf_render_grid_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_grid - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/head/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/head/URLClient.java deleted file mode 100644 index d6ef268ee1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/head/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.head; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlHead; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_head_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: headRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 2.0 - */ - public void headRenderPassthroughTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlHead headOne = (HtmlHead) page.getElementById("myHead"); - - if (!validateExistence("headOne", "head", headOne, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, headOne, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - - } // END headRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/head/build.xml b/src/com/sun/ts/tests/jsf/spec/render/head/build.xml deleted file mode 100644 index 52d03e5526..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/head/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/head/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/head/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/head/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/head/jsf_render_head_web.xml b/src/com/sun/ts/tests/jsf/spec/render/head/jsf_render_head_web.xml deleted file mode 100644 index 609c6d0028..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/head/jsf_render_head_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_head - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/hidden/HiddenUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/hidden/HiddenUIBean.java deleted file mode 100644 index d5d599d974..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/hidden/HiddenUIBean.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.hidden; - -import jakarta.faces.component.html.HtmlInputHidden; -import java.io.Serializable; - -@jakarta.inject.Named("scene") @jakarta.enterprise.context.SessionScoped -public class HiddenUIBean implements Serializable { - - private static final long serialVersionUID = -2564031838038088087L; - - private HtmlInputHidden seeMe; - - public HtmlInputHidden getSeeMe() { - return seeMe; - } - - public void setSeeMe(HtmlInputHidden seeMe) { - seeMe.setValue("Invisible"); - - this.seeMe = seeMe; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/hidden/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/hidden/URLClient.java deleted file mode 100644 index f7071b66de..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/hidden/URLClient.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.hidden; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlHiddenInput; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_hidden_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: hiddenRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the proper encoding of an html hidden input field: - * - name and id attributes have the same value - the rendered - * value of the value attribute is the value of the component - * - * @since 1.2 - */ - public void hiddenRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ------------------------------------------------------------ - // Form1 - HtmlHiddenInput hidden1 = (HtmlHiddenInput) getInputIncludingId(page, - "hidden1"); - - if (!validateExistence("hidden1", "input", hidden1, formatter)) { - handleTestStatus(messages); - return; - } - - // ensure the name and id attribute values are equal - if (!hidden1.getId().equals(hidden1.getNameAttribute())) { - formatter.format("Expected the rendered values for the 'id' and" - + " 'name' attributes to be equal for hidden input" - + " containing ID 'hidden1'. The expected " - + " value for the name attribute was '%s', but found" + " '%s' %n", - hidden1.getId(), hidden1.getNameAttribute()); - } - - if (!"value".equals(hidden1.getValueAttribute())) { - formatter.format( - "Expected the rendered value of the value " - + "attribute to be 'value', but found '%s' %n", - hidden1.getValueAttribute()); - } - - // ------------------------------------------------------------ - // Form2 - HtmlHiddenInput hidden2 = (HtmlHiddenInput) getInputIncludingId(page, - "Invisible"); - - if (!validateExistence("Invisible", "input", hidden2, formatter)) { - handleTestStatus(messages); - return; - } - - // ensure the name and id attribute values are equal - if (!hidden2.getId().equals(hidden2.getNameAttribute())) { - formatter.format( - "Expected the rendered values for the 'id' and" - + " 'name' attributes to be equal for hidden input" - + " containing ID '%s' %n." + "Id Attribute Received:'%s' %n" - + "Name Attribute Received: '%s' %n", - "Invisible", hidden2.getId(), hidden2.getNameAttribute()); - } - - if (!"Invisible".equals(hidden2.getValueAttribute())) { - formatter.format( - "Expected the rendered value of the value " - + "attribute to be 's', but found '%s' %n", - "Invisible", hidden2.getValueAttribute()); - } - - handleTestStatus(messages); - } - } // END hiddenRenderEncodeTest - - /** - * @testName: hiddenRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the value of the hidden field is updated by - * submitting the form. The value after the post back should - * be 'newSubmittedValue'. This is validated by getting the - * value of the component after the post-back (can't validate - * that (setSubmittedValue() is called since after the - * validations are processed setValue() will have been called - * and the submittedValue reset to null). - * - * @since 1.2 - */ - public void hiddenRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlHiddenInput hidden1 = (HtmlHiddenInput) getInputIncludingId(page, - "hidden1"); - - if (!validateExistence("hidden1", "input", hidden1, formatter)) { - handleTestStatus(messages); - return; - } - - hidden1.setValueAttribute("newSubmittedValue"); - - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s %n", e); - handleTestStatus(messages); - return; - } - - HtmlInput shadow = (HtmlInput) getInputIncludingId(page, "result"); - String result = shadow.getValueAttribute(); - - if (!"newSubmittedValue".equals(result)) { - formatter.format("Unexpected submitted value for hidden1. Expected" - + " 'test', but found '%s' %n", result); - } - - handleTestStatus(messages); - } - } // END hiddenRenderDecodeTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/hidden/build.xml b/src/com/sun/ts/tests/jsf/spec/render/hidden/build.xml deleted file mode 100644 index 2c6e9a1c06..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/hidden/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/hidden/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/hidden/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/hidden/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/hidden/jsf_render_hidden_web.xml b/src/com/sun/ts/tests/jsf/spec/render/hidden/jsf_render_hidden_web.xml deleted file mode 100644 index 9da59326c6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/hidden/jsf_render_hidden_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_hidden - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/inputtext/InputTextUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/inputtext/InputTextUIBean.java deleted file mode 100644 index 3c76a38497..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/inputtext/InputTextUIBean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.inputtext; - -import java.io.Serializable; -import jakarta.faces.component.html.HtmlInputText; - -@jakarta.inject.Named("Hello") @jakarta.enterprise.context.SessionScoped -public class InputTextUIBean implements Serializable { - - private static final long serialVersionUID = -2564325672383456327L; - - private HtmlInputText greeting; - - public HtmlInputText getGreeting() { - return greeting; - } - - public void setGreeting(HtmlInputText greeting) { - greeting.setStyleClass("text"); - greeting.setSize(10); - greeting.setValue("hello"); - - this.greeting = greeting; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/inputtext/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/inputtext/URLClient.java deleted file mode 100644 index af749e50e2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/inputtext/URLClient.java +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.inputtext; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_inputtext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: inputTextRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of text fields (InputText): case 1: - * - Only the id and value attributes are defined. case 2: - - * Attributes for id, value, and class are defined. case 3: - - * Attributes for id, value, and autocomplete are defined. - - * the autocomplete attribute is rendered with a value of - * 'off' case 4: - Attributes for id, value, and autocomplete - * are defined. - the autocomplete attribute isn't rendered as - * the attribute was defined in the JSP with a value of 'on'. - * case 5,6: - ensure the disabled attribute is handled using - * html attribute minimization (only the attribute name is - * rendered when value is true, and nothing rendered when - * false) case 7,8: - ensure the readonly attribute is handled - * using html attribute minimization (only the attribute name - * is rendered when value is true, and nothing rendered when - * false) - * - * @since 1.2 - */ - public void inputTextRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - String inputName; - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ------------------------------------------------------------- - // text1 - - HtmlInput input1 = (HtmlInput) getInputIncludingId(page, "text1"); - - if (!validateExistence("text1", "input", input1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text value".equals(input1.getValueAttribute())) { - formatter.format( - "Expected the rendered value for the value attribute" - + " of the text field with ID containing 'text1'" - + " to be 'text value', but found '%s'%n", - input1.getValueAttribute()); - } - - // ------------------------------------------------------------- - // text2 - - HtmlInput input2 = (HtmlInput) getInputIncludingId(page, "text2"); - - if (!validateExistence("text2", "input", input2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!(input2.getValueAttribute().length() > 0)) { - formatter.format("Expected a rendered value for value attribute" - + " of the text field with ID containing " - + "'text2', but found none%n"); - } - - if (!"text".equals(input2.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class attribute" - + " to be 'text' for the text field containing" - + " ID 'text2', but found '%s'%n", - input2.getAttribute("class")); - } - - // ------------------------------------------------------------- - // text3 - - HtmlInput input3 = (HtmlInput) getInputIncludingId(page, "text3"); - - if (!validateExistence("text3", "input", input3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!(input3.getValueAttribute().length() > 0)) { - formatter.format("Expected a rendered value for value attribute" - + " of the text field with ID containing " - + "'text3', but found none%n"); - } - - if (!"off".equals(input3.getAttribute("autocomplete"))) { - formatter.format( - "Expected the rendered value for the autocomplete" - + " attribute to be 'off', for the text field" - + " with ID containing 'text3', but found '%s'%n", - input3.getAttribute("autocomplete")); - } - - // ------------------------------------------------------------- - // text4 - - HtmlInput input4 = (HtmlInput) getInputIncludingId(page, "text4"); - - if (!validateExistence("text4", "input", input4, formatter)) { - handleTestStatus(messages); - return; - } - - if (!(input4.getValueAttribute().length() > 0)) { - formatter.format("Expected a rendered value for value attribute" - + " of the text field with ID containing " - + "'text4', but found none%n"); - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(input4.getAttribute("autocomplete"))) { - formatter.format("Expected the autocomplete attribute to not be " - + "rendered when the value in the JSP was defined" + " as 'on'.%n"); - } - - // ------------------------------------------------------------- - // text5 - - HtmlInput input5 = (HtmlInput) getInputIncludingId(page, "text5"); - - if (!validateExistence("text5", "input", input5, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"disabled".equals(input5.getAttribute("disabled"))) { - formatter.format( - "(text5) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s'%n", - "disabled", input5.getAttribute("disabled")); - } - } - - // ------------------------------------------------------------- - // text6 - - HtmlInput input6 = (HtmlInput) getInputIncludingId(page, "text6"); - - if (!validateExistence("text6", "input", input6, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(input6.getDisabledAttribute())) { - formatter.format("(text6) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP" + "%n."); - } - } - - // ------------------------------------------------------------- - // text7 - - HtmlInput input7 = (HtmlInput) getInputIncludingId(page, "text7"); - - if (!validateExistence("text7", "input", input7, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"readonly".equals(input7.getAttribute("readonly"))) { - formatter.format( - "(text7) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s'%n", - "readonly", input7.getAttribute("readonly")); - } - } - - // ------------------------------------------------------------- - // text8 - - HtmlInput input8 = (HtmlInput) getInputIncludingId(page, "text8"); - - if (!validateExistence("text8", "input", input8, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(input8.getReadOnlyAttribute())) { - formatter.format("(text8) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + "%n."); - } - } - - // ------------------------------------------------------------- - // text9 - inputName = "text9"; - - HtmlInput input9 = (HtmlInput) getInputIncludingId(page, inputName); - - if (!validateExistence(inputName, "input", input9, formatter)) { - handleTestStatus(messages); - return; - } - - // Test for Value attribute. - if (!"hello".equals(input9.getValueAttribute())) { - formatter.format("Unexpected for value attribute" + "Expected: '%s' %n" - + "Received: '%s' %n", "hello", input9.getValueAttribute()); - } - - // test for size attribute. - if (!"10".equals(input9.getSizeAttribute())) { - formatter.format("Unexpected for size attribute" + "Expected: '%s' %n" - + "Received: '%s' %n", "10", input9.getSizeAttribute()); - } - - // test for class attribute. - if (!"text".equals(input2.getAttribute("class"))) { - formatter.format("Unexpected for class attribute" + "Expected: '%s' %n" - + "Received: '%s' %n", "text", input9.getAttribute("class")); - } - - handleTestStatus(messages); - } - } // END inputTextRenderEncodeTest - - /** - * @testName: inputTextRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the value of the text field is updated by submitting - * the form. The value after the post back should be - * 'newSubmittedValue'. This is validated by getting the value - * of the component after the post-back (can't validate that - * (setSubmittedValue() is called since after the validations - * are processed setValue() will have been called and the - * submittedValue reset to null). - * - * @since 1.2 - */ - public void inputTextRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlInput text1 = (HtmlInput) getInputIncludingId(page, "text1"); - - if (!validateExistence("text1", "input", text1, formatter)) { - handleTestStatus(messages); - return; - } - - text1.setValueAttribute("newSubmittedValue"); - - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - HtmlInput shadow = (HtmlInput) getInputIncludingId(page, "result"); - String result = shadow.getValueAttribute(); - - if (!"newSubmittedValue".equals(result)) { - formatter.format("Unexpected submitted value for text1. Expected" - + " 'test', but found '%s'", result); - } - - handleTestStatus(messages); - } - } // END inputTextRenderDecodeTest - - /** - * @testName: inputTextRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void inputTextRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("alt", "alt description"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("maxlength", "15"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("size", "15"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlInput input1 = (HtmlInput) getInputIncludingId(page, "input1"); - if (!validateExistence("input1", "input", input1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, input1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END inputTextRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/inputtext/build.xml b/src/com/sun/ts/tests/jsf/spec/render/inputtext/build.xml deleted file mode 100644 index 108c28ab39..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/inputtext/build.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/inputtext/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/inputtext/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/inputtext/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/inputtext/jsf_render_inputtext_web.xml b/src/com/sun/ts/tests/jsf/spec/render/inputtext/jsf_render_inputtext_web.xml deleted file mode 100644 index 81b277d426..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/inputtext/jsf_render_inputtext_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_inputtext - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/URLClient.java deleted file mode 100644 index 3bacaa52a8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/URLClient.java +++ /dev/null @@ -1,701 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.manycheckbox; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlLabel; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlTable; -import com.gargoylesoftware.htmlunit.html.HtmlTableRow; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.spec.render.common.SelectManyValidator; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_manycheckbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: manycheckboxRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the rendering of jakarta.faces.SelectMany.Checkbox - * case 1: - Only the id attribute is defined and two - * checkboxes. Verify that - the correct number of checkboxes - * are rendered - none of the checkboxes are checked - the - * value attributes for each option are correctly rendered. - * case 2: - Attributes for id, enabledClass, and - * disabledClass are defined. Verify that - each option is - * rendered as enabled or disabled as appropriate, and - each - * option is rendered with the correct style class. case 3: - - * Attributes for id, value, and class are defined. case 4,5: - * - ensure the disabled attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 6,7: - ensure the readonly attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 8,9,10: - Ensure that the layout attribute is handled - * correctly. When not specified make sure the checkboxes are - * going horizontally. Then test for the two expected values. - * pageDirection(vertically) or lineDirection(horizontally). - * case 11: - Ensure that the border attribute is rendered - * correctly in the checkboxes enclosing " - * - * " element. case 12: - Unsure that the following is Render - * correctly when using the binding attribute. - the correct - * number of checkboxes are rendered - none of the checkboxes - * are checked - the value attributes for each option are - * correctly rendered. - * - * @since 1.2 - */ - public void manycheckboxRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/encodetest.xhtml"); - - // ----------------------------------------------------------- checkbox1 - - HtmlInput checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox1:0"); - - HtmlInput checkbox11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox1:1"); - - // Validate checkbox10 & checkbox11 - if (!validateExistence(checkbox10.getId(), "input", checkbox10, formatter) - && !validateExistence(checkbox11.getId(), "input", checkbox11, - formatter)) { - handleTestStatus(messages); - return; - } - - // Make sure no checkbox buttons are checked - String inputedOptions[] = { checkbox10.getCheckedAttribute(), - checkbox11.getCheckedAttribute() }; - - for (int ii = 0; ii < inputedOptions.length; ii++) { - if (inputedOptions[ii].equals("checked")) { - String failedbutton = "checkbox" + ii; - formatter - .format("checkbox button should not be checked " + failedbutton); - handleTestStatus(messages); - return; - } - } - - // Test value attribute for checkbox10 - if (!"true".equals(checkbox10.getValueAttribute())) { - formatter.format( - "Expected the value attribute of checkbox '%s', " - + "to be '%s', but instead found '%s'", - checkbox10.getId(), "true", checkbox10.getValueAttribute()); - } - - // Test value attribute for checkbox11 - if (!"false".equals(checkbox11.getValueAttribute())) { - formatter.format( - "Expected the value attribute of checkbox '%s' " - + "to be '%s', but instead found '%s'", - checkbox11.getId(), "true", checkbox11.getValueAttribute()); - } - - // ----------------------------------------------------------- checkbox2 - - HtmlInput checkbox20 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox2:0"); - - HtmlInput checkbox21 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox2:1"); - - if (!validateExistence(checkbox20.getId(), "input", checkbox20, formatter) - && !validateExistence(checkbox21.getId(), "input", checkbox21, - formatter)) { - handleTestStatus(messages); - return; - } - - // Get the labels for checkboxes 2:0 & 2:1 for testing class att. - HtmlLabel label20 = (HtmlLabel) getLabelIncludingFor(page, "label", - checkbox20.getId()); - - HtmlLabel label21 = (HtmlLabel) getLabelIncludingFor(page, "label", - checkbox21.getId()); - - if (!checkbox20.isDisabled()) { - formatter.format("Expected checkbox '%s', to be '%s'", checkbox20.getId(), - "disabled"); - } - - if (!"Color: red;".equals(label20.getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "'%s, to be '%s', but instead found '%s'", - checkbox20.getId(), "Color: red;", checkbox20.getAttribute("class")); - } - - if (checkbox21.isDisabled()) { - formatter.format("Expected checkbox '%s', to be '%s'", checkbox21.getId(), - "enabled"); - } - - if (!"text".equals(label21.getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + " checkbox '%s', to be '%s', but instead found '%s'", - checkbox21.getId(), "text", checkbox21.getAttribute("class")); - } - - // ----------------------------------------------------------- checkbox3 - - HtmlInput checkbox30 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox3:0"); - - // Get the parent table element, it holds the classstyle attibute. - HtmlTable parent30 = (HtmlTable) checkbox30.getEnclosingElement("table"); - - if (!validateExistence(checkbox30.getId(), "input", checkbox30, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(parent30.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class " - + "attribute to be '%s', for the enclosing table element of " - + " checkbox '%s', but instead found '%s'.%n", - "text", checkbox30.getId(), parent30.getAttribute("class")); - } - - // ----------------------------------------------------------- checkbox4 - HtmlInput checkbox40 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox4:0"); - - if (!validateExistence(checkbox40.getId(), "input", checkbox40, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(checkbox40.getDisabledAttribute())) { - formatter.format( - "(checkbox40) Expected the disabled attribute " - + "for checkbox '%s', to be rendered as '%s', instead " - + "found '%s'.%n", - checkbox40.getId(), "disabled", checkbox40.getDisabledAttribute()); - } - - // ----------------------------------------------------------- checkbox5 - - HtmlInput checkbox50 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox5:0"); - - if (!validateExistence(checkbox50.getId(), "input", checkbox50, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(checkbox50.getDisabledAttribute())) { - formatter.format( - "(checkbox50) Expected the disabled attribute " - + "for checkbox '%s', not to be rendered when the disabled " - + "attribute was specified as false in the JSP%n.", - checkbox50.getId()); - } - - // ----------------------------------------------------------- checkbox6 - - HtmlInput checkbox60 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox6:0"); - - if (!validateExistence(checkbox60.getId(), "input", checkbox60, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(checkbox60.getAttribute("readonly"))) { - formatter.format( - "Expected the readonly attribute for checkbox " - + "'%s', to be rendered as '%s', instead found '%s' %n.", - checkbox60.getId(), "readonly", checkbox60.getAttribute("readonly")); - } - - // ----------------------------------------------------------- checkbox7 - - HtmlInput checkbox70 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox7:0"); - - if (!validateExistence(checkbox70.getId(), "input", checkbox70, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(checkbox70.getAttribute("readonly"))) { - formatter.format("Expected the readonly attribute for checkbox " - + "'%s', not to be rendered when the readonly attribute " - + "was specified as false in the JSP %n.", checkbox60.getId()); - } - - // ----------------------------------------------------------- checkbox8 - - HtmlInput checkbox80 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox8:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow80 = (HtmlTableRow) checkbox80 - .getEnclosingElement("tr"); - - if (!validateExistence(checkbox80.getId(), "input", checkbox80, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the default layout will be horizontal. - if (!(2 == tablerow80.getCells().size())) { - formatter.format( - "Expected the default layout(horizontal) of the " - + "checkboxes in checkbox '%s', for this you need more" - + " then one cell per table row. %n", - checkbox80.getId()); - } - - // ----------------------------------------------------------- checkbox9 - - HtmlInput checkbox90 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox9:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow90 = (HtmlTableRow) checkbox90 - .getEnclosingElement("tr"); - - if (!validateExistence(checkbox90.getId(), "input", checkbox90, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the default layout will be horizontal. - if (!(2 == tablerow90.getCells().size())) { - formatter.format( - "Expected the default layout(horizontal) of the " - + "checkboxes in checkbox '%s', for this you need more" - + " then one cell per table row. %n", - checkbox90.getId()); - } - - // ---------------------------------------------------------- checkbox10 - - HtmlInput checkbox100 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox10:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow100 = (HtmlTableRow) checkbox100 - .getEnclosingElement("tr"); - - if (!validateExistence(checkbox100.getId(), "input", checkbox100, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the layout will be vertical. - if (!(1 == tablerow100.getCells().size())) { - int realcell100 = tablerow100.getCells().size(); - formatter.format("(checkbox100) Expected vertical layout of the " - + "checkboxes there should have been only one cell " - + " per table row. %n" + "REALLY HAVE: " + realcell100); - } - - // ---------------------------------------------------------- checkbox11 - - HtmlInput checkbox110 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox11:0"); - - // Get the Enclosing Table Row. - HtmlTable table110 = (HtmlTable) checkbox110.getEnclosingElement("table"); - - if (!validateExistence(checkbox110.getId(), "input", checkbox110, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the border attribute - int bwidth = 11; - if (bwidth != Integer.parseInt(table110.getBorderAttribute())) { - formatter.format("(checkbox110) Expected default layout" - + "(horizontal) of the checkboxes there should have been " - + "more then one cell per table row. %n"); - } - - // ---------------------------------------------------------- checkbox12 - - HtmlInput checkbox120 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox12:0"); - - HtmlInput checkbox121 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:checkbox12:1"); - - // Validate checkbox120 & checkbox121 - if (!validateExistence(checkbox120.getId(), "input", checkbox120, formatter) - && !validateExistence(checkbox121.getId(), "input", checkbox121, - formatter)) { - handleTestStatus(messages); - return; - } - - // Make sure no checkbox buttons are checked - String isSelected[] = { checkbox120.getCheckedAttribute(), - checkbox121.getCheckedAttribute() }; - - for (int ii = 0; ii < isSelected.length; ii++) { - if (isSelected[ii].equals("checked")) { - String failedbutton = "checkbox" + ii; - formatter - .format("checkbox button should not be checked " + failedbutton); - handleTestStatus(messages); - return; - } - } - - // Test value attribute for checkbox120 - if (!"no".equals(checkbox120.getValueAttribute())) { - formatter.format("Unexpected value for the 'value' attribute of " - + "ManyCheckbox '%s'. %n" + "Expected: '%s' %n" + "Received: '%s' %n", - checkbox120.getId(), "no", checkbox120.getValueAttribute()); - } - - // Test value attribute for checkbox121 - if (!"yes".equals(checkbox121.getValueAttribute())) { - formatter.format("Unexpected value for the 'value' attribute of " - + "ManyCheckbox '%s'. %n" + "Expected: '%s' %n" + "Received: '%s' %n", - checkbox121.getId(), "yes", checkbox121.getValueAttribute()); - } - - handleTestStatus(messages); - } // END manycheckboxRenderEncodeTest - - /** - * @testName: manycheckboxRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Create two checkboxes and test none are checked. Then click - * the submit button to input one option and submit the form. - * Verify that the correct option is checked. Click the button - * again to input the other option. Verify that the correct - * option is checked and that the original option is no longer - * checked. Click the submit button again with both options - * selected. Verifiy that both options are checked. - * - * @since 1.2 - */ - public void manycheckboxRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/decodetest.xhtml"); - - HtmlInput checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:checkbox1:0"); - - HtmlInput checkbox11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:checkbox1:1"); - - if (!validateExistence(checkbox10.getId(), "input", checkbox10, formatter) - && !validateExistence(checkbox11.getId(), "input", checkbox11, - formatter)) { - handleTestStatus(messages); - return; - } - - if (checkbox10.isChecked() || checkbox11.isChecked()) { - formatter.format( - "Both checkboxes should display " - + "false(not checked) %n. checkbox '%s' is marked " - + "= '%s' %n. checkbox '%s' is marked = '%s' %n.", - checkbox10.getId(), checkbox10.isChecked(), checkbox11.getId(), - checkbox11.isChecked()); - } - - // Check checkbox1:0 - checkbox10.setChecked(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:0"); - - checkbox11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:1"); - - if (!validateExistence(checkbox10.getId(), "input", checkbox10, formatter) - && !validateExistence(checkbox11.getId(), "input", checkbox11, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!checkbox10.isChecked() || checkbox11.isChecked()) { - formatter.format( - "After first click, expected option '%d' " - + "checked attribute to be '%s', found '%s'; expected " - + "option '%d' checked attribute to be '%s', found '%s'.", - 0, "true", checkbox10.isChecked(), 1, "false", - checkbox11.isChecked()); - } - - // Check checkbox1:1 & uncheck checkbox1:0 - checkbox10.setChecked(false); - checkbox11.setChecked(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:0"); - - checkbox11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:1"); - - if (!validateExistence(checkbox10.getId(), "input", checkbox10, formatter) - && !validateExistence(checkbox11.getId(), "input", checkbox11, - formatter)) { - handleTestStatus(messages); - return; - } - - if (checkbox10.isChecked() || !checkbox11.isChecked()) { - formatter.format( - "After second click, expected option '%d' " - + "checked attribute to be '%s', found '%s'; expected " - + "option '%d' checked attribute to be '%s', found '%s'.", - 0, "false", checkbox10.isChecked(), 1, "true", - checkbox11.isChecked()); - } - - // Check both chechboxes checkbox1:1 & checkbox1:0 - checkbox10.setChecked(true); - checkbox11.setChecked(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:0"); - - checkbox11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:checkbox1:1"); - - if (!validateExistence(checkbox10.getId(), "input", checkbox10, formatter) - && !validateExistence(checkbox11.getId(), "input", checkbox11, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!checkbox10.isChecked() || !checkbox11.isChecked()) { - formatter.format( - "After second click, expected option '%d' " - + "checked attribute to be '%s', found '%s'; expected " - + "option '%d' checked attribute to be '%s', found '%s'.", - 0, "true", checkbox10.isChecked(), 1, "true", checkbox11.isChecked()); - } - - /* - * Validate Conversion Types (PDL == jsp) - */ - SelectManyValidator smv = new SelectManyValidator(); - HtmlForm form2 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form2, true)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manycheckboxRenderDecodeTest - - /** - * @testName: manyCheckboxSelectMany01Test - * - * @assertion_ids: PENDING - * - * @test_Strategy: If modelType is a concrete class, let - * targetForConvertedValues be a new instance of that class. - * Otherwise, the concrete type for targetForConvertedValues - * is taken from the following table. All classes are in the - * java.util package. All collections must be created with an - * initial capacity equal to the length of the values array - * from the request. - * - * modelType targetForConvertedValues - * -------------------------------------------- SortedSet - * TreeSet Queue LinkedList Set HashSet anything else - * ArrayList - * - * @since 2.0 - */ - public void manyCheckboxSelectMany01Test() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/selectmany01.xhtml"); - - /* - * Validate Conversion Types (PDL == jsp) - */ - SelectManyValidator smv = new SelectManyValidator(); - HtmlForm form2 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form2, true)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manyCheckboxSelectMany01Test - - /** - * @testName: manycheckboxRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void manycheckboxRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlInput checkbox10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "checkbox1:0"); - if (!validateExistence(checkbox10.getId(), "input", checkbox10, - formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, checkbox10, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - - } // END manycheckboxRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/build.xml b/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/build.xml deleted file mode 100644 index 7170b09346..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/jsf_render_manycheckbox_web.xml b/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/jsf_render_manycheckbox_web.xml deleted file mode 100644 index 0a65880f76..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manycheckbox/jsf_render_manycheckbox_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_manycheckbox - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/manylistbox/URLClient.java deleted file mode 100644 index 4695077569..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/URLClient.java +++ /dev/null @@ -1,631 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.manylistbox; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.spec.render.common.SelectManyValidator; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_manylistbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: manyListboxRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the rendering of jakarta.faces.SelectOne.Listbox - * case 1: - Only the id attribute is defined and two options. - * Verify that - the correct number of options are rendered - - * none of the options are selected - the value attributes for - * each option are correctly rendered. case 2: - Attributes - * for id, enabledClass, and disabledClass are defined. Verify - * that - each option is rendered as enabled or disabled as - * appropriate, and - each option is rendered with the correct - * style class. case 3: - Attributes for id, value, and class - * are defined. case 4,5: - ensure the disabled attribute is - * handled using html attribute minimization (only the - * attribute name is rendered when value is true, and nothing - * rendered when false) case 6,7: - ensure the readonly - * attribute is handled using html attribute minimization - * (only the attribute name is rendered when value is true, - * and nothing rendered when false) case 8: - Ensure that the - * size and multiple attrubute are render correctly. case 9: - * Ensure when using the binding attribute that the following - * holds true. - Only the id attribute is defined and two - * options. Verify that - the correct number of options are - * rendered - none of the options are selected - the value - * attributes for each option are correctly rendered. - * - * @since 1.2 - */ - public void manyListboxRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/encodetest.xhtml"); - - // ------------------------------------------------------------ listbox1 - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox1"); - - if (!validateExistence(listbox1.getId(), "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (listbox1.getOptionSize() != 2) { - formatter.format( - "Expected the number of options rendered for" - + " the component listbox1 to be '%d', but found '%d'", - 2, listbox1.getOptionSize()); - } - - List selectedOptions = listbox1.getSelectedOptions(); - if (selectedOptions == null) { - formatter.format("List of selected options for listbox1 is null"); - handleTestStatus(messages); - return; - } - - if (selectedOptions.size() != 0) { - formatter.format("Expected the number of selected options " - + "rendered for the component listbox1 to be '%d', but " - + "found '%d'", 0, selectedOptions.size()); - } - - if (!"true".equals(listbox1.getOption(0).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for listbox1" - + " to be '%s', found '%s'", - 0, "true", listbox1.getOption(0).getValueAttribute()); - } - - if (!"false".equals(listbox1.getOption(1).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for listbox1" - + " to be '%s', found '%s'", - 1, "true", listbox1.getOption(1).getValueAttribute()); - } - - // ------------------------------------------------------------ listbox2 - - HtmlSelect listbox2 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox2"); - - if (!validateExistence(listbox2.getId(), "select", listbox2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(listbox2.getOption(0).getDisabledAttribute())) { - formatter.format("Expected option '%d' for listbox2 to be '%s'", 0, - "disabled"); - } - - if (!"Color: red;".equals(listbox2.getOption(0).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "option '%d' for listbox2" + " to be '%s', found '%s'", - 0, "Color: red;", listbox2.getOption(0).getAttribute("class")); - } - - if (listbox2.getOption(1).isDisabled()) { - formatter.format("Expected option '%d' for listbox2 to be '%s'", 1, - "enabled"); - } - - if (!"text".equals(listbox2.getOption(1).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "option '%d' for listbox2" + " to be '%s', found '%s'", - 1, "text", listbox2.getOption(1).getAttribute("class")); - } - - // ------------------------------------------------------------ listbox3 - - HtmlSelect listbox3 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox3"); - - if (!validateExistence(listbox3.getId(), "select", listbox3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(listbox3.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class " - + "attribute to be 'text' for the text field containing" - + " ID 'listbox3', but found '%s'%n", - listbox3.getAttribute("class")); - } - - // ------------------------------------------------------------ listbox4 - HtmlSelect listbox4 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox4"); - - if (!validateExistence(listbox4.getId(), "select", listbox4, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(listbox4.getDisabledAttribute())) { - formatter.format( - "(listbox4) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s'%n", - "disabled", listbox4.getDisabledAttribute()); - } - - // ------------------------------------------------------------ listbox5 - - HtmlSelect listbox5 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox5"); - - if (!validateExistence(listbox5.getId(), "select", listbox5, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(listbox5.getDisabledAttribute())) { - formatter.format("(listbox5) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP%n."); - } - - // ------------------------------------------------------------ listbox6 - - HtmlSelect listbox6 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox6"); - - if (!validateExistence(listbox6.getId(), "select", listbox6, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(listbox6.getAttribute("readonly"))) { - formatter.format( - "(listbox6) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s'%n", - "readonly", listbox6.getAttribute("readonly")); - } - - // ------------------------------------------------------------ listbox7 - - HtmlSelect listbox7 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox7"); - - if (!validateExistence(listbox7.getId(), "select", listbox7, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(listbox7.getAttribute("readonly"))) { - formatter.format("(listbox7) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + "%n"); - } - - // ------------------------------------------------------------ listbox8 - - HtmlSelect listbox8 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox8"); - - if (!validateExistence(listbox8.getId(), "select", listbox8, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"multiple".equals(listbox8.getMultipleAttribute())) { - formatter.format( - "Expected the rendered value of the multiple " - + "attribute to be '%s', instead found '%s'%n", - "mulitple", listbox8.getMultipleAttribute()); - } - - if ("".equals(listbox8.getSizeAttribute()) - || 5 != Integer.parseInt(listbox8.getSizeAttribute())) { - formatter.format("(listbox8) Expected the size attribute " - + "to be rendered as the value of '%s', instead found " + "'%s' %n.", - 5, listbox8.getSizeAttribute()); - } - - // ------------------------------------------------------------ listbox9 - - HtmlSelect listbox9 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:listbox9"); - - if (!validateExistence(listbox9.getId(), "select", listbox9, formatter)) { - handleTestStatus(messages); - return; - } - - if (listbox9.getOptionSize() != 2) { - formatter.format( - "Unexpected number of options rendered for" - + " the component '%s' %n." + "Expected: '%d' %n" - + "Recieved: '%d' %n", - listbox9.getId(), 2, listbox9.getOptionSize()); - } - - List selected = listbox9.getSelectedOptions(); - - if (selected.size() != 0) { - formatter.format("Unexpected the number of selected options " - + "rendered for the component '%s' %n." + "Expected: '%d' %n" - + "Received: '%d'", listbox9.getId(), 0, selectedOptions.size()); - } - - if (!"no".equals(listbox9.getOption(0).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' for '%s' %n" + "Expected: '%s' '%n'" - + "Received: '%s'", - 0, "no", listbox9.getOption(0).getValueAttribute(), listbox9.getId()); - } - - if (!"yes".equals(listbox9.getOption(1).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' for '%s' %n" + "Expected: '%s' '%n'" - + "Received: '%s'", - 0, "yes", listbox9.getOption(1).getValueAttribute(), - listbox9.getId()); - } - - handleTestStatus(messages); - } // END manyListboxRenderEncodeTest - - /** - * @testName: manyListboxRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Create a listbox with three options. Click a button to - * select one option and submit the form. Verify that the - * correct option is selected. Click the button again to - * select another option. Verify that the correct option is - * selected and that the original option is no longer - * selected. Select the first and last options in the list, - * click the button. Verify teh correct options are selected. - * Then select all the options and submit the form, Verify all - * options are selected. - * - * @since 1.2 - */ - public void manyListboxRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/decodetest.xhtml"); - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox1"); - - if (!validateExistence(listbox1.getId(), "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - List selectedOptions = listbox1.getSelectedOptions(); - - if (selectedOptions.size() != 0) { - formatter.format("Expected the number of selected options " - + "rendered for the component listbox1 to be '%d', but " - + "found '%d'", 0, selectedOptions.size()); - } - - listbox1.getOption(0).setSelected(true); - listbox1.getOption(1).setSelected(false); - listbox1.getOption(2).setSelected(false); - - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!listbox1.getOption(0).isSelected() - || listbox1.getOption(1).isSelected() - || listbox1.getOption(2).isSelected()) { - formatter.format( - "After first click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s';" - + "expected option '%d' selected attribute to be '%s', " - + "found '%s'.", - 0, "true", listbox1.getOption(0).isSelected(), 1, "false", - listbox1.getOption(1).isSelected(), 2, "false", - listbox1.getOption(2).isSelected()); - } - - listbox1.getOption(0).setSelected(false); - listbox1.getOption(1).setSelected(true); - listbox1.getOption(2).setSelected(false); - - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (listbox1.getOption(0).isSelected() - || !listbox1.getOption(1).isSelected() - || listbox1.getOption(2).isSelected()) { - formatter.format( - "After second click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s'; " - + "expected option '%d' selected attribute to be '%s', " - + "found '%s'.", - 0, "false", listbox1.getOption(0).isSelected(), 1, "true", - listbox1.getOption(1).isSelected(), 2, "false", - listbox1.getOption(0).isSelected()); - } - - listbox1.getOption(0).setSelected(true); - listbox1.getOption(1).setSelected(false); - listbox1.getOption(2).setSelected(true); - - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!listbox1.getOption(0).isSelected() - || listbox1.getOption(1).isSelected() - || !listbox1.getOption(2).isSelected()) { - formatter.format( - "After third click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s';" - + "expected option '%d' selected attribute to be '%s', " - + "found '%s'.", - 0, "true", listbox1.getOption(0).isSelected(), 1, "false", - listbox1.getOption(1).isSelected(), 2, "true", - listbox1.getOption(2).isSelected()); - } - - listbox1.getOption(0).setSelected(true); - listbox1.getOption(1).setSelected(true); - listbox1.getOption(2).setSelected(true); - - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!listbox1.getOption(0).isSelected() - || !listbox1.getOption(1).isSelected() - || !listbox1.getOption(2).isSelected()) { - formatter.format( - "After third click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s';" - + "expected option '%d' selected attribute to be '%s', " - + "found '%s'.", - 0, "true", listbox1.getOption(0).isSelected(), 1, "true", - listbox1.getOption(1).isSelected(), 2, "true", - listbox1.getOption(2).isSelected()); - } - - /* - * Validate Conversion Types (PDL == jsp) - */ - SelectManyValidator smv = new SelectManyValidator(); - HtmlForm form2 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form2)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manyListboxRenderDecodeTest - - /** - * @testName: manyListboxSelectMany01Test - * - * @assertion_ids: PENDING - * - * @test_Strategy: If modelType is a concrete class, let - * targetForConvertedValues be a new instance of that class. - * Otherwise, the concrete type for targetForConvertedValues - * is taken from the following table. All classes are in the - * java.util package. All collections must be created with an - * initial capacity equal to the length of the values array - * from the request. - * - * modelType targetForConvertedValues - * -------------------------------------------- SortedSet - * TreeSet Queue LinkedList Set HashSet anything else - * ArrayList - * - * @since 2.0 - */ - public void manyListboxSelectMany01Test() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/selectmany01.xhtml"); - SelectManyValidator smv = new SelectManyValidator(); - - HtmlForm form = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manyListboxSelectMany01Test - - /** - * @testName: manyListboxRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void manyListboxRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox1"); - if (!validateExistence("listbox1", "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, listbox1, - new String[] { "id", "value", "name", "type", "size", "multiple" }, - formatter); - - handleTestStatus(messages); - } - - } // END oneListboxRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/build.xml b/src/com/sun/ts/tests/jsf/spec/render/manylistbox/build.xml deleted file mode 100644 index ee6157b6f0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/manylistbox/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/jsf_render_manylistbox_web.xml b/src/com/sun/ts/tests/jsf/spec/render/manylistbox/jsf_render_manylistbox_web.xml deleted file mode 100644 index 4a25340c6d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manylistbox/jsf_render_manylistbox_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_render_manylistbox - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manymenu/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/manymenu/URLClient.java deleted file mode 100644 index 889080bf19..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manymenu/URLClient.java +++ /dev/null @@ -1,539 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.manymenu; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlForm; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.spec.render.common.SelectManyValidator; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_manymenu_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: manyMenuRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the rendering of jakarta.faces.SelectMany.Menu case - * 1: - Only the id attribute is defined and two options. - * Verify that - the correct number of options are rendered - - * no option is selected.(default) - the value attributes for - * each option are correctly rendered. case 2: - Attributes - * for id, enabledClass, and disabledClass are defined. Verify - * that - each option is rendered as enabled or disabled as - * appropriate, and - each option is rendered with the correct - * style class. case 3: - Attributes for id, value, and class - * are defined. case 4,5: - ensure the disabled attribute is - * handled using html attribute minimization (only the - * attribute name is rendered when value is true, and nothing - * rendered when false) case 6,7: - ensure the readonly - * attribute is handled using html attribute minimization - * (only the attribute name is rendered when value is true, - * and nothing rendered when false) case 8: - Check for - * attributes multiple and size(default). case 9: - Make sure - * when using the "binding" attribute the following holds - * true. Only the id attribute is defined and two options. - * Verify that - the correct number of options are rendered - - * no option is selected.(default) - the value attributes for - * each option are correctly rendered. - * - * @since 1.2 - */ - public void manyMenuRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/encodetest.xhtml"); - - // ------------------------------------------------------------- Menu1 - - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu1.getOptionSize() != 2) { - formatter.format( - "Expected the number of options rendered for " - + "the component menu1 to be '%d', but found '%d'", - 2, menu1.getOptionSize()); - } - - List selectedOptions = menu1.getSelectedOptions(); - - if (selectedOptions.size() != 0) { - formatter.format("Expected the number of selected options " - + "rendered for the component menu1 to be '%d', but found " + "'%d'", - 0, selectedOptions.size()); - } - - if (!"true".equals(menu1.getOption(0).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for menu1" - + " to be '%s', found '%s'", - 0, "true", menu1.getOption(0).getValueAttribute()); - } - - if (!"false".equals(menu1.getOption(1).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for menu1" - + " to be '%s', found '%s'", - 1, "true", menu1.getOption(1).getValueAttribute()); - } - - // ------------------------------------------------------------- Menu2 - - HtmlSelect menu2 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu2"); - - if (!validateExistence(menu2.getId(), "select", menu2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(menu2.getOption(0).getDisabledAttribute())) { - formatter.format("Expected option '%d' for menu2 to be '%s'", 0, - "disabled"); - } - - if (!"Color: red;".equals(menu2.getOption(0).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "option '%d' for menu2" + " to be '%s', found '%s'", - 0, "Color: red;", menu2.getOption(0).getAttribute("class")); - } - - if (menu2.getOption(1).isDisabled()) { - formatter.format("Expected option '%d' for menu2 to be '%s'", 1, - "enabled"); - } - - if (!"text".equals(menu2.getOption(1).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "option '%d' for menu2" + " to be '%s', found '%s'", - 1, "text", menu2.getOption(1).getAttribute("class")); - } - - // ------------------------------------------------------------- Menu3 - - HtmlSelect menu3 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu3"); - - if (!validateExistence(menu3.getId(), "select", menu3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(menu3.getAttribute("class"))) { - formatter.format("Expected the rendered value of the class " - + "attribute to be 'text' for the text field containing" - + " ID 'menu3', but found '%s'%n", menu3.getAttribute("class")); - } - - // ------------------------------------------------------------- Menu4 - HtmlSelect menu4 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu4"); - - if (!validateExistence(menu4.getId(), "select", menu4, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(menu4.getDisabledAttribute())) { - formatter.format( - "(menu4) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s'%n", - "disabled", menu4.getDisabledAttribute()); - } - - // ------------------------------------------------------------- Menu5 - - HtmlSelect menu5 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu5"); - - if (!validateExistence(menu5.getId(), "select", menu5, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(menu5.getDisabledAttribute())) { - formatter.format("(menu5) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP. %n"); - } - - // ------------------------------------------------------------- Menu6 - - HtmlSelect menu6 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu6"); - - if (!validateExistence(menu6.getId(), "select", menu6, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(menu6.getAttribute("readonly"))) { - formatter.format( - "(menu6) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s' %n", - "readonly", menu6.getAttribute("readonly")); - } - - // ------------------------------------------------------------- Menu7 - - HtmlSelect menu7 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu7"); - - if (!validateExistence(menu7.getId(), "select", menu7, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(menu7.getAttribute("readonly"))) { - formatter.format("(menu7) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP. %n"); - } - - // ------------------------------------------------------------- Menu8 - - HtmlSelect menu8 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu8"); - - if (!validateExistence(menu8.getId(), "select", menu8, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"multiple".equals(menu8.getMultipleAttribute())) { - formatter.format( - "Expected the rendered value of the multiple " - + "attribute to be '%s', instead found '%s' %n", - "mulitple", menu8.getMultipleAttribute()); - } - - if (!"1".equals(menu8.getSizeAttribute())) { - formatter.format( - "Expected the rendered value of the size " - + "attribute to be '%s', instead found '%s' %n", - "1", menu8.getSizeAttribute()); - } - - // ------------------------------------------------------------ menu9 - - HtmlSelect menu9 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu9"); - - if (!validateExistence(menu9.getId(), "select", menu9, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu9.getOptionSize() != 2) { - formatter.format("Unexpected number of options rendered for" - + " the component '%s' %n." + "Expected: '%d' %n" - + "Recieved: '%d' %n", menu9.getId(), 2, menu9.getOptionSize()); - } - - List selected = menu9.getSelectedOptions(); - - if (selected.size() != 0) { - formatter.format("Unexpected the number of selected options " - + "rendered for the component '%s' %n." + "Expected: '%d' %n" - + "Received: '%d'", menu9.getId(), 0, selectedOptions.size()); - } - - if (!"no".equals(menu9.getOption(0).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' for '%s' %n" + "Expected: '%s' '%n'" - + "Received: '%s'", - 0, "no", menu9.getOption(0).getValueAttribute(), menu9.getId()); - } - - if (!"yes".equals(menu9.getOption(1).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' for '%s' %n" + "Expected: '%s' '%n'" - + "Received: '%s'", - 0, "yes", menu9.getOption(1).getValueAttribute(), menu9.getId()); - } - - handleTestStatus(messages); - } // END manyMenuRenderEncodeTest - - /** - * @testName: manyMenuRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Create a Menu with three options. Make sure no options are - * selected be default. Select one option from the menu and - * submit the form. Verify that the correct option is - * selected. Select two options from the menu. Verify that the - * correct options have ben selected and that the original - * option is no longer selected. - * - * @since 1.2 - */ - public void manyMenuRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/decodetest.xhtml"); - - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - List selectedOptions = menu1.getSelectedOptions(); - - if (selectedOptions.size() != 0) { - formatter.format("Expected the number of selected options " - + "rendered for the component menu1 to be '%d', but " + "found '%d'", - 0, selectedOptions.size()); - } - - menu1.getOption(0).setSelected(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: '%s' %n", e); - handleTestStatus(messages); - return; - } - - menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "input", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!menu1.getOption(0).isSelected() || menu1.getOption(1).isSelected() - || menu1.getOption(2).isSelected()) { - formatter.format( - "After first click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s'," - + " expected option '%d' selected attribute to be '%s'," - + " found '%s'.", - 0, "true", menu1.getOption(0).isSelected(), 1, "false", - menu1.getOption(1).isSelected(), 2, "false", - menu1.getOption(2).isSelected()); - } - - menu1.getOption(0).setSelected(false); - menu1.getOption(1).setSelected(true); - menu1.getOption(2).setSelected(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "input", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu1.getOption(0).isSelected() || !menu1.getOption(1).isSelected()) { - formatter.format( - "After second click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', found '%s';" - + " expected option '%d' selected attribute to be '%s', " - + "found '%s'.", - 0, "false", menu1.getOption(0).isSelected(), 1, "true", - menu1.getOption(1).isSelected(), 2, "true", - menu1.getOption(2).isSelected()); - } - - /* - * Validate Conversion Types (PDL == jsp) - */ - SelectManyValidator smv = new SelectManyValidator(); - HtmlForm form2 = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form2)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manyMenuRenderDecodeTest - - /** - * @testName: manyMenuSelectMany01Test - * - * @assertion_ids: PENDING - * - * @test_Strategy: If modelType is a concrete class, let - * targetForConvertedValues be a new instance of that class. - * Otherwise, the concrete type for targetForConvertedValues - * is taken from the following table. All classes are in the - * java.util package. All collections must be created with an - * initial capacity equal to the length of the values array - * from the request. - * - * modelType targetForConvertedValues - * -------------------------------------------- SortedSet - * TreeSet Queue LinkedList Set HashSet anything else - * ArrayList - * - * @since 2.0 - */ - public void manyMenuSelectMany01Test() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/selectmany01.xhtml"); - SelectManyValidator smv = new SelectManyValidator(); - - HtmlForm form = (HtmlForm) getElementOfTypeIncludingId(page, "form", - "selectmany01"); - - if (!smv.validate(page, formatter, form)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - - } // END manyListboxSelectMany01Test - - /** - * @testName: manyMenuRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void manyMenuRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "menu1"); - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, menu1, - new String[] { "id", "value", "name", "type", "size", "multiple" }, - formatter); - - handleTestStatus(messages); - } - - } // END manyMenuRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/manymenu/build.xml b/src/com/sun/ts/tests/jsf/spec/render/manymenu/build.xml deleted file mode 100644 index 4cf10b6799..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manymenu/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manymenu/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/manymenu/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manymenu/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/manymenu/jsf_render_manymenu_web.xml b/src/com/sun/ts/tests/jsf/spec/render/manymenu/jsf_render_manymenu_web.xml deleted file mode 100644 index c496e0b470..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/manymenu/jsf_render_manymenu_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_manymenu - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/message/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/message/URLClient.java deleted file mode 100644 index 304a1d5fcd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/message/URLClient.java +++ /dev/null @@ -1,695 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.message; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_message_web"; - - private String[] sevs = { "INFO", "WARN", "ERROR", "FATAL" }; - - private String testCaseName = ""; // This is only used for output messages. - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: messageRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of jakarta.faces.Message - * - * case 1: - The id, showSummary, showDetail, and title - * attributes are defined. Verifiy that we - render the - * correct value for "showSummary". - render the correct value - * for "showDetail". - that we render "id" and its value is - * correct. case 2: - The style and styleClass attributes are - * defined. Verifiy that we - render "styleClass" with the - * expected value. - * - * case 3: - The infoStyle and infoClass attributes are - * defined. Verifiy that we - render "infoStyle" with the - * expected value. - render "infoClass" with the expected - * value. case 4: - The warnStyle and warnClass attributes are - * defined. Verifiy that we - render "warnStyle" with the - * expected value. - render "warnClass" with the expected - * value. case 5: - The errorStyle and errorClass are defined. - * Verifiy that we - render "errorStyle" with the expect - * value. - render "errorClass" with expected value. case 6: - - * The id, fatalStyle, and fatalClass are defined. Verifiy - * that we - render "fatalStyle" with the expect value. - - * render "fatalClass" with expected value. case 7: - Validate - * that we can have all severity style attributes set and we - * can get all severity messages to adhere to the correct - * style attribute. Style Attributes: -infoStyle -warnStyle - * -errorStyle -fatalStyle case 8: - Validate that we can have - * all severity class attributes set and we can get all - * severity messages to adhere to the correct class attribute. - * Class Attributes: -infoClass -warnClass -errorClass - * -fatalClass case 9: - Validate that we render both the - * message summary and message detail. -showSummary = true - * -showDetail = true case 10: - Validate that we render only - * the message summary. -showSummary = true -showDetail = - * false case 11: - Validate that we render only the message - * detail. -showSummary = false -showDetail = true case 12: - - * Validate that we do not render a message at all. - * -showSummary = false -showDetail = false - * @since 1.2 - */ - public void messageRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------------Case - // 1: - testCaseName = "Case 1"; - // Generate the message - HtmlInput button1 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:button1"); - HtmlInput clientid = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:id1"); - HtmlInput severity = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:input1"); - - try { - clientid.setValueAttribute("form1:input1"); - severity.setValueAttribute("INFO"); - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button1: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span1 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form1:message1"); - if (!validateExistence(span1.getId(), "form1:message1", span1, - formatter)) { - handleTestStatus(messages); - return; - } - - String message1 = span1.asText().trim(); - if (!"INFO: Summary Message INFO: Detailed Message".equals(message1)) { - formatter - .format(testCaseName + ": Unexpected value for " + "message1! %n" - + "Expected: INFO: Summary Message INFO: Detailed Message " - + "%n Received: " + message1 + "%n"); - } - - // ---------------------------------------------------------------Case - // 2: - testCaseName = "Case 2"; - // Generate the message - HtmlInput button2 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form2:button2"); - HtmlInput clientid2 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form2:id2"); - HtmlInput severity2 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form2:input2"); - - try { - clientid2.setValueAttribute("form2:input2"); - severity2.setValueAttribute("INFO"); - page = (HtmlPage) button2.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button2: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span2 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form2:message2"); - if (!validateExistence(span2.getId(), "form2:message2", span2, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(span2.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + " :Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + span2.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 3: - testCaseName = "Case 3"; - // Generate the message - HtmlInput button3 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form3:button3"); - HtmlInput clientid3 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form3:id3"); - HtmlInput severity3 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form3:input3"); - - try { - clientid3.setValueAttribute("form3:input3"); - severity3.setValueAttribute("INFO"); - page = (HtmlPage) button3.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button3: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span3 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form3:message3"); - if (!validateExistence(span3.getId(), "form3:message3", span3, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(span3.getAttribute("style").equals("Color: blue;"))) { - formatter.format(testCaseName + ": Unexpected value for style " - + "attribute! %n" + "Expected: Color: blue; %n" + "Received: " - + span3.getAttribute("style") + "%n"); - } - - if (!(span3.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + span3.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 4: - testCaseName = "Case 4"; - // Generate the message - HtmlInput button4 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form4:button4"); - HtmlInput clientid4 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form4:id4"); - HtmlInput severity4 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form4:input4"); - - try { - clientid4.setValueAttribute("form4:input4"); - severity4.setValueAttribute("WARN"); - page = (HtmlPage) button4.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button4: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span4 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form4:message4"); - if (!validateExistence(span4.getId(), "form4:message4", span4, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(span4.getAttribute("style").equals("Color: green;"))) { - formatter.format(testCaseName + ": Unexpected value for style " - + "attribute! %n" + "Expected: Color: green; %n" + "Received: " - + span4.getAttribute("style") + "%n"); - } - - if (!(span4.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + span4.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 5: - testCaseName = "Case 5"; - // Generate the message - HtmlInput button5 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form5:button5"); - HtmlInput clientid5 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form5:id5"); - HtmlInput severity5 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form5:input5"); - - try { - clientid5.setValueAttribute("form5:input5"); - severity5.setValueAttribute("ERROR"); - page = (HtmlPage) button5.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button5: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span5 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form5:message5"); - if (!validateExistence(span5.getId(), "form5:message5", span5, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(span5.getAttribute("style").equals("Color: yellow;"))) { - formatter.format(testCaseName + ": Unexpected value for style " - + "attribute! %n" + "Expected: Color: yellow; %n" + "Received: " - + span5.getAttribute("style") + "%n"); - } - - if (!(span5.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + span5.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 6: - testCaseName = "Case 6"; - // Generate the message - HtmlInput button6 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form6:button6"); - HtmlInput clientid6 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form6:id6"); - HtmlInput severity6 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form6:input6"); - - try { - clientid6.setValueAttribute("form6:input6"); - severity6.setValueAttribute("FATAL"); - page = (HtmlPage) button6.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button6: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Get HtlmSpan element by id and test for validity. - HtmlSpan span6 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form6:message6"); - if (!validateExistence(span6.getId(), "form6:message6", span6, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(span6.getAttribute("style").equals("Color: red;"))) { - formatter.format(testCaseName + ": Unexpected value for style " - + "attribute! %n" + "Expected: Color: red; %n" + "Received: " - + span6.getAttribute("style") + "%n"); - } - - if (!(span6.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + span6.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 7: - testCaseName = "Case 7"; - // Generate a message. - HtmlInput button7 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form7:button7"); - HtmlInput clientid7 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form7:id7"); - HtmlInput severity7 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form7:severity7"); - - for (int i = 0; i < sevs.length; i++) { - String sevLevel = sevs[i]; - String expectedStyle = null; - - // Based on the input level set the expected style. - if (sevLevel.equals("INFO")) { - expectedStyle = "Color: blue;"; - } else if (sevLevel.equals("WARN")) { - expectedStyle = "Color: green;"; - } else if (sevLevel.equals("ERROR")) { - expectedStyle = "Color: yellow;"; - } else if (sevLevel.equals("FATAL")) { - expectedStyle = "Color: red;"; - } - - try { - clientid7.setValueAttribute("form7:severity7"); - severity7.setValueAttribute(sevLevel); - page = (HtmlPage) button7.click(); - } catch (IOException e) { - formatter.format(testCaseName + ": Unexpected exception " - + "clicking button7: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan messagespan7 = (HtmlSpan) getElementOfTypeIncludingId(page, - "span", "form7:message7"); - if (!validateExistence(messagespan7.getId(), "form7:message7", - messagespan7, formatter)) { - handleTestStatus(messages); - return; - } - - // Test the attribute for its validity. - String style = messagespan7.getAttribute("style"); - if (!expectedStyle.equals(style)) { - formatter.format(testCaseName + ": Unexpected style " - + "attribute. %n" + "Expected: " + expectedStyle + "%n" - + "Received: " + style + "%n"); - } - } - - // -------------------------------------------------------------- - // Case 8: - testCaseName = "Case 8"; - // Generate a message. - HtmlInput button8 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form8:button8"); - HtmlInput clientid8 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form8:id8"); - HtmlInput severity8 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form8:severity8"); - - for (int i = 0; i < sevs.length; i++) { - String sevLevel = sevs[i]; - String expectedClass = null; - - // Based on the input level set the expected style. - if (sevLevel.equals("INFO")) { - expectedClass = "class_info"; - } else if (sevLevel.equals("WARN")) { - expectedClass = "class_warn"; - } else if (sevLevel.equals("ERROR")) { - expectedClass = "class_error"; - } else if (sevLevel.equals("FATAL")) { - expectedClass = "class_fatal"; - } - - try { - clientid8.setValueAttribute("form8:severity8"); - severity8.setValueAttribute(sevLevel); - page = (HtmlPage) button8.click(); - } catch (IOException e) { - formatter.format(testCaseName + ": Unexpected exception " - + "clicking button8: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan messagespan8 = (HtmlSpan) getElementOfTypeIncludingId(page, - "span", "form8:message8"); - if (!validateExistence(messagespan8.getId(), "form8:message8", - messagespan8, formatter)) { - handleTestStatus(messages); - return; - } - - // Test the attribute for its validity. - String messclass = messagespan8.getAttribute("class"); - if (!expectedClass.equals(messclass)) { - formatter.format(testCaseName + ": Unexpected class " - + "attribute! %n" + "Expected: " + expectedClass + "%n" - + "Recieved: " + messclass); - } - } - - // -------------------------------------------------------------- - // Case 9: - testCaseName = "Case 9"; - // Generate message.(summary = true, detail = true) - HtmlInput button9 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form9:button9"); - HtmlInput clientid9 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form9:id9"); - HtmlInput severity9 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form9:severity9"); - - try { - clientid9.setValueAttribute("form9:severity9"); - severity9.setValueAttribute("INFO"); - page = (HtmlPage) button9.click(); - } catch (IOException e) { - formatter.format( - testCaseName + ": Unexpected exception clicking " + "button9: %s%n", - e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan span9 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form9:message9"); - if (!validateExistence(span9.getId(), "form9:message9", span9, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the message itself. - String sdMessage = span9.asText().trim(); - if (!"INFO: Summary Message INFO: Detailed Message".equals(sdMessage)) { - formatter.format(testCaseName + ": Unexpected value for message! " - + "%n" + "Expected: INFO: Summary Message INFO: Detailed Message" - + " %n" + "Received: " + sdMessage + "%n"); - } - - // ------------------------------------------------------------- - // Case 10: - testCaseName = "Case 10"; - // Generate a message.(summary = true, detail = false) - HtmlInput button10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:button10"); - HtmlInput clientid10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:id10"); - HtmlInput severity10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:severity10"); - - try { - clientid10.setValueAttribute("form10:severity10"); - severity10.setValueAttribute("INFO"); - page = (HtmlPage) button10.click(); - } catch (IOException e) { - formatter.format(testCaseName + ": Unexpected exception clicking " - + "button10: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan span10 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form10:message10"); - if (!validateExistence(span10.getId(), "form10:message10", span10, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the message itself. - String sMessage = span10.asText().trim(); - if (!"INFO: Summary Message".equals(sMessage)) { - formatter.format(testCaseName + ": Unexpected value for message!" + "%n" - + "Expected: INFO: Summary Message %n" + "Received: " + sMessage - + "%n"); - handleTestStatus(messages); - return; - } - - // ------------------------------------------------------------- - // Case 11: - testCaseName = "Case 11"; - // Generate a message.(summary = false, detail = true) - HtmlInput button11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:button11"); - HtmlInput clientid11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:id11"); - HtmlInput severity11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:severity11"); - - try { - clientid11.setValueAttribute("form11:severity11"); - severity11.setValueAttribute("INFO"); - page = (HtmlPage) button11.click(); - } catch (IOException e) { - formatter.format(testCaseName + ": Unexpected exception clicking " - + "button11: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan span11 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form11:message11"); - if (!validateExistence(span11.getId(), "form11:message11", span11, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the message itself. - String dMessage = span11.asText().trim(); - if (!"INFO: Detailed Message".equals(dMessage)) { - formatter.format(testCaseName + ": Unexpected value for message! " - + "%n" + "Expected: INFO: Detailed Message %n" + "Received: " - + dMessage + "%n"); - } - - // ------------------------------------------------------------- - // Case 12: - testCaseName = "Case 12"; - // Generate a message.(summary = false, detail = false) - HtmlInput button12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:button12"); - HtmlInput clientid12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:id12"); - HtmlInput severity12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:severity12"); - - try { - clientid12.setValueAttribute("form12:severity12"); - severity12.setValueAttribute("INFO"); - page = (HtmlPage) button12.click(); - } catch (IOException e) { - formatter.format(testCaseName + ": Unexpected exception clicking " - + "button12: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan span12 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "form12:message12"); - if (!validateExistence(span12.getId(), "form12:message12", span6, - formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the message itself. - String noMessage = span12.asText().trim(); - if (!"".equals(noMessage)) { - formatter.format(testCaseName + ": Unexpected value for message! " - + "%n" + "Expected: %n" + "Received: " + noMessage + "%n"); - } - - handleTestStatus(messages); - } - } // END messageEncodeTest - - /** - * @testName: messageRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void messageRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces//faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - // Generate the message. - HtmlInput button = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "testform:button1"); - try { - page = (HtmlPage) button.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlSpan messagespan = (HtmlSpan) getElementOfTypeIncludingId(page, - "span", "testform:message"); - if (!validateExistence(messagespan.getId(), "testform:message", - messagespan, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, messagespan, - new String[] { "id", "value", "name", "type", "size", "multiple" }, - formatter); - - handleTestStatus(messages); - } - } // END messageRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/message/build.xml b/src/com/sun/ts/tests/jsf/spec/render/message/build.xml deleted file mode 100644 index 5dd14ede15..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/message/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/message/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/message/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/message/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/message/jsf_render_message_web.xml b/src/com/sun/ts/tests/jsf/spec/render/message/jsf_render_message_web.xml deleted file mode 100644 index 0c17bc2c70..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/message/jsf_render_message_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_message - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/messages/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/messages/URLClient.java deleted file mode 100644 index 5106149eb8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/messages/URLClient.java +++ /dev/null @@ -1,1217 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.messages; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.Iterator; -import java.util.List; -import java.util.TreeMap; -import java.util.TreeSet; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlListItem; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlTable; -import com.gargoylesoftware.htmlunit.html.HtmlTableDataCell; -import com.gargoylesoftware.htmlunit.html.HtmlUnorderedList; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_messages_web"; - - private static final String SUMMARY_MESSAGE = "INFO: Summary Message"; - - private static final String DETAILED_MESSAGE = "INFO: Detailed Message"; - - private String firstMessage; - - private String secondMessage; - - private String testCaseName = ""; // This is only used for output messages. - - private String[] sevs = { "MESSAGES_INFO", "MESSAGES_WARN", "MESSAGES_ERROR", - "MESSAGES_FATAL" }; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: messagesRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of jakarta.faces.Messages - * - * case 1: - The id, showSummary, and showDetail attributes - * are defined. The layout attribute is not defined.(default - * layout=list) Verifiy for each message that we - render the - * correct value for "showSummary". - render the correct value - * for "showDetail". - that we render "id" and its value is - * correct. case 2: - The styleClass attribute is defined. The - * layout attribute is not defined.(default layout=list) - * Verifiy that the - *
    - * element - renders "styleClass"(as class) with the expected - * value. - * - * case 3: - The infoStyle and infoClass attributes are - * defined. - The layout attribute is not defined.(default - * layout=list) Verifiy for each message( - *
  • elment) that we - render "infoStyle"(as style) with the - * expected value. - render "infoClass"(as class) with the - * expected value. case 4: - The warnStyle and warnClass - * attributes are defined. The layout attribute is not - * defined.(default layout=list) Verifiy for each message( - *
  • elment) that we - render "warnStyle"(as style) with the - * expected value. - render "warnClass"(as class) with the - * expected value. case 5: - The errorStyle and errorClass are - * defined. The layout attribute is not defined.(default - * layout=list) Verifiy that we - render "errorStyle"(as - * style) with the expect value. - render "errorClass"(as - * class) with expected value. case 6: - The id, fatalStyle, - * and fatalClass are defined. The layout attribute is not - * defined.(default layout=list) Verifiy that we - render - * "fatalStyle"(as style) with the expect value. - render - * "fatalClass"(as class) with expected value. case 7: - - * Validate that we can have all message severity style - * attributes set and we can get all severity messages to - * adhere to the correct style attribute. - The layout - * attribute is not defined.(default layout=list) Style - * Attributes: -infoStyle -warnStyle -errorStyle -fatalStyle - * case 8: - Validate that we can have all message severity - * class attributes set and we can get all severity messages - * to adhere to the correct class attribute. - The layout - * attribute is not defined.(default layout=list) Class - * Attributes: -infoClass -warnClass -errorClass -fatalClass - * - * case 9: - Validate that we render only the message summary - * for both messages. - The layout attribute is not - * defined.(default layout=list) -showSummary = true - * -showDetail = false - * - * - * case 10: - Validate that we render only the message detail. - * - The layout attribute is not defined.(default layout=list) - * -showSummary = false -showDetail = true - * - * case 11: - Validate that we do not render a message at all. - * - The layout attribute is not defined.(default layout=list) - * -showSummary = false -showDetail = false case 12: - The id, - * showSummary, and showDetail attributes are defined. The - * layout attribute is defined.(layout=table) Verifiy for each - * message( - *
element) that we - render the correct value for - * "showSummary". - render the correct value for "showDetail". - * - that we render "id" and its value is correct. case 13: - - * The styleClass attribute is defined. The layout attribute - * is defined.(layout=table) Verifiy that the - * - * element - renders "styleClass"(as class) with the expected - * value. case 14: - Validate that we render only the message - * summary for both messages. - The layout attribute - * defined.(default layout=table) -showSummary = true - * -showDetail = false - * - * - * case 15: - Validate that we render only the message detail. - * - The layout attribute defined.(default layout=table) - * -showSummary = false -showDetail = true - * - * case 16: - Validate that we do not render a message at all. - * - The layout attribute defined.(default layout=table) - * -showSummary = false -showDetail = false - * - * @since 1.2 - */ - public void messagesRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------------Case - // 1: - this.testCaseName = "Case_1"; - // Generate the messages - HtmlInput button1 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:button1"); - HtmlInput clientid = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:id1"); - HtmlInput severity = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form1:input1"); - - try { - clientid.setValueAttribute("form1:input1"); - severity.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulOne = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form1:message1"); - if (!validateExistence(ulOne.getId(), "form1:message1", ulOne, - formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = SUMMARY_MESSAGE + "_One " + DETAILED_MESSAGE + "_One"; - secondMessage = SUMMARY_MESSAGE + "_Two " + DETAILED_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet exMessages = new TreeSet(); - exMessages.add(firstMessage); - exMessages.add(secondMessage); - - // Tree of actual messages - Iterator liInt = ulOne.getChildElements().iterator(); - TreeSet aMessages = new TreeSet(); - - while (liInt.hasNext()) { - HtmlListItem li = (HtmlListItem) liInt.next(); - aMessages.add(li.asText()); - } - - if (aMessages.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - } - - // Test the two Trees for equality - if (!(exMessages.equals(aMessages))) { - String actual = null; - switch (aMessages.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) aMessages.first(); - break; - case 2: - actual = (String) aMessages.first() + " and %n " + aMessages.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ---------------------------------------------------------------Case - // 2: - this.testCaseName = "Case_2"; - // Generate the messages - HtmlInput button2 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form2:button2"); - HtmlInput clientid2 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form2:id2"); - HtmlInput severity2 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form2:input2"); - - try { - clientid2.setValueAttribute("form2:input2"); - severity2.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button2.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button2: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulTwo = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form2:message2"); - if (!validateExistence(ulTwo.getId(), "form2:message2", ulTwo, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(ulTwo.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + ulTwo.getAttribute("class") + "%n"); - } - - // ---------------------------------------------------------------Case - // 3: - this.testCaseName = "Case_3"; - // Generate the messages - HtmlInput button3 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form3:button3"); - HtmlInput clientid3 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form3:id3"); - HtmlInput severity3 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form3:input3"); - - try { - clientid3.setValueAttribute("form3:input3"); - severity3.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button3.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button3: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulThree = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form3:message3"); - if (!validateExistence(ulThree.getId(), "form3:message3", ulThree, - formatter)) { - handleTestStatus(messages); - return; - } - - // Get the messages - Iterator liIntThree = ulThree.getChildElements().iterator(); - - while (liIntThree.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntThree.next(); - String expStyle = "Color: blue;"; - String expClass = "underline"; - - if (!(li.getAttribute("style").equals(expStyle))) { - formatter.format("Unexpected value " + testCaseName + ", for " - + "style attribute! %n" + "Expected: " + expStyle + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - - if (!(li.getAttribute("class").equals(expClass))) { - formatter.format(testCaseName + ": Unexpected value for " - + "class attribute! %n" + "Expected: " + expClass + "%n" - + "Received: " + li.getAttribute("class") + "%n"); - } - } - - // ---------------------------------------------------------------Case - // 4: - this.testCaseName = "Case_4"; - // Generate the message - HtmlInput button4 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form4:button4"); - HtmlInput clientid4 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form4:id4"); - HtmlInput severity4 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form4:input4"); - - try { - clientid4.setValueAttribute("form4:input4"); - severity4.setValueAttribute("MESSAGES_WARN"); - page = (HtmlPage) button4.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button4: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulFour = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form4:message4"); - if (!validateExistence(ulFour.getId(), "form4:message4", ulFour, - formatter)) { - handleTestStatus(messages); - return; - } - - Iterator liIntFour = ulFour.getChildElements().iterator(); - - while (liIntFour.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntFour.next(); - String expStyle = "Color: green;"; - String expClass = "underline"; - - if (!(li.getAttribute("style").equals(expStyle))) { - formatter.format(testCaseName + ": Unexpected value for " - + "style attribute! %n" + "Expected: " + expStyle + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - - if (!(li.getAttribute("class").equals(expClass))) { - formatter.format(testCaseName + ": Unexpected value for " - + "class attribute! %n" + "Expected: " + expClass + "%n" - + "Received: " + li.getAttribute("class") + "%n"); - } - } - - // ---------------------------------------------------------------Case - // 5: - this.testCaseName = "Case_5"; - // Generate the message - HtmlInput button5 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form5:button5"); - HtmlInput clientid5 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form5:id5"); - HtmlInput severity5 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form5:input5"); - - try { - clientid5.setValueAttribute("form5:input5"); - severity5.setValueAttribute("MESSAGES_ERROR"); - page = (HtmlPage) button5.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button5: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulFive = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form5:message5"); - if (!validateExistence(ulFive.getId(), "form5:message5", ulFive, - formatter)) { - handleTestStatus(messages); - return; - } - - Iterator liIntFive = ulFive.getChildElements().iterator(); - - while (liIntFive.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntFive.next(); - String expStyle = "Color: yellow;"; - String expClass = "underline"; - - if (!(li.getAttribute("style").equals(expStyle))) { - formatter.format(testCaseName + ": Unexpected value for " - + "style attribute! %n" + "Expected: " + expStyle + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - - if (!(li.getAttribute("class").equals(expClass))) { - formatter.format(testCaseName + ": Unexpected value for " - + "class attribute! %n" + "Expected: " + expClass + "%n" - + "Received: " + li.getAttribute("class") + "%n"); - } - } - - // ---------------------------------------------------------------Case - // 6: - this.testCaseName = "Case_6"; - // Generate the message - HtmlInput button6 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form6:button6"); - HtmlInput clientid6 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form6:id6"); - HtmlInput severity6 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form6:input6"); - - try { - clientid6.setValueAttribute("form6:input6"); - severity6.setValueAttribute("MESSAGES_FATAL"); - page = (HtmlPage) button6.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button6: %s%n", e); - handleTestStatus(messages); - return; - } - - HtmlUnorderedList ulSix = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form6:message6"); - if (!validateExistence(ulSix.getId(), "form6:message6", ulSix, - formatter)) { - handleTestStatus(messages); - return; - } - - Iterator liIntSix = ulSix.getChildElements().iterator(); - - while (liIntSix.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntSix.next(); - String expStyle = "Color: red;"; - String expClass = "underline"; - - if (!(li.getAttribute("style").equals(expStyle))) { - formatter.format(testCaseName + ": Unexpected value for " - + "style attribute! %n" + "Expected: " + expStyle + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - - if (!(li.getAttribute("class").equals(expClass))) { - formatter.format(testCaseName + ": Unexpected value for " - + "class attribute! %n" + "Expected: " + expClass + "%n" - + "Received: " + li.getAttribute("class") + "%n"); - } - } - - // ---------------------------------------------------------------Case - // 7: - this.testCaseName = "Case_7"; - // Generate a message. - HtmlInput button7 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form7:button7"); - HtmlInput clientid7 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form7:id7"); - HtmlInput severity7 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form7:severity7"); - - for (int i = 0; i < sevs.length; i++) { - String sevLevel = sevs[i]; - String expectedStyle = null; - - // Based on the input level set the expected style. - if (sevLevel.equals("MESSAGES_INFO")) { - expectedStyle = "Color: blue;"; - } else if (sevLevel.equals("MESSAGES_WARN")) { - expectedStyle = "Color: green;"; - } else if (sevLevel.equals("MESSAGES_ERROR")) { - expectedStyle = "Color: yellow;"; - } else if (sevLevel.equals("MESSAGES_FATAL")) { - expectedStyle = "Color: red;"; - } - - try { - clientid7.setValueAttribute("form7:severity7"); - severity7.setValueAttribute(sevLevel); - page = (HtmlPage) button7.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button7: " + "%s%n", - e); - handleTestStatus(messages); - return; - } - HtmlUnorderedList ulSeven = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form7:message7"); - if (!validateExistence(ulSeven.getId(), "form7:message7", ulSeven, - formatter)) { - handleTestStatus(messages); - return; - } - - Iterator liIntSeven = ulSeven.getChildElements().iterator(); - - while (liIntSeven.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntSeven.next(); - - if (!(li.getAttribute("style").equals(expectedStyle))) { - formatter.format(testCaseName + ": Unexpected value for " - + "style attribute! %n" + "Expected: " + expectedStyle + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - } - } - - // -------------------------------------------------------------- - // Case 8: - this.testCaseName = "Case_8"; - // Generate a message. - HtmlInput button8 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form8:button8"); - HtmlInput clientid8 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form8:id8"); - HtmlInput severity8 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form8:severity8"); - - for (int i = 0; i < sevs.length; i++) { - String sevLevel = sevs[i]; - String expectedClass = null; - - // Based on the input level set the expected style. - if (sevLevel.equals("MESSAGES_INFO")) { - expectedClass = "class_info"; - } else if (sevLevel.equals("MESSAGES_WARN")) { - expectedClass = "class_warn"; - } else if (sevLevel.equals("MESSAGES_ERROR")) { - expectedClass = "class_error"; - } else if (sevLevel.equals("MESSAGES_FATAL")) { - expectedClass = "class_fatal"; - } - - try { - clientid8.setValueAttribute("form8:severity8"); - severity8.setValueAttribute(sevLevel); - page = (HtmlPage) button8.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button8: %s%n", e); - handleTestStatus(messages); - return; - } - - HtmlUnorderedList ulEight = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form8:message8"); - if (!validateExistence(ulEight.getId(), "form8:message8", ulEight, - formatter)) { - handleTestStatus(messages); - return; - } - - Iterator liIntEight = ulEight.getChildElements().iterator(); - - while (liIntEight.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntEight.next(); - - if (!(li.getAttribute("class").equals(expectedClass))) { - formatter.format(testCaseName + ": Unexpected value for " - + "class attribute! %n" + "Expected: " + expectedClass + "%n" - + "Received: " + li.getAttribute("style") + "%n"); - } - } - } - - // -------------------------------------------------------------- - // Case 9: - this.testCaseName = "Case_9"; - // Generate message.(summary = true, detail = false) - HtmlInput button9 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form9:button9"); - HtmlInput clientid9 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form9:id9"); - HtmlInput severity9 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form9:severity9"); - - try { - clientid9.setValueAttribute("form9:severity9"); - severity9.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button9.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button9: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulNine = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form9:message9"); - if (!validateExistence(ulNine.getId(), "form9:message9", ulNine, - formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = SUMMARY_MESSAGE + "_One"; - secondMessage = SUMMARY_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet expNine = new TreeSet(); - expNine.add(firstMessage); - expNine.add(secondMessage); - - // Tree of actual messages - Iterator liIntNine = ulNine.getChildElements().iterator(); - TreeSet actNine = new TreeSet(); - - while (liIntNine.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntNine.next(); - actNine.add(li.asText()); - } - - if (expNine.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - } - - // Test the two Trees for equality - if (!(expNine.equals(actNine))) { - String actual = null; - switch (aMessages.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actNine.first(); - break; - case 2: - actual = (String) actNine.first() + " and %n " + actNine.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 10: - this.testCaseName = "Case_10"; - // Generate a message.(summary = false, detail = true) - HtmlInput button10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:button10"); - HtmlInput clientid10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:id10"); - HtmlInput severity10 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form10:severity10"); - - try { - clientid10.setValueAttribute("form10:severity10"); - severity10.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button10.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button10: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulTen = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form10:message10"); - if (!validateExistence(ulTen.getId(), "form10:message10", ulTen, - formatter)) { - handleTestStatus(messages); - return; - } - // Array of expected test messages. - firstMessage = DETAILED_MESSAGE + "_One"; - secondMessage = DETAILED_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet expTen = new TreeSet(); - expTen.add(firstMessage); - expTen.add(secondMessage); - - // Tree of actual messages - Iterator liIntTen = ulTen.getChildElements().iterator(); - TreeSet actTen = new TreeSet(); - - while (liIntTen.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntTen.next(); - actTen.add(li.asText()); - } - - if (expTen.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - } - - // Test the two Trees for equality - if (!(expTen.equals(actTen))) { - String actual = null; - switch (actTen.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actTen.first(); - break; - case 2: - actual = (String) actTen.first() + " and %n " + actTen.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 11: - this.testCaseName = "Case_11"; - // Generate a message.(summary = false, detail = false) - HtmlInput button11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:button11"); - HtmlInput clientid11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:id11"); - HtmlInput severity11 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form11:severity11"); - - try { - clientid11.setValueAttribute("form11:severity11"); - severity11.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button11.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button11: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmUnorderedList element by id and test for validity. - HtmlUnorderedList ulEleven = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "form11:message11"); - if (!validateExistence(ulEleven.getId(), "form11:message11", ulEleven, - formatter)) { - handleTestStatus(messages); - return; - } - // Array of expected test messages. - firstMessage = ""; - secondMessage = ""; - - // Tree of expected messages - TreeSet expEleven = new TreeSet(); - expEleven.add(firstMessage); - expEleven.add(secondMessage); - - // Tree of actual messages - Iterator liIntEleven = ulEleven.getChildElements().iterator(); - TreeSet actEleven = new TreeSet(); - - while (liIntEleven.hasNext()) { - HtmlListItem li = (HtmlListItem) liIntEleven.next(); - actEleven.add(li.asText()); - } - - if (expEleven.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - } - - // Test the two Trees for equality - if (!(expEleven.equals(actEleven))) { - String actual = null; - switch (actEleven.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actEleven.first(); - break; - case 2: - actual = (String) actEleven.first() + " and %n " + actEleven.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 12: - this.testCaseName = "Case_12"; - // Generate the messages - HtmlInput button12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:button12"); - HtmlInput clientid12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:id12"); - HtmlInput severity12 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form12:input12"); - - try { - clientid12.setValueAttribute("form12:input12"); - severity12.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button12.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button12: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmTable element by id and test for validity. - HtmlTable tableOne = (HtmlTable) getElementOfTypeIncludingId(page, - "table", "form12:message12"); - if (!validateExistence(tableOne.getId(), "form12:message12", tableOne, - formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = SUMMARY_MESSAGE + "_One " + DETAILED_MESSAGE + "_One"; - secondMessage = SUMMARY_MESSAGE + "_Two " + DETAILED_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet expTwelve = new TreeSet(); - expTwelve.add(firstMessage); - expTwelve.add(secondMessage); - - // Tree of actual messages - TreeSet actualTwelve = new TreeSet(); - - for (HtmlElement element : tableOne.getHtmlElementDescendants()) { - // Only add the html
elements to the list. - if ("td".equals(((HtmlElement) element).getTagName())) { - HtmlTableDataCell datacell = (HtmlTableDataCell) element; - actualTwelve.add(datacell.asText()); - } - } - - // Make sure that the list is not greater the the expected message - // list. - if (actualTwelve.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - handleTestStatus(messages); - return; - } - - // Test the two Trees for equality - if (!(expTwelve.equals(actualTwelve))) { - String actual = ""; - switch (actualTwelve.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actualTwelve.first(); - break; - case 2: - actual = (String) actualTwelve.first() + " and %n " - + actualTwelve.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 13: - this.testCaseName = "Case_13"; - // Generate the messages - HtmlInput button13 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form13:button13"); - HtmlInput clientid13 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form13:id13"); - HtmlInput severity13 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form13:input13"); - - try { - clientid13.setValueAttribute("form2:input2"); - severity13.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button13.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button13: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmTable element by id and test for validity. - HtmlTable tableTwo = (HtmlTable) getElementOfTypeIncludingId(page, - "table", "form13:message13"); - if (!validateExistence(tableTwo.getId(), "form13:message13", tableTwo, - formatter)) { - handleTestStatus(messages); - return; - } - - if (!(tableTwo.getAttribute("class").equals("underline"))) { - formatter.format(testCaseName + ": Unexpected value for class " - + "attribute! %n" + "Expected: underline %n" + "Received: " - + tableTwo.getAttribute("class") + "%n"); - } - - // ------------------------------------------------------------- - // Case 14: - this.testCaseName = "Case_14"; - // Generate the messages - HtmlInput button14 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form14:button14"); - HtmlInput clientid14 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form14:id14"); - HtmlInput severity14 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form14:input14"); - - try { - clientid14.setValueAttribute("form14:input14"); - severity14.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button14.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button14: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmTable element by id and test for validity. - HtmlTable tableFourteen = (HtmlTable) getElementOfTypeIncludingId(page, - "table", "form14:message14"); - if (!validateExistence(tableFourteen.getId(), "form14:message14", - tableFourteen, formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = SUMMARY_MESSAGE + "_One"; - secondMessage = SUMMARY_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet expFourteen = new TreeSet(); - expFourteen.add(firstMessage); - expFourteen.add(secondMessage); - - // Tree of actual messages - TreeSet actualFourteen = new TreeSet(); - for (HtmlElement element : tableFourteen.getHtmlElementDescendants()) { - // Only add the html elements to the list. - if ("td".equals(((HtmlElement) element).getTagName())) { - HtmlTableDataCell datacell = (HtmlTableDataCell) element; - actualFourteen.add(datacell.asText()); - } - } - - // Make sure that the list is not greater the the expected message - // list. - if (actualFourteen.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - handleTestStatus(messages); - return; - } - - // Test the two Trees for equality - if (!(expFourteen.equals(actualFourteen))) { - String actual = ""; - switch (actualFourteen.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actualFourteen.first(); - break; - case 2: - actual = (String) actualFourteen.first() + " and %n " - + actualFourteen.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 15: - this.testCaseName = "Case_15"; - // Generate the messages - HtmlInput button15 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form15:button15"); - HtmlInput clientid15 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form15:id15"); - HtmlInput severity15 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form15:input15"); - - try { - clientid15.setValueAttribute("form15:input15"); - severity15.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button15.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button15: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmTable element by id and test for validity. - HtmlTable tableFifteen = (HtmlTable) getElementOfTypeIncludingId(page, - "table", "form15:message15"); - if (!validateExistence(tableFifteen.getId(), "form15:message15", - tableFifteen, formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = DETAILED_MESSAGE + "_One"; - secondMessage = DETAILED_MESSAGE + "_Two"; - - // Tree of expected messages - TreeSet expFifteen = new TreeSet(); - expFifteen.add(firstMessage); - expFifteen.add(secondMessage); - - TreeSet actualFifteen = new TreeSet(); - - // while (fifTeenTRInt.hasNext()) { - for (HtmlElement element : tableFifteen.getHtmlElementDescendants()) { - // Only add the html elements to the list. - if ("td".equals(((HtmlElement) element).getTagName())) { - HtmlTableDataCell datacell = (HtmlTableDataCell) element; - actualFifteen.add(datacell.asText()); - } - } - - // Make sure that the list is not greater the the expected message - // list. - if (actualFifteen.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - handleTestStatus(messages); - return; - } - - // Test the two Trees for equality - if (!(expFifteen.equals(actualFifteen))) { - String actual = ""; - switch (actualFifteen.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actualFifteen.first(); - break; - case 2: - actual = (String) actualFifteen.first() + " and %n " - + actualFourteen.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - // ------------------------------------------------------------- - // Case 16: - this.testCaseName = "Case_16"; - // Generate the messages - HtmlInput button16 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form16:button16"); - HtmlInput clientid16 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form16:id16"); - HtmlInput severity16 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form16:input16"); - - try { - clientid16.setValueAttribute("form16:input16"); - severity16.setValueAttribute("MESSAGES_INFO"); - page = (HtmlPage) button16.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button16: %s%n", e); - handleTestStatus(messages); - return; - } - - // Get HtlmTable element by id and test for validity. - HtmlTable tableSixteen = (HtmlTable) getElementOfTypeIncludingId(page, - "table", "form16:message16"); - if (!validateExistence(tableSixteen.getId(), "form16:message16", - tableSixteen, formatter)) { - handleTestStatus(messages); - return; - } - - // Array of expected test messages. - firstMessage = ""; - secondMessage = ""; - - // Tree of expected messages - TreeSet expSixteen = new TreeSet(); - expSixteen.add(firstMessage); - expSixteen.add(secondMessage); - - // Tree of actual messages - TreeSet actualSixteen = new TreeSet(); - for (HtmlElement element : tableSixteen.getHtmlElementDescendants()) { - // Only add the html elements to the list. - if ("td".equals(((HtmlElement) element).getTagName())) { - HtmlTableDataCell datacell = (HtmlTableDataCell) element; - actualSixteen.add(datacell.asText()); - } - } - - // Make sure that the list is not greater the the expected message - // list. - if (actualSixteen.size() > 2) { - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Recieved more then two messages"); - handleTestStatus(messages); - return; - } - - // Test the two Trees for equality - if (!(expSixteen.equals(actualSixteen))) { - String actual = ""; - switch (actualSixteen.size()) { - case 0: - actual = ""; - break; - case 1: - actual = (String) actualSixteen.first(); - break; - case 2: - actual = (String) actualSixteen.first() + " and %n " - + actualSixteen.last(); - break; - } - formatter.format(testCaseName + ": Unexpected value for " - + "Messages! %n" + "Expected Two Messages: " + firstMessage - + " and %n" + secondMessage + "%n" + "Received: " + actual + "%n"); - } - - handleTestStatus(messages); - } - }// END messagesRenderEncodeTest - - /** - * @testName: messagesRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void messagesRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - // Generate the message. - HtmlInput button = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "testform:button1"); - try { - page = (HtmlPage) button.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: " + "%s%n", e); - handleTestStatus(messages); - return; - } - - // Now retrieve the message - HtmlUnorderedList ul = (HtmlUnorderedList) getElementOfTypeIncludingId( - page, "ul", "testform:messages"); - if (!validateExistence(ul.getId(), "ul", ul, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, ul, - new String[] { "id", "value", "name", "type", "size", "multiple" }, - formatter); - - handleTestStatus(messages); - } - } // END messagesRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/messages/build.xml b/src/com/sun/ts/tests/jsf/spec/render/messages/build.xml deleted file mode 100644 index d99ad1d852..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/messages/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/messages/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/messages/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/messages/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/messages/jsf_render_messages_web.xml b/src/com/sun/ts/tests/jsf/spec/render/messages/jsf_render_messages_web.xml deleted file mode 100644 index 6a29c04712..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/messages/jsf_render_messages_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_messages - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/onelistbox/URLClient.java deleted file mode 100644 index 3e7b861ec6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/URLClient.java +++ /dev/null @@ -1,495 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.onelistbox; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_onelistbox_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: oneListboxRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of jakarta.faces.SelectOne.Listbox - * case 1: - Only the id attribute is defined and two options. - * Verify that - the correct number of options are rendered - - * none of the options is selected - the value attributes for - * each option are correctly rendered. case 2: - Attributes - * for id, enabledClass, and disabledClass are defined. Verify - * that - each option is rendered as enabled or disabled as - * appropriate, and - each option is rendered with the correct - * style class. case 3: - Attributes for id, value, and class - * are defined. case 4,5: - ensure the disabled attribute is - * handled using html attribute minimization (only the - * attribute name is rendered when value is true, and nothing - * rendered when false) case 6,7: - ensure the readonly - * attribute is handled using html attribute minimization - * (only the attribute name is rendered when value is true, - * and nothing rendered when false) case 8: - ensure that the - * size of the listbox is maintained, even if there are less - * selectItems then the size attribute states. case 9: - - * ensure that the binding attribute is handled correctly and - * the correct selectItems are rendered. - * - * @since 1.2 - */ - public void oneListboxRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ------------------------------------------------------------- - // listbox1 - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox1"); - - if (!validateExistence("listbox1", "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (listbox1.getOptionSize() != 2) { - formatter.format( - "Expected the number of options rendered for the component" - + " listbox1 to be '%d', but found '%d'", - 2, listbox1.getOptionSize()); - } - - List selectedOptions = listbox1.getSelectedOptions(); - if (selectedOptions == null) { - formatter.format("List of selected options for listbox1 is null"); - handleTestStatus(messages); - return; - } - - if (selectedOptions.size() != 0) { - formatter.format( - "Expected the number of selected options rendered" - + " for the component listbox1 to be '%d', but found '%d'", - 0, selectedOptions.size()); - } - - if (!"2".equals(listbox1.getSizeAttribute())) { - formatter.format( - "(listbox1) Expected the value of the size " - + "attribute to be '2', but found '%s'", - listbox1.getSizeAttribute()); - } - - if (!"true".equals(listbox1.getOption(0).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for listbox1" - + " to be '%s', found '%s'", - 0, "true", listbox1.getOption(0).getValueAttribute()); - } - - if (!"false".equals(listbox1.getOption(1).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for listbox1" - + " to be '%s', found '%s'", - 1, "true", listbox1.getOption(1).getValueAttribute()); - } - - // ------------------------------------------------------------- - // listbox2 - - HtmlSelect listbox2 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox2"); - - if (!validateExistence("listbox2", "select", listbox2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(listbox2.getOption(0).getDisabledAttribute())) { - formatter.format("Expected option '%d' for listbox2 to be '%s'", 0, - "disabled"); - } - - if (!"Color: red;".equals(listbox2.getOption(0).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute for" - + "option '%d' for listbox2" + " to be '%s', found '%s'", - 0, "Color: red;", listbox2.getOption(0).getAttribute("class")); - } - - if (listbox2.getOption(1).isDisabled()) { - formatter.format("Expected option '%d' for listbox2 to be '%s'", 1, - "enabled"); - } - - if (!"text".equals(listbox2.getOption(1).getAttribute("class"))) { - formatter.format( - "Unexpected value for class attribute on %s %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "listbox2", 1, "text", listbox2.getOption(1).getAttribute("class")); - } - - // ------------------------------------------------------------ - // listbox3 - - HtmlSelect listbox3 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox3"); - - if (!validateExistence("listbox3", "select", listbox3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(listbox3.getAttribute("class"))) { - formatter.format( - "unexpected value for class attribute on %s %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "listbox3", "text", listbox3.getAttribute("class")); - } - - // ------------------------------------------------------------ - // listbox4 - HtmlSelect select4 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox4"); - - if (!validateExistence("listbox4", "select", select4, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(select4.getDisabledAttribute())) { - formatter.format( - "Unexpected value for disabled attribute on %s %n" - + "Expected: '%s' %n" + "Found '%s' %n", - "listbox4", "disabled", select4.getDisabledAttribute()); - } - - // ------------------------------------------------------------ - // listbox5 - - HtmlSelect select5 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox5"); - - if (!validateExistence("listbox5", "select", select5, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(select5.getDisabledAttribute())) { - formatter.format("(listbox5) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP %n."); - } - - // ------------------------------------------------------------ - // listbox6 - - HtmlSelect select6 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox6"); - - if (!validateExistence("listbox6", "select", select6, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(select6.getAttribute("readonly"))) { - formatter.format( - "Unexpected value for readonly attribute on %s %n " - + "Expected: '%s' %n" + "Found: '%s' %n", - "listbox6", "readonly", select6.getAttribute("readonly")); - } - - // ------------------------------------------------------------ - // listbox7 - - HtmlSelect select7 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox7"); - - if (!validateExistence("listbox7", "select", select7, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(select7.getAttribute("readonly"))) { - formatter.format("(listbox7) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + "%n."); - } - - // ------------------------------------------------------------ - // listbox8 - - HtmlSelect select8 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox8"); - - if (!validateExistence("listbox8", "select", select8, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"5".equals(select8.getSizeAttribute())) { - formatter.format( - "Unexpected the value for size attribute on %s %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "listbox8", "5", select8.getSizeAttribute()); - } - - // ------------------------------------------------------------ - // listbox9 - - HtmlSelect select9 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox9"); - - if (!validateExistence("listbox9", "select", select9, formatter)) { - handleTestStatus(messages); - return; - } - if (select9.getOptionSize() != 2) { - formatter.format("Unexpected number of options rendered for " - + "the component %s ! %n" + "Expected: '%d' %n" + "Found: '%d' %n", - "listbox9", 2, select9.getOptionSize()); - } - - List noneSelected = select9.getSelectedOptions(); - if (noneSelected == null) { - formatter.format("List of selected options for listbox9 is null"); - handleTestStatus(messages); - return; - } - - if (noneSelected.size() != 0) { - formatter.format( - "Unexpected number of selected items for the " + "%s! %n" - + "Expected: '%d' %n" + "Found: '%d' %n", - "listbox9", 0, noneSelected.size()); - } - - if (!"no".equals(select9.getOption(0).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for %s" - + " to be '%s', found '%s'", - 0, "listbox9", "yes", select9.getOption(0).getValueAttribute()); - } - - if (!"yes".equals(select9.getOption(1).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for %s " - + " to be '%s', found '%s'", - 1, "listbox9", "no", select9.getOption(1).getValueAttribute()); - } - - handleTestStatus(messages); - } - } // END oneListboxRenderEncodeTest - - /** - * @testName: oneListboxRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Create a listbox with two options. Click a button to select - * one option and submit the form. Verify that the correct - * option is selected. Click the button again to select the - * other option. Verify that the correct option is selected - * and that the original option is no longer selected. - * - * @since 1.2 - */ - public void oneListboxRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/decodetest.xhtml"); - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox1"); - - if (!validateExistence("listbox1", "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - List selectedOptions = listbox1.getSelectedOptions(); - if (selectedOptions == null) { - formatter.format("List of selected options for listbox1 is null"); - handleTestStatus(messages); - return; - } - - if (selectedOptions.size() != 0) { - formatter.format( - "Expected the number of selected options rendered" - + " for the component listbox1 to be '%d', but found '%d'", - 0, selectedOptions.size()); - } - - listbox1.getOption(0).setSelected(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!listbox1.getOption(0).isSelected() - && listbox1.getOption(1).isSelected()) { - formatter.format( - "After first click, expected option '%d' selected attribute" - + " to be '%s', found '%s'; expected option '%d' selected attribute" - + " to be '%s', found '%s'.", - 0, "true", listbox1.getOption(0).isSelected(), 1, "false", - listbox1.getOption(1).isSelected()); - } - - listbox1.getOption(1).setSelected(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "listbox1"); - - if (!validateExistence("listbox1", "input", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - if (listbox1.getOption(0).isSelected() - && !listbox1.getOption(1).isSelected()) { - formatter.format( - "After second click, expected option '%d' selected attribute" - + " to be '%s', found '%s'; expected option '%d' selected attribute" - + " to be '%s', found '%s'.", - 0, "false", listbox1.getOption(0).isSelected(), 1, "true", - listbox1.getOption(1).isSelected()); - } - - handleTestStatus(messages); - - } // END oneListboxRenderDecodeTest - - /** - * @testName: oneListboxRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void oneListboxRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSelect listbox1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "listbox1"); - if (!validateExistence("listbox1", "select", listbox1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, listbox1, - new String[] { "id", "value", "name", "type", "size" }, formatter); - - handleTestStatus(messages); - } - } // END oneListboxRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/build.xml b/src/com/sun/ts/tests/jsf/spec/render/onelistbox/build.xml deleted file mode 100644 index 8d4a9f5de0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/onelistbox/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/jsf_render_onelistbox_web.xml b/src/com/sun/ts/tests/jsf/spec/render/onelistbox/jsf_render_onelistbox_web.xml deleted file mode 100644 index a852e69716..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onelistbox/jsf_render_onelistbox_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_onelistbox - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onemenu/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/onemenu/URLClient.java deleted file mode 100644 index 546b622603..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onemenu/URLClient.java +++ /dev/null @@ -1,468 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.onemenu; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlOption; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSelect; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_onemenu_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: oneMenuRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of jakarta.faces.SelectOne.Menu case - * 1: - Only the id attribute is defined and two options. - * Verify that - the correct number of options are rendered - - * one option is selected.(default) - the value attributes for - * each option are correctly rendered. case 2: - Attributes - * for id, enabledClass, and disabledClass are defined. Verify - * that - each option is rendered as enabled or disabled as - * appropriate, and - each option is rendered with the correct - * style class. case 3: - Attributes for id, value, and class - * are defined. case 4,5: - ensure the disabled attribute is - * handled using html attribute minimization (only the - * attribute name is rendered when value is true, and nothing - * rendered when false) case 6,7: - ensure the readonly - * attribute is handled using html attribute minimization - * (only the attribute name is rendered when value is true, - * and nothing rendered when false) case 8: - Using the - * Binding Attribute make sure of the following. Verify that - - * the correct number of options are rendered - one option is - * selected.(default) - the value attributes for each option - * are correctly rendered. - * - * @since 1.2 - */ - public void oneMenuRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ----------------------------------------------------------- Menu1 - - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu1"); - - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu1.getOptionSize() != 2) { - formatter.format( - "Expected the number of options rendered " - + "for the component menu1 to be '%d', but found '%d'", - 2, menu1.getOptionSize()); - } - - List selectedOptions = menu1.getSelectedOptions(); - if (selectedOptions == null) { - formatter.format("List of selected options for menu1 is null"); - handleTestStatus(messages); - return; - } - - if (selectedOptions.size() != 1) { - formatter.format("Expected the number of selected options " - + "rendered for the component menu1 to be '%d', but " - + "found '%d'", 1, selectedOptions.size()); - } - - if (!"true".equals(menu1.getOption(0).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for menu1" - + " to be '%s', found '%s'", - 0, "true", menu1.getOption(0).getValueAttribute()); - } - - if (!"false".equals(menu1.getOption(1).getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for menu1" - + " to be '%s', found '%s'", - 1, "true", menu1.getOption(1).getValueAttribute()); - } - - // ----------------------------------------------------------- Menu2 - - HtmlSelect menu2 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu2"); - - if (!validateExistence(menu2.getId(), "select", menu2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(menu2.getOption(0).getDisabledAttribute())) { - formatter.format("Expected option '%d' for menu2 to be '%s'", 0, - "disabled"); - } - - if (!"Color: red;".equals(menu2.getOption(0).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute " - + "for option '%d' for menu2" + " to be '%s', found '%s'", - 0, "Color: red;", menu2.getOption(0).getAttribute("class")); - } - - if (menu2.getOption(1).isDisabled()) { - formatter.format("Expected option '%d' for menu2 to be '%s'", 1, - "enabled"); - } - - if (!"text".equals(menu2.getOption(1).getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute " - + "for option '%d' for menu2" + " to be '%s', found '%s'", - 1, "text", menu2.getOption(1).getAttribute("class")); - } - - // ----------------------------------------------------------- Menu3 - - HtmlSelect menu3 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu3"); - - if (!validateExistence(menu3.getId(), "select", menu3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(menu3.getAttribute("class"))) { - formatter.format("Expected the rendered value of the class " - + "attribute to be 'text' for the text field containing" - + " ID 'menu3', but found '%s'%n", menu3.getAttribute("class")); - } - - // ----------------------------------------------------------- Menu4 - HtmlSelect menu4 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu4"); - - if (!validateExistence(menu4.getId(), "select", menu4, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(menu4.getDisabledAttribute())) { - formatter.format( - "(menu4) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s'%n", - "disabled", menu4.getDisabledAttribute()); - } - - // ----------------------------------------------------------- Menu5 - - HtmlSelect menu5 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu5"); - - if (!validateExistence(menu5.getId(), "select", menu5, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(menu5.getDisabledAttribute())) { - formatter.format("(menu5) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP%n."); - } - - // ----------------------------------------------------------- Menu6 - - HtmlSelect menu6 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu6"); - - if (!validateExistence(menu6.getId(), "select", menu6, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(menu6.getAttribute("readonly"))) { - formatter.format( - "(menu6) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s'%n", - "readonly", menu6.getAttribute("readonly")); - } - - // ----------------------------------------------------------- Menu7 - - HtmlSelect menu7 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu7"); - - if (!validateExistence(menu7.getId(), "select", menu7, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(menu7.getAttribute("readonly"))) { - formatter.format("(menu7) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + "%n."); - } - - // ----------------------------------------------------------- Menu8 - HtmlSelect menu8 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu8"); - - if (!validateExistence(menu8.getId(), "select", menu8, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu8.getOptionSize() != 2) { - formatter.format("Unexpected the number of options rendered " - + "for the component %s. %n" + "Expected: '%d' %n" - + "Found: '%d' %n", "menu8", 2, menu8.getOptionSize()); - } - - List slo = menu8.getSelectedOptions(); - if (slo == null) { - formatter.format("List of selected options for menu8 is null"); - handleTestStatus(messages); - return; - } - - if (slo.size() != 1) { - formatter.format("Unexpected number of selected options " - + "Expected: '%d' %n" + "Found '%d' %n ", +1, - selectedOptions.size()); - } - - if (!"no".equals(menu8.getOption(0).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' on %s " + "Expected: '%s' %n" - + "Found: '%s' %n", - 0, "menu8", "no", menu8.getOption(0).getValueAttribute()); - } - - if (!"yes".equals(menu8.getOption(1).getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' on %s " + "Expected: '%s' %n" - + "Found: '%s' %n", - 1, "menu8", "yes", menu8.getOption(1).getValueAttribute()); - } - - handleTestStatus(messages); - } - } // END oneMenuRenderEncodeTest - - /** - * @testName: oneMenuRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Create a Menu with two options. Click a button to select - * one option and submit the form. Verify that the correct - * option is selected. Click the button again to select the - * other option. Verify that the correct option is selected - * and that the original option is no longer selected. - * - * @since 1.2 - */ - public void oneMenuRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "form:menu1"); - - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - List selectedOptions = menu1.getSelectedOptions(); - if (selectedOptions == null) { - formatter.format("List of selected options for menu1 is null"); - handleTestStatus(messages); - return; - } - - if (selectedOptions.size() != 1) { - formatter.format("Expected the number of selected options " - + "rendered for the component menu1 to be '%d', but " - + "found '%d'", 0, selectedOptions.size()); - } - - // Test for the default selected item. - HtmlOption dselect = (HtmlOption) selectedOptions.get(0); - if (!"red".equals(dselect.getValueAttribute())) { - formatter.format("Expected the default selected option to " - + "have the value of '%d', before any botton click, " - + "but found '%d'", "true", dselect.getValueAttribute()); - } - - menu1.getOption(0).setSelected(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: " + "%s%n", e); - handleTestStatus(messages); - return; - } - - menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "input", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!menu1.getOption(0).isSelected() || menu1.getOption(1).isSelected()) { - formatter.format( - "After first click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute" + " to be '%s', " - + "found '%s'.", - 0, "true", menu1.getOption(0).isSelected(), 1, "false", - menu1.getOption(1).isSelected()); - } - - menu1.getOption(1).setSelected(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: " + "%s%n", e); - handleTestStatus(messages); - return; - } - - menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, "select", - "form:menu1"); - - if (!validateExistence(menu1.getId(), "input", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - if (menu1.getOption(0).isSelected() || !menu1.getOption(1).isSelected()) { - formatter.format( - "After second click, expected option '%d' " - + "selected attribute to be '%s', found '%s'; expected " - + "option '%d' selected attribute to be '%s', " + "found '%s'.", - 0, "false", menu1.getOption(0).isSelected(), 1, "true", - menu1.getOption(1).isSelected()); - } - - handleTestStatus(messages); - } - } // END oneMenuRenderDecodeTest - - /** - * @testName: oneMenuRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void oneMenuRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSelect menu1 = (HtmlSelect) getElementOfTypeIncludingId(page, - "select", "menu1"); - if (!validateExistence(menu1.getId(), "select", menu1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, menu1, - new String[] { "id", "value", "name", "type", "size" }, formatter); - - handleTestStatus(messages); - } - } // END oneMenuRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/onemenu/build.xml b/src/com/sun/ts/tests/jsf/spec/render/onemenu/build.xml deleted file mode 100644 index 01b7c9774f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onemenu/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onemenu/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/onemenu/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onemenu/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/onemenu/jsf_render_onemenu_web.xml b/src/com/sun/ts/tests/jsf/spec/render/onemenu/jsf_render_onemenu_web.xml deleted file mode 100644 index b31210de9e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/onemenu/jsf_render_onemenu_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_onemenu - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/oneradio/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/oneradio/URLClient.java deleted file mode 100644 index 49187959fb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/oneradio/URLClient.java +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.oneradio; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlLabel; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlTable; -import com.gargoylesoftware.htmlunit.html.HtmlTableRow; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_oneradio_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: oneradioRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of jakarta.faces.SelectOne.Radio case - * 1: - Only the id attribute is defined and two radio - * buttons. Verify that - the correct number of radio's are - * rendered - none of the radio's are checked - the value - * attributes for each option are correctly rendered. case 2: - * - Attributes for id, enabledClass, and disabledClass are - * defined. Verify that - each option is rendered as enabled - * or disabled as appropriate, and - each option is rendered - * with the correct style class. case 3: - Attributes for id, - * value, and class are defined. case 4,5: - ensure the - * disabled attribute is handled using html attribute - * minimization (only the attribute name is rendered when - * value is true, and nothing rendered when false) case 6,7: - - * ensure the readonly attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 8,9,10: - Ensure that the layout attribute is handled - * correctly. When not specified make sure the radio buttons - * are going horizontally. Then test for the two expected - * values. pageDirection(vertically) or - * lineDirection(horizontally). case 11 - Ensure that the - * border attribute is rendered correctly in the radio's - * enclosing " - * - * " element. - Ensure that the "escape" attribute on a given - * selectItem renders correctly either set to true(default) or - * false. case 12: - Validate the binding attribute through - * the following. Verify that - the correct number of radio's - * are rendered - none of the radio's are checked - the value - * attributes for each option are correctly rendered. - * - * @since 1.2 - */ - public void oneradioRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------- radio1 - - HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio1:0"); - - HtmlInput radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio1:1"); - - // Validate radio10 & radio11 - if (!validateExistence(radio10.getId(), "input", radio10, formatter) - && !validateExistence(radio11.getId(), "input", radio11, formatter)) { - handleTestStatus(messages); - return; - } - - // Make sure no radio buttons are checked - String inputedOptions[] = { radio10.getCheckedAttribute(), - radio11.getCheckedAttribute() }; - - for (int ii = 0; ii < inputedOptions.length; ii++) { - if ("checked".equals(inputedOptions[ii])) { - String failedbutton = "radio" + ii; - formatter - .format("radio button should not be checked " + failedbutton); - handleTestStatus(messages); - return; - } - } - - // Test value attribute for radio10 - if (!"true".equals(radio10.getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for " - + "radio10 to be '%s', found '%s'", - 0, "true", radio10.getValueAttribute()); - } - - // Test value attribute for radio11 - if (!"false".equals(radio11.getValueAttribute())) { - formatter.format( - "Expected the value of option '%d' for " - + "radio11 to be '%s', found '%s'", - 1, "true", radio11.getValueAttribute()); - } - - // ---------------------------------------------------------- radio2 - - HtmlInput radio20 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio2:0"); - - HtmlInput radio21 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio2:1"); - - if (!validateExistence(radio20.getId(), "input", radio20, formatter) - && !validateExistence(radio21.getId(), "input", radio21, formatter)) { - handleTestStatus(messages); - return; - } - - // Get the labels for radio button 2:0 & 2:1 for testing class att. - HtmlLabel label20 = (HtmlLabel) getLabelIncludingFor(page, "label", - radio20.getId()); - - HtmlLabel label21 = (HtmlLabel) getLabelIncludingFor(page, "label", - radio21.getId()); - - if (!radio20.isDisabled()) { - formatter.format("Expected radio20 to be disabled", 0, "disabled"); - } - - if (!"Color: red;".equals(label20.getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute " + "for radio20" - + " to be '%s', found '%s'", - "Color: red;", radio20.getAttribute("class")); - } - - if (radio21.isDisabled()) { - formatter.format("Expected option '%d' for radio2 to be '%s'", 1, - "enabled"); - } - - if (!"text".equals(label21.getAttribute("class"))) { - formatter.format( - "Expected the value of the class attribute " + "for radio21" - + " to be '%s', found '%s'", - "text", radio21.getAttribute("class")); - } - - // ---------------------------------------------------------- radio3 - - HtmlInput radio30 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio3:0"); - - // Get the parent table element, it holds the classstyle attibute. - HtmlTable parent30 = (HtmlTable) radio30.getEnclosingElement("table"); - - if (!validateExistence(radio30.getId(), "input", radio30, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(parent30.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class " - + "attribute to be 'text' for the text field containing" - + " ID 'radio30', but found '%s'%n", - radio30.getAttribute("class")); - } - - // ---------------------------------------------------------- radio4 - HtmlInput radio40 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio4:0"); - - if (!validateExistence(radio40.getId(), "input", radio40, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"disabled".equals(radio40.getDisabledAttribute())) { - formatter.format( - "(radio40) Expected the disabled attribute " - + "to be rendered as '%s', instead found '%s'%n", - "disabled", radio40.getDisabledAttribute()); - } - - // ---------------------------------------------------------- radio5 - - HtmlInput radio50 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio5:0"); - - if (!validateExistence(radio50.getId(), "input", radio50, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(radio50.getDisabledAttribute())) { - formatter.format("(radio50) Expected the disabled attribute " - + "to not be rendered when the disabled " - + "attribute was specified as false in the JSP%n."); - } - - // ---------------------------------------------------------- radio6 - - HtmlInput radio60 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio6:0"); - - if (!validateExistence(radio60.getId(), "input", radio60, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"readonly".equals(radio60.getAttribute("readonly"))) { - formatter.format( - "(radio60) Expected the readonly attribute " - + "to be rendered as '%s', instead found '%s'%n", - "readonly", radio60.getAttribute("readonly")); - } - - // ---------------------------------------------------------- radio7 - - HtmlInput radio70 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio7:0"); - - if (!validateExistence(radio70.getId(), "input", radio70, formatter)) { - handleTestStatus(messages); - return; - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(radio70.getAttribute("readonly"))) { - formatter.format("(radio70) Expected the readonly attribute " - + "to not be rendered when the readonly " - + "attribute was specified as false in the JSP" + "%n."); - } - - // ---------------------------------------------------------- radio8 - - HtmlInput radio80 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio8:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow80 = (HtmlTableRow) radio80 - .getEnclosingElement("tr"); - - if (!validateExistence(radio80.getId(), "input", radio80, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the default layout will be horizontal. - if (!(2 == tablerow80.getCells().size())) { - formatter.format("(radio80) Expected default layout(horizontal)" - + "of the radio buttons there should have been more then " - + "one cell per table row. %n"); - } - - // ---------------------------------------------------------- radio9 - - HtmlInput radio90 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form:radio9:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow90 = (HtmlTableRow) radio90 - .getEnclosingElement("tr"); - - if (!validateExistence(radio90.getId(), "input", radio90, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the default layout will be horizontal. - if (!(2 == tablerow90.getCells().size())) { - formatter.format("(radio90) Expected horizontal layout of the " - + "radio buttons there should have been more then one cell " - + " per table row. %n"); - } - - // --------------------------------------------------------- radio10 - - HtmlInput radio100 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:radio10:0"); - - // Get the Enclosing Table Row. - HtmlTableRow tablerow100 = (HtmlTableRow) radio100 - .getEnclosingElement("tr"); - - if (!validateExistence(radio100.getId(), "input", radio100, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the layout will be vertical. - if (!(1 == tablerow100.getCells().size())) { - int realcell100 = tablerow100.getCells().size(); - formatter.format("(radio100) Expected vertical layout of the " - + "radio buttons there should have been only one cell " - + " per table row. %n" + "REALLY HAVE: " + realcell100); - } - - // --------------------------------------------------------- radio11 - - HtmlInput radio110 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:radio11:0"); - HtmlInput radio111 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:radio11:1"); - - // Get the Enclosing Table Row. - HtmlTable table110 = (HtmlTable) radio110.getEnclosingElement("table"); - - // Get Labels for each Radio Button. - HtmlLabel label0 = (HtmlLabel) getLabelIncludingFor(page, "label", - radio110.getId()); - HtmlLabel label1 = (HtmlLabel) getLabelIncludingFor(page, "label", - radio111.getId()); - - // Get webresponse for Html source testing. - String wr = page.getWebResponse().getContentAsString(); - - // test for .jsp syntax - if ("encodetest".equals(page.getTitleText())) { - if (!("&foo".equals(label0.asText().trim()) && wr - .contains(""))) { - formatter.format( - "Unexpected value in JSP page for Radio " + "Label: %s %n" - + "Expected: &foo and %n" + "Recieved: %s and " + wr + "%n", - radio110.getId(), label0.asText().trim()); - } - - if (!("&bar".equals(label1.asText().trim()) && wr.contains( - ""))) { - formatter.format( - "Unexpected value in JSP page for Radio " + "Label: %s %n" - + "Expected: &bar and %n" + "Recieved: %s and " + wr + "%n", - radio111.getId(), label1.asText().trim()); - } - } - - // test for facelet syntax - else if ("encodetest_facelet".equals(page.getTitleText())) { - if (!("&foo".equals(label0.asText().trim()) && wr - .contains(""))) { - formatter.format( - "Unexpected value in Facelet page " + "for Radio Label: %s %n " - + "Expected: %s and %n" + "Recieved: %s " + wr + "%n", - radio110.getId(), "&foo", label0.asText().trim()); - } - - if (!("&bar".equals(label1.asText().trim()) && wr.contains( - ""))) { - formatter.format( - "Unexpected value in Facelet page " + "for Radio Label: %s %n" - + "Expected: %s and %n" + "Recieved: %s " + wr + "%n", - radio111.getId(), "&bar", label1.asText().trim()); - } - - } else { - formatter.format("Unable to find either page title! %n" - + "'encodetest_facelet' for Facelet style test! %n" - + "'encodetest' for JSP style test! %n" - + "Test FAILED. Due to Unknown page!"); - } - - if (!validateExistence(radio110.getId(), "input", radio110, formatter)) { - handleTestStatus(messages); - return; - } - - // Validate the border attribute - int bwidth = 11; - if (bwidth != Integer.parseInt(table110.getBorderAttribute())) { - formatter.format("(radio110) Expected default layout(horizontal)" - + "of the radio buttons there should have been more then " - + "one cell per table row. %n"); - } - - // --------------------------------------------------------- radio12 - HtmlInput radio120 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:radio12:0"); - - HtmlInput radio121 = (HtmlInput) getElementOfTypeIncludingId(page, - "input", "form:radio12:1"); - - // Validate radio120 & radio121 - if (!validateExistence(radio120.getId(), "input", radio120, formatter) - && !validateExistence(radio121.getId(), "input", radio121, - formatter)) { - handleTestStatus(messages); - return; - } - - // Make sure no radio buttons are checked - String io[] = { radio120.getCheckedAttribute(), - radio121.getCheckedAttribute() }; - - for (int ii = 0; ii < io.length; ii++) { - if ("checked".equals(io[ii])) { - String failedbutton = "radio" + ii; - formatter - .format("radio button should not be checked " + failedbutton); - handleTestStatus(messages); - return; - } - } - - // Test value attribute for radio120 - if (!"no".equals(radio120.getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' on %s %n" + "Expected: '%s' %n" - + "Found: '%s' %n", - 0, "radio12", "no", radio120.getValueAttribute()); - } - - // Test value attribute for radio11 - if (!"yes".equals(radio121.getValueAttribute())) { - formatter.format( - "Unexpected value for option '%d' on %s! %n" + "Expected: '%s' %n" - + "Found '%s' %n", - 1, "radio12", "yes", radio121.getValueAttribute()); - } - - handleTestStatus(messages); - } - } // END oneradioRenderEncodeTest - - /** - * @testName: oneradioRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Create two radio buttons test to make sure none are - * checked. Then click a button to input one option and submit - * the form. Verify that the correct option is checked. Click - * the button again to input the other option. Verify that the - * correct option is inputed and that the original option is - * no longer inputed. - * - * @since 1.2 - */ - public void oneradioRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:0"); - - HtmlInput radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:1"); - - if (!validateExistence(radio10.getId(), "input", radio10, formatter) - && !validateExistence(radio11.getId(), "input", radio11, formatter)) { - handleTestStatus(messages); - return; - } - - // No radio buttons are checked - String inputedOptions[] = { radio10.getCheckedAttribute(), - radio11.getCheckedAttribute() }; - - for (int ii = 0; ii < inputedOptions.length; ii++) { - String failedbutton = "radio" + ii; - if ("checked".equals(inputedOptions[ii])) { - formatter - .format("radio button should not be checked " + failedbutton); - handleTestStatus(messages); - return; - } - } - - // Check radio1:0 - radio10.setChecked(true); - HtmlInput button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:0"); - - radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:1"); - - if (!validateExistence(radio10.getId(), "input", radio10, formatter) - && !validateExistence(radio11.getId(), "input", radio11, formatter)) { - handleTestStatus(messages); - return; - } - - if (!radio10.isChecked() || radio11.isChecked()) { - formatter.format( - "After first click, expected option '%d' " - + "inputed attribute to be '%s', found '%s'; expected " - + "option '%d' inputed attribute to be '%s', found '%s'.", - 0, "true", radio10.isChecked(), 1, "false", radio11.isChecked()); - } - - // Check radio1:1 - radio11.setChecked(true); - button1 = (HtmlInput) getInputIncludingId(page, "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: %s%n", e); - handleTestStatus(messages); - return; - } - - radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:0"); - - radio11 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "form1:radio1:1"); - - if (!validateExistence(radio10.getId(), "input", radio10, formatter) - && !validateExistence(radio11.getId(), "input", radio11, formatter)) { - handleTestStatus(messages); - return; - } - - if (radio10.isChecked() || !radio11.isChecked()) { - formatter.format( - "After first click, expected option '%d' " - + "inputed attribute to be '%s', found '%s'; expected " - + "option '%d' inputed attribute to be '%s', found '%s'.", - 0, "false", radio10.isChecked(), 1, "true", radio11.isChecked()); - } - - handleTestStatus(messages); - } - } // END oneradioRenderDecodeTest - - /** - * @testName: oneradioRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void oneradioRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlInput radio10 = (HtmlInput) getElementOfTypeIncludingId(page, "input", - "radio1:0"); - if (!validateExistence(radio10.getId(), "input", radio10, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, radio10, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END oneradioRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/oneradio/build.xml b/src/com/sun/ts/tests/jsf/spec/render/oneradio/build.xml deleted file mode 100644 index 78cf6e9945..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/oneradio/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/oneradio/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/oneradio/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/oneradio/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/oneradio/jsf_render_oneradio_web.xml b/src/com/sun/ts/tests/jsf/spec/render/oneradio/jsf_render_oneradio_web.xml deleted file mode 100644 index cdcc9e03dc..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/oneradio/jsf_render_oneradio_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_oneradio - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterBean.java b/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterBean.java deleted file mode 100644 index 596c1fe9bf..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterBean.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputformat; - -import java.io.Serializable; - -@jakarta.inject.Named("info") @jakarta.enterprise.context.SessionScoped -public class FormatterBean implements Serializable { - - private String technology = "JSF"; - - private String component = "f:param"; - - /** Creates a new instance of MessageBean */ - public FormatterBean() { - } - - public String getTechnology() { - return technology; - } - - public void setTechnology(String technology) { - this.technology = technology; - } - - public String getComponent() { - return component; - } - - public void setComponent(String component) { - this.component = component; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterUIBean.java b/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterUIBean.java deleted file mode 100644 index 065060ae3c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/FormatterUIBean.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputformat; - -import java.io.Serializable; -import jakarta.faces.component.html.HtmlOutputFormat; - -@jakarta.inject.Named("score") @jakarta.enterprise.context.SessionScoped -public class FormatterUIBean implements Serializable { - - private static final long serialVersionUID = -956414308038088087L; - - private HtmlOutputFormat fscore; - - /** Creates a new instance of MessageBean */ - public FormatterUIBean() { - } - - public HtmlOutputFormat getFscore() { - return fscore; - } - - public void setFscore(HtmlOutputFormat fscore) { - fscore.setTitle("formatter7"); - fscore.setStyleClass("text"); - fscore.setValue("100-50"); - - this.fscore = fscore; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputformat/URLClient.java deleted file mode 100644 index e0d6b066ee..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/URLClient.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputformat; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputformat_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: outputFormatRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of the h:OutputFormat tag and its - * attributes. case 1: - The "id", "value", & "styleClass" - * attributes are defined. Test the styleClass. case 2: - The - * "id" & "value" our defined. The value is defined to utilize - * the child components (f:param) in the rendered output. - * Validate the message is rendered correctly. case 3: - - * Attributes for "id" & "value" are defined. Verify that the - * default value of the escape attribute is 'true' and that - * text containing angle brackets is rendered with escape - * characters. case 4: - Attributes for "id" & "value" & - * "escape" are defined. Verify that when the escape attribute - * is set to 'true', text containing angle brackets is - * rendered with escape characters. case 5: - Attributes for - * "id" & "value" & "escape" are defined. Verify that when the - * escape attribute is set to 'false', text containing angle - * brackets is rendered without escape characters. case 6: - - * The "id" & "value" our defined. The value is defined to - * utilize the child components (f:param) in the rendered - * output. Validate the message is rendered correctly, from a - * backing bean. case 7: - The "binding" attribute is set. Set - * to make sure that the correct "id", "value", & "class" are - * set by the backing bean. - * - * - * @since 1.2 - */ - public void outputFormatRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------- case 1 - HtmlSpan format_one = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "formatter1"); - - if (!validateExistence("formatter1", "span", format_one, formatter)) { - handleTestStatus(messages); - return; - } - - String clazzAttrOne = format_one.getAttribute("class"); - if (!"text".equals(clazzAttrOne)) { - formatter.format( - "Unexpected rendered value for the " - + "\"styleClass\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:outputFormat", "formatter1", "text", clazzAttrOne); - } - - // ---------------------------------------------------------- case 2 - String result_two = "Technology: JSF, Tag: h:outputFormat"; - - HtmlSpan format_two = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "formatter2"); - - if (!validateExistence("formatter2", "span", format_two, formatter)) { - handleTestStatus(messages); - return; - } - - if (!result_two.equals(format_two.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", result_two, format_two.asText()); - } - // ---------------------------------------------------------- case 3 - - HtmlSpan format_three = (HtmlSpan) getElementOfTypeIncludingId(page, - "span", "formatter3"); - - if (!validateExistence("formatter3", "span", format_three, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(format_three.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", "", format_three.asText()); - } - - // ---------------------------------------------------------- case 4 - HtmlSpan fomat_four = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "formatter4"); - - if (!validateExistence("formatter4", "span", fomat_four, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(fomat_four.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", "", fomat_four.asText()); - } - // ---------------------------------------------------------- case 5 - HtmlSpan format_five = (HtmlSpan) getElementOfTypeIncludingId(page, - "span", "formatter5"); - - if (!validateExistence("formatter5", "span", format_five, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(format_five.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", "", format_five.asText()); - } - - // ---------------------------------------------------------- case 6 - String result_six = "Technology: JSF, Tag: f:param"; - - HtmlSpan format_six = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "formatter6"); - - if (!validateExistence("formatter6", "span", format_six, formatter)) { - handleTestStatus(messages); - return; - } - - if (!result_six.equals(format_six.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", result_six, format_six.asText()); - } - - // ---------------------------------------------------------- case 7 - String result_seven = "100-50"; - - HtmlSpan format_seven = (HtmlSpan) getElementOfTypeIncludingTitle(page, - "span", "formatter7"); - - if (!validateExistence("formatter7", "span", format_six, formatter)) { - handleTestStatus(messages); - return; - } - - if (!result_seven.equals(format_seven.asText())) { - formatter.format("Unexpected rendered value! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", result_six, format_six.asText()); - } - - String clazzAttrSeven = format_seven.getAttribute("class"); - if (!"text".equals(clazzAttrSeven)) { - formatter.format( - "Unexpected rendered value for the " - + "\"styleClass\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:outputFormat", "formatter7", "text", clazzAttrSeven); - } - - // Handle any test messages. - handleTestStatus(messages); - } - } // END outputLinkRenderEncodeTest - - /** - * @testName: outputFormatRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void outputFormatRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSpan format_one = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "formatter1"); - - if (!validateExistence("formatter1", "span", format_one, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, format_one, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END outputLinkRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputformat/build.xml deleted file mode 100644 index 0bbd183e56..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputformat/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputformat/jsf_render_outputformat_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputformat/jsf_render_outputformat_web.xml deleted file mode 100644 index 5e084fe87e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputformat/jsf_render_outputformat_web.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - jsf_render_outputlabel - - - com.sun.faces.validateXml - true - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputlabel/URLClient.java deleted file mode 100644 index 83df9453cb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/URLClient.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputlabel; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlLabel; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputlabel_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: outputLabelRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of the h:OutputLabel tag and its - * attributes. case 1: - The "id", "for" & "styleClass" - * attributes are defined. case 2: - Attributes for "id" & - * "value" are defined. Verify that the default value of the - * escape attribute is 'true' and that text containing angle - * brackets is rendered with escape characters. case 3: - - * Attributes for "id" & "value" & "escape" are defined. - * Verify that when the escape attribute is set to 'true', - * text containing angle brackets is rendered with escape - * characters. case 4: - Attributes for "id" & "value" & - * "escape" are defined. Verify that when the escape attribute - * is set to 'false', text containing angle brackets is - * rendered without escape characters. case 5: - Using the - * binding attribute to tie to a backing bean. make sure that - * the value is rendered correctly. - * - * @since 1.2 - */ - public void outputLabelRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------- case 1 - HtmlLabel label_one = (HtmlLabel) getElementOfTypeIncludingId(page, - "label", "labelOne"); - - if (!validateExistence("labelOne", "label", label_one, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(label_one.getAttribute("class"))) { - formatter.format( - "Unexpected rendered value for the " - + "\"styleClass\" attribute on the '%s' tag with the " - + "id of '%s'. %nExpected: '%s' %nFound: '%s' %n", - "h:label", "labelOne", "text", label_one.getAttribute("class")); - } - - if (!"name".equals(label_one.getForAttribute())) { - formatter.format( - "Unexpected rendered value for the \"for\" " - + "attribute on the '%s' tag with the id of '%s'. %n" - + "Expected: '%s' %nFound: '%s' %n", - "h:label", "labelOne", "name", label_one.getForAttribute()); - } - - // ---------------------------------------------------------- case 2 - - HtmlLabel label_two = (HtmlLabel) getElementOfTypeIncludingId(page, - "label", "labelTwo"); - - if (!validateExistence("labelTwo", "label", label_two, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(label_two.asText())) { - formatter.format( - "Unexpected rendered value for the " + "\"value\" attribute. %n" - + "Expected: '%s' %n" + "Recieved: '%s' %n", - "", label_two.asText()); - } - - // ---------------------------------------------------------- case 3 - HtmlLabel label_three = (HtmlLabel) getElementOfTypeIncludingId(page, - "label", "labelThree"); - - if (!validateExistence("labelThree", "label", label_three, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(label_three.asText())) { - formatter.format( - "Unexpected rendered value for the " + "\"value\" attribute. %n" - + "Expected: '%s' %n" + "Recieved: '%s' %n", - "", label_three.asText()); - } - // ---------------------------------------------------------- case 4 - HtmlLabel label_four = (HtmlLabel) getElementOfTypeIncludingId(page, - "label", "labelFour"); - - if (!validateExistence("labelFour", "label", label_four, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"".equals(label_four.asText())) { - formatter.format( - "Unexpected rendered value for the " + "\"value\" attribute. %n" - + "Expected: '%s' %n" + "Recieved: '%s' %n", - "", label_four.asText()); - } - - // ---------------------------------------------------------- case 5 - HtmlLabel label_five = (HtmlLabel) getElementOfTypeIncludingId(page, - "label", "labelFive"); - - String expected = "This is an Output UIComponent"; - - if (!validateExistence("labelFive", "label", label_five, formatter)) { - handleTestStatus(messages); - return; - } - - if (!expected.equals(label_five.asText())) { - formatter - .format( - "Unexpected value for '%s' Attribute! %n" + "Expected: '%s' %n" - + "Recieved: '%s' %n", - "value", expected, label_five.asText()); - } - - if (!"text".equals(label_five.getAttribute("class"))) { - formatter.format( - "Unexpected value for '%s'! %n " + "Expected: '%s' %n" - + "Found: '%s' %n", - "labelFive", "text", label_one.getAttribute("class")); - } - - handleTestStatus(messages); - } - } // END outputLinkRenderEncodeTest - - /** - * @testName: outputLabelRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void outputLabelRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onclick", "js2"); - control.put("ondblclick", "js3"); - control.put("onfocus", "js4"); - control.put("onkeydown", "js5"); - control.put("onkeypress", "js6"); - control.put("onkeyup", "js7"); - control.put("onmousedown", "js8"); - control.put("onmousemove", "js9"); - control.put("onmouseout", "js10"); - control.put("onmouseover", "js11"); - control.put("onmouseup", "js12"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlLabel output1 = (HtmlLabel) getElementOfTypeIncludingId(page, "label", - "output1"); - - if (!validateExistence("output1", "label", output1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, output1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END outputLinkRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlabel/build.xml deleted file mode 100644 index 18d60f4aff..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlabel/faces-config.xml deleted file mode 100644 index 00da8111d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/jsf_render_outputlabel_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlabel/jsf_render_outputlabel_web.xml deleted file mode 100644 index c9da869b2f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlabel/jsf_render_outputlabel_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_outputlabel - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlink/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputlink/URLClient.java deleted file mode 100644 index 6079669ce8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlink/URLClient.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputlink; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputlink_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: outputLinkRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of the h:OutputLink tag and its - * attributes. case 1: - Only the id and styleClass attributes - * are defined. case 2: - Test to make sure that "target" - * attribute is rendered and set to the correct value. case 3: - * - Using the binding attribute make sure the following is - * rendered, id and styleClass. - * - * @since 1.2 - */ - public void outputLinkRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ---------------------------------------------------------- case 1 - HtmlAnchor output1 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "case_one"); - - if (!validateExistence("case_one", "a", output1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(output1.getAttribute("class"))) { - formatter.format( - "Unexpected value for '%s' attribute on " + "'%s' %n" - + "Expected: %s %n" + "Found: '%s' %n", - "styleclass", "case_one", "text", output1.getAttribute("class")); - } - - // ---------------------------------------------------------- case 2 - HtmlAnchor output2 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "case_two"); - - if (!validateExistence("case_two", "a", output2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"_top".equals(output2.getTargetAttribute())) { - formatter.format( - "Unexpected value for '%s' attribute on " + "'%s' %n" - + "Expected: %s %n" + "Found: '%s' %n", - "target", "case_two", "_top", output1.getTargetAttribute()); - } - - // ---------------------------------------------------------- case 3 - HtmlAnchor output3 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "case_three"); - - if (!validateExistence("case_three", "a", output3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(output3.getAttribute("class"))) { - formatter.format( - "Unexpected value for '%s' attribute on " + "'%s' %n" - + "Expected: %s %n" + "Found: '%s' %n", - "styleclass", "case_three", "text", output3.getAttribute("class")); - } - - handleTestStatus(messages); - } - } // END outputLinkRenderEncodeTest - - /** - * @testName: outputLinkRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void outputLinkRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("charset", "ISO_8859-1:1987"); - control.put("coords", "nothing"); - control.put("dir", "LTR"); - control.put("hreflang", "en"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onclick", "js2"); - control.put("ondblclick", "js3"); - control.put("onfocus", "js4"); - control.put("onkeydown", "js5"); - control.put("onkeypress", "js6"); - control.put("onkeyup", "js7"); - control.put("onmousedown", "js8"); - control.put("onmousemove", "js9"); - control.put("onmouseout", "js10"); - control.put("onmouseover", "js11"); - control.put("onmouseup", "js12"); - control.put("rel", "somewhere"); - control.put("rev", "beenthere"); - control.put("shape", "poly"); - control.put("style", "Color: red;"); - control.put("tabindex", "1"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlAnchor output1 = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "output1"); - - if (!validateExistence("output1", "a", output1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, output1, - new String[] { "id", "href", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END outputLinkRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlink/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlink/build.xml deleted file mode 100644 index 03f007936d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlink/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlink/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlink/faces-config.xml deleted file mode 100644 index 00da8111d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlink/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputlink/jsf_render_outputlink_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputlink/jsf_render_outputlink_web.xml deleted file mode 100644 index d7742cb322..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputlink/jsf_render_outputlink_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_outputlink - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputscript/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputscript/URLClient.java deleted file mode 100644 index 46d32c1755..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputscript/URLClient.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputscript; - -import java.io.PrintWriter; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlScript; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputscript_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: outputScriptEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following test cases. - * - * case 1: Return the resource and render it when just the - * 'name' attribute is specified. - * - * case 2: Return the resource and render it when 'name' & - * 'library' attributes are specified. - * - * @since 2.0 - */ - public void outputScriptEncodeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml"); - - // -------------------------------------------------------------- case 1 - - String[] expected = { "hello.js", "goodbye.js" }; - - List scripts = page.getDocumentElement() - .getHtmlElementsByTagName("script"); - - boolean hjs = false, gjs = false; - for (HtmlScript hs : scripts) { - if (!hjs) { - hjs = hs.getSrcAttribute().contains(expected[0]); - } - - if (!gjs) { - gjs = hs.getSrcAttribute().contains(expected[1]); - } - } - - if (!hjs) { - formatter.format("Did not find script hello.js resource!"); - } - - if (!gjs) { - formatter.format("Did not find script goodbye.js resource!"); - } - - handleTestStatus(messages); - } // END outputScriptEncodeTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputscript/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputscript/build.xml deleted file mode 100644 index 18600b2a35..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputscript/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputscript/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputscript/faces-config.xml deleted file mode 100644 index d260f5b045..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputscript/faces-config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputscript/jsf_render_outputscript_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputscript/jsf_render_outputscript_web.xml deleted file mode 100644 index efa5e8f49a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputscript/jsf_render_outputscript_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_render_ouputscript - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputstyle/URLClient.java deleted file mode 100644 index 8f0be49a69..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/URLClient.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputstyle; - -import java.io.PrintWriter; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlLink; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputstyle_web"; - - private static final String REL = "stylesheet"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - @Override - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: outputStyleEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the following test cases. - * - * case 1: Make sure that there is a given number of 'link' - * elements (2) tags rendered in the head of the response. - * - * case 2: Make sure that the correct attributes are rendered - * when we call for a style sheet with no Library. - * - * case 3: Make sure that the correct attributes are rendered - * when we call for a style sheet with library specified. - * - * case 4: Make sure that the correct value is set when we - * have a media attribute. - * - * @since 2.0 - */ - public void outputStyleEncodeTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // ------------------------------------------------------------ case 1 - HtmlPage pageOne = getPage( - CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml"); - - List links = pageOne.getDocumentElement() - .getHtmlElementsByTagName("link"); - - if (2 != links.size()) { - formatter.format("Wrong number of '%s' elements rendered. %n" - + "Expected: %s %n" + "Received: " + links.size(), "link", "2"); - } - - // ------------------------------------------------------------ case 2 - - HtmlPage pageTwo = getPage( - CONTEXT_ROOT + "/faces/encodetest_facelet_1.xhtml"); - List linkTwo = pageTwo.getDocumentElement() - .getHtmlElementsByTagName("link"); - - String expected1 = "/jsf_render_outputstyle_web/faces/" - + "jakarta.faces.resource/night.css"; - - this.testLink(linkTwo.get(0), expected1, formatter); - - // ------------------------------------------------------------ case 3 - - HtmlPage pageThree = getPage( - CONTEXT_ROOT + "/faces/encodetest_facelet_2.xhtml"); - - List linkThree = pageThree.getDocumentElement() - .getHtmlElementsByTagName("link"); - - String expected2 = "/jsf_render_outputstyle_web/faces/" - + "jakarta.faces.resource/morning.css"; - - String expectedLib = "ln=cssLibrary"; - - this.testLink(linkThree.get(0), expected2, formatter); - this.testLink(linkThree.get(0), expectedLib, formatter); - - // ------------------------------------------------------------ case 4 - HtmlPage pageOneA = getPage( - CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml"); - - List link = pageOne.getDocumentElement() - .getHtmlElementsByTagName("link"); - - String mediaOne = link.get(0).getAttribute("media"); - this.testAtts("screen", mediaOne, "media", formatter); - - String mediaTwo = link.get(1).getAttribute("media"); - this.testAtts("all", mediaTwo, "media", formatter); - - handleTestStatus(messages); - - } // END outputStyleEncodeTest - - // -------------------------------------------------------- private methods - // Test HtmlLink, attributes. - private void testLink(HtmlLink link, String hrefExpected, - Formatter formatter) { - // test for href attribute - String hrefresult = link.getHrefAttribute(); - - this.testAtts(hrefExpected, hrefresult, "href", formatter); - - // test for rel attribute this is a constant. - String relResult = link.getAttribute("rel"); - this.testAtts(REL, relResult, "rel", formatter); - } - - // Test two String Objects for equality. - private void testAtts(String expected, String result, String attName, - Formatter formatter) { - - if (!result.contains(expected)) { - formatter.format("Unexpected result for '%s' attribute! %n" - + "Expected: %s %n" + "Received: %s %n", attName, expected, result); - } - } -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputstyle/build.xml deleted file mode 100644 index 4783d24730..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/build.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputstyle/faces-config.xml deleted file mode 100644 index d260f5b045..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/faces-config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/jsf_render_outputstyle_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputstyle/jsf_render_outputstyle_web.xml deleted file mode 100644 index 4138275543..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputstyle/jsf_render_outputstyle_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_render_ouputstyle - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputtext/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/outputtext/URLClient.java deleted file mode 100644 index abcacf38c2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputtext/URLClient.java +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.outputtext; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_outputtext_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: outputTextRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of text fields (OutputText): case 1: - * - Only the id and styleClass attributes are defined. case - * 2: - Attributes for id, value, class are defined. Verify - * that the default value of the escape attribute is 'true' - * and that text containing angle brackets is rendered with - * escape characters. case 3: - Attributes for id, value, - * class, and escape are defined. Verify that when the escape - * attribute is set to 'true', text containing angle brackets - * is rendered with escape characters. case 4: - Attributes - * for id, value, class, and escape are defined. Verify that - * when the escape attribute is set to 'false', text - * containing angle brackets is rendered without escape - * characters. case 5: - Using the binding attribute to tie to - * a backing bean make sure the following holds true. The - * styleClass attribute rendered correctly. - * - * @since 1.2 - */ - public void outputTextRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ----------------------------------------------------------- text1 - - HtmlSpan output1 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "text1"); - - if (!validateExistence("text1", "span", output1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(output1.getAttribute("class"))) { - formatter.format( - "Unexpected value for '%s' attribute on " + "%s! %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "styleClass", "text1", "text", output1.getAttribute("class")); - } - - // ----------------------------------------------------------- text2 - - HtmlSpan text2 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "text2"); - - if (!validateExistence("text2", "input", text2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"

".equals(text2.asText())) { - formatter.format( - "Unexpected value for'%s' attribute on " + "%s! %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "value", "text2", "

", text2.asText()); - } - - // ----------------------------------------------------------- text3 - - HtmlSpan text3 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "text3"); - - if (!validateExistence("text3", "input", text3, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"

".equals(text3.asText())) { - formatter.format( - "Unexpected value for '%s' attribute! on " + "%s %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "value", "text3", "

", text3.asText()); - } - - // ----------------------------------------------------------- text4 - - HtmlSpan text4 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "text4"); - - if (!validateExistence("text4", "input", text4, formatter)) { - handleTestStatus(messages); - return; - } - - if ("

".equals(text4.asText())) { - formatter.format( - "Unexpected value for '%s' attribute! on " + "%s %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "value", "text4", "", text4.asText()); - } - - // ----------------------------------------------------------- text5 - HtmlSpan output5 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "text5"); - - if (!validateExistence("text5", "span", output1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"text".equals(output5.getAttribute("class"))) { - formatter.format( - "Unexpected value for '%s' attribute on " + "%s! %n" - + "Expected: '%s' %n" + "Found: '%s' %n", - "styleClass", "text5", "text", output5.getAttribute("class")); - } - - handleTestStatus(messages); - } - } // END outputTextRenderEncodeTest - - /** - * @testName: outputTextRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void outputTextRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("style", "Color: red;"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlSpan output1 = (HtmlSpan) getElementOfTypeIncludingId(page, "span", - "output1"); - if (!validateExistence("output1", "span", output1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, output1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END outputTextRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputtext/build.xml b/src/com/sun/ts/tests/jsf/spec/render/outputtext/build.xml deleted file mode 100644 index 62d201243d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputtext/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputtext/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/outputtext/faces-config.xml deleted file mode 100644 index 62722a191a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputtext/faces-config.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/outputtext/jsf_render_outputtext_web.xml b/src/com/sun/ts/tests/jsf/spec/render/outputtext/jsf_render_outputtext_web.xml deleted file mode 100644 index bbbf836449..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/outputtext/jsf_render_outputtext_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_outputtext - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/secret/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/secret/URLClient.java deleted file mode 100644 index 6cc8e447fc..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/secret/URLClient.java +++ /dev/null @@ -1,387 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.secret; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlPasswordInput; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_secret_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: secretRenderEncodeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the rendering of password fields (InputSecret): - * case 1: - no value defined for the value attribute as the - * redisplay attribute isn't defined in the JSP case 2: - the - * value attribtue has a value as the redisplay attribute is - * defined in the JSP with a value of true case 3: - no value - * defined for the value attribute as the redisplay attribute - * is defined as false - the value of the class attribute is - * defined as 'class' case 4: - no value defined for the value - * attribute as the redisplay attribute isn't defined in the - * JSP - the autocomplete attribute is rendered with a value - * of 'off' case 5: - no value defined for the value attribute - * as the redisplay attribute isn't defined in the JSP - the - * autocomplete attribute isn't rendered as the attribute was - * defined in the JSP with a value of 'on'. case 6,7: - ensure - * the disabled attribute is handled using html attribute - * minimization (only the attribute name is rendered when - * value is true, and nothing rendered when false) case 8,9: - - * ensure the readonly attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) - * - * @since 1.2 - */ - public void secretRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // --------------------------------------------------------- secret1 - HtmlPasswordInput pass1 = (HtmlPasswordInput) getInputIncludingId(page, - "secret1"); - - if (!validateExistence("secret1", "input", pass1, formatter)) { - handleTestStatus(messages); - return; - } - - if (pass1.getValueAttribute().length() != 0) { - formatter.format("Didn't expect any rendered value for " - + "value attribute of the password field with ID " - + "containing 'secret1', but found a rendered value " + "of '%s'%n", - pass1.getValueAttribute()); - } - - // --------------------------------------------------------- secret2 - - HtmlPasswordInput pass2 = (HtmlPasswordInput) getInputIncludingId(page, - "secret2"); - - if (!validateExistence("secret2", "input", pass2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"secret value".equals(pass2.getValueAttribute())) { - formatter.format("Expected the rendered value for the " - + "value attribute of the password field with ID " - + "containing 'secret2' to be 'secret value', " - + "but found '%s'%n", pass2.getValueAttribute()); - } - - // --------------------------------------------------------- secret3 - - HtmlPasswordInput pass3 = (HtmlPasswordInput) getInputIncludingId(page, - "secret3"); - - if (!validateExistence("secret3", "input", pass3, formatter)) { - handleTestStatus(messages); - return; - } - - if (pass3.getValueAttribute().length() != 0) { - formatter.format("Didn't expect any rendered value for " - + "value attribute of the password field with ID " - + "containing 'secret3', but found a rendered " + "value of '%s'%n", - pass3.getValueAttribute()); - } - - if (!"secret".equals(pass3.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the " - + "class attribute to be 'secret' for the password " - + "field containing ID 'secret3', but found '%s'%n", - pass3.getAttribute("class")); - } - - // --------------------------------------------------------- secret4 - - HtmlPasswordInput pass4 = (HtmlPasswordInput) getInputIncludingId(page, - "secret4"); - - if (!validateExistence("secret4", "input", pass4, formatter)) { - handleTestStatus(messages); - return; - } - - if (pass4.getValueAttribute().length() != 0) { - formatter.format("Didn't expect any rendered value for " - + "value attribute of the password field with ID " - + "containing 'secret4', but found a rendered value " + "of '%s'%n", - pass4.getValueAttribute()); - } - - if (!"off".equals(pass4.getAttribute("autocomplete"))) { - formatter.format("Expected the rendered value for the " - + "autocomplete attribute to be 'off', for the " - + "password field with ID containing 'secret4', " - + "but found '%s'%n", pass4.getAttribute("autocomplete")); - } - - // --------------------------------------------------------- secret5 - - HtmlPasswordInput pass5 = (HtmlPasswordInput) getInputIncludingId(page, - "secret5"); - - if (!validateExistence("secret5", "input", pass5, formatter)) { - handleTestStatus(messages); - return; - } - - if (pass5.getValueAttribute().length() != 0) { - formatter.format("Didn't expect any rendered value for " - + "value attribute of the password field with ID " - + "containing 'secret5', but found a rendered value of" + " '%s'%n", - pass5.getValueAttribute()); - } - - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(pass5.getAttribute("autocomplete"))) { - formatter.format("Expected the autocomplete attribute to " - + "not be rendered when the value was defined" + " as 'on'.%n"); - } - - // --------------------------------------------------------- secret6 - - HtmlPasswordInput pass6 = (HtmlPasswordInput) getInputIncludingId(page, - "secret6"); - - if (!validateExistence("secret6", "input", pass6, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"disabled".equals(pass6.getAttribute("disabled"))) { - formatter.format("(secret6) Expected the disabled " - + "attribute to be rendered as '%s', instead found " + "'%s'%n", - "disabled", pass6.getAttribute("disabled")); - } - } - - // --------------------------------------------------------- secret7 - - HtmlPasswordInput pass7 = (HtmlPasswordInput) getInputIncludingId(page, - "secret7"); - - if (!validateExistence("secret7", "input", pass7, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(pass7.getDisabledAttribute())) { - formatter.format("(secret7) Expected the disabled " - + "attribute to not be rendered when the disabled " - + "attribute was specified as false." + "%n."); - } - } - - // --------------------------------------------------------- secret8 - - HtmlPasswordInput pass8 = (HtmlPasswordInput) getInputIncludingId(page, - "secret8"); - - if (!validateExistence("secret8", "input", pass8, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"readonly".equals(pass8.getAttribute("readonly"))) { - formatter.format("(secret8) Expected the readonly " - + "attribute to be rendered as '%s', instead found " + "'%s'%n", - "readonly", pass8.getAttribute("readonly")); - } - } - - // --------------------------------------------------------- secret9 - - HtmlPasswordInput pass9 = (HtmlPasswordInput) getInputIncludingId(page, - "secret9"); - - if (!validateExistence("secret9", "input", pass9, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(pass9.getDisabledAttribute())) { - formatter.format("(secret9) Expected the disabled " - + "attribute to not be rendered when the disabled " - + "attribute was specified as false." + "%n."); - } - } - - handleTestStatus(messages); - } - } // END secretRenderEncodeTest - - /** - * @testName: secretRenderDecodeTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the value of the password field is updated by - * submitting the form. The value after the post back should - * be 'newSubmittedValue'. This is validated by getting the - * value of the component after the post-back (can't validate - * that (setSubmittedValue() is called since after the - * validations are processed setValue() will have been called - * and the submittedValue reset to null). - * - * @since 1.2 - */ - public void secretRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlPasswordInput secret1 = (HtmlPasswordInput) getInputIncludingId(page, - "secret1"); - - if (!validateExistence("secret1", "input", secret1, formatter)) { - handleTestStatus(messages); - return; - } - - secret1.setValueAttribute("newSubmittedValue"); - - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: " + "%s%n", e); - handleTestStatus(messages); - return; - } - - HtmlInput shadow = (HtmlInput) getInputIncludingId(page, "result"); - String result = shadow.getValueAttribute(); - - if (!"newSubmittedValue".equals(result)) { - formatter.format("Unexpected submitted value for text1.%n " - + "Expected: '%s'%n" + "Found: '%s'%n", "test", result); - } - - handleTestStatus(messages); - } - - } // END hiddenRenderDecodeTest - - /** - * @testName: secretRenderPassthroughTest - * @assertion_ids: PENDING - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void secretRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("alt", "alt description"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("maxlength", "15"); - control.put("onblur", "js1"); - control.put("onchange", "js2"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("size", "15"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlPasswordInput pass1 = (HtmlPasswordInput) getInputIncludingId(page, - "pass1"); - if (!validateExistence("pass1", "input", pass1, formatter)) { - handleTestStatus(messages); - return; - - } - - validateAttributeSet(control, pass1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END secretRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/secret/build.xml b/src/com/sun/ts/tests/jsf/spec/render/secret/build.xml deleted file mode 100644 index b0e4413019..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/secret/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/secret/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/secret/faces-config.xml deleted file mode 100644 index 00da8111d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/secret/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/secret/jsf_render_secret_web.xml b/src/com/sun/ts/tests/jsf/spec/render/secret/jsf_render_secret_web.xml deleted file mode 100644 index c84cd8710f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/secret/jsf_render_secret_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_render_secret - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/textarea/URLClient.java b/src/com/sun/ts/tests/jsf/spec/render/textarea/URLClient.java deleted file mode 100644 index 28e00ece3c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/textarea/URLClient.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.render.textarea; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlElement; -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; -import com.gargoylesoftware.htmlunit.html.HtmlTextArea; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_render_textarea_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: textareaRenderEncodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate the rendering of textarea fields case 1: - Only - * the id and value attributes are defined. case 2: - - * Attributes for id, value, and class are defined. case 4,5: - * - ensure the disabled attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) case - * 6,7: - ensure the readonly attribute is handled using html - * attribute minimization (only the attribute name is rendered - * when value is true, and nothing rendered when false) - * - * @since 1.2 - */ - public void textareaRenderEncodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/encodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // ------------------------------------------------------- textarea1 - - HtmlTextArea textarea1 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea1"); - - if (!validateExistence("textarea1", "textarea", textarea1, formatter)) { - handleTestStatus(messages); - return; - } - - if (!"textarea value".equals(textarea1.getText())) { - formatter.format("Expected the rendered value for the value " - + "attribute of the textarea field with ID containing " - + "'texttextarea1'" + " to be 'textarea value', but found '%s'%n", - textarea1.getText()); - } - - // ------------------------------------------------------- textarea2 - - HtmlTextArea textarea2 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea2"); - - if (!validateExistence("textarea2", "textarea", textarea2, formatter)) { - handleTestStatus(messages); - return; - } - - if (!(textarea2.getText().length() > 0)) { - formatter.format("Expected a rendered value for value attribute" - + " of the textarea field with ID containing " - + "'textarea2', but found none%n"); - } - - if (!"textarea".equals(textarea2.getAttribute("class"))) { - formatter.format( - "Expected the rendered value of the class " - + "attribute to be 'textarea' for the textarea field " - + "containing ID 'textarea2' %n" + "but found '%s'%n", - textarea2.getAttribute("class")); - } - - // ------------------------------------------------------- textarea3 - - HtmlTextArea textarea3 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea3"); - - if (!validateExistence("textarea3", "textarea", textarea3, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"disabled".equals(textarea3.getDisabledAttribute())) { - formatter.format("(textarea3) Expected the disabled " - + "attribute to be rendered as '%s'%n" + "instead found '%s'%n", - "disabled", textarea3.getDisabledAttribute()); - } - } - - // ------------------------------------------------------- textarea4 - - HtmlTextArea textarea4 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea4"); - - if (!validateExistence("textarea4", "textarea", textarea4, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(textarea4.getDisabledAttribute())) { - formatter.format("(textarea4) Expected the disabled " - + "attribute to not be rendered when the disabled " - + "attribute was specified as false!" + "%n."); - } - } - - // ------------------------------------------------------- textarea5 - - HtmlTextArea textarea5 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea5"); - - if (!validateExistence("textarea5", "textarea", textarea5, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!"readonly".equals(textarea5.getReadOnlyAttribute())) { - formatter.format("(textarea5) Expected the readonly " - + "attribute to be rendered as '%s'%n " + "instead found '%s'%n", - "readonly", textarea5.getReadOnlyAttribute()); - } - } - - // ------------------------------------------------------- textarea6 - - HtmlTextArea textarea6 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea6"); - - if (!validateExistence("textarea6", "textarea", textarea6, formatter)) { - handleTestStatus(messages); - return; - } else { - if (!HtmlElement.ATTRIBUTE_NOT_DEFINED - .equals(textarea6.getReadOnlyAttribute())) { - formatter.format("(textarea6) Expected the readonly " - + "attribute to not be rendered when the readonly " - + "attribute was specified as false!" + "%n."); - } - } - - handleTestStatus(messages); - } - } // END textareaRenderEncodeTest - - /** - * @testName: textareaRenderDecodeTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the value of the textarea field is updated by - * submitting the form. The value after the post back should - * be 'newSubmittedValue'. This is validated by getting the - * value of the component after the post-back (can't validate - * that (setSubmittedValue() is called since after the - * validations are processed setValue() will have been called - * and the submittedValue reset to null). - * - * @since 1.2 - */ - public void textareaRenderDecodeTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/decodetest_facelet.xhtml")); - - for (HtmlPage page : pages) { - HtmlTextArea textarea1 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea1"); - if (!validateExistence("textarea1", "textarea", textarea1, formatter)) { - handleTestStatus(messages); - return; - } - - textarea1.setText("newSubmittedValue"); - - HtmlSubmitInput button1 = (HtmlSubmitInput) getInputIncludingId(page, - "button1"); - - try { - page = (HtmlPage) button1.click(); - } catch (IOException e) { - formatter.format("Unexpected exception clicking button1: " + "%s%n", e); - handleTestStatus(messages); - return; - } - - HtmlInput shadow = (HtmlInput) getInputIncludingId(page, "result"); - String result = shadow.getValueAttribute(); - - if (!"newSubmittedValue".equals(result)) { - formatter.format("Unexpected submitted value for text " + "textarea1.%n" - + "Expected : '%s'%n" + "Found: '%s'%n", "test", result); - } - - handleTestStatus(messages); - } - } // END hiddenRenderDecodeTest - - /** - * @testName: textareaRenderPassthroughTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Ensure the attributes that are considered passthrough by - * the specification are rendered as is. - * - * @since 1.2 - */ - public void textareaRenderPassthroughTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - TreeMap control = new TreeMap(); - control.put("accesskey", "P"); - control.put("dir", "LTR"); - control.put("lang", "en"); - control.put("onblur", "js1"); - control.put("onclick", "js3"); - control.put("ondblclick", "js4"); - control.put("onfocus", "js5"); - control.put("onkeydown", "js6"); - control.put("onkeypress", "js7"); - control.put("onkeyup", "js8"); - control.put("onmousedown", "js9"); - control.put("onmousemove", "js10"); - control.put("onmouseout", "js11"); - control.put("onmouseover", "js12"); - control.put("onmouseup", "js13"); - control.put("onselect", "js14"); - control.put("style", "Color: red;"); - control.put("tabindex", "0"); - control.put("title", "title"); - - List pages = new ArrayList(); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest.xhtml")); - pages.add(getPage(CONTEXT_ROOT + "/faces/passthroughtest_facelet.xhtml")); - - for (HtmlPage page : pages) { - // Facelet Specific PassThrough options - if (page.getTitleText().contains("facelet")) { - control.put("foo", "bar"); - control.put("singleatt", "singleAtt"); - control.put("manyattone", "manyOne"); - control.put("manyatttwo", "manyTwo"); - control.put("manyattthree", "manyThree"); - } - - HtmlTextArea textarea1 = (HtmlTextArea) getElementOfTypeIncludingId(page, - "textarea", "textarea1"); - if (!validateExistence("textarea1", "textarea", textarea1, formatter)) { - handleTestStatus(messages); - return; - } - - validateAttributeSet(control, textarea1, - new String[] { "id", "value", "name", "type" }, formatter); - - handleTestStatus(messages); - } - } // END textareaRenderPassthroughTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/render/textarea/build.xml b/src/com/sun/ts/tests/jsf/spec/render/textarea/build.xml deleted file mode 100644 index 52cae44662..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/textarea/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/textarea/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/render/textarea/faces-config.xml deleted file mode 100644 index 00da8111d6..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/textarea/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/render/textarea/jsf_render_textarea_web.xml b/src/com/sun/ts/tests/jsf/spec/render/textarea/jsf_render_textarea_web.xml deleted file mode 100644 index 50bdcbb3a1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/render/textarea/jsf_render_textarea_web.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - jsf_render_textarea - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/build.xml b/src/com/sun/ts/tests/jsf/spec/resource/build.xml deleted file mode 100644 index d52c26c797..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/resource/common/faces-config.xml deleted file mode 100644 index b0797c49be..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun-class.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun-class.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun-class.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun.sm.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun.sm.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/1_0/gun.sm.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun-class.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun-class.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun-class.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun.sm.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun.sm.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/2_0/gun.sm.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer-1.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer-1.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer-1.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-boxer.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class-1.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class-1.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class-1.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/duke-class.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/images/negative_test_image b/src/com/sun/ts/tests/jsf/spec/resource/common/images/negative_test_image deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/images/negative_test_image and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/javascript/hello.js b/src/com/sun/ts/tests/jsf/spec/resource/common/javascript/hello.js deleted file mode 100644 index e617ceb43a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/javascript/hello.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -document.write("Hello"); diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/de/duke-de.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/de/duke-de.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/de/duke-de.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/en/duke-en.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/en/duke-en.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/en/duke-en.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/faces-config.xml deleted file mode 100644 index 929f7edca0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/faces-config.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.spec.resource.common.messages - - en - en - de - fr - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/10_01.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/10_01.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/10_01.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/duke-fr.gif b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/duke-fr.gif deleted file mode 100644 index aeb1567ecf..0000000000 Binary files a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/fr/duke-fr.gif and /dev/null differ diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages.properties b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages.properties deleted file mode 100644 index 6ae61c6625..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages.properties +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - - -jakarta.faces.resource.localePrefix=none diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_de.properties b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_de.properties deleted file mode 100644 index 04a3b4c619..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_de.properties +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - - -jakarta.faces.resource.localePrefix=de diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_en.properties b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_en.properties deleted file mode 100644 index 1f7d311189..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_en.properties +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - - -jakarta.faces.resource.localePrefix=en diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_fr.properties b/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_fr.properties deleted file mode 100644 index 4980c16f94..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/locales/messages_fr.properties +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (c) 2018, 2020 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - - -jakarta.faces.resource.localePrefix=fr diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/resource.common.xml b/src/com/sun/ts/tests/jsf/spec/resource/common/resource.common.xml deleted file mode 100644 index 8535a17040..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/resource.common.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_1_1 b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_1_1 deleted file mode 100644 index 4b0f56bc25..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_1_1 +++ /dev/null @@ -1,8 +0,0 @@ -root { - display: block; -} - -night { - background: black; - color: #80c0c0 -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_2_3.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_2_3.css deleted file mode 100644 index 999b07575d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/1_2_3.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -day { - background: yellow; - color: #FFFFFF -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/3_2_1.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/3_2_1.css deleted file mode 100644 index e901004f38..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/3_2_1.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -night { - background: black; - color: #80c0c0 -} - -morning { - background: yellow; - color: #80c0c0 -} - -afternoon { - background: white; - color: #80c0c0 -} - -dusk { - background: grey; - color: #80c0c0 -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/42_.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/42_.css deleted file mode 100644 index 7a4a94f0c4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/42_.css +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -night { - background: black; - color: #80c0c0 -} - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/99-100-101.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/99-100-101.css deleted file mode 100644 index 9ba8431268..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/99-100-101.css +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/_99.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/_99.css deleted file mode 100644 index 9d2186a87a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/_99.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - -night { - background: black; - color: #80c0c0 -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/never-found.css b/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/never-found.css deleted file mode 100644 index 9ba8431268..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/stylesheets/never-found.css +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -root { - display: block; -} - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/common/util/ResourceChecker.java b/src/com/sun/ts/tests/jsf/spec/resource/common/util/ResourceChecker.java deleted file mode 100644 index 068151a5dd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/common/util/ResourceChecker.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.common.util; - -import java.io.InputStream; -import java.io.PrintWriter; -import java.io.StringWriter; - -import jakarta.faces.application.Resource; -import jakarta.faces.application.ResourceHandler; - -public class ResourceChecker { - private static final String NL = System.getProperty("line.separator", "\n"); - - /** - * Validate that a JSF Resource can be generated and found in the webapp. - * - * @param handler - * - The @ResourceHandle used to create the resource. - * @param resource - * - The Name(@String) of which the resource is packaged as. - * @param expected - * - The expected size of the resource.(in bytes) - * @param lib - * - The name of the library(@String) that the resource is packaged - * under. excepts @null. - * @param negativeTest - * - passing true in indicates this as a negative test case. - * @param out - * - @PrintWriter to log test messages to. - */ - public static void checkIndentifier(ResourceHandler handler, String resource, - int expected, String lib, Boolean negativeTest, PrintWriter out) { - - if (handler != null) { - try { - Resource res = handler.createResource(resource, lib); - - if (res != null) { - InputStream is = res.getInputStream(); - - int result = 0; - while (is.read() != -1) { - result++; - } - - if (expected == result) { - out.println("NegativeTest = " + negativeTest + NL + "Test PASSED"); - - } else if (negativeTest) { - out.println("NegativeTest = " + negativeTest + NL + "Test FAILED." - + NL + "NegativeTest = " + negativeTest + NL - + "Should not have been able to get a handle " + NL + "to : " - + resource + "' in Library '" + lib + "'!"); - - } else { - out.println("Test FAILED." + NL + "Resource: " + resource + NL - + "Expected: " + expected + NL + "Received: " + result); - } - } else { - if (negativeTest) { - out.println("NegativeTest = True" + NL + "Test PASSED"); - - } else { - out.println("Test FAILED." + NL + "Unable to Obtain Resource '" - + resource + "' in Library '" + lib + "'!"); - } - } - - } catch (Exception e) { - out.println("Test FAILED. See stacktrace below..."); - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw); - - e.printStackTrace(pw); - out.println(sw.toString()); - } - - } else { - out.println( - "Test FAILED. Unable to obtain ResourceHandler " + "instance."); - } - } - - /** - * Validate that a JSF Resource can be generated and found in the webapp. - * Resource is not packaged under a Library, and this is for positive test - * case only. - * - * @param handler - * - The @ResourceHandle used to create the resource. - * @param resource - * - The Name(@String) of which the resource is packaged as. - * @param expected - * - expected size of the resource.(in bytes) - * @param out - * - @PrintWriter to log test messages to. - */ - public static void checkIndentifier(ResourceHandler handler, String resource, - int expected, PrintWriter out) { - - checkIndentifier(handler, resource, expected, null, false, out); - } - - /** - * Validate that a JSF Resource can be generated and found in the webapp. This - * is for positive test case only. - * - * @param handler - * - The @ResourceHandle used to create the resource. - * @param resource - * - The Name(@String) of which the resource is packaged as. - * @param expected - * - The expected size of the resource.(in bytes) - * @param lib - * - The name of the library(@String) that the resource is packaged - * under. - * @param out - * - @PrintWriter to log test messages to. - */ - public static void checkIndentifier(ResourceHandler handler, String resource, - int expected, String lib, PrintWriter out) { - - checkIndentifier(handler, resource, expected, lib, false, out); - } - - public static void doesExists(ResourceHandler handler, String resource, - String lib, PrintWriter out) { - - if (handler != null) { - try { - Resource res = handler.createResource(resource, lib); - - if (res != null) { - out.println("Test PASSED"); - } else { - out.println("Test FAILED." + NL + "Unable to Obtain Resource '" - + resource + "' in Library '" + lib + "'!"); - } - - } catch (Exception e) { - out.println("Test FAILED. See stacktrace below..."); - StringWriter sw = new StringWriter(); - PrintWriter pw = new PrintWriter(sw); - - e.printStackTrace(pw); - out.println(sw.toString()); - } - - } else { - out.println( - "Test FAILED. Unable to obtain ResourceHandler " + "instance."); - } - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/TestServlet.java deleted file mode 100644 index 9e0b057eb7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/TestServlet.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.packaging.classpath; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.spec.resource.common.util.ResourceChecker; - -import jakarta.faces.application.ResourceHandler; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // private indicators that a test has previously passed. - // this is necessary if a test is run multiple times - // without reloading the application - private boolean setGetLocaleTestPassed = false; - - private ServletContext servletContext; - - private static final int IMAGE_SIZE = 2947; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - public void destroy() { - super.destroy(); - } - - // ------------------------------------------------------------------- Tests - public void resourceClassPathResPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-class.gif", - IMAGE_SIZE, out); - - } - - public void resourceClassPathNoFileExtPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), - "negative_test_image", IMAGE_SIZE, null, out); - } - - public void resourceClassPathLocaleDEPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-de.gif", - IMAGE_SIZE, out); - } - - public void resourceClassPathLocaleENPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-en.gif", - IMAGE_SIZE, "locLib", out); - } - - public void resourceClassPathLocaleFRPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-fr.gif", - IMAGE_SIZE, out); - } - - // ------------------------------------------------------ negative test cases - - public void resourceClassPathTrailingUSNegativePkgTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "trailing.css", 0, - "class-styles", true, out); - } - - public void resourceClassPathLeadingUSNegativePkgTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "leading.css", 0, - "class-styles", true, out); - } - - public void resourceClassPathNoFileExtVerNegetivePkgTest( - HttpServletRequest request, HttpServletResponse response) - throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "doug.css", 0, - "class-styles", true, out); - } - - public void jsfJsDoesExistTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.doesExists(this.getTCKHandler(), "jsf.js", "jakarta.faces", - out); - } - - // ---------------------------------------------------------- private methods - private ResourceHandler getTCKHandler() { - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - return handler; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/URLClient.java b/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/URLClient.java deleted file mode 100644 index 93de8a1ee7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/URLClient.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.packaging.classpath; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_resource_classpath_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Test Declarations */ - - /** - * @testName: resourceClassPathResPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'META-INF'/resources/resourceName - * @since 2.0 - */ - public void resourceClassPathResPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceClassPathResPkgTest"); - invoke(); - } - - /** - * @testName: resourceClassPathNoFileExtPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that receive a resource back when requesting a - * resource with no File Extension. - * - * Example: 'META-INF'/resources/negative_test_image - * @since 2.0 - */ - - public void resourceClassPathNoFileExtPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceClassPathNoFileExtPkgTest"); - invoke(); - } - - /** - * @testName: resourceClassPathLocaleDEPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'META-INF'/resources/de/duke-de.gif - * - * - * @since 2.0 - */ - public void resourceClassPathLocaleDEPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceClassPathLocaleDEPkgTest"); - super.setMyLocale("de"); - invoke(); - } - - /** - * @testName: resourceClassPathLocaleENPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'META-INF'/resources/en/locLib/1_0/duke-en-1.gif - * - * @since 2.0 - */ - public void resourceClassPathLocaleENPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceClassPathLocaleENPkgTest"); - super.setMyLocale("en"); - invoke(); - } - - /** - * @testName: resourceClassPathLocaleFRPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'META-INF'/resources/fr/duke-fr-1.gif/10_01.gif - * - * @since 2.0 - */ - public void resourceClassPathLocaleFRPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceClassPathLocaleFRPkgTest"); - super.setMyLocale("fr"); - invoke(); - } - - // ------------------------------------------------------ negative test - // cases - - /** - * @testName: resourceClassPathTrailingUSNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with a trailing '_' in the name. - * - * Example: - * 'META-INF'/resources/class-styles/2_0/trailing.css/42_.cs s - * - * @since 2.0 - */ - public void resourceClassPathTrailingUSNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceClassPathTrailingUSNegativePkgTest"); - invoke(); - } - - /** - * @testName: resourceClassPathLeadingUSNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with a leading '_' in the name. - * - * Example: - * 'META-INF'/resources/class-styles/2_0/leading.css/_99.css - * @since 2.0 - */ - public void resourceClassPathLeadingUSNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceClassPathLeadingUSNegativePkgTest"); - invoke(); - } - - /** - * @testName: resourceClassPathNoFileExtVerNegetivePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with no File Extension. - * - * Example: 'META-INF'/resources/doug.css/1_1_1 - * @since 2.0 - */ - public void resourceClassPathNoFileExtVerNegetivePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, - "resourceClassPathNoFileExtVerNegetivePkgTest"); - invoke(); - } - - /** - * @testName: jsfJsDoesExistTest - * @assertion_ids: JSF:SPEC:225; JSF:SPEC:226 - * @test_Strategy: Validate that we are able to get the Resource jsf.js from - * the libarary jakarta.faces. - * - * @since 2.2 - */ - public void jsfJsDoesExistTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "jsfJsDoesExistTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/build.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/build.xml deleted file mode 100644 index 1de1eda25a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/build.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.war.sun-web.xml deleted file mode 100644 index d188e20d47..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_resource_classpath_web - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.xml deleted file mode 100644 index d432f430c9..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/classpath/jsf_resource_classpath_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - jsf_resource_classpath - - TestServlet - com.sun.ts.tests.jsf.spec.resource.packaging.classpath.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/TestServlet.java deleted file mode 100644 index 887e49e9fa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/TestServlet.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.packaging.webapproot; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.spec.resource.common.util.ResourceChecker; - -import jakarta.faces.application.ResourceHandler; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletContext; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public class TestServlet extends HttpTCKServlet { - - // private indicators that a test has previously passed. - // this is necessary if a test is run multiple times - // without reloading the application - private boolean setGetLocaleTestPassed = false; - - private ServletContext servletContext; - - // When testing Resource using image. - private static final int IMAGE_SIZE = 2947; - - // When testing Resource using stylesheet. - private static final int CSS_SIZE = 947; - - public void init(ServletConfig config) throws ServletException { - super.init(config); - servletContext = config.getServletContext(); - } - - public void destroy() { - super.destroy(); - } - - // ------------------------------------------------------------------- Tests - public void resourceResPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-boxer.gif", - IMAGE_SIZE, out); - - } - - public void resourceLibResPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-boxer-1.gif", - IMAGE_SIZE, "images", out); - } - - public void resourceLibVerResPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "gun.sm.gif", - IMAGE_SIZE, "lib", out); - } - - public void resourceResVerPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "time.css", CSS_SIZE, - out); - } - - public void resourceLibVerResVerPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "foreground.css", - CSS_SIZE, "styles", out); - } - - public void reourceNoFileExtPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), - "negative_test_image", IMAGE_SIZE, null, out); - } - - public void resourceLocaleDEPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-de.gif", - IMAGE_SIZE, out); - } - - public void resourceLocaleENPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-en.gif", - IMAGE_SIZE, "locLib", out); - } - - public void resourceLocaleFRPkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "duke-fr.gif", - IMAGE_SIZE, out); - } - - // ------------------------------------------------------ negative test cases - public void resourceLibVerResVerNegativePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "background.css", - CSS_SIZE, "styles", true, out); - } - - public void reourceLibVerResNegativePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "never-found.css", 0, - "styles", true, out); - } - - public void reourceTrailingUSNegativePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "trailing.css", 0, - "styles", true, out); - } - - public void reourceLeadingUSNegativePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "leading.css", 0, - "styles", true, out); - } - - public void reourceNoUSNegetivePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "noUnderscore.css", - 0, "styles", true, out); - } - - public void reourceNoFileExtVerNegetivePkgTest(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - PrintWriter out = response.getWriter(); - - ResourceChecker.checkIndentifier(this.getTCKHandler(), "doug.css", 0, - "styles", true, out); - } - - // ---------------------------------------------------------- private methods - private ResourceHandler getTCKHandler() { - ResourceHandler handler = getFacesContext().getApplication() - .getResourceHandler(); - - return handler; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/URLClient.java b/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/URLClient.java deleted file mode 100644 index 87c32ee7ec..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/URLClient.java +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.packaging.webapproot; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_resource_webapproot_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out), - new PrintWriter(System.err)); - s.exit(); - } - - public Status run(String args[], PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /* Test Declarations */ - - /** - * @testName: resourceResPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/resourceName - * @since 2.0 - */ - public void resourceResPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceResPkgTest"); - invoke(); - } - - /** - * @testName: resourceLibResPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/libName/resourceName - * - * @since 2.0 - */ - public void resourceLibResPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLibResPkgTest"); - invoke(); - } - - /** - * @testName: resourceLibVerResPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - - * 'docroot'/resources/libraryName/libraryVersion/resourceNam - * e - * - * @since 2.0 - */ - public void resourceLibVerResPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLibVerResPkgTest"); - invoke(); - } - - /** - * @testName: resourceResVerPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/resourceName/resourceVersion - * - * @since 2.0 - */ - public void resourceResVerPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceResVerPkgTest"); - invoke(); - } - - /** - * @testName: resourceLibVerResVerPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - - * 'docroot'/resources/libraryName/libraryVersion/resourceName/resourceVersio - * n - * - * @since 2.0 - */ - public void resourceLibVerResVerPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLibVerResVerPkgTest"); - invoke(); - } - - /** - * @testName: reourceNoFileExtPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that receive a resource back when requesting a - * resource with no File Extension. - * - * Example: 'docroot'/resources/negative_test_image - * @since 2.0 - */ - public void reourceNoFileExtPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceNoFileExtPkgTest"); - invoke(); - } - - /** - * @testName: resourceLocaleDEPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/de/duke-de.gif - * - * - * @since 2.0 - */ - public void resourceLocaleDEPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLocaleDEPkgTest"); - super.setMyLocale("de"); - invoke(); - } - - /** - * @testName: resourceLocaleENPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/en/locLib/1_0/duke-en.gif - * - * @since 2.0 - */ - public void resourceLocaleENPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLocaleENPkgTest"); - super.setMyLocale("en"); - invoke(); - } - - /** - * @testName: resourceLocaleFRPkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that the resourceIdentifier is correct when the - * resource is packaged under: - * - * - 'docroot'/resources/fr/duke-fr.gif/10_01.gif - * - * @since 2.0 - */ - public void resourceLocaleFRPkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLocaleFRPkgTest"); - super.setMyLocale("fr"); - invoke(); - } - - // ------------------------------------------------------ negative test - // cases - /** - * @testName: resourceLibVerResVerNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource in a lower version level - * - * - - * 'docroot'/resources/libraryName/libraryVersion/resourceName/resourceVersio - * n - * - * @since 2.0 - */ - public void resourceLibVerResVerNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "resourceLibVerResVerNegativePkgTest"); - invoke(); - } - - /** - * @testName: reourceLibVerResNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource in a lower library version level. - * - * - 'docroot'/resources/styles/1_0/never-found.css - * - * @since 2.0 - */ - public void reourceLibVerResNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceLibVerResNegativePkgTest"); - invoke(); - } - - /** - * @testName: reourceTrailingUSNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with a trailing '_' in the name. - * - * Example: - * 'docroot'/resources/styles/2_0/trailing.css/42_.css - * - * @since 2.0 - */ - public void reourceTrailingUSNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceTrailingUSNegativePkgTest"); - invoke(); - } - - /** - * @testName: reourceLeadingUSNegativePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with a leading '_' in the name. - * - * Example: 'docroot'/resources/styles/2_0/leading.css/_99.css - * @since 2.0 - */ - public void reourceLeadingUSNegativePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceLeadingUSNegativePkgTest"); - invoke(); - } - - /** - * @testName: reourceNoUSNegetivePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with an invalid version separator. - * - * Example: - * 'docroot'/resources/styles/2_0/noUnderscore.css/99-100-101.cs - * s - * @since 2.0 - */ - public void reourceNoUSNegetivePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceNoUSNegetivePkgTest"); - invoke(); - } - - /** - * @testName: reourceNoFileExtVerNegetivePkgTest - * @assertion_ids: PENDING: added assertions ID(s) - * @test_Strategy: Validate that we do not receive a resource back when - * requesting a resource with no File Extension. - * - * Example: 'docroot'/resources/doug.css/1_1_1 - * @since 2.0 - */ - public void reourceNoFileExtVerNegetivePkgTest() throws Fault { - TEST_PROPS.setProperty(APITEST, "reourceNoFileExtVerNegetivePkgTest"); - invoke(); - } -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/build.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/build.xml deleted file mode 100644 index ddd485efe4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/build.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.war.sun-web.xml deleted file mode 100644 index 8cab155bda..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_resource_webapproot_web - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.xml b/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.xml deleted file mode 100644 index 2e2480430c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/packaging/webapproot/jsf_resource_webapproot_web.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - jsf_resource_webapproot - - TestServlet - com.sun.ts.tests.jsf.spec.resource.packaging.webapproot.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/URLClient.java b/src/com/sun/ts/tests/jsf/spec/resource/relocatable/URLClient.java deleted file mode 100644 index 46f2d8c06e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/URLClient.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.resource.relocatable; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlScript; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String NL = System.getProperty("line.seperator", "\n"); - - private static final String CONTEXT_ROOT = "/jsf_resource_relocatable_web"; - - private static final String SCRIPT = "script"; - - private static final String SCRIPT_NAME = "hello.js"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: relocatableHeadTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the a resource that specifies "head" as the target - * is rendered in the "" of the page. - * - * @since 2.0 - */ - public void relocatableHeadTest() throws Fault { - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/reloc-head.xhtml"); - this.testRelocatableElement(page, "head"); - - } - - /** - * @testName: relocatableBodyTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the a resource that specifies "body" as the target - * is rendered in the "" of the page. - * - * @since 2.0 - */ - public void relocatableBodyTest() throws Fault { - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/reloc-body.xhtml"); - this.testRelocatableElement(page, "body"); - } - - /** - * @testName: relocatableFormTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the a resource that specifies "form" as the target - * is rendered in the "
" of the page. - * - * @since 2.0 - */ - public void relocatableFormTest() throws Fault { - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/reloc-form.xhtml"); - this.testRelocatableElement(page, "form"); - } - - // ---------------------------------------------------------- private - // methods - private void testRelocatableElement(HtmlPage page, String expected) - throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlScript htmlscript = (HtmlScript) getElementOfTypeIncludingSrc(page, - SCRIPT, SCRIPT_NAME); - - String result = htmlscript.getParentNode().getNodeName(); - - if (!expected.equals(result)) { - formatter.format( - "Test FAILED. Unexpected test result!" + NL - + "Expected Parent Tag: '%s'" + NL + "Received Parent Tag: '%s", - expected, result); - } - - handleTestStatus(messages); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/build.xml b/src/com/sun/ts/tests/jsf/spec/resource/relocatable/build.xml deleted file mode 100644 index d88a08dc2d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/jsf_resource_relocatable_web.xml b/src/com/sun/ts/tests/jsf/spec/resource/relocatable/jsf_resource_relocatable_web.xml deleted file mode 100644 index c2d4901dfa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/resource/relocatable/jsf_resource_relocatable_web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - jsf_resource_relocatable - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/build.xml deleted file mode 100644 index cfd1646784..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/common/NameBean.java b/src/com/sun/ts/tests/jsf/spec/templating/common/NameBean.java deleted file mode 100644 index 76b34b9b73..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/common/NameBean.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2011, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.templating.common; - -import java.io.Serializable; - -import jakarta.faces.component.UIOutput; - -@jakarta.inject.Named("Character") -@jakarta.enterprise.context.RequestScoped -public class NameBean implements Serializable { - - private UIOutput name; - - public void setName(UIOutput n) { - this.name = n; - } - - public UIOutput getName() { - return name; - } - - public NameBean() { - this.initialSetup(); - } - - // ----------------------------------------------- private methods - - private final void initialSetup() { - UIOutput myComp = new UIOutput(); - myComp.setId("name"); - myComp.setValue("Vidtily Chernobyl"); - - this.setName(myComp); - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/templating/common/templating.common.xml b/src/com/sun/ts/tests/jsf/spec/templating/common/templating.common.xml deleted file mode 100644 index d1f64a3695..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/common/templating.common.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/component/URLClient.java b/src/com/sun/ts/tests/jsf/spec/templating/component/URLClient.java deleted file mode 100644 index 23fcad089e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/component/URLClient.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) 2001, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.templating.component; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_templating_component_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: uicomponentVisableTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:component 'rendered' attribute with value of true. - * - * @since 2.2 - */ - public void uicomponentVisableTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/visableTest.xhtml"); - - HtmlSpan spanOne = (HtmlSpan) getElementOfTypeWithValue(page, "span", - "rendered"); - - if (!validateExistence("rendered", "span", spanOne, formatter)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - formatter.close(); - - } // END uicomponentVisableTest - - /** - * @testName: uicomponentNotVisableTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:component 'rendered' attribute with value of false. - * - * @since 2.2 - */ - public void uicomponentNotVisableTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/notVisableTest.xhtml"); - - if (page.getElementsByTagName("span").getLength() > 0) { - formatter.format( - "Unexpected '%s' element found when '%s' attribute on ui:compnent is " - + "set to '%s' ! ", - "span", "rendered", "false"); - } - - handleTestStatus(messages); - formatter.close(); - - } // END uicomponentNotVisableTest - - /** - * @testName: uicomponentBindTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:component 'binding' attribute to make sure we bind - * correctly to a backend bean. - * - * @since 2.2 - */ - public void uicomponentBindTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/component_binding.xhtml"); - - HtmlSpan spanOne = (HtmlSpan) getElementOfTypeWithValue(page, "span", - "Vidtily Chernobyl"); - - if (!validateExistence("bind", "span", spanOne, formatter)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - formatter.close(); - - } // END uicomponentNotVisableTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/templating/component/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/component/build.xml deleted file mode 100644 index a733dcaefe..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/component/build.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/component/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/templating/component/faces-config.xml deleted file mode 100644 index 6a7f68b81e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/component/faces-config.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/component/jsf_templating_component_web.xml b/src/com/sun/ts/tests/jsf/spec/templating/component/jsf_templating_component_web.xml deleted file mode 100644 index 014425b2b5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/component/jsf_templating_component_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_templating_component - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/fragment/URLClient.java b/src/com/sun/ts/tests/jsf/spec/templating/fragment/URLClient.java deleted file mode 100644 index 6a5f972474..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/fragment/URLClient.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) 2011, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.templating.fragment; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.gargoylesoftware.htmlunit.html.HtmlSpan; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_templating_fragment_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: uifragmentVisableTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:fragment 'rendered' attribute with value of true. - * - * @since 2.2 - */ - public void uifragmentVisableTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/visableTest.xhtml"); - - HtmlSpan spanOne = (HtmlSpan) getElementOfTypeWithValue(page, "span", - "rendered"); - - if (!validateExistence("rendered", "span", spanOne, formatter)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - } // END uifragmentVisableTest - - /** - * @testName: uifragmentNotVisableTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:fragment 'rendered' attribute with value of false. - * - * @since 2.2 - */ - public void uifragmentNotVisableTest() throws Fault { - - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/notVisableTest.xhtml"); - - if (page.getElementsByTagName("span").getLength() > 0) { - formatter.format( - "Unexpected '%s' element found when '%s' attribute on ui:compnent is " - + "set to '%s' ! ", - "span", "rendered", "false"); - } - - handleTestStatus(messages); - } // END uifragmentNotVisableTest - - /** - * @testName: uifragmentBindTest - * @assertion_ids: PENDING - * @test_Strategy: Test ui:fragment 'binding' attribute to make sure we bind - * correctly to a backing bean. - * - * @since 2.2 - */ - public void uifragmentBindTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/fragment_binding.xhtml"); - - HtmlSpan spanOne = (HtmlSpan) getElementOfTypeWithValue(page, "span", - "Vidtily Chernobyl"); - - if (!validateExistence("rendered", "span", spanOne, formatter)) { - handleTestStatus(messages); - return; - } - - handleTestStatus(messages); - } // END uifragmentNotVisableTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/templating/fragment/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/fragment/build.xml deleted file mode 100644 index 9ca72d53de..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/fragment/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/fragment/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/templating/fragment/faces-config.xml deleted file mode 100644 index 3b506e5def..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/fragment/faces-config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/fragment/jsf_templating_fragment_web.xml b/src/com/sun/ts/tests/jsf/spec/templating/fragment/jsf_templating_fragment_web.xml deleted file mode 100644 index ff4f184b0f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/fragment/jsf_templating_fragment_web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - jsf_templating_fragment - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/insert/URLClient.java b/src/com/sun/ts/tests/jsf/spec/templating/insert/URLClient.java deleted file mode 100644 index 7170c57f97..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/insert/URLClient.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.templating.insert; - -import java.io.PrintWriter; -import java.util.Formatter; -import java.util.TreeMap; - -import com.gargoylesoftware.htmlunit.html.HtmlDivision; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_templating_insert_web"; - - private static final TreeMap EXPECTED_OVERRIDES = new TreeMap(); - - private static final TreeMap EXPECTED_DEFAULTS = new TreeMap(); - - { - EXPECTED_DEFAULTS.put("title", "Default Title"); - EXPECTED_DEFAULTS.put("heading", "Default Heading"); - EXPECTED_DEFAULTS.put("content", "Default Content"); - - EXPECTED_OVERRIDES.put("title", "OverRide Title"); - EXPECTED_OVERRIDES.put("heading", "OverRide Heading"); - EXPECTED_OVERRIDES.put("content", "OverRide Content"); - } - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: templateInsertUICompositeTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the correct values are inserted when being called - * from ui:composite tag in the using page. - * - * @since 2.0 - */ - public void templateInsertUICompositeTest() throws Fault { - - // Test Defaults. - HtmlPage pageOne = (getPage( - CONTEXT_ROOT + "/faces/compositionPgOne.xhtml")); - - this.testPage(pageOne, EXPECTED_DEFAULTS); - - HtmlPage pageTwo = (getPage( - CONTEXT_ROOT + "/faces/compositionPgTwo.xhtml")); - - this.testPage(pageTwo, EXPECTED_OVERRIDES); - - } // END templateInsertUICompositeTest - - /** - * @testName: templateInsertUICompositeNegTest - * @assertion_ids: PENDING - * @test_Strategy: Validate JSF disregards everything outside of the - * composition tag. - * - * @since 2.0 - */ - public void templateInsertUICompositeNegTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // Test Defaults. - HtmlPage pageThree = (getPage( - CONTEXT_ROOT + "/faces/compositionPgThree.xhtml")); - - this.testPage(pageThree, EXPECTED_OVERRIDES); - - HtmlDivision top = (HtmlDivision) getElementOfTypeIncludingId(pageThree, - "div", "IGNORED_TOP"); - - HtmlDivision bottom = (HtmlDivision) getElementOfTypeIncludingId(pageThree, - "div", "IGNORED_BOTTOM"); - - if (!(top == null)) { - formatter.format("Unexpected Value Found! %n" + "Found: " + top.asText() - + "%n" + "This String should not have been found JSF should ignore" - + "everything outside of the uicompsite tags!"); - } - - if (!(bottom == null)) { - formatter.format( - "Unexpected Value Found! %n" + "Found: " + bottom.asText() + "%n" - + "This String should not have been found JSF should ignore" - + "everything outside of the uicompsite tags!"); - } - - handleTestStatus(messages); - - } // END templateInsertUICompositeNegTest - - /** - * @testName: templateInsertUIDecorateTest - * @assertion_ids: PENDING - * @test_Strategy: Validate the correct values are inserted when being called - * from ui:decorate tag in the using page. - * - * @since 2.0 - */ - public void templateInsertUIDecorateTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = (getPage(CONTEXT_ROOT + "/faces/decoratePgOne.xhtml")); - - HtmlDivision template = (HtmlDivision) getElementOfTypeIncludingId(page, - "div", "title_header_content"); - - validateExistence("PROCESSED_TOP", "div", template, formatter); - - this.testString("Default TitleDefault HeadingDefault Content", - template.asText(), formatter); - - handleTestStatus(messages); - } // END templateInsertUIDecorateTest - - /** - * @testName: templateInsertUIDecorateOutSideTest - * @assertion_ids: PENDING - * @test_Strategy: Validate JSF renders everything outside of the decorate - * tag. - * - * @since 2.0 - */ - public void templateInsertUIDecorateOutSideTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // Test Defaults. - HtmlPage page = (getPage(CONTEXT_ROOT + "/faces/decoratePgTwo.xhtml")); - - HtmlDivision top = (HtmlDivision) getElementOfTypeIncludingId(page, "div", - "PROCESSED_TOP"); - - validateExistence("PROCESSED_TOP", "div", top, formatter); - - HtmlDivision bottom = (HtmlDivision) getElementOfTypeIncludingId(page, - "div", "PROCESSED_BOTTOM"); - - validateExistence("PROCESSED_BOTTOM", "div", bottom, formatter); - - handleTestStatus(messages); - } // END templateInsertUIDecorateOutSideTest - - // ---------------------------------------------------------- private - // methods - private Formatter testString(String key, String value, Formatter formatter) { - - if (!key.equals(value)) { - formatter.format( - "Unexpected Value!" + "%n" + "Expected: '%s' %n" + "Found: '%s'", key, - value); - } - - return formatter; - } - - private void testPage(HtmlPage page, TreeMap expected) - throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - checkForNull(expected, "expected"); - checkForNull(page, "page"); - - // Test the title tag. - String expTitle = expected.get("title"); - String title = page.getTitleText(); - - this.testString(expTitle, title, formatter); - - // Test the heading. - String expHead = expected.get("heading"); - HtmlDivision head = (HtmlDivision) getElementOfTypeIncludingId(page, "div", - "heading"); - - validateExistence("heading", "div", head, formatter); - String headingValue = head.asText(); - - this.testString(expHead, headingValue, formatter); - - // Test the content. - String expContent = expected.get("content"); - HtmlDivision content = (HtmlDivision) getElementOfTypeIncludingId(page, - "div", "content"); - - validateExistence("content", "div", content, formatter); - String contentValue = content.asText(); - - this.testString(expContent, contentValue, formatter); - - handleTestStatus(messages); - } - - public static void checkForNull(Object aObject, String argName) { - if (aObject == null) { - throw new NullPointerException(argName + " Argument is Null!"); - } - } -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/templating/insert/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/insert/build.xml deleted file mode 100644 index 85ceff39df..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/insert/build.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/insert/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/templating/insert/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/insert/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/insert/jsf_templating_insert_web.xml b/src/com/sun/ts/tests/jsf/spec/templating/insert/jsf_templating_insert_web.xml deleted file mode 100644 index cdf8a752a2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/insert/jsf_templating_insert_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_templating_insert - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/remove/URLClient.java b/src/com/sun/ts/tests/jsf/spec/templating/remove/URLClient.java deleted file mode 100644 index 0257899278..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/remove/URLClient.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.templating.remove; - -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlLabel; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_templating_remove_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: templateUIRemoveTagTest - * @assertion_ids: PENDING - * @test_Strategy: Validate that any child of the ui:remove tag is not - * rendered. - * - * @since 2.0 - */ - public void templateUIRemoveTagTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - // Test Defaults. - HtmlPage pageOne = getPage(CONTEXT_ROOT + "/faces/removeOne.xhtml"); - - HtmlLabel seen = (HtmlLabel) super.getElementOfTypeIncludingId(pageOne, - "label", "Rendered"); - - if (super.validateExistence("Rendered", "label", seen, formatter)) { - handleTestStatus(messages); - formatter.close(); - return; - } - - HtmlLabel notSeen = (HtmlLabel) super.getElementOfTypeIncludingId(pageOne, - "label", "Not-Rendered"); - - if (!(notSeen == null)) { - formatter.format(JSFTestUtil.FAIL + JSFTestUtil.NL - + "Unexpected HtmlLabel Rendered! %n" - + "Expected not label to be rendered! %n" + "Instead found: %s %n", - notSeen.asText()); - } - - handleTestStatus(messages); - formatter.close(); - - } // END templateInsertUICompositeTest -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/templating/remove/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/remove/build.xml deleted file mode 100644 index 03fe0797aa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/remove/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/remove/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/templating/remove/faces-config.xml deleted file mode 100644 index 4b585caa02..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/remove/faces-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/remove/jsf_templating_remove_web.xml b/src/com/sun/ts/tests/jsf/spec/templating/remove/jsf_templating_remove_web.xml deleted file mode 100644 index bbc618cbf4..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/remove/jsf_templating_remove_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_templating_remove - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/repeat/ColorBean.java b/src/com/sun/ts/tests/jsf/spec/templating/repeat/ColorBean.java deleted file mode 100644 index 02c571810d..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/repeat/ColorBean.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2008, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id: - */ - -package com.sun.ts.tests.jsf.spec.templating.repeat; - -import java.util.ArrayList; -import java.util.List; - -@jakarta.inject.Named("Color") -@jakarta.enterprise.context.RequestScoped -public class ColorBean { - - private List colors = new ArrayList(); - - public ColorBean() { - this.initialSetup(); - } - - private void initialSetup() { - // ArrayList - colors.add("Red"); - colors.add("Green"); - colors.add("Blue"); - colors.add("Violet"); - colors.add("Pink"); - } - - /** - * @return the colors - */ - public List getColors() { - return colors; - } - - /** - * @param colors - */ - public void setColors(List colors) { - this.colors = colors; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/templating/repeat/URLClient.java b/src/com/sun/ts/tests/jsf/spec/templating/repeat/URLClient.java deleted file mode 100644 index 8dbc07925f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/repeat/URLClient.java +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.templating.repeat; - -import java.io.PrintWriter; -import java.util.ArrayList; -import java.util.Formatter; -import java.util.List; - -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_templating_repeat_web"; - - private List testColors; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - /** - * @testName: templateUIRepeatVarTest - * @assertion_ids: PENDING - * @test_Strategy: Validate that the "var" attribute is handled correctly. - * - * @since 2.0 - */ - public void templateUIRepeatVarTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - HtmlPage page = (getPage(CONTEXT_ROOT + "/faces/repeatVar.xhtml")); - - testColors = new ArrayList(); - - testColors.add("Red"); - testColors.add("Green"); - testColors.add("Blue"); - testColors.add("Violet"); - testColors.add("Pink"); - - testList(page, "Color:", testColors, 5, formatter, true); - - handleTestStatus(messages); - - } - - /** - * @testName: templateUIRepeatOffsetTest - * @assertion_ids: PENDING - * @test_Strategy: Validate that the "offset" attribute is handled correctly. - * - * @since 2.0 - */ - public void templateUIRepeatOffsetTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - testColors = new ArrayList(); - - testColors.add("Violet"); - testColors.add("Pink"); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/repeatOffset.xhtml"); - - testList(page, "Color:", testColors, 2, formatter, true); - - handleTestStatus(messages); - - } - - /** - * @testName: templateUIRepeatVarStatusTest - * @assertion_ids: PENDING - * @test_Strategy: Validate that the "varStatus" attribute is handled - * correctly. - * - * Test the following attributes: case 1 - "index" case 2 - - * "first" case 3 - "last" case 4 - "begin" case 5 - "end" - * case 6 - "step" case 7 - "odd" case 8 - "even" - * - * @since 2.0 - */ - public void templateUIRepeatVarStatusTest() throws Fault { - StringBuilder messages = new StringBuilder(128); - Formatter formatter = new Formatter(messages); - - testColors = new ArrayList(); - - HtmlPage page = getPage(CONTEXT_ROOT + "/faces/repeatVarStat.xhtml"); - - // -------------------------------------------------------------- case 1 - List index = new ArrayList(); - - index.add("0"); - index.add("1"); - index.add("2"); - index.add("3"); - index.add("4"); - - testList(page, "VSIndex", index, 5, formatter, true); - - // -------------------------------------------------------------- case 2 - List first = new ArrayList(); - - first.add("true"); - first.add("false"); - first.add("false"); - first.add("false"); - first.add("false"); - - testList(page, "VSFirst", first, 5, formatter, true); - - // -------------------------------------------------------------- case 3 - List last = new ArrayList(); - - last.add("false"); - last.add("false"); - last.add("false"); - last.add("false"); - last.add("true"); - - testList(page, "VSLast", last, 5, formatter, true); - - // Commented out due to the fact that the spec is not clear on begin and - // end attributes for varstatus! - // // -------------------------------------------------------------- - // case 4 - // List begin = new ArrayList(); - // - // begin.add("5"); - // - // testList(page, "isBeginNum", begin, 1, formatter, true); - // - // // -------------------------------------------------------------- - // case 5 - // List end = new ArrayList(); - // - // end.add("1"); - // - // testList(page, "isEndNum", end, 1, formatter, true); - - // -------------------------------------------------------------- case 6 - List step = new ArrayList(); - - step.add("2"); - step.add("2"); - step.add("2"); - - testList(page, "VSStep", step, 3, formatter, true); - - // -------------------------------------------------------------- case 7 - List odd = new ArrayList(); - - odd.add("false"); - odd.add("true"); - odd.add("false"); - odd.add("true"); - odd.add("false"); - - testList(page, "VSOdd", odd, 5, formatter, true); - - // -------------------------------------------------------------- case 8 - List even = new ArrayList(); - - even.add("true"); - even.add("false"); - even.add("true"); - even.add("false"); - even.add("true"); - - testList(page, "VSEven", even, 5, formatter, true); - - handleTestStatus(messages); - } -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/templating/repeat/build.xml b/src/com/sun/ts/tests/jsf/spec/templating/repeat/build.xml deleted file mode 100644 index 75460148fb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/repeat/build.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/repeat/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/templating/repeat/faces-config.xml deleted file mode 100644 index f026ffdb24..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/repeat/faces-config.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/templating/repeat/jsf_templating_repeat_web.xml b/src/com/sun/ts/tests/jsf/spec/templating/repeat/jsf_templating_repeat_web.xml deleted file mode 100644 index 0e476ce99b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/templating/repeat/jsf_templating_repeat_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_templating_repeat - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/build.xml b/src/com/sun/ts/tests/jsf/spec/view/build.xml deleted file mode 100644 index d7c874fdcd..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/protectedview/URLClient.java b/src/com/sun/ts/tests/jsf/spec/view/protectedview/URLClient.java deleted file mode 100644 index ce60ec4ad1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/protectedview/URLClient.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.view.protectedview; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.html.HtmlAnchor; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_view_protectedview_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: viewProtectedViewNonAccessPointTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that a that we can not gain access to a Protected - * View from out side that views web-app. - * - * @since 2.2 - */ - public void viewProtectedViewNonAccessPointTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - throwExceptionOnFailingStatusCode = false; - - HtmlPage page = getPage(new WebClient(), - CONTEXT_ROOT + "/faces/views/protected.xhtml"); - - HtmlAnchor anchor = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "linkOne"); - - if (validateExistence("linkOne", "a", anchor, formatter)) { - formatter.format("We should not be able to gain access to a " - + "Protected View from outside of the Protected View's " + "webapp!"); - handleTestStatus(messages); - formatter.close(); - return; - } - - formatter.close(); - - } // END viewProtectedViewNonAccessPointTest - - /** - * @testName: viewProtectedViewSameWebAppAccessTest - * - * @assertion_ids: PENDING - * - * @test_Strategy: Validate that we are able to gain access to a protected - * view from inside the same web-app through a non-protected - * view. - * - * @since 2.2 - */ - public void viewProtectedViewSameWebAppAccessTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - String result; - String expected = "This is a Protected View!"; - - HtmlPage page = getPage(new WebClient(), - CONTEXT_ROOT + "/faces/views/public.xhtml"); - - HtmlAnchor anchor = (HtmlAnchor) getElementOfTypeIncludingId(page, "a", - "linkOne"); - - if (!validateExistence("linkOne", "a", anchor, formatter)) { - handleTestStatus(messages); - return; - } - - try { - result = anchor.click().getWebResponse().getContentAsString(); - - if (!result.contains(expected)) { - formatter.format("Error occured during clicking of Link!"); - handleTestStatus(messages); - } - - } catch (IOException e) { - formatter.format("Error occured during clicking of Link!"); - e.printStackTrace(); - handleTestStatus(messages); - formatter.close(); - } - - formatter.close(); - - } // END viewProtectedViewNonAccessPointTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/view/protectedview/WEB-INF/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/view/protectedview/WEB-INF/faces-config.xml deleted file mode 100644 index 7075b600eb..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/protectedview/WEB-INF/faces-config.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - /views/protected.xhtml - - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/protectedview/build.xml b/src/com/sun/ts/tests/jsf/spec/view/protectedview/build.xml deleted file mode 100644 index 08053d08aa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/protectedview/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview.web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview.web.war.sun-web.xml deleted file mode 100644 index f6ef667491..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview.web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_protectedview_web - diff --git a/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview_web.xml b/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview_web.xml deleted file mode 100644 index bcd00c15a0..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/protectedview/jsf_view_protectedview_web.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - jsf_view_protectedview - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - - com.sun.faces.validateXml - true - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/URLClient.java b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/URLClient.java deleted file mode 100644 index b3e5b19652..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/URLClient.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.view.viewhandler; - -import java.io.IOException; -import java.io.PrintWriter; -import java.util.Formatter; - -import com.gargoylesoftware.htmlunit.html.HtmlInput; -import com.gargoylesoftware.htmlunit.html.HtmlPage; -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.BaseHtmlUnitClient; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -public class URLClient extends BaseHtmlUnitClient { - - private static final String CONTEXT_ROOT = "/jsf_view_viewhandler_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /** - * @testName: viewHandlerCreateViewTest - * - * @assertion_ids: JSF:SPEC:97; JSF:SPEC:97.1; JSF:SPEC:97.2; JSF:SPEC:97.3 - * - * @test_Strategy: Verify on an initial request that the ViewId has not been - * changed. By Setting the suffix as ".jsf" and then looking - * for the correct suffix in the ViewHandler.createView() - * method. Verify that the default suffix is ".xhtml". By - * calling the Wrapped.createView() this must support ".xhtml" - * as the default suffix. - * - * - * @since 1.2 - */ - public void viewHandlerCreateViewTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - - try { - getPage(CONTEXT_ROOT + "/greetings.jsf"); - - } catch (Exception e) { - messages.append(JSFTestUtil.FAIL + "with unexpected return value!"); - handleTestStatus(messages); - return; - } - - } // END viewHandlerCreateViewTest - - /** - * @testName: viewHandlerRestoreViewTest - * - * @assertion_ids: JSF:SPEC:1; JSF:SPEC:102; JSF:SPEC:1.2.2 - * - * @test_Strategy: Verify on an initial request that the ViewId has not been - * changed. By Setting the suffix as ".jsf" and then looking - * for the correct suffix in the ViewHandler.restoreView() - * method. Verify that the default suffix is ".xhtml". By - * calling the Wrapped.restoreView() this must support ".xhtml" - * as the default suffix. - * - * @since 1.2 - */ - public void viewHandlerRestoreViewTest() throws Fault { - StringBuilder messages = new StringBuilder(64); - Formatter formatter = new Formatter(messages); - - HtmlPage page = getPage(CONTEXT_ROOT + "/greetings.jsf"); - HtmlInput button = (HtmlInput) page.getHtmlElementById("helloForm:userNo"); - - if (!validateExistence(button.getId(), "helloForm:userNo", button, - formatter)) { - handleTestStatus(messages); - formatter.close(); - return; - } - - try { - button.click(); - - } catch (IOException e) { - formatter.format( - "Unexpected exception when clicking the Submit" + "button: %s %n", e); - handleTestStatus(messages); - formatter.close(); - return; - } - - // display test result - handleTestStatus(messages); - formatter.close(); - - } // END viewHandlerRestoreViewTest - -} // END URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/ViewHandlerImpl.java b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/ViewHandlerImpl.java deleted file mode 100644 index 76065c9eb7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/ViewHandlerImpl.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.view.viewhandler; - -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FacesException; -import jakarta.faces.application.ViewHandler; -import jakarta.faces.application.ViewHandlerWrapper; -import jakarta.faces.component.UIViewRoot; -import jakarta.faces.context.FacesContext; - -public class ViewHandlerImpl extends ViewHandlerWrapper { - - protected ViewHandler viewHandler; - - public ViewHandlerImpl(ViewHandler viewHandler) { - this.viewHandler = viewHandler; - } - - @Override - public ViewHandler getWrapped() { - return viewHandler; - } - - @Override - public UIViewRoot createView(FacesContext context, String viewId) { - UIViewRoot root = this.getWrapped().createView(context, viewId); - if (!root.getViewId().endsWith(".xhtml")) { - throw new FacesException("createView: ViewId has been " - + "manipulated before being passed to the ViewHandler." - + JSFTestUtil.NL + "Expected viewId: /greetings.xhtml" + JSFTestUtil.NL - + "Received viewId: " + viewId + JSFTestUtil.NL); - } - return root; - } - - @Override - public UIViewRoot restoreView(FacesContext context, String viewId) { - UIViewRoot root = this.getWrapped().restoreView(context, viewId); - if (!root.getViewId().endsWith(".xhtml")) { - throw new FacesException("restoreView: ViewId has been " - + "manipulated before being passed to the ViewHandler. " - + JSFTestUtil.NL + "Expected viewId: /greetings.xhtml" + JSFTestUtil.NL - + "Received viewId: " + viewId + JSFTestUtil.NL); - } - return root; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/WEB-INF/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/WEB-INF/faces-config.xml deleted file mode 100644 index 5a4daa8284..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/WEB-INF/faces-config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - com.sun.ts.tests.jsf.spec.view.viewhandler.ViewHandlerImpl - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/build.xml b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/build.xml deleted file mode 100644 index 8760c3481a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler.web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler.web.war.sun-web.xml deleted file mode 100644 index ebc0918580..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler.web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_view_viewhandler_web - diff --git a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler_web.xml b/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler_web.xml deleted file mode 100644 index 675bff58a5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/view/viewhandler/jsf_view_viewhandler_web.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - jsf_view_viewhandler - - - com.sun.faces.validateXml - true - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - *.jsf - - - - 54 - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/build.xml b/src/com/sun/ts/tests/jsf/spec/webapp/build.xml deleted file mode 100644 index 3960161ab1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/build.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/faces-config.xml deleted file mode 100644 index aca7541daa..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/faces-config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - com.sun.ts.tests.jsf.spec.webapp.factoryfinder.TCKLifecycleFactory - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/services/jakarta.faces.render.RenderKitFactory b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/services/jakarta.faces.render.RenderKitFactory deleted file mode 100644 index 1ec1f62193..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/META-INF/services/jakarta.faces.render.RenderKitFactory +++ /dev/null @@ -1 +0,0 @@ -com.sun.ts.tests.jsf.spec.webapp.factoryfinder.TCKRenderKitFactory diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKApplicationFactory.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKApplicationFactory.java deleted file mode 100644 index c5868d4c9c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKApplicationFactory.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import jakarta.faces.application.Application; -import jakarta.faces.application.ApplicationFactory; - -/** - *

- * A simple wrapper class for FactoryFinder validation. - *

- */ -public class TCKApplicationFactory extends ApplicationFactory { - - /** - *

- * The @{link ApplicationFactory} instance provided by the JSF implementation - * under test. - *

- */ - private ApplicationFactory factory; - - /** - * Default constructor. - */ - public TCKApplicationFactory() { - - System.out.println("[TCKApplicationFactory] Default CTOR"); - - } - - /** - *

- * Constructs a new TCKApplicationFactory instance that wraps the default - * {@link ApplicationFactory} instance of the implementation under test. - *

- * - * @param factory - * the {@link ApplicationFactory} of the implementation under test - */ - public TCKApplicationFactory(ApplicationFactory factory) { - - System.out.println("[TCKApplicationFactory] Factory CTOR"); - this.factory = factory; - - } // END TCKApplicationFactory - - // ----------------- Methods from jakarta.faces.application.ApplicationFactory - - /** - *

- * Create (if needed) and return an - * {@link jakarta.faces.application.Application} instance for this web - * application. - *

- */ - public Application getApplication() { - - return factory.getApplication(); - - } // END getApplication - - /** - *

- * Replace the {@link jakarta.faces.application.Application} instance that will - * be returned for this web application. - *

- * - * @param application - * The replacement {@link jakarta.faces.application.Application} - * instance - * - * @throws NullPointerException - * if application is null. - */ - public void setApplication(Application application) { - - factory.setApplication(application); - - } // END setApplication - - // ---------------------------------------------------------- Public Methods - - /** - *

- * Returns the wrapped ApplicationFactory instance passed to the constructor - * by the JSF implementation under test. - *

- */ - public ApplicationFactory getWrappedInstance() { - - return factory; - - } // END getWrappedInstance - - /** - *

- * Returns the 'this' ApplicationFactory instance for testing purposes only.. - *

- */ - public ApplicationFactory getWrapped() { - return this; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKFacesContextFactory.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKFacesContextFactory.java deleted file mode 100644 index 2f1953b16a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKFacesContextFactory.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import jakarta.faces.FacesException; -import jakarta.faces.context.FacesContext; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.Lifecycle; - -public class TCKFacesContextFactory extends FacesContextFactory { - - /** - *

- * The @{link ApplicationFactory} instance provided by the JSF implementation - * under test. - *

- */ - private FacesContextFactory factory; - - /** - * Default constructor. - */ - public TCKFacesContextFactory() { - - System.out.println("[TCKFacesContextFactory] Default CTOR"); - - } - - /** - *

- * Constructs a new TCKFacesContextFactory instance that wraps the default - * {@link FacesContextFactory} instance of the implementation under test. - *

- * - * @param factory - * the {@link FacesContextFactory} of the implementation under test - */ - public TCKFacesContextFactory(FacesContextFactory factory) { - - System.out.println("[TCKFacesContextFactory] Factory CTOR"); - this.factory = factory; - - } // END TCKFacesContextFactory - - // -------------------- Methods from jakarta.faces.context.FacesContextFactory - - /** - *

- * Create (if needed) and return a {@link jakarta.faces.context.FacesContext} - * instance that is initialized for the processing of the specified request - * and response objects, utilizing the specified - * {@link jakarta.faces.lifecycle.Lifecycle} instance, for this web application. - *

- *

- *

- * The implementation of this method must ensure that calls to the - * getCurrentInstance() method of - * {@link jakarta.faces.context.FacesContext}, from the same thread that called - * this method, will return the same {@link jakarta.faces.context.FacesContext} - * instance until the release() method is called on that - * instance. - *

- * - * @param context - * In servlet environments, the ServletContext that is - * associated with this web application - * @param request - * In servlet environments, the ServletRequest that is - * to be processed - * @param response - * In servlet environments, the ServletResponse that is - * to be processed - * @param lifecycle - * The {@link jakarta.faces.lifecycle.Lifecycle} instance being used to - * process this request - * - * @throws jakarta.faces.FacesException - * if a {@link jakarta.faces.context.FacesContext} cannot be - * constructed for the specified parameters - * @throws NullPointerException - * if any of the parameters are null - */ - public FacesContext getFacesContext(Object context, Object request, - Object response, Lifecycle lifecycle) throws FacesException { - - return factory.getFacesContext(context, request, response, lifecycle); - - } // END getFacesContext - - // ---------------------------------------------------------- Public Methods - - /** - *

- * Returns the wrapped {@link FacesContextFactory} instance passed to the - * constructor by the JSF implementation under test. - *

- */ - public FacesContextFactory getWrappedInstance() { - - return factory; - - } // END getWrappedInstance - - /** - *

- * Returns the 'this' FacesContextFactory instance for testing purposes only.. - *

- */ - public FacesContextFactory getWrapped() { - return this; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKLifecycleFactory.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKLifecycleFactory.java deleted file mode 100644 index 8fd4215046..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKLifecycleFactory.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import java.util.Iterator; - -import jakarta.faces.lifecycle.Lifecycle; -import jakarta.faces.lifecycle.LifecycleFactory; - -public class TCKLifecycleFactory extends LifecycleFactory { - - /** - *

- * The @{link ApplicationFactory} instance provided by the JSF implementation - * under test. - *

- */ - private LifecycleFactory factory; - - /** - * Default constructor. - */ - public TCKLifecycleFactory() { - - System.out.println("[TCKLifecycleFactory] Default CTOR"); - - } - - /** - *

- * Constructs a new TCKLifecycleFactory instance that wraps the default - * {@link LifecycleFactory} instance of the implementation under test. - *

- * - * @param factory - * the {@link LifecycleFactory} of the implementation under test - */ - public TCKLifecycleFactory(LifecycleFactory factory) { - - System.out.println("[TCKLifecycleFactory] Factory CTOR"); - this.factory = factory; - - } // END TCKLifecycleFactory - - // --------------------- Methods from jakarta.faces.lifecycle.LifecycleFactory - - /** - *

- * Register a new {@link jakarta.faces.lifecycle.Lifecycle} instance, associated - * with the specified lifecycleId, to be supported by this - * LifecycleFactory. This method may be called at any time, and - * makes the corresponding {@link jakarta.faces.lifecycle.Lifecycle} instance - * available throughout the remaining lifetime of this web application. - *

- * - * @param lifecycleId - * Identifier of the new {@link jakarta.faces.lifecycle.Lifecycle} - * @param lifecycle - * {@link jakarta.faces.lifecycle.Lifecycle} instance that we are - * registering - * - * @throws IllegalArgumentException - * if a {@link jakarta.faces.lifecycle.Lifecycle} with the specified - * lifecycleId has already been registered - * @throws NullPointerException - * if lifecycleId or lifecycle is - * null - */ - public void addLifecycle(String lifecycleId, Lifecycle lifecycle) { - - factory.addLifecycle(lifecycleId, lifecycle); - - } // END addLifecycle - - /** - *

- * Create (if needed) and return a {@link jakarta.faces.lifecycle.Lifecycle} - * instance for the specified lifecycle identifier. The set of available - * lifecycle identifiers is available via the getLifecycleIds() - * method. - *

- *

- *

- * Each call to getLifecycle() for the same - * lifecycleId, from within the same web application, must return - * the same {@link jakarta.faces.lifecycle.Lifecycle} instance. - *

- * - * @param lifecycleId - * Lifecycle identifier of the requested - * {@link jakarta.faces.lifecycle.Lifecycle} instance - * - * @throws IllegalArgumentException - * if no {@link jakarta.faces.lifecycle.Lifecycle} instance can be - * returned for the specified identifier - * @throws NullPointerException - * if lifecycleId is null - */ - public Lifecycle getLifecycle(String lifecycleId) { - - return factory.getLifecycle(lifecycleId); - - } // END getLifecycle - - /** - *

- * Return an Iterator over the set of lifecycle identifiers - * supported by this factory. This set must include the value specified by - * LifecycleFactory.DEFAULT_LIFECYCLE. - *

- */ - public Iterator getLifecycleIds() { - - return factory.getLifecycleIds(); - - } // END getLifecycleIds - - // ---------------------------------------------------------- Public Methods - - /** - *

- * Returns the wrapped {@link LifecycleFactory} instance passed to the - * constructor by the JSF implementation under test. - *

- */ - public LifecycleFactory getWrappedInstance() { - - return factory; - - } // END getWrappedInstance - - /** - *

- * Returns the 'this' LifecycleFactory instance for testing purposes only.. - *

- */ - public LifecycleFactory getWrapped() { - return this; - } -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKRenderKitFactory.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKRenderKitFactory.java deleted file mode 100644 index 2ac133e9b2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TCKRenderKitFactory.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import java.util.Iterator; - -import jakarta.faces.context.FacesContext; -import jakarta.faces.render.RenderKit; -import jakarta.faces.render.RenderKitFactory; - -/** - *

- * A simple wrapper class for FactoryFinder validation. - *

- */ -public class TCKRenderKitFactory extends RenderKitFactory { - - /** - *

- * The @{link RenderKitFactory} instance provided by the JSF implementation - * under test. - *

- */ - private RenderKitFactory factory; - - /** - * Default Constructor. - */ - public TCKRenderKitFactory() { - - System.out.println("[TCKRenderKitFactory] Default CTOR"); - - } - - /** - *

- * Constructs a new TCKRenderKitFactory instance that wraps the default - * {@link RenderKitFactory} instance of the implementation under test. - *

- * - * @param factory - * the {@link RenderKitFactory} of the implementation under test - */ - public TCKRenderKitFactory(RenderKitFactory factory) { - - System.out.println("[TCKRenderKitFactory] Factory CTOR"); - this.factory = factory; - - } // END TCKRenderKitFactory - - // ----------------- Methods from jakarta.faces.application.RenderKitFactory - - /** - *

- * Register the specified {@link jakarta.faces.render.RenderKit} instance, - * associated with the specified renderKitId, to be supported by - * this {@link jakarta.faces.render.RenderKitFactory}, replacing any previously - * registered {@link jakarta.faces.render.RenderKit} for this identifier. - *

- * - * @param renderKitId - * Identifier of the {@link jakarta.faces.render.RenderKit} to register - * @param renderKit - * {@link jakarta.faces.render.RenderKit} instance that we are - * registering - * - * @throws NullPointerException - * if renderKitId or renderKit is - * null - */ - public void addRenderKit(String renderKitId, RenderKit renderKit) { - - factory.addRenderKit(renderKitId, renderKit); - - } // END addRenderKit - - /** - *

- * Return a {@link jakarta.faces.render.RenderKit} instance for the specified - * render kit identifier, possibly customized based on dynamic characteristics - * of the specified {@link jakarta.faces.context.FacesContext}, if - * non-null. If there is no registered - * {@link jakarta.faces.render.RenderKit} for the specified identifier, return - * null. The set of available render kit identifiers is available - * via the getRenderKitIds() method. - *

- * - * @param context - * FacesContext for the request currently being processed, or - * null if none is available. - * @param renderKitId - * Render kit identifier of the requested - * {@link jakarta.faces.render.RenderKit} instance - * - * @throws IllegalArgumentException - * if no {@link jakarta.faces.render.RenderKit} instance can be - * returned for the specified identifier - * @throws NullPointerException - * if renderKitId is null - */ - public RenderKit getRenderKit(FacesContext context, String renderKitId) { - - return factory.getRenderKit(context, renderKitId); - - } // END getRenderKit - - /** - *

- * Return an Iterator over the set of render kit identifiers - * registered with this factory. This set must include the value specified by - * RenderKitFactory.HTML_BASIC_RENDER_KIT. - *

- */ - public Iterator getRenderKitIds() { - - return factory.getRenderKitIds(); - - } // END getRenderKitIds - - // ---------------------------------------------------------- Public Methods - - /** - *

- * Returns the wrapped RenderKitFactory instance passed to the constructor by - * the JSF implementation under test. - *

- */ - public RenderKitFactory getWrappedInstance() { - - return factory; - - } // END getWrappedInstance - - /** - *

- * Returns the 'this' RenderKitFactory instance for testing purposes only.. - *

- */ - public RenderKitFactory getWrapped() { - return this; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TestServlet.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TestServlet.java deleted file mode 100644 index 90dc912265..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/TestServlet.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import java.io.IOException; -import java.io.PrintWriter; - -import com.sun.ts.tests.jsf.common.servlets.HttpTCKServlet; -import com.sun.ts.tests.jsf.common.util.JSFTestUtil; - -import jakarta.faces.FactoryFinder; -import jakarta.faces.application.ApplicationFactory; -import jakarta.faces.context.FacesContextFactory; -import jakarta.faces.lifecycle.LifecycleFactory; -import jakarta.faces.render.RenderKitFactory; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -public final class TestServlet extends HttpTCKServlet { - - /** - *

- * Initialize this Servlet instance. - *

- * - * @param config - * the configuration for this Servlet - * - * @throws jakarta.servlet.ServletException - * indicates initialization failure - */ - public void init(ServletConfig config) throws ServletException { - - super.init(config); - - } // init - - // ------------------------------------------------------------ Test Methods - - public void factoryFinderConfig1Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // validate FactoryFinder can be configured via faces-config in - // /WEB-INF - PrintWriter out = response.getWriter(); - ApplicationFactory factory = (ApplicationFactory) FactoryFinder - .getFactory(FactoryFinder.APPLICATION_FACTORY); - - if (factory == null) { - out.println( - "Test FAILED. Unable to obtain ApplicationFactory" + " instance."); - return; - } - - if (!(factory.getWrapped() instanceof TCKApplicationFactory)) { - out.println("Test FAILED. Unexpected ApplicationFactory returned" - + " by the FactoryFinder."); - out.println("Expected: " + TCKApplicationFactory.class); - out.println("Received: " + factory.getWrapped().getClass()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END factorFinderConfig1Test - - public void factoryFinderConfig2Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // validate FactoryFinder can be configured via jakarta.faces.CONFIG_FILES - // context parameter - PrintWriter out = response.getWriter(); - FacesContextFactory factory = (FacesContextFactory) FactoryFinder - .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); - - if (factory == null) { - out.println( - "Test FAILED. Unable to obtain FacesContextFactory" + " instance."); - return; - } - - if (!(factory.getWrapped() instanceof TCKFacesContextFactory)) { - out.println("Test FAILED. Unexpected FacesContextFactory returned" - + " by the FactoryFinder."); - out.println("Expected: " + TCKFacesContextFactory.class); - out.println("Received: " + factory.getWrapped().getClass()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END factorFinderConfig2Test - - public void factoryFinderConfig3Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // validate FactoryFinder can be configured via META-INF/faces-config.xml - PrintWriter out = response.getWriter(); - LifecycleFactory factory = (LifecycleFactory) FactoryFinder - .getFactory(FactoryFinder.LIFECYCLE_FACTORY); - - if (factory == null) { - out.println( - "Test FAILED. Unable to obtain LifecycleFactory" + " instance."); - return; - } - - if (!(factory instanceof TCKLifecycleFactory)) { - out.println("Test FAILED. Unexpected LifecycleFactory returned" - + " by the FactoryFinder."); - out.println("Expected: " + TCKLifecycleFactory.class); - out.println("Received: " + factory.getClass()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END factorFinderConfig3Test - - public void factoryFinderConfig4Test(HttpServletRequest request, - HttpServletResponse response) throws ServletException, IOException { - - // validate FactoryFinder can be configured via META-INF/faces-config.xml - PrintWriter out = response.getWriter(); - RenderKitFactory factory = (RenderKitFactory) FactoryFinder - .getFactory(FactoryFinder.RENDER_KIT_FACTORY); - - if (factory == null) { - out.println( - "Test FAILED. Unable to obtain RenderKitFactory" + " instance."); - return; - } - - if (!(factory instanceof TCKRenderKitFactory)) { - out.println("Test FAILED. Unexpected RenderKitFactory returned" - + " by the FactoryFinder."); - out.println("Expected: " + TCKRenderKitFactory.class); - out.println("Received: " + factory.getClass()); - return; - } - - out.println(JSFTestUtil.PASS); - - } // END factorFinderConfig4Test - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/URLClient.java b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/URLClient.java deleted file mode 100644 index 743abb97b7..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/URLClient.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.factoryfinder; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_webapp_ff_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * @testName: factoryFinderConfig1Test - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure an ApplicatyionFactory can be specified via a - * faces-config file located in WEB-INF. The test will make - * sure the expected ApplicationFactory instance is returned - * *and* that the JSF implementation property called the - * single argument constructor passing in the default JSF - * ApplicationFactory implementation. - */ - public void factoryFinderConfig1Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "factoryFinderConfig1Test"); - invoke(); - } - - /** - * @testName: factoryFinderConfig2Test - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure an FacesConfigFactory can be specified via a - * faces-config identified by the jakarta.faces.CONFIG_FILES - * context initialization parameter in the web.xml. The test - * will make sure the expected FacesContextFactory instance is - * returned *and* that the JSF implementation property called - * the single argument constructor passing in the default JSF - * FacesContextFactory implementation. - */ - public void factoryFinderConfig2Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "factoryFinderConfig2Test"); - invoke(); - } - - /** - * @testName: factoryFinderConfig3Test - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure an LifecycleFactory can be specified via a - * faces-config file located in META-INF directory of a JAR - * file. The test will make sure the expected LifecycleFactory - * instance is returned *and* that the JSF implementation - * property called the single argument constructor passing in - * the default JSF LifecycleFactory implementation. - */ - public void factoryFinderConfig3Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "factoryFinderConfig3Test"); - invoke(); - } - - /** - * @testName: factoryFinderConfig4Test - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure an RenderKitFactory can be specified via - * META-INF/services facility of a JAR file. The test will - * make sure the expected RenderKitFactory instance is - * returned *and* that the JSF implementation property called - * the single argument constructor passing in the default JSF - * RenderKItFactory implementation. - */ - public void factoryFinderConfig4Test() throws Fault { - TEST_PROPS.setProperty(APITEST, "factoryFinderConfig4Test"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/config/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/config/faces-config.xml deleted file mode 100644 index acfc2a50c5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/config/faces-config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - com.sun.ts.tests.jsf.spec.webapp.factoryfinder.TCKFacesContextFactory - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/faces-config.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/faces-config.xml deleted file mode 100644 index 48330e01d5..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/WEB-INF/faces-config.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - com.sun.ts.tests.jsf.spec.webapp.factoryfinder.TCKApplicationFactory - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/build.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/build.xml deleted file mode 100644 index 146d23fb11..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/build.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.war.sun-web.xml deleted file mode 100644 index 0df42fd1af..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_webapp_ff_web - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.xml b/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.xml deleted file mode 100644 index f1bc063d8e..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/factoryfinder/jsf_webapp_ff_web.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - jsf_webapp_ff - - - - jakarta.faces.CONFIG_FILES - /WEB-INF/config/faces-config.xml - - - - com.sun.faces.validateXml - true - - - - TestServlet - com.sun.ts.tests.jsf.spec.webapp.factoryfinder.TestServlet - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - /faces/* - - - TestServlet - /TestServlet - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/JSFSigTEI.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/JSFSigTEI.java deleted file mode 100644 index 499ead750f..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/JSFSigTEI.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) 2009, 2022 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -public class JSFSigTEI extends SignatureExtraInfo { - - protected String[][] getTaglibDescriptorInfo() { - return new String[][] { - { "/WEB-INF/jsf_core.tld", "jakarta.faces.core" }, - { "/WEB-INF/html_basic.tld", "jakarta.faces.html" }, }; - } - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/ServletContextHolder.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/ServletContextHolder.java deleted file mode 100644 index f475326652..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/ServletContextHolder.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)ServletContextHolder.java 1.1 04/11/05 - */ -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import jakarta.servlet.ServletContext; - -/** - * This is necessary since the ServletContext is needed in order to - * run the tests and there is no way to get access to the - * ServletContext when running TagExtraInfo.validate() is called. - * - * @see SignatureInitListener - */ -public class ServletContextHolder { - - private static ServletContext servletContext; - - // ---------------------------------------------------------- Public Methods - - public static ServletContext getServletContext() { - - return servletContext; - - } // END getServletContext - - public static void setServletContext(ServletContext context) { - - servletContext = context; - - } // END setServletContext - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureExtraInfo.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureExtraInfo.java deleted file mode 100644 index 0e237d1273..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureExtraInfo.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) 2009, 2022 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)SignatureExtraInfo.java 1.1 04/11/05 - */ -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import jakarta.servlet.ServletContext; -import jakarta.servlet.jsp.tagext.TagData; -import jakarta.servlet.jsp.tagext.TagExtraInfo; -import jakarta.servlet.jsp.tagext.TagLibraryInfo; -import jakarta.servlet.jsp.tagext.ValidationMessage; - -/** - *

- * This class provides the foundation for performing validation of taglibraries. - *

- * - * TCKs wishing to perform such validation need to provide the following: - *
    - *
  • a concrete implementation of this class
  • - *
  • A version of the signaturetest-template.tld which refers to the concrete - * SignatureExtraInfo mentioned above
  • - *
  • A version of the web-template.xml to be included in their archive. This - * template has a listener reference for SignatureInitListener
  • - *
  • A JSP page that will be invoked once the archive is deployed which - * contains taglib directives for all of the tag libraries that need to be - * tested, and uses the SignatureTestTag at some point in the page so that the - * SignatureExtraInfo implementation is invoked.
  • - *
- */ -public abstract class SignatureExtraInfo extends TagExtraInfo { - - // ----------------------------------------------- Methods from TagExtraInfo - - public ValidationMessage[] validate(TagData tagData) { - - String[][] tldTestInfo = getTaglibDescriptorInfo(); - ServletContext context = ServletContextHolder.getServletContext(); - - List validationMessages = new ArrayList(); - List passedLibraryList = new ArrayList(); - - for (int i = 0; i < tldTestInfo.length; i++) { - - TCKTagLibraryInfo controlTli = new TCKTagLibraryInfo("", - tldTestInfo[i][0], context); - - TagLibraryInfo[] testTlis = getTagInfo().getTagLibrary() - .getTagLibraryInfos(); - - boolean found = false; - for (int j = 0; j < testTlis.length; j++) { - if (tldTestInfo[i][1].equals(testTlis[j].getReliableURN())) { - found = true; - TaglibSigValidator validator = new TaglibSigValidator(controlTli, - testTlis[j]); - String[] messages = validator.validate(); - if (messages.length == 0) { - passedLibraryList - .add("Taglibrary '" + tldTestInfo[i][1] + "' PASSED"); - } else { - validationMessages - .add("Taglibrary '" + tldTestInfo[i][1] + "' FAILED"); - validationMessages.addAll(Arrays.asList(messages)); - } - } - } - - if (!found) { - String message = "Unable to obtain TagLibraryInfo from " - + "container for URI '" + tldTestInfo[i][1] + '\''; - validationMessages.add(message); - } - } - - context.setAttribute("com.sun.tck.taglibsig.failedmessages", - validationMessages); - context.setAttribute("com.sun.tck.taglibsig.passedmessages", - passedLibraryList); - - return new ValidationMessage[] {}; - - } // END validate - - // ------------------------------------------------------- Protected Methods - - /** - * Return two dimensional array containing a mapping where the first element - * is the resource that contains the 'master' tld, the second element contains - * the well known URI for which we can obtain a matching TagLibraryInfo from - * the container. Example: return new String[][] { { "/jsf-core.tld", - * "jakarta.faces.core" } }; - */ - protected abstract String[][] getTaglibDescriptorInfo(); - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureInitListener.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureInitListener.java deleted file mode 100644 index 59ac3004bc..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureInitListener.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)SignatureInitListener.java 1.1 04/11/05 - */ - -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import jakarta.servlet.ServletContextEvent; -import jakarta.servlet.ServletContextListener; - -/** - * A ServletContextListener implementation that will store the - * ServletContext within the ServletContextHolder - * class. - * - * @see ServletContextHolder - */ -public class SignatureInitListener implements ServletContextListener { - - // ------------------------------------- Methods from ServletContextListener - - public void contextInitialized(ServletContextEvent servletContextEvent) { - - System.out.println("SignatureInitListener: contextInitialized"); - ServletContextHolder - .setServletContext(servletContextEvent.getServletContext()); - } // END contextInitialized - - public void contextDestroyed(ServletContextEvent servletContextEvent) { - - System.out.println("SignatureInitListener: contextDestroyed"); - ServletContextHolder.setServletContext(null); - - } // END contextDestoryed - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureTestTag.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureTestTag.java deleted file mode 100644 index 39695f7ba3..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/SignatureTestTag.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)SignatureTestTag.java 1.1 04/11/05 - */ -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import java.io.IOException; -import java.util.List; - -import jakarta.servlet.jsp.JspException; -import jakarta.servlet.jsp.JspWriter; -import jakarta.servlet.jsp.PageContext; -import jakarta.servlet.jsp.tagext.TagSupport; - -/** - * This is only used to associate a TagExtraInfo with. - */ -public class SignatureTestTag extends TagSupport { - - // -------------------------------------- Methods from jakarta.servlet.jsp.Tag - - public int doEndTag() throws JspException { - List messages = (List) pageContext.getAttribute( - "com.sun.tck.taglibsig.failedmessages", PageContext.APPLICATION_SCOPE); - - JspWriter out = pageContext.getOut(); - if (messages.size() > 0) { - try { - out.println("The following Taglibraries FAILED"); - out.println("----------------------------------------------\n"); - out.println(); - for (int i = 0, size = messages.size(); i < size; i++) { - out.println(messages.get(i)); - } - out.println('\n'); - } catch (IOException ioe) { - throw new JspException(ioe); - } - } - - messages = (List) pageContext.getAttribute( - "com.sun.tck.taglibsig.passedmessages", PageContext.APPLICATION_SCOPE); - if (messages.size() > 0) { - try { - out.println("The following Taglibraries PASSED"); - out.println("----------------------------------------------\n"); - for (int i = 0, size = messages.size(); i < size; i++) { - out.println(messages.get(i)); - } - out.println('\n'); - } catch (IOException ioe) { - throw new JspException(ioe); - } - } - - try { - out.println("\n\nNOTE: In order to see any changes to the" - + " result, the test application must be redeployed"); - } catch (IOException ioe) { - throw new JspException(ioe); - } - - return super.doEndTag(); - - } // END doEndTag - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TCKTagLibraryInfo.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TCKTagLibraryInfo.java deleted file mode 100644 index ff4728a4a2..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TCKTagLibraryInfo.java +++ /dev/null @@ -1,689 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)TCKTagLibraryInfo.java 1.1 04/11/05 - */ -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import java.io.InputStream; -import java.io.StringReader; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Stack; - -import javax.xml.parsers.SAXParser; -import javax.xml.parsers.SAXParserFactory; - -import org.xml.sax.Attributes; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.helpers.DefaultHandler; - -import jakarta.servlet.ServletContext; -import jakarta.servlet.jsp.tagext.FunctionInfo; -import jakarta.servlet.jsp.tagext.TagAttributeInfo; -import jakarta.servlet.jsp.tagext.TagInfo; -import jakarta.servlet.jsp.tagext.TagLibraryInfo; - -/** - * This class represents the control Taglibrary which will be used - * to validate the taglibrary under test against. - */ -public class TCKTagLibraryInfo extends TagLibraryInfo { - - protected TagLibraryInfo tagLibraryInfo; - - // ------------------------------------------------------------ Constructors - - /** - *

- * Constructs a complete TagLibraryInfo instance based on the - * content parsed from the TLD referenced by the uri parameter. - *

- * - * @param prefix - * ignored - * @param uri - * the context-relative path to the control TLD - * @param context - * the ServletContext - */ - public TCKTagLibraryInfo(String prefix, String uri, ServletContext context) { - super(prefix, uri); - TLDParser parser = new TLDParser(); - parser.populate(context.getResourceAsStream(uri)); - context.log(parser.debug()); - - } // END TCKTagLibraryInfo - - protected TCKTagLibraryInfo(String prefix, String uri) { - super(prefix, uri); - tagLibraryInfo = this; - - } // END TCKTagLibraryInfo - - // --------------------------------------------- Methods from TagLibraryInfo - - public TagLibraryInfo[] getTagLibraryInfos() { - - return new TagLibraryInfo[] {}; - - } // END getTagLibraryInfos - - // ----------------------------------------------------------- Inner Classes - - private class TLDParser extends DefaultHandler { - - /* - * Elements we're interested in inspecting for TLD signatures tests. - */ - private static final String TLD_TAGLIB = "taglib"; - - private static final String TLD_TAGLIB_JSP_VERSION = TLD_TAGLIB - + "/jsp-version"; - - private static final String TLD_TAGLIB_TLIB_VERSION = TLD_TAGLIB - + "/tlib-version"; - - private static final String TLD_TAGLIB_SHORT_NAME = TLD_TAGLIB - + "/short-name"; - - private static final String TLD_TAGLIB_URI = TLD_TAGLIB + "/uri"; - - private static final String TLD_TAGLIB_TAG = TLD_TAGLIB + "/tag"; - - private static final String TLD_TAGLIB_TAG_NAME = TLD_TAGLIB_TAG + "/name"; - - private static final String TLD_TAGLIB_TAG_CLASS = TLD_TAGLIB_TAG - + "/tag-class"; - - private static final String TLD_TAGLIB_TAG_BODY_CONTENT = TLD_TAGLIB_TAG - + "/body-content"; - - private static final String TLD_TAGLIB_TAG_ATTR = TLD_TAGLIB_TAG - + "/attribute"; - - private static final String TLD_TAGLIB_TAG_ATTR_NAME = TLD_TAGLIB_TAG_ATTR - + "/name"; - - private static final String TLD_TAGLIB_TAG_ATTR_REQ = TLD_TAGLIB_TAG_ATTR - + "/required"; - - private static final String TLD_TAGLIB_TAG_ATTR_RTEXPR = TLD_TAGLIB_TAG_ATTR - + "/rtexprvalue"; - - private static final String TLD_TAGLIB_TAG_ATTR_FRAGMENT = TLD_TAGLIB_TAG_ATTR - + "/fragment"; - - private static final String TLD_TAGLIB_TAG_ATTR_DEFRD_VAL_TYPE = TLD_TAGLIB_TAG_ATTR - + "/deferred-value/type"; - - private static final String TLD_TAGLIB_TAG_ATTR_DEFRD_METH_SIG = TLD_TAGLIB_TAG_ATTR - + "/deferred-method/method-signature"; - - private static final String TLD_TAGLIB_TAG_ATTR_TYPE = TLD_TAGLIB_TAG_ATTR - + "/type"; - - private static final String TLD_TAGLIB_FUNCTION = TLD_TAGLIB + "/function"; - - private static final String TLD_TAGLIB_FUNCTION_NAME = TLD_TAGLIB_FUNCTION - + "/name"; - - private static final String TLD_TAGLIB_FUNCTION_CLASS = TLD_TAGLIB_FUNCTION - + "/function-class"; - - private static final String TLD_TAGLIB_FUNCTION_SIG = TLD_TAGLIB_FUNCTION - + "/function-signature"; - - protected StringBuffer content; - - protected Stack objectStack; - - protected Stack pathStack; - - private List tagList; - - private List functionList; - - private Map methodMap; - - private String currentPath; - - // -------------------------------------------------------- Constructors - - TLDParser() { - - tagList = new ArrayList(); - functionList = new ArrayList(); - methodMap = new HashMap(); - pathStack = new Stack(); - objectStack = new Stack(); - - // TagHolder - methodMap.put(TLD_TAGLIB_TAG_NAME, - new MethodInfo("setName", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_CLASS, - new MethodInfo("setClass", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR, new MethodInfo("addAttribute", - new Class[] { TagAttributeInfo.class })); - methodMap.put(TLD_TAGLIB_TAG_BODY_CONTENT, - new MethodInfo("setBodyContent", new Class[] { String.class })); - - // AttributeHolder - methodMap.put(TLD_TAGLIB_TAG_ATTR_NAME, - new MethodInfo("setName", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_TYPE, - new MethodInfo("setAttributeType", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_REQ, - new MethodInfo("setRequired", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_RTEXPR, - new MethodInfo("setRtexpr", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_FRAGMENT, - new MethodInfo("setFragment", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_DEFRD_VAL_TYPE, - new MethodInfo("setDeferredValueType", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_TAG_ATTR_DEFRD_METH_SIG, - new MethodInfo("setDeferredMethodSig", new Class[] { String.class })); - - // FunctionHolder - methodMap.put(TLD_TAGLIB_FUNCTION_NAME, - new MethodInfo("setName", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_FUNCTION_CLASS, - new MethodInfo("setClass", new Class[] { String.class })); - methodMap.put(TLD_TAGLIB_FUNCTION_SIG, - new MethodInfo("setSignature", new Class[] { String.class })); - - } // END TLDParser - - // ------------------------------------------------------ Public Methods - - public void populate(InputStream tldInputStream) { - - try { - SAXParserFactory parserFactory = getConfiguredFactory(); - SAXParser parser = parserFactory.newSAXParser(); - parser.parse(tldInputStream, this); - } catch (Exception e) { - throw new RuntimeException(e); - } - - } // END populate - - public String debug() { - - StringBuffer sb = new StringBuffer(128); - sb.append("[Taglibrary Info]\n"); - sb.append("JSP Version: ").append(jspversion).append('\n'); - sb.append("Taglibrary Version: ").append(tlibversion).append('\n'); - sb.append("URI: ").append(uri).append('\n'); - - if (tags.length > 0) { - sb.append("-------- TAGS ----------\n"); - for (int i = 0; i < tags.length; i++) { - sb.append("Tag Name: ").append(tags[i].getTagName()).append('\n'); - sb.append("Tag Class: ").append(tags[i].getTagClassName()) - .append('\n'); - sb.append("\t---------- Attributes ---------\n"); - TagAttributeInfo[] attributes = tags[i].getAttributes(); - if (attributes.length > 0) { - for (int ii = 0; ii < attributes.length; ii++) { - sb.append("\tName: ").append(attributes[ii].getName()) - .append('\n'); - if (attributes[ii].isDeferredValue()) { - sb.append("\tDeferred Value: true\n"); - sb.append("\tDeferred Type: ") - .append(attributes[ii].getExpectedTypeName()).append('\n'); - } else if (attributes[ii].isDeferredMethod()) { - sb.append("\tDeferred Method: true\n"); - sb.append("\tSignature: ") - .append(attributes[ii].getMethodSignature()).append('\n'); - } else { - sb.append("\tType: ").append(attributes[ii].getTypeName()) - .append('\n'); - sb.append("\tRequired: ").append(attributes[ii].isRequired()) - .append('\n'); - sb.append("\tRtexpr: ") - .append(attributes[ii].canBeRequestTime()).append('\n'); - sb.append("\tFragment ").append(attributes[ii].isFragment()) - .append('\n'); - } - sb.append('\n'); - } - } - sb.append('\n'); - } - } - - if (functions.length > 0) { - sb.append("-------- Functions ---------"); - for (int i = 0; i < functions.length; i++) { - sb.append("Name: ").append(functions[i].getName()).append('\n'); - sb.append("Function Class: ").append(functions[i].getFunctionClass()) - .append('\n'); - sb.append("Signature: ").append(functions[i].getFunctionSignature()) - .append('\n'); - } - sb.append('\n'); - } - - return sb.toString(); - - } // END debug - - // ----------------------------------------- Methods from DefaultHandler - - public InputSource resolveEntity(String publicId, String systemId) - throws SAXException { - - return new InputSource(new StringReader("")); - - } // END resolveEntity - - public void startElement(String uri, String localName, String qName, - Attributes attributes) throws SAXException { - - pathStack.push(localName); - updatePath(); - content = new StringBuffer(32); - if (TLD_TAGLIB.equals(currentPath)) { - jspversion = attributes.getValue("version"); - } else if (TLD_TAGLIB_TAG.equals(currentPath)) { - objectStack.push(new TagHolder()); - } else if (TLD_TAGLIB_TAG_ATTR.equals(currentPath)) { - objectStack.push(new AttributeHolder()); - } else if (TLD_TAGLIB_FUNCTION.equals(currentPath)) { - objectStack.push(new FunctionHolder()); - } - - } // END startElement - - public void characters(char[] ch, int start, int length) - throws SAXException { - - content.append(ch, start, length); - - } // END characters - - public void endElement(String uri, String localName, String qName) - throws SAXException { - - String contentValue = content.toString().trim(); - if (TLD_TAGLIB_TLIB_VERSION.equals(currentPath)) { - tlibversion = contentValue; - } else if (TLD_TAGLIB_JSP_VERSION.equals(currentPath)) { - jspversion = contentValue; - } else if (TLD_TAGLIB_SHORT_NAME.equals(currentPath)) { - shortname = contentValue; - } else if (TLD_TAGLIB_URI.equals(currentPath)) { - urn = contentValue; - } else if (TLD_TAGLIB_TAG.equals(currentPath) - || TLD_TAGLIB_TAG_ATTR.equals(currentPath) - || TLD_TAGLIB_FUNCTION.equals(currentPath)) { - Holder holder = (Holder) objectStack.pop(); - holder.pushData(); - } else { - if (objectStack.size() > 0) { - MethodInfo info = (MethodInfo) methodMap.get(currentPath); - if (info != null) { - Object holder = objectStack.peek(); - callMethod(info, holder, new Object[] { contentValue }); - } - } - } - - pathStack.pop(); - updatePath(); - - } // END endElement - - public void endDocument() throws SAXException { - - // set the protected ivars so when their associated method - // is called, something useful is returned. - functions = (FunctionInfo[]) functionList - .toArray(new FunctionInfo[functionList.size()]); - tags = (TagInfo[]) tagList.toArray(new TagInfo[tagList.size()]); - - } // END endDocument - - // ----------------------------------------------------- Protected Methods - - protected void callMethod(MethodInfo info, Object target, Object[] params) { - - try { - Method method = target.getClass() - .getDeclaredMethod(info.getMethodName(), info.getParamType()); - method.invoke(target, params); - } catch (Exception e) { - throw new RuntimeException(e); - } - - } // END callMethod - - // ----------------------------------------------------- Private Methods - - /** - * When called, update the currentPath instance variable with an XPath-like - * path based on the path elements contained in the stack. - */ - private void updatePath() { - StringBuffer sb = new StringBuffer(); - for (Iterator i = pathStack.iterator(); i.hasNext();) { - sb.append(i.next()); - if (i.hasNext()) { - sb.append('/'); - } - } - - currentPath = sb.toString(); - - } // END getCurrentPath - - /** - *

- * Return a SAXParserFactory instance that is non-validating - * and is namespace aware. - *

- * - * @return configured SAXParserFactory - */ - private SAXParserFactory getConfiguredFactory() { - - SAXParserFactory factory = SAXParserFactory.newInstance(); - factory.setValidating(false); - factory.setNamespaceAware(true); - return factory; - - } // END getConfiguredFactory - - // ------------------------------------------------------- Inner Classes - - /** - * Base class defining a common way to push data to the outter class - * TCKTagLibraryInfo. - */ - private abstract class Holder { - - // ------------------------------------------------ Abstract Methods - - public abstract void pushData(); - - } - - /** - *

- * Simple structure for holding method name and parameter type information. - *

- */ - private class MethodInfo { - - private String methodName; - - private Class[] paramType; - - // ---------------------------------------------------- Constructors - - MethodInfo(String methodName, Class[] paramType) { - - this.methodName = methodName; - this.paramType = paramType; - - } // END MethodInfo - - // -------------------------------------------------- Public Methods - - public String getMethodName() { - - return methodName; - - } // END getMethodName - - public Class[] getParamType() { - - return paramType; - - } // END getParamType - - } // END MethodInfo - - /** - *

- * This class is a temporary holder of parsed Tag data. Once all Tag related - * data has been parsed, the content of this class will be used to construct - * a new TagInfo instance. - *

- */ - private class TagHolder extends Holder { - - String name; - - String clazz; - - String bodyContent; - - List attributes; - - // ---------------------------------------------------- Constructors - - TagHolder() { - attributes = new ArrayList(); - } - - // --------------------------------------------- Methods From Holder - - public void pushData() { - - TagAttributeInfo[] attrInfo = (TagAttributeInfo[]) attributes - .toArray(new TagAttributeInfo[attributes.size()]); - - TagInfo info = new TagInfo(name, clazz, bodyContent, null, - tagLibraryInfo, null, attrInfo); - - tagList.add(info); - - } // END pushData - - // -------------------------------------------------- Public Methods - - public void setName(String name) { - - this.name = name; - - } // END setName - - public void setClass(String clazz) { - - this.clazz = clazz; - - } // END setClass - - public void setBodyContent(String bodyContent) { - - this.bodyContent = bodyContent; - - } // END setBodyContent - - public void addAttribute(TagAttributeInfo attribute) { - - this.attributes.add(attribute); - - } // END addAttribute - - } // END TagHolder - - /** - *

- * This class is a temporary holder of parsed Tag attribute data. Once all - * attribute related data has been parsed, the content of this class will be - * used to construct a new AttributeInfo instance. - *

- */ - private class AttributeHolder extends Holder { - - private String name; - - private String attributeType; - - private String isRequired; - - private String isRtexpr; - - private String isDeferredValue; - - private String isDeferredMethod; - - private String isFragment; - - private String deferredValueType; - - private String deferredMethodSig; - - // ---------------------------------------------------- Constructors - - AttributeHolder() { - } - - // --------------------------------------------- Methods from Holder - - public void pushData() { - - TagAttributeInfo info = new TagAttributeInfo(name, - - ((isRequired == null) ? false - : Boolean.valueOf(isRequired).booleanValue()), - - ((attributeType == null) ? "" : attributeType), - - ((isRtexpr == null) ? false - : Boolean.valueOf(isRtexpr).booleanValue()), - - ((isFragment == null) ? false - : Boolean.valueOf(isFragment).booleanValue()), - - "", // description - not too worried about this - - ((isDeferredValue == null) ? false - : Boolean.valueOf(isDeferredValue).booleanValue()), - - ((isDeferredMethod == null) ? false - : Boolean.valueOf(isDeferredMethod).booleanValue()), - - deferredValueType, deferredMethodSig); - TagHolder holder = (TagHolder) objectStack.peek(); - holder.addAttribute(info); - - } // END pushData - - // -------------------------------------------------- Public Methods - - public void setName(String name) { - - this.name = name; - - } // END setName - - public void setAttributeType(String attributeType) { - - this.attributeType = attributeType; - - } // END setAttributeType - - public void setRequired(String required) { - - isRequired = required; - - } // END setRequired - - public void setRtexpr(String rtexpr) { - - isRtexpr = rtexpr; - - } // END setRtexpr - - public void setFragment(String fragment) { - - isFragment = fragment; - - } // END setFragment - - public void setDeferredValueType(String deferredValueType) { - - this.deferredValueType = deferredValueType; - isDeferredValue = "true"; - - } // END setDefferredValueType - - public void setDeferredMethodSig(String deferredMethodSig) { - - this.deferredMethodSig = deferredMethodSig; - isDeferredMethod = "true"; - - } // END setDeferredMethodSig - - } // END AttributeHolder - - private class FunctionHolder extends Holder { - - private String name; - - private String clazz; - - private String signature; - - // ---------------------------------------------------- Constructors - - FunctionHolder() { - } - - // --------------------------------------------- Methods from Holder - - public void pushData() { - - FunctionInfo info = new FunctionInfo(name, clazz, signature); - functionList.add(info); - - } // END pushData - - // -------------------------------------------------- Public Methods - - public void setName(String name) { - - this.name = name; - - } // END setName - - public void setClass(String clazz) { - - this.clazz = clazz; - - } // END setClass - - public void setSignature(String signature) { - - this.signature = signature; - - } // END setSignature - - } // END FunctionHolder - - } // END TLDParser - -} // END TCKTagLibraryInfo diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TaglibSigValidator.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TaglibSigValidator.java deleted file mode 100644 index e15a8a633c..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/TaglibSigValidator.java +++ /dev/null @@ -1,523 +0,0 @@ -/* - * Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * @(#)TaglibSigValidator.java 1.1 04/11/05 - */ -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import jakarta.servlet.jsp.tagext.FunctionInfo; -import jakarta.servlet.jsp.tagext.TagAttributeInfo; -import jakarta.servlet.jsp.tagext.TagInfo; -import jakarta.servlet.jsp.tagext.TagLibraryInfo; - -public class TaglibSigValidator { - - private Map attributeExcludes; - - private TCKTagLibraryInfo control; - - private TagLibraryInfo underTest; - - private List messages; - - String uri; - - // ------------------------------------------------------------ Constructors - - public TaglibSigValidator(TCKTagLibraryInfo control, - TagLibraryInfo underTest) { - - this.control = control; - this.underTest = underTest; - messages = new ArrayList(); - uri = control.getReliableURN(); - attributeExcludes = new HashMap(); - - } // END TaglibSigValidator - - // ---------------------------------------------------------- Public Methods - - /** - *

- * When called, validation between the control TagLibraryInfo and the - * TagLibraryInfo under test will be compared. If there are any errors during - * the validation, they will be returned as an array of Strings. If there are - * no errors, a zero-length array will be returned. - *

- */ - public String[] validate() { - - validateTaglibVersion(); - validateTags(); - validateFunctions(); - - return (String[]) messages.toArray(new String[messages.size()]); - - } // END validate - - // --------------------------------------------------------- Private Methods - - private void validateTaglibVersion() { - - // String tlibVersion = control.getRequiredVersion(); - // if (tlibVersion != null && tlibVersion.length() > 0) { - // if (!tlibVersion) - // } - - } // END validateTaglibVersion - - private void validateTags() { - - String prefix = '[' + uri + "] - "; - TagInfo[] controlTags = control.getTags(); - TagInfo[] tagsUnderTest = underTest.getTags(); - - String[] controlNames = new String[controlTags.length]; - String[] underTestNames = new String[tagsUnderTest.length]; - - for (int i = 0; i < controlNames.length; i++) { - controlNames[i] = controlTags[i].getTagName(); - } - for (int i = 0; i < underTestNames.length; i++) { - underTestNames[i] = tagsUnderTest[i].getTagName(); - } - - Arrays.sort(controlNames); - Arrays.sort(underTestNames); - - // validate we have the right number of tags between the two - // libraries and that the names mesh. - if (!Arrays.equals(controlNames, underTestNames)) { - // ok, there was a mismatch somewhere...figure out the - // differences - List notFound = new ArrayList(); - List extra = new ArrayList(); - // first pass: find the values that exist in control, but not in - // under test - for (int i = 0; i < controlNames.length; i++) { - if (Arrays.binarySearch(underTestNames, controlNames[i]) < 0) { - notFound.add(controlNames[i]); - } - } - - // second pass: find - for (int i = 0; i < underTestNames.length; i++) { - if (Arrays.binarySearch(controlNames, underTestNames[i]) < 0) { - extra.add(underTestNames[i]); - } - } - - if (notFound.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following tags were not found in the "); - sb.append("taglibrary under test:\n"); - for (int i = 0, size = notFound.size(); i < size; i++) { - sb.append('\t').append(notFound.get(i)).append('\n'); - } - messages.add(sb.toString()); - } - - if (extra.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following tags were defined in the "); - sb.append("taglibrary under test and not defined by the "); - sb.append("specification:\n"); - for (int i = 0, size = extra.size(); i < size; i++) { - sb.append('\t').append(extra.get(i)).append('\n'); - } - messages.add(sb.toString()); - } - } else { - validateTagAttributes(controlNames); - } - - } // END validateTags - - private void validateTagAttributes(String[] tagNames) { - - for (int i = 0; i < tagNames.length; i++) { - - String prefix = '[' + uri + ':' + tagNames[i] + "] - "; - - TagAttributeInfo[] controlAttrs = control.getTag(tagNames[i]) - .getAttributes(); - TagAttributeInfo[] testAttrs = underTest.getTag(tagNames[i]) - .getAttributes(); - - String[] controlAttrNames = new String[controlAttrs.length]; - String[] testAttrNames = new String[testAttrs.length]; - - for (int ii = 0; ii < controlAttrs.length; ii++) { - controlAttrNames[ii] = controlAttrs[ii].getName(); - } - - for (int ii = 0; ii < testAttrs.length; ii++) { - testAttrNames[ii] = testAttrs[ii].getName(); - } - - Arrays.sort(controlAttrNames); - Arrays.sort(testAttrNames); - - if (!Arrays.equals(controlAttrNames, testAttrNames)) { - List notFound = new ArrayList(); - List extra = new ArrayList(); - // first pass: find the values that exist in control, but not in - // under test - for (int ii = 0; ii < controlAttrNames.length; ii++) { - if (Arrays.binarySearch(testAttrNames, controlAttrNames[ii]) < 0) { - notFound.add(controlAttrNames[ii]); - } - } - - // second pass: find - for (int ii = 0; ii < testAttrNames.length; ii++) { - if (Arrays.binarySearch(controlAttrNames, testAttrNames[ii]) < 0) { - extra.add(testAttrNames[ii]); - } - } - - if (notFound.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following attributes for tag '"); - sb.append(tagNames[i]).append("' were not found in the "); - sb.append("taglibrary under test:\n"); - for (int ii = 0, size = notFound.size(); ii < size; ii++) { - sb.append('\t').append(notFound.get(ii)).append('\n'); - } - messages.add(sb.toString()); - } - - if (extra.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following attributes for tag '"); - sb.append(tagNames[i]).append("' were defined in the "); - sb.append("taglibrary under test and not defined by the "); - sb.append("specification:\n"); - for (int ii = 0, size = extra.size(); ii < size; ii++) { - sb.append('\t').append(extra.get(ii)).append('\n'); - } - messages.add(sb.toString()); - } - } else { - - for (int k = 0; k < controlAttrs.length; k++) { - for (int n = 0; n < testAttrs.length; n++) { - if (controlAttrs[k].getName().equals(testAttrs[n].getName())) { - validateAttribute(tagNames[i], controlAttrs[k], testAttrs[n]); - } - } - } - - } - } - - } // END validateAttributes - - private void validateAttribute(String tagName, TagAttributeInfo controlAttr, - TagAttributeInfo testAttr) { - - String attrName = controlAttr.getName(); - String[] excludes = attributeExcludes.get(tagName); - if (excludes != null) { - Arrays.sort(excludes); - if (Arrays.binarySearch(excludes, attrName) >= 0) { - System.out.println("Attribute " + attrName + " of tag " + tagName - + " is excluded from processing"); - return; - } - } - String prefix = '[' + uri + ':' + tagName + ':' + attrName + "] - "; - - boolean controlRequired = controlAttr.isRequired(); - boolean testRequired = testAttr.isRequired(); - if (controlRequired != testRequired) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("Mismatch on required value configuration - "); - sb.append("expected: ").append(controlRequired); - sb.append(", received: ").append(testRequired); - messages.add(sb.toString()); - } - - if (controlAttr.isDeferredValue()) { - if (!testAttr.isDeferredValue()) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("attribute is not a deferred value"); - messages.add(sb.toString()); - } else { - // validate the deferred value type. - String controlType = fixType(controlAttr.getExpectedTypeName()); - String testType = fixType(testAttr.getExpectedTypeName()); - if (controlAttr.getExpectedTypeName() == null) { - controlType = "java.lang.Object"; - } - - if (testType == null) { - testType = "java.lang.Object"; - } - - if (!controlType.equals(testType)) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("Expected deferred value type to be '"); - sb.append(controlType).append("', found '"); - sb.append(testType).append('\''); - messages.add(sb.toString()); - } - } - } else if (controlAttr.isDeferredMethod()) { - if (!testAttr.isDeferredMethod()) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("attribute is not a deferred method"); - messages.add(sb.toString()); - } else { - String controlSig = controlAttr.getMethodSignature(); - String testSig = testAttr.getMethodSignature(); - - if (!signaturesAreEqual(controlSig, testSig)) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("deferred-method signature mismatch on return"); - sb.append(" types and/or parameter types/order - expected: '"); - sb.append(controlSig).append("', received: '"); - sb.append(testSig).append('\''); - messages.add(sb.toString()); - } - } - } else { - boolean controlRequestTime = controlAttr.canBeRequestTime(); - boolean testRequestTime = testAttr.canBeRequestTime(); - if (controlRequestTime != testRequestTime) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("Mismatch on rtexpr value configuration - "); - sb.append("expected: ").append(controlRequestTime); - sb.append(", received: ").append(testRequestTime); - messages.add(sb.toString()); - } - - if (controlRequestTime) { - // if the attribute can accept request time values, validate - // the type - String controlType = fixType(controlAttr.getTypeName()); - String testType = fixType(testAttr.getTypeName()); - if (testType == null) { - testType = ""; - } - if (!controlType.equals(testType)) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("Incorrect attribute type for attribute '"); - sb.append(attrName).append("' for tag '"); - sb.append(tagName).append("' - Expected '"); - sb.append(controlType); - sb.append("', found '").append(testType); - sb.append('\''); - messages.add(sb.toString()); - } - } - } - - } // END validateAttibute - - public void validateFunctions() { - - String prefix = '[' + uri + "] - "; - FunctionInfo[] controlFunctions = control.getFunctions(); - FunctionInfo[] testFunctions = underTest.getFunctions(); - - String[] controlFunctionNames = new String[controlFunctions.length]; - String[] testFunctionNames = new String[testFunctions.length]; - - for (int i = 0; i < controlFunctions.length; i++) { - controlFunctionNames[i] = controlFunctions[i].getName(); - } - - for (int i = 0; i < testFunctions.length; i++) { - testFunctionNames[i] = testFunctions[i].getName(); - } - - Arrays.sort(controlFunctionNames); - Arrays.sort(testFunctionNames); - - if (!Arrays.equals(controlFunctionNames, testFunctionNames)) { - - List notFound = new ArrayList(); - List extra = new ArrayList(); - - // first pass: find the values that exist in control, but not in - // under test - for (int ii = 0; ii < controlFunctionNames.length; ii++) { - if (Arrays.binarySearch(testFunctionNames, - controlFunctionNames[ii]) < 0) { - notFound.add(controlFunctionNames[ii]); - } - } - - // second pass: find - for (int ii = 0; ii < testFunctionNames.length; ii++) { - if (Arrays.binarySearch(controlFunctionNames, - testFunctionNames[ii]) < 0) { - extra.add(testFunctionNames[ii]); - } - } - - if (notFound.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following functions were not found in the "); - sb.append("taglibrary under test:\n"); - for (int ii = 0, size = notFound.size(); ii < size; ii++) { - sb.append('\t').append(notFound.get(ii)).append('\n'); - } - messages.add(sb.toString()); - } - - if (extra.size() > 0) { - StringBuffer sb = new StringBuffer(); - sb.append(prefix); - sb.append("The following functions "); - sb.append(" were defined in the "); - sb.append("taglibrary under test and not defined by the "); - sb.append("specification:\n"); - for (int ii = 0, size = extra.size(); ii < size; ii++) { - sb.append('\t').append(extra.get(ii)).append('\n'); - } - messages.add(sb.toString()); - } - } else { - // the names match up, now confirm the signatures - for (int i = 0; i < controlFunctions.length; i++) { - String functionName = controlFunctions[i].getName(); - prefix = '[' + uri + ':' + functionName + "] - "; - for (int j = 0; j < testFunctions.length; j++) { - if (functionName.equals(testFunctions[j].getName())) { - if (!signaturesAreEqual(controlFunctions[i].getFunctionSignature(), - testFunctions[j].getFunctionSignature())) { - StringBuffer sb = new StringBuffer(prefix); - sb.append("Function signature mismatch on"); - sb.append(" return type and/or parameter"); - sb.append(" type/order - expected: '"); - sb.append(controlFunctions[i].getFunctionSignature()); - sb.append("', received '"); - sb.append(testFunctions[j].getFunctionSignature()); - sb.append('\''); - messages.add(sb.toString()); - } - } - } - } - } - - } // END validateFunctions - - /** - * Performs equality validation of the signatures based on the defined return - * type and the types and order of the parameters. If all are equal, this - * method returns true otherwise, it returns false - * - * @param controlSig - * the expected signature - * @param testSig - * the signature to validate - * @return true if the signatures are equal otherwise - * false - */ - private boolean signaturesAreEqual(String controlSig, String testSig) { - - // we're only going to pay attention to the return and parameter types. - String controlRetType = fixType( - controlSig.substring(0, controlSig.indexOf(' '))); - String[] controlParamsTypes = getParamTypes(controlSig - .substring(controlSig.indexOf('(') + 1, controlSig.indexOf(')')) - .trim()); - - String testRetType = fixType(testSig.substring(0, testSig.indexOf(' '))); - String[] testParamsTypes = getParamTypes(testSig - .substring(testSig.indexOf('(') + 1, testSig.indexOf(')')).trim()); - - if (!controlRetType.equals(testRetType)) { - return false; - } - - if (controlParamsTypes.length != testParamsTypes.length) { - return false; - } - - for (int i = 0; i < controlParamsTypes.length; i++) { - if (!controlParamsTypes[i].equals(testParamsTypes[i])) { - return false; - } - } - - return true; - - } // END signaturesAreEqual - - /** - * Inspects the provided type and will prepend the - * java.lang package to the type if the type has no - * package and the first character is upper case, otherwise, it will return - * the provided type as is. - */ - private String fixType(String type) { - - if (type == null || type.length() == 0) { - return ""; - } - - String newType; - // if the type has no package and the first character of the type is - // uppercase, prepend the package 'java.lang' to the value. - if (type.indexOf('.') < 0 && Character.isUpperCase(type.charAt(0))) { - newType = "java.lang." + type; - } else { - newType = type; - } - - return newType; - - } // END fixType - - /** - * This method takes a String in the format of (without the quotes) 'String, - * Object, javax.somepackage.SomeClass' and returns an array split on the - * commas and trimmed of any whitespace. - */ - private String[] getParamTypes(String paramString) { - - if (paramString == null || paramString.length() == 0) { - return new String[] {}; - } - - return paramString.split("\\s*,\\s*"); - - } // END getParamTypes - -} diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/URLClient.java b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/URLClient.java deleted file mode 100644 index 645f46e44b..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/URLClient.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.jsf.spec.webapp.tldsig; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.jsf.common.client.AbstractUrlClient; - -public final class URLClient extends AbstractUrlClient { - - private static final String CONTEXT_ROOT = "/jsf_webapp_tldsig_web"; - - public static void main(String[] args) { - URLClient theTests = new URLClient(); - Status s = theTests.run(args, new PrintWriter(System.out, true), - new PrintWriter(System.err, true)); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - setContextRoot(CONTEXT_ROOT); - setServletName(DEFAULT_SERVLET_NAME); - return super.run(args, out, err); - } - - /* - * @class.setup_props: webServerHost; webServerPort; ts_home; - */ - - /* Test Declarations */ - - /** - * XXX Test is commented out due to bug ID 20890552. The test will need to be - * reworked so as to not use an RI specific class else it needs to be deleted. - * - * @testName: jsfTldSignatureTest - * @assertion_ids: PENDING: add assertion ID(s) - * @test_Strategy: Ensure the JSF implementation provides the correct - * "signature" for the specification required tag handlers. - */ - public void jsfTldSignatureTest() throws Fault { - TEST_PROPS.setProperty(REQUEST, - "GET " + CONTEXT_ROOT + "/test.xhtml HTTP/1.1"); - TEST_PROPS.setProperty(UNEXPECTED_RESPONSE_MATCH, "FAILED"); - invoke(); - } - -} // end of URLClient diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/build.xml b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/build.xml deleted file mode 100644 index 8bc1846e7a..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/build.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/html_basic.tld b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/html_basic.tld deleted file mode 100644 index 1d756d03df..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/html_basic.tld +++ /dev/null @@ -1,16322 +0,0 @@ - - - - - - - - - This tag library contains JavaServer Faces component tags for all - UIComponent + HTML RenderKit Renderer combinations defined in the - JavaServer Faces Specification. - - - 2.1 - - - h - - - jakarta.faces.html - - - - - - - - - - - Renders an HTML "input" - element.

- -

Decode Behavior

- -
    - -

    Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If the value in the - Map for the value of the "clientId" property of the - component is null, create a String by concatenating - the value of the "clientId" property of the component with the - String ".x" (without the quotes). Create another String in the - same manner, but concatenate ".y" (without the quotes). If - null is the value in the Map for both - Strings, return from decode(). If the value in the - Map for the value of the "clientId" property of the - component is not null, get the value of the "type" - attribute, and convert it to lower case. If the result is equal - to the String "reset" (without the quotes), return from - decode(). Otherwise, create a - jakarta.faces.event.ActionEvent around the component, - and pass it to the queueEvent() method of the - component, which must be an instance of - UICommand.

    - -
- - - -

Encode Behavior

- -
    - -

    Render the clientId of the component as the value of the "name" - attribute. Render the current value of the component as the value - of the "value" attribute. If "image" attribute is specified render - it as the value of the "src" attribute after passing it to the - getResourceURL() method of the - ViewHandler for this application, and passing the - result through the encodeResourceURL() method of the - ExternalContext. Note that calling - getResourceURL() will prefix the context-root of the - current application if the value of the "src" attribute starts - with "/". When handling the "image" attribute, the value - must not be escaped. For example, & must not be - turned into &amp;. If the "styleClass" attribute - is specified, render its value as the value of the "class" - attribute. If the user has specified an "onclick" attribute, - append that JavaScript to any existing JavaScript already being output by the - implementation before rendering.

    - -

    If the component being rendered by - this renderer has any UIParameter children, each one - of them must be rendered using the renderer for component-family: - "jakarta.faces.Input" and renderer-type: "jakarta.faces.Hidden". For - discussion, this is called the hiddenRenderer. A component with - component-type "jakarta.faces.Input" must be created for local use - in rendering each UIParameter child. The "id" - property of the temporary component must be set to the "name" of - the UIParameter. The "value" property of the - temporary component must be set to the "value" of the - UIParameter. For each UIParameter - child, the hiddenRenderer must have its - encodeBegin(), encodeChildren(), and - encodeEnd() methods called, in order, passing the - temporary component as the second argument.

    - -
    - -

    Because this renderer is responsible for rendering its own - children, the renderer will decide if the end tag is required or - not based on the presence or absence of children for the - component.

    - -

    To support entering flows that are defined by both a defining - document id and a flow id, add a component attribute to this - component whose name is given by the value of the symbolic - constant - jakarta.faces.event.ActionListener.TO_FLOW_DOCUMENT_ID_ATTR_NAME, - and whose value is the defining document id. For example, when - using this component in a facelet page, the following markup - would cause such an attribute to be added.

    - -
    <h:commandButton id="start_a" value="enter flow-a" action="flow-a">
    -   <f:attribute name="to-flow-document-id" value="unique"/>
    - </h:commandButton>
    -
    - -
    - -
]]> -
- - commandButton - - - com.sun.faces.taglib.html_basic.CommandButtonTag - - - JSP - - - - - - - action - - - false - - - - java.lang.Object action() - - - - - - - - MethodExpression representing an action listener method that - will be notified when this component is activated by the user. - The expression must evaluate to a public method that takes an - ActionEvent parameter, with a return type of void, or to a public method that takes no - arguments with a return type of void. In the latter case, the - method has no way of easily knowing where the event came from, - but this can be useful in cases where a notification is needed - that "some action happened". - -

]]> -
- - actionListener - - - false - - - - void actionListener(jakarta.faces.event.ActionEvent) - - -
- - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - alt - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - Absolute or relative URL of the - image to be displayed for this - button. If specified, this - "input" element will be of type - "image". Otherwise, it will be - of the type specified by the - "type" property with a label - specified by the "value" - property. Note - that if the value of this - attribute starts with "/", the - rendered value for this - attribute will be prefixed with - the context-root for this - application. -

]]> -
- - image - - - false - - - - java.lang.String - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - type - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML "a" anchor - element that acts like a form submit button when - clicked.

- -

General Behaviour

- -

Both the encode and decode behavior require the ability to get - the id/name for a hidden field, which may be rendered in markup or which - may be programmatically added via client DOM manipulation, - whose value is set by the JavaScript form submit. This name must - be constructed as follows:

- -
    - -
  • Get the clientId for the form of which this component is a - child.

  • - -
  • Append - NamingContainer.SEPARATOR_CHAR.

  • - -
  • Append a constant string that is the same for all command - link components in the tree.

  • - -
- -

In the following text, this String is called - hiddenFieldName.

- -

Decode Behavior

- -
    - -

    Obtain the "clientId" property of the component. Obtain the - Map from the "requestParameterMap" property of the - ExternalContext. Derive hiddenFieldName as above. - Get the entry in the Map under the key that is the - hiddenFieldName. If the there is no entry, or the entry is the - empty String, or the entry is not equal to the value of the - "clientId" property, return immediately. If there is an entry, - and its value is equal to the value of the "clientId" property, - create a new jakarta.faces.event.ActionEvent instance - around the component and call queueActionEvent() on - the component, passing the event.

    - -
- - -

Encode Behavior

- -
    - -

    If the value of the disabled attribute is - true, render a span element. Render all the - ignored-by-renderer attributes and the target - attribute as ignored-by-renderer attributes on the span, even - though the target attribute will have no effect on a - span. Render the current value of the component as the content of - the span. Return.

    - -

    If the disabled attribute is not present, or its - value is false, render an HTML a - element. Render "#" as the value of the "href" attribute. Render - the current value of the component as the link text if it is - specified. Render JavaScript that is functionally equivalent to - the following as the value of the "onclick" attribute:

    - -

    document.forms['CLIENT_ID']['hiddenFieldName'].value='CLIENT_ID'; - document.forms['CLIENT_ID']['PARAM1_NAME'].value='PARAM1_VALUE'; - document.forms['CLIENT_ID']['PARAM2_NAME'].value='PARAM2_VALUE'; - document.forms['CLIENT_ID'].submit(); return false;

    - -

    where hiddenFieldName is as described above, CLIENT_ID is the - clientId of the UICommand component, PARAM*_NAME and PARAM*_VALUE - are the names and values, respectively, of any nested UIParameter - children. The name and the value must be URLEncoded. Note that the required url - encoding is handled by - ResponseWrter.writeAttribute(). If an - "onclick" attribute was specified by the user, render this - JavaScript in a function, and render the user's JavaScript in a - function. Render both functions in a choice function as - follows:

    - -

    var a=function(){#USER_FUNCTION#}; - var b=function(){#JSF_FUNCTION#}; - return (a()==false) ? false : b();

    - -

    where #USER_FUNCTION# is the user's JavaScript and - #JSF_FUNCTION# is the JavaScript rendered by JSF. The choice - function should operate such that if the user's JavaScript returns - true, then the rendered JavaScript will also execute.

    - -

    If the "styleClass" attribute is specified, render its value as - the value of the "class" attribute. Render any non-UIParameter - output children as normal inside of the "a" element. These will - appear as the link text. Allow the form renderer to output a - single "input" element (for the entire page, regardless of how - many command link components are in the page) of "type" "hidden" - whose "name" is the value of hiddenFieldName, and which must not - have a "value" attribute. Multiple occurrences of command link - components in the tree should not cause multiple hiddenFieldName - hidden fields. Allow the form renderer to output an "input" - element of "type" "hidden" for each of the nested UIParameter - children, taking the name property (but not the value) from each - one in turn. If the "disabled" attribute is specified, do not - render the HTML "a" anchor element or its "href" attribute. - Instead, render a "span" element. If the "styleClass" attribute - is specified, render its value as the value of the "class" - attribute on the "span". Render any ignored-by-renderer attributes on - the "span". The content of the span element comes from the value - of the component or its children as specified above.

    - -

    If the user specified a target attribute, its - value must be set using javascript since the onclick - handler will prevent the target attribute from being generated. - This must be accomplished using JavaScript that is equivalent to - the following.

    - -

    document.forms['CLIENT_ID'].target='TARGET';

    - -

    Where TARGET is the value of the target attribute on the JSP - tag.

    - -
- -
- -

To support entering flows that are defined by both a defining - document id and a flow id, add a component attribute to this - component whose name is given by the value of the symbolic - constant - jakarta.faces.event.ActionListener.TO_FLOW_DOCUMENT_ID_ATTR_NAME, - and whose value is the defining document id. For example, when - using this component in a facelet page, the following markup - would cause such an attribute to be added.

- -
<h:commandLink id="start_a" value="enter flow-a" action="flow-a">
-   <f:attribute name="to-flow-document-id" value="unique"/>
- </h:commandLink>
-
- -
]]> -
- - commandLink - - - com.sun.faces.taglib.html_basic.CommandLinkTag - - - JSP - - - - - - - action - - - false - - - - java.lang.Object action() - - - - - - - - MethodExpression representing an action listener method that - will be notified when this component is activated by the user. - The expression must evaluate to a public method that takes an - ActionEvent parameter, with a return type of void, or to a public method that takes no - arguments with a return type of void. In the latter case, the - method has no way of easily knowing where the event came from, - but this can be useful in cases where a notification is needed - that "some action happened". - -

]]> -
- - actionListener - - - false - - - - void actionListener(jakarta.faces.event.ActionEvent) - - -
- - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - charset - - - false - - - - java.lang.String - - - - - - - - - coords - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - hreflang - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - rel - - - false - - - - java.lang.String - - - - - - - - - rev - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - shape - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - target - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - type - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML - "table" element compliant with the HTML 401 specification. Render - the "caption" facet, if present, inside a "caption" element - immediately below the "table" element. If the "captionClass" - attribute is specified, render its value as the value of the - "class" attribute on the "caption" element. If the "captionStyle" - attribute is specified, render its value as the value of the - "style" attribute on the "caption" element.

Please consult - the javadoc for UIData to supplement this - specification. If the "styleClass" attribute is specified, render - its value as the value of the "class" attribute on the "table" - element. Any ignored-by-renderer attributes are also rendered on the - "table" element.

- -

Column Groups

- -
    - -

    If the UIData component has a "colgroups" facet, - render its contents. Consistent with the rules of facets in - general, this facet must have only one child. In general, this - will be a panel group component that will contain - colgroup and col elements per the HTML - Table specification. Use of column grouping can improve - accessibility. This facet must be rendered before the table - header and footer.

    - -
- -

Rendering the header

- -
    - -

    If the UIData component has a "header" facet, or - any of the child UIColumn components has a "header" - facet, render a "thead" element. If the UIData - component has a "header" facet, encode its contents inside of "tr" - and "th" elements, respectively. Output the value of the - "headerClass" attribute of the UIData component, if - present, as the value of the "class" attribute on the "th". - Output the number of child UIColumn components of the - UIData component as the value of the "colspan" - attribute on the "th". Output "colgroup" as the value of the - "scope" attribute on the "th" element.

    - -

    If any of the child UIColumn components has a - "header" facet render a "tr" element. For each - UIColumn that actually has a "header" facet, render - it inside of a "th" element. Columns that don't have a "header" - facet cause an empty "th" element to be rendered. Output the - value of the "headerClass" attribute of the UIColumn - component, if present, as the value of the "class" attribute on - the "th". If the "headerClass" attribute of the UIColumn - component is not present, output the value of the "headerClass" - attribute of the UIData component, if present, as - the value of the "class" attribute on the "th". Output "col" as - the value of the "scope" attribute on the "th" element. -

    - -

    Close out the "thead" element.

    - -
- -

Rendering the footer

- -
    - -
    -

    If the UIData component has a "footer" facet, or - any of the child UIColumn components has a "footer" - facet, render a "tfoot" element. If the UIData - component has "footer" facets, encode the contents inside of a "tr" - element.

    - -

    If any of the child UIColumn components has a - "footer" facet render a "td" element. For each - UIColumn that actually has a "footer" facet, render - it inside of a "td" element. Columns that don't have a "footer" - facet cause an empty "td" element to be rendered. Output the - value of the "footerClass" attribute of the UIColumn - component, if present, as the value of the "class" attribute on - the "td". If the "footerClass" attribute of the UIColumn - component is not present, output the value of the "footerClass" - attribute of the UIData component, if present, as - the value of the "class" attribute on the "td".

    - -

    If the UIData component has a "footer" facet, - encode its contents inside of "tr" and "td" elements, respectively. - Output the value of the "footerClass" attribute of the - UIData component, if present, as the value of the - "class" attribute on the "td". Output the number of child - UIColumn components of the UIData - component as the value of the "colspan" attribute on the "td".

    - -

    Close out the "tfoot" element.

    -
    - -
- -

Rendering the table body

- -
    - -

    Look at the value of the "bodyrows" attribute. If present, - this must be a comma separated list of integers. Each entry in - this list is the row index of the row before which a "tbody" - element should be rendered.

    - -

    If there was no "bodyrows" attribute, or it was empty, render a - "tbody" element. Keep track of the result of the "rows" property - on the UIData component. Keep track of the number of - rows we have rendered so far. Iterate through the rows. Set the - "rowIndex" property of the UIData component to be - correct as we iterate through the rows. Stop rendering children - and close out the "tbody" element if the "rowAvailable" property - of the UIData returned false. If the current row - index is contained in the "bodyrows" attribute, check if a "tbody" - start element was rendered that needs to be closed, and if so, - close the "tbody" element. Then render a "tbody" element start. - Otherwise, do not render a "tbody" element.

    - -

    Output a "tr" element. Output the value of the "rowClasses" - per the attribute description below. For each - UIColumn child, if the column component has a - "rowHeader" attribute with a value of "true", output a "th" - element with a "scope" attribute with the value of "row". - Otherwise, if the column component has no "rowHeader" attribute, - or its value is false, output a "td" element. In either case - attach the value of the "columnClasses" attribute of the - UIData component per the attribute description below. - Recursively encode each child of each UIColumn child. - Close out the "td" or "th" element. When done with the row, close - out the "tr" element. When done with all the rows, close out the - "tbody" element.

    - -
- -

When done rendering all the rows, set the "rowIndex" property of - the UIData to -1, and close out the "table" - element.

]]> -
- - dataTable - - - com.sun.faces.taglib.html_basic.DataTableTag - - - JSP - - - - - - - first - - - false - - - - int - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - Boolean flag directing how the per-row component state should - be handled. See UIData.setRowStatePreserved for more information. - ]]> - - - rowStatePreserved - - - false - - - - boolean - - - - - - - - - rows - - - false - - - - int - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - var - - - false - - - false - - - - - - - - bgcolor - - - false - - - - java.lang.String - - - - - - - - - bodyrows - - - false - - - - java.lang.String - - - - - - - - - border - - - false - - - - int - - - - - - - - - captionClass - - - false - - - - java.lang.String - - - - - - - - - captionStyle - - - false - - - - java.lang.String - - - - - - - - - cellpadding - - - false - - - - java.lang.String - - - - - - - - - cellspacing - - - false - - - - java.lang.String - - - - - - - - - columnClasses - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - footerClass - - - false - - - - java.lang.String - - - - - - - - - frame - - - false - - - - java.lang.String - - - - - - - - - headerClass - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - rowClasses - - - false - - - - java.lang.String - - - - - - - - - rowClass - - - false - - - - java.lang.String - - - - - - - - - rules - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - summary - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - width - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML "form" element.

- -

Decode Behavior

- -
    - -

    Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If the map contains - an entry for the "clientId" of this UIForm component, - call setSubmitted(true) on the form, otherwise call - setSubmitted(false) on the form.

    - -
- - - -

Encode Behavior

- -
    - -

    The value of the "method" attribute must be "post". The value - of the "action" attribute must be the result of passing the view - identifier of the current view to the getActionURL() - method of the ViewHandler for this application, then - passing that String to the encodeActionURL() method - on the ExternalContext. The value of the acceptcharset - attribute must be rendered as the value of "accept-charset". - If the "styleClass" attribute is specified, render its value as the - value of the "class" attribute. Render a "name" - attribute with a value the same as the "id" attribute as described - in "General Notes on - Encoding" regarding the "id" attribute for UIInput - components.

    Obtain the UIViewRoot view identifier and - use it to obtain an action URL by calling ViewHandler.getActionURL. - Use the action URL to obtain an encoded action URL by calling - ExternalContext.encodeActionURL. Obtain an - encoded partial action URL by calling - ExternalContext.encodePartialActionURL using action URL as the argument. - Compare the result from ExternalContext.encodePartialActionURL with the - value from ExternalContext.encodeActionURL(). If they are different, - render a hidden field with the name jakarta.faces.encodedURL and the value - of this hidden field as the value from ExternalContext.encodePartialActionURL.

    - Call ViewHandler.writeState() - before the the close of the "form" element. - Render all the necessary hidden fields - for all commandLink instances in the page just before the close of the "form" element. -
    - Just before rendering the closing </form> element tag, render - any resources that have been targeted for this form: -
      -
    • Obtain a UIViewRoot instance.
    • -
    • Obtain a List of component resources targeted for - this form with a call to UIViewRoot.getComponentResources() - with the String "form" as the argument.
    • -
    • Iterate over the returned List of UIComponent instances - and call encodeAll on each UIComponent instance. -
    -
    -

    -
]]> -
- - form - - - com.sun.faces.taglib.html_basic.FormTag - - - JSP - - - - - - - id - - - false - - - true - - - - - - - - prependId - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - accept - - - false - - - - java.lang.String - - - - - - - - - acceptcharset - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - enctype - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onreset - - - false - - - - java.lang.String - - - - - - - - - onsubmit - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - target - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML "img" - element. Render the clientId as the value of the "id" - attribute.

- -
- -

Handling the Value

- -
    - -

    If the "name" attribute is present, execute algorithm Common Algorithm for Obtaining A Resource to Render to obtain a Resource instance. Call - Resource.getRequestPath() and output the result as the - value of the "src" attribute on the rendered markup.

    - -

    Otherwise, if the "url" attribute is present, treat its value as - if it was the value of the "value" attribute. Otherwise, if the - "value" attribute is present, render the value of the component as - the value of the "src" attribute, after passing it to the - getResourceURL() method of the ViewHandler - for this application, and passing the result through the - encodeResourceURL() method of the - ExternalContext.

    - -

    When handling the "src" attribute, - the value must not be escaped. For example, & must not - be turned into &amp;. If the "styleClass" - attribute is specified, render its value as the value of the "class" - attribute.

    - -
- -
]]> -
- - graphicImage - - - com.sun.faces.taglib.html_basic.GraphicImageTag - - - JSP - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - url - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - alt - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - height - - - false - - - - java.lang.String - - - - - - - - - ismap - - - false - - - - boolean - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - -

The libraryName for this resource.

]]> -
- - library - - - false - - - - java.lang.String - - -
- - - - - - longdesc - - - false - - - - java.lang.String - - - - - -

The - resourceName for this resource.

]]> -
- - name - - - false - - - - java.lang.String - - -
- - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - usemap - - - false - - - - java.lang.String - - - - - - - - - width - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders - an HTML "input" element of "type" "file". The standard HTML_BASIC - RenderKit specifies behavior that assumes Servlet 3.0 or later. - Portlet implementations must override this implementation with a - semantically equivalent one that functions under the constraints - of the Portlet specification.

- -
- -

Decode Behavior

- -
    - -

    Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If the - Map contains an entry for the "clientId" of the - component, pass the value of the entry to the - setSubmittedValue() method of the component, which - must be an instance of EditableValueHolder, and - return. Otherwise, obtain the "request" property from the - ExternalContext and cast it to - jakarta.servlet.http.HttpServletRequest. Call - getParts() on the httpServletRequest. Iterate over - the parts. If the "name" property of the current part is equal to - the "clientId", pass the current part to the - setSubmittedValue() method of the component. If an - exception is thrown during the iteration, log the exception and - continue.

    - -

    The standard implementation must override the - getConvertedValue() so that it simply returns the - submittedValue argument.

    - -

    Any exception thrown when interacting with the underlying - multi-part API must be wrapped in a FacesException - and allowed to reach the ExceptionHandler.

    - -
- -

Encode Behavior

- -
    - -

    Render the clientId of the component as the value of the - "name" attribute. Do not render the "value" attribute. If the - "styleClass" attribute is specified, render its value as the value - of the "class" attribute.

    - -

    If ProjectStage is not - ProjectStage.Production, verify that the enclosing - form has an enctype attribute whose value is - multipart/form-data. If not, add a - FacesMessage for this component's clientId to the - FacesContext stating that file upload requires a form - with enctype equal to - multipart/form-data. If ProjectStage - is ProjectStage.Production, do not - do this verification.

    - -
- -
]]> -
- - inputFile - - - com.sun.faces.taglib.html_basic.InputFileTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - alt - - - false - - - - java.lang.String - - - - - - - - - autocomplete - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - maxlength - - - false - - - - int - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - size - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML "input" element of type - "hidden".

- -

Decode Behavior

- -
    - -

    See the decode description for the Input - Text renderer.

    - -
- -

Encode Behavior

- -
    - -

    Render the clientId of the component as the value of the - "name" attribute. Render the current value of the component as - the value of the "value" attribute.

    - -
]]> -
- - inputHidden - - - com.sun.faces.taglib.html_basic.InputHiddenTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML "input" element of "type" "password".

- -

Decode Behavior

- -
    - -

    See the decode description for the Input - Text renderer.

    - -
- -

Encode Behavior

- -
    - -

    - Render the clientId of the component as the value of the "name" - attribute. Render the current value of the component as the value - of the "value" attribute, if and only if the "redisplay" component - attribute is the string "true". If the "styleClass" attribute is - specified, render its value as the value of the "class" - attribute.

    - -
]]> -
- - inputSecret - - - com.sun.faces.taglib.html_basic.InputSecretTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - alt - - - false - - - - java.lang.String - - - - - - - - - autocomplete - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - maxlength - - - false - - - - int - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - - - - redisplay - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - size - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders - an HTML "input" element of "type" "text".

- -

Decode Behavior

- -
    - -

    Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If the - Map contains an entry for the "clientId" of the - component, pass the value of the entry to the - setSubmittedValue() method of the component, which - must be an instance of EditableValueHolder.

    - -
- -

Encode Behavior

- -
    - -

    Render the clientId of the component as - the value of the "name" attribute. Render the current value of - the component as the value of the "value" attribute. If the - "styleClass" attribute is specified, render its value as the value - of the "class" attribute. -

    - -

    If this element has children, they - must be ignored by default. Implementions may provide a - configuration option that allows this element to render its - children.

    - -
]]> -
- - inputText - - - com.sun.faces.taglib.html_basic.InputTextTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - alt - - - false - - - - java.lang.String - - - - - - - - - autocomplete - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - maxlength - - - false - - - - int - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - size - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders an HTML "textarea" element.

- -

Decode Behavior

- -
    - -

    See the encode description for the Input - Text renderer.

    - -
- -

Encode Behavior

- -
    - -

    Render the - clientId as the value of the "name" attribute. Render the current - valu eof the component inside the "textarea" - element.

]]> -
- - inputTextarea - - - com.sun.faces.taglib.html_basic.InputTextareaTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - cols - - - false - - - - int - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - rows - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render a single message for a specific component.

- -

Set-up for Rendering

- -
    - -

    Obtain the "summary" and "detail" properties from - UIMessage component. If not present, keep the - empty string as the value, respectively. Obtain the first - FacesMessage to render from the component, using - the "for" property of the UIMessage. This will be - the only message we render. Obtain the severity style for this - message. If the severity of the message is - FacesMessage.SEVERITY_INFO, the severity style - comes from the value of the "infoStyle" attribute. If the - severity of the message is - FacesMessage.SEVERITY_WARN, the severity style - comes from the value of the "warnStyle" attribute, and so on for - each of the severities, INFO, WARN, ERROR and - FATAL. The same rules apply for obtaining the - severity style class, but instead of "infoStyle, warnStyle", etc - use "infoClass, warnClass", etc. Obtain the "style", - "styleClass" and "layout" attributes from the - UIMessage component. If we have a "style" - attribute and a severity style attribute, use the severity style - attribute as the value of the "style" attribute. If we have no - "style" attribute, but do have a severity style, use the - severity style as the value of the "style" attribute. The same - precedence rules apply for the style class. Obtain the value of - the dir and lang attributes.

    - -
- -

Rendering

- -
    - -

    For the message renderer, we only render one row, for the first - message. For the messages renderer, we render as many rows as we - have messages. If any of the "dir", "lang", "style" or - "styleClass" attributes has a non-null value (as determined - above), render a "span" element, outputting the value of the - "style" attribute as the the value of the "style" attribute, and - outputting the value of the "styleClass" attribute as the value of - the "class" attribute on the "span" element. Output the "dir" and - "lang" attributes as well, if they are present. If the - UIMessage has a "tooltip" attribute with the value of - "true", and we haven't already written out the "span" and the "title" attribute for - the "span", output the "detail" as the value of the "title" attribute on the - "span". If we haven't already written out a "title" attribute, and there is - no detail, output the "summary" as the value of the "title" attribute. - Close out the span if necessary.

    - -
]]> -
- - message - - - com.sun.faces.taglib.html_basic.MessageTag - - - JSP - - - - - - - for - - - true - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - showDetail - - - false - - - - boolean - - - - - - - - - showSummary - - - false - - - - boolean - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - errorClass - - - false - - - - java.lang.String - - - - - - - - - errorStyle - - - false - - - - java.lang.String - - - - - - - - - fatalClass - - - false - - - - java.lang.String - - - - - - - - - fatalStyle - - - false - - - - java.lang.String - - - - - - - - - infoClass - - - false - - - - java.lang.String - - - - - - - - - infoStyle - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - tooltip - - - false - - - - boolean - - - - - - - - - warnClass - - - false - - - - java.lang.String - - - - - - - - - warnStyle - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - The same as for the - Message renderer, but output all the messages. If an "id" attribute has been specified, - it must be rendered on the outermost markup corresponding to this - component. If the value of the "layout" attribute is - "table", render nested "table", "tr", and "td" elements, in that - order. If the value of the "layout" attribute is "list", or the - "layout" attribute is not specified, render nested "ul", "li" - elements, in that order. Output the value of the "style" attribute - as the value of the "style" attribute, output the value of the - "styleClass" attribute as the value of the "class" attribute, and - output the dir and lang attributes. Output these values on the - "table" element or the "ul" element. Output the values of the - "errorStyle", "fatalStyle", "infoStyle", "warnStyle" attributes as - the value of the "style" attribute on either the "tr" element or - the "li" element. Output the values of the "errorClass", - "fatalClass", "infoClass", "warnClass" attributes as the value of - the "class" attribute on either the "tr" element or the "li" - element. The component is a UIMessages, and there is - no "for" attribute. Therefore, use either null to - obtain the messages from the FacesContext or the empty - string if the components "globalOnly" property is - true. If the layout was "table" close out the table - elements, otherwise, close out the list elements.

]]> -
- - messages - - - com.sun.faces.taglib.html_basic.MessagesTag - - - JSP - - - - - - - for - - - false - - - - java.lang.String - - - - - - - - - globalOnly - - - false - - - - boolean - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - showDetail - - - false - - - - boolean - - - - - - - - - showSummary - - - false - - - - boolean - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - errorClass - - - false - - - - java.lang.String - - - - - - - - - errorStyle - - - false - - - - java.lang.String - - - - - - - - - fatalClass - - - false - - - - java.lang.String - - - - - - - - - fatalStyle - - - false - - - - java.lang.String - - - - - - - - - infoClass - - - false - - - - java.lang.String - - - - - - - - - infoStyle - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - layout - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - tooltip - - - false - - - - boolean - - - - - - - - - warnClass - - - false - - - - java.lang.String - - - - - - - - - warnStyle - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render parameterized text. Obtain the - style, styleClass, dir, and - lang attributees from this component. If any are - present, render a "span" element. Output the - styleClass attribute (if present) as the value of the - class attribute. Output the style - attribute as the value of the style attribute. - Output the dir and lang attributes as - ignored-by-renderer attributes. Accrue a list of the values of all child - UIParameter components of this component. If there - are one or more accumulated parameter values, convert the list of - parameter values to an Object array, call - MessageFormat.format(), passing the - value of this component as the first argument, and - the array of parameter values as the second argument, and render - the result. Otherwise, render the value of this - component unmodified.

]]> -
- - outputFormat - - - com.sun.faces.taglib.html_basic.OutputFormatTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - escape - - - false - - - - boolean - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - - - - outputLabel - - - com.sun.faces.taglib.html_basic.OutputLabelTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - escape - - - false - - - - boolean - - - - - - - - - for - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML "a" anchor - element. The value of the component is rendered as the - value of the "href" attribute. Any child UIParameter - components whose - disable property is false - are appended to the String to be output as the value of the - "href" attribute as query parameters before rendering. The - entire "href" string must be processed by a call to the - encodeResourceURL() method of the - ExternalContext. The name of the UIParameter - goes on the left hand side, and the value of the UIParameter - on the right hand side. The name and the value must be - URLEncoded. Note that the required url encoding is - handled by - ResponseWrter.writeURIAttribute(). Each - UIParameter instance is separeted by an ampersand, as - dictated in the URL spec. If the "styleClass" attribute is - specified, render its value as the value of the "class" - attribute. If the "id" attribute is specified, follow the - same steps as mentioned in the "General Notes - on Encoding" regarding the "id" attribute for UIInput - components. If the "disabled" attribute is specified, do - not render the HTML "a" anchor element or the "href" - element. Instead, render a "span" element. If the - "styleClass" attribute is specified, render its value as the - value of the "class" attribute on the "span". Render any - ignored-by-renderer attributes on the "span". - -

]]> -
- - outputLink - - - com.sun.faces.taglib.html_basic.OutputLinkTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - charset - - - false - - - - java.lang.String - - - - - - - - - coords - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - hreflang - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - rel - - - false - - - - java.lang.String - - - - - - - - - rev - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - shape - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - target - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - type - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - If the - "styleClass", "style", "dir" or "lang" attributes are present, - render a "span" element. If the "styleClass" attribute is - present, render its value as the value of the "class" attribute. - If the "style" attribute is present, convey it unmodified. If the - "escape" attribute is not present, or it is present and its value - is "true" all angle brackets should be converted to the ampersand - xx semicolon syntax when rendering the value of the "value" - attribute as the value of the component. If the "escape" - attribute is present and is "false" the value of the component - should be rendered as text without escaping.

- -

If this element has children, - they must be ignored by default. Implementions may provide a - configuration option that allows this element to render its - children.

]]> -
- - outputText - - - com.sun.faces.taglib.html_basic.OutputTextTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - escape - - - false - - - - boolean - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - UIPanel component inside - of a "tbody" element. Render the children based on the value of - the "columns" attribute, creating a new row each time a "columns" - worth of children have been rendered. For the start of each row, - render a "tr" element. Output the value of the "rowClasses" per - the attribute description below. For each child, output a "td" - element, attaching the value of the "columnClasses" attribute per - the attribute description below. Recursively encode each child. - Close out the "td" element. When done with the row, close out the - "tr" element. If a child has "rendered==false" it is not rendered, - and the column counter must not be incremented.]]> - - - panelGrid - - - com.sun.faces.taglib.html_basic.PanelGridTag - - - JSP - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - bgcolor - - - false - - - - java.lang.String - - - - - - - - - bodyrows - - - false - - - - java.lang.String - - - - - - - - - border - - - false - - - - int - - - - - - - - - captionClass - - - false - - - - java.lang.String - - - - - - - - - captionStyle - - - false - - - - java.lang.String - - - - - - - - - cellpadding - - - false - - - - java.lang.String - - - - - - - - - cellspacing - - - false - - - - java.lang.String - - - - - - - - - columnClasses - - - false - - - - java.lang.String - - - - - - - - - columns - - - false - - - - int - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - footerClass - - - false - - - - java.lang.String - - - - - - - - - frame - - - false - - - - java.lang.String - - - - - - - - - headerClass - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - rowClasses - - - false - - - - java.lang.String - - - - - - - - - rowClass - - - false - - - - java.lang.String - - - - - - - - - rules - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - summary - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - width - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - - - - panelGroup - - - com.sun.faces.taglib.html_basic.PanelGroupTag - - - JSP - - - - - - - id - - - false - - - true - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - layout - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - - - - - Renders an HTML "input" element of type "checkbox".

- -

Decode Behavior

- -
    - -

    Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If there is no - entry in the Map for the "clientId" of this - component, pass "false" to the setSubmittedValue() - method of the component, which must be an instance of - EditableValueHolder. If there is an entry, and its - value is equal, ignoring case and without quotes, to any of the - Strings: "on", "yes" or "true" pass true to the - setSubmittedValue() method of the component.

    - -
- -

Encode Behavior

- -
    - -

    - Render the clientId of the component as the value of the "name" - attribute. If the current value of the component is "true", - output the "checked" attribute (must be rendered as checked="checked"). - If the "styleClass" attribute is specified, render its value as the value - of the "class" attribute.

]]> -
- - selectBooleanCheckbox - - - com.sun.faces.taglib.html_basic.SelectBooleanCheckboxTag - - - JSP - - - - - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Boolean - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML checkbox - list.

- -

Decode Behavior

- - - -

Encode Behavior

- -
    -

    Render a "table" element. If the "styleClass" is specified, - render the value of the "styleClass" attribute as the value of the - "class" attribute on the "table" element. If the "style", or - "border" attributes are specified, convey them and render their values as the "style" - and "border" attributes on the "table", respectively. If - the "layout" attribute is specified, and its value is - "pageDirection", render the children elements vertically, - otherwise horizontally, in the table. If any of the children are - an instance of SelectItemGroup, render them as a nested table. - Each of the children are ultimately rendererd as follows. Render - an "input" element of "type" "checkbox" for each child component. - Render the "name" attribute on the "input" element with the value - of the clientId of the component. Render an "id" - attribute on the "input" element. Each "id" value must be unique. - If the current SelectItem.isDisabled() returns true, render - "disabled" as the value of the "disabled" attribute. Close out - the "input" element. Render a "label" element. Render the "for" - attribute of the "label" element whose value is the corresponding - "input" element's "id" value. - If the current checkbox would be - rendered as being checked, and there is a "selectedClass" - attribute, append a space, followed by the value of the - "selectedClass" attribute to any existing "class" attribute value - on the label element. Otherwise, render the value of the - "selectedClass" attribute as the value of the "class" attribute on - the label element. If the current checkbox would be rendered as - being not checked, and there is a "unselectedClass" attribute, - append a space, followed by the value of the "unselectedClass" - attribute to any existing "class" attribute value on the label - element. Otherwise, render the value of the "unselectedClass" - attribute as the value of the "class" attribute on the label - element. If the - current checkbox would be rendered as being disabled, and there is a - "disabledClass" attribute, append a space, followed by the value - of the "disabledClass" attribute to any existing "class" attribute - value on the label element. Otherwise, render the value of the - "disabledClass" attribute as the value of the "class" attribute on - the label element. If the current checkbox would be rendered as - being enabled, and there is an "enabledClass" attribute, append a - space, followed by the value of the "enabledClass" attribute to any - existing "class" attribute value on the label element. Otherwise, - render the value of the "enabledClass" attribute as the value of - the "class" attribute on the label element. Close out the starting - "label" element and render the label value from SelectItem.getLabel(). - Close out the "label" element. As an exception to the general rules about - how to handle the "id" attribute, render it as an attribute on the outer "table" - element, the value of which is the clientId of the - component per the rules at the beginning of this specification. - The value of the current SelectItem is rendered as the value of - the "value" attribute. Coerce the value of the currently rendered - child to the type of the parent UISelectMany value following the - Expression Language coercion rules, before comparing the values. - If the value of the enclosing UISelectMany matches the current - value, render "checked" as the value of the "checked" attribute. - See the "Rendering the option - elements" specification for ListboxRenderer for - more detail on how to render the "option" elements in this - renderer. Note that this - renderer does not support SelectItemGroup elements, - so the text that describes the rendering of - SelectItemGroup does not apply to this - renderer.

    - -
]]> -
- - selectManyCheckbox - - - com.sun.faces.taglib.html_basic.SelectManyCheckboxTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - border - - - false - - - - int - - - - - - Optional - attribute that is a literal string that is the fully qualified - class name of a concrete class that implements - java.util.Collection, or an EL expression that - evaluates to either 1. such a String, or 2. the - Class object itself.

]]> -
- - collectionType - - - false - - - - java.lang.String - - -
- - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - layout - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - selectedClass - - - false - - - - java.lang.String - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - unselectedClass - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML option list.

- -

Decode Behavior

- -

This section documents the decode behavior for all renderers - that handle UISelectMany or UISelectOne - components.

- -
- -

If the collection type of the collection that provides the - value of this component is not one of the types handled by a - converter in the package jakarta.faces.convert, a - converter must explicitly be specified using the appropriate code - in the VDL. For example, use <f:converter> in - JSP or Facelet pages.

- -
- - -
    - -

    Decode Behavior for - UISelectMany components

    - -
      - -

      Obtain the Map from the - "requestParameterValuesMap" property of the - ExternalContext. If the Map contains - an entry for the "clientId" of the component, pass the value of - the entry, cast to a String [], to the - setSubmittedValue() method of the component, which - must be an EditableValueHolder. If the - Map does not contain an entry, create an empty - String array and call - setSubmittedValue() with it.

      - -

      Please check the javadoc for UISelectMany.getConvertedValue() - for additional requirements for renderers that render this kind - of component.

      - -
    - -

    Decode Behavior for - UISelectOne components

    - -
      - -

      Obtain the Map from the "requestParameterMap" - property of the ExternalContext. If there is a - Map entry for the "clientId" property of the - component, pass it to the setSubmittedValue() method - of the component. If the - Map does not contain an entry, call - setSubmittedValue() passing an empty - String as the argument.

      - -
    - -

    Encode Behavior

    - -
      - -

      Render an HTML "select" element. Render the clientId of - the component as the value of the "name" attribute. If the "styleClass" - attribute is specified, render its value as the value of the "class" - attribute on the "select" element. If the component is a - UISelectMany instance, render "multiple" as the value of the - "multiple" attribute. If the "size" attribute is specified, render its - value as the value of the "size" attribute. Otherwise use the number of - items as the value of the "size" attribute.

      - -
    - -

    Rendering the "option" elements

    - -
      - -

      The only valid children of this component are - UISelectItem or UISelectItems - instances. Iterate over the children of this component, and accrue - a list of jakarta.faces.model.SelectItem instances. - If the current child is a - SelectItem whose noSelctionProperty is - true, and the UISelectOne or - UISelectMany parent of this option has one or more - selected values that are not the "no selection" - SelectItem, and the component has a - "hideNoSelectionLabel" attribute whose value is true, - then the current option, which is the "no selection" option, must - not be rendered. If the current child is a - UISelectItem create a SelectIteminstance - from its itemValue, itemLabel, itemEscaped, and - itemDescription properties, add it to the list. If - the current child is a UISelectItems instance, call - its getValue() method. If the result is a - SelectItem bean, add it to the list. If the result - is an array of SelectItem beans, add each one to the - list. If the result is a Collection of - SelectItem beans, add each one to the list. If the - result is a Map, create a SelectItem - bean for each entry in the Map using the key as the - label, the value as the value, and null as the - description.

      - -

      Iterate over the list - of SelectItem beans. If the current element is a - SelectItemGroup, render an "optgroup" element with a - "label" attribute, the value of which is the "label" property from - the current element, then call getSelectItems() and - render each element as below. If the current element is not a - SelectItemGroup, render an "option" element. In both the case of the "option" - element or the "optgroup" element, the implementation must pass - the UISelectItem or UISelectItems - corresponding to the SelectItem bean to the call to - ResponseWriter.startElement(). Follow the - conversion rules in the spec to obtain a renderable - String from the "value" property of the current - element, render that as the value of the "value" atribute. Now it - is time to see if the current element is the selected value. Call - its getSubmittedValue() method, casting the result to - an Object [], otherwise the component must be a - UISelectOne instance, call its - getSubmittedValue() method and create an Object - [] around the result. Determine the type of the resultant - array, if the resultant array is non-null, otherwise the type is - String. Coerce the current item value to this type - following the Expression Language coercion rules. If the - resultant array is non-null, we look in the array for a - value that, when we pass the renderable value to its - equals() method, it returns true, - meaning the current element is selected. If the resultant array - is null, if the component is a - UISelectMany, call its getValue() - method. If the result is a List obtain the values in - the list as an array. Otherwise, the component must be a - UISelectOne instance. Call its - getValue() method, which must be an Object array. - Look for an element in the resultant array that, 1. when we pass - the renderable value to its equals() method, it - returns true , or 2. if the renderable value is null, - and there is a null element in the array, also conclude that the - current element is selected. Otherwise the current element is not - selected. Now, if the current value is selected, write out an - HTML boolean property "selected". If the current - SelectItem.isDisabled() returns true, render "disabled" as the - value of the "disabled" attribute. If the value of the - escape property is true, use the - writeText() method of ResponseWriter to - write out the value of the label property. - Otherwise, use the write() method of the - ResponseWriter to do so.

      - -
    - -
]]> -
- - selectManyListbox - - - com.sun.faces.taglib.html_basic.SelectManyListboxTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - Optional - attribute that is a literal string that is the fully qualified - class name of a concrete class that implements - java.util.Collection, or an EL expression that - evaluates to either 1. such a String, or 2. the - Class object itself.

]]> -
- - collectionType - - - false - - - - java.lang.String - - -
- - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - size - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML option - list.

- -

Decode Behavior

- - - -

Encode Behavior

- -
    - -

    Render an HTML "select" element. Render the clientId of - the component as the value of the "name" attribute. If the "styleClass" - attribute is specified, render its value as the value of the "class" - attribute on the "select" element. If the component - to be rendered is a UISelectMany, render "multiple" as the value of - the "multiple" attribute. Render "1" as the value of the "size" - attribute. See the "Rendering the option - elements" specification for ListboxRenderer for - more detail on how to render the "option" elements in this - renderer.

    - -
]]> -
- - selectManyMenu - - - com.sun.faces.taglib.html_basic.SelectManyMenuTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - Optional - attribute that is a literal string that is the fully qualified - class name of a concrete class that implements - java.util.Collection, or an EL expression that - evaluates to either 1. such a String, or 2. the - Class object itself.

]]> -
- - collectionType - - - false - - - - java.lang.String - - -
- - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML option list.

- -

Decode Behavior

- - - -

Encode Behavior

- -
    -

    Render an HTML "select" element. Render the clientId of - the component as the value of the "name" attribute. If the "styleClass" - attribute is specified, render its value as the value of the "class" - attribute on the "select" element. If the component - to be rendered is a UISelectMany, render "multiple" as the value of - the "multiple" attribute. If the "size" attribute is specified, - render its value as the value of the "size" attribute. Otherwise - use the number of items as the value of the "size" attribute. See - the "Rendering the option - elements" specification for ListboxRenderer for - more detail on how to render the "option" elements in this - renderer.

    - -
]]> -
- - selectOneListbox - - - com.sun.faces.taglib.html_basic.SelectOneListboxTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - size - - - false - - - - int - - - - - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render an HTML option list.

- -

Decode Behavior

- - - -

Encode Behavior

- -
    - -

    Render an HTML "select" element. Render the clientId of the - component as the value of the "name" attribute. If the - "styleClass" attribute is specified, render its value as the value - of the "class" attribute on the "select" element. If the component - to be rendered is a UISelectMany, render "true" as the value of - the "multiple" attribute. Use the number of items as the value of - the "size" attribute. See the "Rendering - the option elements" specification for - ListboxRenderer for more detail on how to render the - "option" elements in this renderer.

    - -
]]> -
- - selectOneMenu - - - com.sun.faces.taglib.html_basic.SelectOneMenuTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Render a set of html - "input" elements of type "radio".

- -

Decode Behavior

- - - -

Encode Behavior

- -
    - -

    Render a "table" element. If the "styleClass" is specified, - render the value of the "styleClass" attribute as the value of the - "class" attribute on the "table" element. If the "style", "border" - attributes are specified, convey them and render their values as the "style" - and "border" attributes on the "table", respectively.. If - the "layout" attribute is specified, and its value is - "pageDirection", render the children elements vertically, - otherwise horizontally, in the table. If any of the children are - an instance of SelectItemGroup, render them as a nested table. - Each of the children are ultimately rendered as follows. Render - an "input" element of "type" "radio" for each child component. - Render the "name" attribute on the "input" element with the value - of the clientId of the component. Render an "id" - attribute on the "input" element. Each "id" value must be unique. - If the current SelectItem.isDisabled() returns true, render - "disabled" as the value of the "disabled" attribute. Close out - the "input" element. Render a "label" element. Render the "for" - attribute of the "label" element whose value is the corresponding - "input" element's "id" value. Render any "style" as the "class" - attribute on the "label" element. Close out the starting "label" - element and render the label value from SelectItem.getLabel(). - Close out the "label" element. As an exception to the general - rules about how to handle the "id" attribute, render it as an - attribute on the outer "table" element, the value of which is the - clientId of the component per the rules at the - beginning of this specification. Coerce the value of the - currently rendered child to the type of the parent UISelectOne - value using the Expression Language coercion rules before - comparing the values. If the value of the currently rendered - child is equal to the value of the parent UISelectOne, render an - appropriate HTML boolean value indicating "checked" for the - enclosing "input". See the "Rendering the option elements" - specification for ListboxRenderer for more detail on - how to render the "option" elements in this renderer. Note that this renderer does - not support SelectItemGroup elements, so the text - that describes the rendering of SelectItemGroup does - not apply to this renderer.

    - -
]]> -
- - selectOneRadio - - - com.sun.faces.taglib.html_basic.SelectOneRadioTag - - - JSP - - - - java.lang.String, - which will be used in a call to Application.createConverter(String converterId) - to create the converter instance.]]> - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - immediate - - - false - - - - boolean - - - - - - - - - rendered - - - false - - - - boolean - - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - java.lang.String, - which will be used in a call to Application.createValidator(String validatorId - to create the validator instance.]]> - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - accesskey - - - false - - - - java.lang.String - - - - - - - - - border - - - false - - - - int - - - - - - - - - dir - - - false - - - - java.lang.String - - - - - - - - - disabled - - - false - - - - boolean - - - - - - - - - disabledClass - - - false - - - - java.lang.String - - - - - - - - - enabledClass - - - false - - - - java.lang.String - - - - - - - Flag indicating that, if this component is activated by the user, - The "no selection option", if any, must be hidden.

]]> -
- - hideNoSelectionOption - - - false - - - - boolean - - -
- - - - - - label - - - false - - - - java.lang.String - - - - - - - - - lang - - - false - - - - java.lang.String - - - - - - - - - layout - - - false - - - - java.lang.String - - - - - - - - - onblur - - - false - - - - java.lang.String - - - - - - - - - onchange - - - false - - - - java.lang.String - - - - - - - - - onclick - - - false - - - - java.lang.String - - - - - - - - - ondblclick - - - false - - - - java.lang.String - - - - - - - - - onfocus - - - false - - - - java.lang.String - - - - - - - - - onkeydown - - - false - - - - java.lang.String - - - - - - - - - onkeypress - - - false - - - - java.lang.String - - - - - - - - - onkeyup - - - false - - - - java.lang.String - - - - - - - - - onmousedown - - - false - - - - java.lang.String - - - - - - - - - onmousemove - - - false - - - - java.lang.String - - - - - - - - - onmouseout - - - false - - - - java.lang.String - - - - - - - - - onmouseover - - - false - - - - java.lang.String - - - - - - - - - onmouseup - - - false - - - - java.lang.String - - - - - - - - - onselect - - - false - - - - java.lang.String - - - - - - - - - readonly - - - false - - - - boolean - - - - - - Per the WAI-ARIA spec and its - relationship to HTML5 (Section title ARIA Role Attriubute), - every HTML element may have a "role" attribute whose value - must be passed through unmodified on the element on which it - is declared in the final rendered markup. The attribute, if - specified, must have a value that is a string literal that is, - or an EL Expression that evaluates to, a set of - space-separated tokens representing the various WAI-ARIA roles - that the element belongs to. -

- -

It is the page author's - responsibility to ensure that the user agent is capable of - correctly interpreting the value of this attribute.

]]> -
- - role - - - false - - - - java.lang.String - - -
- - - - - - style - - - false - - - - java.lang.String - - - - - - - - - styleClass - - - false - - - - java.lang.String - - - - - - - - - tabindex - - - false - - - - java.lang.String - - - - - - - - - title - - - false - - - - java.lang.String - - - - - - - - - group - - - false - - - - java.lang.String - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - -
- - - Renders a UIComponent that represents a single column of data within a parent UIData component.

]]> -
- - column - - - com.sun.faces.taglib.html_basic.ColumnTag - - - JSP - - - - Flag indicating whether or not this component should be rendered - (during Render Response Phase), or processed on any subsequent - form submit. - - - rendered - - - false - - - java.lang.Boolean - - - - - The value binding expression linking this component to a property in a backing bean - - - binding - - - false - - - jakarta.faces.component.UIComponent - - - - - The component identifier for the associated component - - - id - - - false - - - false - - - java.lang.String - - - - - - - - footerClass - - - false - - - - java.lang.String - - - - - - - - - headerClass - - - false - - - - java.lang.String - - - - - - - - - rowHeader - - - false - - - - boolean - - - -
-
diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_core.tld b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_core.tld deleted file mode 100644 index 401a9023a8..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_core.tld +++ /dev/null @@ -1,1628 +0,0 @@ - - - - - - - - - - The core JavaServer Faces custom actions that are independent of - any particular RenderKit. - - 2.1 - f - jakarta.faces.core - - - - - - - - - - - - - - - com.sun.faces.config.ConfigureListener - - - - - - - - - Register an ActionListener instance on the - UIComponent associated with the closest parent UIComponent - custom action.

]]> -
- actionListener - com.sun.faces.taglib.jsf_core.ActionListenerTag - empty - - - - Fully qualified Java class name of an ActionListener to be - created and registered. - - type - false - - java.lang.String - - - - - - - Value binding expression that evaluates to an object that - implements jakarta.faces.event.ActionListener. - - binding - false - - jakarta.faces.event.ActionListener - - - - - -
- - - - - Add an attribute to the UIComponent associated with the closest - parent UIComponent custom action. - - attribute - com.sun.faces.taglib.jsf_core.AttributeTag - empty - - - - The name of the component attribute to be set. - - name - - java.lang.String - - - - - - The value of the component attribute to be set. - - value - - java.lang.Object - - - - - - - - Register a DateTimeConverter instance on the UIComponent associated - with the closest parent UIComponent custom action. - - convertDateTime - com.sun.faces.taglib.jsf_core.ConvertDateTimeTag - empty - - - - Predefined formatting style which determines how the date - component of a date string is to be formatted and parsed. - Applied only if type is "date" or "both". Valid values - are "default", "short", "medium", "long", and "full". - Default value is "default". - - dateStyle - - java.lang.String - - - - - - Locale whose predefined styles for dates and times are used - during formatting or parsing. If not specified, the Locale - returned by FacesContext.getViewRoot().getLocale() will be used. - Value must be either a VB expression that evaluates to a - java.util.Locale instance, or a String that is valid to pass as - the first argument to the constructor java.util.Locale(String - language, String country). The empty string is passed as the - second argument. - - locale - false - - java.lang.Object - - - - - - Custom formatting pattern which determines how the - date/time string should be formatted and parsed. - - pattern - - java.lang.String - - - - - - Predefined formatting style which determines how the - time component of a date string is to be formatted and - parsed. Applied only if type is "time" or "both". - Valid values are "default", "short", "medium", "long", - and "full". Default value is "default". - - timeStyle - - java.lang.String - - - - - - Time zone in which to interpret any time information in the date - String. Value must be either a VB expression that evaluates to - a java.util.TimeZone instance, or a String that is a timezone ID - as described in the javadocs for - java.util.TimeZone.getTimeZone(). - - timeZone - - java.lang.Object - - - - - - Specifies what contents the string value will be - formatted to include, or parsed expecting. Valid - values are "date", "time", and "both". Default - value is "date". - - type - - java.lang.String - - - - - - A ValueExpression that evaluates to an instance of - jakarta.faces.convert.DateTimeConverter. - - binding - - jakarta.faces.convert.DateTimeConverter - - - - - - - - Register a NumberConverter instance on the UIComponent associated - with the closest parent UIComponent custom action. - - convertNumber - com.sun.faces.taglib.jsf_core.ConvertNumberTag - empty - - - - ISO 4217 currency code, applied only when - formatting currencies. - - currencyCode - - java.lang.String - - - - - - Currency symbol, applied only when formatting - currencies. - - currencySymbol - - java.lang.String - - - - - - Flag specifying whether formatted output will - contain grouping separators. Expressions must - evaluate to a boolean. Default value - is true. - - groupingUsed - - java.lang.Boolean - - - - - - Flag specifying whether only the integer part - of the value will be formatted and parsed. - Expressions must evaluate to a boolean. - Default value is false. - - integerOnly - - java.lang.Boolean - - - - - - - Locale whose - predefined styles for numbers are used during formatting - and parsing. If not specified, the Locale returned by - FacesContext.getViewRoot().getLocale() will be used. - Expressions must evaluate to a java.util.Locale or a String that is valid to - pass as the first argument to the constructor - java.util.Locale(String language, String country). The - empty string is passed as the second argument. - -

]]>
- locale - - java.lang.Object - -
- - - - Maximum number of digits that will be formatted - in the fractional portion of the output. Expressions - must evaluate to an int. - - maxFractionDigits - - java.lang.Integer - - - - - - Maximum number of digits that will be formatted - in the integer portion of the output. Expressions - must evaluate to an int. - - maxIntegerDigits - - java.lang.Integer - - - - - - Minimum number of digits that will be formatted - in the fractional portion of the output. Expressions - must evaluate to an int. - - minFractionDigits - - java.lang.Integer - - - - - - Minimum number of digits that will be formatted - in the integer portion of the output. Expressions - must evaluate to an int. - - minIntegerDigits - - java.lang.Integer - - - - - - Custom formatting pattern which determins how the - number string should be formatted and parsed. - - pattern - - java.lang.String - - - - - - Specifies how the number string will be formatted - and parsed. Valid values are "number", "currency", - and "percent". Default value is "number". - - type - - java.lang.String - - - - - - A ValueExpression that evaluates to an instance of - jakarta.faces.convert.NumberConverter. - - binding - - jakarta.faces.convert.NumberConverter - - - -
- - - - Register a named Converter instance on the UIComponent - associated with the closest parent UIComponent custom action. - - converter - com.sun.faces.taglib.jsf_core.ConverterTag - empty - - - - Converter identifier of the Converter instance to be - created and registered. - - converterId - - java.lang.String - - - - - - A ValueExpression that evaluates to an object that - implements jakarta.faces.convert.Converter. - - binding - - jakarta.faces.convert.Converter - - - - - - - Register a - named facet on the UIComponent associated with the closest - parent UIComponent custom action.

- - ]]>
- facet - jakarta.faces.webapp.FacetTag - JSP - - - - Name of the facet to be created. - - name - true - false - java.lang.String - - -
- - - - - Load a resource bundle localized for the Locale of the current - view, and expose it as a java.util.Map in the request attributes - of the current request under the key specified by the value of the - "var" attribute of this tag. The Map must behave such that if a - get() call is made for a key that does not exist in the Map, the - literal string ???KEY??? is returned from the Map, where KEY is - the key being looked up in the Map, instead of a - MissingResourceException being thrown. If the ResourceBundle does - not exist, a JspException must be thrown. - - loadBundle - com.sun.faces.taglib.jsf_core.LoadBundleTag - empty - - - - Base name of the resource bundle - to be loaded. - - basename - - java.lang.String - - - - - - Name of a request scope attribute under which - the resource bundle will be exposed as a Map. - - var - true - false - - - - - - - Add a child UIParameter component to the UIComponent - associated with the closed parent UIComponent custom - action. - - param - com.sun.faces.taglib.jsf_core.ParameterTag - JSP - - - - ValueExpression to a backing bean - property bound to the component instance for - the UIComponent created by this custom action. - - binding - - jakarta.faces.component.UIComponent - - - - - - Component identifier of the UIParameter component - to be created. - - id - false - true - - - - - Name of the parameter to be created. - - name - - java.lang.String - - - - - - Value of the parameter to be set. - - value - - - - - - - Used inside of the metada facet - of a view, this tag causes a UIViewParameter - to be attached as metadata for the current view. Because - UIViewParameter extends UIInput - all of the attributes and nested child content for any - UIInput tags are valid on this tag as well.

- - ]]>
- viewParam - com.sun.faces.taglib.jsf_core.ParameterTag - JSP - - - - - - - converter - - - false - - - - jakarta.faces.convert.Converter - - - - - - - - - converterMessage - - - false - - - - java.lang.String - - - - - - - - - id - - - false - - - true - - - - - - - - required - - - false - - - - boolean - - - - - - - - - requiredMessage - - - false - - - - java.lang.String - - - - - - - - - validator - - - false - - - - void validate(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent, java.lang.Object) - - - - - - - - - validatorMessage - - - false - - - - java.lang.String - - - - - - - - - value - - - false - - - - java.lang.Object - - - - - - - - MethodExpression representing a value change listener method - that will be notified when a new value has been set for this - input component. The expression must evaluate to a public - method that takes a ValueChangeEvent parameter, - with a return type of void, or - to a public method that takes no arguments with a return type - of void. In the latter case, the method has no way of easily - knowing what the new value is, but this can be useful in cases - where a notification is needed that "this value - changed". - -

]]> -
- - valueChangeListener - - - false - - - - void valueChange(jakarta.faces.event.ValueChangeEvent) - - -
- - - - - - - maxlength - - - false - - - - int - - - - - - - The ValueExpression linking this component to a property in a backing bean - - - binding - - - false - - - - jakarta.faces.component.UIComponent - - - - -
- - - - - Register a PhaseListener instance on the UIViewRoot in which - this tag is nested. - - phaseListener - com.sun.faces.taglib.jsf_core.PhaseListenerTag - empty - - - - Fully qualified Java class name of an PhaseListener to be - created and registered. - - type - false - - java.lang.String - - - - - - - Value binding expression that evaluates to an object that - implements jakarta.faces.event.PhaseListener. - - binding - false - - jakarta.faces.event.PhaseListener - - - - - - - - Add a child - UISelectItem component to the UIComponent associated with - the closed parent UIComponent custom action.

- - ]]> -
- selectItem - com.sun.faces.taglib.jsf_core.SelectItemTag - empty - - - - Value binding expression to a backing bean - property bound to the component instance for - the UIComponent created by this custom action. - - binding - - jakarta.faces.component.UIComponent - - - - - - Component identifier of the UISelectItem - component to be created. - - id - false - true - - - - - Description of this option, for use in - development tools. - - itemDescription - - java.lang.String - - - - - - Flag indicating whether the option created - by this component is disabled. Expressions - must evaluate to a boolean. Default value - is false. - - itemDisabled - - java.lang.Boolean - - - - - - Label to be displayed to the user - for this option. - - itemLabel - - java.lang.String - - - - - - Flag indicating that characters that are sensitive in - the value of the itemLabel]]> - attribute must be escaped. This flag is set to "true" by - default. - - escape - - java.lang.String - - - - - - Value to be returned to the server if this - option is selected by the user. - - itemValue - - - - - - Value binding expression pointing at a - SelectItem instance containing the - information for this option. - - value - - jakarta.faces.model.SelectItem - - - - - - Flag indicating whether the - option created by this component represents the special - "no selection" option. Expressions must evaluate to a - boolean. Default value is false.

- - ]]> -
- noSelectionOption - - java.lang.Boolean - -
- - -
- - - - - Add a child UISelectItems - component to the UIComponent associated with the closest - parent UIComponent custom action.

- -

When iterating over the - select items, toString() must be called on the - string rendered attribute values.

- -

Version 2 of the specification introduces -several new attributes, described below. These are: var, itemValue, -itemLabel, itemDescription, itemDisabled, and itemLabelEscaped.

- - ]]> - -
- selectItems - com.sun.faces.taglib.jsf_core.SelectItemsTag - empty - - - - Value binding expression to a backing bean - property bound to the component instance for - the UIComponent created by this custom action. - - binding - - jakarta.faces.component.UIComponent - - - - - - Component identifier of the UISelectItems - component to be created. - - id - false - true - - - - - Value expression pointing at any Collection - or array. The member elements may be instances of - SelectItem or any Java Object. In the - case where the member elements are plain Java Objects, - several additional attributes must be used by the page - author to correctly identify the data to the enclosing - UISelectOne or UISelectMany - component, as shown in the following example. - -
  1. <h:selectOneListbox size="1" id="escape02" value="#{select05NoSelection.initialCollectionValues}">
  2. -
  3.   <f:selectItems value="#{select05NoSelection.hobbitList}"
  4. -
  5.                  var="n"
  6. -
  7.                  itemValue="#{n.id}"
  8. -
  9.                  itemLabel="#{n.bio}"
  10. -
  11.                  itemDescription="#{n.description}"
  12. -
  13.                  itemDisabled="#{n.disabled}"
  14. -
  15.                  itemLabelEscaped="true"
  16. -
  17.                  noSelectionValue="#{select05NoSelection.hobbitList[0]}"/>
  18. -
  19. </h:selectOneListbox>
- -

In the preceding example, the -value attribute on line 1 points to a -Collection<HobbitBean>. HobbitBean is -just a regular Java Object (POJO) that conforms to JavaBeans naming -conventions for its properties. The value attribute on -line 2 points to a List<HobbitBean>, though it could -just as well point to a Collection, array, or -jakarta.faces.model.DataModel. The attributes on lines 3 -through 9, inclusive, leverage the fact that the value is a collection -of POJOs. -

- - -

- - ]]> -
- value - - java.lang.Object - -
- - - - Expose the value from the -value attribute under this request scoped key so that it -may be referred to in EL for the value of other attributes.

- - ]]> -
- var - false - false - java.lang.String -
- - - - -This attribute lets you refer to a property -of the current member of the collection referenced by the "value" -attribute, using the value of the "var" attribute as the base. For -example, #{n.id}.

]]> - -
- itemValue - - java.lang.Object - -
- - - - -evaluates to a String that will -serve as the label to be shown for the item.

]]> - -
- itemLabel - - java.lang.String - -
- - - - - -evaluates to a String that will -serve as the description to be shown for the item.

]]> - -
- itemDescription - - java.lang.String - -
- - - - -evaluates to a boolean that will -determine if the item value is selectable or not.

]]> - -
- itemDisabled - - java.lang.Boolean - -
- - - - -evaluates to a boolean that will -determine if the rendered markup for the item receives normal JSF HTML escaping or not.

]]> - -
- itemLabelEscaped - - java.lang.Boolean - -
- - - - -Is either an EL expression -pointing to the element in the value collection whose value should be -marked as a “no selection” item, or a literal string that -exactly matches the value of the item in the collection that must be -marked as the “no selection” item. If the user selects such -an item and the field is marked as required, then it -will not pass validation.

]]> - -
- noSelectionOption - - java.lang.Boolean - -
- -
- - - - Register an ActionListener instance on the UIComponent - associated with the closest parent UIComponent custom action. - This actionListener will cause the value given by the "value" - attribute to be set into the ValueExpression given by the "target" - attribute.

- -

The implementation of this tag creates a special - ActionListener instance and registers it on the - ActionSource associated with our most immediate surrounding - instance of a tag whose implementation class is a subclass of - UIComponentTag. This tag creates no output to the page - currently being created.

- -

The ActionListener instance created and installed by - this tag has the following behavior and contract.

- -
    - -
  • Only create and register the ActionListener instance - the first time the component for this tag is created
  • - -
  • The "target" and "value" tag attributes are ValueExpression - instances and are stored unevaluated as instance variables of the - listener.
  • - -
  • When the listener executes, perform the following: -
      - Call getValue() on the "value" ValueExpression. -
    -
      - If value of the "value" expression is null, call setValue() on - the "target" ValueExpression with the null value. -
    -
      - If the value of the "value" expression is not null, call getType() - on the "value" and "target" ValueExpressions to determine their - property types. -
    -
      - Coerce the value of the "value" expression to the "target" - expression value type following the Expression Language coercion - rules. Call setValue() on the "target" ValueExpression with the - resulting value. -
    -
      - If either coercion or the execution of setValue() fails throw an - AbortProcessingException. -
    -
  • - -
]]> -
- setPropertyActionListener - com.sun.faces.taglib.jsf_core.SetPropertyActionListenerTag - empty - - - - ValueExpression to be stored as the value of the target - attribute. - - value - true - - - - - - ValueExpression that is the destination of the value - attribute. - - target - true - - - -
- - - - - Container action for all JavaServer Faces core and - custom component actions used on a nested page via - "jsp:include" or any custom action that dynamically - includes another page from the same web application, - such as JSTL's "c:import". - - subview - com.sun.faces.taglib.jsf_core.SubviewTag - JSP - - - - - Value binding expression to a backing bean - property bound to the component instance for - the UIComponent created by this custom action. - - binding - - jakarta.faces.component.UIComponent - - - - - - Component identifier of the UINamingContainer - component to be created. - - id - true - true - - - - - Flag indicating whether this component (and its - children) should be rendered. Expressions must - evaluate to a boolean. - - rendered - - java.lang.Boolean - - - - - - - - - Register a DoubleRangeValidator instance on the - UIComponent associated with the closest parent - UIComponent custom action. - - validateDoubleRange - com.sun.faces.taglib.jsf_core.ValidateDoubleRangeTag - JSP - - - - Maximum value allowed for this component. - - maximum - - java.lang.Double - - - - - - Minimum value allowed for this component. - - minimum - - java.lang.Double - - - - - - A ValueExpression that evaluates to an instance of - DoubleRangeValidator. - - binding - - jakarta.faces.validator.DoubleRangeValidator - - - - - - - - - Register a LengthValidator instance on the - UIComponent associated with the closest parent - UIComponent custom action. - - validateLength - com.sun.faces.taglib.jsf_core.ValidateLengthTag - JSP - - - - Maximum length allowed for this component. - - maximum - - java.lang.Integer - - - - - - - Minimum length allowed for this component. - - minimum - - java.lang.Integer - - - - - - A ValueExpression that evaluates to an instance of - LenghtValidator. - - binding - - jakarta.faces.validator.LengthValidator - - - - - - - - - Register a LongRangeValidator instance on the - UIComponent associated with the closest parent - UIComponent custom action. - - validateLongRange - com.sun.faces.taglib.jsf_core.ValidateLongRangeTag - JSP - - - - Maximum value allowed for this component. - - maximum - - java.lang.Long - - - - - - - Minimum value allowed for this component. - - minimum - - java.lang.Long - - - - - - A ValueExpression that evaluates to an instance of - LongRangeValidator. - - binding - - jakarta.faces.validator.LongRangeValidator - - - - - - - - - - A validator that uses the pattern attribute to validate the - wrapping component. The entire pattern is matched against - the String value of the component. If it matches, it's - valid. - -

]]> -
- validateRegex - com.sun.faces.taglib.jsf_core.RegexValidatorTag - empty - - - A regular expression pattern. Remember that, like in - all Java strings, backslash must be escaped with another - backslash. - - pattern - true - - java.lang.String - - - - - A ValueExpression that evaluates to an instance of - RegexpValidator. - - binding - - jakarta.faces.validator.RegexValidator - - -
- - - - Register a named Validator instance on the - UIComponent associated with the closest parent - UIComponent custom action. - - validator - com.sun.faces.taglib.jsf_core.ValidatorTag - empty - - - - Validator identifier of the Validator - to be created and registered. - - validatorId - - java.lang.String - - - - - - A ValueExpression that evaluates to an object that implements - the jakarta.faces.validator.Validator interface. - - binding - - jakarta.faces.validator.Validator - - - - - - - - - Register an ValueChangeListener instance on the UIComponent associated - with the closest parent UIComponent custom action. - - valueChangeListener - com.sun.faces.taglib.jsf_core.ValueChangeListenerTag - empty - - - - Fully qualified Java class name of a - ValueChangeListener to be created and registered. - - type - - java.lang.String - - - - - - - Value binding expression that evaluates to an object that - implements jakarta.faces.event.ValueChangeListener. - - binding - false - - jakarta.faces.event.ValueChangeListener - - - - - - - - - - Create and register a child UIOutput component - associated with the closest parent UIComponent - custom action, which renders nested body content. - - verbatim - com.sun.faces.taglib.jsf_core.VerbatimTag - JSP - - - - Flag indicating that generated markup must - be escaped in a manner that is appropriate - for the markup language to be rendered. - Expressions must evaluate to a boolean. - Default value is false. - - escape - - java.lang.Boolean - - - - - - - - - rendered - - - false - - - - java.lang.Boolean - - - - - - - - - - Container for all JavaServer Faces core and custom - component actions used on a page. - - view - com.sun.faces.taglib.jsf_core.ViewTag - JSP - - - - Locale to use for localizing this page. Expressions - must evaluate to a java.util.Locale or to a String - that is converted to a Locale. - - locale - - java.lang.Object - - - - - - Identifier for the RenderKit to use for - rendering this page. - - renderKitId - false - - java.lang.String - - - - - - - - MethodBinding pointing to a method that takes a - jakarta.faces.event.PhaseEvent and returns void. This method - will be called before every phase except for restore view. - - beforePhase - false - - void beforePhase(jakarta.faces.event.PhaseEvent) - - - - - - - MethodBinding pointing to a method that takes a - jakarta.faces.event.PhaseEvent and returns void. This method - will be called after every phase except for restore view. - - afterPhase - false - - void afterPhase(jakarta.faces.event.PhaseEvent) - - - - - - -
diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.war.sun-web.xml b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.war.sun-web.xml deleted file mode 100644 index 1c891a5284..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.war.sun-web.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - jsf_webapp_tldsig_web - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.xml b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.xml deleted file mode 100644 index fadc755af1..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/jsf_webapp_tldsig_web.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - jsf_webapp_tldsig - - - - com.sun.ts.tests.jsf.spec.webapp.tldsig.SignatureInitListener - - - - - Faces Servlet - jakarta.faces.webapp.FacesServlet - - - Faces Servlet - *.jsf - - - - 54 - - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/signaturetest.tld b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/signaturetest.tld deleted file mode 100644 index d168ffe934..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/signaturetest.tld +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - 1.0 - tcksig - http://java.sun.com/tck/taglibsignaturetest - - signaturetest - com.sun.ts.tests.jsf.spec.webapp.tldsig.SignatureTestTag - com.sun.ts.tests.jsf.spec.webapp.tldsig.JSFSigTEI - empty - - diff --git a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/test.jsp b/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/test.jsp deleted file mode 100644 index 063763b214..0000000000 --- a/src/com/sun/ts/tests/jsf/spec/webapp/tldsig/test.jsp +++ /dev/null @@ -1,26 +0,0 @@ -<%-- - - Copyright (c) 2018, 2022 Oracle and/or its affiliates. All rights reserved. - - This program and the accompanying materials are made available under the - terms of the Eclipse Public License v. 2.0, which is available at - http://www.eclipse.org/legal/epl-2.0. - - This Source Code may also be made available under the following Secondary - Licenses when the conditions for such availability set forth in the - Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - version 2 with the GNU Classpath Exception, which is available at - https://www.gnu.org/software/classpath/license.html. - - SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - ---%> - -<%-- Testing JSF core and html taglibraries --%> -<%@ page contentType="plain/txt" %> -<%@ taglib uri="jakarta.faces.core" prefix="f" %> -<%@ taglib uri="jakarta.faces.html" prefix="h" %> - -<%@ taglib uri="/WEB-INF/signaturetest.tld" prefix="tck" %> - - diff --git a/src/com/sun/ts/tests/signaturetest/jsf/JSFSigTest.java b/src/com/sun/ts/tests/signaturetest/jsf/JSFSigTest.java deleted file mode 100644 index f2ef3d6ed5..0000000000 --- a/src/com/sun/ts/tests/signaturetest/jsf/JSFSigTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2007, 2020 Oracle and/or its affiliates. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v. 2.0, which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * This Source Code may also be made available under the following Secondary - * Licenses when the conditions for such availability set forth in the - * Eclipse Public License v. 2.0 are satisfied: GNU General Public License, - * version 2 with the GNU Classpath Exception, which is available at - * https://www.gnu.org/software/classpath/license.html. - * - * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 - */ - -/* - * $Id$ - */ - -package com.sun.ts.tests.signaturetest.jsf; - -import java.io.PrintWriter; - -import com.sun.javatest.Status; -import com.sun.ts.tests.signaturetest.SigTest; - -/* - * This class is a simple example of a signature test that extends the - * SigTest framework class. This signature test is run outside of the - * Java EE containers. This class also contains the boilerplate - * code necessary to create a signature test using the test framework. - * To see a complete TCK example see the javaee directory for the Java EE - * TCK signature test class. - */ - -public class JSFSigTest extends SigTest { - - /***** Abstract Method Implementation *****/ - - /** - * Returns a list of strings where each string represents a package name. Each - * package name will have it's signature tested by the signature test - * framework. - * - * @return String[] The names of the packages whose signatures should be - * verified. - */ - protected String[] getPackages() { - return new String[] { "jakarta.faces", "jakarta.faces.application", - "jakarta.faces.bean", "jakarta.faces.component", - "jakarta.faces.component.behavior", "jakarta.faces.component.html", - "jakarta.faces.component.visit", "jakarta.faces.context", - "jakarta.faces.convert", "jakarta.faces.el", "jakarta.faces.event", - "jakarta.faces.flow", "jakarta.faces.flow.builder", "jakarta.faces.lifecycle", - "jakarta.faces.model", "jakarta.faces.render", "jakarta.faces.validator", - "jakarta.faces.view", "jakarta.faces.view.facelets", "jakarta.faces.webapp" }; - } - - /** - * ** Boilerplate Code **** - */ - - /* - * Initial entry point for JavaTest. - */ - public static void main(String[] args) { - JSFSigTest theTests = new JSFSigTest(); - Status s = theTests.run(args, System.out, System.err); - s.exit(); - } - - public Status run(String[] args, PrintWriter out, PrintWriter err) { - return super.run(args, out, err); - } - - /* - * The following comments are specified in the base class that defines the - * signature tests. This is done so the test finders will find the right class - * to run. The implementation of these methods is inherited from the super - * class which is part of the signature test framework. - */ - - // NOTE: If the API under test is not part of your testing runtime - // environment, - // you may use the property sigTestClasspath to specify where the API - // under test lives. This should almost never be used. Normally the API - // under test should be specified in the classpath of the VM running the - // signature tests. Use either the first comment or the one below it depending - // on which properties your signature tests need. Please do not use both - // comments. - - /* - * @class.setup_props: sigTestClasspath, Location of JSF api jar files; - * ts_home, The base path of this TCK; - */ - - /* - * @testName: signatureTest - * - * @assertion: A JSF platform must implement the required classes and and APIs - * specified in the JSF Specification. - * - * @test_Strategy: Using reflection, gather the implementation specific - * classes and APIs. Compare these results with the expected (required) - * classes and APIs. - * - */ - - /* - * Call the parent class's cleanup method. - */ - -} // end class CTSSigTest diff --git a/src/com/sun/ts/tests/signaturetest/jsf/build.xml b/src/com/sun/ts/tests/signaturetest/jsf/build.xml deleted file mode 100644 index a18b033195..0000000000 --- a/src/com/sun/ts/tests/signaturetest/jsf/build.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/user_guides/build_tckugs.sh b/user_guides/build_tckugs.sh index b5e2b11c73..cefa017651 100644 --- a/user_guides/build_tckugs.sh +++ b/user_guides/build_tckugs.sh @@ -27,7 +27,7 @@ export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATH cd ${WORKSPACE} export BASEDIR=`pwd` export USERGUIDEDIR=$BASEDIR/user_guides -alltcks="caj concurrency el jacc jaspic jaxws jca jms jpa jsf jsp jstl jta saaj securityapi servlet websocket" +alltcks="caj concurrency el jacc jaspic jaxws jca jms jpa jsp jstl jta saaj securityapi servlet websocket" cd $USERGUIDEDIR rm -rf $USERGUIDEDIR/tmp diff --git a/user_guides/jsf/README.md b/user_guides/jsf/README.md deleted file mode 100644 index a3ec2b697b..0000000000 --- a/user_guides/jsf/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# A JBake project template - -## About JBake - -JBake is a static site generator, it's inspired from jekyll and written -in java. The basic idea is to have templates for the structure of the -page, and the body generated from asciidoc content. - -## Pre requisites - -- Maven -- JDK8+ - -Deploying to Github will require password less authentication. - -This is done by exporting your SSH public key into your Github account. - -## Build the site locally - -The site is generated under target/staging. - -Open file:///PATH_TO_PROJECT_DIR/target/staging in a browser to view the site. - -``` -mvn generate-resources -``` - -Or you can invoke the JBake plugin directly. - -``` -mvn jbake:build -``` - -### Rebuild the site on changes - -``` -mvn jbake:watch -``` - -If you keep this command running, changes to the sources will be -detected and the site will be rendered incrementally. - -This is convenient when writing content. - -### Serve the site locally - -``` -mvn jbake:serve -``` - -If a webserver is required (e.g. absolute path are used), this command -will start a webserver (jetty) at http://localhost:8820. It will also -watch for changes and rebuild incrementally. - -## Deploy the site to Github Pages - -``` -mvn deploy -``` - -## Produce a zip file for download - -To produce a zip file containing the generated html files, use: - -``` -mvn package -``` - -When making a release on GitHub, this zip file should be added to the release. - -## Links - -- [JBake maven plugin documentation](https://github.com/Blazebit/jbake-maven-plugin) -- [JBake documentation](http://jbake.org/docs/2.5.1) -- [Freemarker documentation](http://freemarker.org/docs) -- [AsciiDoc User Guide](http://asciidoc.org/userguide.html) -- [Asciidoctor quick reference](http://asciidoctor.org/docs/asciidoc-syntax-quick-reference) diff --git a/user_guides/jsf/pom.xml b/user_guides/jsf/pom.xml deleted file mode 100644 index a24ce32f76..0000000000 --- a/user_guides/jsf/pom.xml +++ /dev/null @@ -1,258 +0,0 @@ - - - - - 4.0.0 - - org.eclipse.ee4j - project - 1.0.5 - - org.glassfish - tck_jsf - pom - 3.0.1 - Eclipse Foundation Technology Compatibility Kit User's Guide for Jakarta Server Faces Jakarta EE, Release 3.0 - - - UTF-8 - ${project.build.directory}/staging - true - 2.4.2 - 2.1.0 - 2.1.0 - 1.5.3 - 0.3.3 - 2.3.30 - - - Jakarta-Server-Faces-TCK-Users-Guide.pdf - true - - - - - scm:git:git@github.com:eclipse-ee4j/jakartaee-tck.git - - - - - package - - - org.apache.maven.plugins - maven-clean-plugin - - - - src/main/jbake/content - - toc.adoc - - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - enforce-versions - - enforce - - - - - [1.8.0,) - You need JDK8 or newer - - - - - - - - org.glassfish.doc - glassfish-doc-maven-plugin - - - generate-toc - generate-resources - - toc - - - - [0-9]+\s.*,Preface.*,Part\s.* - - - - - generate-book - generate-resources - - book - - - - - - org.jbake - jbake-maven-plugin - - ${site.output.dir} - - ${status} - - - - - build-site - generate-resources - - generate - - - - - - org.asciidoctor - asciidoctor-maven-plugin - - ${project.build.directory}/book - book.adoc - - ${project.build.directory}/staging/ - pdf - ${doc.pdf} - - ${project.basedir}/src/theme - jakartaee - book - ${status} - - - font - - - font - true - - - - true - true - - - - - generate-pdf-doc - generate-resources - - process-asciidoc - - - - - - org.apache.maven.plugins - maven-scm-publish-plugin - - - deploy-site - deploy - - publish-scm - - - gh-pages - false - Update site - - - - - - - - - - org.apache.maven.plugins - maven-clean-plugin - 3.1.0 - - - org.glassfish.doc - glassfish-doc-maven-plugin - 1.3 - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0-M3 - - - org.apache.maven.plugins - maven-assembly-plugin - 3.3.0 - - - org.apache.maven.plugins - maven-scm-publish-plugin - 3.1.0 - - - org.jbake - jbake-maven-plugin - ${jbake.maven.plugin.version} - - - org.asciidoctor - asciidoctorj - ${asciidoctorj.version} - - - org.asciidoctor - asciidoctorj-diagram - ${asciidoctorj.diagram.version} - - - org.freemarker - freemarker - ${freemarker.version} - - - - - org.asciidoctor - asciidoctor-maven-plugin - ${asciidoctorj.maven.plugin.version} - - - org.asciidoctor - asciidoctorj-pdf - ${asciidoctorj.pdf.version} - - - - - - - diff --git a/user_guides/jsf/src/main/jbake/assets/README.md b/user_guides/jsf/src/main/jbake/assets/README.md deleted file mode 100644 index f8f962c0ab..0000000000 --- a/user_guides/jsf/src/main/jbake/assets/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# About - -The {{site.title}} project contains the [AsciiDoc](http://asciidoc.org/) -source code for the ... diff --git a/user_guides/jsf/src/main/jbake/assets/_config.yml b/user_guides/jsf/src/main/jbake/assets/_config.yml deleted file mode 100644 index d81a5c3235..0000000000 --- a/user_guides/jsf/src/main/jbake/assets/_config.yml +++ /dev/null @@ -1,14 +0,0 @@ -remote_theme: jakartaee/jekyll-theme-jakarta-ee - -title: [tck_jaxrs_v2_1] -description: [Oracle Technology Compatibility Kit User's Guide for Java API for RESTful Web Services (JAX-RS) 2.1 for Technology Licensees, Release 2.1] - -# sidebar links url -links: - source: https://github.com/javaee/tck_jaxrs_v2_1 - download: https://github.com/javaee/tck_jaxrs_v2_1/releases - #mailinglist: https://javaee.groups.io/g/tck_jaxrs_v2_1 - #javadocs: - docs: https://javaee.github.io/tck_jaxrs_v2_1 - #faq: - diff --git a/user_guides/jsf/src/main/jbake/assets/css/style.css b/user_guides/jsf/src/main/jbake/assets/css/style.css deleted file mode 100644 index 182f7559b6..0000000000 --- a/user_guides/jsf/src/main/jbake/assets/css/style.css +++ /dev/null @@ -1,313 +0,0 @@ -/* CSS */ -/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ -/** 1. Set default font family to sans-serif. 2. Prevent iOS text size adjust after orientation change, without disabling user zoom. */ -html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } - -/* HTML5 display definitions ========================================================================== */ -/** Correct `block` display not defined for any HTML5 element in IE 8/9. Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. Correct `block` display not defined for `main` in IE 11. */ -article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } - -/** 1. Correct `inline-block` display not defined in IE 8/9. 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ -audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } - -/** Prevent modern browsers from displaying `audio` without controls. Remove excess height in iOS 5 devices. */ -audio:not([controls]) { display: none; height: 0; } - -/** Address `[hidden]` styling not present in IE 8/9/10. Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. */ -[hidden], template { display: none; } - -/* Links ========================================================================== */ -/** Remove the gray background color from active links in IE 10. */ -a { background-color: transparent; } - -/** Improve readability when focused and also mouse hovered in all browsers. */ -a:active, a:hover { outline: 0; } - -/* Text-level semantics ========================================================================== */ -/** Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ -abbr[title] { border-bottom: 1px dotted; } - -/** Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ -b, strong { font-weight: bold; } - -/** Address styling not present in Safari and Chrome. */ -dfn { font-style: italic; } - -/** Address variable `h1` font-size and margin within `section` and `article` contexts in Firefox 4+, Safari, and Chrome. */ -h1 { font-size: 2em; margin: 0.67em 0; } - -/** Address styling not present in IE 8/9. */ -mark { background: #ff0; color: #000; } - -/** Address inconsistent and variable font size in all browsers. */ -small { font-size: 80%; } - -/** Prevent `sub` and `sup` affecting `line-height` in all browsers. */ -sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } - -sup { top: -0.5em; } - -sub { bottom: -0.25em; } - -/* Embedded content ========================================================================== */ -/** Remove border when inside `a` element in IE 8/9/10. */ -img { border: 0; } - -/** Correct overflow not hidden in IE 9/10/11. */ -svg:not(:root) { overflow: hidden; } - -/* Grouping content ========================================================================== */ -/** Address margin not present in IE 8/9 and Safari. */ -figure { margin: 1em 40px; } - -/** Address differences between Firefox and other browsers. */ -hr { box-sizing: content-box; height: 0; } - -/** Contain overflow in all browsers. */ -pre { overflow: auto; } - -/** Address odd `em`-unit font size rendering in all browsers. */ -code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } - -/* Forms ========================================================================== */ -/** Known limitation: by default, Chrome and Safari on OS X allow very limited styling of `select`, unless a `border` property is set. */ -/** 1. Correct color not being inherited. Known issue: affects color of disabled elements. 2. Correct font properties not being inherited. 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ -button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ } - -/** Address `overflow` set to `hidden` in IE 8/9/10/11. */ -button { overflow: visible; } - -/** Address inconsistent `text-transform` inheritance for `button` and `select`. All other form control elements do not inherit `text-transform` values. Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. Correct `select` style inheritance in Firefox. */ -button, select { text-transform: none; } - -/** 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls. 2. Correct inability to style clickable `input` types in iOS. 3. Improve usability and consistency of cursor style between image-type `input` and others. */ -button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ } - -/** Re-set default cursor for disabled elements. */ -button[disabled], html input[disabled] { cursor: default; } - -/** Remove inner padding and border in Firefox 4+. */ -button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } - -/** Address Firefox 4+ setting `line-height` on `input` using `!important` in the UA stylesheet. */ -input { line-height: normal; } - -/** It's recommended that you don't attempt to style these elements. Firefox's implementation doesn't respect box-sizing, padding, or width. 1. Address box sizing set to `content-box` in IE 8/9/10. 2. Remove excess padding in IE 8/9/10. */ -input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } - -/** Fix the cursor style for Chrome's increment/decrement buttons. For certain `font-size` values of the `input`, it causes the cursor style of the decrement button to change from `default` to `text`. */ -input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } - -/** 1. Address `appearance` set to `searchfield` in Safari and Chrome. 2. Address `box-sizing` set to `border-box` in Safari and Chrome (include `-moz` to future-proof). */ -input[type="search"] { -webkit-appearance: textfield; /* 1 */ /* 2 */ box-sizing: content-box; } - -/** Remove inner padding and search cancel button in Safari and Chrome on OS X. Safari (but not Chrome) clips the cancel button when the search input has padding (and `textfield` appearance). */ -input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } - -/** Define consistent border, margin, and padding. */ -fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } - -/** 1. Correct `color` not being inherited in IE 8/9/10/11. 2. Remove padding so people aren't caught out if they zero out fieldsets. */ -legend { border: 0; /* 1 */ padding: 0; /* 2 */ } - -/** Remove default vertical scrollbar in IE 8/9/10/11. */ -textarea { overflow: auto; } - -/** Don't inherit the `font-weight` (applied by a rule above). NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */ -optgroup { font-weight: bold; } - -/* Tables ========================================================================== */ -/** Remove most spacing between table cells. */ -table { border-collapse: collapse; border-spacing: 0; } - -td, th { padding: 0; } - -/* LAYOUT STYLES */ - -p { margin-top: 0; } - -code, pre { margin-bottom: 30px; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-size: 13px; color: #222; } - -code { padding: 0 3px; background-color: #f2f8fc; border: solid 1px #dbe7f3; } - -pre { padding: 20px; overflow: auto; text-shadow: none; background: #fff; border: solid 1px #f2f2f2; } - -pre code { padding: 0; color: #2879d0; background-color: #fff; border: none; } - -ul, ol, dl { margin-bottom: 20px; } - -/* COMMON STYLES */ - -td.halign-right { text-align: right; } - -td.halign-center { text-align: center; } - -form { padding: 20px; background: #f2f2f2; } - -h2 { - font-size: 2em; - line-height: 1.2em; - font-weight: 200; - letter-spacing: 0; -} - -h3 { - font-size: 1.4em; - line-height: 1.2em; - font-weight: normal; - letter-spacing: 0; -} - -.sect1 { - margin-left: 4%; - margin-right: 4%; - font: 13px/20px Arial, Helvetica, sans-serif -} - -a:link { - text-decoration: none; - color: #09569d; -} - -#preamble hr{ - margin-left: 0%; - margin-right: 0%; -} - -#preamble .sectionbody table { - font-weight: 200; - margin-left: 4%; - margin-right: 4%; -} - -hr { - margin-bottom: 12px; -} - -table.tableblock.frame-all.grid-all.spread { - font-size: 12px; -} - -code { - font-size:.9em; - border: 1px solid #eaeaea; - background-color: #f6f6f6; - border-radius: 3px; - padding: 1px; - padding-left:2px; - padding-right:2px; -} - -pre.prettyprint.highlight { - border: 1px solid #eaeaea; - background-color: #f6f6f6; - border-radius: 4px; - padding: 8px; - padding-top:4px; - padding-bottom:4px; -} - -.language-oac_no_warn { - font-size:.9em; - color:#222; - background-color: transparent; -} - -#doc-title { - margin-left: 4%; -} - -#top-nav { - margin-left: 4%; - font-size: 12px; -} - -#bottom-nav { - margin-left: 4%; - font-size: 12px; -} - -.vector-font { - color:grey; - font-size: 20px; -} - -#copyright { - padding-top: 10px; - padding-bottom: 4px; - display: table; - margin:0 auto; - color: grey; - font-size: 12px; - vertical-align: middle; -} - -.beta {color: #FF0000} - -/* GENERAL ELEMENT TYPE STYLES */ - -/* #Media Queries -================================================== */ -/* Smaller than standard 960 (devices and browsers) */ -/* Tablet Portrait size to standard 960 (devices and browsers) */ -@media only screen and (min-width: 768px) and (max-width: 959px) { .inner { width: 740px; } - header h1, header h2 { width: 340px; } - header h1 { font-size: 60px; } - header h2 { font-size: 30px; } -} -/* All Mobile Sizes (devices and browser) */ -@media only screen and (max-width: 767px) { .inner { width: 93%; } - header { padding: 20px 0; } - header .inner { position: relative; } - header h1, header h2 { width: 100%; } - header h1 { font-size: 48px; } - header h2 { font-size: 24px; } - header a.button { position: relative; display: inline-block; width: auto; height: auto; padding: 5px 10px; margin-top: 15px; font-size: 13px; line-height: 1; color: #2879d0; text-align: center; background-color: #9ddcff; background-image: none; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } - header a.button small { display: inline; font-size: 13px; } -} -/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ -/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ - -header h1 { padding-top: 14px; font-size: 2em; font-weight: 200; line-height: 1.4; color: #FFFFFF; letter-spacing: 0px; border-bottom: 0px; } - -header h2 { font-size: 1.2em; margin-top: 0; margin-bottom: 0; font-weight: 200; line-height: .8; color: #ec7D11; letter-spacing: 0; } - -//header a.button { background: transparent url(../images/logo.png) 0 0 no-repeat; padding-left: 32px; } - -header a:hover { text-decoration: none; } - -/* Admonition (Note) block */ -.admonitionblock > table { - border: 0; - background: none; - width: 100%; - table-layout: auto; - margin-bottom: 10.5px; -} -.admonitionblock > table td.icon { - text-align: center; - width: 60px; -} -.admonitionblock > table td.icon img { - max-width: none; -} -.admonitionblock > table td.icon .title { - text-transform: uppercase; -} -.admonitionblock > table td.content { - padding-left: 1em; - padding-right: 1em; - border-left: 3px solid #ddd; -} -.admonitionblock > table td.content > :last-child > :last-child { - margin-bottom: 0; -} -.admonitionblock td.icon [class^="fa icon-"]:before { - font-size: 2.5em; - text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); - cursor: default; -} -.admonitionblock td.icon .icon-note:before { - content: "\f05a"; - color: #5bc0de; -} diff --git a/user_guides/jsf/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png b/user_guides/jsf/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png deleted file mode 100644 index ee830aeb93..0000000000 Binary files a/user_guides/jsf/src/main/jbake/assets/img/eclipse_foundation_logo_tiny.png and /dev/null differ diff --git a/user_guides/jsf/src/main/jbake/content/README b/user_guides/jsf/src/main/jbake/content/README deleted file mode 100644 index 05fa2c27fd..0000000000 --- a/user_guides/jsf/src/main/jbake/content/README +++ /dev/null @@ -1,77 +0,0 @@ -The file attributes.conf defines several attributes (variables) that -need to be customized for each technology. - -The *.adoc files should not be modified. - -The following "include" files should be customized as necessary -for the specific technology: - -- rules.inc - - Additional compatibility rules needed by some technologies. - The rules in rules.adoc should NOT be changed. - -- defns.inc - - Additional definitions needed by additional compatibility - rules in rules.inc. - -- config.inc - - Detailed instructions for configuring the TCK, included in - Chapter 4. Unfortunately, these are sections 4.1 - 4.3, - so even if the TCK doesn't require 3 sections you need to - make up something, or else change the sections to "N/A". - -- packages.inc - - A simple list of Jakarta EE package names for the technology. - -- tck-packages.inc - - A list of additional software packages included in the TCK. - -- req-software.inc - - A list of software required in addition to the TCK and CI. - -- install-server.inc - - Steps to install the Jakarta EE CI, if needed. - For standalone technologies, no server may be required, - and this file can be empty. - This is used in install.adoc in section 3.2. - -- install-server-vi.inc - - Steps to install a Vendor's web server, if needed. - For standalone technologies, no web server may be required, - and this file can be empty. - This is used in install.adoc in section 3.2. - -- using-examples.inc - - Command line examples showing how to run the TCK. - -- using.inc - - Optional additional instructions for running the TCK. - -- debug-tips.inc - - Technology-specific troubleshooting tips for Chapter 6. - If this isn't needed, it can be an empty file, but toc.adoc - will need to be fixed. - -- rebuild.inc - - Special instructions for rebuilding the WAR files used by some TCKs. - If needed, customize it appropriately and define the "rebuild" - attribute in attributes.conf. - -- title.inc - Add acronym references as required do distinguish between legacy and - current APIs. - -Note that this template is NOT sufficient for the Jakarta EE platform -or Jakarta EE Web Profile. diff --git a/user_guides/jsf/src/main/jbake/content/attributes.conf b/user_guides/jsf/src/main/jbake/content/attributes.conf deleted file mode 100644 index 262006af94..0000000000 --- a/user_guides/jsf/src/main/jbake/content/attributes.conf +++ /dev/null @@ -1,37 +0,0 @@ -:TechnologyFullName: Jakarta Server Faces -:TechnologyShortName: Server Faces -:LegacyAcronym: JSF -:TechnologyVersion: 3.0 -:ReleaseDate: May 2021 -:CopyrightDates: 2017, 2021 -:TechnologyRI: Eclipse Mojarra 3.0 -:TechnologyRIURL: https://projects.eclipse.org/projects/ee4j.mojarra -:SpecificationURL: https://jakarta.ee/specifications/faces/3.0/ -:TCKInquiryList: mailto:jakartaee-tck-dev@eclipse.org[jakartaee-tck-dev@eclipse.org] -:SpecificationInquiryList: mailto:faces-dev@eclipse.org[faces-dev@eclipse.org] -:techID: Faces -// Define this attribute (uncomment it) if the TCK includes no API tests. (Rare.) -// :no-api-tests: -// Define this attribute (uncomment it) if the TCK includes end-to-end tests. -// :end-to-end-tests: -// Define this attribute (uncomment it) if subsets of the API are allowed. -// (Common Annotations only) -// :subset-allowed: -// -// The environment variable used to specify the home directory -// for the technology. Used in config.inc. -:TechnologyHomeEnv: JAVAEE_HOME -// Java SE version required. -:SEversion: 8 (1.8) or 11 -:AntVersion: 1.10.0+ -:JakartaEEVersion: 9.1 -:JavaTestVersion: 5.0 -:jteFileName: /bin/ts.jte -:jtxFileName: /bin/ts.jtx -:TCKPackageName: jakarta-faces-tck-3.0.1.zip -// Directory names used in examples in using.adoc. -:sigTestDirectoryExample: /src/com/sun/ts/tests/signaturetest/jsf -:singleTestDirectoryExample: /src/com/sun/ts/tests/jsf/api/client -:subsetTestDirectoryExample: /src/com/sun/ts/tests/jsf/api -// Define this attribute (uncomment it) if the TCK needs the rebuild appendix. -// :rebuild: diff --git a/user_guides/jsf/src/main/jbake/content/config.adoc b/user_guides/jsf/src/main/jbake/content/config.adoc deleted file mode 100644 index ff8b8639ff..0000000000 --- a/user_guides/jsf/src/main/jbake/content/config.adoc +++ /dev/null @@ -1,353 +0,0 @@ -type=page -status=published -title=Setup and Configuration -next=using.html -prev=install.html -~~~~~~ -include::attributes.conf[] -Setup and Configuration -======================= - -[[GBFVV]] - - - -[[setup-and-configuration]] -4 Setup and Configuration -------------------------- - - -[NOTE] -==== -The Jakarta EE Specification process provides for any number of compatible implementations. -As additional implementations become available, refer to project or product documentation from -those vendors for specific TCK setup and operational guidance. - -==== - -This chapter describes how to set up the {TechnologyShortName} TCK and -JavaTest harness software. Before proceeding with the instructions in -this chapter, be sure to install all required software, as described in -link:install.html#GBFTP[Chapter 3, "Installation."] - -After completing the instructions in this chapter, proceed to -link:using.html#GBFWO[Chapter 5, "Executing Tests,"] for instructions on -running the {TechnologyShortName} TCK. - -include::config.inc[] - -[[GHGDH]][[custom-configuration-handlers]] - -4.4 Custom Configuration Handlers -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Configuration handlers are used to configure and unconfigure a -{TechnologyShortName} {TechnologyVersion} implementation during the -certification process. These are similar to deployment handlers but -used for configuration. A configuration handler is an Ant build file -that contains at least the required targets listed below: - - * `config.vi` - to configure the vendor implementation - * `clean.vi` - to unconfigure the vendor implementation - -These targets are called from the `/bin/build.xml` file and -call down into the implementation-specific configuration handlers. - -To provide your own configuration handler, create a config.vi.xml file -with the necessary configuration steps for your implementation and place -the file under the `/bin/xml/impl/` directory. - -For more information, you may wish to view `/bin/xml/impl/glassfish/config.vi.xml`, -the configuration file for Jakarta EE {JakartaEEVersion} Compatible Implementation, Eclipse GlassFish. - -[[GBFWG]][[custom-deployment-handlers]] - -4.5 Custom Deployment Handlers -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Deployment handlers are used to deploy and undeploy the WAR files that -contain the tests to be run during the certification process. A deployment -handler is an Ant build file that contains at least the required targets -listed in the table below. - -The {TechnologyShortName} TCK provides these deployment handlers: - -* `/bin/xml/impl/none/deploy.xml` -* `/bin/xml/impl/glassfish/deploy.xml` -* `/bin/xml/impl/tomcat/deploy.xml` - -The `deploy.xml` files in each of these directories are used to control -deployment to a specific container (no deployment, deployment to -the Eclipse GlassFish Web container, deployment to the Tomcat Web container) -denoted by the name of the directory in which each `deploy.xml` file -resides. The primary `build.xml` file in the `/bin` directory -has a target to invoke any of the required targets (`-deploy`, `-undeploy`, -`-deploy.all`, `-undeploy.all`). - -[[GBFVA]][[create-custom-deployment-handler]] - -4.5.1 To Create a Custom Deployment Handler -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -To deploy tests to another {TechnologyShortName} implementation, you -must create a custom handler. - -1. Create a new directory in the `/bin/xml/impl` directory tree. - For example, create the `/bin/xml/impl/my_deployment_handler` directory. - Replace my_deployment_handler with the value of the impl.vi - property that you set in Step 5 of the configuration procedure - described in Section 4.2, "Configuring Your Environment to Repackage - and Run the TCK Against the Vendor Implementation". - -2. Copy the deploy.xml file from the `/bin/xml/impl/none` - directory to the directory that you created. - -3. Modify the required targets in the `deploy.xml` file. This is what - the `deploy.xml` file for the "none" deployment handler looks like. - -+ -[source,oac_no_warn] ----- - - - - - - - - - - - - - - - ----- -+ -Although this example just echoes messages, it does include the four -required Ant targets (`-deploy`, `-undeploy`, `-deploy.all`, `-undeploy.all`) -that your custom `deploy.xml` file must contain. With this as your -starting point, look at the required targets in the `deploy.xml` files -in the Tomcat and Eclipse Glassfish directories for guidance as you create -the same targets for the Web container in which you will run your -implementation of {TechnologyShortName}. - -The following Ant targets can be called from anywhere under the -`/src` directory: - -* `deploy` -* `undeploy` -* `deploy.all` -* `undeploy.all` - -The `deploy.all` and `undeploy.all` targets can also be called from the -`/bin` directory. - -[NOTE] -======================================================================= -The targets in the `deploy.xml` file are never called directly. -They are called indirectly by the targets listed above. -======================================================================= - -[[GBFUY]][[using-the-javatest-harness-software]] - -4.6 Using the JavaTest Harness Software -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -There are two general ways to run the {TechnologyShortName} TCK test -suite using the JavaTest harness software: - -* Through the JavaTest GUI; if using this method, please continue on to -link:#GBFWG[Section 4.7, "Using the JavaTest Harness Configuration -GUI."] -* In JavaTest batch mode, from the command line in your shell -environment; if using this method, please proceed directly to -link:using.html#GBFWO[Chapter 5, "Executing Tests."] - -[[GBFWG]][[using-the-javatest-harness-configuration-gui]] - -4.7 Using the JavaTest Harness Configuration GUI -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can use the JavaTest harness GUI to modify general test settings and -to quickly get started with the default {TechnologyShortName} TCK test -environment. This section covers the following topics: - -* link:#GBFVA[Configuration GUI Overview] -* link:#GBFVD[Starting the Configuration GUI] -* link:#GBFVX[To Configure the JavaTest Harness to Run the -{TechnologyShortName} TCK Tests] -* link:#GBFUU[Modifying the Default Test Configuration] - - -[NOTE] -======================================================================= - -It is only necessary to proceed with this section if you want to run the -JavaTest harness in GUI mode. If you plan to run the JavaTest harness in -command-line mode, skip the remainder of this chapter, and continue with -link:using.html#GBFWO[Chapter 5, "Executing Tests."] - -======================================================================= - - -[[GBFVA]][[configuration-gui-overview]] - -4.7.1 Configuration GUI Overview -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -In order for the JavaTest harness to execute the test suite, it requires -information about how your computing environment is configured. The -JavaTest harness requires two types of configuration information: - -* Test environment: This is data used by the tests. For example, the -path to the Java runtime, how to start the product being tested, network -resources, and other information required by the tests in order to run. -This information does not change frequently and usually stays constant -from test run to test run. -* Test parameters: This is information used by the JavaTest harness to -run the tests. Test parameters are values used by the JavaTest harness -that determine which tests in the test suite are run, how the tests -should be run, and where the test reports are stored. This information -often changes from test run to test run. - -The first time you run the JavaTest harness software, you are asked to -specify the test suite and work directory that you want to use. (These -parameters can be changed later from within the JavaTest harness GUI.) - -Once the JavaTest harness GUI is displayed, whenever you choose Start, -then Run Tests to begin a test run, the JavaTest harness determines -whether all of the required configuration information has been supplied: - -* If the test environment and parameters have been completely -configured, the test run starts immediately. -* If any required configuration information is missing, the -configuration editor displays a series of questions asking you the -necessary information. This is called the configuration interview. When -you have entered the configuration data, you are asked if you wish to -proceed with running the test. - -[[GBFVD]][[starting-the-configuration-gui]] - -4.7.2 Starting the Configuration GUI -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Before you start the JavaTest harness software, you must have a valid -test suite and Java SE {SEversion} installed on your system. - -The {TechnologyShortName} TCK includes an Ant script that is used to execute the -JavaTest harness from the `` directory. Using this Ant script -to start the JavaTest harness is part of the procedure described in -link:#GBFVX[Section 4.7.3, "To Configure the JavaTest Harness to Run the -TCK Tests."] - -When you execute the JavaTest harness software for the first time, the -JavaTest harness displays a Welcome dialog box that guides you through -the initial startup configuration. - -* If it is able to open a test suite, the JavaTest harness displays a -Welcome to JavaTest dialog box that guides you through the process of -either opening an existing work directory or creating a new work -directory as described in the JavaTest online help. -* If the JavaTest harness is unable to open a test suite, it displays a -Welcome to JavaTest dialog box that guides you through the process of -opening both a test suite and a work directory as described in the -JavaTest documentation. - -After you specify a work directory, you can use the Test Manager to -configure and run tests as described in link:#GBFVX[Section 4.7.3, "To -Configure the JavaTest Harness to Run the TCK Tests."] - -[[GBFVX]][[to-configure-the-javatest-harness-to-run-the-tck-tests]] - -4.7.3 To Configure the JavaTest Harness to Run the TCK Tests -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The answers you give to some of the configuration interview questions -are specific to your site. For example, the name of the host on which -the JavaTest harness is running. Other configuration parameters can be -set however you wish. For example, where you want test report files to -be stored. - -Note that you only need to complete all these steps the first time you -start the JavaTest test harness. After you complete these steps, you can -either run all of the tests by completing the steps in -link:using.html#GBFUZ[Section 5.1, "Starting JavaTest,"] or run a subset -of the tests by completing the steps in link:using.html#GBFWM[Section -5.2, "Running a Subset of the Tests."] - -1. Change to the `/bin` directory and start the JavaTest test -harness: + -`cd /bin` + -`ant gui` -2. From the File menu, click *Open Quick Start Wizard*. + -The Welcome screen displays. -3. Select *Start a new test run*, and then click *Next*. + -You are prompted to create a new configuration or use a configuration -template. -4. Select *Create a new configuration*, and then click *Next*. + -You are prompted to select a test suite. -5. Accept the default suite (`/src`), and then click *Next*. + -You are prompted to specify a work directory to use to store your test -results. -6. Type a work directory name or use the *Browse* button to select a work -directory, and then click *Next*. + -You are prompted to start the configuration editor or start a test run. -At this point, the {TechnologyShortName} TCK is configured to run the -default test suite. -7. Deselect the *Start the configuration editor* option, and then click -*Finish*. -8. Click *Run Tests*, then click *Start*. + -The JavaTest harness starts running the tests. -9. To reconfigure the JavaTest test harness, do one of the following: -* Click *Configuration*, then click *New Configuration*. -* Click *Configuration*, then click *Change Configuration*. -10. Click *Report*, and then click *Create Report*. -11. Specify the directory in which the JavaTest test harness will write -the report, and then click *OK*. + -A report is created, and you are asked whether you want to view it. -12. Click *Yes* to view the report. - -[[GBFUU]][[modifying-the-default-test-configuration]] - -4.7.4 Modifying the Default Test Configuration -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The JavaTest GUI enables you to configure numerous test options. These -options are divided into two general dialog box groups: - -* Group 1: Available from the JavaTest *Configure/Change Configuration* -submenus, the following options are displayed in a tabbed dialog box: - -** *Tests to Run* - -** *Exclude List* - -** *Keywords* - -** *Prior Status* - -** *Test Environment* - -** *Concurrency* - -** *Timeout Factor* -* Group 2: Available from the JavaTest *Configure/Change -Configuration/Other Values* submenu, or by pressing `Ctrl+E`, the following -options are displayed in a paged dialog box: - -** *Environment Files* - -** *Test Environment* - -** *Specify Tests to Run* - -** *Specify an Exclude List* - -Note that there is some overlap between the functions in these two -dialog boxes; for those functions use the dialog box that is most -convenient for you. Please refer to the JavaTest Harness documentation -or the online help for complete information about these various options. - - diff --git a/user_guides/jsf/src/main/jbake/content/config.inc b/user_guides/jsf/src/main/jbake/content/config.inc deleted file mode 100644 index b54a7c6f42..0000000000 --- a/user_guides/jsf/src/main/jbake/content/config.inc +++ /dev/null @@ -1,103 +0,0 @@ -[[GBFVU]][[configuring-your-environment-to-run-the-tck-against-the-compatible-implementation]] - -4.1 Configuring Your Environment to Run the TCK Against the Compatible Implementation (CI) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -After configuring your environment as described in this section, -continue with the instructions in link:#GBFUY[Section 4.6, "Using the -JavaTest Harness Software."] - - -[NOTE] -======================================================================= - -In these instructions, variables in angle brackets need to be expanded -for each platform. For example, `` becomes `$TS_HOME` on -UNIX/Linux and `%TS_HOME%` on Windows. In addition, the forward -slashes (`/`) used in all of the examples need to be replaced with -backslashes (`\`) for Windows. Finally, be sure to use the appropriate -separator for your operating system when specifying multiple path -entries (`;` on Windows, `:` on UNIX/Linux). - -On Windows, you must escape any backslashes with an extra backslash in -path separators used in any of the following properties, or use forward -slashes as a path separator instead. - -======================================================================= - - -1. Set the following environment variables in your shell environment: - a. `JAVA_HOME` to the directory in which Java SE 8 is installed - b. `TS_HOME` to the directory in which the {TechnologyShortName} TCK - {TechnologyVersion} software is installed - c. +{TechnologyHomeEnv}+ to the directory in which the {TechnologyShortName} - {TechnologyVersion} CI has been installed - d. `PATH` to include the following directories: `JAVA_HOME/bin`, - +{TechnologyHomeEnv}/bin+, and `/bin` -2. Copy /bin/ts.jte.jdk11 as /bin/ts.jte if JAVA_HOME is Java SE 11. -Edit your `/bin/ts.jte` file and set the following -environment variables: - a. Set the `webServerHost` property to the name of the host on which - Jakarta EE {JakartaEEVersion} CI is running. + - The default setting is `localhost`. - b. Set the `webServerPort` property to the port number of the host on - which Jakarta EE {JakartaEEVersion} CI is running. + - The default setting is `8080`. - c. `impl.vi` to the Vendor implementation, which is "glassfish". - d. `impl.vi.deploy.dir` to the Vendor implementation deployment directory, - which for the Jakarta EE {JakartaEEVersion} CI would be - +{TechnologyHomeEnv}/domains/domain1/autodeploy+. - e. `jsf.classes` to the Jakarta Server Faces API and implementation classes - that are under test - f. `jspservlet.classes` to the path to the Servlet and JSP API classes. + - The ts.jte file includes examples that show how to set the classes properties - for Eclipse GlassFish servers. - g. `report.dir` to the default directory in which JavaTest creates a test - report for the most recent test run. + - This property is a required property for the TCK Ant targets; it must - be set. To disable reporting, set the `report.dir` property to "none". - h. `work.dir` to the default directory in which JavaTest writes - temporary files that are created during test execution. + - This property is required for the TCK Ant targets. -3. Provide your own implementation of the porting package interface -provided with the Jakarta Server Faces TCK. + -The porting package interface, `TSURLInterface.java`, obtains URL -strings for web resources in an implementation-specific manner. API -documentation for the `TSURLInterface.java` porting package interface -is available in the Jakarta Server Faces TCK documentation bundle. - - -[[GCLHU]][[configuring-your-environment-to-run-the-tck-against-the-vendor-implementation]] - -4.2 Configuring Your Environment to Run the TCK Against the Vendor Implementation (VI) -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Follow the instructions above, customized as necessary for the -Vendor implementation. -A custom deployment handler will need to be created for the -Vendor implementation. - - -[[GHGDG]][[preparing-the-war-files-for-deployment]] - -4.3 Preparing the WAR Files for Deployment -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Complete this step only if you intend to package a Jakarta Server Faces -implementation in the WAR files, thereby overriding the default Jakarta -Server Faces implementation for the application server under test. This -procedure adds to and rebuilds the Jakarta Server Faces TCK WAR files. - -1. Copy one or more of the JAR files required by the Jakarta Server -Faces implementation that will replace the application server's default -Jakarta Server Faces implementation to the `/weblib` directory. + -This JAR file (or files) must contain all of the TLDs (located in the -`META-INF` directory of the archive) for the tag libraries, as defined -by the Jakarta Server Faces specification and any additional support -JAR files upon which the Jakarta Server Faces implementation is -dependent. -2. Change to the `/src/com/sun/ts/tests` directory and run -`ant build` to package the web archives. + -This adds one or more JAR files from the `/weblib` directory -to each of the WAR files. - diff --git a/user_guides/jsf/src/main/jbake/content/debug-tips.inc b/user_guides/jsf/src/main/jbake/content/debug-tips.inc deleted file mode 100644 index 32ff35b8a9..0000000000 --- a/user_guides/jsf/src/main/jbake/content/debug-tips.inc +++ /dev/null @@ -1,82 +0,0 @@ - - -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -The following sections should be customized for the technology. -This text was originally from the JACC TCK. Some references -to JACC have been parameterized to serve as a simple starting -point for customization. There are still many details that will -need to be changed or removed. -/////////////////////////////////////////////////////////////////////// - -[[GBFHA]][[troubleshooting-tips]] - -6.7 Troubleshooting Tips -~~~~~~~~~~~~~~~~~~~~~~~~ - -This section provides some tips for troubleshooting errors that may be -encountered. - -* Verify that the Ant `config.vi` and `enable.jacc` configuration -targets executed correctly. -* If there are several failures during a test run, check the various -output for hints about what caused the failures. A common problem is the -absence of the {TechnologyShortName} log file. This log file should be created in the -directory defined by the `log.file.location` property in the `ts.jte` -file. There should be a log file called `JACCLog.txt` in this directory. -The `JACCLog.txt` consists of record entries containing permission -infomation that will be used to verify the TCK tests for proper -compliance. This log file typically gets populated with -{TechnologyShortName}-based security information when test archives are -deployed. Then, during test execution, the `JACCLog.txt` file is read -and used for validating that {TechnologyShortName} behavior is -correct. -* Simultaneously deploying all {TechnologyShortName} TCK test archives -may cause false failures. If unexpected failures occur during a TCK run -when all {TechnologyShortName} archives were deployed, these failures -could be caused by interference from tests and archives that are -defined multiple times. If such situational failures do occur, undeploy -all archives, remove the `JACCLog.txt` file, recycle your server (if -necessary), and rerun only the tests in the directory that showed -failures. -* Check that the following JVM variables, which should have been set by -invoking the `enable.jacc` Ant target, have been set in the application -server : - -** `-Dlog.file.location` (this comes from the +{jteFileName}+ property) - -** `-Djakarta.security.jacc.policy.provider=com.sun.ts.tests.jacc.provider.TSPolicy` - -** `-Djakarta.security.jacc.PolicyConfigurationFactory.provider=com.sun.ts.tests.jacc.provider.TSPolicyConfigurationFactoryImpl` - -** `-Dvendor.jakarta.security.jacc.policy.provider=com.sun.enterprise.security.jacc.provider.SimplePolicyProvider` - -** `-Dvendor.jakarta.security.jacc.PolicyConfigurationFactory.provider=com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory` + - -[NOTE] -======================================================================= - -The values for the `-Dvendor.jakarta.security.jacc.policy.provider` and -`-Dvendor.jakarta.security.jacc.PolicyConfigurationFactory.provider` JVM -variables will need to be set specific to the application server in use. - -======================================================================= - - - diff --git a/user_guides/jsf/src/main/jbake/content/debug.adoc b/user_guides/jsf/src/main/jbake/content/debug.adoc deleted file mode 100644 index 5208c401a6..0000000000 --- a/user_guides/jsf/src/main/jbake/content/debug.adoc +++ /dev/null @@ -1,174 +0,0 @@ -type=page -status=published -title=Debugging Test Problems -next=faq.html -prev=using.html -~~~~~~ -include::attributes.conf[] -Debugging Test Problems -======================= - -[[GBFUV]] - - -[[debugging-test-problems]] -6 Debugging Test Problems -------------------------- - -There are a number of reasons that tests can fail to execute properly. -This chapter provides some approaches for dealing with these failures. -Please note that most of these suggestions are only relevant when -running the test harness in GUI mode. - -This chapter includes the following topics: - -* link:#GBFYP[Overview] -* link:#GBFVF[Test Tree] -* link:#GBFWI[Folder Information] -* link:#GBFVP[Test Information] -* link:#GBFVZ[Report Files] -* link:#GBFYF[Configuration Failures] - -[[GBFYP]][[overview]] - -6.1 Overview -~~~~~~~~~~~~ - -The goal of a test run is for all tests in the test suite that are not -filtered out to have passing results. If the root test suite folder -contains tests with errors or failing results, you must troubleshoot and -correct the cause to satisfactorily complete the test run. - -* Errors: Tests with errors could not be executed by the JavaTest -harness. These errors usually occur because the test environment is not -properly configured. -* Failures: Tests that fail were executed but had failing results. - -The Test Manager GUI provides you with a number of tools for effectively -troubleshooting a test run. See the JavaTest User's Guide and JavaTest -online help for detailed descriptions of the tools described in this -chapter. Ant test execution tasks provide command-line users with -immediate test execution feedback to the display. Available JTR report -files and log files can also help command-line users troubleshoot test -run problems. - -For every test run, the JavaTest harness creates a set of report files -in the reports directory, which you specified by setting the -`report.dir` property in the +{jteFileName}+ file. The report files contain -information about the test description, environment, messages, -properties used by the test, status of the test, and test result. After -a test run is completed, the JavaTest harness writes HTML reports for -the test run. You can view these files in the JavaTest ReportBrowser -when running in GUI mode, or in the Web browser of your choice outside -the JavaTest interface. To see all of the HTML report files, enter the -URL of the `report.html` file. This file is the root file that links to -all of the other HTML reports. - -The JavaTest harness also creates a `summary.txt` file in the report -directory that you can open in any text editor. The `summary.txt` file -contains a list of all tests that were run, their test results, and -their status messages. - -The work directory, which you specified by setting the `work.dir` -property in the +{jteFileName}+ file, contains several files that were -deposited there during test execution: `harness.trace`, `log.txt`, -`lastRun.txt`, and `testsuite`. Most of these files provide information -about the harness and environment in which the tests were executed. - -[NOTE] -======================================================================= - -You can set `harness.log.traceflag=true` in +{jteFileName}+ to -get more debugging information. - -======================================================================= - -If a large number of tests failed, you should read -link:#GBFYF[Configuration Failures] to see if a -configuration issue is the cause of the failures. - - -[[GBFVF]][[test-tree]] - -6.2 Test Tree -~~~~~~~~~~~~~ - -Use the test tree in the JavaTest GUI to identify specific folders and -tests that had errors or failing results. Color codes are used to -indicate status as follows: - -* Green: Passed -* Blue: Test Error -* Red: Failed to pass test -* White: Test not run -* Gray: Test filtered out (not run) - -[[GBFWI]][[folder-information]] - -6.3 Folder Information -~~~~~~~~~~~~~~~~~~~~~~ - -Click a folder in the test tree in the JavaTest GUI to display its tabs. - -Choose the Error and the Failed tabs to view the lists of all tests in -and under a folder that were not successfully run. You can double-click -a test in the lists to view its test information. - -[[GBFVP]][[test-information]] - -6.4 Test Information -~~~~~~~~~~~~~~~~~~~~ - -To display information about a test in the JavaTest GUI, click its icon -in the test tree or double-click its name in a folder status tab. The -tab contains detailed information about the test run and, at the bottom -of the window, a brief status message identifying the type of failure or -error. This message may be sufficient for you to identify the cause of -the error or failure. - -If you need more information to identify the cause of the error or -failure, use the following tabs listed in order of importance: - -* Test Run Messages contains a Message list and a Message section that -display the messages produced during the test run. -* Test Run Details contains a two-column table of name/value pairs -recorded when the test was run. -* Configuration contains a two-column table of the test environment -name/value pairs derived from the configuration data actually used to -run the test. - - -[NOTE] -======================================================================= - -You can set `harness.log.traceflag=true` in +{jteFileName}+ to -get more debugging information. - -======================================================================= - - -[[GBFVZ]][[report-files]] - -6.5 Report Files -~~~~~~~~~~~~~~~~ - -Report files are another good source of troubleshooting information. You -may view the individual test results of a batch run in the JavaTest -Summary window, but there are also a wide range of HTML report files -that you can view in the JavaTest ReportBrowser or in the external -browser or your choice following a test run. See -link:using.html#GBFVK[Section 5.5, "Test Reports,"] for more information. - -[[GBFYF]][[configuration-failures]] - -6.6 Configuration Failures -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Configuration failures are easily recognized because many tests fail the -same way. When all your tests begin to fail, you may want to stop the -run immediately and start viewing individual test output. However, in -the case of full-scale launching problems where no tests are actually -processed, report files are usually not created (though sometimes a -small `harness.trace` file in the report directory is written). - -include::debug-tips.inc[] diff --git a/user_guides/jsf/src/main/jbake/content/defns.inc b/user_guides/jsf/src/main/jbake/content/defns.inc deleted file mode 100644 index 038db2dda3..0000000000 --- a/user_guides/jsf/src/main/jbake/content/defns.inc +++ /dev/null @@ -1,46 +0,0 @@ -// NOTE TO WRITERS: -// Most technologies will only need the compatibility rules in rules.adoc. -// Some technologies will need additional definitions to go with additional -// rules. If they're needed, remove the comment characters below -// and update the definitions as appropriate. -// -// The first block below is additional definitions needed by -// Jakarta XML Web Services. -// -// The second block below is additional defintions needed by -// Jakarta Server Pages. -// -// NOTE: This set of examples is NOT complete, but should be. -// -// -// Jakarta XML Web Services -// -// |Development Kit |A software product that implements or incorporates a -// Compiler, a Schema Compiler, a Schema Generator, a Java-to-WSDL Tool, a -// WSDL-to-Java Tool, and/or an RMI Compiler. -// -// |Java-to-WSDL Output |Output of a Java-to-WSDL Tool that is required for -// Web service deployment and invocation. -// -// |Java-to-WSDL Tool |A software development tool that implements or -// incorporates a function that generates web service endpoint descriptions -// in WSDL and XML schema format from Source Code as specified by the -// Jakarta XML Web Services Specification. -// -// |WSDL-to-Java Output |Output of a WSDL-to-Java tool that is required for -// Web service deployment and invocation. -// -// |WSDL-to-Java Tool |A software development tool that implements or -// incorporates a function that generates web service interfaces for -// clients and endpoints from a WSDL description as specified by the -// Jakarta XML Web Services Specification. -// -// -// Jakarta Server Pages -// -// |Jakarta Server Page |A text-based document that uses Jakarta Server -// Pages technology. -// -// |Jakarta Server Page Implementation Class |A program constructed by -// transforming the Jakarta Server Page text into a Java language program -// using the transformation rules described in the Specifications. diff --git a/user_guides/jsf/src/main/jbake/content/faq.adoc b/user_guides/jsf/src/main/jbake/content/faq.adoc deleted file mode 100644 index 97ca394c55..0000000000 --- a/user_guides/jsf/src/main/jbake/content/faq.adoc +++ /dev/null @@ -1,62 +0,0 @@ -type=page -status=published -title=Appendix A: Frequently Asked Questions -next=rebuild.html -prev=debug.html -~~~~~~ -include::attributes.conf[] -Appendix A: Frequently Asked Questions -====================================== - -[[GBFYD]] - - -[[a-frequently-asked-questions]] -A Frequently Asked Questions ----------------------------- - -This appendix contains the following questions. - -* link:#GBFYQ[Where do I start to debug a test failure?] -* link:#GBFYR[How do I restart a crashed test run?] -* link:#GBFWU[What would cause tests be added to the exclude list?] - -[[GBFYQ]][[a.1-where-do-i-start-to-debug-a-test-failure]] - -A.1 Where do I start to debug a test failure? -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -From the JavaTest GUI, you can view recently run tests using the Test -Results Summary, by selecting the red Failed tab or the blue Error tab. -See link:debug.html#GBFUV[Chapter 6, "Debugging Test Problems,"] for more -information. - -[[GBFYR]][[a.2-how-do-i-restart-a-crashed-test-run]] - -A.2 How do I restart a crashed test run? -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -If you need to restart a test run, you can figure out which test crashed -the test suite by looking at the `harness.trace` file. The -`harness.trace` file is in the report directory that you supplied to the -JavaTest GUI or parameter file. Examine this trace file, then change the -JavaTest GUI initial files to that location or to a directory location -below that file, and restart. This will overwrite only `.jtr` files that -you rerun. As long as you do not change the value of the GUI work -directory, you can continue testing and then later compile a complete -report to include results from all such partial runs. - -[[GBFWU]][[a.3-what-would-cause-tests-be-added-to-the-exclude-list]] - -A.3 What would cause tests be added to the exclude list? -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The JavaTest exclude file (+{jtxFileName}+) contains all tests that are not -required to be run. The following is a list of reasons for a test to be -included in the Exclude List: - -* An error in a Compatible Implementation that does not allow the test to -execute properly has been discovered. -* An error in the specification that was used as the basis of the test -has been discovered. -* An error in the test has been discovered. diff --git a/user_guides/jsf/src/main/jbake/content/install-server-vi.inc b/user_guides/jsf/src/main/jbake/content/install-server-vi.inc deleted file mode 100644 index 5637912e12..0000000000 --- a/user_guides/jsf/src/main/jbake/content/install-server-vi.inc +++ /dev/null @@ -1,2 +0,0 @@ -. Install a Web server on which the {TechnologyShortName} TCK test -applications can be published for testing the VI. diff --git a/user_guides/jsf/src/main/jbake/content/install-server.inc b/user_guides/jsf/src/main/jbake/content/install-server.inc deleted file mode 100644 index 6869ec8043..0000000000 --- a/user_guides/jsf/src/main/jbake/content/install-server.inc +++ /dev/null @@ -1,11 +0,0 @@ -. Install the Jakarta EE {JakartaEEVersion} CI software (the servlet Web container used -for running the {TechnologyShortName} TCK with the -{TechnologyShortName} {TechnologyVersion} CI), if it is not already -installed. + -Download and install the Servlet Web container with the -{TechnologyShortName} {TechnologyVersion} CI used for running the -{TechnologyShortName} TCK {TechnologyVersion}, represented by a Jakarta -EE {JakartaEEVersion} CI. -You are free to us any CI that is certified. The folloiwng are some examples you can choose from: -* If you wish to use {TechnologyRI} you may obtain it from {TechnologyRIURL} -* If you wish to use Eclipse GlassFish 6.0 you may obtain it from https://projects.eclipse.org/projects/ee4j.glassfish \ No newline at end of file diff --git a/user_guides/jsf/src/main/jbake/content/install.adoc b/user_guides/jsf/src/main/jbake/content/install.adoc deleted file mode 100644 index a3b93e73ac..0000000000 --- a/user_guides/jsf/src/main/jbake/content/install.adoc +++ /dev/null @@ -1,86 +0,0 @@ -type=page -status=published -title=Installation -next=config.html -prev=rules.html -~~~~~~ -include::attributes.conf[] -Installation -============ - -[[GBFTP]] - - -[[installation]] -3 Installation --------------- - -This chapter explains how to install the {TechnologyFullName} TCK software. - -After installing the software according to the instructions in this -chapter, proceed to link:config.html#GBFVV[Chapter 4, "Setup and -Configuration,"] for instructions on configuring your test environment. - -[[GBFUD]][[obtaining-the-reference-implementation]] - -3.1 Obtaining a Compatible Implementation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Each compatible implementation (CI) will provide instructions for obtaining -their implementation. -{TechnologyRI} is a compatible implementation which may be obtained -from {TechnologyRIURL} - -[[GBFTS]][[installing-the-software]] - -3.2 Installing the Software -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Before you can run the {TechnologyShortName} TCK tests, you must -install and set up the following software components: - -include::req-software.inc[] -* Java SE {SEversion} -* Apache Ant {AntVersion} -* A CI for {TechnologyShortName} {TechnologyVersion}, one example is {TechnologyRI} -* {TechnologyShortName} TCK version {TechnologyVersion}, which includes: -include::tck-packages.inc[] -* The {TechnologyShortName} {TechnologyVersion} Vendor Implementation (VI) - -Follow these steps: - -. Install the Java SE {SEversion} software, if it is not already installed. + -Download and install the Java SE {SEversion} software from -http://www.oracle.com/technetwork/java/javase/downloads/index.html. -Refer to the installation instructions that accompany the software for -additional information. -. Install the Apache Ant {AntVersion} software, if it is not already installed. + -Download and install Apache Ant {AntVersion} software from Apache Ant -Project. For complete information about Ant, refer to the extensive documentation -on the Apache Ant Project site. The Apache Ant Manual is available at -`http://ant.apache.org/manual/index.html`. -Apache Ant is protected under the Apache Software, License 2.0, which is -is available on the Apache Ant Project license page at -`http://ant.apache.org/license.html`. -. Install the {TechnologyShortName} TCK {TechnologyVersion} software. - a. Copy or download the {TechnologyShortName} TCK software to your - local system. + - You can obtain the {TechnologyShortName} TCK software from the - Jakarta EE site {SpecificationURL}. - b. Use the `unzip` command to extract the bundle in the directory of - your choice: + - +unzip {TCKPackageName}+ + - This creates the TCK directory. The TCK is the test suite home, - ``. -include::install-server.inc[] -. Install a {TechnologyShortName} {TechnologyVersion} Compatible -Implementation. + -A Compatible Implementation is used to validate your initial -configuration and setup of the {TechnologyShortName} TCK -{TechnologyVersion} tests, which are explained further in -link:config.html#GBFVV[Chapter 4, "Setup and Configuration."] + -The Compatible Implementations for {TechnologyShortName} are listed on -the Jakarta EE Specifications web site: {SpecificationURL}. -include::install-server-vi.inc[] -. Install the {TechnologyShortName} VI to be tested. + -Follow the installation instructions for the particular VI under test. diff --git a/user_guides/jsf/src/main/jbake/content/intro.adoc b/user_guides/jsf/src/main/jbake/content/intro.adoc deleted file mode 100644 index 774adfd371..0000000000 --- a/user_guides/jsf/src/main/jbake/content/intro.adoc +++ /dev/null @@ -1,349 +0,0 @@ -type=page -status=published -title=Introduction -next=rules.html -prev=preface.html -~~~~~~ -include::attributes.conf[] -Introduction -============ - -[[GBFOW]] - - -[[introduction]] -1 Introduction --------------- - -This chapter provides an overview of the principles that apply -generally to all Technology Compatibility Kits (TCKs) and describes the -{TechnologyFullName} TCK ({TechnologyShortName} {TechnologyVersion} TCK). -It also includes a high level listing -of what is needed to get up and running with the {TechnologyShortName} -TCK. - -This chapter includes the following topics: - -* link:#GBFTK[Compatibility Testing] -* link:#GBFQR[About the TCK] -* link:#GBFQW[Getting Started With the TCK] - -[[GBFTK]][[compatibility-testing]] - -1.1 Compatibility Testing -~~~~~~~~~~~~~~~~~~~~~~~~~ - -Compatibility testing differs from traditional product testing in a -number of ways. The focus of compatibility testing is to test those -features and areas of an implementation that are likely to differ across -other implementations, such as those features that: - -* Rely on hardware or operating system-specific behavior -* Are difficult to port -* Mask or abstract hardware or operating system behavior - -Compatibility test development for a given feature relies on a complete -specification and compatible implementation (CI) for that feature. -Compatibility testing is not primarily concerned with robustness, -performance, nor ease of use. - -[[GBFQN]][[why-compatibility-testing-is-important]] - -1.1.1 Why Compatibility Testing is Important -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Jakarta platform compatibility is important to different groups involved -with Jakarta technologies for different reasons: - -* Compatibility testing ensures that the Jakarta platform does not become -fragmented as it is ported to different operating systems and hardware -environments. -* Compatibility testing benefits developers working in the Jakarta -programming language, allowing them to write applications once and then -to deploy them across heterogeneous computing environments without -porting. -* Compatibility testing allows application users to obtain applications -from disparate sources and deploy them with confidence. -* Conformance testing benefits Jakarta platform implementors by ensuring a -level playing field for all Jakarta platform ports. - -[[GBFPR]][[tck-compatibility-rules]] - -1.1.2 TCK Compatibility Rules -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Compatibility criteria for all technology implementations are embodied -in the TCK Compatibility Rules that apply to a specified technology. -Each TCK tests for adherence to these Rules as described in -link:rules.html#GBFSN[Chapter 2, "Procedure for Certification."] - -[[GBFPW]][[tck-overview]] - -1.1.3 TCK Overview -^^^^^^^^^^^^^^^^^^ - -A TCK is a set of tools and tests used to verify that a vendor's compatible -implementation of a Jakarta EE technology conforms to the applicable -specification. All tests in the TCK are based on the written -specifications for the Jakarta EE platform. A TCK tests compatibility of a -vendor's compatible implementation of the technology to the applicable -specification of the technology. Compatibility testing is a means of -ensuring correctness, completeness, and consistency across all -implementations developed by technology licensees. - -The set of tests included with each TCK is called the test suite. Most -tests in a TCK's test suite are self-checking, but some tests may -require tester interaction. Most tests return either a Pass or Fail -status. For a given platform to be certified, all of the required tests -must pass. The definition of required tests may change from platform to -platform. - -The definition of required tests will change over time. Before your -final certification test pass, be sure to download the latest version -of this TCK. - -[[GBFPB]][[java-community-process-jcp-program-and-compatibility-testing]] - -1.1.4 Jakarta EE Specification Process (JESP) Program and Compatibility Testing -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The Jakarta EE Specification Process (JESP) program is the formalization of the -open process that has been used since 2019 to develop and revise Jakarta EE -technology specifications in cooperation with the international Jakarta EE -community. The JESP program specifies that the following three major -components must be included as deliverables in a final Jakarta EE technology -release under the direction of the responsible Expert Group: - -* Technology Specification -* Compatible Implementation (CI) -* Technology Compatibility Kit (TCK) - -For further information about the JESP program, go to Jakarta EE Specification -Process community page https://jakarta.ee/specifications. - -[[GBFQR]][[about-the-tck]] - -1.2 About the TCK -~~~~~~~~~~~~~~~~~ - -The {TechnologyShortName} TCK {TechnologyVersion} is designed as a -portable, configurable, automated test suite for verifying the -compatibility of a vendor's implementation of the -{TechnologyShortName} {TechnologyVersion} Specification. - -[[GBFQV]][[tck-specifications-and-requirements]] - -1.2.1 TCK Specifications and Requirements -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -This section lists the applicable requirements and specifications. - -* Specification Requirements: Software requirements for a -{TechnologyShortName} implementation are described in detail in the -{TechnologyShortName} {TechnologyVersion} Specification. Links to the -{TechnologyShortName} specification and other product information can -be found at {SpecificationURL}. -* {TechnologyShortName} Version: The {TechnologyShortName} {TechnologyVersion} TCK -is based on the {TechnologyShortName} -Specification, Version {TechnologyVersion}. -* Compatible Implementation: One {TechnologyShortName} -{TechnologyVersion} Compatible Implementation, {TechnologyRI} is -available from the Eclipse EE4J project -(https://projects.eclipse.org/projects/ee4j). See the CI documentation page at -{TechnologyRIURL} for more information. - -See the {TechnologyShortName} TCK Release Notes for more specific -information about Java SE version requirements, supported platforms, -restrictions, and so on. - -[[GBFSQ]][[tck-components]] - -1.2.2 TCK Components -^^^^^^^^^^^^^^^^^^^^ - -The {TechnologyShortName} TCK {TechnologyVersion} includes the -following components: - -* JavaTest harness version {JavaTestVersion} and related documentation. See -link:https://wiki.openjdk.java.net/display/CodeTools/JT+Harness[JT Harness web site] -for additional information. -* {TechnologyShortName} TCK signature tests; check that all public APIs -are supported and/or defined as specified in the {TechnologyShortName} -Version {TechnologyVersion} implementation under test. -* If applicable, an exclude list, which provides a list of tests that your -implementation is not required to pass. -ifndef::no-api-tests[] -* API tests for all of the {TechnologyShortName} API in all related packages: -include::packages.inc[] -endif::no-api-tests[] -ifdef::end-to-end-tests[] -* End-to-end tests that demonstrate compliance with the {TechnologyFullName} -Specification. -endif::end-to-end-tests[] - -The {TechnologyShortName} TCK tests run on the following platforms: - -include::platforms.inc[] - -[[GBFSA]][[javatest-harness]] - -1.2.3 JavaTest Harness -^^^^^^^^^^^^^^^^^^^^^^ - -The JavaTest harness version {JavaTestVersion} is a set of tools -designed to run and manage test suites on different Java platforms. -To JavaTest, Jakarta EE can be considered another platform. -The JavaTest harness can be described as both a Java application and a set -of compatibility testing tools. It can run tests on different kinds of -Java platforms and it allows the results to be browsed online within -the JavaTest GUI, or offline in the HTML reports that the JavaTest -harness generates. - -The JavaTest harness includes the applications and tools that are used -for test execution and test suite management. It supports the following -features: - -* Sequencing of tests, allowing them to be loaded and executed automatically -* Graphic user interface (GUI) for ease of use -* Automated reporting capability to minimize manual errors -* Failure analysis -* Test result auditing and auditable test specification framework -* Distributed testing environment support - -To run tests using the JavaTest harness, you specify which tests in the -test suite to run, how to run them, and where to put the results as -described in link:config.html#GBFVV[Chapter 4, "Setup and -Configuration."] - -[[GBFRA]][[tck-compatibility-test-suite]] - -1.2.4 TCK Compatibility Test Suite -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The test suite is the collection of tests used by the JavaTest harness -to test a particular technology implementation. In this case, it is the -collection of tests used by the {TechnologyShortName} TCK -{TechnologyVersion} to test a {TechnologyShortName} {TechnologyVersion} -implementation. The tests are designed to verify that a vendor's -runtime implementation of the technology complies with the appropriate -specification. The individual tests correspond to assertions of the -specification. - -The tests that make up the TCK compatibility test suite are precompiled -and indexed within the TCK test directory structure. When a test run is -started, the JavaTest harness scans through the set of tests that are -located under the directories that have been selected. While scanning, -the JavaTest harness selects the appropriate tests according to any -matches with the filters you are using and queues them up for execution. - -[[GBFSH]][[exclude-lists]] - -1.2.5 Exclude Lists -^^^^^^^^^^^^^^^^^^^ - -Each version of a TCK includes an Exclude List contained in a `.jtx` -file. -This is a list of test file URLs that identify tests which do not -have to be run for the specific version of the TCK being used. -Whenever tests are run, the JavaTest harness automatically excludes -any test on the Exclude List from being executed. - -A vendor's compatible implementation is not required to pass or run any test on the Exclude List. -The Exclude List file, +{jtxFileName}+, is included in the -{TechnologyShortName} TCK. - - -[NOTE] -======================================================================= - -From time to time, updates to the Exclude List are made available. -The exclude list is included in the Jakarta TCK ZIP archive. -Each time an update is approved and released, the version number -will be incremented. -You should always make sure you are using an up-to-date copy of the -Exclude List before running the {TechnologyShortName} TCK to verify your -implementation. - -======================================================================= - - -A test might be in the Exclude List for reasons such as: - -* An error in an underlying implementation API has been discovered which -does not allow the test to execute properly. -* An error in the specification that was used as the basis of the test -has been discovered. -* An error in the test itself has been discovered. -* The test fails due to a bug in the tools (such as the JavaTest -harness, for example). - -In addition, all tests are run against the compatible implementations. -Any tests that fail when run on a compatible Jakarta platform are put on the -Exclude List. Any test that is not specification-based, or for which the -specification is vague, may be excluded. Any test that is found to be -implementation dependent (based on a particular thread scheduling model, -based on a particular file system behavior, and so on) may be excluded. - - -[NOTE] -======================================================================= - -Vendors are not permitted to alter or modify Exclude Lists. Changes to -an Exclude List can only be made by using the procedure described in -link:rules.html#CJAJEAEI[Section 2.3.1, "TCK Test Appeals Steps."] - -======================================================================= - - -[[GBFRR]][[tck-configuration]] - -1.2.6 TCK Configuration -^^^^^^^^^^^^^^^^^^^^^^^ - -You need to set several variables in your test environment, modify -properties in the +{jteFileName}+ file, and then use the JavaTest -harness to configure and run the {TechnologyShortName} tests, as described in -link:config.html#GBFVV[Chapter 4, "Setup and Configuration."] - -include::intro.inc[] - -[[GBFQW]][[getting-started-with-the-tck]] - -[NOTE] -==== -The Jakarta EE Specification Process support multiple compatible implementations. -These instructions explain how to get started with the {TechnologyRI} CI. -If you are using another compatible implementation, refer to material provided -by that implementation for specific instructions and procedures. - -==== - -1.3 Getting Started With the TCK -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -This section provides an general overview of what needs to be done to -install, set up, test, and use the {TechnologyShortName} TCK. These -steps are explained in more detail in subsequent chapters of this -guide. - -1. Make sure that the following software has been correctly installed -on the system hosting the JavaTest harness: -include::req-software.inc[] -* Java SE {SEversion} -* Apache Ant {AntVersion} -* A CI for {TechnologyShortName} {TechnologyVersion}. One example is {TechnologyRI}. -* {TechnologyShortName} TCK version {TechnologyVersion}, which includes: -include::tck-packages.inc[] -* The {TechnologyShortName} {TechnologyVersion} Vendor Implementation (VI) + -See the documentation for each of these software applications for -installation instructions. See link:install.html#GBFTP[Chapter 3, -"Installation,"] for instructions on installing the {TechnologyShortName} TCK. -2. Set up the {TechnologyShortName} TCK software. + -See link:config.html#GBFVV[Chapter 4, "Setup and Configuration,"] for -details about the following steps. - a. Set up your shell environment. - b. Modify the required properties in the +{jteFileName}+ file. - c. Configure the JavaTest harness. -3. Test the {TechnologyShortName} {TechnologyVersion} implementation. + -Test the {TechnologyShortName} implementation installation by running -the test suite. See link:using.html#GBFWO[Chapter 5, "Executing Tests."] diff --git a/user_guides/jsf/src/main/jbake/content/intro.inc b/user_guides/jsf/src/main/jbake/content/intro.inc deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/user_guides/jsf/src/main/jbake/content/packages.inc b/user_guides/jsf/src/main/jbake/content/packages.inc deleted file mode 100644 index c381dbde13..0000000000 --- a/user_guides/jsf/src/main/jbake/content/packages.inc +++ /dev/null @@ -1,35 +0,0 @@ -** `jakarta.faces` - -** `jakarta.faces.application` - -** `jakarta.faces.bean` - -** `jakarta.faces.component` - -** `jakarta.faces.component.behavior` - -** `jakarta.faces.component.html` - -** `jakarta.faces.component.visit` - -** `jakarta.faces.context` - -** `jakarta.faces.convert` - -** `jakarta.faces.el` - -** `jakarta.faces.event` - -** `jakarta.faces.lifecycle` - -** `jakarta.faces.model` - -** `jakarta.faces.render` - -** `jakarta.faces.validator` - -** `jakarta.faces.view` - -** `jakarta.faces.view.facelets` - -** `jakarta.faces.webapp` \ No newline at end of file diff --git a/user_guides/jsf/src/main/jbake/content/platforms.inc b/user_guides/jsf/src/main/jbake/content/platforms.inc deleted file mode 100644 index 236beed78f..0000000000 --- a/user_guides/jsf/src/main/jbake/content/platforms.inc +++ /dev/null @@ -1 +0,0 @@ -* CentOS Linux 7 \ No newline at end of file diff --git a/user_guides/jsf/src/main/jbake/content/preface.adoc b/user_guides/jsf/src/main/jbake/content/preface.adoc deleted file mode 100644 index ea10c28728..0000000000 --- a/user_guides/jsf/src/main/jbake/content/preface.adoc +++ /dev/null @@ -1,147 +0,0 @@ -type=page -status=published -title=Preface -next=intro.html -prev=title.html -~~~~~~ -include::attributes.conf[] -Preface -======= - -[[TCJRS00001]][[GBFTI]] - - -[[preface]] -Preface -------- - -This guide describes how to install, configure, and run the Technology -Compatibility Kit (TCK) that is used to test the {TechnologyFullName} -({TechnologyShortName} {TechnologyVersion}) technology. - -The {TechnologyShortName} TCK is a portable, configurable automated -test suite for verifying the compatibility of a vendor's -implementation of the {TechnologyShortName} {TechnologyVersion} -Specification (hereafter referred to as the vendor implementation or VI). -The {TechnologyShortName} TCK uses the JavaTest harness version -{JavaTestVersion} to run the test suite - - -[NOTE] -======================================================================= - -Note All references to specific Web URLs are given for the sake of your -convenience in locating the resources quickly. These references are -always subject to changes that are in many cases beyond the control of -the authors of this guide. - -======================================================================= - -Jakarta EE is a community sponsored and community run program. -Organizations contribute, along side individual contributors who use, evolve -and assist others. -Commercial support is not available through the Eclipse Foundation resources. -Please refer to the Eclipse EE4J project site -(https://projects.eclipse.org/projects/ee4j). -There, you will find additional details as well as a list of all the associated sub-projects -(Implementations and APIs), that make up Jakarta EE and define these specifications. -If you have questions about this Specification you may -send inquiries to {SpecificationInquiryList}. -If you have questions about this TCK, you may send inquiries to -{TCKInquiryList}. - -[[TCJRS00034]][[GBFUS]] - - -[[who-should-use-this-book]] -Who Should Use This Book -~~~~~~~~~~~~~~~~~~~~~~~~ - -This guide is for vendors that implement the {TechnologyShortName} -{TechnologyVersion} technology to assist them in running the test suite -that verifies compatibility of their implementation of the -{TechnologyShortName} {TechnologyVersion} Specification. - - -[[TCJRS00035]][[GBFPO]] - - -[[before-you-read-this-book]] -Before You Read This Book -~~~~~~~~~~~~~~~~~~~~~~~~~ - -You should be familiar with the {TechnologyShortName} -{TechnologyVersion}, version {TechnologyVersion} Specification, -which can be found at {SpecificationURL}. - -Before running the tests in the {TechnologyShortName} TCK, you should -familiarize yourself with the JavaTest documentation which can be -accessed at the -link:https://wiki.openjdk.java.net/display/CodeTools/JT+Harness[JT Harness web site]. - -[[TCJRS00036]][[GBFWF]] - - -[[typographic-conventions]] -Typographic Conventions -~~~~~~~~~~~~~~~~~~~~~~~ - -The following table describes the typographic conventions that are used -in this book. - -[width="100%",cols="15%,40%,45%",options="header",] -|======================================================================= -|Convention |Meaning |Example -|*Boldface* |Boldface type indicates graphical user interface elements -associated with an action, terms defined in text, or what you type, -contrasted with onscreen computer output. a| -From the *File* menu, select *Open Project*. - -A *cache* is a copy that is stored locally. - -`machine_name% *su*` + -`Password:` - -|`Monospace` |Monospace type indicates the names of files and -directories, commands within a paragraph, URLs, code in examples, text -that appears on the screen, or text that you enter. a| -Edit your `.login` file. - -Use `ls` `-a` to list all files. - -`machine_name% you have mail.` - -|_Italic_ |Italic type indicates book titles, emphasis, or placeholder -variables for which you supply particular values. a| -Read Chapter 6 in the _User's Guide_. - -Do _not_ save the file. - -The command to remove a file is `rm` _filename_. - -|======================================================================= - - -[[TCJRS00037]][[FWBSD]] - - -[[shell-prompts-in-command-examples]] -Shell Prompts in Command Examples -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The following table shows the default UNIX system prompt and superuser -prompt for the C shell, Bourne shell, and Korn shell. - -[width="100%",cols="50%,50%",options="header",] -|===================================================== -|Shell |Prompt -|C shell |`machine_name%` -|C shell for superuser |`machine_name#` -|Bourne shell and Korn shell |`$` + -|Bourne shell and Korn shell for superuser |`#` + -|Bash shell |`shell_name-shell_version$` -|Bash shell for superuser |`shell_name-shell_version#` -|===================================================== - - - diff --git a/user_guides/jsf/src/main/jbake/content/rebuild.adoc b/user_guides/jsf/src/main/jbake/content/rebuild.adoc deleted file mode 100644 index e4021cfa19..0000000000 --- a/user_guides/jsf/src/main/jbake/content/rebuild.adoc +++ /dev/null @@ -1,20 +0,0 @@ -type=page -status=published -title=Appendix B: Rebuild Rules -prev=faq.html -~~~~~~ -include::attributes.conf[] - -Appendix B: Rebuild Rules -========================= - - -ifdef::rebuild[] -include::rebuild.inc[] -endif::rebuild[] -ifndef::rebuild[] - -<<< -Appendix B is not used for the {TechnologyShortName} TCK. - -endif::rebuild[] diff --git a/user_guides/jsf/src/main/jbake/content/rebuild.inc b/user_guides/jsf/src/main/jbake/content/rebuild.inc deleted file mode 100644 index fe3d5ac586..0000000000 --- a/user_guides/jsf/src/main/jbake/content/rebuild.inc +++ /dev/null @@ -1,188 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -The following sections should be customized for the technology. -This text was originally from the JAX-RS TCK. Most references -to JAX-RS have been parameterized to serve as a simple starting -point for customization. There are still many details that will -need to be changed or removed. -/////////////////////////////////////////////////////////////////////// - -[[GCLIZ]] - - -[[b-packaging-the-test-applications-in-servlet-compliant-war-files-with-vi-specific-information]] -B Packaging the Test Applications in Servlet-Compliant WAR Files With VI-Specific Information ---------------------------------------------------------------------------------------------- - -The {TechnologyShortName} {TechnologyVersion} specification specifies -how {TechnologyShortName} applications are to be published in a Java SE -environment, JAX-WS endpoint, or Servlet–compliant Web container. - -{TechnologyShortName} TCK test application classes that are to be -published in a Java SE environment are located under -`$TS_HOME/classes`. - -The {TechnologyShortName} TCK comes with prebuilt test WAR files for -deployment on Jakarta EE {JakartaEEVersion} CI , which provides a Servlet–compliant Web -container. The WAR files are {TechnologyRI}-specific, with {TechnologyRI}'s servlet -class and {TechnologyRI}'s servlet defined in the `web.xml` deployment -descriptor. To run the TCK tests against the VI in a Servlet–compliant -Web container, the tests need to be repackaged to include the -VI-specific servlet, and the VI-specific servlet must be defined in the -deployment descriptor. - -The {TechnologyShortName} TCK makes it easier for the vendor by -including template WAR files that contain all of the necessary files -except for the VI-specific servlet adaptor class. The -{TechnologyShortName} TCK provides a tool to help with the repackaging -task. - -This appendix contains the following sections: - -* link:#GCLIO[Overview] -* link:#GCLLW[Creating the VI-Specific Servlet–Compliant WAR -Files] - -[[GCLIO]][[b.1-overview]] - -B.1 Overview -~~~~~~~~~~~~ - -The set of prebuilt archives and classes that ship with the -{TechnologyShortName} TCK were built using the Reference -Implementation, and must be deployed on Jakarta EE {JakartaEEVersion} CI and run against -the {TechnologyRI} CI. - -The prebuilt {TechnologyRI}-specific Servlet–compliant WAR files are located -under $TS_HOME`/dist`, and have `jersey` as part of their name; for -example: - -[source,oac_no_warn] ----- -$TS_HOME/dist/com/sun/ts/tests/jaxrs/ee/rs/get/jaxrs_rs_get_web.war.jersey ----- - -The names are made unique by including `jersey` to minimize the chances -that the files will be overwritten or modified. - -The Vendor must create VI-specific Servlet–compliant WAR files if the -Vendor chooses to publish on a Servlet–compliant Web container, so that -the VI-specific Servlet class will be included instead of the -{TechnologyRI}-specific Servlet class. - -[[GCLLW]][[b.2-creating-the-vi-specific-servletcompliant-war-files]] - -B.2 Creating the TCK VI-Specific Servlet–Compliant WAR Files -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -All resource and application class files are already compiled. The -Vendor needs to package these files. All tests also come with a -`web.xml.template` file to be used for generating deployment descriptor -files with a VI-specific Servlet definition. - -Each test that has a {TechnologyShortName} resource class to publish comes with a -template deployment descriptor file. For example, the file -`$TS_HOME/src/com/sun/ts/tests/jaxrs/ee/rs/get/web.xml.template` -contains the following elements: - -[source,oac_no_warn] ----- - - - - CTSJAX-RSGET - servlet_adaptor - - jakarta.ws.rs.Application - com.sun.ts.tests.jaxrs.ee.rs.get.TSAppConfig - - 1 - - - CTSJAX-RSGET - /* - - - 30 - - ----- - -In this example, the `` element has a value of -`servlet_adaptor`, which is a placeholder for the -implementation-specific Servlet class. A {TechnologyRI}-specific -deployment descriptor also comes with the {TechnologyShortName} TCK, -and has the values for the -`com.sun.jersey.spi.container.servlet.ServletContainer`: - -[source,oac_no_warn] ----- - - - - CTSJAX-RSGET - - org/glassfish/jersey/servlet/ServletContainer - - - jakarta.ws.rs.Application - com.sun.ts.tests.jaxrs.ee.rs.get.TSAppConfig - - 1 - - - CTSJAX-RSGET - /* - - - 30 - - ----- - -The {TechnologyShortName} TCK provides a tool, -`${ts.home}/bin/xml/impl/glassfish/jersey.xml`, for the Jakarta EE {JakartaEEVersion} CI -that you can use as a model to help you create your own VI-specific Web -test application. - -[[GCLMA]][[b.2.1-to-create-a-vi-specific-deployment-descriptor]] - -B.2.1 To Create a VI-Specific Deployment Descriptor -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -1. Create a VI handler file. + -Create a VI-specific handler file -`$TS_HOME/bin/xml/impl/${`impl.vi`}/`jaxrs_impl_name`.xml` if one does -not already exist. Make sure the `jaxrs_impl_name` property is set in -the +{jteFileName}+, file and that it has a unique name so no file will be -overwritten. -2. Set the VI Servlet class property. + -Set the `servlet_adaptor` property in the +{jteFileName}+ file. This property -will be used to set the value of the `` element in the -deployment descriptor. -3. Create VI Ant tasks. + -Create a `update.jaxrs.wars` target in the VI handler file. Reference -this `update.jaxrs.wars` target in the `jersey.xml` file. + -This target will create a `web.xml.${`jaxrs_impl_name`}` for each test -that has a deployment descriptor template. The -`web.xml.${`jaxrs_impl_name`}` will contain the VI-specific Servlet -class name. It will also create the test WAR files under -`$TS_HOME/dist`; for example: + -+ -[source,oac_no_warn] ----- -ls $TS_HOME/dist/com/sun/ts/tests/jaxrs/ee/rs/get/ -jaxrs_rs_get_web.war.jersey -jaxrs_rs_get_web.war.${impl_name} ----- -+ -4. Change to the `$TS_HOME/bin` directory and execute the -`update.jaxrs.wars` Ant target. + -This creates a `web.xml.`VI_name file for each test based on the VI's -servlet class name and repackage the tests. diff --git a/user_guides/jsf/src/main/jbake/content/req-software.inc b/user_guides/jsf/src/main/jbake/content/req-software.inc deleted file mode 100644 index fe4c83c215..0000000000 --- a/user_guides/jsf/src/main/jbake/content/req-software.inc +++ /dev/null @@ -1,12 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -This is a list of software required in addition to the TCK and the CI. -For many Jakart EE APIs, the Jakarta EE CI will be required, as described below. -For standalone technologies, no other software may be required, and the -below line can be removed. - -This is used in intro.adoc in section 1.3 and install.adoc in section 3.2. -/////////////////////////////////////////////////////////////////////// - -* Jakarta EE {JakartaEEVersion} CI such as {TechnologyRI}, or Eclipse GlassFish 6.0, or, at a minimum, a Web server -with a Servlet container diff --git a/user_guides/jsf/src/main/jbake/content/rules.adoc b/user_guides/jsf/src/main/jbake/content/rules.adoc deleted file mode 100644 index f6b08cebb9..0000000000 --- a/user_guides/jsf/src/main/jbake/content/rules.adoc +++ /dev/null @@ -1,403 +0,0 @@ -type=page -status=published -title=Procedure for Certification -next=install.html -prev=intro.html -~~~~~~ -include::attributes.conf[] -Procedure for Certification -=========================== - -[[GBFSN]] - - -[[procedure-for-certification]] -2 Procedure for Certification ------------------------------ - -This chapter describes the compatibility testing procedure and -compatibility requirements for {TechnologyFullName}. -This chapter contains the following sections: - -* link:#CJAFFDGI[Certification Overview] -* link:#CJAFGIGG[Compatibility Requirements] -* link:#CJAIIBDJ[Test Appeals Process] -* link:#CJAJECIE[Specifications for {TechnologyFullName}] -* link:#CJABAHGI[Libraries for {TechnologyFullName}] - -[[CJAFFDGI]][[certification-overview]] - -2.1 Certification Overview -~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The certification process for {technologyShortName} {TechnologyVersion} -consists of the following activities: - -* Install the appropriate version of the Technology Compatibility Kit -(TCK) and execute it in accordance with the instructions in this User's -Guide. -* Ensure that you meet the requirements outlined in -link:#CJAFGIGG[Compatibility Requirements] below. -* Certify to the Eclipse Foundation that you have finished -testing and that you meet all of the compatibility requirements, -as required by the Eclipse Foundation TCK License. - -[[CJAFGIGG]][[compatibility-requirements]] - -2.2 Compatibility Requirements -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The compatibility requirements for {TechnologyShortName} -{TechnologyVersion} consist of meeting the requirements set forth by -the rules and associated definitions contained in this section. - -[[sthref4]][[definitions]] - -2.2.1 Definitions -^^^^^^^^^^^^^^^^^ - -These definitions are for use only with these compatibility requirements -and are not intended for any other purpose. - -[[sthref5]][[sthref6]] - -Table 2-1 Definitions  - -[width="100%",cols="25%,75%",options="header",] -|======================================================================= -|Term |Definition -|API Definition Product |A Product for which the only Java class files -contained in the product are those corresponding to the application -programming interfaces defined by the Specifications, and which is -intended only as a means for formally specifying the application -programming interfaces defined by the Specifications. - -|Computational Resource a| -A piece of hardware or software that may vary in quantity, existence, or -version, which may be required to exist in a minimum quantity and/or at -a specific or minimum revision level so as to satisfy the requirements -of the Test Suite. - -Examples of computational resources that may vary in quantity are RAM -and file descriptors. - -Examples of computational resources that may vary in existence (that is, -may or may not exist) are graphics cards and device drivers. - -Examples of computational resources that may vary in version are -operating systems and device drivers. - -|Configuration Descriptor |Any file whose format is well defined by a -specification and which contains configuration information for a set of -Java classes, archive, or other feature defined in the specification. - -|Conformance Tests |All tests in the Test Suite for an indicated -Technology Under Test, as released and distributed by the -Eclipse Foundation, excluding those tests on the -published Exclude List for the Technology Under Test. - -|Container |An implementation of the associated Libraries, as specified -in the Specifications, and a version of a Java Platform, Standard -Edition Runtime Product, as specified in the Specifications, or a later -version of a Java Platform, Standard Edition Runtime Product that also -meets these compatibility requirements. - -|Documented |Made technically accessible and made known to users, -typically by means such as marketing materials, product documentation, -usage messages, or developer support programs. - -|Exclude List |The most current list of tests, released and distributed by the -Eclipse Foundation, that are not required to be passed to certify -conformance. The Jakarta EE Specification Committee may add to the Exclude List for that -Test Suite as needed at any time, in which case the updated TCK version -supplants any previous Exclude Lists for that Test Suite. - -|Libraries a| -The class libraries, as specified through the Jakarta EE Specification Process -(JESP), for the Technology Under Test. - -The Libraries for {TechnologyFullName} are listed at the end of this chapter. - -|Location Resource a| -A location of classes or native libraries that are components of the -test tools or tests, such that these classes or libraries may be -required to exist in a certain location in order to satisfy the -requirements of the test suite. - -For example, classes may be required to exist in directories named in a -CLASSPATH variable, or native libraries may be required to exist in -directories named in a PATH variable. - -|Maintenance Lead |The corresponding Jakarta EE Specification Project -is responsible for maintaining the Specification, and the TCK for the -Technology. The Specification Project Team will propose revisions and -updates to the Jakarta EE Specification Committee which will approve -and release new versions of the specification and TCK. - -|Operating Mode a| -Any Documented option of a Product that can be changed by a user in -order to modify the behavior of the Product. - -For example, an Operating Mode can be binary (enable/disable -optimization), an enumeration (select from a list of protocols), or a -range (set the maximum number of active threads). - -Note that an Operating Mode may be selected by a command line switch, an -environment variable, a GUI user interface element, a configuration or -control file, etc. - -|Product |A vendor's product in which the Technology Under Test is -implemented or incorporated, and that is subject to compatibility -testing. - -|Product Configuration a| -A specific setting or instantiation of an Operating Mode. - -For example, a Product supporting an Operating Mode that permits user -selection of an external encryption package may have a Product -Configuration that links the Product to that encryption package. - -|Rebuildable Tests |Tests that must be built using an -implementation-specific mechanism. This mechanism must produce -specification-defined artifacts. Rebuilding and running these tests -against a known compatible implementation verifies that the mechanism generates -compatible artifacts. - -|Resource |A Computational Resource, a Location Resource, or a Security -Resource. - -|Rules |These definitions and rules in this Compatibility Requirements -section of this User's Guide. - -|Runtime |The Containers specified in the Specifications. - -|Security Resource a| -A security privilege or policy necessary for the proper execution of the -Test Suite. - -For example, the user executing the Test Suite will need the privilege -to access the files and network resources necessary for use of the -Product. - -|Specifications a| -The documents produced through the Jakarta EE Specification Process (JESP) -that define a particular Version of a Technology. - -The Specifications for the Technology Under Test are referenced later in -this chapter. - -|Technology |Specifications and one or more compatible implementations produced -through the Jakarta EE Specification Process (JESP). - -|Technology Under Test |Specifications and a compatible implementation -for {TechnologyFullName} Version {TechnologyVersion}. - -|Test Suite |The requirements, tests, and testing tools distributed by -the Maintenance Lead as applicable to a given Version of the Technology. - -|Version |A release of the Technology, as produced through the -Jakarta EE Specification Process (JESP). - -include::defns.inc[] -|======================================================================= - - -[[sthref7]][[rules-for-products]] - -2.2.2 Rules for {TechnologyFullName} Products -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -The following rules apply for each version of an operating system, -software component, and hardware platform Documented as supporting the -Product: - -*{techID}1* The Product must be able to satisfy all applicable compatibility -requirements, including passing all Conformance Tests, in every Product -Configuration and in every combination of Product Configurations, except -only as specifically exempted by these Rules. - -For example, if a Product provides distinct Operating Modes to optimize -performance, then that Product must satisfy all applicable compatibility -requirements for a Product in each Product Configuration, and -combination of Product Configurations, of those Operating Modes. - -*{techID}1.1* If an Operating Mode controls a Resource necessary for the -basic execution of the Test Suite, testing may always use a Product -Configuration of that Operating Mode providing that Resource, even if -other Product Configurations do not provide that Resource. -Notwithstanding such exceptions, each Product must have at least one set -of Product Configurations of such Operating Modes that is able to pass -all the Conformance Tests. - -For example, a Product with an Operating Mode that controls a security -policy (i.e., Security Resource) which has one or more Product -Configurations that cause Conformance Tests to fail may be tested using -a Product Configuration that allows all Conformance Tests to pass. - -*{techID}1.2* A Product Configuration of an Operating Mode that causes the -Product to report only version, usage, or diagnostic information is -exempted from these compatibility rules. - -*{techID}1.3* An API Definition Product is exempt from all functional -testing requirements defined here, except the signature tests. - -*{techID}2* Some Conformance Tests may have properties that may be changed. -Properties that can be changed are identified in the configuration -interview. Properties that can be changed are identified in the JavaTest -Environment (.jte) files in the Test Suite -installation. Apart from changing such properties and other allowed -modifications described in this User's Guide (if any), no source or -binary code for a Conformance Test may be altered in any way without -prior written permission. Any such allowed alterations to the -Conformance Tests will be provided via the Jakarta EE Specification Project -website and apply to all vendor compatible implementations. - -*{techID}3* The testing tools supplied as part of the Test Suite or as -updated by the Maintenance Lead must be used to certify compliance. - -*{techID}4* The Exclude List associated with the Test Suite cannot be -modified. - -*{techID}5* The Maintenance Lead can define exceptions to these Rules. Such -exceptions would be made available as above, and will apply to all vendor implementations. - -*{techID}6* All hardware and software component additions, deletions, and -modifications to a Documented supporting hardware/software platform, -that are not part of the Product but required for the Product to satisfy -the compatibility requirements, must be Documented and available to -users of the Product. - -For example, if a patch to a particular version of a supporting -operating system is required for the Product to pass the Conformance -Tests, that patch must be Documented and available to users of the -Product. - -*{techID}7* The Product must contain the full set of public and protected -classes and interfaces for all the Libraries. Those classes and -interfaces must contain exactly the set of public and protected methods, -constructors, and fields defined by the Specifications for those -Libraries. No subsetting, supersetting, or modifications of the public -and protected API of the Libraries are allowed except only as -specifically exempted by these Rules. - -*{techID}7.1* If a Product includes Technologies in addition to the -Technology Under Test, then it must contain the full set of combined -public and protected classes and interfaces. The API of the Product -must contain the union of the included Technologies. No further -modifications to the APIs of the included Technologies are allowed. - -ifdef::subset-allowed[] -*{techID}7.2* The Product may contain a subset of the classes and -interfaces for the Libraries. -endif::subset-allowed[] - -*{techID}8* Except for tests specifically required by this TCK to be rebuilt -(if any), the binary Conformance Tests supplied as part of the Test -Suite or as updated by the Maintenance Lead must be used to certify -compliance. - -*{techID}9* The functional programmatic behavior of any binary class or -interface must be that defined by the Specifications. - -include::rules.inc[] - -[[CJAIIBDJ]][[test-appeals-process]] - -2.3 Test Appeals Process -~~~~~~~~~~~~~~~~~~~~~~~~ - -Jakarta has a well established process for managing challenges to its -TCKs. Any implementor may submit a challenge to one or more tests in the -{TechnologyShortName} TCK as it relates to their implementation. Implementor -means the entity as a whole in charge of producing the final certified release. -*Challenges filed should represent the consensus of that entity*. - -2.3.1 Valid Challenges -^^^^^^^^^^^^^^^^^^^^^^ -Any test case (e.g., test class, @Test method), test case configuration (e.g., deployment descriptor), test beans, annotations, and other resources considered part of the TCK may be challenged. - -The following scenarios are considered in scope for test challenges: - -* Claims that a test assertion conflicts with the specification. -* Claims that a test asserts requirements over and above that of the specification. -* Claims that an assertion of the specification is not sufficiently implementable. -* Claims that a test is not portable or depends on a particular implementation. - -2.3.2 Invalid Challenges -^^^^^^^^^^^^^^^^^^^^^^^^ -The following scenarios are considered out of scope for test challenges and will be immediately closed if filed: - -* Challenging an implementation’s claim of passing a test. Certification is an honor system and these issues must be raised directly with the implementation. -* Challenging the usefulness of a specification requirement. The challenge process cannot be used to bypass the specification process and raise in question the need or relevance of a specification requirement. -* Claims the TCK is inadequate or missing assertions required by the specification. See the Improvement section, which is outside the scope of test challenges. -* Challenges that do not represent a consensus of the implementing community will be closed until such time that the community does agree or agreement cannot be made. The test challenge process is not the place for implementations to initiate their own internal discussions. -* Challenges to tests that are already excluded for any reason. -* Challenges that an excluded test should not have been excluded and should be re-added should be opened as a new enhancement request - -Test challenges must be made in writing via the {TechnologyShortName} specification project issue tracker -as described in link:#CJAJEAEI[Section 2.3.3, "TCK Test Appeals Steps."] - -All tests found to be invalid will be placed on the Exclude List -for that version of the {TechnologyShortName} TCK. - - -[[CJAJEAEI]][[tck-test-appeals-steps]] - -2.3.3 TCK Test Appeals Steps -^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -1. Challenges should be filed via the {TechnologyFullName} specification project’s issue tracker using the label `challenge` and include the following information: -* The relevant specification version and section number(s) -* The coordinates of the challenged test(s) -* The exact TCK and exclude list versions -* The implementation being tested, including name and company -* The full test name -* A full description of why the test is invalid and what the correct behavior is believed to be -* Any supporting material; debug logs, test output, test logs, run scripts, etc. - - - -2. Specification project evaluates the challenge. + -Challenges can be resolved by a specification project lead, or a project challenge triage team, after a consensus of the specification project committers is reached or attempts to gain consensus fails. -Specification projects may exercise lazy consensus, voting or any practice that follows the principles of Eclipse Foundation Development Process. -The expected timeframe for a response is two weeks or less. -If consensus cannot be reached by the specification project for a prolonged period of time, the default recommendation is to exclude the tests and address the dispute in a future revision of the specification. - -3. Accepted Challenges. + -A consensus that a test produces invalid results will result in the exclusion of that test from certification requirements, and an immediate update and release of an official distribution of the TCK including the new exclude list. The associated `challenge` issue must be closed with an `accepted` label to indicate it has been resolved. - -4. Rejected Challenges and Remedy. + -When a`challenge` issue is rejected, it must be closed with a label of `invalid` to indicate it has been rejected. -There appeal process for challenges rejected on technical terms is outlined in Escalation Appeal. -If, however, an implementer feels the TCK challenge process was not followed, an appeal issue should be filed with specification project’s TCK issue tracker using the label `challenge-appeal`. -A project lead should escalate the issue with the Jakarta EE Specification Committee via email (jakarta.ee-spec@eclipse.org). -The committee will evaluate the matter purely in terms of due process. -If the appeal is accepted, the original TCK challenge issue will be reopened and a label of `appealed-challenge` added, along with a discussion of the appeal decision, and the `challenge-appeal` issue with be closed. -If the appeal is rejected, the `challenge-appeal` issue should closed with a label of `invalid`. - -5. Escalation Appeal. + -If there is a concern that a TCK process issue has not been resolved satisfactorily, the -https://www.eclipse.org/projects/dev_process/#6_5_Grievance_Handling[Eclipse Development Process Grievance Handling] procedure should be followed to escalate the resolution. Note that this is not a mechanism to attempt to handle implementation specific issues. - - -[[CJAJECIE]][[specifications-for-technology]] - -2.4 Specifications for {TechnologyFullName} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The {TechnologyFullName} specification is available from the specification -project web-site: {SpecificationURL}. - -[[CJABAHGI]][[libraries-for-technology]] - -2.5 Libraries for {TechnologyFullName} -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The following is a list of the packages comprising the required class -libraries for {TechnologyShortName} {TechnologyVersion}: - -include::packages.inc[] - -For the latest list of packages, also see: - -{SpecificationURL} diff --git a/user_guides/jsf/src/main/jbake/content/rules.inc b/user_guides/jsf/src/main/jbake/content/rules.inc deleted file mode 100644 index b5a250f697..0000000000 --- a/user_guides/jsf/src/main/jbake/content/rules.inc +++ /dev/null @@ -1,78 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -Most technologies will only need the compatibility rules in rules.adoc. -Some technologies will need additional rules. If they're needed, -remove the comment block delimiters below and update the rules as -appropriate. You may need to adjust the rule numbers to avoid gaps. - -The first comment block below is additional rules needed by JPA. - -The second comment block below is additional rules needed by -JSP and Servlet. (And EJB, if it had a standalone TCK.) - -The third comment block below is additional rules that apply -to any technology that defines deployment descriptors. - -The fourth comment block is special rules that apply only to JSP. - -NOTE: This set of examples is NOT complete, but should be. -/////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////// -*{techID}10* The Runtime must report an error when processing a -Configuration Descriptor that does not conform to the Specifications. - -*{techID}11* An error must be reported when processing a configuration -descriptor that includes a Java Persistence QL expression that does not -conform to the Specifications. - -*{techID}12* The presence of an XML comment in a Configuration -Descriptor, when processed by the Runtime, must not cause the -functional programmatic behavior of the Runtime to vary from the -functional programmatic behavior of the Runtime in the absence of that -comment. -/////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////// -*{techID}10* Each Container must make technically accessible all Java SE -Runtime interfaces and functionality, as defined by the Specifications, -to programs running in the Container, except only as specifically -exempted by these Rules. - -*{techID}10.1* Containers may impose security constraints, as defined by -the Specifications. -/////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////// -*{techID}11* A Deployment Tool must report an error when processing a -Configuration Descriptor that does not conform to the Specifications. - -*{techID}12* The presence of an XML comment in a Configuration -Descriptor, when processed by a Deployment Tool, must not cause the -functional programmatic behavior of the Deployment Tool to vary from -the functional programmatic behavior of the Deployment Tool in the -absence of that comment. -/////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////// -*{techID}11* A web Container must report an error, as defined by the -Specifications, when processing a JSP Page that does not conform to the -Specifications. - -*{techID}12* The presence of a Java language comment or Java language -directive in a JSP Page that specifies ”java” as the scripting -language, when processed by a web Container, must not cause the -functional programmatic behavior of that JSP Page to vary from the -functional programmatic behavior of that JSP Page in the absence of -that Java language comment or Java language directive. - -*{techID}13* The contents of any fixed template data (defined by the -Specifications) in a JSP Page, when processed by a web Container, must -not affect the functional programmatic behavior of that JSP Page, -except as defined by the Specifications. - -*{techID}14* The functional programmatic behavior of a JSP Page that -specifies ”java” as the scripting language must be equivalent to the -functional programmatic behavior of the JSP Page Implementation Class -constructed from that JSP Page. -/////////////////////////////////////////////////////////////////////// diff --git a/user_guides/jsf/src/main/jbake/content/tck-packages.inc b/user_guides/jsf/src/main/jbake/content/tck-packages.inc deleted file mode 100644 index 5ca50031cc..0000000000 --- a/user_guides/jsf/src/main/jbake/content/tck-packages.inc +++ /dev/null @@ -1,7 +0,0 @@ -** JDOM 1.1.3 - -** Apache Commons HTTP Client 3.1 - -** Apache Commons Logging 1.1.3 - -** Apache Commons Codec 1.9 diff --git a/user_guides/jsf/src/main/jbake/content/title.adoc b/user_guides/jsf/src/main/jbake/content/title.adoc deleted file mode 100644 index 232172d727..0000000000 --- a/user_guides/jsf/src/main/jbake/content/title.adoc +++ /dev/null @@ -1,42 +0,0 @@ -type=page -status=published -title=TCK User's Guide for Technology Implementors -next=preface.html -prev=toc.html -~~~~~~ -include::attributes.conf[] - -TCK User's Guide for {TechnologyFullName}, Release {TechnologyVersion} for Jakarta EE -===================================================================================== - -[[eclipse-foundation]] -Eclipse Foundation ------------------- - -Technology Compatibility Kit User's Guide for {TechnologyFullName} - -Release {TechnologyVersion} for Jakarta EE - -{ReleaseDate} - -[[sthref1]] - -''''' - -Technology Compatibility Kit User's Guide for {TechnologyFullName}, -Release {TechnologyVersion} for Jakarta EE - -Copyright © {CopyrightDates} Oracle and/or its affiliates. All rights reserved. - -This program and the accompanying materials are made available under -the terms of the Eclipse Public License v. 2.0, which is available at -http://www.eclipse.org/legal/epl-2.0. - -SPDX-License-Identifier: EPL-2.0 - -Oracle and Java are registered trademarks of Oracle and/or its -affiliates. Other names may be trademarks of their respective owners. - -include::title.inc[] - - diff --git a/user_guides/jsf/src/main/jbake/content/title.inc b/user_guides/jsf/src/main/jbake/content/title.inc deleted file mode 100644 index 25bf47e08d..0000000000 --- a/user_guides/jsf/src/main/jbake/content/title.inc +++ /dev/null @@ -1,11 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -This is included at the tail end of the Title page. -The following section should be customized for the technology. -This is provided to allow each technology to customize legacy acronym names -that are used in this TCK. -Be sure to customize LegacyAcronym in attributes.conf -Add additional lines as needed for acronyms found in your TCK user guide. -/////////////////////////////////////////////////////////////////////// - -References in this document to {LegacyAcronym} refer to the {TechnologyFullName} unless otherwise noted. diff --git a/user_guides/jsf/src/main/jbake/content/using-examples.inc b/user_guides/jsf/src/main/jbake/content/using-examples.inc deleted file mode 100644 index b47962f035..0000000000 --- a/user_guides/jsf/src/main/jbake/content/using-examples.inc +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////////////////// -NOTE TO WRITERS: -These CLI examples can be customized as necessary. -/////////////////////////////////////////////////////////////////////// - -1. Change to any subdirectory under `/src/com/sun/ts/tests`. -2. Start JavaTest using the following command: -+ --- -[source,oac_no_warn] ----- -ant runclient ----- --- - -[[GCMCU]] - -Example 5-1 {TechnologyShortName} TCK Signature Tests - -To run the {TechnologyShortName} TCK signature tests, enter the -following commands: - -[source,subs="attributes"] ----- -cd {sigTestDirectoryExample} -ant runclient ----- - -[[GCMBV]] - - -Example 5-2 Single Test Directory - -To run a single test directory, enter the following commands: - -[source,subs="attributes"] ----- -cd {singleTestDirectoryExample} -ant runclient ----- - -[[GCMCA]] - - -Example 5-3 Subset of Test Directories - -To run a subset of test directories, enter the following commands: - -[source,subs="attributes"] ----- -cd {subsetTestDirectoryExample} -ant runclient ----- diff --git a/user_guides/jsf/src/main/jbake/content/using.adoc b/user_guides/jsf/src/main/jbake/content/using.adoc deleted file mode 100644 index 9189c9f962..0000000000 --- a/user_guides/jsf/src/main/jbake/content/using.adoc +++ /dev/null @@ -1,323 +0,0 @@ -type=page -status=published -title=Executing Tests -next=debug.html -prev=config.html -~~~~~~ -include::attributes.conf[] -Executing Tests -=============== - -[[GBFWO]] - - -[[executing-tests]] -5 Executing Tests ------------------ - -The {TechnologyShortName} TCK uses the JavaTest harness to execute the -tests in the test suite. For detailed instructions that explain how to -run and use JavaTest, see the JavaTest User's Guide and Reference in -the documentation bundle. - -This chapter includes the following topics: - -* link:#GBFUZ[Starting JavaTest] -* link:#GBFWM[Running a Subset of the Tests] -* link:#GCLRR[Running the TCK Against your selected CI] -* link:#GCLRZ[Running the TCK Against a Vendor's Implementation] -* link:#GBFVK[Test Reports] - - -[NOTE] -======================================================================= - -The instructions in this chapter assume that you have installed and -configured your test environment as described in -link:install.html#GBFTP[Chapter 3, "Installation,"] and -link:config.html#GBFVV[Chapter 4, "Setup and Configuration,"], -respectively. - -======================================================================= - -ifdef::rebuild[] -As explained in link:rebuild.html#GCLIZ[Appendix B, "Packaging the -Test Applications in Servlet-Compliant WAR -Files With VI-Specific Information,"] the {TechnologyShortName} TCK -introduces the concept of repackaging the TCK tests. -endif::rebuild[] - - -[[GBFUZ]][[starting-javatest]] - -5.1 Starting JavaTest -~~~~~~~~~~~~~~~~~~~~~ - -There are two general ways to run the {TechnologyShortName} TCK using -the JavaTest harness software: - -* Through the JavaTest GUI -* From the command line in your shell environment - - -[NOTE] -======================================================================= - -The `ant` command referenced in the following -two procedures and elsewhere in this guide is the Apache Ant -build tool, which will need to be downloaded separately. -The `build.xml` file in `/bin` contains the various Ant -targets for the {TechnologyShortName} TCK test suite. - -======================================================================= - - -[[GBFWH]][[to-start-javatest-in-gui-mode]] - -5.1.1 To Start JavaTest in GUI Mode -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Execute the following commands: - -[source,oac_no_warn] ----- -cd /bin -ant gui ----- - -[[GBFVW]][[to-start-javatest-in-command-line-mode]] - -5.1.2 To Start JavaTest in Command-Line Mode -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -include::using-examples.inc[] - -[[GBFWM]][[running-a-subset-of-the-tests]] - -5.2 Running a Subset of the Tests -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Use the following modes to run a subset of the tests: - -* link:#GBFVT[Section 5.2.1, "To Run a Subset of Tests in GUI Mode"] -* link:#GBFWK[Section 5.2.2, "To Run a Subset of Tests in Command-Line Mode"] -* link:#GBFVL[Section 5.2.3, "To Run a Subset of Tests in Batch Mode -Based on Prior Result Status"] - -[[GBFVT]][[to-run-a-subset-of-tests-in-gui-mode]] - -5.2.1 To Run a Subset of Tests in GUI Mode -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -1. From the JavaTest main menu, click *Configure*, then click *Change -Configuration*, and then click *Tests to Run*. + -The tabbed Configuration Editor dialog box is displayed. -2. Click *Specify* from the option list on the left. -3. Select the tests you want to run from the displayed test tree, and -then click *Done*. + -You can select entire branches of the test tree, or use `Ctrl+Click` or -`Shift+Click` to select multiple tests or ranges of tests, respectively, -or select just a single test. -4. Click *Save File*. -5. Click *Run Tests*, and then click *Start* to run the tests you selected. + -Alternatively, you can `right-click` the test you want from the test tree -in the left section of the JavaTest main window, and choose *Execute -These Tests* from the menu. -6. Click *Report*, and then click *Create Report*. -7. Specify the directory in which the JavaTest test harness will write -the report, and then click *OK* + -A report is created, and you are asked whether you want to view it. -8. Click *Yes* to view the report. - -[[GBFWK]][[to-run-a-subset-of-tests-in-command-line-mode]] - -5.2.2 To Run a Subset of Tests in Command-Line Mode -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -1. Change to the directory containing the tests you want to run. -2. Start the test run by executing the following command: + -+ -[source] ----- -ant runclient ----- -+ -The tests in the directory and its subdirectories are run. - -[[GBFVL]][[to-run-a-subset-of-tests-in-batch-mode-based-on-prior-result-status]] - -5.2.3 To Run a Subset of Tests in Batch Mode Based on Prior Result Status -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -You can run certain tests in batch mode based on the test's prior run -status by specifying the `priorStatus` system property when invoking -`ant` - -Invoke `ant` with the `priorStatus` property. - -The accepted values for the `priorStatus` property are any combination -of the following: - -* `fail` -* `pass` -* `error` -* `notRun` - -For example, you could run all the {TechnologyShortName} tests with a -status of failed and error by invoking the following commands: - -[source,oac_no_warn] ----- -ant -DpriorStatus="fail,error" runclient ----- - -Note that multiple `priorStatus` values must be separated by commas. - -[[GCLRR]][[running-the-tck-against-the-ci]] - -5.3 Running the TCK Against another CI -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Some test scenarios are designed to ensure that the configuration and deployment of -all the prebuilt {TechnologyShortName} TCK tests against one Compatible -Implementation are successful operating with other compatible implementations, and that the TCK is ready for -compatibility testing against the Vendor and Compatible Implementations. - -1. Verify that you have followed the configuration instructions in -link:config.html#GBFVU[Section 4.1, "Configuring Your Environment to Run -the TCK Against the Compatible Implementation."] -2. If required, verify that you have completed the steps in -link:config.html#GCLIW[Section 4.3.2, "Deploying the Prebuilt Archives."] -3. Run the tests, as described in link:#GBFUZ[Section 5.1, "Starting -JavaTest,"] and, if desired, link:#GBFWM[Section 5.2, "Running a Subset -of the Tests."] - -[[GCLRZ]][[running-the-tck-against-a-vendors-implementation]] - -5.4 Running the TCK Against a Vendor's Implementation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -This test scenario is one of the compatibility test phases that all -Vendors must pass. - -1. Verify that you have followed the configuration instructions in -link:config.html#GCLHU[Section 4.2, "Configuring Your Environment to -Repackage and Run the TCK Against the Vendor Implementation."] -2. If required, verify that you have completed the steps in -link:config.html#GCLIL[Section 4.3.3, "Deploying the -Test Applications Against the Vendor Implementation."] -3. Run the tests, as described in link:#GBFUZ[Section 5.1, "Starting -JavaTest,"] and, if desired, link:#GBFWM[Section 5.2, "Running a Subset -of the Tests."] - -[[GBFVK]][[test-reports]] - -5.5 Test Reports -~~~~~~~~~~~~~~~~ - -A set of report files is created for every test run. These report files -can be found in the report directory you specify. After a test run is -completed, the JavaTest harness writes HTML reports for the test run. -You can view these files in the JavaTest ReportBrowser when running in -GUI mode, or in the web browser of your choice outside the JavaTest -interface. - -To see all of the HTML report files, enter the URL of the `report.html` -file. This file is the root file that links to all of the other HTML -reports. - -The JavaTest harness also creates a `summary.txt` file in the report -directory that you can open in any text editor. The `summary.txt` file -contains a list of all tests that were run, their test results, and -their status messages. - -[[GBFWD]][[creating-test-reports]] - -5.5.1 Creating Test Reports -^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Use the following modes to create test reports: - -* link:#GBFVH[Section 5.5.1.1, "To Create a Test Report in GUI Mode"] -* link:#GBFVC[Section 5.5.1.2, "To Create a Test Report in Command-Line Mode"] - -[[GBFVH]][[to-create-a-test-report-in-gui-mode]] - -5.5.1.1 To Create a Test Report in GUI Mode -+++++++++++++++++++++++++++++++++++++++++++ - -1. From the JavaTest main menu, click *Report*, then click *Create Report*. + -You are prompted to specify a directory to use for your test reports. -2. Specify the directory you want to use for your reports, and then -click *OK*. + -Use the Filter list to specify whether you want to generate reports for -the current configuration, all tests, or a custom set of tests. + -You are asked whether you want to view report now. -3. Click *Yes* to display the new report in the JavaTest ReportBrowser. - -[[GBFVC]][[to-create-a-test-report-in-command-line-mode]] - -5.5.1.2 To Create a Test Report in Command-Line Mode -++++++++++++++++++++++++++++++++++++++++++++++++++++ - -1. Specify where you want to create the test report. -a. To specify the report directory from the command line at runtime, -use: -+ -[source] ----- -ant -Dreport.dir="report_dir" ----- -+ -Reports are written for the last test run to the directory you specify. -2. To specify the default report directory, set the `report.dir` -property in +{jteFileName}+. + -For example: -+ -[source] ----- -report.dir="/home/josephine/reports" ----- -+ -3. To disable reporting, set the `report.dir` property to `"none"`, -either on the command line or in +{jteFileName}+. + -For example: -+ -[source] ----- -ant -Dreport.dir="none" ----- -+ - -[[GBFVB]][[viewing-an-existing-test-report]] - -5.5.2 Viewing an Existing Test Report -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -Use the following modes to view an existing test report: - -* link:#GBFVO[Section 5.5.2.1, "To View an Existing Report in GUI Mode"] -* link:#GBFWB[Section 5.5.2.2, "To View an Existing Report in -Command-Line Mode"] - -[[GBFVO]][[to-view-an-existing-report-in-gui-mode]] - -5.5.2.1 To View an Existing Report in GUI Mode -++++++++++++++++++++++++++++++++++++++++++++++ - -1. From the JavaTest main menu, click *Report*, then click *Open Report*. + -You are prompted to specify the directory containing the report you want -to open. -2. Select the report directory you want to open, and then click *Open*. + -The selected report set is opened in the JavaTest ReportBrowser. - -[[GBFWB]][[to-view-an-existing-report-in-command-line-mode]] - -5.5.2.2 To View an Existing Report in Command-Line Mode -+++++++++++++++++++++++++++++++++++++++++++++++++++++++ - -Use the Web browser of your choice to view the `report.html` file in the -report directory you specified from the command line or in +{jteFileName}+. - -include::using.inc[] - diff --git a/user_guides/jsf/src/main/jbake/content/using.inc b/user_guides/jsf/src/main/jbake/content/using.inc deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/user_guides/jsf/src/main/jbake/jbake.properties b/user_guides/jsf/src/main/jbake/jbake.properties deleted file mode 100644 index 05c7056f0a..0000000000 --- a/user_guides/jsf/src/main/jbake/jbake.properties +++ /dev/null @@ -1,24 +0,0 @@ -# -# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved. -# -# This program and the accompanying materials are made available under the -# terms of the Eclipse Public License v. 2.0, which is available at -# http://www.eclipse.org/legal/epl-2.0. -# -# This Source Code may also be made available under the following Secondary -# Licenses when the conditions for such availability set forth in the -# Eclipse Public License v. 2.0 are satisfied: GNU General Public License, -# version 2 with the GNU Classpath Exception, which is available at -# https://www.gnu.org/software/classpath/license.html. -# -# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 -# - -site.host=http://jbake.org -render.tags=false -render.sitemap=false -render.archive=false -render.feed=false -render.index=false -asciidoctor.option.safe=0 -asciidoctor.attributes.export=true \ No newline at end of file diff --git a/user_guides/jsf/src/main/jbake/templates/footer.ftl b/user_guides/jsf/src/main/jbake/templates/footer.ftl deleted file mode 100644 index 746cbf1ccd..0000000000 --- a/user_guides/jsf/src/main/jbake/templates/footer.ftl +++ /dev/null @@ -1,44 +0,0 @@ -<#-- a footer template fragment included in the page template --> -
- -
- - - - - - - <#if content.prev??> - - - - <#if content.next??> - - - - - -
- - - Previous - - - - - Next - - - - - Contents - -
- - - Eclipse Foundation Logo  - Copyright © 2017, 2021 Oracle and/or its affiliates. All rights reserved. - - - - diff --git a/user_guides/jsf/src/main/jbake/templates/header.ftl b/user_guides/jsf/src/main/jbake/templates/header.ftl deleted file mode 100644 index 50b72ae8d0..0000000000 --- a/user_guides/jsf/src/main/jbake/templates/header.ftl +++ /dev/null @@ -1,54 +0,0 @@ - -<#-- a header template fragment included in the page template --> - - - - <#if (content.title)??><#escape x as x?xml>${content.title}</#escape></#if> - - - - - - - - - -
- ${content.title}
-
-
- - - - - - - - - <#if content.prev??> - - - - <#if content.next??> - - - - - -
- - - Previous - - - - - Next - - - - - Contents - -
- diff --git a/user_guides/jsf/src/main/jbake/templates/menu.ftl b/user_guides/jsf/src/main/jbake/templates/menu.ftl deleted file mode 100644 index 888c03dcff..0000000000 --- a/user_guides/jsf/src/main/jbake/templates/menu.ftl +++ /dev/null @@ -1 +0,0 @@ -<#-- a menu bar template fragment included in the page template --> \ No newline at end of file diff --git a/user_guides/jsf/src/main/jbake/templates/page.ftl b/user_guides/jsf/src/main/jbake/templates/page.ftl deleted file mode 100644 index eca51db35d..0000000000 --- a/user_guides/jsf/src/main/jbake/templates/page.ftl +++ /dev/null @@ -1,8 +0,0 @@ -<#-- a top level page layout template --> - -<#include "header.ftl"> -<#include "menu.ftl"> - -${content.body} - -<#include "footer.ftl"> \ No newline at end of file diff --git a/user_guides/jsf/src/theme/jakartaee-theme.yml b/user_guides/jsf/src/theme/jakartaee-theme.yml deleted file mode 100644 index 6092a2f5c9..0000000000 --- a/user_guides/jsf/src/theme/jakartaee-theme.yml +++ /dev/null @@ -1,299 +0,0 @@ -# -# Following is the asciidoctor-pdf default theme [1], with small -# customizations, mostly for header and footer, marked "EE". -# -# [1] https://github.com/asciidoctor/asciidoctor-pdf/blob/master/data/themes/default-theme.yml -# -font: - catalog: - # Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols - Noto Serif: - normal: notoserif-regular-subset.ttf - bold: notoserif-bold-subset.ttf - italic: notoserif-italic-subset.ttf - bold_italic: notoserif-bold_italic-subset.ttf - # M+ 1mn supports ASCII and the circled numbers used for conums - M+ 1mn: - normal: mplus1mn-regular-ascii-conums.ttf - bold: mplus1mn-bold-ascii.ttf - italic: mplus1mn-italic-ascii.ttf - bold_italic: mplus1mn-bold_italic-ascii.ttf - # M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols - # It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font - M+ 1p Fallback: - normal: mplus1p-regular-fallback.ttf - bold: mplus1p-regular-fallback.ttf - italic: mplus1p-regular-fallback.ttf - bold_italic: mplus1p-regular-fallback.ttf - fallbacks: - - M+ 1p Fallback -page: - background_color: ffffff - layout: portrait - margin: [0.5in, 0.67in, 0.67in, 0.67in] - # margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress - margin_inner: 0.75in - margin_outer: 0.59in - #size: A4 # EE - size: Letter # EE -base: - align: justify - # color as hex string (leading # is optional) - font_color: 333333 - # color as RGB array - #font_color: [51, 51, 51] - # color as CMYK array (approximated) - #font_color: [0, 0, 0, 0.92] - #font_color: [0, 0, 0, 92%] - font_family: Noto Serif - # choose one of these font_size/line_height_length combinations - #font_size: 14 - #line_height_length: 20 - #font_size: 11.25 - #line_height_length: 18 - #font_size: 11.2 - #line_height_length: 16 - font_size: 10.5 - #line_height_length: 15 - # correct line height for Noto Serif metrics - line_height_length: 12 - #font_size: 11.25 - #line_height_length: 18 - line_height: $base_line_height_length / $base_font_size - font_size_large: round($base_font_size * 1.25) - font_size_small: round($base_font_size * 0.85) - font_size_min: $base_font_size * 0.75 - font_style: normal - border_color: eeeeee - border_radius: 4 - border_width: 0.5 -# FIXME vertical_rhythm is weird; we should think in terms of ems -#vertical_rhythm: $base_line_height_length * 2 / 3 -# correct line height for Noto Serif metrics (comes with built-in line height) -vertical_rhythm: $base_line_height_length -horizontal_rhythm: $base_line_height_length -# QUESTION should vertical_spacing be block_spacing instead? -vertical_spacing: $vertical_rhythm -link: - font_color: 428bca -# literal is currently used for inline monospaced in prose and table cells -literal: - font_color: b12146 - font_family: M+ 1mn -menu_caret_content: " \u203a " -heading: - align: left - #font_color: 181818 - font_color: $base_font_color - font_family: $base_font_family - font_style: bold - # h1 is used for part titles (book doctype) or the doctitle (article doctype) - #h1_font_size: floor($base_font_size * 2.6) # EE - h1_font_size: floor($base_font_size * 2.5) # EE, squeeze title onto one line - # h2 is used for chapter titles (book doctype only) - h2_font_size: floor($base_font_size * 2.15) - h3_font_size: round($base_font_size * 1.7) - h4_font_size: $base_font_size_large - h5_font_size: $base_font_size - h6_font_size: $base_font_size_small - #line_height: 1.4 - # correct line height for Noto Serif metrics (comes with built-in line height) - line_height: 1 - margin_top: $vertical_rhythm * 0.4 - margin_bottom: $vertical_rhythm * 0.9 -title_page: - align: right - logo: - top: 10% - title: - top: 55% - font_size: $heading_h1_font_size - font_color: 999999 - line_height: 0.9 - subtitle: - font_size: $heading_h3_font_size - font_style: bold_italic - line_height: 1 - authors: - margin_top: $base_font_size * 1.25 - font_size: $base_font_size_large - font_color: 181818 - revision: - margin_top: $base_font_size * 1.25 -block: - margin_top: 0 - margin_bottom: $vertical_rhythm -caption: - align: left - font_size: $base_font_size * 0.95 - font_style: italic - # FIXME perhaps set line_height instead of / in addition to margins? - margin_inside: $vertical_rhythm / 3 - #margin_inside: $vertical_rhythm / 4 - margin_outside: 0 -lead: - font_size: $base_font_size_large - line_height: 1.4 -abstract: - font_color: 5c6266 - font_size: $lead_font_size - line_height: $lead_line_height - font_style: italic - first_line_font_style: bold - title: - align: center - font_color: $heading_font_color - font_family: $heading_font_family - font_size: $heading_h4_font_size - font_style: $heading_font_style -admonition: - column_rule_color: $base_border_color - column_rule_width: $base_border_width - padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm] - #icon: - # tip: - # name: fa-lightbulb-o - # stroke_color: 111111 - # size: 24 - label: - text_transform: uppercase - font_style: bold -blockquote: - font_color: $base_font_color - font_size: $base_font_size_large - border_color: $base_border_color - border_width: 5 - # FIXME disable negative padding bottom once margin collapsing is implemented - padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2] - cite_font_size: $base_font_size_small - cite_font_color: 999999 -# code is used for source blocks (perhaps change to source or listing?) -code: - font_color: $base_font_color - font_family: $literal_font_family - font_size: ceil($base_font_size) - padding: $code_font_size - line_height: 1.25 - # line_gap is an experimental property to control how a background color is applied to an inline block element - line_gap: 3.8 - background_color: f5f5f5 - border_color: cccccc - border_radius: $base_border_radius - border_width: 0.75 -conum: - font_family: M+ 1mn - font_color: $literal_font_color - font_size: $base_font_size - line_height: 4 / 3 -example: - border_color: $base_border_color - border_radius: $base_border_radius - border_width: 0.75 - background_color: ffffff - # FIXME reenable padding bottom once margin collapsing is implemented - padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm] -image: - align: left -prose: - margin_top: $block_margin_top - margin_bottom: $block_margin_bottom -sidebar: - background_color: eeeeee - border_color: e1e1e1 - border_radius: $base_border_radius - border_width: $base_border_width - # FIXME reenable padding bottom once margin collapsing is implemented - padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25] - title: - align: center - font_color: $heading_font_color - font_family: $heading_font_family - font_size: $heading_h4_font_size - font_style: $heading_font_style -thematic_break: - border_color: $base_border_color - border_style: solid - border_width: $base_border_width - margin_top: $vertical_rhythm * 0.5 - margin_bottom: $vertical_rhythm * 1.5 -description_list: - term_font_style: bold - term_spacing: $vertical_rhythm / 4 - description_indent: $horizontal_rhythm * 1.25 -outline_list: - indent: $horizontal_rhythm * 1.5 - #marker_font_color: 404040 - # NOTE outline_list_item_spacing applies to list items that do not have complex content - item_spacing: $vertical_rhythm / 2 -table: - background_color: $page_background_color - #head_background_color: - #head_font_color: $base_font_color - head_font_style: bold - #body_background_color: - body_stripe_background_color: f9f9f9 - foot_background_color: f0f0f0 - border_color: dddddd - border_width: $base_border_width - cell_padding: 3 -toc: - indent: $horizontal_rhythm - line_height: 1.4 - dot_leader: - #content: ". " - font_color: a9a9a9 - #levels: 2 3 -# NOTE in addition to footer, header is also supported -footer: - font_size: $base_font_size_small - # NOTE if background_color is set, background and border will span width of page - #border_color: dddddd # EE - #border_width: 0.25 # EE - height: $base_line_height_length * 2.5 - line_height: 1 - padding: [$base_line_height_length / 2, 1, 0, 1] - vertical_align: top - #image_vertical_align: or - # additional attributes for content: - # * {page-count} - # * {page-number} - # * {document-title} - # * {document-subtitle} - # * {chapter-title} - # * {section-title} - # * {section-or-chapter-title} - recto: - #columns: "<50% =0% >50%" - right: - #content: '{page-number}' # EE - #content: '{section-or-chapter-title} | {page-number}' - #content: '{document-title} | {page-number}' - content: '{document-title}{nbsp}{nbsp}{nbsp} *{page-number}*' # EE - #center: - # content: '{page-number}' - left: # EE - content: '{status}' # EE - verso: - #columns: $footer_recto_columns - left: - #content: $footer_recto_right_content # EE - #content: '{page-number} | {chapter-title}' - content: '*{page-number}* {nbsp}{nbsp}{nbsp}{document-title}' # EE - #center: - # content: '{page-number}' - right: # EE - content: '{status}' # EE -header: # EE - font_size: $base_font_size_small # EE - border_color: dddddd # EE - border_width: 0.25 # EE - height: $base_line_height_length * 2.5 # EE - line_height: 1 # EE - padding: [$base_line_height_length / 2, 1, 0, 1] # EE - vertical_align: top # EE - recto: # EE - right: # EE - content: '{section-or-chapter-title}' # EE - verso: # EE - left: # EE - content: '{section-or-chapter-title}' # EE